@viewlift/player-backup 2.0.75-smartTv → 2.0.76-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/cjs/autoNextVideo-f934d8e6.js +1 -0
  2. package/cjs/browser-77c57718.js +1 -0
  3. package/cjs/bundle.css +50 -1594
  4. package/cjs/caption-settings-be714e97.js +1 -0
  5. package/cjs/{captions-3c7ca3a7.js → captions-07bd3069.js} +1 -1
  6. package/cjs/features-e3fbb6d6.js +1 -0
  7. package/cjs/generic-f3eb8f60.js +1 -0
  8. package/cjs/icons-1a3febef.js +1 -0
  9. package/cjs/{index-8606834d.js → index-84cce26a.js} +1 -1
  10. package/cjs/index-bf12d76a.js +1 -0
  11. package/cjs/index-e1a8de41.js +1 -0
  12. package/cjs/index.js +1 -1
  13. package/cjs/multicamv2-119d55f4.js +1 -0
  14. package/cjs/multicamv2-662528be.js +1 -0
  15. package/cjs/nextEpisodeButton-928cba96.js +1 -0
  16. package/cjs/playlist-0bc81e09.js +1 -0
  17. package/cjs/renditions-fed22c12.js +1 -0
  18. package/cjs/resolution-e46c9615.js +1 -0
  19. package/cjs/series-f16bd1ac.js +1 -0
  20. package/cjs/series-v2-39bd84b6.js +1 -0
  21. package/cjs/series-v2-9d5ab36c.js +1 -0
  22. package/cjs/settings-icon-70f8857a.js +1 -0
  23. package/cjs/skin-10b17803.js +1 -0
  24. package/cjs/skin-26616259.js +1 -0
  25. package/cjs/skin-3544db58.js +1 -0
  26. package/cjs/skin-5bf517bf.js +1 -0
  27. package/cjs/skin-a384aa68.js +1 -0
  28. package/cjs/skin-cbcbb224.js +1 -0
  29. package/cjs/skin-ecf02525.js +1 -0
  30. package/cjs/util-ef2cd61e.js +1 -0
  31. package/cjs/videoSelector-88f739f7.js +1 -0
  32. package/cjs/videoSelector-e361059c.js +1 -0
  33. package/cjs/videojs_contrib_dash-018c8bde.js +1 -0
  34. package/esm/autoNextVideo-9ba822d1.js +1 -0
  35. package/esm/browser-d4613b36.js +1 -0
  36. package/esm/bundle.css +50 -1594
  37. package/esm/caption-settings-4ab479b0.js +1 -0
  38. package/esm/{captions-7996e045.js → captions-b7fd8308.js} +1 -1
  39. package/esm/features-009dbc81.js +1 -0
  40. package/esm/generic-cb3b8f3e.js +1 -0
  41. package/esm/{icons-79ad4d7d.js → icons-8e47e640.js} +1 -1
  42. package/esm/index-4a4483d1.js +1 -0
  43. package/esm/index-5d92eaa3.js +1 -0
  44. package/esm/index-bf10bea3.js +1 -0
  45. package/esm/index.js +1 -1
  46. package/esm/multicamv2-01b2db01.js +1 -0
  47. package/esm/multicamv2-4db1e309.js +1 -0
  48. package/esm/nextEpisodeButton-a92fd5cb.js +1 -0
  49. package/esm/playlist-b7b51ec6.js +1 -0
  50. package/esm/{renditions-65794079.js → renditions-4c09c626.js} +1 -1
  51. package/esm/resolution-920515d1.js +1 -0
  52. package/esm/series-5fadaf24.js +1 -0
  53. package/esm/series-v2-27dd7c1e.js +1 -0
  54. package/esm/series-v2-ea841c5b.js +1 -0
  55. package/esm/settings-icon-366126fa.js +1 -0
  56. package/esm/skin-01b93a05.js +1 -0
  57. package/esm/skin-1c3a30b5.js +1 -0
  58. package/esm/skin-3f7d2c6c.js +1 -0
  59. package/esm/skin-58b9263c.js +1 -0
  60. package/esm/skin-72e88e88.js +1 -0
  61. package/esm/skin-98fc674f.js +1 -0
  62. package/esm/skin-fce3b03c.js +1 -0
  63. package/esm/util-80257541.js +1 -0
  64. package/esm/videoSelector-0fbdeb0a.js +1 -0
  65. package/esm/videoSelector-c7dceeb5.js +1 -0
  66. package/esm/videojs_contrib_dash-f7d94714.js +1 -0
  67. package/package.json +2 -2
  68. package/cjs/autoNextVideo-b2664dca.js +0 -1
  69. package/cjs/browser-38ff3331.js +0 -1
  70. package/cjs/caption-settings-5944a544.js +0 -1
  71. package/cjs/features-4324250b.js +0 -1
  72. package/cjs/generic-d56b38ac.js +0 -1
  73. package/cjs/icons-0ea2e662.js +0 -1
  74. package/cjs/index-510967ea.js +0 -1
  75. package/cjs/index-865afc31.js +0 -1
  76. package/cjs/multicamv2-408075e5.js +0 -1
  77. package/cjs/multicamv2-96ae1bef.js +0 -1
  78. package/cjs/nextEpisodeButton-571ddebc.js +0 -1
  79. package/cjs/playlist-2a9d8c3a.js +0 -1
  80. package/cjs/renditions-26c6d0df.js +0 -1
  81. package/cjs/resolution-5a0df2be.js +0 -1
  82. package/cjs/series-23a6b96c.js +0 -1
  83. package/cjs/series-v2-656980f1.js +0 -1
  84. package/cjs/series-v2-a128042a.js +0 -1
  85. package/cjs/settings-icon-12add1fe.js +0 -1
  86. package/cjs/skin-2fa52c29.js +0 -1
  87. package/cjs/skin-3397dca5.js +0 -1
  88. package/cjs/skin-61950a20.js +0 -1
  89. package/cjs/skin-6db027fa.js +0 -1
  90. package/cjs/skin-95e27a9f.js +0 -1
  91. package/cjs/skin-b5651b5b.js +0 -1
  92. package/cjs/skin-d1d871d1.js +0 -1
  93. package/cjs/skin-edc7bca4.js +0 -1
  94. package/cjs/util-c1962d91.js +0 -1
  95. package/cjs/videoSelector-e0dbb3af.js +0 -1
  96. package/cjs/videoSelector-f32fc4b5.js +0 -1
  97. package/cjs/videojs-dash5.es-3cd3423d.js +0 -1
  98. package/esm/autoNextVideo-b7900abb.js +0 -1
  99. package/esm/browser-512cd55a.js +0 -1
  100. package/esm/caption-settings-adcfbf9d.js +0 -1
  101. package/esm/features-58699d4f.js +0 -1
  102. package/esm/generic-fe8a5419.js +0 -1
  103. package/esm/index-24d08aa6.js +0 -1
  104. package/esm/index-c4b6db11.js +0 -1
  105. package/esm/index-d7c8b33b.js +0 -1
  106. package/esm/multicamv2-8354e88e.js +0 -1
  107. package/esm/multicamv2-99d2d9f1.js +0 -1
  108. package/esm/nextEpisodeButton-6a78af06.js +0 -1
  109. package/esm/playlist-e4aff030.js +0 -1
  110. package/esm/resolution-ed00f17a.js +0 -1
  111. package/esm/series-f895bf2d.js +0 -1
  112. package/esm/series-v2-2505dab5.js +0 -1
  113. package/esm/series-v2-55b5e1d5.js +0 -1
  114. package/esm/settings-icon-c670ad25.js +0 -1
  115. package/esm/skin-1c962a23.js +0 -1
  116. package/esm/skin-5ccd687d.js +0 -1
  117. package/esm/skin-8e2c5488.js +0 -1
  118. package/esm/skin-a0bc6679.js +0 -1
  119. package/esm/skin-b3625cf2.js +0 -1
  120. package/esm/skin-c5fd99ed.js +0 -1
  121. package/esm/skin-c7bbb999.js +0 -1
  122. package/esm/skin-e1abdefd.js +0 -1
  123. package/esm/util-389babb5.js +0 -1
  124. package/esm/videoSelector-986c7677.js +0 -1
  125. package/esm/videoSelector-fd351fa1.js +0 -1
  126. package/esm/videojs-dash5.es-17cb6067.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),i=require("@babel/runtime/helpers/inherits"),o=require("video.js"),l=require("./icons-0ea2e662.js"),r=require("./skin-3397dca5.js"),d=require("./renditions-26c6d0df.js"),c=require("./resolution-5a0df2be.js"),s=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("./browser-38ff3331.js");var p=o.getComponent("Component"),v=function(){function v(t){var i,o,l,r,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),o=this,r=[t,d],l=a(l=v),(i=n(o,u()?Reflect.construct(l,r||[],a(o).constructor):l.apply(o,r))).playerId=d.playerId,i.seriesData=d.sres,i.currentVideoData=d.res,i.initialiseStructure(),i.loadCSS(),i.resolutionBitrateMap,i}return i(v,p),t(v,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new Map,e.forEach(function(e){var n=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(n){var a=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(n,a||1/0))}})}},{key:"isEnhancedBitrate",value:function(e){var t,n=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),a=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!n||!a)&&n>a}},{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(l.SettingsSvgV2())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./settings-icon-8d364c01.js")}).then(function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=o.dom.createEl("div",{className:"selection-container hidden"});o.dom.$(".settings-selector-icon",this.el()).onclick=function(){var a;null!==(a=n.classList)&&void 0!==a&&a.contains("hidden")?(r.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",r.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var a=document.getElementById(this.playerId);if(a){var i=window.getComputedStyle(a,null).getPropertyValue("height");n.style.height="".concat(i),o.dom.appendContent(t,n),a.style.overflow="hidden",this.addFunctionality(n),r.detectOrientationChange(this.playerId,n)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=o.dom.createEl("div",{className:"settings-selector-head"}),a=o.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(l.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var i=o.dom.createEl("div",{className:"settings-selector-title",innerHTML:s.getLocalisation("settingsTitle")||"Settings"}),d=o.dom.createEl("div",{className:"settings-selector-content"}),c=o.dom.createEl("div",{className:"settings-container"}),u=this.createVideoQualityContainer();o.dom.appendContent(c,u);var p=this.createAudioQualityContainer();o.dom.appendContent(c,p),o.dom.appendContent(n,a),o.dom.appendContent(n,i),o.dom.appendContent(e,n),o.dom.appendContent(e,d),o.dom.appendContent(d,c),r.handleDrawerResizing(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=r.getPlayer(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var n=o.dom.createEl("div",{className:"audio-language-container"}),a=o.dom.createEl("div",{className:"audio-language-container-title",innerHTML:s.getLocalisation("audioLanguageText")||"Audio Language"});o.dom.appendContent(n,a);for(var i=function(e){var a,i=document.createElement("label");i.className="audio-language-holder",i.setAttribute("for","language-radio-".concat(e));var l=document.createElement("div");l.className="audio - ".concat(e),l.textContent=null==t||null===(a=t[e])||void 0===a?void 0:a.label;var r=o.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});r.setAttribute("type","radio"),1==t[e].enabled&&(r.checked=!0),r.onchange=function(n){t.map(function(e){e.enabled=!1}),t[e].enabled=!0},o.dom.appendContent(i,r),o.dom.appendContent(i,l),o.dom.appendContent(n,i)},l=0;l<t.length;l++)i(l);return n}}},{key:"createVideoQualityContainer",value:function(){var e=this,t=o.dom.createEl("div",{className:"video-quality-container"}),n=o.dom.createEl("div",{className:"video-quality-container-title",innerHTML:s.getLocalisation("videoQualityText")||"Video Quality"});o.dom.appendContent(t,n);var a=[].concat(d.getRenditions(this.playerId),[{height:"Auto"}]).sort(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)});this.fillResolutionBitrateMap(a),c.playSelectedResolution(this.playerId,"raw",!0);for(var i=function(n){var i,d,u,p=document.createElement("label"),v=document.createElement("div"),h=document.createElement("div");h.className="video-quality-bitrate-label",v.className="video-quality-holder",p.className="video-quality-label-container",p.setAttribute("for","quality".concat(n));var m=document.createElement("div");m.className="video-quality - ".concat(n);var g=(null==a||null===(i=a[n])||void 0===i?void 0:i.height)+"".concat("Auto"==(null==a||null===(d=a[n])||void 0===d?void 0:d.height)?"":"p"),y=document.createTextNode(g),f="".concat(e.isEnhancedBitrate(a[n])?s.getLocalisation("enhancedBitrateLabel")||"Enhanced Bitrate":""),C=document.createTextNode(f);if(h.appendChild(C),m.appendChild(y),(null==a||null===(u=a[n])||void 0===u?void 0:u.height)>=720)for(var b=r.parseHtmlString("<span class='hd-rendition'> HD </span>");null!=b&&b.firstChild;)m.appendChild(b.firstChild);var E=o.dom.createEl("input",{className:"radio - ".concat(n," radio-btn"),id:"quality".concat(n),name:"quality-radio",rendata:"".concat(a[n]),checked:"".concat(n==a.length-1)});E.setAttribute("type","radio"),E.onchange=function(t){var i=a[n];"true"=="".concat("Auto"==a[n].height)?c.playSelectedResolution(e.playerId,i,!0):c.playSelectedResolution(e.playerId,i)};var q=document.createElement("span");q.className=f?"check-mark center":"check-mark";var N=r.parseSvgString(l.TickMarkIcon());q.appendChild(N),v.appendChild(E),v.appendChild(q),v.appendChild(m),o.dom.appendContent(p,v),p.appendChild(h),o.dom.appendContent(t,p)},u=0;u<a.length;u++)i(u);return t}}])}();exports.default=v;
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-4324250b.js"),l=require("./icons-0ea2e662.js"),i=require("./skin-3397dca5.js"),n=require("./renditions-26c6d0df.js"),r=require("./captions-3c7ca3a7.js"),o=require("./index-510967ea.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=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,d),(null===(a=r.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,n=Math.floor(e/60),r=null===(i=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===i?void 0:i[0];r&&(r.style.marginRight=n>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",r&&(r.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,n,r,o;null!==(i=window)&&void 0!==i&&null!==(n=i.customData)&&void 0!==n&&n.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(r=window)||void 0===r||null===(o=r.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("@babel/runtime/helpers/inherits"),require("video.js"),require("./generic-d56b38ac.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-b2664dca.js"),require("./util-c1962d91.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),exports.initialiseSkin=function(n,r){i.getPlayer(n).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(n,r),function(e,n){var r,o,t,d,u,a,s=i.getPlayer(e);null==s||null===(r=s.controlBar)||void 0===r||null===(o=r.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");n.liveVideo&&v[0]&&(v[0].style.display="none")}(n,r),function(i,n){var r,o,t,d,u,a;0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());n.liveVideo||e.addSlowMotion(i);(null==n||null===(r=n.relatedVideos)||void 0===r||null===(o=r.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(t=n.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(d=n.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(n,r),o.addTVProviderImage(n,r)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("video.js"),n=function(n){return!!e.getPlayer("".concat(n))&&e.getPlayer("".concat(n))},t=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE","VL_SmartTV"],i=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},o=function(e){[].concat(document.querySelectorAll("[video-idx]")).map(function(n){var t=n.getAttribute("video-idx");n.style.border=t==e?"2px solid white":"none"})},r="",l=function(e,n){var t;if(n){var i=document.getElementById(e),o=null===(t=window.getComputedStyle(i,null))||void 0===t?void 0:t.height;n.style.height!==o&&(n.style.height="".concat(o))}};exports.clearEventListeners=function(){window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler)},exports.closeOpenDrawers=function(){var e=[].concat(document.getElementsByClassName("vjs-control vjs-button open"));null==e||e.map(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()})},exports.createIconMarkup=function(e){return i(e)},exports.detectOrientationChange=function(e,n){var t,i=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",i=document.getElementById(e);if(i&&r!==t){var o=window.getComputedStyle(i,null).getPropertyValue("height");n&&(n.style.height="".concat(o)),r=t}}(e,n)};window._orientationChangeHandler=i;window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(function(){i()},100)})},exports.getPlayer=n,exports.handleDrawerResizing=function(e,t){var i,o=n(e),r=n(e).el(),a=new ResizeObserver(function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")||(i&&clearTimeout(i),i=setTimeout(function(){l(e,t)},300))});a.observe(r),o.on("dispose",function(){a.disconnect()}),o.on("fullscreenchange",function(){setTimeout(function(){l(e,t)},50)})},exports.highlightVideo=function(e,t){if(t){var i,r,l=n(t);if(l&&"function"==typeof l.el&&null!=l&&null!==(i=l.el())&&void 0!==i&&null!==(r=i.classList)&&void 0!==r&&r.contains("skin_defaultv2"))return void o(e)}var a=[].concat(document.querySelectorAll("[video-idx]"));console.log(a),a.map(function(n){var t=n.parentNode,i=n.getAttribute("video-idx");t.style.background=i==e?"gray":"none"})},exports.highlightVideo_DEFAULTV2_TEMP=o,exports.impolicy16x9=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},exports.isNotAValidSkin=function(e){return!t.includes(e)},exports.parseHtmlString=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},exports.parseSvgString=i,exports.setUpdatedElHeight=l,exports.throttle=function(e,n){var t=null,i=null;return function(){for(var o=this,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];i?(clearTimeout(t),t=setTimeout(function(){Date.now()-i>=n&&(e.apply(o,l),i=Date.now())},n-(Date.now()-i))):(e.apply(this,l),i=Date.now())}};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./skin-3397dca5.js"),r=require("./features-4324250b.js"),i=require("./renditions-26c6d0df.js"),n=require("./captions-3c7ca3a7.js");require("video.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("@babel/runtime/helpers/inherits"),require("./generic-d56b38ac.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 +0,0 @@
1
- "use strict";var e=require("./generic-d56b38ac.js"),r=require("./skin-3397dca5.js");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-3c7ca3a7.js");var n=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(t){Promise.resolve().then(function(){return require("./skin-225252ff.js")}).then(function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)}),n(),function(n){var t=document.getElementById("".concat(n)),i=r.getPlayer(n);t&&t.addEventListener("touchstart",function(){i.paused()?e.play(n):e.pause(n)})}(t)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-4324250b.js"),t=require("./skin-3397dca5.js"),i=require("./index-510967ea.js"),n=require("./browser-38ff3331.js"),o=require("@babel/runtime/helpers/classCallCheck"),l=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("@babel/runtime/helpers/inherits"),u=require("video.js"),d=require("@babel/runtime/helpers/typeof"),c=require("./generic-d56b38ac.js"),v=require("./index-865afc31.js");require("./renditions-26c6d0df.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-b2664dca.js"),require("./util-c1962d91.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-3c7ca3a7.js"),require("video.js/dist/video-js.min.css"),require("./resolution-5a0df2be.js");var p=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},h=function(){return l(function e(t){if(o(this,e),!t||"object"!==d(t))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.handleClick=t.callback||function(){},this.focused=t.focused||!1,"function"!=typeof this.handleClick)throw new Error("SettingsOptionOneWrapper: callback must be a function");this.handleClick=this.handleClick.bind(this)},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var 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)}}])}(),f=function(){return l(function e(t){if(o(this,e),!t||"object"!==d(t))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.selected=t.selected||!1,this.focused=t.focused||!1,this.id=t.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var 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(p('<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)}}])}(),m=function(){return l(function e(t){if(o(this,e),!t||"object"!==d(t))throw new Error("Sidebar: props must be a valid object");if(this.title=t.title||"Settings",this.items=t.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=t.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=t.lastFocusedElement||null,this.type=t.type||"navigation",this.focused=t.focused||!1,this.callback=t.callback||function(){},this.onselect=t.onselect||function(){},"function"!=typeof this.callback)throw new Error("Sidebar: callback must be a function");if(!["navigation","selection"].includes(this.type))throw new Error('Sidebar: type must be either "navigation" or "selection"')},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var 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 h({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 f({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(p('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),this.onselect(this.currentFocusedOption)}}},{key:"focusNext",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.nextElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focusPrevious",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.previousElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.focus()}},{key:"unfocus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.blur()}},{key:"unmount",value:function(){this.sidebarElement&&(this.sidebarElement.remove(),this.sidebarElement=void 0,this.lastFocusedElement&&(this.callback(),this.lastFocusedElement.focus()),this.currentFocusedOption=null)}}])}();function y(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(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 m({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 m({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 d=null==e||null===(l=e.textTracks())||void 0===l?void 0:l.tracks_;return(d=d.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(r=d)||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(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 m({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 m({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 g(e,t,i){return t=a(t),r(e,k()?Reflect.construct(t,i||[],a(e).constructor):t.apply(e,i))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var C=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var l=(t=g(this,i,[e,n])).el_,r=l.querySelector(".vjs-icon-placeholder");l.querySelector(".vjs-control-text").textContent="CC",l.classList.add("vjs-ClosedCaption-button");return r.append(p('<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 s(i,t),l(i,[{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(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 m({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)}}])}(u.getComponent("Button"));return u.registerComponent("CloseCaptionButton",t),new t(e,{})};var b=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(r,a){var d=t.getPlayer(r);d.addClass("skin_smartTV"),function(e,t){var i,n,r,a,d,c,v,h,f,m,k,C,w,L,S,E,x,q,T,B,O,F,_,j,W,D,M,P,V,z,H,A=null==e?void 0:e.el();A&&(A.style.color=(null==t||null===(i=t.theme)||void 0===i?void 0:i.color)||(null===(n=window)||void 0===n||null===(r=n.app_data)||void 0===r||null===(a=r.appcmsMain)||void 0===a||null===(d=a.brand)||void 0===d||null===(c=d.cta)||void 0===c||null===(v=c.primary)||void 0===v?void 0:v.backgroundColor)||"#FFFFFF");null===(h=e.controlBar)||void 0===h||h.removeChild("VolumePanel"),null===(f=e.controlBar)||void 0===f||f.removeChild("AudioTrackButton"),null===(m=e.controlBar)||void 0===m||m.removeChild("FullscreenToggle"),null===(k=e.controlBar)||void 0===k||k.removeChild("PictureInPictureToggle"),null===(C=e.controlBar)||void 0===C||C.removeChild("skipBackward"),null===(w=e.controlBar)||void 0===w||w.removeChild("skipForward"),null===(L=e.controlBar)||void 0===L||L.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(S=e.controlBar)||void 0===S||null===(E=S.el())||void 0===E||E.append(I);var R=null===(x=e.controlBar)||void 0===x?void 0:x.getChild("CustomControlSpacer");try{I.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===(B=e.controlBar)||void 0===B?void 0:B.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("LiveDisplay"),Q=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("RemainingTimeDisplay");G&&K&&N&&I.append(K.el(),G.el(),Q.el(),null==Z?void 0:Z.el());null==R||R.addChild(N);var U=e.getChild("TitleBar");null==R||R.addChild(U);var X=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var l=(t=g(this,i,[e,n])).el_;return l.querySelector(".vjs-control-text").textContent="Start From Beginning",l.classList.add("vjs-startFromBeginning-button"),t}return s(i,t),l(i,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}])}(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){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var l=(t=g(this,i,[e,n])).el_,r=l.querySelector(".vjs-icon-placeholder");return l.querySelector(".vjs-control-text").textContent="Settings",l.classList.add("vjs-Settings-button"),r.append(p('<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 s(i,t),l(i,[{key:"handleClick",value:function(){y(e,this)}}])}(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){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var l=(t=g(this,i,[e,n])).el_,r=l.querySelector(".vjs-icon-placeholder");return l.querySelector(".vjs-control-text").textContent="Forward",l.classList.add("vjs-forward-button"),r.append(p('<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 s(i,t),l(i,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t>=0){var i=t+30;e.currentTime(i)}}}])}(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){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var l=(t=g(this,i,[e,n])).el_,r=l.querySelector(".vjs-icon-placeholder");return l.querySelector(".vjs-control-text").textContent="Rewind",l.classList.add("vjs-rewind-button"),r.append(p('<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 s(i,t),l(i,[{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)}}])}(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!==(z=V.video)&&void 0!==z&&null!==(H=z.gist)&&void 0!==H&&H.title&&e.titleBar.update({title:null==t||null===(J=t.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});b(e)}(d,a),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 B=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 O=C(r);null==B||B.addChild(O)}else try{B.children_[2].el_.style.right="115px"}catch(e){}try{var F,_;B.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)}))}(r,a),function(e,n){var o,l,r,a,s,u,d,p,h=c.getSource(null==n?void 0:n.res,e)||{},f=h.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!==(p=d.adsConfig)&&void 0!==p&&p.vodAdClientSideTracking&&v.setupAdvertisementMarkers(e,f);!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)}(r,a)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-4324250b.js"),r=require("./index-865afc31.js"),i=require("./icons-0ea2e662.js"),n=require("./skin-3397dca5.js"),t=require("./generic-d56b38ac.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("@babel/runtime/helpers/inherits"),require("video.js"),require("./renditions-26c6d0df.js"),require("./localisation-56e0a999.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./util-c1962d91.js"),require("./captions-3c7ca3a7.js"),require("./resolution-5a0df2be.js"),require("@babel/runtime/helpers/defineProperty"),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-571ddebc.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 +0,0 @@
1
- "use strict";var e=require("./generic-d56b38ac.js"),r=require("./skin-3397dca5.js");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-3c7ca3a7.js");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 +0,0 @@
1
- "use strict";var e=require("./features-4324250b.js"),l=require("./skin-3397dca5.js"),i=require("./index-510967ea.js"),r=require("./browser-38ff3331.js");require("videojs-contrib-quality-menu");var o=require("video.js"),n=require("./index-865afc31.js"),a=require("./generic-d56b38ac.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("@babel/runtime/helpers/inherits"),require("./renditions-26c6d0df.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-b2664dca.js"),require("./util-c1962d91.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("video.js/dist/video-js.min.css"),require("./captions-3c7ca3a7.js"),require("./resolution-5a0df2be.js"),require("axios"),require("js-cookie"),require("ua-parser-js");function u(o,n){var a=l.getPlayer(o);a&&(a.on("loadeddata",function(){var e,a,u,d,t;!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!==(d=u.appcmsMain)&&void 0!==d&&null!==(t=d.features)&&void 0!==t&&t.auto_play)||null!=n&&n.liveVideo||i.addNextEpPreview(o,n),null!=n&&n.liveVideo||r.isMobile()||i.initiateTrickplay(o)}),a.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,p,c,b,y,m=l.getPlayer(e),q=(null==i?void 0:i.theme)||{},g=o.dom.$(".vjs-play-progress"),j=o.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");j&&(j.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)),g&&(g.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(p=v.appcmsMain)||void 0===p||null===(c=p.brand)||void 0===c||null===(b=c.cta)||void 0===b||null===(y=b.primary)||void 0===y?void 0:y.backgroundColor));var h=m.getChild("BigPlayButton")||null;(null==q?void 0:q.progressBarColor)&&g&&(g.style.background=q.progressBarColor),(null==q?void 0:q.playButtonBackgroundColor)&&h&&(h.el().style.background=q.playButtonBackgroundColor),(null==q?void 0:q.playButtonColor)&&j&&(j.style.color=q.playButtonColor),(null==q?void 0:q.playButtonType)&&("square"==(null==q?void 0:q.playButtonType)?h.el().style.borderRadius=".3em":h.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,p,c,b,y,m,q,g=a.getSource(null==r?void 0:r.res,l)||{},j=g.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);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===(p=v.appcmsMain)||void 0===p||null===(c=p.adsConfig)||void 0===c?void 0:c.vodAdSticherProvider)&&null!==(b=window)&&void 0!==b&&null!==(y=b.app_data)&&void 0!==y&&null!==(m=y.appcmsMain)&&void 0!==m&&null!==(q=m.adsConfig)&&void 0!==q&&q.vodAdClientSideTracking&&n.setupAdvertisementMarkers(l,j)}(r,o),d(r,o)};
@@ -1 +0,0 @@
1
- "use strict";var t=require("./skin-3397dca5.js");exports.getVideoCurrentTime=function(e){var n=t.getPlayer(e);return n?n.currentTime():"Cannot find player with id: '".concat(e,"'")},exports.getVideoDuration=function(e){var n=t.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onTimeUpdate=function(e,n){var r=t.getPlayer(e);r?r.on("timeupdate",function(){return n(r.currentTime())}):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var r=t.getPlayer(e);r?r.on("ended",function(){return n(!0)}):n("Cannot find player with id: '".concat(e,"'"))},exports.seekToTimeStamp=function(e,n,r){var a=t.getPlayer(e);a?n>=0&&n<=a.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),a.currentTime(n)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var r=t.getPlayer(e);if(!r)return"Cannot find player with id: '".concat(e,"'");try{return r.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(t){return"Error: ".concat(t)}};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),i=require("@babel/runtime/helpers/inherits"),r=require("video.js"),a=require("./icons-0ea2e662.js"),l=require("./generic-d56b38ac.js"),d=require("./skin-3397dca5.js"),s=require("./autoNextVideo-b2664dca.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/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-3c7ca3a7.js"),require("./util-c1962d91.js");var v=r.getComponent("Component"),m=function(){function m(t){var i,r,a,d,c,v,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,m),d=this,v=[t,p],c=o(c=m),(a=n(d,u()?Reflect.construct(c,v||[],o(d).constructor):c.apply(d,v))).playerId=p.playerId,a.seriesData=p.sres,a.videos=p.related.content,a.cb=(null==p||null===(i=p.related)||void 0===i?void 0:i.cb)||null,a.autoNext=(null==p||null===(r=p.related)||void 0===r?void 0:r.autoNext)||!1,a.currentVideoData=p.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return i(m,v),t(m,[{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 o;null!==(o=n.classList)&&void 0!==o&&o.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 o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),r.dom.appendContent(t,n),o.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(),o=r.dom.createEl("div",{className:"video-selector-head"}),i=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.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,o,i,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"),o=0;o<n.length;o++)n[o].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===(o=n[e])||void 0===o?void 0:o.img)||(null===(i=window)||void 0===i||null===(a=i.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(o,i),r.dom.appendContent(o,s),r.dom.appendContent(e,o),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}])}();exports.default=m;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),i=require("@babel/runtime/helpers/inherits"),l=require("video.js"),a=require("./icons-0ea2e662.js"),d=require("./generic-d56b38ac.js"),s=require("./skin-3397dca5.js"),r=require("./autoNextVideo-b2664dca.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/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-38ff3331.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-3c7ca3a7.js"),require("./util-c1962d91.js");var m=l.getComponent("Component"),v=function(){function v(t){var i,l,a,s,c,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),s=this,m=[t,p],c=o(c=v),(a=n(s,u()?Reflect.construct(c,m||[],o(s).constructor):c.apply(s,m))).playerId=p.playerId,a.seriesData=p.sres,a.videos=p.related.content,a.cb=(null==p||null===(i=p.related)||void 0===i?void 0:i.cb)||null,a.autoNext=(null==p||null===(l=p.related)||void 0===l?void 0:l.autoNext)||!1,a.currentVideoData=p.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d.setVideoIdx(0),r.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return i(v,m),t(v,[{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")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),s.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),s.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";s.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"}),r=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(s.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||s.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(r,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,r),s.handleDrawerResizing(this.playerId,e)}}])}();exports.default=v;