@viewlift/player-backup 2.0.196-backup → 2.0.198-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 (134) hide show
  1. package/cjs/autoNextVideo-abfb351d.js +1 -0
  2. package/cjs/bundle.css +1 -1
  3. package/cjs/caption-settings-1efe9982.js +1 -0
  4. package/cjs/features-4a76e215.js +1 -0
  5. package/cjs/index-03969150.js +1 -0
  6. package/cjs/index-432bc006.js +1 -0
  7. package/cjs/index-96485ab1.js +1 -0
  8. package/cjs/index.js +1 -1
  9. package/cjs/multicamv2-33dab9a2.js +1 -0
  10. package/cjs/multicamv2-85130e99.js +1 -0
  11. package/cjs/nextEpisodeButton-44390768.js +1 -0
  12. package/cjs/playlist-da81e011.js +1 -0
  13. package/cjs/resolution-v2-c71c8680.js +1 -0
  14. package/cjs/series-ae935129.js +1 -0
  15. package/cjs/series-v2-c88c6f27.js +1 -0
  16. package/cjs/series-v2-d67041bc.js +1 -0
  17. package/cjs/settings-icon-c1ac2e37.js +1 -0
  18. package/cjs/skin-476afafd.js +1 -0
  19. package/cjs/skin-478ea1b8.js +1 -0
  20. package/cjs/skin-73a196b3.js +1 -0
  21. package/cjs/skin-9d949da3.js +1 -0
  22. package/cjs/skin-c3d3212b.js +1 -0
  23. package/cjs/skin-cd95e0c1.js +1 -0
  24. package/cjs/skin-fd24aa07.js +1 -0
  25. package/cjs/start-begin-btn-c46e6492.js +1 -0
  26. package/cjs/videoSelector-a55ad576.js +1 -0
  27. package/cjs/videoSelector-cb16ae18.js +1 -0
  28. package/cjs/videojs-dash5.es-5173354f.js +1 -0
  29. package/cjs/watch-live-btn-2964f64b.js +1 -0
  30. package/esm/autoNextVideo-8f8a9f2e.js +1 -0
  31. package/esm/bundle.css +1 -1
  32. package/esm/caption-settings-49e8a9bf.js +1 -0
  33. package/esm/features-e537df14.js +1 -0
  34. package/esm/index-2d6bcfdb.js +1 -0
  35. package/esm/index-6ecf4a3a.js +1 -0
  36. package/esm/index-dc66c193.js +1 -0
  37. package/esm/index.js +1 -1
  38. package/esm/multicamv2-245bd15e.js +1 -0
  39. package/esm/multicamv2-b3defa42.js +1 -0
  40. package/esm/nextEpisodeButton-f4543db8.js +1 -0
  41. package/esm/playlist-f02f8163.js +1 -0
  42. package/esm/resolution-v2-f5a28786.js +1 -0
  43. package/esm/series-b4613e56.js +1 -0
  44. package/esm/series-v2-1e202238.js +1 -0
  45. package/esm/series-v2-ca516b3f.js +1 -0
  46. package/esm/settings-icon-3a13d886.js +1 -0
  47. package/esm/skin-101ab011.js +1 -0
  48. package/esm/skin-46a6a576.js +1 -0
  49. package/esm/skin-64ccbdf1.js +1 -0
  50. package/esm/skin-82447ac5.js +1 -0
  51. package/esm/skin-943037f3.js +1 -0
  52. package/esm/skin-9b36936b.js +1 -0
  53. package/esm/skin-b772b20b.js +1 -0
  54. package/esm/start-begin-btn-ec5e405a.js +1 -0
  55. package/esm/utilities/beacon.d.ts +1 -1
  56. package/esm/videoSelector-1847f653.js +1 -0
  57. package/esm/videoSelector-cd1e2c31.js +1 -0
  58. package/esm/videojs-dash5.es-9868b8c7.js +1 -0
  59. package/esm/watch-live-btn-f6f937bd.js +1 -0
  60. package/package.json +1 -1
  61. package/cjs/autoNextVideo-1960dcfe.js +0 -1
  62. package/cjs/caption-settings-4ca6c759.js +0 -1
  63. package/cjs/captions-dbc83a75.js +0 -1
  64. package/cjs/currentVideoInfo-31d70bec.js +0 -1
  65. package/cjs/features-4d58ca45.js +0 -1
  66. package/cjs/generic-dc7b4a94.js +0 -1
  67. package/cjs/helper-a50a8ffc.js +0 -1
  68. package/cjs/icons-2609dbe4.js +0 -1
  69. package/cjs/index-096edf73.js +0 -1
  70. package/cjs/index-3f0e537b.js +0 -1
  71. package/cjs/index-b9ba3a36.js +0 -1
  72. package/cjs/localisation-56e0a999.js +0 -1
  73. package/cjs/multicamv2-04e76144.js +0 -1
  74. package/cjs/multicamv2-b2a65fa7.js +0 -1
  75. package/cjs/nextEpisodeButton-9a47204f.js +0 -1
  76. package/cjs/player_instance-fcf6a8fb.js +0 -1
  77. package/cjs/playlist-bb316da9.js +0 -1
  78. package/cjs/resolution-f9dcc1b4.js +0 -1
  79. package/cjs/resolution-v2-e42e0101.js +0 -1
  80. package/cjs/series-1ff14ed6.js +0 -1
  81. package/cjs/series-v2-95e80c30.js +0 -1
  82. package/cjs/series-v2-ebbf0c5c.js +0 -1
  83. package/cjs/settings-icon-a8ec6794.js +0 -1
  84. package/cjs/skin-07e3b037.js +0 -1
  85. package/cjs/skin-1cbd1f59.js +0 -1
  86. package/cjs/skin-32ffda5a.js +0 -1
  87. package/cjs/skin-36ecc705.js +0 -1
  88. package/cjs/skin-516012d7.js +0 -1
  89. package/cjs/skin-85e9a926.js +0 -1
  90. package/cjs/skin-9be02be9.js +0 -1
  91. package/cjs/skin-b08b92d0.js +0 -1
  92. package/cjs/start-begin-btn-5739a6c0.js +0 -1
  93. package/cjs/util-7a0f40d6.js +0 -1
  94. package/cjs/videoSelector-66d23051.js +0 -1
  95. package/cjs/videoSelector-76e5c7e0.js +0 -1
  96. package/cjs/videojs-dash5.es-3854764f.js +0 -1
  97. package/cjs/watch-live-btn-822534d1.js +0 -1
  98. package/esm/autoNextVideo-5cb3369b.js +0 -1
  99. package/esm/caption-settings-34414f59.js +0 -1
  100. package/esm/captions-f507e8ee.js +0 -1
  101. package/esm/currentVideoInfo-a8a254c2.js +0 -1
  102. package/esm/features-0fea54ae.js +0 -1
  103. package/esm/generic-227dd92b.js +0 -1
  104. package/esm/helper-349e076f.js +0 -1
  105. package/esm/icons-37daa6b3.js +0 -1
  106. package/esm/index-750c848d.js +0 -1
  107. package/esm/index-8e3eab6d.js +0 -1
  108. package/esm/index-e23388db.js +0 -1
  109. package/esm/localisation-0bf399a1.js +0 -1
  110. package/esm/multicamv2-639eca43.js +0 -1
  111. package/esm/multicamv2-aa44307e.js +0 -1
  112. package/esm/nextEpisodeButton-dd84dbe6.js +0 -1
  113. package/esm/player_instance-34118a5b.js +0 -1
  114. package/esm/playlist-8df3fa8d.js +0 -1
  115. package/esm/resolution-1c59b0f3.js +0 -1
  116. package/esm/resolution-v2-9ed4268f.js +0 -1
  117. package/esm/series-dbecfcea.js +0 -1
  118. package/esm/series-v2-0cf3db2f.js +0 -1
  119. package/esm/series-v2-d70956b1.js +0 -1
  120. package/esm/settings-icon-4708c41d.js +0 -1
  121. package/esm/skin-020b5e86.js +0 -1
  122. package/esm/skin-0913004f.js +0 -1
  123. package/esm/skin-1c262d06.js +0 -1
  124. package/esm/skin-71d399f6.js +0 -1
  125. package/esm/skin-97922cb9.js +0 -1
  126. package/esm/skin-c303da65.js +0 -1
  127. package/esm/skin-d5091b86.js +0 -1
  128. package/esm/skin-f877008d.js +0 -1
  129. package/esm/start-begin-btn-1e096fec.js +0 -1
  130. package/esm/util-aeb59632.js +0 -1
  131. package/esm/videoSelector-5554968e.js +0 -1
  132. package/esm/videoSelector-9ce6077a.js +0 -1
  133. package/esm/videojs-dash5.es-08c7635e.js +0 -1
  134. package/esm/watch-live-btn-5419f3a7.js +0 -1
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import l from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{L as s,T as r,B as d,g as c,I as p,Z as m}from"./index-2d6bcfdb.js";import{a as u}from"./autoNextVideo-8f8a9f2e.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y=a.getComponent("Component"),h=function(){n(g,y);var h,f,b=(h=g,f=v(),function(){var e,t=i(h);if(f){var l=i(this).constructor;e=Reflect.construct(t,arguments,l)}else e=t.apply(this,arguments);return o(this,e)});function g(e){var l,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,g),(i=b.call(this,e,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=null==a||null===(l=a.playlist)||void 0===l?void 0:l.content,i.cb=(null==a||null===(n=a.playlist)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==a||null===(o=a.playlist)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&u({playerId:i.playerId,content:i.videos,cb:i.cb}),i}return l(g,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(s())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then(function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=a.dom.createEl("div",{className:"selection-container hidden"});a.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var l;null!==(l=t.classList)&&void 0!==l&&l.contains("hidden")?(r(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var l=document.getElementById(this.playerId);if(l){var n=window.getComputedStyle(l,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),a.dom.appendContent(e,t),l.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var l=this,n=this.el(),o=a.dom.createEl("div",{className:"playlist-selector-head"}),i=a.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(d())});i.onclick=function(){t.classList.add("hidden"),n.classList.remove("open"),t.style.right="-350px"};for(var s=a.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),r=a.dom.createEl("div",{className:"playlist-selector-content"}),u=function(t){var n,o,i=a.dom.createEl("div",{className:"playlist-container"}),s=a.dom.createEl("div",{className:"playlist-section",index:t}),d=a.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(n=l.videos[t])||void 0===n?void 0:n.title)||"")}),c=a.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(l.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});a.dom.appendContent(s,d),a.dom.appendContent(s,c),a.dom.appendContent(i,s),a.dom.appendContent(r,i);var u=a.dom.createEl("div",{className:"playlist-section-expanded hidden"}),v=a.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(o=l.videos[t])||void 0===o?void 0:o.description)||"")}),y=a.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(l.videos[t].img,")"),a.dom.appendContent(u,y),a.dom.appendContent(u,v),a.dom.appendContent(i,u),a.dom.appendContent(r,i),u.onclick=function(e){e.stopPropagation(),m(t+1),p(l.playerId,l.videos[t].id).then(function(e){null!=l&&l.cb&&l.cb(e)}).catch(function(e){null!=l&&l.cb&&l.cb(e)})},s.onclick=function(t){var l,n,o,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(a=e(a))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(l=s.classList)&&void 0!==l&&l.contains("hidden")?(i.style.backgroundColor="#0000007d",null==s||null===(n=s.classList)||void 0===n||n.remove("hidden")):(null==s||null===(o=s.classList)||void 0===o||o.add("hidden"),i.style.backgroundColor="unset")}},v=0;v<this.videos.length;v++)u(v);a.dom.appendContent(o,i),a.dom.appendContent(o,s),a.dom.appendContent(t,o),a.dom.appendContent(t,r),c(this.playerId).on("fullscreenchange",function(){var e=document.getElementById(l.playerId);if(e){var n=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px")}})}}]),g}();export{h as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/get";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import o from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/defineProperty";import s from"video.js";import{g as u}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";function d(e){var t=c();return function(){var i,n=l(e);if(t){var o=l(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return r(this,i)}}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}var h=s.getComponent("MenuButton"),p=s.getComponent("MenuItem"),v=s.getComponent("Menu"),m=function(e){var t="";return e>719&&e<1081?t+=" HD":e>=1081&&e<1500?t+=" 2K":e>=1500&&(t+=" 4K"),t},b=function(){o(r,p);var e=d(r);function r(i,o){var l;return t(this,r),l=e.call(this,i,o),a(n(l),"playSelectedResolution",function(){var e,t,i,n,o,r,a,s=l._options,d=s.id,c=s.auto,h=s.playerId,p=u(h);(null==p||null===(e=p.tech_)||void 0===e?void 0:e.vhs)||!1?(p.tech_.vhs.representations().forEach(function(e){e.enabled(c||e.id===d)}),p.handleTechPlaying_(),l.resetPlaybackPosition(p)):c?null==p||null===(t=p.dash)||void 0===t||null===(i=t.mediaPlayer)||void 0===i||i.resetSettings():(null==p||null===(n=p.dash)||void 0===n||null===(o=n.mediaPlayer)||void 0===o||o.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==p||null===(r=p.dash)||void 0===r||null===(a=r.mediaPlayer)||void 0===a||a.setRepresentationForTypeById("video",d),l.resetPlaybackPosition(p))}),l._options=o,l}return i(r,[{key:"handleClick",value:function(){var e,t=this._options,i=t.height,n=t.bandwidth;window.height===i&&n==window.bandwidth||(window.height=i,window.bandwidth=n,this.playSelectedResolution(),this.player().controlBar.getChild("resolutionModule").menu.children().forEach(function(e){return e.selected(!1)}),this.selected(!0),null===(e=this.player().controlBar.getChild("resolutionModule"))||void 0===e||e.blur())}},{key:"resetPlaybackPosition",value:function(e){var t=e.currentTime();e.currentTime(0),setTimeout(function(){e.currentTime(t)},100)}}]),r}(),f=function(){o(r,h);var n=d(r);function r(e,i){var o;return t(this,r),(o=n.call(this,e,i)).el_.setAttribute("aria-label",o.localize("Quality Levels")),o.controlText("Quality Levels"),e.options().experimentalSvgIcons||o.$(".vjs-icon-placeholder").classList.add("vjs-icon-cog"),o.setIcon("cog"),o}return i(r,[{key:"buildWrapperCSSClass",value:function(){return"vjs-quality-menu-wrapper ".concat(e(l(r.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createMenu",value:function(){var e,t,i,n,o=this,r=new v(this.player()),l=(null===(e=this.options_)||void 0===e?void 0:e.renditions)||[],a=this.removeDuplicateResolution(l),s=(null===(t=this.player)||void 0===t||null===(i=t.tech_)||void 0===i?void 0:i.vhs)||!1;return a.forEach(function(e){var t=s?o.createRenditions(e):o.createDashRenditions(e);r.addChild(t)}),r.addChild(new b(this.player(),{label:"Auto",auto:!0,selected:!0,selectable:!0,playerId:null===(n=this.options_)||void 0===n?void 0:n.playerId})),r}},{key:"createRenditions",value:function(e){var t,i;console.log("createRenditions ele",e);var n=(((null==e||null===(t=e.playlist)||void 0===t?void 0:t.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes.BANDWIDTH))/1048576).toFixed(1),o="".concat(e.height,"p");return window.enableResolutionsBitrate&&(o+=" @ ".concat(n,"mbps")),o+=m(e.height),console.log("bitrate",n,o),new b(this.player(),{id:e.id,label:o,selected:!1,selectable:!0,height:e.height,bandwidth:e.bandwidth,playerId:this.options_.playerId})}},{key:"createDashRenditions",value:function(e){var t=(e.bitrate/1e6).toFixed(1),i="".concat(e.height,"p");return window.enableResolutionsBitrate&&(i+=" @ ".concat(t,"mbps")),i+=m(e.height),new b(this.player(),{id:e.id,label:i,selected:!1,selectable:!0,height:e.height,playerId:this.options_.playerId})}},{key:"removeDuplicateResolution",value:function(e){return e&&null!=e&&e.length?e.reduce(function(e,t){var i=e.find(function(e){return(null==e?void 0:e.height)===(null==t?void 0:t.height)});if(i){if((null==i?void 0:i.bitrate)<(null==t?void 0:t.bitrate)){var n=e.indexOf(i);e[n]=t}}else e.push(t);return e},[]):e}}]),r}();export{f as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/asyncToGenerator";import i from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/defineProperty";import l from"@babel/runtime/regenerator";import c from"video.js";import{K as d,L as p,O as v,e as u,I as m,J as f,p as h}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";var g=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y,C=c.getComponent("Component"),w=function(){s(d,C);var e,l,c=(e=d,l=b(),function(){var i,t=a(e);if(l){var n=a(this).constructor;i=Reflect.construct(t,arguments,n)}else i=t.apply(this,arguments);return r(this,i)});function d(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,d),t=c.call(this,e,s),o(n(t),"seriesData",[]),t.seriesData=s.seriesData,y=s.playerId,x(t.el(),t.seriesData),t.loadCSS(),t}return t(d,[{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 i=document.createElement("style");i.id="series",i.append("".concat(e.default)),document.head.appendChild(i)})}}]),d}();function L(){return(L=e(l.mark(function e(i,t,n,s){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u(y),g(y),m(y,t).then(function(e){f(e.response),h(y)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function k(e,i,t,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map(function(e,i){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(i+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")}).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=d(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){v(e).then(function(e){var i=e.data,t=document.querySelectorAll("#progress-div");t&&i.map(function(e,i){e&&e.watchedPercentage&&t[i]&&(t[i].style.width=e.watchedPercentage+"px")})}).catch(function(e){})}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),p=document.querySelectorAll("#episode-title"),u=document.querySelectorAll(".meta-details"),m=document.querySelector("#episodes-back-btn"),f=e.id,h=e.episodes;m.addEventListener("click",function(){return function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(s,r)});for(var g=function(i){c[i].addEventListener("click",function(){return function(e,i,t){var n=i.querySelector(".meta-details");i.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),t.forEach(function(i,n){n!==e&&(t[n].classList.remove("episode-active"),t[n].querySelector(".meta-details").classList.remove("metadetails-active"))})}(i,p[i],p)}),u[i].addEventListener("click",function(){return function(e,i,t,n){return L.apply(this,arguments)}(i,h[i].id,t,p)}),e.episodes[i].id==f&&p[i].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)}function x(e,i){for(var t='<div class="hover-div"></div>\n '.concat(p(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map(function(e,i){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")}).join("")}(i),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=d(t);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}export{x as customSeasonList,k as handleSeasonChange,w as seriesModule};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{w as r,a4 as d,a5 as c,L as u,T as m,B as p,x as v,g as h,a6 as f,D as C,a7 as y,I as g}from"./index-2d6bcfdb.js";import{a as b}from"./autoNextVideo-8f8a9f2e.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}var E=a.getComponent("Component"),k=function(){n(L,E);var k,x,S=(k=L,x=N(),function(){var e,t=l(k);if(x){var s=l(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return i(this,e)});function L(s){var n,i,l,a,u,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,L),(m=S.call(this,s,p)).playerId=p.playerId,m.seriesData=p.sres,m.videos=null==p||null===(n=p.sres)||void 0===n?void 0:n.seasons,m.currentVideoData=p.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==p||null===(i=p.series)||void 0===i?void 0:i.cb,m.autoPlayNext=(null==p||null===(l=p.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=r(),null!==(a=o(m))&&void 0!==a&&a.autoPlayNext&&null!=p&&null!==(u=p.series)&&void 0!==u&&u.enable){var v,h,f,C,y=null==p||null===(v=p.sres)||void 0===v?void 0:v.seasons,g=[];y.map(function(t){g.push.apply(g,e(t.episodes))}),d(g),c(null===(h=m.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(C=f.video)||void 0===C?void 0:C.id),b({playerId:m.playerId,content:g,cb:m.cb,series:null==p?void 0:p.sres})}return m}return s(L,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(u())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then(function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(m(),e.classList.remove("hidden"),s.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden"});a.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(n,"px"),a.dom.appendContent(t,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=a.dom.createEl("div",{className:"series-selector-head"}),n=a.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});n.onclick=function(){if("series-selector-cross-icon"===n.className)e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===n.className){var o=a.dom.$(".series-selector-content",t.el());for(a.dom.$(".series-selector-cross-icon",t.el()),n.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var i=t.createSeasonLister();for(a.dom.appendContent(o,i),a.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var l=v(p());n.appendChild(l)}};var i=a.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=a.dom.createEl("div",{className:"series-selector-content"}),r=this.createSeasonLister();a.dom.appendContent(l,r),a.dom.appendContent(o,n),a.dom.appendContent(o,i),a.dom.appendContent(e,o),a.dom.appendContent(e,l),h(this.playerId).on("fullscreenchange",function(){var s=document.getElementById(t.playerId);if(s){var o=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(o,"px")}})}},{key:"createSeasonLister",value:function(){var e=this;h(this.playerId);for(var t=C(),s=a.dom.createEl("div",{className:"season-container"}),o=function(o){var n,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(o));var l=document.createElement("div");l.className="season - ".concat(o),l.textContent=null===(n=t[o])||void 0===n?void 0:n.title;var r=a.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==o&&(r.checked=!0),r.onclick=function(t){y.set(o),e.showSeasonDetails(o)},a.dom.appendContent(i,r),a.dom.appendContent(i,l),a.dom.appendContent(s,i)},n=0;n<t.length;n++)o(n);return s}},{key:"getSeasonDetailsContainer",value:function(t,s){var o=this;t=t.map(function(e){var t,s,n,i,l;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(s=e.gist)||void 0===s||null===(n=s.imageGist)||void 0===n?void 0:n.r16x9,watchedPercentage:(null==o||null===(i=o.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}});for(var n=function(n){var i,l,r,d,u,m,p,v=a.dom.createEl("div",{className:"series-container"}),h=a.dom.createEl("div",{className:"series-section",index:n}),f=a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=t[n])||void 0===i?void 0:i.title)||"")}),C=a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[n].watchedPercentage,"%' class='series-progress-bar-value'></div>")});a.dom.appendContent(h,f),a.dom.appendContent(h,C),a.dom.appendContent(v,h),a.dom.appendContent(s,v);var y=a.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(l=t[n])||void 0===l?void 0:l.description)||"";(null===(r=b)||void 0===r?void 0:r.length)>170&&(b=b.substr(0,170)+"...");var N=a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),E=a.dom.createEl("img",{className:"series-image"});E.src="".concat((null===(d=t[n])||void 0===d?void 0:d.img)||(null===(u=window)||void 0===u||null===(m=u.customData)||void 0===m?void 0:m.fallbackImage)),E.alt="".concat(null===(p=t[n])||void 0===p?void 0:p.title),a.dom.appendContent(y,E),a.dom.appendContent(y,N),a.dom.appendContent(v,y),a.dom.appendContent(s,v),y.onclick=function(e){var s;e.stopPropagation(),c(null===(s=t[n])||void 0===s?void 0:s.id),g(o.playerId,t[n].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})},h.onclick=function(t){var s,o,n,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(v.style.backgroundColor="#0000007d",null==l||null===(o=l.classList)||void 0===o||o.remove("hidden")):(null==l||null===(n=l.classList)||void 0===n||n.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<t.length;i++)n(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=C()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=a.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=v(f());o.appendChild(n),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),L}();export{k as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{w as r,a4 as d,a5 as c,Q as u,T as m,U as v,x as p,B as h,X as f,g as y,I as b,a6 as C,D as g,a7 as E,Y as N}from"./index-2d6bcfdb.js";import{a as x}from"./autoNextVideo-8f8a9f2e.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}var k=a.getComponent("Component"),S=function(){n(B,k);var S,L,w=(S=B,L=I(),function(){var e,t=l(S);if(L){var s=l(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return i(this,e)});function B(s){var n,i,l,a,u,m,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,B),(m=w.call(this,s,v)).playerId=v.playerId,m.seriesData=v.sres,m.videos=null==v||null===(n=v.sres)||void 0===n?void 0:n.seasons,m.currentVideoData=v.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==v||null===(i=v.series)||void 0===i?void 0:i.cb,m.autoPlayNext=(null==v||null===(l=v.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=r(),null!==(a=o(m))&&void 0!==a&&a.autoPlayNext&&null!=v&&null!==(u=v.series)&&void 0!==u&&u.enable){var p,h,f,y,b=null==v||null===(p=v.sres)||void 0===p?void 0:p.seasons,C=[];b.map(function(t){C.push.apply(C,e(t.episodes))}),d(C),c(null===(h=m.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(y=f.video)||void 0===y?void 0:y.id),x({playerId:m.playerId,content:C,cb:m.cb,series:null==v?void 0:v.sres})}return m}return s(B,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"series-selector-icon",title:"season selector",innerHTML:"".concat(u())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-6e9853f8.js").then(function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(m(),e.classList.remove("hidden"),s.classList.add("open"),v(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"handleTabIndexSelector",value:function(){var e,t=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog open",null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=0);for(var s=0;s<(null==t?void 0:t.length);s++)t[s].tabIndex=0}},{key:"handleCloseTabIndex",value:function(){var e,t=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog closed",null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=-1);for(var s=0;s<(null==t?void 0:t.length);s++)t[s]&&(t[s].tabIndex=-1);setTimeout(function(){document.getElementsByClassName("series-selector-icon")[0]&&document.getElementsByClassName("series-selector-icon")[0].focus()},100)}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden",role:"dialog",ariaModal:"true"});s.setAttribute("aria-labelledby","seasons"),a.dom.$(".series-selector-icon",this.el()).onclick=function(){e.toggleOpenClose(s),e.handleTabIndexSelector()};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(n,"px"),a.dom.appendContent(t,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"handleSeriesCloseIcon",value:function(e,t,s){if("series-selector-cross-icon"===e.className)t.classList.add("hidden"),s.classList.remove("open"),this.handleCloseTabIndex();else if("series-selector-back-icon"===e.className){var o=a.dom.$(".series-selector-content",this.el());for(a.dom.$(".series-selector-cross-icon",this.el()),e.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=this.createSeasonLister();for(a.dom.appendContent(o,n),a.dom.$(".series-selector-title",this.el()).textContent="Seasons";null!=e&&e.firstChild;)e.removeChild(e.firstChild);var i=p(h());e.appendChild(i)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=a.dom.createEl("div",{className:"series-selector-head"}),n=a.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:"".concat(h()),tabIndex:-1});n.onclick=function(){t.handleSeriesCloseIcon(n,e,s)},n.onkeydown=function(o){"Enter"===o.key&&t.handleSeriesCloseIcon(n,e,s)};var i=a.dom.createEl("h2",{className:"series-selector-title",ariaLabel:"Seasons",innerHTML:"Seasons",id:"seasons"}),l=a.dom.createEl("div",{style:"position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;",ariaLive:"assertive",id:"sr-announcer",tabIndex:-1}),r=a.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();a.dom.appendContent(o,l),a.dom.appendContent(r,d),a.dom.appendContent(o,n),a.dom.appendContent(o,i),a.dom.appendContent(e,o),a.dom.appendContent(e,r),f(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;y(this.playerId);for(var t=g(),s=a.dom.createEl("div",{className:"season-container"}),o=function(o){var n,i,l,r,d=document.createElement("label");d.className="season-holder",d.ariaLabel=null===(n=t[o])||void 0===n?void 0:n.title,d.role="button",d.type="button",d.setAttribute("aria-LabelledBy",null===(i=t[o])||void 0===i?void 0:i.title),d.setAttribute("for","season-".concat(o));var c=document.createElement("div");c.className="season - ".concat(o),c.textContent=null===(l=t[o])||void 0===l?void 0:l.title,c.id=null===(r=t[o])||void 0===r?void 0:r.title;var u=a.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});u.setAttribute("type","radio"),e.selectedSeason==o&&(u.checked=!0),u.onclick=function(t){E.set(o),e.showSeasonDetails(o)},d.onkeydown=function(t){"Enter"===t.key&&(E.set(o),e.showSeasonDetails(o))},a.dom.appendContent(d,u),a.dom.appendContent(d,c),a.dom.appendContent(s,d)},n=0;n<t.length;n++)o(n);return s}},{key:"loadSeriesAssetById",value:function(e,t){var s,o=this;c(null===(s=e[t])||void 0===s?void 0:s.id),b(this.playerId,e[t].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})}},{key:"getSeasonDetailsContainer",value:function(t,s){var o=this;t=t.map(function(e){var t,s,n,i,l,a,r,d,c;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:(null==e||null===(s=e.gist)||void 0===s||null===(n=s.imageGist)||void 0===n?void 0:n.r16x9)||(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(a=l.appcmsMain)||void 0===a||null===(r=a.images)||void 0===r?void 0:r.placeholderCover),watchedPercentage:(null==o||null===(d=o.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}});for(var n=function(n){var i,l,r,d,c,u=a.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),m=a.dom.createEl("div",{className:"series-section-data",index:n,innerHTML:"".concat((null===(i=t[n])||void 0===i?void 0:i.title)||"")});a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(l=t[n])||void 0===l?void 0:l.title)||"")}),a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[n].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var v=a.dom.createEl("div",{className:"series-section-image"}),p=(null===(r=t[n])||void 0===r?void 0:r.description)||"";(null===(d=p)||void 0===d?void 0:d.length)>170&&(p=p.substr(0,170)+"..."),a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(p||"")});var h=a.dom.createEl("img",{className:"series-image"});h.src="".concat(N(null===(c=t[n])||void 0===c?void 0:c.img)),h.alt="Episode ".concat(n+1),a.dom.appendContent(v,h),a.dom.appendContent(u,v),a.dom.appendContent(u,m),a.dom.appendContent(s,u),u.onclick=function(e){e.stopPropagation(),o.loadSeriesAssetById(t,n)},u.onkeydown=function(e){"Enter"===e.key&&(e.stopPropagation(),o.loadSeriesAssetById(t,n))},m.onclick=function(t){var s,o,n,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(u.style.backgroundColor="#0000007d",null==l||null===(o=l.classList)||void 0===o||o.remove("hidden")):(null==l||null===(n=l.classList)||void 0===n||n.add("hidden"),u.style.backgroundColor="unset")}},i=0;i<t.length;i++)n(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=g()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=a.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=p(C());o.appendChild(n),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),B}();export{S as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import a from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import l from"video.js";import{a1 as r,T as d,U as s,V as c,B as u,F as p,X as m,g as h,f as v,a2 as y,K as f,x as g,a3 as b}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}var E=l.getComponent("Component"),N=function(){n(B,E);var N,k,x=(N=B,k=C(),function(){var e,t=o(N);if(k){var a=o(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return i(this,e)});function B(e){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,B),(a=x.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.resolutionBitrateMap,a}return a(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 n=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,n||1/0))}})}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),n=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!n)&&a>n}},{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(r())});return l.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=l.dom.createEl("div",{className:"selection-container hidden"});l.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(d(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",s(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(i),l.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),c(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=l.dom.createEl("div",{className:"settings-selector-head"}),n=l.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(u())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var i=l.dom.createEl("div",{className:"settings-selector-title",innerHTML:p("settingsTitle")||"Settings"}),o=l.dom.createEl("div",{className:"settings-selector-content"}),r=l.dom.createEl("div",{className:"settings-container"}),d=this.createVideoQualityContainer();l.dom.appendContent(r,d);var s=this.createAudioQualityContainer();l.dom.appendContent(r,s),l.dom.appendContent(a,n),l.dom.appendContent(a,i),l.dom.appendContent(e,a),l.dom.appendContent(e,o),l.dom.appendContent(o,r),m(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=h(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=l.dom.createEl("div",{className:"audio-language-container"}),n=l.dom.createEl("div",{className:"audio-language-container-title",innerHTML:p("audioLanguageText")||"Audio Language"});l.dom.appendContent(a,n);for(var i=function(e){var n,i=document.createElement("label");i.className="audio-language-holder",i.setAttribute("for","language-radio-".concat(e));var o=document.createElement("div");o.className="audio - ".concat(e),o.textContent=null==t||null===(n=t[e])||void 0===n?void 0:n.label;var r=l.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});r.setAttribute("type","radio"),1==t[e].enabled&&(r.checked=!0),r.onchange=function(a){t.map(function(e){e.enabled=!1}),t[e].enabled=!0},l.dom.appendContent(i,r),l.dom.appendContent(i,o),l.dom.appendContent(a,i)},o=0;o<t.length;o++)i(o);return a}}},{key:"createVideoQualityContainer",value:function(){var t=this,a=l.dom.createEl("div",{className:"video-quality-container"}),n=l.dom.createEl("div",{className:"video-quality-container-title",innerHTML:p("videoQualityText")||"Video Quality"});l.dom.appendContent(a,n);var i=[].concat(e(v(this.playerId)),[{height:"Auto"}]).sort(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)});this.fillResolutionBitrateMap(i),y(this.playerId,"raw",!0);for(var o=function(e){var n,o,r,d=document.createElement("label"),s=document.createElement("div"),c=document.createElement("div");c.className="video-quality-bitrate-label",s.className="video-quality-holder",d.className="video-quality-label-container",d.setAttribute("for","quality".concat(e));var u=document.createElement("div");u.className="video-quality - ".concat(e);var m=(null==i||null===(n=i[e])||void 0===n?void 0:n.height)+"".concat("Auto"==(null==i||null===(o=i[e])||void 0===o?void 0:o.height)?"":"p"),h=document.createTextNode(m),v="".concat(t.isEnhancedBitrate(i[e])?p("enhancedBitrateLabel")||"Enhanced Bitrate":""),C=document.createTextNode(v);if(c.appendChild(C),u.appendChild(h),(null==i||null===(r=i[e])||void 0===r?void 0:r.height)>=720)for(var E=f("<span class='hd-rendition'> HD </span>");null!=E&&E.firstChild;)u.appendChild(E.firstChild);var N=l.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(i[e]),checked:"".concat(e==i.length-1)});N.setAttribute("type","radio"),N.onchange=function(a){var n=i[e];"true"=="".concat("Auto"==i[e].height)?y(t.playerId,n,!0):y(t.playerId,n)};var k=document.createElement("span");k.className=v?"check-mark center":"check-mark";var x=g(b());k.appendChild(x),s.appendChild(N),s.appendChild(k),s.appendChild(u),l.dom.appendContent(d,s),d.appendChild(c),l.dom.appendContent(a,d)},r=0;r<i.length;r++)o(r);return a}}]),B}();export{N as default};
@@ -0,0 +1 @@
1
+ import{a as e,b as t,c as s,d as i,e as o}from"./features-e537df14.js";import{g as l,a as n,S as r,i as a,c as d,M as m,b as u,N as p,d as c,R as b}from"./index-2d6bcfdb.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function v(v,h){l(v).addClass("skin_default"),a(v,h),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&i(e,"default",c());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&o(e,"default",b())}(v,h),function(i,o){var a=l(i),d=(null==o?void 0:o.sres)||null;a.on("loadeddata",function(){e(i,"default",r()),d&&import("./nextEpisodeButton-f4543db8.js").then(function(e){e.initaliseFunctionality(o.sres.seasons,n())})}),a.one("loadedmetadata",function(){var e;d&&(t(i,null==o||null===(e=o.sres)||void 0===e?void 0:e.seasons,o),s(o.sres,o.res,i))})}(v,h),function(e,t){var s,i,o,n,r=l(e),a=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],b=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(a&&(a.style.display="none"),c&&(c.style.display="none"),b&&(b.style.display="none"));null===(s=r.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(i=s.el())||void 0===i||i.appendChild(d(m(window.controlsColor))),null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(n=o.el())||void 0===n||n.appendChild(d(u(window.controlsColor)));var v=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(d(p()));var h=document.createElement("div");h.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(h,v.querySelector(".vjs-menu-item"))}(v,h)}export{v as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{g as e,p as r,e as t}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"video.js";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";function i(e){s(e),o(e)}var o=function(i){var o=e(i),s=document.getElementById("".concat(i));s&&s.addEventListener("touchstart",function(){o.paused()?r(i):t(i)})},s=function(r){var t=e(r);t.requestFullscreen=function(){},t.controlBar.hide()};export{i as initaliseSkin};
@@ -0,0 +1 @@
1
+ import{g as e,p as t,e as r}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"video.js";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";function i(i){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),o(),function(i){var o=document.getElementById("".concat(i)),s=e(i);o&&o.addEventListener("touchstart",function(){s.paused()?t(i):r(i)})}(i)}var o=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{i as initaliseSkin};
@@ -0,0 +1 @@
1
+ import{g as e,f as r,r as t}from"./index-2d6bcfdb.js";import{f as i,n as o}from"./features-e537df14.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"video.js";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";function s(s,n){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(o,s){e(o).on("loadeddata",function(){var e;(null===(e=r(o))||void 0===e?void 0:e.length)>0&&i(o,s),null!=s&&s.disableCaptions&&t(o)})}(s,n),function(r){var t=e(r);t.controls(!1),o(r)}(s)}export{s as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{h as l,d as e,e as i,o,p as n,q as t,r as a,s as r}from"./features-e537df14.js";import{g as u,n as d,j as s,o as v,q as p,s as c,t as m,i as b,u as h,a as y,v as f,w as g,l as w,m as C}from"./index-2d6bcfdb.js";import{a as j,i as B,b as T}from"./index-dc66c193.js";import"videojs-contrib-quality-menu";import k from"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-8f8a9f2e.js";function L(e,i){var o=u(e);o&&(o.on("loadeddata",function(){var l,n,t,a,r,m=d(i),b=c();o.qualityLevels()&&o.qualityLevels().length&&function(l){var e=u(l);e&&(null==e||e.qualityMenu,e.qualityMenu({useResolutionLabels:!0}))}(e),!(null!=i&&null!==(l=i.series)&&void 0!==l&&l.enable||null!==(n=window)&&void 0!==n&&null!==(t=n.app_data)&&void 0!==t&&null!==(a=t.appcmsMain)&&void 0!==a&&null!==(r=a.features)&&void 0!==r&&r.auto_play)||null!=i&&i.liveVideo||j(e,i),null!=i&&i.liveVideo||s()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||B(e),m&&b&&b.length?v(e):p()}),o.one("play",function(){var i,o,n,t;null!==(i=window)&&void 0!==i&&null!==(o=i.customData)&&void 0!==o&&o.iframeOverlayUrl&&l(e,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}function M(l,s){u(l).addClass("skin_vlone"),L(l,s),function(l,u){var s,v,p,c,j,B,k,L,M,V,_,q,x,A,E,R,D=(null==u?void 0:u.liveVideo)||!1,I=(null==u||null===(s=u.res)||void 0===s?void 0:s.contentType)||"video",O=(null==u||null===(v=u.res)||void 0===v||null===(p=v[I])||void 0===p?void 0:p.isSSAIEnabled)||!1,P=m(null==u?void 0:u.res,l)||{};P.src;var S=(null==u?void 0:u.skin_settings)||{};d(u),null!=S&&S.skipBtn&&0==(null==u?void 0:u.liveVideo)&&0==(null==u?void 0:u.liveui)&&e(l,"VL_ONE",w());(null!=S&&S.rewindBtn&&0==(null==u?void 0:u.liveVideo)&&0==(null==u?void 0:u.liveui)||1==(null==u?void 0:u.liveui))&&i(l,"VL_ONE",C());(null==u||null===(c=u.relatedVideos)||void 0===c||null===(j=c.content)||void 0===j?void 0:j.length)>0&&o(l,null==u?void 0:u.relatedVideos);null!=u&&null!==(B=u.series)&&void 0!==B&&B.enable&&n(l,u);(null==u||null===(k=u.streams)||void 0===k?void 0:k.length)>1&&t(l,null==u?void 0:u.streams);if(T(l,u),b(l,u),"MEDIA_TAILOR"==(null===(L=window)||void 0===L||null===(M=L.app_data)||void 0===M||null===(V=M.appcmsMain)||void 0===V||null===(_=V.adsConfig)||void 0===_?void 0:_.vodAdSticherProvider)&&null!==(q=window)&&void 0!==q&&null!==(x=q.app_data)&&void 0!==x&&null!==(A=x.appcmsMain)&&void 0!==A&&null!==(E=A.adsConfig)&&void 0!==E&&E.vodAdClientSideTracking&&O)if(D)h(l);else{var H,N=null;if(null!=u&&null!==(H=u.series)&&void 0!==H&&H.enable){var U,$,z,G,Y,F=null===(U=y())||void 0===U||null===($=U.video)||void 0===$||null===(z=$.gist)||void 0===z?void 0:z.id,J=g(),K=(null==J?void 0:J.get(F))||{t:0,p:0},Q=K.t,W=K.p;"function"==typeof(null===(G=window)||void 0===G||null===(Y=G.watchHistory)||void 0===Y?void 0:Y.cb)&&window.watchHistory.cb({watchedTime:Q}),W<95&&(N=Q)}else{var X=u.watchHistoryResumeTime;u.watchedPercentage<95&&(N=X)}f(l,N)}null!=u&&u.isDvrEnabled&&null!=u&&null!==(R=u.dvrConfig)&&void 0!==R&&R.enable&&(a(l,u),r(l,u))}(l,s),V(l,s),function(l){var e,i,o,n=u(l),t=null;if(!n)return;var a=n.controlBar.getChild("VolumePanel"),r=null===(e=a.getChild("MuteToggle"))||void 0===e?void 0:e.el(),d=null==a||null===(i=a.el())||void 0===i?void 0:i.querySelector(".vjs-volume-bar"),s=null==a||null===(o=a.el())||void 0===o?void 0:o.querySelector(".vjs-volume-level");if(!a||!d||!s)return;function v(l){l.preventDefault(),t&&(clearTimeout(t),t=null),c(m(l.touches[0]))}function p(l){l.preventDefault(),c(m(l.changedTouches[0])),t=setTimeout(function(){a.el().classList.remove("vjs-hover")},2e3)}function c(l){var e=Math.min(Math.max(l,0),100);s.style.height=e+"%",d.setAttribute("aria-valuenow",e),d.setAttribute("aria-valuetext",e+"%"),n.volume(e/100)}function m(l){var e=d.getBoundingClientRect(),i=l.clientY-e.top,o=e.height;return 100-Math.min(Math.max(i/o*100,0),100)}r.addEventListener("touchend",function(){null!=a&&a.el()&&(a.el().classList.toggle("vjs-hover"),n.muted(!1),t&&(clearTimeout(t),t=null),t=setTimeout(function(){a.el().classList.remove("vjs-hover")},2e3))}),d.addEventListener("touchmove",v,{passive:!1}),d.addEventListener("touchstart",v,{passive:!1}),d.addEventListener("touchend",p,{passive:!1})}(l)}var V=function(l,e){var i,o,n,t,a,r,d,s,v,p,c,m,b=u(l),h=(null==e?void 0:e.theme)||{},y=k.dom.$(".vjs-play-progress"),f=k.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");f&&(f.style.color="".concat(null===(i=window)||void 0===i||null===(o=i.app_data)||void 0===o||null===(n=o.appcmsMain)||void 0===n||null===(t=n.brand)||void 0===t||null===(a=t.cta)||void 0===a||null===(r=a.primary)||void 0===r?void 0:r.backgroundColor)),y&&(y.style.background="".concat(null===(d=window)||void 0===d||null===(s=d.app_data)||void 0===s||null===(v=s.appcmsMain)||void 0===v||null===(p=v.brand)||void 0===p||null===(c=p.cta)||void 0===c||null===(m=c.primary)||void 0===m?void 0:m.backgroundColor));var g=b.getChild("BigPlayButton")||null;(null==h?void 0:h.progressBarColor)&&y&&(y.style.background=h.progressBarColor),(null==h?void 0:h.playButtonBackgroundColor)&&g&&(g.el().style.background=h.playButtonBackgroundColor),(null==h?void 0:h.playButtonColor)&&f&&(f.style.color=h.playButtonColor),(null==h?void 0:h.playButtonType)&&("square"==(null==h?void 0:h.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{M as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{f as l,g as e,h as o,d as i,e as n,i as t,j as a,k as r,l as d,m as s}from"./features-e537df14.js";import{g as u,f as v,h as m,j as p,c,k as h,M as b,b as f,l as g,m as C}from"./index-2d6bcfdb.js";import{a as y,i as j,b as V}from"./index-dc66c193.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-8f8a9f2e.js";function w(w,B){u(w).addClass("skin_defaultv2"),function(){"Chrome"==h()&&import("./chromett-a3cbb2e1.js").then(function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)});import("./skin-fbab87d5.js").then(function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)})}(),function(i,n){var t=u(i);t&&(t.on("loadeddata",function(){var o,t,a,r,d,s,u;(null===(o=v(i))||void 0===o?void 0:o.length)>0&&l(i,n),(null===(t=m(i))||void 0===t?void 0:t.length)>0&&e(i,n),!(null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable||null!==(r=window)&&void 0!==r&&null!==(d=r.app_data)&&void 0!==d&&null!==(s=d.appcmsMain)&&void 0!==s&&null!==(u=s.features)&&void 0!==u&&u.auto_play)||null!=n&&n.liveVideo||y(i,n),null!=n&&n.liveVideo||p()||j(i)}),t.one("play",function(){var l,e,n,t;null!==(l=window)&&void 0!==l&&null!==(e=l.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(i,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}(w,B),function(l,e){var o,i,n,t,a,r,d,s,v,m,p,h,g,C=u(l);null===(o=C.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(i=C.controlBar)||void 0===i||i.addChild("VolumePanel",{inline:!1},1);var y=null===(n=C.controlBar)||void 0===n?void 0:n.getChild("ProgressControl"),j=null===(t=C.controlBar)||void 0===t?void 0:t.getChild("CurrentTimeDisplay"),V=null===(a=C.controlBar)||void 0===a?void 0:a.getChild("SeekToLive"),w=document.createElement("div");w.className="custom-spaced-progress-bar",y&&j&&V&&w.append(y.el(),j.el(),V.el());null===(r=C.controlBar)||void 0===r||null===(d=r.el())||void 0===d||d.append(w),null==C||null===(s=C.controlBar)||void 0===s||null===(v=s.getChild("FullscreenToggle"))||void 0===v||null===(m=v.el())||void 0===m||m.appendChild(c(b(window.controlsColor))),null==C||null===(p=C.controlBar)||void 0===p||null===(h=p.getChild("FullscreenToggle"))||void 0===h||null===(g=h.el())||void 0===g||g.appendChild(c(f(window.controlsColor)));var B=document.getElementsByClassName("vjs-time-control");e.liveVideo&&B[0]&&(B[0].style.display="none")}(w,B),function(l,e){var o,u,v,m,p,c,h=(null==e?void 0:e.skin_settings)||{},b=0!=(null==h?void 0:h.slowMoBtn);0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)&&i(l,"defaultV2",g());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",C());!e.liveVideo&&b&&t(l);(null==e||null===(o=e.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&a(l,null==e?void 0:e.relatedVideos);(null==e||null===(v=e.streams)||void 0===v?void 0:v.length)>1&&r(l,null==e?void 0:e.streams);(null==e||null===(m=e.playlist)||void 0===m||null===(p=m.content)||void 0===p?void 0:p.length)>0&&d(l,null==e?void 0:e.playlist);null!=e&&null!==(c=e.series)&&void 0!==c&&c.enable&&s(l,e)}(w,B),V(w,B)}export{w as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{f as l,d as e,e as i,j as n,k as t,l as o,m as s}from"./features-e537df14.js";import{g as r,f as C,j as a,x as u,y as d,k as v,z as c}from"./index-2d6bcfdb.js";import{a as p,i as h,b as m}from"./index-dc66c193.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-8f8a9f2e.js";function f(f,b){r(f).addClass("skin_news"),function(){"Chrome"==v()&&import("./chromett-a3cbb2e1.js").then(function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)});import("./skin-9fece9a0.js").then(function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)})}(),function(e,i){var n=r(e);n&&n.on("loadeddata",function(){var n,t,o,s,r,u;(null===(n=C(e))||void 0===n?void 0:n.length)>0&&l(e,i),!(null!=i&&null!==(t=i.series)&&void 0!==t&&t.enable||null!==(o=window)&&void 0!==o&&null!==(s=o.app_data)&&void 0!==s&&null!==(r=s.appcmsMain)&&void 0!==r&&null!==(u=r.features)&&void 0!==u&&u.auto_play)||null!=i&&i.liveVideo||p(e,i),null!=i&&i.liveVideo||a()||h(e)})}(f,b),function(l){var e,i,n,t,o,s,C,a,v,c,p,h,m,f,b,B,y,L,j=r(l);null===(e=j.controlBar)||void 0===e||e.removeChild("VolumePanel"),null===(i=j.controlBar)||void 0===i||i.addChild("VolumePanel",{inline:!1},1);var g=null===(n=j.controlBar)||void 0===n?void 0:n.getChild("ProgressControl"),w=document.createElement("div");w.className="custom-spaced-progress-bar",g&&w.append(g.el());null===(t=j.controlBar)||void 0===t||null===(o=t.el())||void 0===o||o.append(w);var E='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(u(E),null!==(s=j.el().firstChild)&&void 0!==s?s:null);var V=(null==j||null===(C=j.controlBar)||void 0===C||null===(a=C.getChild("PlayToggle"))||void 0===a||null===(v=a.el())||void 0===v?void 0:v.firstChild)||null;if(V){V.style.height="24px",V.style.width="24px";var x=d(V,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",function(){return x.setAttributeNS(null,"href","#vjs-icon-play")}),j.on("play",function(){return x.setAttributeNS(null,"href","#vjs-icon-pause")})}var M=(null==j||null===(c=j.controlBar)||void 0===c||null===(p=c.getChild("FullscreenToggle"))||void 0===p||null===(h=p.el())||void 0===h?void 0:h.firstChild)||null;if(M){M.style.height="24px",M.style.width="24px";var k=d(M,"#vjs-icon-fullscreen");j.on("fullscreenchange",function(){var l=j.isFullscreen_;null==k||k.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var Z=(null==j||null===(m=j.controlBar)||void 0===m||null===(f=m.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(Z){var S=Z.querySelector(".vjs-mute-control .vjs-icon-placeholder");S.classList.add("vjs-svg-icon"),S.style.height="24px",S.style.width="24px";var N=d(S,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",function(l){var e=j.volume();console.log(e,j.muted()),0==e||j.muted()?N.setAttributeNS(null,"href","#vjs-icon-mute"):e>0&&e<=.3?N.setAttributeNS(null,"href","#vjs-icon-volume1"):e>=.3&&e<=.7?N.setAttributeNS(null,"href","#vjs-icon-volume2"):N.setAttributeNS(null,"href","#vjs-icon-volume3")})}var A=(null==j||null===(b=j.controlBar)||void 0===b||null===(B=b.getChild("PictureInPictureToggle"))||void 0===B?void 0:B.el())||null;if(A){var H=null==A?void 0:A.querySelector(".vjs-icon-placeholder");H.style.height="16px",H.style.width="25px";var _=d(H,"#vjs-icon-pip");j.on("enterpictureinpicture",function(){_.setAttributeNS(null,"href","#vjs-icon-pip")})}var P=(null==j||null===(y=j.controlBar)||void 0===y||null===(L=y.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(P){var T=P.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");T.classList.add("vjs-svg-icon"),T.style.height="16px",T.style.width="29px";var q=d(T,"#vjs-icon-caps");q.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",function(l){for(var e=j.textTracks(),i=!1,n=0;n<e.length;n++){var t=e[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?q.setAttributeNS(null,"href","#vjs-icon-captions"):q.setAttributeNS(null,"href","#vjs-icon-captions-off")})}}(f),function(l,r){var C,a,u,d,v,p,h=(null==r?void 0:r.skin_settings)||{};null==h||h.slowMoBtn,null!=h&&h.skipBtn&&0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e(l,"VL_ONE",SkipSvgV2());(null!=h&&h.rewindBtn&&0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&i(l,"VL_ONE",c());(null==r||null===(C=r.relatedVideos)||void 0===C||null===(a=C.content)||void 0===a?void 0:a.length)>0&&n(l,null==r?void 0:r.relatedVideos);(null==r||null===(u=r.streams)||void 0===u?void 0:u.length)>1&&t(l,null==r?void 0:r.streams);(null==r||null===(d=r.playlist)||void 0===d||null===(v=d.content)||void 0===v?void 0:v.length)>0&&o(l,null==r?void 0:r.playlist);null!=r&&null!==(p=r.series)&&void 0!==p&&p.enable&&s(l,r)}(f,b),m(f,b)}export{f as initialiseSkin};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import t from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import n from"video.js";import{ad as l,ae as a}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var m=n.getComponent("Component"),p=function(){t(b,m);var p,u,c=(p=b,u=s(),function(){var e,r=i(p);if(u){var t=i(this).constructor;e=Reflect.construct(r,arguments,t)}else e=r.apply(this,arguments);return o(this,e)});function b(r,t){var o,i;return e(this,b),(i=c.call(this,r,t)).el().innerHTML=l(),null==t||null===(o=t.dvrConfig)||void 0===o||o.programs,i.on("click",function(){a(r,t)}),i}return r(b,[{key:"createEl",value:function(){return n.dom.createEl("button",{className:"vjs-control vjs-button watch-begin-btn",role:"button",tabIndex:0,title:"Start From Beginning"})}}]),b}();export{p as default};
@@ -1,3 +1,3 @@
1
- export function getUserId(): string;
1
+ export function getUserId(): Promise<any>;
2
2
  export function generateId(): string;
3
3
  export function inititateBeacon(playerId: any, analyticsCb: any, customData?: {}): void;
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{L as r,T as l,U as s,V as d,B as c,F as m,X as p,aa as u,I as v,Z as h}from"./index-2d6bcfdb.js";import{a as f}from"./autoNextVideo-8f8a9f2e.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),C=function(){o(E,y);var C,g,N=(C=E,g=b(),function(){var e,t=i(C);if(g){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function E(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(h(0),f({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(E,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(l(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",s(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),d(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(c())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:m("relatedVideoTitle")||"Recommended"}),l=a.dom.createEl("div",{className:"video-selector-content"}),s=a.dom.createEl("div",{className:"video-container"}),d=function(e){var o,n,i,r,d,c=a.dom.createEl("div",{className:"video -".concat(e)}),m=a.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){h(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";u(e),v(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(d=t.videos[e])||void 0===d?void 0:d.title)||"")});a.dom.appendContent(c,m),a.dom.appendContent(c,f),a.dom.appendContent(s,c),a.dom.appendContent(l,s)},f=0;f<this.videos.length;f++)d(f);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,l),p(this.playerId,e)}}]),E}();export{C as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{Q as l,T as d,U as s,V as r,W as c,I as m,B as u,F as v,X as p,Y as h,Z as b}from"./index-2d6bcfdb.js";import{a as y}from"./autoNextVideo-8f8a9f2e.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=a.getComponent("Component"),g=function(){o(N,C);var g,E,I=(g=N,E=f(),function(){var e,t=i(g);if(E){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function N(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,N),(i=I.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(b(0),y({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(N,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(d(),o.classList.remove("hidden"),t.classList.add("open"),s(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),r(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;b(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";c(e),m(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))[0]&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(u())});i.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:v("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),s=a.dom.createEl("div",{className:"video-container video-accessibility"}),r=function(e){var o,n,i,l,r,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(r=l.appcmsMain)||void 0===r||null===(c=r.images)||void 0===c?void 0:c.placeholderCover)),b.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,y),a.dom.appendContent(s,v),a.dom.appendContent(d,s)},c=0;c<this.videos.length;c++)r(c);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),N}();export{g as default};