@viewlift/player-backup 2.0.67-smartTv → 2.0.68-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/cjs/autoNextVideo-5ade373a.js +1 -0
  2. package/cjs/browser-77c57718.js +1 -0
  3. package/cjs/bundle.css +725 -1734
  4. package/cjs/caption-settings-be714e97.js +1 -0
  5. package/cjs/captions-07bd3069.js +1 -0
  6. package/cjs/features-df72cbbd.js +1 -0
  7. package/cjs/generic-08be76e1.js +1 -0
  8. package/cjs/icons-1a3febef.js +1 -0
  9. package/cjs/index-61c97699.js +1 -0
  10. package/cjs/index-6a79d3d0.js +1 -0
  11. package/cjs/index-84cce26a.js +1 -0
  12. package/cjs/index.js +1 -1
  13. package/cjs/multicamv2-24ac83fc.js +1 -0
  14. package/cjs/multicamv2-7e5f9622.js +1 -0
  15. package/cjs/nextEpisodeButton-e2b5ab8c.js +1 -0
  16. package/cjs/playlist-20264478.js +1 -0
  17. package/cjs/renditions-fed22c12.js +1 -0
  18. package/cjs/resolution-e46c9615.js +1 -0
  19. package/cjs/series-1eae1783.js +1 -0
  20. package/cjs/series-v2-7afcdd56.js +1 -0
  21. package/cjs/series-v2-ec4f5c62.js +1 -0
  22. package/cjs/settings-icon-70f8857a.js +1 -0
  23. package/cjs/skin-3544db58.js +1 -0
  24. package/cjs/skin-381f7487.js +1 -0
  25. package/cjs/skin-7603ec07.js +1 -0
  26. package/cjs/skin-a0d604c4.js +1 -0
  27. package/cjs/skin-adff5a6d.js +1 -0
  28. package/cjs/skin-bb70fb84.js +1 -0
  29. package/cjs/skin-ecbacc98.js +1 -0
  30. package/cjs/util-ef2cd61e.js +1 -0
  31. package/cjs/videoSelector-2841d5f0.js +1 -0
  32. package/cjs/videoSelector-77a1a832.js +1 -0
  33. package/cjs/videojs_contrib_dash-018c8bde.js +1 -0
  34. package/esm/autoNextVideo-c994dec9.js +1 -0
  35. package/esm/browser-d4613b36.js +1 -0
  36. package/esm/bundle.css +725 -1734
  37. package/esm/caption-settings-4ab479b0.js +1 -0
  38. package/esm/captions-b7fd8308.js +1 -0
  39. package/esm/features-edf9c7f6.js +1 -0
  40. package/esm/generic-e9ae198a.js +1 -0
  41. package/esm/icons-8e47e640.js +1 -0
  42. package/esm/index-5d92eaa3.js +1 -0
  43. package/esm/index-8071a660.js +1 -0
  44. package/esm/index-fcfed9c1.js +1 -0
  45. package/esm/index.js +1 -1
  46. package/esm/multicamv2-853dd85c.js +1 -0
  47. package/esm/multicamv2-d32e890a.js +1 -0
  48. package/esm/nextEpisodeButton-b70baf9b.js +1 -0
  49. package/esm/playlist-63a5a214.js +1 -0
  50. package/esm/renditions-4c09c626.js +1 -0
  51. package/esm/resolution-920515d1.js +1 -0
  52. package/esm/series-164695fe.js +1 -0
  53. package/esm/series-v2-a9afbd40.js +1 -0
  54. package/esm/series-v2-d58fba59.js +1 -0
  55. package/esm/settings-icon-366126fa.js +1 -0
  56. package/esm/skin-20d1587b.js +1 -0
  57. package/esm/skin-3138b8af.js +1 -0
  58. package/esm/skin-53bbe2ba.js +1 -0
  59. package/esm/skin-58b9263c.js +1 -0
  60. package/esm/skin-ac85d695.js +1 -0
  61. package/esm/skin-c126564a.js +1 -0
  62. package/esm/skin-d77e8fa7.js +1 -0
  63. package/esm/util-80257541.js +1 -0
  64. package/esm/videoSelector-0c3cb328.js +1 -0
  65. package/esm/videoSelector-da90e6d0.js +1 -0
  66. package/esm/videojs_contrib_dash-f7d94714.js +1 -0
  67. package/package.json +3 -6
  68. package/cjs/autoNextVideo-54a8a49e.js +0 -1
  69. package/cjs/browser-b4213cb7.js +0 -1
  70. package/cjs/caption-settings-4edadfe5.js +0 -1
  71. package/cjs/captions-393835e9.js +0 -1
  72. package/cjs/features-8ccce5cb.js +0 -1
  73. package/cjs/generic-cf4b06d0.js +0 -1
  74. package/cjs/icons-bacdb330.js +0 -1
  75. package/cjs/index-1cd04c8b.js +0 -1
  76. package/cjs/index-3f0492aa.js +0 -1
  77. package/cjs/index-bf6dde3f.js +0 -1
  78. package/cjs/index-ee4e22d6.js +0 -1
  79. package/cjs/multicamv2-84aa0456.js +0 -1
  80. package/cjs/multicamv2-fb56bab1.js +0 -1
  81. package/cjs/nextEpisodeButton-a2bd48c7.js +0 -1
  82. package/cjs/playlist-ffa59fac.js +0 -1
  83. package/cjs/renditions-17c543e3.js +0 -1
  84. package/cjs/resolution-7e0a2fe4.js +0 -1
  85. package/cjs/series-547835df.js +0 -1
  86. package/cjs/series-v2-214a3bb6.js +0 -1
  87. package/cjs/series-v2-ba70e761.js +0 -1
  88. package/cjs/settings-icon-0cbc8b5f.js +0 -1
  89. package/cjs/skin-079b0930.js +0 -1
  90. package/cjs/skin-08116b1b.js +0 -1
  91. package/cjs/skin-0f88b8d8.js +0 -1
  92. package/cjs/skin-23eda0a7.js +0 -1
  93. package/cjs/skin-3338cc6f.js +0 -1
  94. package/cjs/skin-43ce1430.js +0 -1
  95. package/cjs/skin-4a202e70.js +0 -1
  96. package/cjs/skin-7b9006f8.js +0 -1
  97. package/cjs/skin-b3999029.js +0 -1
  98. package/cjs/skin-deb410a6.js +0 -1
  99. package/cjs/skin-eabf5eb1.js +0 -1
  100. package/cjs/util-2487e498.js +0 -1
  101. package/cjs/videoSelector-d37a3677.js +0 -1
  102. package/cjs/videoSelector-ff9f89e0.js +0 -1
  103. package/cjs/videojs-dash5.es-0d7dcdf9.js +0 -1
  104. package/esm/autoNextVideo-2dae5124.js +0 -1
  105. package/esm/browser-8414342e.js +0 -1
  106. package/esm/caption-settings-b7ccde0e.js +0 -1
  107. package/esm/captions-5dc8f704.js +0 -1
  108. package/esm/features-9d5fdf7e.js +0 -1
  109. package/esm/generic-66d1506b.js +0 -1
  110. package/esm/icons-b212fe63.js +0 -1
  111. package/esm/index-144e82ca.js +0 -1
  112. package/esm/index-236cca97.js +0 -1
  113. package/esm/index-527907c0.js +0 -1
  114. package/esm/index-5e046049.js +0 -1
  115. package/esm/multicamv2-14c2a659.js +0 -1
  116. package/esm/multicamv2-163da219.js +0 -1
  117. package/esm/nextEpisodeButton-fcfc868e.js +0 -1
  118. package/esm/playlist-ec59d28b.js +0 -1
  119. package/esm/renditions-92e03207.js +0 -1
  120. package/esm/resolution-ff76ef38.js +0 -1
  121. package/esm/series-39ee26d4.js +0 -1
  122. package/esm/series-v2-c7ca8aea.js +0 -1
  123. package/esm/series-v2-cfb1e0d9.js +0 -1
  124. package/esm/settings-icon-732bddc8.js +0 -1
  125. package/esm/skin-078dbbbb.js +0 -1
  126. package/esm/skin-0c6cc433.js +0 -1
  127. package/esm/skin-1f7cd934.js +0 -1
  128. package/esm/skin-45eb5003.js +0 -1
  129. package/esm/skin-4b55cb89.js +0 -1
  130. package/esm/skin-57c031df.js +0 -1
  131. package/esm/skin-5c99fa22.js +0 -1
  132. package/esm/skin-8615e53a.js +0 -1
  133. package/esm/skin-8a617b92.js +0 -1
  134. package/esm/skin-bd68eaf1.js +0 -1
  135. package/esm/skin-d8724e3c.js +0 -1
  136. package/esm/util-c4f931f0.js +0 -1
  137. package/esm/videoSelector-9fbd4736.js +0 -1
  138. package/esm/videoSelector-db7d4cb6.js +0 -1
  139. package/esm/videojs-dash5.es-792e6bc2.js +0 -1
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import r from"@babel/runtime/helpers/getPrototypeOf";import t from"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import i from"video.js";import{P as n}from"./icons-b212fe63.js";import{J as d,f as a}from"./generic-66d1506b.js";import{d as l}from"./skin-1f7cd934.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}var p=i.getComponent("Component"),c=function(){function d(o){var t,i,n,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),i=this,a=[o,l],n=r(n=d),(t=s(i,m()?Reflect.construct(n,a||[],r(i).constructor):n.apply(i,a))).playerId=l.playerId,t.seriesData=l.sres,t.currentVideoData=l.res,t.initialiseStructure(),t.loadCSS(),t}return t(d,p),o(d,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"play-next"}),o=i.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(n(window.controlsColor?window.controlsColor:"white"))});return i.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then(function(e){var o=document.createElement("style");o.id="multicam",o.append("".concat(e.default)),document.head.appendChild(o)})}},{key:"initialiseStructure",value:function(){var e=this.el(),o=i.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),s=i.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=i.dom.createEl("div",{className:"nextep-meta-details next-margin"}),t=i.dom.createEl("div",{className:"next-eps-image"}),n=i.dom.createEl("div",{className:"next-eps-description"});i.dom.appendContent(r,t),i.dom.appendContent(r,n),i.dom.appendContent(o,s),i.dom.appendContent(o,r),this.toggleContentOnHover(e,o),i.dom.appendContent(e,o)}},{key:"toggleContentOnHover",value:function(e,o){e.addEventListener("mouseover",function(){i.dom.removeClass(o,"nextepisode-hidden")}),o.addEventListener("mouseover",function(){i.dom.removeClass(o,"nextepisode-hidden")}),e.addEventListener("mouseout",function(){i.dom.addClass(o,"nextepisode-hidden")}),o.addEventListener("mouseout",function(){i.dom.addClass(o,"nextepisode-hidden")})}}])}(),u=function(e,o){var s=j(e,o.video.gist.id),r=v(e[s],o.video.gist.id),t=y(e[s],r);f(t.nextEp)},j=function(e,o){for(var s=-1,r=0;r<e.length;r++)for(var t=0;t<e[r].episodes.length;t++)if(e[r].episodes[t].id===o){s=r;break}return s},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0;if(!(e&&o>=0))return{prevEp:null,nextEp:null};var s=e.episodes.length,r=o-1>=0?o-1:s-1,t=(o+1)%s,i=s>1?e.episodes[r]:null,n=s>1?e.episodes[t]:null;return r===t&&(0===r?n=null:i=null),{prevEp:i,nextEp:n,prevEpIdx:r,nextEpIdx:t}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,s=null;return e?(e.episodes.forEach(function(e,r){e.gist.id===o&&(s=r)}),s):null},f=function(e){var o,s;i.dom.$(".next-eps"),i.dom.$(".play-next").onclick=function(){var o;d("my-player",null==e||null===(o=e.gist)||void 0===o?void 0:o.id).then(function(e){a(e.response)})};var r=i.dom.$(".next-eps-image"),t=l("<img src=".concat(null==e||null===(o=e.gist)||void 0===o?void 0:o.videoImageUrl," />")),n=null==t?void 0:t.firstChild;null==r||r.append(n);for(var m=i.dom.$(".next-eps-description"),p=l("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(s=e.gist)||void 0===s?void 0:s.description,"</div>"));null!=p&&p.firstChild;)null==m||m.appendChild(p.firstChild)};export{c as default,u as initaliseFunctionality};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.array.concat.js";import i from"video.js";import{E as a,f as l}from"./icons-b212fe63.js";import{J as n,T as d}from"./generic-66d1506b.js";import{a as c}from"./autoNextVideo-2dae5124.js";import{e as m,g as p}from"./skin-1f7cd934.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-c4f931f0.js";function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}var y=i.getComponent("Component"),j=function(){function j(s){var r,i,a,l,n,d,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,j),n=this,m=[s,p],d=t(d=j),(l=o(n,u()?Reflect.construct(d,m||[],t(n).constructor):d.apply(n,m))).playerId=p.playerId,l.seriesData=p.sres,l.videos=null==p||null===(r=p.playlist)||void 0===r?void 0:r.content,l.cb=(null==p||null===(i=p.playlist)||void 0===i?void 0:i.cb)||null,l.autoNext=(null==p||null===(a=p.playlist)||void 0===a?void 0:a.autoNext)||!1,l.currentVideoData=p.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&c({playerId:l.playerId,content:l.videos,cb:l.cb}),l}return r(j,y),s(j,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var s=i.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(a())});return i.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then(function(e){var s=document.createElement("style");s.id="playlist-selection",s.append("".concat(e.default)),document.head.appendChild(s)})}},{key:"initialiseStructure",value:function(){var e=this.el(),s=i.dom.createEl("div",{className:"selection-container hidden"});i.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var o;null!==(o=s.classList)&&void 0!==o&&o.contains("hidden")?(m(),s.classList.remove("hidden"),e.classList.add("open"),s.style.right="0px"):(s.classList.add("hidden"),e.classList.remove("open"),s.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(t,"px"),i.dom.appendContent(e,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=i.dom.createEl("div",{className:"playlist-selector-head"}),r=i.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(l())});r.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var a=i.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=i.dom.createEl("div",{className:"playlist-selector-content"}),m=function(e){var o,t,r=i.dom.createEl("div",{className:"playlist-container"}),a=i.dom.createEl("div",{className:"playlist-section",index:e}),l=i.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(o=s.videos[e])||void 0===o?void 0:o.title)||"")}),m=i.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(s.videos[e].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});i.dom.appendContent(a,l),i.dom.appendContent(a,m),i.dom.appendContent(r,a),i.dom.appendContent(c,r);var p=i.dom.createEl("div",{className:"playlist-section-expanded hidden"}),u=i.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(t=s.videos[e])||void 0===t?void 0:t.description)||"")}),y=i.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(s.videos[e].img,")"),i.dom.appendContent(p,y),i.dom.appendContent(p,u),i.dom.appendContent(r,p),i.dom.appendContent(c,r),p.onclick=function(o){o.stopPropagation(),d(e+1),n(s.playerId,s.videos[e].id).then(function(e){null!=s&&s.cb&&s.cb(e)}).catch(function(e){null!=s&&s.cb&&s.cb(e)})},a.onclick=function(e){var s,o,t,i=document.getElementsByClassName("playlist-selector-content")[0].childNodes,a=(i=[].concat(i))[e.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=a&&null!==(s=a.classList)&&void 0!==s&&s.contains("hidden")?(r.style.backgroundColor="#0000007d",null==a||null===(o=a.classList)||void 0===o||o.remove("hidden")):(null==a||null===(t=a.classList)||void 0===t||t.add("hidden"),r.style.backgroundColor="unset")}},u=0;u<this.videos.length;u++)m(u);i.dom.appendContent(t,r),i.dom.appendContent(t,a),i.dom.appendContent(e,t),i.dom.appendContent(e,c),p(this.playerId).on("fullscreenchange",function(){var o=document.getElementById(s.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(t,"px")}})}}])}();export{j as default};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.array.sort.js";import{g as l}from"./skin-1f7cd934.js";var i=function(i){var n,o=l(i),t=[];if((null==o||null===(n=o.tech_)||void 0===n?void 0:n.vhs)||!1){var e,d,r=null==o||null===(e=o.tech_)||void 0===e||null===(d=e.vhs)||void 0===d?void 0:d.representations();(null==r?void 0:r.length)>0&&(t=null==r?void 0:r.sort(function(l,i){return(null==l?void 0:l.height)==(null==i?void 0:i.height)?(null==i?void 0:i.bandwidth)-(null==l?void 0:l.bandwidth):(null==i?void 0:i.height)-(null==l?void 0:l.height)}))}else{var u,v,h=null==o||null===(u=o.dash)||void 0===u||null===(v=u.mediaPlayer)||void 0===v?void 0:v.getBitrateInfoListFor("video");(null==h?void 0:h.length)>0&&(t=null==h?void 0:h.sort(function(l,i){return i.height-l.height}))}return t};export{i as g};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/web.dom-collections.for-each.js";import d from"video.js";import{g as s,p as l}from"./skin-1f7cd934.js";import{d as r}from"./browser-8414342e.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.regexp.exec.js";function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}require("./resolution.css");var u=d.getComponent("Component"),m=function(){function s(t){var i,l,r,u,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,s),l=this,u=[t,m],r=o(r=s),i=n(l,c()?Reflect.construct(r,u||[],o(l).constructor):r.apply(l,u)),a(i,"masterRenditions",[]),a(i,"addCustomFont",function(e){var t=d.dom.createEl("div",{className:"font hideCustomFonts"}),n=d.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});d.dom.appendContent(t,n);var o=d.dom.createEl("div",{className:"font-options"});o.style.fontSize="12px",i.fontSizeOptions.map(function(e,t){var n=d.dom.createEl("div",{className:"options",innerHTML:'<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=').concat(e,' name="item" />\n <label class="radio-btn-lable" for=').concat(e,">").concat(e,"pt</label>\n </div>")});n.addEventListener("click",function(e){var t=e.target.id;i.changeFontSize(t)}),d.dom.appendContent(o,n)}),d.dom.appendContent(t,o),d.dom.appendContent(e,t)}),a(i,"resetRenditions",function(){[].concat(document.getElementsByClassName("rendition")).map(function(e){d.dom.removeClass(e,"selected")})}),i.playerId=null==m?void 0:m.playerId,i.skin=null==m?void 0:m.skin,i.icon=null==m?void 0:m.icon,i.masterRenditions=[],i.fontSizeOptions=[10,12,14],i.createRenditions(m.renditions),window.height=null,i}return i(s,u),t(s,[{key:"toggleContentOnHover",value:function(e,t){var n=d.dom.$(".setting-icon",e);n.addEventListener("mouseover",function(){d.dom.removeClass(t,"resolution_hidden")}),t.addEventListener("mouseover",function(){d.dom.removeClass(t,"resolution_hidden")}),n.addEventListener("mouseout",function(){d.dom.addClass(t,"resolution_hidden")}),t.addEventListener("mouseout",function(){d.dom.addClass(t,"resolution_hidden")})}},{key:"changeFontSize",value:function(e){var t=d.dom.$(".renditions",this.contentEl()),n=d.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el(),o=d.dom.$(".setting-icon",this.el()),i=l(this.icon);if(o.append(i),"live"===this.skin){var a=document.createTextNode(" Settings");o.appendChild(a)}var s=d.dom.createEl("div",{className:"content resolution_hidden"}),c=d.dom.createEl("div",{innerHTML:"Quality",className:"title"}),u=d.dom.createEl("div",{className:"resolution"});d.dom.appendContent(u,c),this.toggleContentOnHover(n,s);var m=d.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(e.map(function(e,n){var o,i,a=d.dom.createEl("div",{className:"relative"}),s=(((null==e||null===(o=e.playlist)||void 0===o?void 0:o.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes.BANDWIDTH))/1048576).toFixed(1),l="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");l="".concat(e.height,"p @ ").concat(s,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var r=d.dom.createEl("p",{innerHTML:l,className:"rendition",res:e.height,bandwidth:e.bandwidth});d.dom.appendContent(a,r),d.dom.appendContent(m,a),r.addEventListener("click",function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,h(t.playerId,e.target),d.dom.addClass(r,"selected"))})}),this.addAutoRendition("nondrm",m),"Safari"!=r()&&this.addDynamicSwitchIfAuto()):(e.map(function(e,n){var o=d.dom.createEl("div",{className:"relative"}),i=(e.bitrate/1e6).toFixed(1),a="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(a="".concat(e.height,"p @ ").concat(i,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var s=d.dom.createEl("p",{innerHTML:a,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});d.dom.appendContent(o,s),d.dom.appendContent(m,o),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,h(t.playerId,e.target),d.dom.addClass(s,"selected"))})}),this.addAutoRendition("drm",m)),d.dom.appendContent(u,m),d.dom.appendContent(s,u),d.dom.appendContent(n,s)}},{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 o=null;e&&e.on("cuechange",function(){var t,n,i=e.activeCues[0];if(console.log((null==i||null===(t=i.value)||void 0===t||null===(n=t.resolution)||void 0===n?void 0:n.height)+"p"),i&&document.querySelector(".auto.selected")){var a,d,s,l,r,c,u,m;if(null!=i&&null!==(a=i.value)&&void 0!==a&&null!==(d=a.resolution)&&void 0!==d&&d.height&&o!==(null==i||null===(s=i.value)||void 0===s||null===(l=s.resolution)||void 0===l?void 0:l.height))document.querySelector(".auto.selected").textContent="Auto ".concat(null==i||null===(u=i.value)||void 0===u||null===(m=u.resolution)||void 0===m?void 0:m.height,"p");o=null==i||null===(r=i.value)||void 0===r||null===(c=r.resolution)||void 0===c?void 0:c.height}})}},{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"container"}),t=d.dom.createEl("div",{className:"setting-icon"});return d.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var o,i,a,s,l=null===(o=this.player_)||void 0===o||null===(i=o.tech_)||void 0===i?void 0:i.vhs.selectPlaylist().attributes.RESOLUTION.height,r=null===(a=this.player_)||void 0===a||null===(s=a.tech_)||void 0===s?void 0:s.vhs.selectPlaylist().attributes.BANDWIDTH,c=d.dom.createEl("div",{className:"relative"}),u=d.dom.createEl("p",{innerHTML:"Auto ".concat(l,"p"),className:"rendition auto selected",bandwidth:r,res:l});u.addEventListener("click",function(e){window.height!==e.target.res&&(n.resetRenditions(),d.dom.addClass(u,"selected"),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,h(n.playerId,null,!0))}),d.dom.appendContent(c,u),d.dom.appendContent(t,c)}else{var m=d.dom.createEl("div",{className:"relative"}),p=d.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});p.addEventListener("click",function(e){n.resetRenditions(),d.dom.addClass(p,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,h(n.playerId,null,!0)}),d.dom.appendContent(m,p),d.dom.appendContent(t,m)}}}])}(),h=function(e,t,n){var o,i=s(e),a=null==t?void 0:t.bandwidth;if((null==i||null===(o=i.tech_)||void 0===o?void 0:o.vhs)||!1){i.tech_.vhs.representations().forEach(function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)}),i.handleTechPlaying_();var l=i.currentTime();i.currentTime(0),setTimeout(function(){i.currentTime(l)},100);var r=d.dom.$(".content");r&&d.dom.addClass(r,"resolution_hidden")}else{var c=null==t?void 0:t.qualityIndex;if(n){var u,m;null==i||null===(u=i.dash)||void 0===u||null===(m=u.mediaPlayer)||void 0===m||m.resetSettings()}else{var h,p,v,g;null==i||null===(h=i.dash)||void 0===h||null===(p=h.mediaPlayer)||void 0===p||p.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==i||null===(v=i.dash)||void 0===v||null===(g=v.mediaPlayer)||void 0===g||g.setQualityFor("video",c,!0);var f=i.currentTime();i.currentTime(0),setTimeout(function(){i.currentTime(f)},100);var w=d.dom.$(".content");w&&d.dom.addClass(w,"resolution_hidden")}}};export{m as default,h as playSelectedResolution};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/regenerator";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.map.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import d from"video.js";import{U as c,G as l,J as m,f as p,F as u}from"./generic-66d1506b.js";import{E as j}from"./icons-b212fe63.js";import{d as y}from"./skin-1f7cd934.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";var v=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h,g=d.getComponent("Component"),b=function(){function e(r){var i,n,d,c,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,e),n=this,c=[r,l],d=t(d=e),i=o(n,f()?Reflect.construct(d,c||[],t(n).constructor):d.apply(n,c)),a(i,"seriesData",[]),i.seriesData=l.seriesData,h=l.playerId,L(i.el(),i.seriesData),i.loadCSS(),i}return i(e,g),r(e,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then(function(e){var s=document.createElement("style");s.id="series",s.append("".concat(e.default)),document.head.appendChild(s)})}}])}();function w(){return(w=e(n.mark(function e(s,r,o,t){return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:l(h),v(h),m(h,r).then(function(e){p(e.response),u(h)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function C(e,s,r,o){var t=document.getElementById("season-list"),i=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var n=e.episodes.map(function(e,s){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(s+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")}).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var d=y(n);null!=d&&d.firstChild;)a.appendChild(d.firstChild);!function(e){c(e).then(function(e){var s=e.data,r=document.querySelectorAll("#progress-div");r&&s.map(function(e,s){e&&e.watchedPercentage&&r[s]&&(r[s].style.width=e.watchedPercentage+"px")})}).catch(function(e){})}(o),t.classList.toggle("hide-container"),i.classList.toggle("hide-container");var l=document.querySelectorAll(".details-wrapper"),m=document.querySelectorAll("#episode-title"),p=document.querySelectorAll(".meta-details"),u=document.querySelector("#episodes-back-btn"),j=e.id,v=e.episodes;u.addEventListener("click",function(){return function(e,s){e.classList.remove("hide-container"),s.classList.add("hide-container")}(t,i)});for(var f=function(s){l[s].addEventListener("click",function(){return function(e,s,r){var o=s.querySelector(".meta-details");s.classList.toggle("episode-active"),o.classList.toggle("metadetails-active"),r.forEach(function(s,o){o!==e&&(r[o].classList.remove("episode-active"),r[o].querySelector(".meta-details").classList.remove("metadetails-active"))})}(s,m[s],m)}),p[s].addEventListener("click",function(){return function(e,s,r,o){return w.apply(this,arguments)}(s,v[s].id,r,m)}),e.episodes[s].id==j&&m[s].classList.add("highlight-active-eps")},h=0;h<l.length;h++)f(h)}function L(e,s){for(var r='<div class="hover-div"></div>\n '.concat(j(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map(function(e,s){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("")}(s),'\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 o=y(r);null!=o&&o.firstChild;)e.appendChild(o.firstChild)}export{L as customSeasonList,C as handleSeasonChange,b as seriesModule};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";import"core-js/modules/es.array.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.array.concat.js";import i from"video.js";import{e as n,f as a,B as l}from"./icons-b212fe63.js";import{V as d,J as c,j as m,W as u,b as p,C as v}from"./generic-66d1506b.js";import{e as y,s as j,p as h,j as f,g,i as C}from"./skin-1f7cd934.js";import{a as b}from"./autoNextVideo-2dae5124.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-c4f931f0.js";function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}var x=i.getComponent("Component"),E=function(){function E(s){var r,i,n,a,l,c,p,v,y,j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,E),p=this,y=[s,j],v=t(v=E),(c=o(p,N()?Reflect.construct(v,y||[],t(p).constructor):v.apply(p,y))).playerId=j.playerId,c.seriesData=j.sres,c.videos=null==j||null===(r=j.sres)||void 0===r?void 0:r.seasons,c.currentVideoData=j.res,c.initialiseStructure(),c.loadCSS(),c.selectedSeason=0,c.cb=null==j||null===(i=j.series)||void 0===i?void 0:i.cb,c.autoPlayNext=(null==j||null===(n=j.series)||void 0===n?void 0:n.autoPlayNext)||!1,sessionStorage.getItem("token"),c.watchMap=m(),null!==(a=c)&&void 0!==a&&a.autoPlayNext&&null!=j&&null!==(l=j.series)&&void 0!==l&&l.enable){var h,f,g,C,x=null==j||null===(h=j.sres)||void 0===h?void 0:h.seasons,k=[];x.map(function(e){k.push.apply(k,e.episodes)}),u(k),d(null===(f=c.options_)||void 0===f||null===(g=f.res)||void 0===g||null===(C=g.video)||void 0===C?void 0:C.id),b({playerId:c.playerId,content:k,cb:c.cb,series:null==j?void 0:j.sres})}return c}return r(E,x),s(E,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=i.dom.createEl("button",{className:"series-selector-icon",title:"series selector",innerHTML:"".concat(n())});return i.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then(function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)})}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(y(),e.classList.remove("hidden"),o.classList.add("open"),j(this.playerId,e)):(e.classList.add("hidden"),o.classList.remove("open"))}},{key:"handleTabIndexSelector",value:function(){var e,s=document.getElementsByClassName("season-holder");null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=0);for(var o=0;o<(null==s?void 0:s.length);o++)s[o].tabIndex=0}},{key:"handleCloseTabIndex",value:function(){var e,s=document.getElementsByClassName("season-holder");null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=-1);for(var o=0;o<(null==s?void 0:s.length);o++)s[o]&&(s[o].tabIndex=-1)}},{key:"initialiseStructure",value:function(){var e=this,s=this.el(),o=i.dom.createEl("div",{className:"series-selection-container hidden"});i.dom.$(".series-selector-icon",this.el()).onclick=function(){e.toggleOpenClose(o),e.handleTabIndexSelector()};var t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(r,"px"),i.dom.appendContent(s,o),t.style.overflow="hidden",this.addFunctionality(o)}}},{key:"handleSeriesCloseIcon",value:function(e,s,o){if("series-selector-cross-icon"===e.className)s.classList.add("hidden"),o.classList.remove("open"),this.handleCloseTabIndex();else if("series-selector-back-icon"===e.className){var t=i.dom.$(".series-selector-content",this.el());for(i.dom.$(".series-selector-cross-icon",this.el()),e.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=this.createSeasonLister();for(i.dom.appendContent(t,r),i.dom.$(".series-selector-title",this.el()).textContent="Seasons";null!=e&&e.firstChild;)e.removeChild(e.firstChild);var n=h(a());e.appendChild(n)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=i.dom.createEl("div",{className:"series-selector-head"}),r=i.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:"".concat(a())});r.onclick=function(){s.handleSeriesCloseIcon(r,e,o)},r.onkeydown=function(t){"Enter"===t.key&&s.handleSeriesCloseIcon(r,e,o)};var n=i.dom.createEl("div",{className:"series-selector-title",ariaLabel:"season title",innerHTML:"Seasons"}),l=i.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();i.dom.appendContent(l,d),i.dom.appendContent(t,r),i.dom.appendContent(t,n),i.dom.appendContent(e,t),i.dom.appendContent(e,l),f(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;g(this.playerId);for(var s=p(),o=i.dom.createEl("div",{className:"season-container"}),t=function(t){var r,n=document.createElement("label");n.className="season-holder",n.ariaLabel="season-".concat(t+1),n.role="button",n.type="button",n.setAttribute("for","season-".concat(t));var a=document.createElement("div");a.className="season - ".concat(t),a.textContent=null===(r=s[t])||void 0===r?void 0:r.title;var l=i.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(s){v.set(t),e.showSeasonDetails(t)},n.onkeydown=function(s){"Enter"===s.key&&(v.set(t),e.showSeasonDetails(t))},i.dom.appendContent(n,l),i.dom.appendContent(n,a),i.dom.appendContent(o,n)},r=0;r<s.length;r++)t(r);return o}},{key:"loadSeriesAssetById",value:function(e,s){var o,t=this;d(null===(o=e[s])||void 0===o?void 0:o.id),c(this.playerId,e[s].id).then(function(e){null!=t&&t.cb&&t.cb(e)}).catch(function(e){null!=t&&t.cb&&t.cb(e)})}},{key:"getSeasonDetailsContainer",value:function(e,s){var o=this;e=e.map(function(e){var s,t,r,i,n,a,l,d,c;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:(null==e||null===(t=e.gist)||void 0===t||null===(r=t.imageGist)||void 0===r?void 0:r.r16x9)||(null===(i=window)||void 0===i||null===(n=i.app_data)||void 0===n||null===(a=n.appcmsMain)||void 0===a||null===(l=a.images)||void 0===l?void 0:l.placeholderCover),watchedPercentage:(null==o||null===(d=o.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}});for(var t=function(t){var r,n,a,l,d,c=i.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),m=i.dom.createEl("div",{className:"series-section-data",index:t,innerHTML:"".concat((null===(r=e[t])||void 0===r?void 0:r.title)||"")});i.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(n=e[t])||void 0===n?void 0:n.title)||"")}),i.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[t].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var u=i.dom.createEl("div",{className:"series-section-image"}),p=(null===(a=e[t])||void 0===a?void 0:a.description)||"";(null===(l=p)||void 0===l?void 0:l.length)>170&&(p=p.substr(0,170)+"..."),i.dom.createEl("div",{className:"series-description",innerHTML:"".concat(p||"")});var v=i.dom.createEl("img",{className:"series-image"});v.src="".concat(C(null===(d=e[t])||void 0===d?void 0:d.img)),v.alt="Episode ".concat(t+1),i.dom.appendContent(u,v),i.dom.appendContent(c,u),i.dom.appendContent(c,m),i.dom.appendContent(s,c),c.onclick=function(s){s.stopPropagation(),o.loadSeriesAssetById(e,t)},c.onkeydown=function(s){"Enter"===s.key&&(s.stopPropagation(),o.loadSeriesAssetById(e,t))},m.onclick=function(e){var s,o,t,r=document.getElementsByClassName("series-selector-content")[0].childNodes,i=(r=[].concat(r))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=i&&null!==(s=i.classList)&&void 0!==s&&s.contains("hidden")?(c.style.backgroundColor="#0000007d",null==i||null===(o=i.classList)||void 0===o||o.remove("hidden")):(null==i||null===(t=i.classList)||void 0===t||t.add("hidden"),c.style.backgroundColor="unset")}},r=0;r<e.length;r++)t(r);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=i.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=p()[e].episodes;this.getSeasonDetailsContainer(o,s);var t=i.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=h(l());t.appendChild(r),i.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}])}();export{E as default};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";import"core-js/modules/es.array.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.array.concat.js";import i from"video.js";import{E as n,f as a,B as l}from"./icons-b212fe63.js";import{j as d,W as c,V as m,b as p,C as u,J as v}from"./generic-66d1506b.js";import{e as j,p as y,g as h}from"./skin-1f7cd934.js";import{a as f}from"./autoNextVideo-2dae5124.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-c4f931f0.js";function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}var C=i.getComponent("Component"),b=function(){function b(s){var r,i,n,a,l,p,u,v,j,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,b),u=this,j=[s,y],v=t(v=b),(p=o(u,g()?Reflect.construct(v,j||[],t(u).constructor):v.apply(u,j))).playerId=y.playerId,p.seriesData=y.sres,p.videos=null==y||null===(r=y.sres)||void 0===r?void 0:r.seasons,p.currentVideoData=y.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==y||null===(i=y.series)||void 0===i?void 0:i.cb,p.autoPlayNext=(null==y||null===(n=y.series)||void 0===n?void 0:n.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=d(),null!==(a=p)&&void 0!==a&&a.autoPlayNext&&null!=y&&null!==(l=y.series)&&void 0!==l&&l.enable){var h,C,N,x,E=null==y||null===(h=y.sres)||void 0===h?void 0:h.seasons,k=[];E.map(function(e){k.push.apply(k,e.episodes)}),c(k),m(null===(C=p.options_)||void 0===C||null===(N=C.res)||void 0===N||null===(x=N.video)||void 0===x?void 0:x.id),f({playerId:p.playerId,content:k,cb:p.cb,series:null==y?void 0:y.sres})}return p}return r(b,C),s(b,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=i.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(n())});return i.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then(function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)})}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(j(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,s=this.el(),o=i.dom.createEl("div",{className:"series-selection-container hidden"});i.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(r,"px"),i.dom.appendContent(s,o),t.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=i.dom.createEl("div",{className:"series-selector-head"}),r=i.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a())});r.onclick=function(){if("series-selector-cross-icon"===r.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===r.className){var t=i.dom.$(".series-selector-content",s.el());for(i.dom.$(".series-selector-cross-icon",s.el()),r.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var n=s.createSeasonLister();for(i.dom.appendContent(t,n),i.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var l=y(a());r.appendChild(l)}};var n=i.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=i.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();i.dom.appendContent(l,d),i.dom.appendContent(t,r),i.dom.appendContent(t,n),i.dom.appendContent(e,t),i.dom.appendContent(e,l),h(this.playerId).on("fullscreenchange",function(){var o=document.getElementById(s.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(t,"px")}})}},{key:"createSeasonLister",value:function(){var e=this;h(this.playerId);for(var s=p(),o=i.dom.createEl("div",{className:"season-container"}),t=function(t){var r,n=document.createElement("label");n.className="season-holder",n.setAttribute("for","season-".concat(t));var a=document.createElement("div");a.className="season - ".concat(t),a.textContent=null===(r=s[t])||void 0===r?void 0:r.title;var l=i.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(s){u.set(t),e.showSeasonDetails(t)},i.dom.appendContent(n,l),i.dom.appendContent(n,a),i.dom.appendContent(o,n)},r=0;r<s.length;r++)t(r);return o}},{key:"getSeasonDetailsContainer",value:function(e,s){var o=this;e=e.map(function(e){var s,t,r,i,n;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:null==e||null===(t=e.gist)||void 0===t||null===(r=t.imageGist)||void 0===r?void 0:r.r16x9,watchedPercentage:(null==o||null===(i=o.watchMap)||void 0===i||null===(n=i.get(null==e?void 0:e.id))||void 0===n?void 0:n.p)||0}});for(var t=function(t){var r,n,a,l,d,c,p,u=i.dom.createEl("div",{className:"series-container"}),j=i.dom.createEl("div",{className:"series-section",index:t}),y=i.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(r=e[t])||void 0===r?void 0:r.title)||"")}),h=i.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[t].watchedPercentage,"%' class='series-progress-bar-value'></div>")});i.dom.appendContent(j,y),i.dom.appendContent(j,h),i.dom.appendContent(u,j),i.dom.appendContent(s,u);var f=i.dom.createEl("div",{className:"series-section-expanded hidden"}),g=(null===(n=e[t])||void 0===n?void 0:n.description)||"";(null===(a=g)||void 0===a?void 0:a.length)>170&&(g=g.substr(0,170)+"...");var C=i.dom.createEl("div",{className:"series-description",innerHTML:"".concat(g||"")}),b=i.dom.createEl("img",{className:"series-image"});b.src="".concat((null===(l=e[t])||void 0===l?void 0:l.img)||(null===(d=window)||void 0===d||null===(c=d.customData)||void 0===c?void 0:c.fallbackImage)),b.alt="".concat(null===(p=e[t])||void 0===p?void 0:p.title),i.dom.appendContent(f,b),i.dom.appendContent(f,C),i.dom.appendContent(u,f),i.dom.appendContent(s,u),f.onclick=function(s){var r;s.stopPropagation(),m(null===(r=e[t])||void 0===r?void 0:r.id),v(o.playerId,e[t].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})},j.onclick=function(e){var s,o,t,r=document.getElementsByClassName("series-selector-content")[0].childNodes,i=(r=[].concat(r))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=i&&null!==(s=i.classList)&&void 0!==s&&s.contains("hidden")?(u.style.backgroundColor="#0000007d",null==i||null===(o=i.classList)||void 0===o||o.remove("hidden")):(null==i||null===(t=i.classList)||void 0===t||t.add("hidden"),u.style.backgroundColor="unset")}},r=0;r<e.length;r++)t(r);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=i.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=p()[e].episodes;this.getSeasonDetailsContainer(o,s);var t=i.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=y(l());t.appendChild(r),i.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}])}();export{b as default};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import n from"@babel/runtime/helpers/inherits";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.sort.js";import"core-js/modules/es.array.concat.js";import i from"video.js";import{g as r,f as s,T as l}from"./icons-b212fe63.js";import{e as d,s as c,f as u,j as m,g as p,d as v,p as h}from"./skin-1f7cd934.js";import{g as f}from"./renditions-92e03207.js";import{playSelectedResolution as g}from"./resolution-ff76ef38.js";import{g as y}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.number.to-fixed.js";import"./browser-8414342e.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.regexp.exec.js";function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}var C=i.getComponent("Component"),b=function(){function b(t){var n,i,r,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),i=this,s=[t,l],r=o(r=b),(n=a(i,j()?Reflect.construct(r,s||[],o(i).constructor):r.apply(i,s))).playerId=l.playerId,n.seriesData=l.sres,n.currentVideoData=l.res,n.initialiseStructure(),n.loadCSS(),n.resolutionBitrateMap,n}return n(b,C),t(b,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new Map,e.forEach(function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var o=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,o||1/0))}})}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),o=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!o)&&a>o}},{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(r())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./settings-icon-1fbc99bc.js").then(function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=i.dom.createEl("div",{className:"selection-container hidden"});i.dom.$(".settings-selector-icon",this.el()).onclick=function(){var o;null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(d(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",c(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(n),i.dom.appendContent(t,a),o.style.overflow="hidden",this.addFunctionality(a),u(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=i.dom.createEl("div",{className:"settings-selector-head"}),o=i.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(s())});o.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var n=i.dom.createEl("div",{className:"settings-selector-title",innerHTML:y("settingsTitle")||"Settings"}),r=i.dom.createEl("div",{className:"settings-selector-content"}),l=i.dom.createEl("div",{className:"settings-container"}),d=this.createVideoQualityContainer();i.dom.appendContent(l,d);var c=this.createAudioQualityContainer();i.dom.appendContent(l,c),i.dom.appendContent(a,o),i.dom.appendContent(a,n),i.dom.appendContent(e,a),i.dom.appendContent(e,r),i.dom.appendContent(r,l),m(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=p(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=i.dom.createEl("div",{className:"audio-language-container"}),o=i.dom.createEl("div",{className:"audio-language-container-title",innerHTML:y("audioLanguageText")||"Audio Language"});i.dom.appendContent(a,o);for(var n=function(e){var o,n=document.createElement("label");n.className="audio-language-holder",n.setAttribute("for","language-radio-".concat(e));var r=document.createElement("div");r.className="audio - ".concat(e),r.textContent=null==t||null===(o=t[e])||void 0===o?void 0:o.label;var s=i.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});s.setAttribute("type","radio"),1==t[e].enabled&&(s.checked=!0),s.onchange=function(a){t.map(function(e){e.enabled=!1}),t[e].enabled=!0},i.dom.appendContent(n,s),i.dom.appendContent(n,r),i.dom.appendContent(a,n)},r=0;r<t.length;r++)n(r);return a}}},{key:"createVideoQualityContainer",value:function(){var e=this,t=i.dom.createEl("div",{className:"video-quality-container"}),a=i.dom.createEl("div",{className:"video-quality-container-title",innerHTML:y("videoQualityText")||"Video Quality"});i.dom.appendContent(t,a);var o=[].concat(f(this.playerId),[{height:"Auto"}]).sort(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)});this.fillResolutionBitrateMap(o),g(this.playerId,"raw",!0);for(var n=function(a){var n,r,s,d=document.createElement("label"),c=document.createElement("div"),u=document.createElement("div");u.className="video-quality-bitrate-label",c.className="video-quality-holder",d.className="video-quality-label-container",d.setAttribute("for","quality".concat(a));var m=document.createElement("div");m.className="video-quality - ".concat(a);var p=(null==o||null===(n=o[a])||void 0===n?void 0:n.height)+"".concat("Auto"==(null==o||null===(r=o[a])||void 0===r?void 0:r.height)?"":"p"),f=document.createTextNode(p),j="".concat(e.isEnhancedBitrate(o[a])?y("enhancedBitrateLabel")||"Enhanced Bitrate":""),C=document.createTextNode(j);if(u.appendChild(C),m.appendChild(f),(null==o||null===(s=o[a])||void 0===s?void 0:s.height)>=720)for(var b=v("<span class='hd-rendition'> HD </span>");null!=b&&b.firstChild;)m.appendChild(b.firstChild);var E=i.dom.createEl("input",{className:"radio - ".concat(a," radio-btn"),id:"quality".concat(a),name:"quality-radio",rendata:"".concat(o[a]),checked:"".concat(a==o.length-1)});E.setAttribute("type","radio"),E.onchange=function(t){var n=o[a];"true"=="".concat("Auto"==o[a].height)?g(e.playerId,n,!0):g(e.playerId,n)};var N=document.createElement("span");N.className=j?"check-mark center":"check-mark";var k=h(l());N.appendChild(k),c.appendChild(E),c.appendChild(N),c.appendChild(m),i.dom.appendContent(d,c),d.appendChild(u),i.dom.appendContent(t,d)},r=0;r<o.length;r++)n(r);return t}}])}();export{b as default};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{g as e}from"./skin-1f7cd934.js";import{f as s,n as r}from"./features-9d5fdf7e.js";import{g as o}from"./renditions-92e03207.js";import{r as t}from"./captions-5dc8f704.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.string.includes.js";import"video.js";import"core-js/modules/es.reflect.construct.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.assign.js";import"./generic-66d1506b.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.array.sort.js";function m(m,i){import("./skin-271fa63f.js").then(function(e){var s=document.createElement("style");s.id="multiplayer_css",s.append("".concat(e.default)),document.head.appendChild(s)}),function(r,m){e(r).on("loadeddata",function(){var e;(null===(e=o(r))||void 0===e?void 0:e.length)>0&&s(r,m),null!=m&&m.disableCaptions&&t(r)})}(m,i),function(s){var o=e(s);o.controls(!1),r(s)}(m)}export{m as initialiseSkin};
@@ -1 +0,0 @@
1
- import{F as e,G as s}from"./generic-66d1506b.js";import{g as r}from"./skin-1f7cd934.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"video.js";import"core-js/modules/es.array.concat.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";function o(e){m(e),t(e)}var t=function(o){var t=r(o),m=document.getElementById("".concat(o));m&&m.addEventListener("touchstart",function(){t.paused()?e(o):s(o)})},m=function(e){var s=r(e);s.requestFullscreen=function(){},s.controlBar.hide()};export{o as initaliseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.string.includes.js";import e from"video.js";var n=function(n){return!!e.getPlayer("".concat(n))&&e.getPlayer("".concat(n))},t=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE","VL_SmartTV"],o=function(e){return!t.includes(e)},i=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},r=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},l=function(e){return r(e)},a=function(e,t){if(t){var o,i,r=n(t);if(r&&"function"==typeof r.el&&null!=r&&null!==(o=r.el())&&void 0!==o&&null!==(i=o.classList)&&void 0!==i&&i.contains("skin_defaultv2"))return void u(e)}var l=[].concat(document.querySelectorAll("[video-idx]"));console.log(l),l.map(function(n){var t=n.parentNode,o=n.getAttribute("video-idx");t.style.background=o==e?"gray":"none"})},u=function(e){[].concat(document.querySelectorAll("[video-idx]")).map(function(n){var t=n.getAttribute("video-idx");n.style.border=t==e?"2px solid white":"none"})},c=function(){var e=[].concat(document.getElementsByClassName("vjs-control vjs-button open"));null==e||e.map(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()})},d=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},s="",m=function(e,n){var t,o=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",o=document.getElementById(e);if(o&&s!==t){var i=window.getComputedStyle(o,null).getPropertyValue("height");n&&(n.style.height="".concat(i)),s=t}}(e,n)};window._orientationChangeHandler=o;window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(function(){o()},100)})},v=function(e,t){var o,i=n(e),r=n(e).el(),l=new ResizeObserver(function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")||(o&&clearTimeout(o),o=setTimeout(function(){w(e,t)},300))});l.observe(r),i.on("dispose",function(){l.disconnect()}),i.on("fullscreenchange",function(){setTimeout(function(){w(e,t)},50)})},w=function(e,n){var t;if(n){var o=document.getElementById(e),i=null===(t=window.getComputedStyle(o,null))||void 0===t?void 0:t.height;n.style.height!==i&&(n.style.height="".concat(i))}},f=function(){window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler)};function p(e,n){var t=null,o=null;return function(){for(var i=this,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];o?(clearTimeout(t),t=setTimeout(function(){Date.now()-o>=n&&(e.apply(i,l),o=Date.now())},n-(Date.now()-o))):(e.apply(this,l),o=Date.now())}}export{o as a,l as b,f as c,i as d,c as e,m as f,n as g,a as h,d as i,v as j,u as k,r as p,w as s,p as t};
@@ -1 +0,0 @@
1
- import{h as o,o as e,p as s,q as r}from"./features-9d5fdf7e.js";import{g as i}from"./skin-1f7cd934.js";import{a as l,i as t,b as a}from"./index-144e82ca.js";import{i as m}from"./browser-8414342e.js";import"videojs-contrib-quality-menu";import d from"video.js";import{i as p,s as u}from"./index-236cca97.js";import{e as n}from"./generic-66d1506b.js";import"core-js/modules/es.reflect.construct.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.object.assign.js";import"./renditions-92e03207.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.filter.js";import"./autoNextVideo-2dae5124.js";import"./util-c4f931f0.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.last-index-of.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import"core-js/modules/es.array.index-of.js";import"core-js/stable";import"./captions-5dc8f704.js";import"./resolution-ff76ef38.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.set.js";import"core-js/modules/es.regexp.to-string.js";import"@babel/runtime/helpers/typeof";import"core-js/modules/es.array.find.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.map.js";import"core-js/modules/es.promise.finally.js";import"axios";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.regexp.constructor.js";import"js-cookie";import"ua-parser-js";function j(e,s){var r=i(e);r&&(r.on("loadeddata",function(){var o,r,a,d,p;!function(o){var e=i(o);e&&(null==e||e.qualityMenu,e.qualityMenu({useResolutionLabels:!0}))}(e),!(null!=s&&null!==(o=s.series)&&void 0!==o&&o.enable||null!==(r=window)&&void 0!==r&&null!==(a=r.app_data)&&void 0!==a&&null!==(d=a.appcmsMain)&&void 0!==d&&null!==(p=d.features)&&void 0!==p&&p.auto_play)||null!=s&&s.liveVideo||l(e,s),null!=s&&s.liveVideo||m()||t(e)}),r.one("play",function(){var s,r,i,l;null!==(s=window)&&void 0!==s&&null!==(r=s.customData)&&void 0!==r&&r.iframeOverlayUrl&&o(e,null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.iframeOverlayUrl)}))}function c(o,l){i(o).addClass("skin_vlone"),j(o,l),function(o,i){var l,t,m,d,j,c,y,v,b,f,g,h,w=n(null==i?void 0:i.res,o)||{},C=w.src;(null==i||null===(l=i.relatedVideos)||void 0===l||null===(t=l.content)||void 0===t?void 0:t.length)>0&&e(o,null==i?void 0:i.relatedVideos);null!=i&&null!==(m=i.series)&&void 0!==m&&m.enable&&s(o,i);(null==i||null===(d=i.streams)||void 0===d?void 0:d.length)>1&&r(o,null==i?void 0:i.streams);a(o,i),p(o,i),"MEDIA_TAILOR"==(null===(j=window)||void 0===j||null===(c=j.app_data)||void 0===c||null===(y=c.appcmsMain)||void 0===y||null===(v=y.adsConfig)||void 0===v?void 0:v.vodAdSticherProvider)&&null!==(b=window)&&void 0!==b&&null!==(f=b.app_data)&&void 0!==f&&null!==(g=f.appcmsMain)&&void 0!==g&&null!==(h=g.adsConfig)&&void 0!==h&&h.vodAdClientSideTracking&&u(o,C)}(o,l),y(o,l)}var y=function(o,e){var s,r,l,t,a,m,p,u,n,j,c,y,v=i(o),b=(null==e?void 0:e.theme)||{},f=d.dom.$(".vjs-play-progress"),g=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(s=window)||void 0===s||null===(r=s.app_data)||void 0===r||null===(l=r.appcmsMain)||void 0===l||null===(t=l.brand)||void 0===t||null===(a=t.cta)||void 0===a||null===(m=a.primary)||void 0===m?void 0:m.backgroundColor)),f&&(f.style.background="".concat(null===(p=window)||void 0===p||null===(u=p.app_data)||void 0===u||null===(n=u.appcmsMain)||void 0===n||null===(j=n.brand)||void 0===j||null===(c=j.cta)||void 0===c||null===(y=c.primary)||void 0===y?void 0:y.backgroundColor));var h=v.getChild("BigPlayButton")||null;(null==b?void 0:b.progressBarColor)&&f&&(f.style.background=b.progressBarColor),(null==b?void 0:b.playButtonBackgroundColor)&&h&&(h.el().style.background=b.playButtonBackgroundColor),(null==b?void 0:b.playButtonColor)&&g&&(g.style.color=b.playButtonColor),(null==b?void 0:b.playButtonType)&&("square"==(null==b?void 0:b.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{c as initialiseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import{h as e}from"./features-9d5fdf7e.js";import{g as t}from"./skin-1f7cd934.js";import{a as o,i,b as n}from"./index-144e82ca.js";import{i as r}from"./browser-8414342e.js";import"core-js/modules/es.reflect.construct.js";import s from"@babel/runtime/helpers/classCallCheck";import l from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import d from"@babel/runtime/helpers/getPrototypeOf";import u from"@babel/runtime/helpers/inherits";import c from"video.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.array.find.js";import"core-js/modules/web.dom-collections.for-each.js";import p from"@babel/runtime/helpers/typeof";import"core-js/modules/es.array.includes.js";import{e as v}from"./generic-66d1506b.js";import{s as m}from"./index-5e046049.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.object.assign.js";import"./renditions-92e03207.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.string.includes.js";import"./autoNextVideo-2dae5124.js";import"./util-c4f931f0.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.last-index-of.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"./captions-5dc8f704.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/es/symbol";import"./resolution-ff76ef38.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.set.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.object.entries.js";var f=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},h=function(){return l(function e(t){if(s(this,e),!t||"object"!==p(t))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.handleClick=t.callback||function(){},this.focused=t.focused||!1,"function"!=typeof this.handleClick)throw new Error("SettingsOptionOneWrapper: callback must be a function");this.handleClick=this.handleClick.bind(this)},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var o=document.createElement("div");o.className=this.klassname,o.tabIndex=0;var i=document.createElement("p");i.textContent=this.title,o.appendChild(i);var n=document.createElement("p");n.textContent="›",n.style.fontSize="24px",o.appendChild(n),this.focused&&o.classList.add("focused"),o.addEventListener("focus",function(){t.focused=!0,o.classList.add("focused")}),o.addEventListener("blur",function(){t.focused=!1,o.classList.remove("focused")}),o.addEventListener("keydown",function(e){"Enter"!==e.key&&"OK"!==e.key||t.handleClick()}),this.optionWrapper=o,o.instance=this,e.appendChild(o)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),y=function(){return l(function e(t){if(s(this,e),!t||"object"!==p(t))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.selected=t.selected||!1,this.focused=t.focused||!1,this.id=t.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var o=document.createElement("div");o.className=this.klassname,o.tabIndex=0;var i=document.createElement("p");if(i.textContent=this.title,o.appendChild(i),this.selected){o.classList.add("selected");var n=document.createElement("span");n.appendChild(f('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),o.appendChild(n)}this.focused&&o.classList.add("focused"),o.addEventListener("focus",function(){t.focused=!0,o.classList.add("focused")}),o.addEventListener("blur",function(){t.focused=!1,o.classList.remove("focused")}),this.optionWrapper=o,o.instance=this,e.appendChild(o)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),g=function(){return l(function e(t){if(s(this,e),!t||"object"!==p(t))throw new Error("Sidebar: props must be a valid object");if(this.title=t.title||"Settings",this.items=t.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=t.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=t.lastFocusedElement||null,this.type=t.type||"navigation",this.focused=t.focused||!1,this.callback=t.callback||function(){},this.onselect=t.onselect||function(){},"function"!=typeof this.callback)throw new Error("Sidebar: callback must be a function");if(!["navigation","selection"].includes(this.type))throw new Error('Sidebar: type must be either "navigation" or "selection"')},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var o=document.createElement("div");o.className=this.klassname;var i=document.createElement("div");i.textContent=this.title,i.className="settingsHeading",o.appendChild(i);var n=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,o){var i=new h({title:e.text,klassname:"default-option-wrapper",focused:0===o,callback:e.callback});e.instance=i,0===o&&(t.currentFocusedOption=i),i.mount(n)}):"selection"===this.type&&this.items.forEach(function(e,o){var i=new y({title:e.text,klassname:"default-option-wrapper",focused:0===o,selected:e.isSelected,id:e.id});e.instance=i,0===o&&(t.currentFocusedOption=i),i.mount(n)}),o.appendChild(n),this.sidebarElement=o,e.appendChild(o),this.addEventListeners(),this.focus()}},{key:"addEventListeners",value:function(){var e=this;if(!this.sidebarElement)throw new Error("Sidebar: sidebarElement is not initialized");this.sidebarElement.addEventListener("keydown",function(t){"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusNext()):"ArrowUp"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusPrevious()):"Backspace"===t.key||"Escape"===t.key||10009===t.keyCode||461===t.keyCode||196===t.keyCode||8===t.keyCode?(t.preventDefault(),t.stopPropagation(),e.unfocus(),e.unmount()):"Enter"!==t.key&&"OK"!==t.key||(t.preventDefault(),t.stopPropagation(),"selection"===e.type&&e.selectionTypeAction())})}},{key:"selectionTypeAction",value:function(){if(this.currentFocusedOption){this.items.forEach(function(e){if(e.instance){e.instance.optionWrapper.classList.remove("selected"),e.instance.selected=!1;var t=e.instance.optionWrapper.querySelector("span");t&&t.remove();var o=e.instance.optionWrapper.querySelector("svg");o&&o.remove()}}),this.currentFocusedOption.optionWrapper.classList.add("selected"),this.currentFocusedOption.selected=!0;this.currentFocusedOption.optionWrapper.appendChild(f('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),this.onselect(this.currentFocusedOption)}}},{key:"focusNext",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.nextElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focusPrevious",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.previousElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.focus()}},{key:"unfocus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.blur()}},{key:"unmount",value:function(){this.sidebarElement&&(this.sidebarElement.remove(),this.sidebarElement=void 0,this.lastFocusedElement&&(this.callback(),this.lastFocusedElement.focus()),this.currentFocusedOption=null)}}])}();function j(e,t){var o,i,n,r,s,l,a,d=[{text:"Video Quality",isSelected:!0,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var o,i,n,r,s;if(!e)return;var l=null===(o=t.qualityLevels())||void 0===o?void 0:o.levels_,a=-1==(null===(i=t.qualityLevels())||void 0===i?void 0:i.selectedIndex_)?"auto":null===(n=t.qualityLevels())||void 0===n?void 0:n.levels_[null===(r=t.qualityLevels())||void 0===r?void 0:r.selectedIndex_].height,d=[{text:"Auto",id:"auto",isSelected:"auto"===a,callback:function(){e.currentFocusedOption.focus(),s.unmount()}}].concat(l.map(function(t){return{text:"".concat(t.height,"p"),id:t.height,isSelected:a===t.height,callback:function(){e.currentFocusedOption.focus(),s.unmount()}}}));s=new g({title:"Video Quality",items:d,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){if("auto"===e.id)t.el_.player.qualityLevels().selectedIndex_=-1;else{var o=l.findIndex(function(t){return t.height===e.id});-1!==o&&(t.el_.player.qualityLevels().selectedIndex_=o)}},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),s.mount(null==t?void 0:t.el())}(a,e)}}];null!=e&&null!==(o=e.audioTracks())&&void 0!==o&&o.tracks_&&(null==e||null===(i=e.audioTracks())||void 0===i||null===(n=i.tracks_)||void 0===n?void 0:n.length)>1&&d.push({text:"Audio Language",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var o,i,n,r;if(!e)return;var s=null==t||null===(o=t.audioTracks())||void 0===o?void 0:o.tracks_,l=(null==s||null===(i=s.find(function(e){return e.enabled}))||void 0===i?void 0:i.label)||(null==s||null===(n=s[0])||void 0===n?void 0:n.label)||"Default",a=s.map(function(t){return{text:t.label,id:t.id,isSelected:l===t.label,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}});r=new g({title:"Audio Language",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==s||s.forEach(function(t){t.enabled=!1,t.enabled=t.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),r.mount(null==t?void 0:t.el())}(a,e)}});var u=null==e||null===(r=e.textTracks())||void 0===r?void 0:r.tracks_;return(u=u.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(s=u)||void 0===s?void 0:s.length)>0&&d.push({text:"Subtitles",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var o,i,n;if(!e)return;var r=t.textTracks().tracks_;r=r.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var s=(null===(o=r)||void 0===o||null===(i=o.find(function(e){return"showing"===e.mode}))||void 0===i?void 0:i.label)||"Captions Off",l=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===s,callback:function(){e.currentFocusedOption.focus(),n.unmount()}}].concat(r.map(function(t){return{text:t.label,id:t.id,kind:t.kind,lang:t.language,mode:t.mode,isSelected:s===t.label,callback:function(){e.currentFocusedOption.focus(),n.unmount()}}}));n=new g({title:"Closed Captions",items:l,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var t;null===(t=r)||void 0===t||t.forEach(function(t){t.mode=t.id===e.id?"showing":"hidden"})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),n.mount(null==t?void 0:t.el())}(a,e)}}),(a=new g({title:"Settings",items:d,klassname:"default-sidebar",lastFocusedElement:t,type:"navigation",focused:!0,callback:function(){var o;null===(o=e.controlBar)||void 0===o||o.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){t.focus()},100)}})).mount(null==e?void 0:e.el()),null===(l=e.controlBar)||void 0===l||l.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),a}function b(e,t,o){return t=d(t),a(e,k()?Reflect.construct(t,o||[],d(e).constructor):t.apply(e,o))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var w=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");n.querySelector(".vjs-control-text").textContent="CC",n.classList.add("vjs-ClosedCaption-button");return r.append(f('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M92.7268 78.3757H81.5999V88.0906L57.4173 78.3757H9.27274V16.2273H92.7268V78.3757ZM17.6184 69.5027H57.3108L73.7991 74.6169L73.8001 69.5027H84.3821V25.2107H17.6184V69.5027Z" fill="currentColor"/>\n<rect x="20.8628" y="34.7727" width="39.4091" height="6.95455" fill="currentColor"/>\n<rect x="69.5446" y="34.7727" width="11.5909" height="6.95455" fill="currentColor"/>\n<rect x="44.0446" y="51" width="37.0909" height="9.27273" fill="currentColor"/>\n<rect x="20.8628" y="51" width="13.9091" height="9.27273" fill="currentColor"/>\n</svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){!function(e){var t,o,i,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=e.textTracks().tracks_,l=(null===(t=s=s.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))||void 0===t||null===(o=t.find(function(e){return"showing"===e.mode}))||void 0===o?void 0:o.label)||"Captions Off",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===l,callback:function(){n.currentFocusedOption.focus(),sidebar.unmount()}}].concat(s.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:l===e.label,callback:function(){n.currentFocusedOption.focus(),sidebar.unmount()}}}));(n=new g({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:r,type:"selection",focused:!0,onselect:function(t){var o,i;null===(o=s)||void 0===o||o.forEach(function(e){e.mode=e.id===t.id?"showing":"hidden"}),n.unmount(null==e?void 0:e.el()),null===(i=e.controlBar)||void 0===i||i.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){r.focus()},100)},callback:function(){var t;n.unmount(null==e?void 0:e.el()),null===(t=e.controlBar)||void 0===t||t.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){r.focus()},100)}})).mount(null==e?void 0:e.el()),null===(i=e.controlBar)||void 0===i||i.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("CloseCaptionButton",t),new t(e,{})};var C=function(e){if(e)try{var t,o,i,n=(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(i=o.entitlement)||void 0===i?void 0:i.deviceType)||"smart_tv_samsung";e&&(!function(e){try{var t;"smart_tv_samsung"==e&&null!==(t=window)&&void 0!==t&&t.tizen&&(window.tizen.tvinputdevice.registerKey("MediaPlayPause"),window.tizen.tvinputdevice.registerKey("MediaRewind"),window.tizen.tvinputdevice.registerKey("MediaFastForward"),window.tizen.tvinputdevice.registerKey("Exit"),window.tizen.tvinputdevice.registerKey("MediaPlay"),window.tizen.tvinputdevice.registerKey("MediaPause"),window.tizen.tvinputdevice.registerKey("MediaStop"))}catch(e){}}(n),e.on("keydown",function(t){10252==t.keyCode||"xfinityX1"==n&&179==t.keyCode?e.paused()?e.play():e.pause():415==t.keyCode?e.play():19==t.keyCode?e.pause():412===t.keyCode||"xfinityX1"==n&&227==t.keyCode?e.currentTime(e.currentTime()-10):(417===t.keyCode||"xfinityX1"==n&&228==t.keyCode)&&e.currentTime(e.currentTime()+10)}))}catch(e){}};function L(a,d){var p=t(a);p.addClass("skin_smartTV"),function(e,t){var o,i,n,r,a,d,p,v,m,h,y,g,k,w,L,x,S,E,T,B,O,F,_,W,q,D,M,P,V,z,H,A=null==e?void 0:e.el();A&&(A.style.color=(null==t||null===(o=t.theme)||void 0===o?void 0:o.color)||(null===(i=window)||void 0===i||null===(n=i.app_data)||void 0===n||null===(r=n.appcmsMain)||void 0===r||null===(a=r.brand)||void 0===a||null===(d=a.cta)||void 0===d||null===(p=d.primary)||void 0===p?void 0:p.backgroundColor)||"#FFFFFF");null===(v=e.controlBar)||void 0===v||v.removeChild("VolumePanel"),null===(m=e.controlBar)||void 0===m||m.removeChild("AudioTrackButton"),null===(h=e.controlBar)||void 0===h||h.removeChild("FullscreenToggle"),null===(y=e.controlBar)||void 0===y||y.removeChild("PictureInPictureToggle"),null===(g=e.controlBar)||void 0===g||g.removeChild("skipBackward"),null===(k=e.controlBar)||void 0===k||k.removeChild("skipForward"),null===(w=e.controlBar)||void 0===w||w.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(L=e.controlBar)||void 0===L||null===(x=L.el())||void 0===x||x.append(I);var R=null===(S=e.controlBar)||void 0===S?void 0:S.getChild("CustomControlSpacer");try{I.style.opacity=0,R.el_.style.opacity=0}catch(e){}var G=null===(E=e.controlBar)||void 0===E?void 0:E.getChild("ProgressControl"),K=null===(T=e.controlBar)||void 0===T?void 0:T.getChild("CurrentTimeDisplay"),N=null===(B=e.controlBar)||void 0===B?void 0:B.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("LiveDisplay"),Q=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("RemainingTimeDisplay");G&&K&&N&&I.append(K.el(),G.el(),Q.el(),null==Z?void 0:Z.el());null==R||R.addChild(N);var U=e.getChild("TitleBar");null==R||R.addChild(U);var X=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_;return n.querySelector(".vjs-control-text").textContent="Start From Beginning",n.classList.add("vjs-startFromBeginning-button"),t}return u(o,t),l(o,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("StartFromBeginning",t),new t(e,{})}(e);null==R||R.addChild(X);var J,Y,$,ee=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Settings",n.classList.add("vjs-Settings-button"),r.append(f('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M90.913 45.8867V56.1132L80.0959 58.1496C79.4266 61.1027 78.2623 63.9214 76.6523 66.4864L82.8603 75.597L75.586 82.8192L66.5158 76.664C63.9394 78.2538 61.1222 79.4156 58.1737 80.1041L56.1361 90.913H45.8542L43.8193 80.1041C40.8708 79.4158 38.0535 78.2541 35.4773 76.664L26.4071 82.8192L19.1313 75.597L25.2918 66.4864C23.7008 63.9116 22.5379 61.0962 21.8482 58.1496L11.087 56.1132V45.8867L21.8482 43.8028C22.5428 40.8493 23.7235 38.0315 25.3421 35.4646L19.1327 26.4016L26.4085 19.1807L35.4787 25.3359C38.045 23.7263 40.8656 22.5627 43.8207 21.8945L45.8556 11.0869H56.1375L58.1751 21.8945C61.1301 22.5631 63.9506 23.7267 66.5172 25.3359L75.5874 19.1807L82.8617 26.4016L76.6537 35.5135C78.2633 38.0617 79.4277 40.8647 80.0973 43.8028L90.913 45.8867ZM28.9308 51.0214C28.9434 63.1872 38.8221 73.0394 50.9956 73.0271C56.8418 73.0212 62.4462 70.6944 66.5758 66.5588C70.7054 62.4232 73.0219 56.8174 73.0156 50.9748C73.0025 38.809 63.1234 28.9572 50.9499 28.9701C38.7764 28.983 28.9182 38.8556 28.9308 51.0214Z" fill="currentColor"/>\n</svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){j(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("SettingsButton",t),new t(e,{})}(e);if(null==R||R.addChild(ee),!(null!=t&&null!==(_=t.res)&&void 0!==_&&null!==(W=_.video)&&void 0!==W&&null!==(q=W.streamingInfo)&&void 0!==q&&q.isLiveStream)||null!=t&&null!==(D=t.res)&&void 0!==D&&null!==(M=D.video)&&void 0!==M&&null!==(P=M.liveDetails)&&void 0!==P&&P.isDvrEnabled){var te,oe,ie=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Forward",n.classList.add("vjs-forward-button"),r.append(f('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M461.37 551.05a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67t-12.02 3.59zm109.47-75.65a33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85 33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83zm-1.5 66.6q-4.43 8.19-13.15 8.19c-5.91 0-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.83-4.43 22.32z"></path><path d="M687.85 490l-25.1 5a153.7 153.7 0 1 1-301.6.77c15.68-80.78 92.29-134.47 173-122.56L528.5 389l66.74-8-46.45-48.58-5.79 16.24C447 331.88 354.66 395 336 490.9a179.29 179.29 0 0 0 141.77 210.2 182.22 182.22 0 0 0 34.61 3.35A179.4 179.4 0 0 0 687.85 490z"></path></g></svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t>=0){var o=t+30;e.currentTime(o)}}}])}(c.getComponent("Button"));return c.registerComponent("ForwardButton",t),new t(e,{})}(e);null===(te=e.controlBar)||void 0===te||te.addChild(ie);var ne=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Rewind",n.classList.add("vjs-rewind-button"),r.append(f('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M473.39 547.46q-4.22 3.6-12 3.59a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67zm68.15 16.45a33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83 33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85zm1.57-66.65q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.86-4.43 22.32-7.34 8.19-13.15 8.19-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39z"></path><path d="M688 490.9c-18.66-95.93-111-159-207-142.24l-5.84-16.29L428.74 381l66.74 8-5.64-15.72c80.7-11.91 157.31 41.78 173 122.56a153.67 153.67 0 1 1-301.6-.78l-25.1-5a179.47 179.47 0 0 0 175.47 214.39 182.93 182.93 0 0 0 34.6-3.35A179.29 179.29 0 0 0 688 490.9z"></path></g></svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t-30>=0){var o=t-30;e.currentTime(o)}else e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("RewindButton",t),new t(e,{})}(e);null===(oe=e.controlBar)||void 0===oe||oe.addChild(ne)}null!=t&&null!==(V=t.res)&&void 0!==V&&null!==(z=V.video)&&void 0!==z&&null!==(H=z.gist)&&void 0!==H&&H.title&&e.titleBar.update({title:null==t||null===(J=t.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});C(e)}(p,d),function(n,s){var l=t(n);l&&(l.on("loadeddata",function(){var e,t,a,d,u;try{var c,p,v,m,f,h;if(null!=s&&null!==(c=s.res)&&void 0!==c&&null!==(p=c.video)&&void 0!==p&&null!==(v=p.streamingInfo)&&void 0!==v&&v.isLiveStream&&null!=s&&null!==(m=s.res)&&void 0!==m&&null!==(f=m.video)&&void 0!==f&&null!==(h=f.liveDetails)&&void 0!==h&&h.isDvrEnabled){var y,g,j=(null===(y=l.seekable())||void 0===y?void 0:y.end(0))-(null===(g=l.seekable())||void 0===g?void 0:g.start(0));window.customData.dvrWindow=j}else window.customData.dvrWindow=null}catch(e){}try{var b,k,C;if(null!=s&&null!==(b=s.res)&&void 0!==b&&null!==(k=b.video)&&void 0!==k&&null!==(C=k.streamingInfo)&&void 0!==C&&C.isLiveStream){var L,x=null===(L=l.controlBar)||void 0===L?void 0:L.getChild("ProgressControl");if(x){var S=x.el().querySelector(".vjs-play-progress");S&&(S.style.width="100%")}}}catch(e){}try{l.qualityLevels().selectedIndex_=-1}catch(e){}try{var E,T,B=l.textTracks().tracks_;B=B.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var O=null===(E=l.controlBar)||void 0===E?void 0:E.getChild("CustomControlSpacer");if(B&&(null===(T=B)||void 0===T?void 0:T.length)>0){var F=w(l);null==O||O.addChild(F)}else try{O.children_[2].el_.style.right="115px"}catch(e){}try{var _,W;O.el_.style.opacity=1,(null===(_=l.controlBar)||void 0===_||null===(W=_.el_)||void 0===W?void 0:W.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=s&&null!==(e=s.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(a=t.app_data)&&void 0!==a&&null!==(d=a.appcmsMain)&&void 0!==d&&null!==(u=d.features)&&void 0!==u&&u.auto_play)||null!=s&&s.liveVideo||o(n,s),null!=s&&s.liveVideo||r()||i(n)}),l.one("play",function(){var t,o,i,r;null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.iframeOverlayUrl&&e(n,null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.iframeOverlayUrl)}))}(a,d),function(e,o){var i,r,s,l,a,d,u,c,p=v(null==o?void 0:o.res,e)||{},f=p.src;n(e,o),"MEDIA_TAILOR"==(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(s=r.appcmsMain)||void 0===s||null===(l=s.adsConfig)||void 0===l?void 0:l.vodAdSticherProvider)&&null!==(a=window)&&void 0!==a&&null!==(d=a.app_data)&&void 0!==d&&null!==(u=d.appcmsMain)&&void 0!==u&&null!==(c=u.adsConfig)&&void 0!==c&&c.vodAdClientSideTracking&&m(e,f);!function(e,o){var i=t(e);if(i){var n,r,s=!1,l=!1;null===(n=i.controlBar)||void 0===n||n.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(l=!0)}),null===(r=i.controlBar)||void 0===r||r.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(l=!1)}),i.on("seeking",function(){var e,t,o;i.paused()||s||(s=!0,i.pause());var n=i.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.dvrWindow)if(n=i.liveTracker.liveCurrentTime()-n,0==Math.round(n)){var r,l;n=window.customData.dvrWindow;var a=null===(r=i.controlBar)||void 0===r||null===(l=r.customControlSpacer)||void 0===l?void 0:l.getChild("SeekToLive");a&&(a.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",i.controlBar.liveDisplay.el().style.opacity=0)}else if(n>window.customData.dvrWindow){var d,u;n=0;var c=null===(d=i.controlBar)||void 0===d||null===(u=d.customControlSpacer)||void 0===u?void 0:u.getChild("SeekToLive");c&&(c.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",i.controlBar.liveDisplay.el().style.opacity=0)}else{var p,v;n=window.customData.dvrWindow-n;var m=null===(p=i.controlBar)||void 0===p||null===(v=p.customControlSpacer)||void 0===v?void 0:v.getChild("SeekToLive");m&&(m.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",i.controlBar.liveDisplay.el().style.opacity=0)}var f=n/(window.customData.dvrWindow?window.customData.dvrWindow:i.duration())*100,h=null===(o=i.controlBar)||void 0===o?void 0:o.getChild("ProgressControl");if(h){var y=h.el().querySelector(".vjs-play-progress");y&&(y.style.width=f+"%")}}),i.on("seeked",function(){var e,t,n,r,a,d;if(i.paused()&&s&&!l&&(s=!1,i.play()),null!=o&&null!==(e=o.res)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&null!==(n=t.streamingInfo)&&void 0!==n&&n.isLiveStream&&null!=o&&null!==(r=o.res)&&void 0!==r&&null!==(a=r.video)&&void 0!==a&&null!==(d=a.liveDetails)&&void 0!==d&&d.isDvrEnabled){var u,c,p=null===(u=i.controlBar)||void 0===u||null===(c=u.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");i.liveTracker.seekedBehindLive_?p&&(p.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",i.controlBar.liveDisplay.el().style.opacity=0):p&&(p.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",i.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,o)}(a,d)}export{L as initialiseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{F as e,G as s}from"./generic-66d1506b.js";import{g as r}from"./skin-1f7cd934.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"video.js";import"core-js/modules/es.array.concat.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";function o(o){import("./skin-2c638dc1.js").then(function(e){var s=document.createElement("style");s.id="carousel_homepage",s.append("".concat(e.default)),document.head.appendChild(s)}),t(),function(o){var t=document.getElementById("".concat(o)),m=r(o);t&&t.addEventListener("touchstart",function(){m.paused()?e(o):s(o)})}(o)}var t=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{f as e,g as s,h as o,d as r,e as t,i as l,j as i,k as a,l as m,m as d}from"./features-9d5fdf7e.js";import{M as n,a as u,c as p,d as j}from"./icons-b212fe63.js";import{g as c,b as y}from"./skin-1f7cd934.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import{g as v}from"./renditions-92e03207.js";import{g as f}from"./captions-5dc8f704.js";import{a as h,i as g,b}from"./index-144e82ca.js";import{i as C,d as x}from"./browser-8414342e.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.reflect.construct.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.assign.js";import"video.js";import"./generic-66d1506b.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.array.concat.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.array.sort.js";import"./autoNextVideo-2dae5124.js";import"./util-c4f931f0.js";import"core-js/modules/es.array.last-index-of.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";function w(r,t){var l=c(r);l&&(l.on("loadeddata",function(){var o,i,a,m,d,n,u;(null===(o=v(r))||void 0===o?void 0:o.length)>0&&e(r,t),(null===(i=f(r))||void 0===i?void 0:i.length)>0&&s(r,t),!(null!=t&&null!==(a=t.series)&&void 0!==a&&a.enable||null!==(m=window)&&void 0!==m&&null!==(d=m.app_data)&&void 0!==d&&null!==(n=d.appcmsMain)&&void 0!==n&&null!==(u=n.features)&&void 0!==u&&u.auto_play)||null!=t&&t.liveVideo||h(r,t),function(e,s){var o,r=Math.floor(e/60),t=null===(o=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===o?void 0:o[0];t&&(t.style.marginRight=r>60?"56px":"41px");var l=document.getElementsByClassName("vjs-live-control")[0],i=document.getElementsByClassName("vjs-time-control");s&&l.classList.value.includes("vjs-hidden")&&(i[0].style.display="block",t&&(t.style.marginRight="56px"))}(l.duration(),(null==t?void 0:t.liveVideo)||!1),null!=t&&t.liveVideo||C()||g(r)}),l.one("play",function(){var e,s,t,l;null!==(e=window)&&void 0!==e&&null!==(s=e.customData)&&void 0!==s&&s.iframeOverlayUrl&&o(r,null===(t=window)||void 0===t||null===(l=t.customData)||void 0===l?void 0:l.iframeOverlayUrl)}))}function V(e,s){c(e).addClass("skin_defaultv2"),function(){"Chrome"==x()&&import("./chromett-a3cbb2e1.js").then(function(e){var s=document.createElement("style");s.id="chromett",s.append("".concat(e.default)),document.head.appendChild(s)});import("./skin-e4b35c14.js").then(function(e){var s=document.createElement("style");s.id="default_v2",s.append("".concat(e.default)),document.head.appendChild(s)})}(),w(e,s),function(e,s){var o,r,t,l,i,a,m=c(e);null==m||null===(o=m.controlBar)||void 0===o||null===(r=o.getChild("FullscreenToggle"))||void 0===r||null===(t=r.el())||void 0===t||t.appendChild(y(n(window.controlsColor))),null==m||null===(l=m.controlBar)||void 0===l||null===(i=l.getChild("FullscreenToggle"))||void 0===i||null===(a=i.el())||void 0===a||a.appendChild(y(u(window.controlsColor)));var d=document.getElementsByClassName("vjs-time-control");s.liveVideo&&d[0]&&(d[0].style.display="none")}(e,s),function(e,s){var o,n,u,c,y,v;0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)&&r(e,"defaultV2",p());(0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)||1==(null==s?void 0:s.liveui))&&t(e,"defaultV2",j());s.liveVideo||l(e);(null==s||null===(o=s.relatedVideos)||void 0===o||null===(n=o.content)||void 0===n?void 0:n.length)>0&&i(e,null==s?void 0:s.relatedVideos);(null==s||null===(u=s.streams)||void 0===u?void 0:u.length)>1&&a(e,null==s?void 0:s.streams);(null==s||null===(c=s.playlist)||void 0===c||null===(y=c.content)||void 0===y?void 0:y.length)>0&&m(e,null==s?void 0:s.playlist);null!=s&&null!==(v=s.series)&&void 0!==v&&v.enable&&d(e,s)}(e,s),b(e,s)}export{V as initialiseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{a as e,b as s,c as r,d as o,e as t}from"./features-9d5fdf7e.js";import{i}from"./index-5e046049.js";import{S as m,M as l,a,N as d,b as p,R as j}from"./icons-b212fe63.js";import{g as n,b as c}from"./skin-1f7cd934.js";import{d as u}from"./generic-66d1506b.js";import"core-js/modules/es.reflect.construct.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.assign.js";import"video.js";import"./renditions-92e03207.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/es/symbol";import"core-js/modules/es.array.concat.js";import"./util-c4f931f0.js";import"./captions-5dc8f704.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.map.js";import"./resolution-ff76ef38.js";import"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/web.dom-collections.for-each.js";import"./browser-8414342e.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.set.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"@babel/runtime/helpers/typeof";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.object.keys.js";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.promise.finally.js";import"axios";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.regexp.constructor.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.string.match.js";function y(y,b){n(y).addClass("skin_default"),i(y,b),import("./skin-71be210e.js").then(function(e){var s=document.createElement("style");s.id="def_skin",s.append("".concat(e.default)),document.head.appendChild(s)}),function(e,s){0==s.liveVideo&&0==s.liveui&&o(e,"default",p());(0==s.liveVideo&&0==s.liveui||1==s.liveui)&&t(e,"default",j())}(y,b),function(o,t){var i=n(o),l=(null==t?void 0:t.sres)||null;i.on("loadeddata",function(){e(o,"default",m()),l&&import("./nextEpisodeButton-fcfc868e.js").then(function(e){e.initaliseFunctionality(t.sres.seasons,u())})}),i.one("loadedmetadata",function(){var e;l&&(s(o,null==t||null===(e=t.sres)||void 0===e?void 0:e.seasons,t),r(t.sres,t.res,o))})}(y,b),function(e,s){var r,o,t,i,m=n(e),p=document.getElementsByClassName("vjs-current-time")[0],j=document.getElementsByClassName("vjs-duration")[0],u=document.getElementsByClassName("vjs-time-divider")[0];s.liveVideo&&(p&&(p.style.display="none"),j&&(j.style.display="none"),u&&(u.style.display="none"));null===(r=m.controlBar.getChild("FullscreenToggle"))||void 0===r||null===(o=r.el())||void 0===o||o.appendChild(c(l(window.controlsColor))),null===(t=m.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(i=t.el())||void 0===i||i.appendChild(c(a(window.controlsColor)));var y=m.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var b=document.createElement("div");b.classList.add("caption-header"),y.querySelector(".vjs-menu-content").insertBefore(b,y.querySelector(".vjs-menu-item"))}(y,b)}export{y as initialiseSkin};
@@ -1 +0,0 @@
1
- import{h as o,o as e,p as s,q as r}from"./features-9d5fdf7e.js";import{g as i}from"./skin-1f7cd934.js";import{a as l,i as t,b as a}from"./index-144e82ca.js";import{i as m}from"./browser-8414342e.js";import"videojs-contrib-quality-menu";import d from"video.js";import{i as p,s as u}from"./index-5e046049.js";import{e as n}from"./generic-66d1506b.js";import"core-js/modules/es.reflect.construct.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.object.assign.js";import"./renditions-92e03207.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.filter.js";import"./autoNextVideo-2dae5124.js";import"./util-c4f931f0.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.last-index-of.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import"core-js/modules/es.array.index-of.js";import"core-js/es/symbol";import"./captions-5dc8f704.js";import"./resolution-ff76ef38.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.set.js";import"core-js/modules/es.regexp.to-string.js";import"@babel/runtime/helpers/typeof";import"core-js/modules/es.array.find.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.map.js";import"core-js/modules/es.promise.finally.js";import"axios";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.regexp.constructor.js";import"js-cookie";import"ua-parser-js";function j(e,s){var r=i(e);r&&(r.on("loadeddata",function(){var o,r,a,d,p;!function(o){var e=i(o);e&&(null==e||e.qualityMenu,e.qualityMenu({useResolutionLabels:!0}))}(e),!(null!=s&&null!==(o=s.series)&&void 0!==o&&o.enable||null!==(r=window)&&void 0!==r&&null!==(a=r.app_data)&&void 0!==a&&null!==(d=a.appcmsMain)&&void 0!==d&&null!==(p=d.features)&&void 0!==p&&p.auto_play)||null!=s&&s.liveVideo||l(e,s),null!=s&&s.liveVideo||m()||t(e)}),r.one("play",function(){var s,r,i,l;null!==(s=window)&&void 0!==s&&null!==(r=s.customData)&&void 0!==r&&r.iframeOverlayUrl&&o(e,null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.iframeOverlayUrl)}))}function c(o,l){i(o).addClass("skin_vlone"),j(o,l),function(o,i){var l,t,m,d,j,c,y,v,b,f,g,h,w=n(null==i?void 0:i.res,o)||{},C=w.src;(null==i||null===(l=i.relatedVideos)||void 0===l||null===(t=l.content)||void 0===t?void 0:t.length)>0&&e(o,null==i?void 0:i.relatedVideos);null!=i&&null!==(m=i.series)&&void 0!==m&&m.enable&&s(o,i);(null==i||null===(d=i.streams)||void 0===d?void 0:d.length)>1&&r(o,null==i?void 0:i.streams);a(o,i),p(o,i),"MEDIA_TAILOR"==(null===(j=window)||void 0===j||null===(c=j.app_data)||void 0===c||null===(y=c.appcmsMain)||void 0===y||null===(v=y.adsConfig)||void 0===v?void 0:v.vodAdSticherProvider)&&null!==(b=window)&&void 0!==b&&null!==(f=b.app_data)&&void 0!==f&&null!==(g=f.appcmsMain)&&void 0!==g&&null!==(h=g.adsConfig)&&void 0!==h&&h.vodAdClientSideTracking&&u(o,C)}(o,l),y(o,l)}var y=function(o,e){var s,r,l,t,a,m,p,u,n,j,c,y,v=i(o),b=(null==e?void 0:e.theme)||{},f=d.dom.$(".vjs-play-progress"),g=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(s=window)||void 0===s||null===(r=s.app_data)||void 0===r||null===(l=r.appcmsMain)||void 0===l||null===(t=l.brand)||void 0===t||null===(a=t.cta)||void 0===a||null===(m=a.primary)||void 0===m?void 0:m.backgroundColor)),f&&(f.style.background="".concat(null===(p=window)||void 0===p||null===(u=p.app_data)||void 0===u||null===(n=u.appcmsMain)||void 0===n||null===(j=n.brand)||void 0===j||null===(c=j.cta)||void 0===c||null===(y=c.primary)||void 0===y?void 0:y.backgroundColor));var h=v.getChild("BigPlayButton")||null;(null==b?void 0:b.progressBarColor)&&f&&(f.style.background=b.progressBarColor),(null==b?void 0:b.playButtonBackgroundColor)&&h&&(h.el().style.background=b.playButtonBackgroundColor),(null==b?void 0:b.playButtonColor)&&g&&(g.style.color=b.playButtonColor),(null==b?void 0:b.playButtonType)&&("square"==(null==b?void 0:b.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{c as initialiseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import{h as e}from"./features-9d5fdf7e.js";import{g as t}from"./skin-1f7cd934.js";import{a as o,i,b as n}from"./index-144e82ca.js";import{i as r}from"./browser-8414342e.js";import"core-js/modules/es.reflect.construct.js";import s from"@babel/runtime/helpers/classCallCheck";import l from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import d from"@babel/runtime/helpers/getPrototypeOf";import u from"@babel/runtime/helpers/inherits";import c from"video.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.array.find.js";import"core-js/modules/web.dom-collections.for-each.js";import p from"@babel/runtime/helpers/typeof";import"core-js/modules/es.array.includes.js";import{e as v}from"./generic-66d1506b.js";import{s as m}from"./index-236cca97.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.object.assign.js";import"./renditions-92e03207.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.string.includes.js";import"./autoNextVideo-2dae5124.js";import"./util-c4f931f0.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.last-index-of.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"./captions-5dc8f704.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/stable";import"./resolution-ff76ef38.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.set.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.object.entries.js";var f=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},h=function(){return l(function e(t){if(s(this,e),!t||"object"!==p(t))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.handleClick=t.callback||function(){},this.focused=t.focused||!1,"function"!=typeof this.handleClick)throw new Error("SettingsOptionOneWrapper: callback must be a function");this.handleClick=this.handleClick.bind(this)},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var o=document.createElement("div");o.className=this.klassname,o.tabIndex=0;var i=document.createElement("p");i.textContent=this.title,o.appendChild(i);var n=document.createElement("p");n.textContent="›",n.style.fontSize="24px",o.appendChild(n),this.focused&&o.classList.add("focused"),o.addEventListener("focus",function(){t.focused=!0,o.classList.add("focused")}),o.addEventListener("blur",function(){t.focused=!1,o.classList.remove("focused")}),o.addEventListener("keydown",function(e){"Enter"!==e.key&&"OK"!==e.key||t.handleClick()}),this.optionWrapper=o,o.instance=this,e.appendChild(o)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),y=function(){return l(function e(t){if(s(this,e),!t||"object"!==p(t))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.selected=t.selected||!1,this.focused=t.focused||!1,this.id=t.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var o=document.createElement("div");o.className=this.klassname,o.tabIndex=0;var i=document.createElement("p");if(i.textContent=this.title,o.appendChild(i),this.selected){o.classList.add("selected");var n=document.createElement("span");n.appendChild(f('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),o.appendChild(n)}this.focused&&o.classList.add("focused"),o.addEventListener("focus",function(){t.focused=!0,o.classList.add("focused")}),o.addEventListener("blur",function(){t.focused=!1,o.classList.remove("focused")}),this.optionWrapper=o,o.instance=this,e.appendChild(o)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),g=function(){return l(function e(t){if(s(this,e),!t||"object"!==p(t))throw new Error("Sidebar: props must be a valid object");if(this.title=t.title||"Settings",this.items=t.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=t.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=t.lastFocusedElement||null,this.type=t.type||"navigation",this.focused=t.focused||!1,this.callback=t.callback||function(){},this.onselect=t.onselect||function(){},"function"!=typeof this.callback)throw new Error("Sidebar: callback must be a function");if(!["navigation","selection"].includes(this.type))throw new Error('Sidebar: type must be either "navigation" or "selection"')},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var o=document.createElement("div");o.className=this.klassname;var i=document.createElement("div");i.textContent=this.title,i.className="settingsHeading",o.appendChild(i);var n=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,o){var i=new h({title:e.text,klassname:"default-option-wrapper",focused:0===o,callback:e.callback});e.instance=i,0===o&&(t.currentFocusedOption=i),i.mount(n)}):"selection"===this.type&&this.items.forEach(function(e,o){var i=new y({title:e.text,klassname:"default-option-wrapper",focused:0===o,selected:e.isSelected,id:e.id});e.instance=i,0===o&&(t.currentFocusedOption=i),i.mount(n)}),o.appendChild(n),this.sidebarElement=o,e.appendChild(o),this.addEventListeners(),this.focus()}},{key:"addEventListeners",value:function(){var e=this;if(!this.sidebarElement)throw new Error("Sidebar: sidebarElement is not initialized");this.sidebarElement.addEventListener("keydown",function(t){"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusNext()):"ArrowUp"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusPrevious()):"Backspace"===t.key||"Escape"===t.key||10009===t.keyCode||461===t.keyCode||196===t.keyCode||8===t.keyCode?(t.preventDefault(),t.stopPropagation(),e.unfocus(),e.unmount()):"Enter"!==t.key&&"OK"!==t.key||(t.preventDefault(),t.stopPropagation(),"selection"===e.type&&e.selectionTypeAction())})}},{key:"selectionTypeAction",value:function(){if(this.currentFocusedOption){this.items.forEach(function(e){if(e.instance){e.instance.optionWrapper.classList.remove("selected"),e.instance.selected=!1;var t=e.instance.optionWrapper.querySelector("span");t&&t.remove();var o=e.instance.optionWrapper.querySelector("svg");o&&o.remove()}}),this.currentFocusedOption.optionWrapper.classList.add("selected"),this.currentFocusedOption.selected=!0;this.currentFocusedOption.optionWrapper.appendChild(f('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),this.onselect(this.currentFocusedOption)}}},{key:"focusNext",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.nextElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focusPrevious",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.previousElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.focus()}},{key:"unfocus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.blur()}},{key:"unmount",value:function(){this.sidebarElement&&(this.sidebarElement.remove(),this.sidebarElement=void 0,this.lastFocusedElement&&(this.callback(),this.lastFocusedElement.focus()),this.currentFocusedOption=null)}}])}();function j(e,t){var o,i,n,r,s,l,a,d=[{text:"Video Quality",isSelected:!0,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var o,i,n,r,s;if(!e)return;var l=null===(o=t.qualityLevels())||void 0===o?void 0:o.levels_,a=-1==(null===(i=t.qualityLevels())||void 0===i?void 0:i.selectedIndex_)?"auto":null===(n=t.qualityLevels())||void 0===n?void 0:n.levels_[null===(r=t.qualityLevels())||void 0===r?void 0:r.selectedIndex_].height,d=[{text:"Auto",id:"auto",isSelected:"auto"===a,callback:function(){e.currentFocusedOption.focus(),s.unmount()}}].concat(l.map(function(t){return{text:"".concat(t.height,"p"),id:t.height,isSelected:a===t.height,callback:function(){e.currentFocusedOption.focus(),s.unmount()}}}));s=new g({title:"Video Quality",items:d,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){if("auto"===e.id)t.el_.player.qualityLevels().selectedIndex_=-1;else{var o=l.findIndex(function(t){return t.height===e.id});-1!==o&&(t.el_.player.qualityLevels().selectedIndex_=o)}},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),s.mount(null==t?void 0:t.el())}(a,e)}}];null!=e&&null!==(o=e.audioTracks())&&void 0!==o&&o.tracks_&&(null==e||null===(i=e.audioTracks())||void 0===i||null===(n=i.tracks_)||void 0===n?void 0:n.length)>1&&d.push({text:"Audio Language",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var o,i,n,r;if(!e)return;var s=null==t||null===(o=t.audioTracks())||void 0===o?void 0:o.tracks_,l=(null==s||null===(i=s.find(function(e){return e.enabled}))||void 0===i?void 0:i.label)||(null==s||null===(n=s[0])||void 0===n?void 0:n.label)||"Default",a=s.map(function(t){return{text:t.label,id:t.id,isSelected:l===t.label,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}});r=new g({title:"Audio Language",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==s||s.forEach(function(t){t.enabled=!1,t.enabled=t.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),r.mount(null==t?void 0:t.el())}(a,e)}});var u=null==e||null===(r=e.textTracks())||void 0===r?void 0:r.tracks_;return(u=u.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(s=u)||void 0===s?void 0:s.length)>0&&d.push({text:"Subtitles",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var o,i,n;if(!e)return;var r=t.textTracks().tracks_;r=r.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var s=(null===(o=r)||void 0===o||null===(i=o.find(function(e){return"showing"===e.mode}))||void 0===i?void 0:i.label)||"Captions Off",l=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===s,callback:function(){e.currentFocusedOption.focus(),n.unmount()}}].concat(r.map(function(t){return{text:t.label,id:t.id,kind:t.kind,lang:t.language,mode:t.mode,isSelected:s===t.label,callback:function(){e.currentFocusedOption.focus(),n.unmount()}}}));n=new g({title:"Closed Captions",items:l,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var t;null===(t=r)||void 0===t||t.forEach(function(t){t.mode=t.id===e.id?"showing":"hidden"})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),n.mount(null==t?void 0:t.el())}(a,e)}}),(a=new g({title:"Settings",items:d,klassname:"default-sidebar",lastFocusedElement:t,type:"navigation",focused:!0,callback:function(){var o;null===(o=e.controlBar)||void 0===o||o.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){t.focus()},100)}})).mount(null==e?void 0:e.el()),null===(l=e.controlBar)||void 0===l||l.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),a}function b(e,t,o){return t=d(t),a(e,k()?Reflect.construct(t,o||[],d(e).constructor):t.apply(e,o))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var w=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");n.querySelector(".vjs-control-text").textContent="CC",n.classList.add("vjs-ClosedCaption-button");return r.append(f('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M92.7268 78.3757H81.5999V88.0906L57.4173 78.3757H9.27274V16.2273H92.7268V78.3757ZM17.6184 69.5027H57.3108L73.7991 74.6169L73.8001 69.5027H84.3821V25.2107H17.6184V69.5027Z" fill="currentColor"/>\n<rect x="20.8628" y="34.7727" width="39.4091" height="6.95455" fill="currentColor"/>\n<rect x="69.5446" y="34.7727" width="11.5909" height="6.95455" fill="currentColor"/>\n<rect x="44.0446" y="51" width="37.0909" height="9.27273" fill="currentColor"/>\n<rect x="20.8628" y="51" width="13.9091" height="9.27273" fill="currentColor"/>\n</svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){!function(e){var t,o,i,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=e.textTracks().tracks_,l=(null===(t=s=s.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))||void 0===t||null===(o=t.find(function(e){return"showing"===e.mode}))||void 0===o?void 0:o.label)||"Captions Off",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===l,callback:function(){n.currentFocusedOption.focus(),sidebar.unmount()}}].concat(s.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:l===e.label,callback:function(){n.currentFocusedOption.focus(),sidebar.unmount()}}}));(n=new g({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:r,type:"selection",focused:!0,onselect:function(t){var o,i;null===(o=s)||void 0===o||o.forEach(function(e){e.mode=e.id===t.id?"showing":"hidden"}),n.unmount(null==e?void 0:e.el()),null===(i=e.controlBar)||void 0===i||i.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){r.focus()},100)},callback:function(){var t;n.unmount(null==e?void 0:e.el()),null===(t=e.controlBar)||void 0===t||t.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){r.focus()},100)}})).mount(null==e?void 0:e.el()),null===(i=e.controlBar)||void 0===i||i.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("CloseCaptionButton",t),new t(e,{})};var C=function(e){if(e)try{var t,o,i,n=(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(i=o.entitlement)||void 0===i?void 0:i.deviceType)||"smart_tv_samsung";e&&(!function(e){try{var t;"smart_tv_samsung"==e&&null!==(t=window)&&void 0!==t&&t.tizen&&(window.tizen.tvinputdevice.registerKey("MediaPlayPause"),window.tizen.tvinputdevice.registerKey("MediaRewind"),window.tizen.tvinputdevice.registerKey("MediaFastForward"),window.tizen.tvinputdevice.registerKey("Exit"),window.tizen.tvinputdevice.registerKey("MediaPlay"),window.tizen.tvinputdevice.registerKey("MediaPause"),window.tizen.tvinputdevice.registerKey("MediaStop"))}catch(e){}}(n),e.on("keydown",function(t){10252==t.keyCode||"xfinityX1"==n&&179==t.keyCode?e.paused()?e.play():e.pause():415==t.keyCode?e.play():19==t.keyCode?e.pause():412===t.keyCode||"xfinityX1"==n&&227==t.keyCode?e.currentTime(e.currentTime()-10):(417===t.keyCode||"xfinityX1"==n&&228==t.keyCode)&&e.currentTime(e.currentTime()+10)}))}catch(e){}};function L(a,d){var p=t(a);p.addClass("skin_smartTV"),function(e,t){var o,i,n,r,a,d,p,v,m,h,y,g,k,w,L,x,S,E,T,B,O,F,_,W,q,D,M,P,V,z,H,A=null==e?void 0:e.el();A&&(A.style.color=(null==t||null===(o=t.theme)||void 0===o?void 0:o.color)||(null===(i=window)||void 0===i||null===(n=i.app_data)||void 0===n||null===(r=n.appcmsMain)||void 0===r||null===(a=r.brand)||void 0===a||null===(d=a.cta)||void 0===d||null===(p=d.primary)||void 0===p?void 0:p.backgroundColor)||"#FFFFFF");null===(v=e.controlBar)||void 0===v||v.removeChild("VolumePanel"),null===(m=e.controlBar)||void 0===m||m.removeChild("AudioTrackButton"),null===(h=e.controlBar)||void 0===h||h.removeChild("FullscreenToggle"),null===(y=e.controlBar)||void 0===y||y.removeChild("PictureInPictureToggle"),null===(g=e.controlBar)||void 0===g||g.removeChild("skipBackward"),null===(k=e.controlBar)||void 0===k||k.removeChild("skipForward"),null===(w=e.controlBar)||void 0===w||w.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(L=e.controlBar)||void 0===L||null===(x=L.el())||void 0===x||x.append(I);var R=null===(S=e.controlBar)||void 0===S?void 0:S.getChild("CustomControlSpacer");try{I.style.opacity=0,R.el_.style.opacity=0}catch(e){}var G=null===(E=e.controlBar)||void 0===E?void 0:E.getChild("ProgressControl"),K=null===(T=e.controlBar)||void 0===T?void 0:T.getChild("CurrentTimeDisplay"),N=null===(B=e.controlBar)||void 0===B?void 0:B.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("LiveDisplay"),Q=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("RemainingTimeDisplay");G&&K&&N&&I.append(K.el(),G.el(),Q.el(),null==Z?void 0:Z.el());null==R||R.addChild(N);var U=e.getChild("TitleBar");null==R||R.addChild(U);var X=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_;return n.querySelector(".vjs-control-text").textContent="Start From Beginning",n.classList.add("vjs-startFromBeginning-button"),t}return u(o,t),l(o,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("StartFromBeginning",t),new t(e,{})}(e);null==R||R.addChild(X);var J,Y,$,ee=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Settings",n.classList.add("vjs-Settings-button"),r.append(f('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M90.913 45.8867V56.1132L80.0959 58.1496C79.4266 61.1027 78.2623 63.9214 76.6523 66.4864L82.8603 75.597L75.586 82.8192L66.5158 76.664C63.9394 78.2538 61.1222 79.4156 58.1737 80.1041L56.1361 90.913H45.8542L43.8193 80.1041C40.8708 79.4158 38.0535 78.2541 35.4773 76.664L26.4071 82.8192L19.1313 75.597L25.2918 66.4864C23.7008 63.9116 22.5379 61.0962 21.8482 58.1496L11.087 56.1132V45.8867L21.8482 43.8028C22.5428 40.8493 23.7235 38.0315 25.3421 35.4646L19.1327 26.4016L26.4085 19.1807L35.4787 25.3359C38.045 23.7263 40.8656 22.5627 43.8207 21.8945L45.8556 11.0869H56.1375L58.1751 21.8945C61.1301 22.5631 63.9506 23.7267 66.5172 25.3359L75.5874 19.1807L82.8617 26.4016L76.6537 35.5135C78.2633 38.0617 79.4277 40.8647 80.0973 43.8028L90.913 45.8867ZM28.9308 51.0214C28.9434 63.1872 38.8221 73.0394 50.9956 73.0271C56.8418 73.0212 62.4462 70.6944 66.5758 66.5588C70.7054 62.4232 73.0219 56.8174 73.0156 50.9748C73.0025 38.809 63.1234 28.9572 50.9499 28.9701C38.7764 28.983 28.9182 38.8556 28.9308 51.0214Z" fill="currentColor"/>\n</svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){j(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("SettingsButton",t),new t(e,{})}(e);if(null==R||R.addChild(ee),!(null!=t&&null!==(_=t.res)&&void 0!==_&&null!==(W=_.video)&&void 0!==W&&null!==(q=W.streamingInfo)&&void 0!==q&&q.isLiveStream)||null!=t&&null!==(D=t.res)&&void 0!==D&&null!==(M=D.video)&&void 0!==M&&null!==(P=M.liveDetails)&&void 0!==P&&P.isDvrEnabled){var te,oe,ie=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Forward",n.classList.add("vjs-forward-button"),r.append(f('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M461.37 551.05a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67t-12.02 3.59zm109.47-75.65a33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85 33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83zm-1.5 66.6q-4.43 8.19-13.15 8.19c-5.91 0-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.83-4.43 22.32z"></path><path d="M687.85 490l-25.1 5a153.7 153.7 0 1 1-301.6.77c15.68-80.78 92.29-134.47 173-122.56L528.5 389l66.74-8-46.45-48.58-5.79 16.24C447 331.88 354.66 395 336 490.9a179.29 179.29 0 0 0 141.77 210.2 182.22 182.22 0 0 0 34.61 3.35A179.4 179.4 0 0 0 687.85 490z"></path></g></svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t>=0){var o=t+30;e.currentTime(o)}}}])}(c.getComponent("Button"));return c.registerComponent("ForwardButton",t),new t(e,{})}(e);null===(te=e.controlBar)||void 0===te||te.addChild(ie);var ne=function(e){var t=function(t){function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,o);var n=(t=b(this,o,[e,i])).el_,r=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Rewind",n.classList.add("vjs-rewind-button"),r.append(f('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M473.39 547.46q-4.22 3.6-12 3.59a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67zm68.15 16.45a33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83 33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85zm1.57-66.65q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.86-4.43 22.32-7.34 8.19-13.15 8.19-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39z"></path><path d="M688 490.9c-18.66-95.93-111-159-207-142.24l-5.84-16.29L428.74 381l66.74 8-5.64-15.72c80.7-11.91 157.31 41.78 173 122.56a153.67 153.67 0 1 1-301.6-.78l-25.1-5a179.47 179.47 0 0 0 175.47 214.39 182.93 182.93 0 0 0 34.6-3.35A179.29 179.29 0 0 0 688 490.9z"></path></g></svg>')),t}return u(o,t),l(o,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t-30>=0){var o=t-30;e.currentTime(o)}else e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("RewindButton",t),new t(e,{})}(e);null===(oe=e.controlBar)||void 0===oe||oe.addChild(ne)}null!=t&&null!==(V=t.res)&&void 0!==V&&null!==(z=V.video)&&void 0!==z&&null!==(H=z.gist)&&void 0!==H&&H.title&&e.titleBar.update({title:null==t||null===(J=t.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});C(e)}(p,d),function(n,s){var l=t(n);l&&(l.on("loadeddata",function(){var e,t,a,d,u;try{var c,p,v,m,f,h;if(null!=s&&null!==(c=s.res)&&void 0!==c&&null!==(p=c.video)&&void 0!==p&&null!==(v=p.streamingInfo)&&void 0!==v&&v.isLiveStream&&null!=s&&null!==(m=s.res)&&void 0!==m&&null!==(f=m.video)&&void 0!==f&&null!==(h=f.liveDetails)&&void 0!==h&&h.isDvrEnabled){var y,g,j=(null===(y=l.seekable())||void 0===y?void 0:y.end(0))-(null===(g=l.seekable())||void 0===g?void 0:g.start(0));window.customData.dvrWindow=j}else window.customData.dvrWindow=null}catch(e){}try{var b,k,C;if(null!=s&&null!==(b=s.res)&&void 0!==b&&null!==(k=b.video)&&void 0!==k&&null!==(C=k.streamingInfo)&&void 0!==C&&C.isLiveStream){var L,x=null===(L=l.controlBar)||void 0===L?void 0:L.getChild("ProgressControl");if(x){var S=x.el().querySelector(".vjs-play-progress");S&&(S.style.width="100%")}}}catch(e){}try{l.qualityLevels().selectedIndex_=-1}catch(e){}try{var E,T,B=l.textTracks().tracks_;B=B.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var O=null===(E=l.controlBar)||void 0===E?void 0:E.getChild("CustomControlSpacer");if(B&&(null===(T=B)||void 0===T?void 0:T.length)>0){var F=w(l);null==O||O.addChild(F)}else try{O.children_[2].el_.style.right="115px"}catch(e){}try{var _,W;O.el_.style.opacity=1,(null===(_=l.controlBar)||void 0===_||null===(W=_.el_)||void 0===W?void 0:W.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=s&&null!==(e=s.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(a=t.app_data)&&void 0!==a&&null!==(d=a.appcmsMain)&&void 0!==d&&null!==(u=d.features)&&void 0!==u&&u.auto_play)||null!=s&&s.liveVideo||o(n,s),null!=s&&s.liveVideo||r()||i(n)}),l.one("play",function(){var t,o,i,r;null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.iframeOverlayUrl&&e(n,null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.iframeOverlayUrl)}))}(a,d),function(e,o){var i,r,s,l,a,d,u,c,p=v(null==o?void 0:o.res,e)||{},f=p.src;n(e,o),"MEDIA_TAILOR"==(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(s=r.appcmsMain)||void 0===s||null===(l=s.adsConfig)||void 0===l?void 0:l.vodAdSticherProvider)&&null!==(a=window)&&void 0!==a&&null!==(d=a.app_data)&&void 0!==d&&null!==(u=d.appcmsMain)&&void 0!==u&&null!==(c=u.adsConfig)&&void 0!==c&&c.vodAdClientSideTracking&&m(e,f);!function(e,o){var i=t(e);if(i){var n,r,s=!1,l=!1;null===(n=i.controlBar)||void 0===n||n.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(l=!0)}),null===(r=i.controlBar)||void 0===r||r.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(l=!1)}),i.on("seeking",function(){var e,t,o;i.paused()||s||(s=!0,i.pause());var n=i.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.dvrWindow)if(n=i.liveTracker.liveCurrentTime()-n,0==Math.round(n)){var r,l;n=window.customData.dvrWindow;var a=null===(r=i.controlBar)||void 0===r||null===(l=r.customControlSpacer)||void 0===l?void 0:l.getChild("SeekToLive");a&&(a.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",i.controlBar.liveDisplay.el().style.opacity=0)}else if(n>window.customData.dvrWindow){var d,u;n=0;var c=null===(d=i.controlBar)||void 0===d||null===(u=d.customControlSpacer)||void 0===u?void 0:u.getChild("SeekToLive");c&&(c.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",i.controlBar.liveDisplay.el().style.opacity=0)}else{var p,v;n=window.customData.dvrWindow-n;var m=null===(p=i.controlBar)||void 0===p||null===(v=p.customControlSpacer)||void 0===v?void 0:v.getChild("SeekToLive");m&&(m.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",i.controlBar.liveDisplay.el().style.opacity=0)}var f=n/(window.customData.dvrWindow?window.customData.dvrWindow:i.duration())*100,h=null===(o=i.controlBar)||void 0===o?void 0:o.getChild("ProgressControl");if(h){var y=h.el().querySelector(".vjs-play-progress");y&&(y.style.width=f+"%")}}),i.on("seeked",function(){var e,t,n,r,a,d;if(i.paused()&&s&&!l&&(s=!1,i.play()),null!=o&&null!==(e=o.res)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&null!==(n=t.streamingInfo)&&void 0!==n&&n.isLiveStream&&null!=o&&null!==(r=o.res)&&void 0!==r&&null!==(a=r.video)&&void 0!==a&&null!==(d=a.liveDetails)&&void 0!==d&&d.isDvrEnabled){var u,c,p=null===(u=i.controlBar)||void 0===u||null===(c=u.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");i.liveTracker.seekedBehindLive_?p&&(p.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",i.controlBar.liveDisplay.el().style.opacity=0):p&&(p.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",i.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,o)}(a,d)}export{L as initialiseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{a as e,b as s,c as r,d as o,e as t}from"./features-9d5fdf7e.js";import{i}from"./index-236cca97.js";import{S as m,M as a,a as l,N as d,b as p,R as j}from"./icons-b212fe63.js";import{g as n,b as c}from"./skin-1f7cd934.js";import{d as u}from"./generic-66d1506b.js";import"core-js/modules/es.reflect.construct.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.assign.js";import"video.js";import"./renditions-92e03207.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/stable";import"core-js/modules/es.array.concat.js";import"./util-c4f931f0.js";import"./captions-5dc8f704.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.map.js";import"./resolution-ff76ef38.js";import"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/web.dom-collections.for-each.js";import"./browser-8414342e.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.set.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"@babel/runtime/helpers/typeof";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.object.keys.js";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.promise.finally.js";import"axios";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.regexp.constructor.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.string.match.js";function y(y,b){n(y).addClass("skin_default"),i(y,b),import("./skin-71be210e.js").then(function(e){var s=document.createElement("style");s.id="def_skin",s.append("".concat(e.default)),document.head.appendChild(s)}),function(e,s){0==s.liveVideo&&0==s.liveui&&o(e,"default",p());(0==s.liveVideo&&0==s.liveui||1==s.liveui)&&t(e,"default",j())}(y,b),function(o,t){var i=n(o),a=(null==t?void 0:t.sres)||null;i.on("loadeddata",function(){e(o,"default",m()),a&&import("./nextEpisodeButton-fcfc868e.js").then(function(e){e.initaliseFunctionality(t.sres.seasons,u())})}),i.one("loadedmetadata",function(){var e;a&&(s(o,null==t||null===(e=t.sres)||void 0===e?void 0:e.seasons,t),r(t.sres,t.res,o))})}(y,b),function(e,s){var r,o,t,i,m=n(e),p=document.getElementsByClassName("vjs-current-time")[0],j=document.getElementsByClassName("vjs-duration")[0],u=document.getElementsByClassName("vjs-time-divider")[0];s.liveVideo&&(p&&(p.style.display="none"),j&&(j.style.display="none"),u&&(u.style.display="none"));null===(r=m.controlBar.getChild("FullscreenToggle"))||void 0===r||null===(o=r.el())||void 0===o||o.appendChild(c(a(window.controlsColor))),null===(t=m.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(i=t.el())||void 0===i||i.appendChild(c(l(window.controlsColor)));var y=m.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var b=document.createElement("div");b.classList.add("caption-header"),y.querySelector(".vjs-menu-content").insertBefore(b,y.querySelector(".vjs-menu-item"))}(y,b)}export{y as initialiseSkin};
@@ -1 +0,0 @@
1
- import{g as n}from"./skin-1f7cd934.js";var t=function(t,a,r){var i=n(t);i?a>=0&&a<=i.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),i.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(t,"'"))},a=function(t,a){var r=n(t);if(!r)return"Cannot find player with id: '".concat(t,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(n){return"Error: ".concat(n)}},r=function(t,a){var r=n(t);r?r.on("timeupdate",function(){return a(r.currentTime())}):a("Cannot find player with id: '".concat(t,"'"))},i=function(t,a){var r=n(t);r?r.on("ended",function(){return a(!0)}):a("Cannot find player with id: '".concat(t,"'"))},e=function(t){var a=n(t);return a?a.duration():"Cannot find player with id: '".concat(t,"'")},o=function(t){var a=n(t);return a?a.currentTime():"Cannot find player with id: '".concat(t,"'")};export{o as a,i as b,a as c,e as g,r as o,t as s};