@viewlift/player-backup 2.0.92-smartTv-test8 → 2.0.92-smartTv-test10

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 (89) hide show
  1. package/cjs/{autoNextVideo-c350df7b.js → autoNextVideo-6842bf1e.js} +1 -1
  2. package/cjs/autoNextVideo-e09dd4b5.js +1 -0
  3. package/cjs/bundle.css +4 -4
  4. package/cjs/{features-eb94500c.js → features-164d9559.js} +1 -1
  5. package/cjs/features-194d4a4a.js +1 -0
  6. package/cjs/{generic-0c35f368.js → generic-c19ce514.js} +1 -1
  7. package/cjs/generic-def54bbe.js +1 -0
  8. package/cjs/{index-5fc16e9e.js → index-0c84da35.js} +1 -1
  9. package/cjs/{index-1838c329.js → index-1bc6e4e1.js} +1 -1
  10. package/cjs/index-66c8779a.js +1 -0
  11. package/cjs/index-c7da0bd6.js +1 -0
  12. package/cjs/index.js +1 -1
  13. package/cjs/{multicamv2-0a17293d.js → multicamv2-1ac4ccf1.js} +1 -1
  14. package/cjs/{multicamv2-063ef4b5.js → multicamv2-73c22260.js} +1 -1
  15. package/cjs/multicamv2-936f60ff.js +1 -0
  16. package/cjs/multicamv2-fee75fc1.js +1 -0
  17. package/cjs/{nextEpisodeButton-13952866.js → nextEpisodeButton-05c5a9dc.js} +1 -1
  18. package/cjs/nextEpisodeButton-86065304.js +1 -0
  19. package/cjs/{playlist-8ef107a3.js → playlist-55d7cfe6.js} +1 -1
  20. package/cjs/playlist-64dbfa4a.js +1 -0
  21. package/cjs/{series-24d7cb4e.js → series-1914b8bc.js} +1 -1
  22. package/cjs/series-5b4f0d53.js +1 -0
  23. package/cjs/{series-v2-62db0e36.js → series-v2-0ca89367.js} +1 -1
  24. package/cjs/{series-v2-cef236d8.js → series-v2-2f4f32b3.js} +1 -1
  25. package/cjs/series-v2-d07a7942.js +1 -0
  26. package/cjs/series-v2-d1d7ceff.js +1 -0
  27. package/cjs/{skin-38f1a2fc.js → skin-15d13e48.js} +1 -1
  28. package/cjs/{skin-e12a0fef.js → skin-1d18fba7.js} +1 -1
  29. package/cjs/{skin-b1633de8.js → skin-4d8917b6.js} +1 -1
  30. package/cjs/skin-53a84878.js +1 -0
  31. package/cjs/{skin-12bc785c.js → skin-634c2100.js} +1 -1
  32. package/cjs/skin-70c07a7e.js +1 -0
  33. package/cjs/skin-aba2ebf4.js +1 -0
  34. package/cjs/skin-b9d750c7.js +1 -0
  35. package/cjs/{skin-d9e4f8fc.js → skin-d29ebe60.js} +1 -1
  36. package/cjs/{skin-a1ee643b.js → skin-e203c087.js} +1 -1
  37. package/cjs/skin-f370223b.js +1 -0
  38. package/cjs/{skin-e067a109.js → skin-f4d42976.js} +1 -1
  39. package/cjs/skin-f694c50c.js +1 -0
  40. package/cjs/skin-fdb52765.js +1 -0
  41. package/cjs/{videoSelector-65192a98.js → videoSelector-7b96e887.js} +1 -1
  42. package/cjs/videoSelector-9da40745.js +1 -0
  43. package/cjs/{videoSelector-7f301deb.js → videoSelector-f7367197.js} +1 -1
  44. package/cjs/videoSelector-f80fd578.js +1 -0
  45. package/esm/{autoNextVideo-89bf12ac.js → autoNextVideo-57e39c2b.js} +1 -1
  46. package/esm/autoNextVideo-eb7653f5.js +1 -0
  47. package/esm/bundle.css +4 -4
  48. package/esm/{features-7ebeedef.js → features-0fa41453.js} +1 -1
  49. package/esm/features-bee4be78.js +1 -0
  50. package/esm/{generic-c2920429.js → generic-8c232113.js} +1 -1
  51. package/esm/generic-d036e0c3.js +1 -0
  52. package/esm/{index-28856e72.js → index-2c81a570.js} +1 -1
  53. package/esm/{index-041e7de7.js → index-397c761f.js} +1 -1
  54. package/esm/index-9204c12e.js +1 -0
  55. package/esm/index-e8a8d6bc.js +1 -0
  56. package/esm/index.js +1 -1
  57. package/esm/{multicamv2-401586c5.js → multicamv2-19227feb.js} +1 -1
  58. package/esm/multicamv2-243a2d0d.js +1 -0
  59. package/esm/{multicamv2-6c33d338.js → multicamv2-5011595d.js} +1 -1
  60. package/esm/multicamv2-82f420e3.js +1 -0
  61. package/esm/{nextEpisodeButton-2fef2e20.js → nextEpisodeButton-0e6e9a99.js} +1 -1
  62. package/esm/nextEpisodeButton-1bfc42cd.js +1 -0
  63. package/esm/{playlist-016d4588.js → playlist-08aae44b.js} +1 -1
  64. package/esm/playlist-d62f0e1d.js +1 -0
  65. package/esm/{series-45a2c046.js → series-3890c03d.js} +1 -1
  66. package/esm/series-38d43d02.js +1 -0
  67. package/esm/{series-v2-e5e65d24.js → series-v2-48a526b1.js} +1 -1
  68. package/esm/series-v2-575f3828.js +1 -0
  69. package/esm/{series-v2-832edccb.js → series-v2-5e24f55e.js} +1 -1
  70. package/esm/series-v2-ad505b62.js +1 -0
  71. package/esm/{skin-c4585908.js → skin-0d8cbec3.js} +1 -1
  72. package/esm/{skin-dbfebb49.js → skin-101250f3.js} +1 -1
  73. package/esm/{skin-67ccd73a.js → skin-1bf9ceff.js} +1 -1
  74. package/esm/{skin-c4fe4f21.js → skin-52a2c45b.js} +1 -1
  75. package/esm/{skin-aed7b0ac.js → skin-8285699e.js} +1 -1
  76. package/esm/skin-91ea9846.js +1 -0
  77. package/esm/{skin-b720eeaf.js → skin-b11f07c9.js} +1 -1
  78. package/esm/skin-d0b8a20f.js +1 -0
  79. package/esm/skin-dedcfa56.js +1 -0
  80. package/esm/{skin-af71c222.js → skin-e0d75fb2.js} +1 -1
  81. package/esm/skin-e4470dd0.js +1 -0
  82. package/esm/skin-ebe075ff.js +1 -0
  83. package/esm/skin-ecc6caf9.js +1 -0
  84. package/esm/skin-fd8ab03a.js +1 -0
  85. package/esm/{videoSelector-f235608d.js → videoSelector-135b3f39.js} +1 -1
  86. package/esm/{videoSelector-67bbbd4e.js → videoSelector-408efa97.js} +1 -1
  87. package/esm/videoSelector-7dfef6f4.js +1 -0
  88. package/esm/videoSelector-9f4b211e.js +1 -0
  89. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./features-194d4a4a.js"),t=require("./skin-f87e1c22.js"),i=require("./index-66c8779a.js"),n=require("./browser-38ff3331.js"),o=require("@babel/runtime/helpers/classCallCheck"),l=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),a=require("@babel/runtime/helpers/possibleConstructorReturn"),s=require("@babel/runtime/helpers/getPrototypeOf"),u=require("video.js"),d=require("@babel/runtime/helpers/toConsumableArray"),c=require("@babel/runtime/helpers/typeof"),v=require("./generic-c19ce514.js"),p=require("./index-c7da0bd6.js");require("@babel/runtime/helpers/defineProperty"),require("./renditions-89042a16.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-6842bf1e.js"),require("./util-47af43d1.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("video.js/dist/video-js.min.css"),require("./resolution-5e1f1897.js"),require("@babel/runtime/helpers/assertThisInitialized");var h=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},f=function(){function e(t){if(o(this,e),!t||"object"!==c(t))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.handleClick=t.callback||function(){},this.focused=t.focused||!1,"function"!=typeof this.handleClick)throw new Error("SettingsOptionOneWrapper: callback must be a function");this.handleClick=this.handleClick.bind(this)}return l(e,[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");n.textContent=this.title,i.appendChild(n);var o=document.createElement("p");o.textContent="›",o.style.fontSize="24px",i.appendChild(o),this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),i.addEventListener("keydown",function(e){"Enter"!==e.key&&"OK"!==e.key||t.handleClick()}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}]),e}(),m=function(){function e(t){if(o(this,e),!t||"object"!==c(t))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.selected=t.selected||!1,this.focused=t.focused||!1,this.id=t.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")}return l(e,[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");if(n.textContent=this.title,i.appendChild(n),this.selected){i.classList.add("selected");var o=document.createElement("span");o.appendChild(h('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),i.appendChild(o)}this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}]),e}(),y=function(){function e(t){if(o(this,e),!t||"object"!==c(t))throw new Error("Sidebar: props must be a valid object");if(this.title=t.title||"Settings",this.items=t.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=t.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=t.lastFocusedElement||null,this.type=t.type||"navigation",this.focused=t.focused||!1,this.callback=t.callback||function(){},this.onselect=t.onselect||function(){},"function"!=typeof this.callback)throw new Error("Sidebar: callback must be a function");if(!["navigation","selection"].includes(this.type))throw new Error('Sidebar: type must be either "navigation" or "selection"')}return l(e,[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname;var n=document.createElement("div");n.textContent=this.title,n.className="settingsHeading",i.appendChild(n);var o=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,i){var n=new f({title:e.text,klassname:"default-option-wrapper",focused:0===i,callback:e.callback});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}):"selection"===this.type&&this.items.forEach(function(e,i){var n=new m({title:e.text,klassname:"default-option-wrapper",focused:0===i,selected:e.isSelected,id:e.id});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}),i.appendChild(o),this.sidebarElement=i,e.appendChild(i),this.addEventListeners(),this.focus()}},{key:"addEventListeners",value:function(){var e=this;if(!this.sidebarElement)throw new Error("Sidebar: sidebarElement is not initialized");this.sidebarElement.addEventListener("keydown",function(t){"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusNext()):"ArrowUp"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusPrevious()):"Backspace"===t.key||"Escape"===t.key||10009===t.keyCode||461===t.keyCode||196===t.keyCode||8===t.keyCode?(t.preventDefault(),t.stopPropagation(),e.unfocus(),e.unmount()):"Enter"!==t.key&&"OK"!==t.key||(t.preventDefault(),t.stopPropagation(),"selection"===e.type&&e.selectionTypeAction())})}},{key:"selectionTypeAction",value:function(){if(this.currentFocusedOption){this.items.forEach(function(e){if(e.instance){e.instance.optionWrapper.classList.remove("selected"),e.instance.selected=!1;var t=e.instance.optionWrapper.querySelector("span");t&&t.remove();var i=e.instance.optionWrapper.querySelector("svg");i&&i.remove()}}),this.currentFocusedOption.optionWrapper.classList.add("selected"),this.currentFocusedOption.selected=!0;this.currentFocusedOption.optionWrapper.appendChild(h('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),this.onselect(this.currentFocusedOption)}}},{key:"focusNext",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.nextElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focusPrevious",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.previousElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.focus()}},{key:"unfocus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.blur()}},{key:"unmount",value:function(){this.sidebarElement&&(this.sidebarElement.remove(),this.sidebarElement=void 0,this.lastFocusedElement&&(this.callback(),this.lastFocusedElement.focus()),this.currentFocusedOption=null)}}]),e}();function g(e,t){var i,n,o,l,r,a,s,u=[{text:"Video Quality",isSelected:!0,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l,r;if(!e)return;var a=null===(i=t.qualityLevels())||void 0===i?void 0:i.levels_,s=-1==(null===(n=t.qualityLevels())||void 0===n?void 0:n.selectedIndex_)?"auto":null===(o=t.qualityLevels())||void 0===o?void 0:o.levels_[null===(l=t.qualityLevels())||void 0===l?void 0:l.selectedIndex_].height,u=[{text:"Auto",id:"auto",isSelected:"auto"===s,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}].concat(d(a.map(function(t){return{text:"".concat(t.height,"p"),id:t.height,isSelected:s===t.height,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}})));r=new y({title:"Video Quality",items:u,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){if("auto"===e.id)t.el_.player.qualityLevels().selectedIndex_=-1;else{var i=a.findIndex(function(t){return t.height===e.id});-1!==i&&(t.el_.player.qualityLevels().selectedIndex_=i)}},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),r.mount(null==t?void 0:t.el())}(s,e)}}];null!=e&&null!==(i=e.audioTracks())&&void 0!==i&&i.tracks_&&(null==e||null===(n=e.audioTracks())||void 0===n||null===(o=n.tracks_)||void 0===o?void 0:o.length)>1&&u.push({text:"Audio Language",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l;if(!e)return;var r=null==t||null===(i=t.audioTracks())||void 0===i?void 0:i.tracks_,a=(null==r||null===(n=r.find(function(e){return e.enabled}))||void 0===n?void 0:n.label)||(null==r||null===(o=r[0])||void 0===o?void 0:o.label)||"Default",s=r.map(function(t){return{text:t.label,id:t.id,isSelected:a===t.label,callback:function(){e.currentFocusedOption.focus(),l.unmount()}}});l=new y({title:"Audio Language",items:s,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==r||r.forEach(function(t){t.enabled=!1,t.enabled=t.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),l.mount(null==t?void 0:t.el())}(s,e)}});var c=null==e||null===(l=e.textTracks())||void 0===l?void 0:l.tracks_;return(c=c.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(r=c)||void 0===r?void 0:r.length)>0&&u.push({text:"Subtitles",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o;if(!e)return;var l=t.textTracks().tracks_;l=l.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var r=(null===(i=l)||void 0===i||null===(n=i.find(function(e){return"showing"===e.mode}))||void 0===n?void 0:n.label)||"Captions Off",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===r,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}].concat(d(l.map(function(t){return{text:t.label,id:t.id,kind:t.kind,lang:t.language,mode:t.mode,isSelected:r===t.label,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}})));o=new y({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var t;null===(t=l)||void 0===t||t.forEach(function(t){t.mode=t.id===e.id?"showing":"hidden"})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),o.mount(null==t?void 0:t.el())}(s,e)}}),(s=new y({title:"Settings",items:u,klassname:"default-sidebar",lastFocusedElement:t,type:"navigation",focused:!0,callback:function(){var i;null===(i=e.controlBar)||void 0===i||i.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){t.focus()},100)}})).mount(null==e?void 0:e.el()),null===(a=e.controlBar)||void 0===a||a.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),s}function k(e){var t=b();return function(){var i,n=s(e);if(t){var o=s(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return a(this,i)}}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var C=function(e){var t=function(t){r(n,t);var i=k(n);function n(e){var t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,n);var r=(t=i.call(this,e,l)).el_,a=r.querySelector(".vjs-icon-placeholder");r.querySelector(".vjs-control-text").textContent="CC",r.classList.add("vjs-ClosedCaption-button");return a.append(h('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M92.7268 78.3757H81.5999V88.0906L57.4173 78.3757H9.27274V16.2273H92.7268V78.3757ZM17.6184 69.5027H57.3108L73.7991 74.6169L73.8001 69.5027H84.3821V25.2107H17.6184V69.5027Z" fill="currentColor"/>\n<rect x="20.8628" y="34.7727" width="39.4091" height="6.95455" fill="currentColor"/>\n<rect x="69.5446" y="34.7727" width="11.5909" height="6.95455" fill="currentColor"/>\n<rect x="44.0446" y="51" width="37.0909" height="9.27273" fill="currentColor"/>\n<rect x="20.8628" y="51" width="13.9091" height="9.27273" fill="currentColor"/>\n</svg>')),t}return l(n,[{key:"handleClick",value:function(){!function(e){var t,i,n,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.textTracks().tracks_,a=(null===(t=r=r.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))||void 0===t||null===(i=t.find(function(e){return"showing"===e.mode}))||void 0===i?void 0:i.label)||"Captions Off",s=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===a,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}].concat(d(r.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:a===e.label,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}})));(o=new y({title:"Closed Captions",items:s,klassname:"default-sidebar",lastFocusedElement:l,type:"selection",focused:!0,onselect:function(t){var i,n;null===(i=r)||void 0===i||i.forEach(function(e){e.mode=e.id===t.id?"showing":"hidden"}),o.unmount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)},callback:function(){var t;o.unmount(null==e?void 0:e.el()),null===(t=e.controlBar)||void 0===t||t.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)}})).mount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}]),n}(u.getComponent("Button"));return u.registerComponent("CloseCaptionButton",t),new t(e,{})};var w=function(e){if(e)try{var t,i,n,o=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(n=i.entitlement)||void 0===n?void 0:n.deviceType)||"smart_tv_samsung";e&&(!function(e){try{var t;"smart_tv_samsung"==e&&null!==(t=window)&&void 0!==t&&t.tizen&&(window.tizen.tvinputdevice.registerKey("MediaPlayPause"),window.tizen.tvinputdevice.registerKey("MediaRewind"),window.tizen.tvinputdevice.registerKey("MediaFastForward"),window.tizen.tvinputdevice.registerKey("Exit"),window.tizen.tvinputdevice.registerKey("MediaPlay"),window.tizen.tvinputdevice.registerKey("MediaPause"),window.tizen.tvinputdevice.registerKey("MediaStop"))}catch(e){}}(o),e.on("keydown",function(t){10252==t.keyCode||"xfinityX1"==o&&179==t.keyCode?e.paused()?e.play():e.pause():415==t.keyCode?e.play():19==t.keyCode?e.pause():412===t.keyCode||"xfinityX1"==o&&227==t.keyCode?e.currentTime(e.currentTime()-10):(417===t.keyCode||"xfinityX1"==o&&228==t.keyCode)&&e.currentTime(e.currentTime()+10)}))}catch(e){}};exports.initialiseSkin=function(a,s){var d=t.getPlayer(a);d.addClass("skin_smartTV"),function(e,t){var i,n,a,s,d,c,v,p,f,m,y,b,C,L,S,E,x,q,T,O,B,F,_,j,W,D,M,P,V,A,I,z=null==e?void 0:e.el();z&&(z.style.color=(null==t||null===(i=t.theme)||void 0===i?void 0:i.color)||(null===(n=window)||void 0===n||null===(a=n.app_data)||void 0===a||null===(s=a.appcmsMain)||void 0===s||null===(d=s.brand)||void 0===d||null===(c=d.cta)||void 0===c||null===(v=c.primary)||void 0===v?void 0:v.backgroundColor)||"#FFFFFF");null===(p=e.controlBar)||void 0===p||p.removeChild("VolumePanel"),null===(f=e.controlBar)||void 0===f||f.removeChild("AudioTrackButton"),null===(m=e.controlBar)||void 0===m||m.removeChild("FullscreenToggle"),null===(y=e.controlBar)||void 0===y||y.removeChild("PictureInPictureToggle"),null===(b=e.controlBar)||void 0===b||b.removeChild("skipBackward"),null===(C=e.controlBar)||void 0===C||C.removeChild("skipForward"),null===(L=e.controlBar)||void 0===L||L.removeChild("PictureInPictureToggle");var H=document.createElement("div");H.className="custom-smartTV-progress-bar",null===(S=e.controlBar)||void 0===S||null===(E=S.el())||void 0===E||E.append(H);var R=null===(x=e.controlBar)||void 0===x?void 0:x.getChild("CustomControlSpacer");try{H.style.opacity=0,R.el_.style.opacity=0}catch(e){}var G=null===(q=e.controlBar)||void 0===q?void 0:q.getChild("ProgressControl"),K=null===(T=e.controlBar)||void 0===T?void 0:T.getChild("CurrentTimeDisplay"),N=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(B=e.controlBar)||void 0===B?void 0:B.getChild("LiveDisplay"),Q=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("RemainingTimeDisplay");G&&K&&N&&H.append(K.el(),G.el(),Q.el(),null==Z?void 0:Z.el());null==R||R.addChild(N);var U=e.getChild("TitleBar");null==R||R.addChild(U);var X=function(e){var t=function(t){r(n,t);var i=k(n);function n(e){var t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,n);var r=(t=i.call(this,e,l)).el_;return r.querySelector(".vjs-control-text").textContent="Start From Beginning",r.classList.add("vjs-startFromBeginning-button"),t}return l(n,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}]),n}(u.getComponent("Button"));return u.registerComponent("StartFromBeginning",t),new t(e,{})}(e);null==R||R.addChild(X);var J,Y,$,ee=function(e){var t=function(t){r(n,t);var i=k(n);function n(e){var t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,n);var r=(t=i.call(this,e,l)).el_,a=r.querySelector(".vjs-icon-placeholder");return r.querySelector(".vjs-control-text").textContent="Settings",r.classList.add("vjs-Settings-button"),a.append(h('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M90.913 45.8867V56.1132L80.0959 58.1496C79.4266 61.1027 78.2623 63.9214 76.6523 66.4864L82.8603 75.597L75.586 82.8192L66.5158 76.664C63.9394 78.2538 61.1222 79.4156 58.1737 80.1041L56.1361 90.913H45.8542L43.8193 80.1041C40.8708 79.4158 38.0535 78.2541 35.4773 76.664L26.4071 82.8192L19.1313 75.597L25.2918 66.4864C23.7008 63.9116 22.5379 61.0962 21.8482 58.1496L11.087 56.1132V45.8867L21.8482 43.8028C22.5428 40.8493 23.7235 38.0315 25.3421 35.4646L19.1327 26.4016L26.4085 19.1807L35.4787 25.3359C38.045 23.7263 40.8656 22.5627 43.8207 21.8945L45.8556 11.0869H56.1375L58.1751 21.8945C61.1301 22.5631 63.9506 23.7267 66.5172 25.3359L75.5874 19.1807L82.8617 26.4016L76.6537 35.5135C78.2633 38.0617 79.4277 40.8647 80.0973 43.8028L90.913 45.8867ZM28.9308 51.0214C28.9434 63.1872 38.8221 73.0394 50.9956 73.0271C56.8418 73.0212 62.4462 70.6944 66.5758 66.5588C70.7054 62.4232 73.0219 56.8174 73.0156 50.9748C73.0025 38.809 63.1234 28.9572 50.9499 28.9701C38.7764 28.983 28.9182 38.8556 28.9308 51.0214Z" fill="currentColor"/>\n</svg>')),t}return l(n,[{key:"handleClick",value:function(){g(e,this)}}]),n}(u.getComponent("Button"));return u.registerComponent("SettingsButton",t),new t(e,{})}(e);if(null==R||R.addChild(ee),!(null!=t&&null!==(_=t.res)&&void 0!==_&&null!==(j=_.video)&&void 0!==j&&null!==(W=j.streamingInfo)&&void 0!==W&&W.isLiveStream)||null!=t&&null!==(D=t.res)&&void 0!==D&&null!==(M=D.video)&&void 0!==M&&null!==(P=M.liveDetails)&&void 0!==P&&P.isDvrEnabled){var te,ie,ne=function(e){var t=function(t){r(n,t);var i=k(n);function n(e){var t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,n);var r=(t=i.call(this,e,l)).el_,a=r.querySelector(".vjs-icon-placeholder");return r.querySelector(".vjs-control-text").textContent="Forward",r.classList.add("vjs-forward-button"),a.append(h('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M461.37 551.05a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67t-12.02 3.59zm109.47-75.65a33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85 33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83zm-1.5 66.6q-4.43 8.19-13.15 8.19c-5.91 0-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.83-4.43 22.32z"></path><path d="M687.85 490l-25.1 5a153.7 153.7 0 1 1-301.6.77c15.68-80.78 92.29-134.47 173-122.56L528.5 389l66.74-8-46.45-48.58-5.79 16.24C447 331.88 354.66 395 336 490.9a179.29 179.29 0 0 0 141.77 210.2 182.22 182.22 0 0 0 34.61 3.35A179.4 179.4 0 0 0 687.85 490z"></path></g></svg>')),t}return l(n,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t>=0){var i=t+30;e.currentTime(i)}}}]),n}(u.getComponent("Button"));return u.registerComponent("ForwardButton",t),new t(e,{})}(e);null===(te=e.controlBar)||void 0===te||te.addChild(ne);var oe=function(e){var t=function(t){r(n,t);var i=k(n);function n(e){var t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,n);var r=(t=i.call(this,e,l)).el_,a=r.querySelector(".vjs-icon-placeholder");return r.querySelector(".vjs-control-text").textContent="Rewind",r.classList.add("vjs-rewind-button"),a.append(h('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M473.39 547.46q-4.22 3.6-12 3.59a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67zm68.15 16.45a33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83 33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85zm1.57-66.65q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.86-4.43 22.32-7.34 8.19-13.15 8.19-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39z"></path><path d="M688 490.9c-18.66-95.93-111-159-207-142.24l-5.84-16.29L428.74 381l66.74 8-5.64-15.72c80.7-11.91 157.31 41.78 173 122.56a153.67 153.67 0 1 1-301.6-.78l-25.1-5a179.47 179.47 0 0 0 175.47 214.39 182.93 182.93 0 0 0 34.6-3.35A179.29 179.29 0 0 0 688 490.9z"></path></g></svg>')),t}return l(n,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t-30>=0){var i=t-30;e.currentTime(i)}else e.currentTime(0)}}]),n}(u.getComponent("Button"));return u.registerComponent("RewindButton",t),new t(e,{})}(e);null===(ie=e.controlBar)||void 0===ie||ie.addChild(oe)}null!=t&&null!==(V=t.res)&&void 0!==V&&null!==(A=V.video)&&void 0!==A&&null!==(I=A.gist)&&void 0!==I&&I.title&&e.titleBar.update({title:null==t||null===(J=t.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});w(e)}(d,s),function(o,l){var r=t.getPlayer(o);r&&(r.on("loadeddata",function(){var e,t,a,s,u;try{var d,c,v,p,h,f;if(null!=l&&null!==(d=l.res)&&void 0!==d&&null!==(c=d.video)&&void 0!==c&&null!==(v=c.streamingInfo)&&void 0!==v&&v.isLiveStream&&null!=l&&null!==(p=l.res)&&void 0!==p&&null!==(h=p.video)&&void 0!==h&&null!==(f=h.liveDetails)&&void 0!==f&&f.isDvrEnabled){var m,y,g=(null===(m=r.seekable())||void 0===m?void 0:m.end(0))-(null===(y=r.seekable())||void 0===y?void 0:y.start(0));window.customData.dvrWindow=g}else window.customData.dvrWindow=null}catch(e){}try{var k,b,w;if(null!=l&&null!==(k=l.res)&&void 0!==k&&null!==(b=k.video)&&void 0!==b&&null!==(w=b.streamingInfo)&&void 0!==w&&w.isLiveStream){var L,S=null===(L=r.controlBar)||void 0===L?void 0:L.getChild("ProgressControl");if(S){var E=S.el().querySelector(".vjs-play-progress");E&&(E.style.width="100%")}}}catch(e){}try{r.qualityLevels().selectedIndex_=-1}catch(e){}try{var x,q,T=r.textTracks().tracks_;T=T.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var O=null===(x=r.controlBar)||void 0===x?void 0:x.getChild("CustomControlSpacer");if(T&&(null===(q=T)||void 0===q?void 0:q.length)>0){var B=C(r);null==O||O.addChild(B)}else try{O.children_[2].el_.style.right="115px"}catch(e){}try{var F,_;O.el_.style.opacity=1,(null===(F=r.controlBar)||void 0===F||null===(_=F.el_)||void 0===_?void 0:_.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=l&&null!==(e=l.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(a=t.app_data)&&void 0!==a&&null!==(s=a.appcmsMain)&&void 0!==s&&null!==(u=s.features)&&void 0!==u&&u.auto_play)||null!=l&&l.liveVideo||i.addNextEpPreview(o,l),null!=l&&l.liveVideo||n.isMobile()||i.initiateTrickplay(o)}),r.one("play",function(){var t,i,n,l;null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(o,null===(n=window)||void 0===n||null===(l=n.customData)||void 0===l?void 0:l.iframeOverlayUrl)}))}(a,s),function(e,n){var o,l,r,a,s,u,d,c,h,f,m,y,g,k,b=v.getSource(null==n?void 0:n.res,e)||{},C=b.src;i.addTVProviderImage(e,n),("MEDIA_TAILOR"==(null===(o=window)||void 0===o||null===(l=o.app_data)||void 0===l||null===(r=l.appcmsMain)||void 0===r||null===(a=r.adsConfig)||void 0===a?void 0:a.vodAdSticherProvider)&&null!==(s=window)&&void 0!==s&&null!==(u=s.app_data)&&void 0!==u&&null!==(d=u.appcmsMain)&&void 0!==d&&null!==(c=d.adsConfig)&&void 0!==c&&c.vodAdClientSideTracking||"MEDIA_TAILOR"==(null===(h=window)||void 0===h||null===(f=h.customData)||void 0===f||null===(m=f.ads)||void 0===m?void 0:m.vodAdSticherProvider)&&null!==(y=window)&&void 0!==y&&null!==(g=y.customData)&&void 0!==g&&null!==(k=g.ads)&&void 0!==k&&k.vodAdClientSideTracking)&&p.setupAdvertisementMarkers(e,C);!function(e,i){var n=t.getPlayer(e);if(n){var o,l,r=!1,a=!1;null===(o=n.controlBar)||void 0===o||o.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!0)}),null===(l=n.controlBar)||void 0===l||l.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!1)}),n.on("seeking",function(){var e,t,i;n.paused()||r||(r=!0,n.pause());var o=n.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.dvrWindow)if(o=n.liveTracker.liveCurrentTime()-o,0==Math.round(o)){var l,a;o=window.customData.dvrWindow;var s=null===(l=n.controlBar)||void 0===l||null===(a=l.customControlSpacer)||void 0===a?void 0:a.getChild("SeekToLive");s&&(s.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=0)}else if(o>window.customData.dvrWindow){var u,d;o=0;var c=null===(u=n.controlBar)||void 0===u||null===(d=u.customControlSpacer)||void 0===d?void 0:d.getChild("SeekToLive");c&&(c.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}else{var v,p;o=window.customData.dvrWindow-o;var h=null===(v=n.controlBar)||void 0===v||null===(p=v.customControlSpacer)||void 0===p?void 0:p.getChild("SeekToLive");h&&(h.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}var f=o/(window.customData.dvrWindow?window.customData.dvrWindow:n.duration())*100,m=null===(i=n.controlBar)||void 0===i?void 0:i.getChild("ProgressControl");if(m){var y=m.el().querySelector(".vjs-play-progress");y&&(y.style.width=f+"%")}}),n.on("seeked",function(){var e,t,o,l,s,u;if(n.paused()&&r&&!a&&(r=!1,n.play()),null!=i&&null!==(e=i.res)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&null!==(o=t.streamingInfo)&&void 0!==o&&o.isLiveStream&&null!=i&&null!==(l=i.res)&&void 0!==l&&null!==(s=l.video)&&void 0!==s&&null!==(u=s.liveDetails)&&void 0!==u&&u.isDvrEnabled){var d,c,v=null===(d=n.controlBar)||void 0===d||null===(c=d.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");n.liveTracker.seekedBehindLive_?v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0):v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,n)}(a,s)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-eb94500c.js"),r=require("./index-1838c329.js"),i=require("./icons-0ea2e662.js"),n=require("./skin-f87e1c22.js"),t=require("./generic-0c35f368.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./renditions-89042a16.js"),require("./localisation-56e0a999.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./util-47af43d1.js"),require("./captions-afd38b2e.js"),require("./resolution-5e1f1897.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./browser-38ff3331.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),exports.initialiseSkin=function(s,l){n.getPlayer(s).addClass("skin_default"),r.initialiseKeyboardEvents(s,l),Promise.resolve().then(function(){return require("./skin-ba38afdb.js")}).then(function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)}),function(r,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(s,l),function(r,s){var l=n.getPlayer(r),o=(null==s?void 0:s.sres)||null;l.on("loadeddata",function(){e.addResolutionModule(r,"default",i.SettingsSvg()),o&&Promise.resolve().then(function(){return require("./nextEpisodeButton-13952866.js")}).then(function(e){e.initaliseFunctionality(s.sres.seasons,t.getCurrentVideo())})}),l.one("loadedmetadata",function(){var i;o&&(e.addSeriesModule(r,null==s||null===(i=s.sres)||void 0===i?void 0:i.seasons,s),e.addNextEpisodeButton(s.sres,s.res,r))})}(s,l),function(e,r){var t,s,l,o,u=n.getPlayer(e),a=document.getElementsByClassName("vjs-current-time")[0],d=document.getElementsByClassName("vjs-duration")[0],c=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(a&&(a.style.display="none"),d&&(d.style.display="none"),c&&(c.style.display="none"));null===(t=u.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(s=t.el())||void 0===s||s.appendChild(n.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(l=u.controlBar.getChild("FullscreenToggle"))||void 0===l||null===(o=l.el())||void 0===o||o.appendChild(n.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var m=u.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(n.createIconMarkup(i.NewCaptionsSvg()));var p=document.createElement("div");p.classList.add("caption-header"),m.querySelector(".vjs-menu-content").insertBefore(p,m.querySelector(".vjs-menu-item"))}(s,l)};
1
+ "use strict";var e=require("./features-164d9559.js"),r=require("./index-1bc6e4e1.js"),i=require("./icons-0ea2e662.js"),n=require("./skin-f87e1c22.js"),t=require("./generic-def54bbe.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./renditions-89042a16.js"),require("./localisation-56e0a999.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./util-47af43d1.js"),require("./captions-afd38b2e.js"),require("./resolution-5e1f1897.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./browser-38ff3331.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),exports.initialiseSkin=function(s,l){n.getPlayer(s).addClass("skin_default"),r.initialiseKeyboardEvents(s,l),Promise.resolve().then(function(){return require("./skin-ba38afdb.js")}).then(function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)}),function(r,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(s,l),function(r,s){var l=n.getPlayer(r),o=(null==s?void 0:s.sres)||null;l.on("loadeddata",function(){e.addResolutionModule(r,"default",i.SettingsSvg()),o&&Promise.resolve().then(function(){return require("./nextEpisodeButton-05c5a9dc.js")}).then(function(e){e.initaliseFunctionality(s.sres.seasons,t.getCurrentVideo())})}),l.one("loadedmetadata",function(){var i;o&&(e.addSeriesModule(r,null==s||null===(i=s.sres)||void 0===i?void 0:i.seasons,s),e.addNextEpisodeButton(s.sres,s.res,r))})}(s,l),function(e,r){var t,s,l,o,u=n.getPlayer(e),a=document.getElementsByClassName("vjs-current-time")[0],d=document.getElementsByClassName("vjs-duration")[0],c=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(a&&(a.style.display="none"),d&&(d.style.display="none"),c&&(c.style.display="none"));null===(t=u.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(s=t.el())||void 0===s||s.appendChild(n.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(l=u.controlBar.getChild("FullscreenToggle"))||void 0===l||null===(o=l.el())||void 0===o||o.appendChild(n.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var m=u.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(n.createIconMarkup(i.NewCaptionsSvg()));var p=document.createElement("div");p.classList.add("caption-header"),m.querySelector(".vjs-menu-content").insertBefore(p,m.querySelector(".vjs-menu-item"))}(s,l)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./generic-c19ce514.js"),r=require("./skin-f87e1c22.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){Promise.resolve().then(function(){return require("./skin-225252ff.js")}).then(function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)}),i(),function(i){var n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",function(){t.paused()?e.play(i):e.pause(i)})}(n)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./features-164d9559.js"),l=require("./skin-f87e1c22.js"),i=require("./index-0c84da35.js"),r=require("./browser-38ff3331.js");require("videojs-contrib-quality-menu");var o=require("video.js"),n=require("./index-1bc6e4e1.js"),a=require("./generic-def54bbe.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./renditions-89042a16.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-e09dd4b5.js"),require("./util-47af43d1.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("video.js/dist/video-js.min.css"),require("./captions-afd38b2e.js"),require("./resolution-5e1f1897.js"),require("@babel/runtime/helpers/assertThisInitialized"),require("axios"),require("js-cookie"),require("ua-parser-js");function u(o,n){var a,u=l.getPlayer(o),d=(null==n||null===(a=n.res)||void 0===a?void 0:a.siteId)||"";u&&(u.on("loadeddata",function(){var e,a,u,t,s;!function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(o),!(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable||null!==(a=window)&&void 0!==a&&null!==(u=a.app_data)&&void 0!==u&&null!==(t=u.appcmsMain)&&void 0!==t&&null!==(s=t.features)&&void 0!==s&&s.auto_play)||null!=n&&n.liveVideo||i.addNextEpPreview(o,n),null!=n&&n.liveVideo||r.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===d||i.initiateTrickplay(o)}),u.one("play",function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(o,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}var d=function(e,i){var r,n,a,u,d,t,s,v,c,p,b,m,y=l.getPlayer(e),g=(null==i?void 0:i.theme)||{},q=o.dom.$(".vjs-play-progress"),h=o.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(a=n.appcmsMain)||void 0===a||null===(u=a.brand)||void 0===u||null===(d=u.cta)||void 0===d||null===(t=d.primary)||void 0===t?void 0:t.backgroundColor)),q&&(q.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(b=p.cta)||void 0===b||null===(m=b.primary)||void 0===m?void 0:m.backgroundColor));var j=y.getChild("BigPlayButton")||null;(null==g?void 0:g.progressBarColor)&&q&&(q.style.background=g.progressBarColor),(null==g?void 0:g.playButtonBackgroundColor)&&j&&(j.el().style.background=g.playButtonBackgroundColor),(null==g?void 0:g.playButtonColor)&&h&&(h.style.color=g.playButtonColor),(null==g?void 0:g.playButtonType)&&("square"==(null==g?void 0:g.playButtonType)?j.el().style.borderRadius=".3em":j.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),u(r,o),function(l,r){var o,u,d,t,s,v,c,p,b,m,y,g,q,h,j,w,f,C,k=a.getSource(null==r?void 0:r.res,l)||{};k.src,(null==r||null===(o=r.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&e.addVideoSelector(l,null==r?void 0:r.relatedVideos);null!=r&&null!==(d=r.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2(l,r);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector(l,null==r?void 0:r.streams);if(i.addTVProviderImage(l,r),n.initialiseKeyboardEvents(l,r),"MEDIA_TAILOR"==(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.adsConfig)||void 0===p?void 0:p.vodAdSticherProvider)&&null!==(b=window)&&void 0!==b&&null!==(m=b.app_data)&&void 0!==m&&null!==(y=m.appcmsMain)&&void 0!==y&&null!==(g=y.adsConfig)&&void 0!==g&&g.vodAdClientSideTracking||"MEDIA_TAILOR"==(null===(q=window)||void 0===q||null===(h=q.customData)||void 0===h||null===(j=h.ads)||void 0===j?void 0:j.vodAdSticherProvider)&&null!==(w=window)&&void 0!==w&&null!==(f=w.customData)&&void 0!==f&&null!==(C=f.ads)&&void 0!==C&&C.vodAdClientSideTracking){var B,M=null;if(null!=r&&null!==(B=r.series)&&void 0!==B&&B.enable){var P,T,A,S=null===(P=a.getCurrentVideo())||void 0===P||null===(T=P.video)||void 0===T||null===(A=T.gist)||void 0===A?void 0:A.id,V=a.getSeriesWatchMap(),_=(null==V?void 0:V.get(S))||{t:0,p:0},I=_.t;_.p<95&&(M=I)}else{var O=r.watchHistoryResumeTime;r.watchedPercentage<95&&(M=O)}n.setupAdvertisementMarkers(l,M)}}(r,o),d(r,o)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./features-194d4a4a.js"),r=require("./index-c7da0bd6.js"),i=require("./icons-0ea2e662.js"),n=require("./skin-f87e1c22.js"),t=require("./generic-c19ce514.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./renditions-89042a16.js"),require("./localisation-56e0a999.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./util-47af43d1.js"),require("./captions-afd38b2e.js"),require("./resolution-5e1f1897.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./browser-38ff3331.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),exports.initialiseSkin=function(s,l){n.getPlayer(s).addClass("skin_default"),r.initialiseKeyboardEvents(s,l),Promise.resolve().then(function(){return require("./skin-ba38afdb.js")}).then(function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)}),function(r,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(s,l),function(r,s){var l=n.getPlayer(r),o=(null==s?void 0:s.sres)||null;l.on("loadeddata",function(){e.addResolutionModule(r,"default",i.SettingsSvg()),o&&Promise.resolve().then(function(){return require("./nextEpisodeButton-86065304.js")}).then(function(e){e.initaliseFunctionality(s.sres.seasons,t.getCurrentVideo())})}),l.one("loadedmetadata",function(){var i;o&&(e.addSeriesModule(r,null==s||null===(i=s.sres)||void 0===i?void 0:i.seasons,s),e.addNextEpisodeButton(s.sres,s.res,r))})}(s,l),function(e,r){var t,s,l,o,u=n.getPlayer(e),a=document.getElementsByClassName("vjs-current-time")[0],d=document.getElementsByClassName("vjs-duration")[0],c=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(a&&(a.style.display="none"),d&&(d.style.display="none"),c&&(c.style.display="none"));null===(t=u.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(s=t.el())||void 0===s||s.appendChild(n.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(l=u.controlBar.getChild("FullscreenToggle"))||void 0===l||null===(o=l.el())||void 0===o||o.appendChild(n.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var m=u.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(n.createIconMarkup(i.NewCaptionsSvg()));var p=document.createElement("div");p.classList.add("caption-header"),m.querySelector(".vjs-menu-content").insertBefore(p,m.querySelector(".vjs-menu-item"))}(s,l)};
@@ -1 +1 @@
1
- "use strict";var e=require("./generic-0c35f368.js"),r=require("./skin-f87e1c22.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
1
+ "use strict";var e=require("./generic-def54bbe.js"),r=require("./skin-f87e1c22.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
@@ -1 +1 @@
1
- "use strict";var e=require("./skin-f87e1c22.js"),r=require("./features-eb94500c.js"),i=require("./renditions-89042a16.js"),n=require("./captions-afd38b2e.js");require("@babel/runtime/helpers/toConsumableArray"),require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-0c35f368.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),exports.initialiseSkin=function(t,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e.getPlayer(t).on("loadeddata",function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)})}(t,s),function(i){var n=e.getPlayer(i);n.controls(!1),r.addDBClickFullScreen(i)}(t)};
1
+ "use strict";var e=require("./skin-f87e1c22.js"),r=require("./features-164d9559.js"),i=require("./renditions-89042a16.js"),n=require("./captions-afd38b2e.js");require("@babel/runtime/helpers/toConsumableArray"),require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-def54bbe.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),exports.initialiseSkin=function(t,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e.getPlayer(t).on("loadeddata",function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)})}(t,s),function(i){var n=e.getPlayer(i);n.controls(!1),r.addDBClickFullScreen(i)}(t)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./skin-f87e1c22.js"),r=require("./features-194d4a4a.js"),i=require("./renditions-89042a16.js"),n=require("./captions-afd38b2e.js");require("@babel/runtime/helpers/toConsumableArray"),require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-c19ce514.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),exports.initialiseSkin=function(t,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e.getPlayer(t).on("loadeddata",function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)})}(t,s),function(i){var n=e.getPlayer(i);n.controls(!1),r.addDBClickFullScreen(i)}(t)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-eb94500c.js"),l=require("./icons-0ea2e662.js"),i=require("./skin-f87e1c22.js"),r=require("./renditions-89042a16.js"),n=require("./captions-afd38b2e.js"),o=require("./index-5fc16e9e.js"),t=require("./browser-38ff3331.js");function d(l,d){var u=i.getPlayer(l);u&&(u.on("loadeddata",function(){var i,a,s,v,c,p,m;(null===(i=r.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,d),(null===(a=n.getCaptions(l))||void 0===a?void 0:a.length)>0&&e.addCaptionButton(l,d),!(null!=d&&null!==(s=d.series)&&void 0!==s&&s.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=d&&d.liveVideo||o.addNextEpPreview(l,d),function(e,l){var i,r=Math.floor(e/60),n=null===(i=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===i?void 0:i[0];n&&(n.style.marginRight=r>60?"56px":"41px");var o=document.getElementsByClassName("vjs-live-control")[0],t=document.getElementsByClassName("vjs-time-control");l&&o.classList.value.includes("vjs-hidden")&&(t[0].style.display="block",n&&(n.style.marginRight="56px"))}(u.duration(),(null==d?void 0:d.liveVideo)||!1),null!=d&&d.liveVideo||t.isMobile()||o.initiateTrickplay(l)}),u.one("play",function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./generic-0c35f368.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-c350df7b.js"),require("./util-47af43d1.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),exports.initialiseSkin=function(r,n){i.getPlayer(r).addClass("skin_defaultv2"),function(){"Chrome"==t.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-87c06e34.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),d(r,n),function(e,r){var n,o,t,d,u,a,s=i.getPlayer(e);null==s||null===(n=s.controlBar)||void 0===n||null===(o=n.getChild("FullscreenToggle"))||void 0===o||null===(t=o.el())||void 0===t||t.appendChild(i.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==s||null===(d=s.controlBar)||void 0===d||null===(u=d.getChild("FullscreenToggle"))||void 0===u||null===(a=u.el())||void 0===a||a.appendChild(i.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var v=document.getElementsByClassName("vjs-time-control");r.liveVideo&&v[0]&&(v[0].style.display="none")}(r,n),function(i,r){var n,o,t,d,u,a;0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());r.liveVideo||e.addSlowMotion(i);(null==r||null===(n=r.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.relatedVideos);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.streams);(null==r||null===(d=r.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==r?void 0:r.playlist);null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,r)}(r,n),o.addTVProviderImage(r,n)};
1
+ "use strict";var e=require("./features-164d9559.js"),l=require("./icons-0ea2e662.js"),i=require("./skin-f87e1c22.js"),r=require("./renditions-89042a16.js"),n=require("./captions-afd38b2e.js"),o=require("./index-0c84da35.js"),t=require("./browser-38ff3331.js");function d(l,d){var u=i.getPlayer(l);u&&(u.on("loadeddata",function(){var i,a,s,v,c,p,m;(null===(i=r.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,d),(null===(a=n.getCaptions(l))||void 0===a?void 0:a.length)>0&&e.addCaptionButton(l,d),!(null!=d&&null!==(s=d.series)&&void 0!==s&&s.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=d&&d.liveVideo||o.addNextEpPreview(l,d),function(e,l){var i,r=Math.floor(e/60),n=null===(i=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===i?void 0:i[0];n&&(n.style.marginRight=r>60?"56px":"41px");var o=document.getElementsByClassName("vjs-live-control")[0],t=document.getElementsByClassName("vjs-time-control");l&&o.classList.value.includes("vjs-hidden")&&(t[0].style.display="block",n&&(n.style.marginRight="56px"))}(u.duration(),(null==d?void 0:d.liveVideo)||!1),null!=d&&d.liveVideo||t.isMobile()||o.initiateTrickplay(l)}),u.one("play",function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./generic-def54bbe.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-e09dd4b5.js"),require("./util-47af43d1.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),exports.initialiseSkin=function(r,n){i.getPlayer(r).addClass("skin_defaultv2"),function(){"Chrome"==t.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-87c06e34.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),d(r,n),function(e,r){var n,o,t,d,u,a,s=i.getPlayer(e);null==s||null===(n=s.controlBar)||void 0===n||null===(o=n.getChild("FullscreenToggle"))||void 0===o||null===(t=o.el())||void 0===t||t.appendChild(i.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==s||null===(d=s.controlBar)||void 0===d||null===(u=d.getChild("FullscreenToggle"))||void 0===u||null===(a=u.el())||void 0===a||a.appendChild(i.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var v=document.getElementsByClassName("vjs-time-control");r.liveVideo&&v[0]&&(v[0].style.display="none")}(r,n),function(i,r){var n,o,t,d,u,a;0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());r.liveVideo||e.addSlowMotion(i);(null==r||null===(n=r.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.relatedVideos);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.streams);(null==r||null===(d=r.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==r?void 0:r.playlist);null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,r)}(r,n),o.addTVProviderImage(r,n)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./generic-c19ce514.js"),r=require("./skin-f87e1c22.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./features-194d4a4a.js"),l=require("./icons-0ea2e662.js"),i=require("./skin-f87e1c22.js"),r=require("./renditions-89042a16.js"),n=require("./captions-afd38b2e.js"),o=require("./index-66c8779a.js"),t=require("./browser-38ff3331.js");function d(l,d){var u=i.getPlayer(l);u&&(u.on("loadeddata",function(){var i,a,s,v,c,p,m;(null===(i=r.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,d),(null===(a=n.getCaptions(l))||void 0===a?void 0:a.length)>0&&e.addCaptionButton(l,d),!(null!=d&&null!==(s=d.series)&&void 0!==s&&s.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=d&&d.liveVideo||o.addNextEpPreview(l,d),function(e,l){var i,r=Math.floor(e/60),n=null===(i=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===i?void 0:i[0];n&&(n.style.marginRight=r>60?"56px":"41px");var o=document.getElementsByClassName("vjs-live-control")[0],t=document.getElementsByClassName("vjs-time-control");l&&o.classList.value.includes("vjs-hidden")&&(t[0].style.display="block",n&&(n.style.marginRight="56px"))}(u.duration(),(null==d?void 0:d.liveVideo)||!1),null!=d&&d.liveVideo||t.isMobile()||o.initiateTrickplay(l)}),u.one("play",function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./generic-c19ce514.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-6842bf1e.js"),require("./util-47af43d1.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),exports.initialiseSkin=function(r,n){i.getPlayer(r).addClass("skin_defaultv2"),function(){"Chrome"==t.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-87c06e34.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),d(r,n),function(e,r){var n,o,t,d,u,a,s=i.getPlayer(e);null==s||null===(n=s.controlBar)||void 0===n||null===(o=n.getChild("FullscreenToggle"))||void 0===o||null===(t=o.el())||void 0===t||t.appendChild(i.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==s||null===(d=s.controlBar)||void 0===d||null===(u=d.getChild("FullscreenToggle"))||void 0===u||null===(a=u.el())||void 0===a||a.appendChild(i.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var v=document.getElementsByClassName("vjs-time-control");r.liveVideo&&v[0]&&(v[0].style.display="none")}(r,n),function(i,r){var n,o,t,d,u,a;0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());r.liveVideo||e.addSlowMotion(i);(null==r||null===(n=r.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.relatedVideos);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.streams);(null==r||null===(d=r.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==r?void 0:r.playlist);null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,r)}(r,n),o.addTVProviderImage(r,n)};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-0ea2e662.js"),l=require("./generic-0c35f368.js"),d=require("./skin-f87e1c22.js"),s=require("./autoNextVideo-c350df7b.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-47af43d1.js");var v=r.getComponent("Component"),m=function(){n(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(t){var n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(n=r.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==r||null===(i=r.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.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(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var i;null!==(i=n.classList)&&void 0!==i&&i.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var i=document.getElementById(this.playerId);if(i){var o=window.getComputedStyle(i,null).getPropertyValue("height");n.style.height="".concat(o),r.dom.appendContent(t,n),i.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var s=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,i,o,a,s,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";d.highlightVideo_DEFAULTV2_TEMP(e),l.load(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===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(s=t.videos[e])||void 0===s?void 0:s.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(i,o),r.dom.appendContent(i,s),r.dom.appendContent(e,i),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-0ea2e662.js"),l=require("./generic-c19ce514.js"),d=require("./skin-f87e1c22.js"),s=require("./autoNextVideo-6842bf1e.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-47af43d1.js");var v=r.getComponent("Component"),m=function(){n(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(t){var n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(n=r.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==r||null===(i=r.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.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(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var i;null!==(i=n.classList)&&void 0!==i&&i.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var i=document.getElementById(this.playerId);if(i){var o=window.getComputedStyle(i,null).getPropertyValue("height");n.style.height="".concat(o),r.dom.appendContent(t,n),i.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var s=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,i,o,a,s,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";d.highlightVideo_DEFAULTV2_TEMP(e),l.load(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===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(s=t.videos[e])||void 0===s?void 0:s.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(i,o),r.dom.appendContent(i,s),r.dom.appendContent(e,i),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-0ea2e662.js"),l=require("./generic-def54bbe.js"),d=require("./skin-f87e1c22.js"),s=require("./autoNextVideo-e09dd4b5.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-47af43d1.js");var v=r.getComponent("Component"),m=function(){n(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(t){var n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(n=r.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==r||null===(i=r.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.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(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var i;null!==(i=n.classList)&&void 0!==i&&i.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var i=document.getElementById(this.playerId);if(i){var o=window.getComputedStyle(i,null).getPropertyValue("height");n.style.height="".concat(o),r.dom.appendContent(t,n),i.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var s=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,i,o,a,s,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";d.highlightVideo_DEFAULTV2_TEMP(e),l.load(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===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(s=t.videos[e])||void 0===s?void 0:s.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(i,o),r.dom.appendContent(i,s),r.dom.appendContent(e,i),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-0ea2e662.js"),d=require("./generic-0c35f368.js"),r=require("./skin-f87e1c22.js"),s=require("./autoNextVideo-c350df7b.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-47af43d1.js");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.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(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(r.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),r.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),r.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;d.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";r.highlightVideo(e),d.load(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,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var d=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,d,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(r.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||r.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(d=a.appcmsMain)||void 0===d||null===(c=d.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,d),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),r.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-0ea2e662.js"),d=require("./generic-def54bbe.js"),r=require("./skin-f87e1c22.js"),s=require("./autoNextVideo-e09dd4b5.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-47af43d1.js");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.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(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(r.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),r.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),r.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;d.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";r.highlightVideo(e),d.load(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,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var d=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,d,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(r.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||r.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(d=a.appcmsMain)||void 0===d||null===(c=d.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,d),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),r.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-0ea2e662.js"),d=require("./generic-c19ce514.js"),r=require("./skin-f87e1c22.js"),s=require("./autoNextVideo-6842bf1e.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-afd38b2e.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-47af43d1.js");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.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(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(r.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),r.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),r.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;d.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";r.highlightVideo(e),d.load(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,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var d=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,d,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(r.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||r.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(d=a.appcmsMain)||void 0===d||null===(c=d.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,d),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),r.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
@@ -1 +1 @@
1
- import{J as n,f as t,H as i,S as o,T as e}from"./generic-c2920429.js";import{b as c}from"./util-42912ffd.js";import{g as a,h as s}from"./skin-86e7e2b5.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var v=null==l?void 0:l.content;u=null==l?void 0:l.cb;var d=l.playerId;c(d,function(){var c=a(d);0!==(null==c?void 0:c.currentTime())&&((f=o())>v.length-1||(e(f+1),n(d,v[f].id).then(function(n){s(f,d),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,d),f++,r=setTimeout(function(){i(d)&&m(f,d,v)},5e3)})))})},m=function t(i,o,c,a){f=i,i>c.length-1||(e(f+1),n(o,c[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,c)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
1
+ import{J as n,f as t,H as i,S as o,T as e}from"./generic-d036e0c3.js";import{b as c}from"./util-42912ffd.js";import{g as a,h as s}from"./skin-86e7e2b5.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var v=null==l?void 0:l.content;u=null==l?void 0:l.cb;var d=l.playerId;c(d,function(){var c=a(d);0!==(null==c?void 0:c.currentTime())&&((f=o())>v.length-1||(e(f+1),n(d,v[f].id).then(function(n){s(f,d),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,d),f++,r=setTimeout(function(){i(d)&&m(f,d,v)},5e3)})))})},m=function t(i,o,c,a){f=i,i>c.length-1||(e(f+1),n(o,c[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,c)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
@@ -0,0 +1 @@
1
+ import{J as n,f as t,H as i,S as o,T as e}from"./generic-8c232113.js";import{b as c}from"./util-42912ffd.js";import{g as a,h as s}from"./skin-86e7e2b5.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var v=null==l?void 0:l.content;u=null==l?void 0:l.cb;var d=l.playerId;c(d,function(){var c=a(d);0!==(null==c?void 0:c.currentTime())&&((f=o())>v.length-1||(e(f+1),n(d,v[f].id).then(function(n){s(f,d),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,d),f++,r=setTimeout(function(){i(d)&&m(f,d,v)},5e3)})))})},m=function t(i,o,c,a){f=i,i>c.length-1||(e(f+1),n(o,c[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,c)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
package/esm/bundle.css CHANGED
@@ -1,7 +1,6 @@
1
1
 
2
2
 
3
3
 
4
-
5
4
  .video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control {
6
5
  height: 0.7em;
7
6
  position: absolute;
@@ -148,6 +147,8 @@
148
147
  }
149
148
 
150
149
 
150
+
151
+
151
152
  /*
152
153
  * Styles the icon size and line height for button icons in the SmartTV skin.
153
154
  *
@@ -1707,7 +1708,6 @@ iframe {
1707
1708
 
1708
1709
 
1709
1710
 
1710
-
1711
1711
  /* CSS for videojs-dvr-seekbar */
1712
1712
 
1713
1713
  .video-js.vjs-dvr-seekbar {
@@ -1880,6 +1880,8 @@ iframe {
1880
1880
 
1881
1881
 
1882
1882
 
1883
+
1884
+
1883
1885
  .video-js .multicamera-parent.default{
1884
1886
  height: 345px;
1885
1887
  position: absolute;
@@ -1962,8 +1964,6 @@ iframe {
1962
1964
 
1963
1965
 
1964
1966
 
1965
-
1966
-
1967
1967
  /* nextep */
1968
1968
  .next-ep-preview{
1969
1969
  position: absolute;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{r as a,k as s}from"./generic-c2920429.js";import{g as c}from"./renditions-7c478ac1.js";import{g as d,p as u}from"./skin-86e7e2b5.js";import{g as p}from"./localisation-0bf399a1.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=p("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=u(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=u(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-69172876.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=d(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-2fef2e20.js").then(function(r){var o=r.default,l=d(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-45a2c046.js").then(function(r){var o=r.seriesModule,l=d(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-67bbbd4e.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-76bbd9ca.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},E=function(e,t){import("./settings-icon-84529309.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},O=function(e,t){import("./playlist-016d4588.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},w=function(e,t){import("./series-v2-832edccb.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},I=function(e,t){import("./multicamv2-401586c5.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=d(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=d(e).el(),n=0,r=d(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},x=function(e,t){import("./videoSelector-f235608d.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},L=function(e,t){import("./series-v2-e5e65d24.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},N=function(e,t){import("./multicamv2-6c33d338.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})};export{B as a,j as b,b as c,y as d,C as e,E as f,S as g,M as h,g as i,x as j,N as k,O as l,L as m,P as n,k as o,w as p,I as q};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{r as a,k as s}from"./generic-d036e0c3.js";import{g as c}from"./renditions-7c478ac1.js";import{g as d,p as u}from"./skin-86e7e2b5.js";import{g as p}from"./localisation-0bf399a1.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=p("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=u(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=u(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-69172876.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=d(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-1bfc42cd.js").then(function(r){var o=r.default,l=d(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-3890c03d.js").then(function(r){var o=r.seriesModule,l=d(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-408efa97.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-76bbd9ca.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},E=function(e,t){import("./settings-icon-84529309.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},O=function(e,t){import("./playlist-08aae44b.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},w=function(e,t){import("./series-v2-5e24f55e.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},I=function(e,t){import("./multicamv2-19227feb.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=d(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=d(e).el(),n=0,r=d(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},x=function(e,t){import("./videoSelector-7dfef6f4.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},L=function(e,t){import("./series-v2-575f3828.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},N=function(e,t){import("./multicamv2-5011595d.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})};export{B as a,j as b,b as c,y as d,C as e,E as f,S as g,M as h,g as i,x as j,N as k,O as l,L as m,P as n,k as o,w as p,I as q};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{r as a,k as s}from"./generic-8c232113.js";import{g as c}from"./renditions-7c478ac1.js";import{g as d,p as u}from"./skin-86e7e2b5.js";import{g as p}from"./localisation-0bf399a1.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=p("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=u(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=u(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-69172876.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=d(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-0e6e9a99.js").then(function(r){var o=r.default,l=d(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-38d43d02.js").then(function(r){var o=r.seriesModule,l=d(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-9f4b211e.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-76bbd9ca.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},E=function(e,t){import("./settings-icon-84529309.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},O=function(e,t){import("./playlist-d62f0e1d.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},w=function(e,t){import("./series-v2-ad505b62.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},I=function(e,t){import("./multicamv2-243a2d0d.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=d(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=d(e).el(),n=0,r=d(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},x=function(e,t){import("./videoSelector-135b3f39.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},L=function(e,t){import("./series-v2-48a526b1.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},N=function(e,t){import("./multicamv2-82f420e3.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})};export{B as a,j as b,b as c,y as d,C as e,E as f,S as g,M as h,g as i,x as j,N as k,O as l,L as m,P as n,k as o,w as p,I as q};