@viewlift/player-backup 2.0.70-smartTv → 2.0.71-smartTv

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/cjs/{autoNextVideo-42ae9f83.js → autoNextVideo-ff4a5872.js} +1 -1
  2. package/cjs/bundle.css +3 -3
  3. package/cjs/{features-3071a8b4.js → features-d5a19c52.js} +1 -1
  4. package/cjs/generic-270e0c0e.js +1 -0
  5. package/cjs/index-7deb8e51.js +1 -0
  6. package/cjs/index-952059d8.js +1 -0
  7. package/cjs/index.js +1 -1
  8. package/cjs/{multicamv2-fe442c50.js → multicamv2-97f57710.js} +1 -1
  9. package/cjs/{multicamv2-dfe24339.js → multicamv2-e60917aa.js} +1 -1
  10. package/cjs/{nextEpisodeButton-89b2f43c.js → nextEpisodeButton-b62010fa.js} +1 -1
  11. package/cjs/{playlist-f54e53e1.js → playlist-452d88c2.js} +1 -1
  12. package/cjs/{series-8301d2ed.js → series-62cf13d7.js} +1 -1
  13. package/cjs/{series-v2-8880bf8e.js → series-v2-1540a570.js} +1 -1
  14. package/cjs/{series-v2-8a3e111b.js → series-v2-a0ce7016.js} +1 -1
  15. package/cjs/skin-28e40e43.js +1 -0
  16. package/cjs/skin-3e832338.js +1 -0
  17. package/cjs/{skin-36af123e.js → skin-5e026b9e.js} +1 -1
  18. package/cjs/{skin-6c7101cc.js → skin-5e6de97a.js} +1 -1
  19. package/cjs/skin-66bb1abb.js +1 -0
  20. package/cjs/{skin-ec6f8863.js → skin-71bb1a0a.js} +1 -1
  21. package/cjs/skin-a4de7dc7.js +1 -0
  22. package/cjs/{videoSelector-c9e30433.js → videoSelector-bccb16ce.js} +1 -1
  23. package/cjs/{videoSelector-5e0393ec.js → videoSelector-d6d0e1ae.js} +1 -1
  24. package/esm/{autoNextVideo-767734a4.js → autoNextVideo-63dbac74.js} +1 -1
  25. package/esm/bundle.css +3 -3
  26. package/esm/{features-40341935.js → features-b4c00ff4.js} +1 -1
  27. package/esm/generic-817644b6.js +1 -0
  28. package/esm/index-b559de16.js +1 -0
  29. package/esm/index-c0023a66.js +1 -0
  30. package/esm/index.js +1 -1
  31. package/esm/{multicamv2-b101ecd9.js → multicamv2-170df815.js} +1 -1
  32. package/esm/{multicamv2-5cab9f8e.js → multicamv2-469790c5.js} +1 -1
  33. package/esm/{nextEpisodeButton-7e942772.js → nextEpisodeButton-3bdc1a02.js} +1 -1
  34. package/esm/{playlist-bc200231.js → playlist-15c1cf5a.js} +1 -1
  35. package/esm/{series-82341be5.js → series-04163ae5.js} +1 -1
  36. package/esm/{series-v2-6d3351ff.js → series-v2-6ab87b3b.js} +1 -1
  37. package/esm/{series-v2-52ff0962.js → series-v2-e0e817a0.js} +1 -1
  38. package/esm/{skin-e286536e.js → skin-287d98f0.js} +1 -1
  39. package/esm/{skin-2480763f.js → skin-3688bf2d.js} +1 -1
  40. package/esm/skin-61d92027.js +1 -0
  41. package/esm/{skin-e0c2f0ff.js → skin-6290413d.js} +1 -1
  42. package/esm/skin-6fb58468.js +1 -0
  43. package/esm/skin-9b61d1eb.js +1 -0
  44. package/esm/skin-ec925239.js +1 -0
  45. package/esm/{videoSelector-7836dcb6.js → videoSelector-0e2a85dc.js} +1 -1
  46. package/esm/{videoSelector-668073dc.js → videoSelector-4230d7f6.js} +1 -1
  47. package/package.json +1 -1
  48. package/cjs/autoNextVideo-54a8a49e.js +0 -1
  49. package/cjs/browser-b4213cb7.js +0 -1
  50. package/cjs/caption-settings-4edadfe5.js +0 -1
  51. package/cjs/captions-393835e9.js +0 -1
  52. package/cjs/features-8ccce5cb.js +0 -1
  53. package/cjs/generic-25679e19.js +0 -1
  54. package/cjs/generic-cf4b06d0.js +0 -1
  55. package/cjs/icons-bacdb330.js +0 -1
  56. package/cjs/index-1cd04c8b.js +0 -1
  57. package/cjs/index-3f0492aa.js +0 -1
  58. package/cjs/index-87f65418.js +0 -1
  59. package/cjs/index-a1dba6e8.js +0 -1
  60. package/cjs/index-bf6dde3f.js +0 -1
  61. package/cjs/index-e5afb8a7.js +0 -1
  62. package/cjs/index-ee4e22d6.js +0 -1
  63. package/cjs/multicamv2-84aa0456.js +0 -1
  64. package/cjs/multicamv2-fb56bab1.js +0 -1
  65. package/cjs/nextEpisodeButton-a2bd48c7.js +0 -1
  66. package/cjs/playlist-ffa59fac.js +0 -1
  67. package/cjs/renditions-17c543e3.js +0 -1
  68. package/cjs/resolution-4ccb28ba.js +0 -1
  69. package/cjs/resolution-7e0a2fe4.js +0 -1
  70. package/cjs/series-547835df.js +0 -1
  71. package/cjs/series-v2-214a3bb6.js +0 -1
  72. package/cjs/series-v2-ba70e761.js +0 -1
  73. package/cjs/settings-icon-0cbc8b5f.js +0 -1
  74. package/cjs/settings-icon-bd2311fe.js +0 -1
  75. package/cjs/skin-079b0930.js +0 -1
  76. package/cjs/skin-08116b1b.js +0 -1
  77. package/cjs/skin-0f88b8d8.js +0 -1
  78. package/cjs/skin-23eda0a7.js +0 -1
  79. package/cjs/skin-3338cc6f.js +0 -1
  80. package/cjs/skin-3a34b971.js +0 -1
  81. package/cjs/skin-3cc15dc2.js +0 -1
  82. package/cjs/skin-43ce1430.js +0 -1
  83. package/cjs/skin-448d38a6.js +0 -1
  84. package/cjs/skin-4a202e70.js +0 -1
  85. package/cjs/skin-725fbda6.js +0 -1
  86. package/cjs/skin-79349e81.js +0 -1
  87. package/cjs/skin-7b9006f8.js +0 -1
  88. package/cjs/skin-9be8e345.js +0 -1
  89. package/cjs/skin-b3999029.js +0 -1
  90. package/cjs/skin-d74e2aae.js +0 -1
  91. package/cjs/skin-deb410a6.js +0 -1
  92. package/cjs/skin-eabf5eb1.js +0 -1
  93. package/cjs/util-2487e498.js +0 -1
  94. package/cjs/videoSelector-d37a3677.js +0 -1
  95. package/cjs/videoSelector-ff9f89e0.js +0 -1
  96. package/cjs/videojs-dash5.es-0d7dcdf9.js +0 -1
  97. package/esm/autoNextVideo-2dae5124.js +0 -1
  98. package/esm/browser-8414342e.js +0 -1
  99. package/esm/caption-settings-b7ccde0e.js +0 -1
  100. package/esm/captions-5dc8f704.js +0 -1
  101. package/esm/features-9d5fdf7e.js +0 -1
  102. package/esm/generic-3f37be1e.js +0 -1
  103. package/esm/generic-66d1506b.js +0 -1
  104. package/esm/icons-b212fe63.js +0 -1
  105. package/esm/index-144e82ca.js +0 -1
  106. package/esm/index-236cca97.js +0 -1
  107. package/esm/index-527907c0.js +0 -1
  108. package/esm/index-5d9f05d1.js +0 -1
  109. package/esm/index-5e046049.js +0 -1
  110. package/esm/index-6d0a87a6.js +0 -1
  111. package/esm/index-90e9dd42.js +0 -1
  112. package/esm/multicamv2-14c2a659.js +0 -1
  113. package/esm/multicamv2-163da219.js +0 -1
  114. package/esm/nextEpisodeButton-fcfc868e.js +0 -1
  115. package/esm/playlist-ec59d28b.js +0 -1
  116. package/esm/renditions-92e03207.js +0 -1
  117. package/esm/resolution-84571e3a.js +0 -1
  118. package/esm/resolution-ff76ef38.js +0 -1
  119. package/esm/series-39ee26d4.js +0 -1
  120. package/esm/series-v2-c7ca8aea.js +0 -1
  121. package/esm/series-v2-cfb1e0d9.js +0 -1
  122. package/esm/settings-icon-732bddc8.js +0 -1
  123. package/esm/settings-icon-d88c6a52.js +0 -1
  124. package/esm/skin-02f0805d.js +0 -1
  125. package/esm/skin-078dbbbb.js +0 -1
  126. package/esm/skin-0c6cc433.js +0 -1
  127. package/esm/skin-138992dc.js +0 -1
  128. package/esm/skin-1f7cd934.js +0 -1
  129. package/esm/skin-3ee29e32.js +0 -1
  130. package/esm/skin-3f27ce1e.js +0 -1
  131. package/esm/skin-45eb5003.js +0 -1
  132. package/esm/skin-4b55cb89.js +0 -1
  133. package/esm/skin-57c031df.js +0 -1
  134. package/esm/skin-5c99fa22.js +0 -1
  135. package/esm/skin-7dc9c5f5.js +0 -1
  136. package/esm/skin-8615e53a.js +0 -1
  137. package/esm/skin-8668c482.js +0 -1
  138. package/esm/skin-8a617b92.js +0 -1
  139. package/esm/skin-a32bda6d.js +0 -1
  140. package/esm/skin-bd68eaf1.js +0 -1
  141. package/esm/skin-d8724e3c.js +0 -1
  142. package/esm/util-c4f931f0.js +0 -1
  143. package/esm/videoSelector-9fbd4736.js +0 -1
  144. package/esm/videoSelector-db7d4cb6.js +0 -1
  145. package/esm/videojs-dash5.es-792e6bc2.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.object.to-string.js");var e=require("./features-8ccce5cb.js"),t=require("./skin-b3999029.js"),i=require("./index-1cd04c8b.js"),r=require("./browser-b4213cb7.js");require("core-js/modules/es.reflect.construct.js");var o=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),l=require("@babel/runtime/helpers/possibleConstructorReturn"),s=require("@babel/runtime/helpers/getPrototypeOf"),a=require("@babel/runtime/helpers/inherits"),u=require("video.js");require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.array.find-index.js"),require("core-js/modules/es.array.find.js"),require("core-js/modules/web.dom-collections.for-each.js");var d=require("@babel/runtime/helpers/typeof");require("core-js/modules/es.array.includes.js");var c=require("./generic-cf4b06d0.js"),v=require("./index-ee4e22d6.js");require("core-js/modules/es.promise.js"),require("core-js/modules/es.object.assign.js"),require("./renditions-17c543e3.js"),require("core-js/modules/es.array.sort.js"),require("./localisation-56e0a999.js"),require("core-js/modules/es.string.includes.js"),require("./autoNextVideo-54a8a49e.js"),require("./util-2487e498.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("core-js/modules/es.array.last-index-of.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("core-js/modules/es.string.trim.js"),require("core-js/modules/es.string.starts-with.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.string.pad-start.js"),require("core-js/modules/es.number.constructor.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/web.url.js"),require("core-js/modules/web.url-search-params.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.math.trunc.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.map.js"),require("core-js/modules/es.function.name.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-393835e9.js"),require("core-js/modules/es.number.to-fixed.js"),require("core-js/stable"),require("./resolution-7e0a2fe4.js"),require("core-js/modules/esnext.promise.all-settled.js"),require("core-js/modules/es.set.js"),require("core-js/modules/es.array.from.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.array.reduce.js"),require("core-js/modules/es.object.entries.js");var p=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},m=function(){return n(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 r=document.createElement("p");r.textContent=this.title,i.appendChild(r);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)}}])}(),h=function(){return n(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 r=document.createElement("p");if(r.textContent=this.title,i.appendChild(r),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)}}])}(),f=function(){return n(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 r=document.createElement("div");r.textContent=this.title,r.className="settingsHeading",i.appendChild(r);var o=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,i){var r=new m({title:e.text,klassname:"default-option-wrapper",focused:0===i,callback:e.callback});e.instance=r,0===i&&(t.currentFocusedOption=r),r.mount(o)}):"selection"===this.type&&this.items.forEach(function(e,i){var r=new h({title:e.text,klassname:"default-option-wrapper",focused:0===i,selected:e.isSelected,id:e.id});e.instance=r,0===i&&(t.currentFocusedOption=r),r.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,r,o,n,l,s,a,u=[{text:"Video Quality",isSelected:!0,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var i,r,o,n,l;if(!e)return;var s=null===(i=t.qualityLevels())||void 0===i?void 0:i.levels_,a=-1==(null===(r=t.qualityLevels())||void 0===r?void 0:r.selectedIndex_)?"auto":null===(o=t.qualityLevels())||void 0===o?void 0:o.levels_[null===(n=t.qualityLevels())||void 0===n?void 0:n.selectedIndex_].height,u=[{text:"Auto",id:"auto",isSelected:"auto"===a,callback:function(){e.currentFocusedOption.focus(),l.unmount()}}].concat(s.map(function(t){return{text:"".concat(t.height,"p"),id:t.height,isSelected:a===t.height,callback:function(){e.currentFocusedOption.focus(),l.unmount()}}}));l=new f({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=s.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")}}),l.mount(null==t?void 0:t.el())}(a,e)}}];null!=e&&null!==(i=e.audioTracks())&&void 0!==i&&i.tracks_&&(null==e||null===(r=e.audioTracks())||void 0===r||null===(o=r.tracks_)||void 0===o?void 0:o.length)>1&&u.push({text:"Audio Language",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var i,r,o,n;if(!e)return;var l=null==t||null===(i=t.audioTracks())||void 0===i?void 0:i.tracks_,s=(null==l||null===(r=l.find(function(e){return e.enabled}))||void 0===r?void 0:r.label)||(null==l||null===(o=l[0])||void 0===o?void 0:o.label)||"Default",a=l.map(function(t){return{text:t.label,id:t.id,isSelected:s===t.label,callback:function(){e.currentFocusedOption.focus(),n.unmount()}}});n=new f({title:"Audio Language",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==l||l.forEach(function(t){t.enabled=!1,t.enabled=t.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),n.mount(null==t?void 0:t.el())}(a,e)}});var d=null==e||null===(n=e.textTracks())||void 0===n?void 0:n.tracks_;return(d=d.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(l=d)||void 0===l?void 0:l.length)>0&&u.push({text:"Subtitles",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,t){var i,r,o;if(!e)return;var n=t.textTracks().tracks_;n=n.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var l=(null===(i=n)||void 0===i||null===(r=i.find(function(e){return"showing"===e.mode}))||void 0===r?void 0:r.label)||"Captions Off",s=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===l,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}].concat(n.map(function(t){return{text:t.label,id:t.id,kind:t.kind,lang:t.language,mode:t.mode,isSelected:l===t.label,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}}));o=new f({title:"Closed Captions",items:s,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var t;null===(t=n)||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())}(a,e)}}),(a=new f({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===(s=e.controlBar)||void 0===s||s.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),a}function g(e,t,i){return t=s(t),l(e,j()?Reflect.construct(t,i||[],s(e).constructor):t.apply(e,i))}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}var b=function(e){var t=function(t){function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var n=(t=g(this,i,[e,r])).el_,l=n.querySelector(".vjs-icon-placeholder");n.querySelector(".vjs-control-text").textContent="CC",n.classList.add("vjs-ClosedCaption-button");return l.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 a(i,t),n(i,[{key:"handleClick",value:function(){!function(e){var t,i,r,o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=e.textTracks().tracks_,s=(null===(t=l=l.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",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===s,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}].concat(l.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:s===e.label,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}}));(o=new f({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:n,type:"selection",focused:!0,onselect:function(t){var i,r;null===(i=l)||void 0===i||i.forEach(function(e){e.mode=e.id===t.id?"showing":"hidden"}),o.unmount(null==e?void 0:e.el()),null===(r=e.controlBar)||void 0===r||r.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){n.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(){n.focus()},100)}})).mount(null==e?void 0:e.el()),null===(r=e.controlBar)||void 0===r||r.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}])}(u.getComponent("Button"));return u.registerComponent("CloseCaptionButton",t),new t(e,{})};var k=function(e){if(e)try{var t,i,r,o=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(r=i.entitlement)||void 0===r?void 0:r.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(l,s){var d=t.getPlayer(l);d.addClass("skin_smartTV"),function(e,t){var i,r,l,s,d,c,v,m,h,f,j,b,w,C,q,L,x,S,E,T,B,O,F,_,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===(r=window)||void 0===r||null===(l=r.app_data)||void 0===l||null===(s=l.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===(m=e.controlBar)||void 0===m||m.removeChild("VolumePanel"),null===(h=e.controlBar)||void 0===h||h.removeChild("AudioTrackButton"),null===(f=e.controlBar)||void 0===f||f.removeChild("FullscreenToggle"),null===(j=e.controlBar)||void 0===j||j.removeChild("PictureInPictureToggle"),null===(b=e.controlBar)||void 0===b||b.removeChild("skipBackward"),null===(w=e.controlBar)||void 0===w||w.removeChild("skipForward"),null===(C=e.controlBar)||void 0===C||C.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(q=e.controlBar)||void 0===q||null===(L=q.el())||void 0===L||L.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===(S=e.controlBar)||void 0===S?void 0:S.getChild("ProgressControl"),K=null===(E=e.controlBar)||void 0===E?void 0:E.getChild("CurrentTimeDisplay"),N=null===(T=e.controlBar)||void 0===T?void 0:T.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===(O=e.controlBar)||void 0===O?void 0:O.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,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var n=(t=g(this,i,[e,r])).el_;return n.querySelector(".vjs-control-text").textContent="Start From Beginning",n.classList.add("vjs-startFromBeginning-button"),t}return a(i,t),n(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,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var n=(t=g(this,i,[e,r])).el_,l=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Settings",n.classList.add("vjs-Settings-button"),l.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 a(i,t),n(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!==(F=t.res)&&void 0!==F&&null!==(_=F.video)&&void 0!==_&&null!==(W=_.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,re=function(e){var t=function(t){function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var n=(t=g(this,i,[e,r])).el_,l=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Forward",n.classList.add("vjs-forward-button"),l.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 a(i,t),n(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(re);var oe=function(e){var t=function(t){function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i);var n=(t=g(this,i,[e,r])).el_,l=n.querySelector(".vjs-icon-placeholder");return n.querySelector(".vjs-control-text").textContent="Rewind",n.classList.add("vjs-rewind-button"),l.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 a(i,t),n(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});k(e)}(d,s),function(o,n){var l=t.getPlayer(o);l&&(l.on("loadeddata",function(){var e,t,s,a,u;try{var d,c,v,p,m,h;if(null!=n&&null!==(d=n.res)&&void 0!==d&&null!==(c=d.video)&&void 0!==c&&null!==(v=c.streamingInfo)&&void 0!==v&&v.isLiveStream&&null!=n&&null!==(p=n.res)&&void 0!==p&&null!==(m=p.video)&&void 0!==m&&null!==(h=m.liveDetails)&&void 0!==h&&h.isDvrEnabled){var f,y,g=(null===(f=l.seekable())||void 0===f?void 0:f.end(0))-(null===(y=l.seekable())||void 0===y?void 0:y.start(0));window.customData.dvrWindow=g}else window.customData.dvrWindow=null}catch(e){}try{var j,k,w;if(null!=n&&null!==(j=n.res)&&void 0!==j&&null!==(k=j.video)&&void 0!==k&&null!==(w=k.streamingInfo)&&void 0!==w&&w.isLiveStream){var C,q=null===(C=l.controlBar)||void 0===C?void 0:C.getChild("ProgressControl");if(q){var L=q.el().querySelector(".vjs-play-progress");L&&(L.style.width="100%")}}}catch(e){}try{l.qualityLevels().selectedIndex_=-1}catch(e){}try{var x,S,E=l.textTracks().tracks_;E=E.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var T=null===(x=l.controlBar)||void 0===x?void 0:x.getChild("CustomControlSpacer");if(E&&(null===(S=E)||void 0===S?void 0:S.length)>0){var B=b(l);null==T||T.addChild(B)}else try{T.children_[2].el_.style.right="115px"}catch(e){}try{var O,F;T.el_.style.opacity=1,(null===(O=l.controlBar)||void 0===O||null===(F=O.el_)||void 0===F?void 0:F.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(s=t.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(u=a.features)&&void 0!==u&&u.auto_play)||null!=n&&n.liveVideo||i.addNextEpPreview(o,n),null!=n&&n.liveVideo||r.isMobile()||i.initiateTrickplay(o)}),l.one("play",function(){var t,i,r,n;null!==(t=window)&&void 0!==t&&null!==(i=t.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)}))}(l,s),function(e,r){var o,n,l,s,a,u,d,p,m=c.getSource(null==r?void 0:r.res,e)||{},h=m.src;i.addTVProviderImage(e,r),"MEDIA_TAILOR"==(null===(o=window)||void 0===o||null===(n=o.app_data)||void 0===n||null===(l=n.appcmsMain)||void 0===l||null===(s=l.adsConfig)||void 0===s?void 0:s.vodAdSticherProvider)&&null!==(a=window)&&void 0!==a&&null!==(u=a.app_data)&&void 0!==u&&null!==(d=u.appcmsMain)&&void 0!==d&&null!==(p=d.adsConfig)&&void 0!==p&&p.vodAdClientSideTracking&&v.setupAdvertisementMarkers(e,h);!function(e,i){var r=t.getPlayer(e);if(r){var o,n,l=!1,s=!1;null===(o=r.controlBar)||void 0===o||o.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(s=!0)}),null===(n=r.controlBar)||void 0===n||n.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(s=!1)}),r.on("seeking",function(){var e,t,i;r.paused()||l||(l=!0,r.pause());var o=r.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.dvrWindow)if(o=r.liveTracker.liveCurrentTime()-o,0==Math.round(o)){var n,s;o=window.customData.dvrWindow;var a=null===(n=r.controlBar)||void 0===n||null===(s=n.customControlSpacer)||void 0===s?void 0:s.getChild("SeekToLive");a&&(a.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",r.controlBar.liveDisplay.el().style.opacity=0)}else if(o>window.customData.dvrWindow){var u,d;o=0;var c=null===(u=r.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",r.controlBar.liveDisplay.el().style.opacity=0)}else{var v,p;o=window.customData.dvrWindow-o;var m=null===(v=r.controlBar)||void 0===v||null===(p=v.customControlSpacer)||void 0===p?void 0:p.getChild("SeekToLive");m&&(m.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",r.controlBar.liveDisplay.el().style.opacity=0)}var h=o/(window.customData.dvrWindow?window.customData.dvrWindow:r.duration())*100,f=null===(i=r.controlBar)||void 0===i?void 0:i.getChild("ProgressControl");if(f){var y=f.el().querySelector(".vjs-play-progress");y&&(y.style.width=h+"%")}}),r.on("seeked",function(){var e,t,o,n,a,u;if(r.paused()&&l&&!s&&(l=!1,r.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!==(n=i.res)&&void 0!==n&&null!==(a=n.video)&&void 0!==a&&null!==(u=a.liveDetails)&&void 0!==u&&u.isDvrEnabled){var d,c,v=null===(d=r.controlBar)||void 0===d||null===(c=d.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");r.liveTracker.seekedBehindLive_?v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",r.controlBar.liveDisplay.el().style.opacity=0):v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",r.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,r)}(l,s)};
@@ -1 +0,0 @@
1
- "use strict";var t=require("./skin-b3999029.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";require("core-js/modules/es.reflect.construct.js");var e=require("@babel/runtime/helpers/classCallCheck"),r=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),t=require("@babel/runtime/helpers/inherits");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var i=require("video.js"),a=require("./icons-bacdb330.js"),d=require("./generic-cf4b06d0.js"),l=require("./skin-b3999029.js"),n=require("./autoNextVideo-54a8a49e.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("core-js/modules/es.array.concat.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.object.assign.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("./browser-b4213cb7.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.math.trunc.js"),require("core-js/modules/es.array.find.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.map.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.function.name.js"),require("js-cookie"),require("ua-parser-js"),require("core-js/modules/es.array.find-index.js"),require("./captions-393835e9.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("./util-2487e498.js");var m=i.getComponent("Component"),j=function(){function j(r){var t,i,a,l,c,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,j),l=this,m=[r,p],c=o(c=j),(a=s(l,u()?Reflect.construct(c,m||[],o(l).constructor):c.apply(l,m))).playerId=p.playerId,a.seriesData=p.sres,a.videos=p.related.content,a.cb=(null==p||null===(t=p.related)||void 0===t?void 0:t.cb)||null,a.autoNext=(null==p||null===(i=p.related)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=p.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d.setVideoIdx(0),n.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(j,m),r(j,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var r=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return i.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.js")}).then(function(e){var r=document.createElement("style");r.id="video-selection",r.append("".concat(e.default)),document.head.appendChild(r)})}},{key:"initialiseStructure",value:function(){var e=this,r=this.el(),s=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=s.classList)&&void 0!==o&&o.contains("hidden")?(l.closeOpenDrawers(),s.classList.remove("hidden"),r.classList.add("open"),s.style.right="0px",l.setUpdatedElHeight(e.playerId,s)):(s.classList.add("hidden"),r.classList.remove("open"),s.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height");s.style.height="".concat(t),i.dom.appendContent(r,s),o.style.overflow="hidden",this.addFunctionality(s),l.detectOrientationChange(this.playerId,s)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),o=i.dom.createEl("div",{className:"video-selector-head"}),t=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});t.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var n=i.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=i.dom.createEl("div",{className:"video-selector-content"}),m=i.dom.createEl("div",{className:"video-container"}),j=function(e){var s,o,t,a,n,c=i.dom.createEl("div",{className:"video -".concat(e)}),j=i.dom.createEl("div",{className:"recommended -".concat(e)});j.setAttribute("video-idx",e),j.onclick=function(){d.setVideoIdx(e+1);for(var s=i.dom.$$(".recommended"),o=0;o<s.length;o++)s[o].style.border="none";l.highlightVideo_DEFAULTV2_TEMP(e),d.load(r.playerId,r.videos[e].id).then(function(e){r.cb&&r.cb(e)}).catch(function(e){r.cb&&r.cb(e)})};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==r||null===(s=r.videos)||void 0===s||null===(o=s[e])||void 0===o?void 0:o.img)||(null===(t=window)||void 0===t||null===(a=t.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",j.append(p);var y=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==r||null===(n=r.videos[e])||void 0===n?void 0:n.title)||"")});i.dom.appendContent(c,j),i.dom.appendContent(c,y),i.dom.appendContent(m,c),i.dom.appendContent(u,m)},p=0;p<this.videos.length;p++)j(p);i.dom.appendContent(o,t),i.dom.appendContent(o,n),i.dom.appendContent(e,o),i.dom.appendContent(e,u),l.handleDrawerResizing(this.playerId,e)}}])}();exports.default=j;
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.reflect.construct.js");var e=require("@babel/runtime/helpers/classCallCheck"),r=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),t=require("@babel/runtime/helpers/inherits");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.split.js"),require("core-js/modules/es.string.trim.js");var i=require("video.js"),a=require("./icons-bacdb330.js"),n=require("./generic-cf4b06d0.js"),d=require("./skin-b3999029.js"),l=require("./autoNextVideo-54a8a49e.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("core-js/modules/es.array.concat.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.object.assign.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.string.replace.js"),require("./browser-b4213cb7.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.math.trunc.js"),require("core-js/modules/es.array.find.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.map.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.function.name.js"),require("js-cookie"),require("ua-parser-js"),require("core-js/modules/es.array.find-index.js"),require("./captions-393835e9.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("./util-2487e498.js");var m=i.getComponent("Component"),j=function(){function j(r){var t,i,a,d,c,m,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,j),d=this,m=[r,y],c=o(c=j),(a=s(d,u()?Reflect.construct(c,m||[],o(d).constructor):c.apply(d,m))).playerId=y.playerId,a.seriesData=y.sres,a.videos=y.related.content,a.cb=(null==y||null===(t=y.related)||void 0===t?void 0:t.cb)||null,a.autoNext=(null==y||null===(i=y.related)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=y.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(n.setVideoIdx(0),l.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(j,m),r(j,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var r=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return i.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.js")}).then(function(e){var r=document.createElement("style");r.id="video-selection",r.append("".concat(e.default)),document.head.appendChild(r)})}},{key:"initialiseStructure",value:function(){var e=this,r=this.el(),s=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=s.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),s.classList.remove("hidden"),r.classList.add("open"),d.setUpdatedElHeight(e.playerId,s)):(s.classList.add("hidden"),r.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height");s.style.height="".concat(t),i.dom.appendContent(r,s),o.style.overflow="hidden",this.addFunctionality(s),d.detectOrientationChange(this.playerId,s)}}},{key:"loadVideoAssetById",value:function(e){var r=this;n.setVideoIdx(e+1);for(var s=i.dom.$$(".recommended"),o=0;o<s.length;o++)s[o].style.border="none";d.highlightVideo(e),n.load(this.playerId,this.videos[e].id).then(function(e){r.cb&&r.cb(e)}).catch(function(e){r.cb&&r.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,r,s;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"),t=(null==o||null===(r=o[0])||void 0===r||null===(s=r.children)||void 0===s?void 0:s.length)||0,i=0;i<t;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,r,s;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"),t=(null==o||null===(r=o[0])||void 0===r||null===(s=r.children)||void 0===s?void 0:s.length)||0,i=0;i<t;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),o=i.dom.createEl("div",{className:"video-selector-head"}),t=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});t.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),s.classList.remove("open"),r.handleCloseTabIndex())},t.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),r.handleCloseTabIndex()};for(var n=i.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),l=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=i.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var s,o,t,a,n,c,m,j,y=i.dom.createEl("div",{className:"video -".concat(e)}),v=i.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(r.videos[e].title),type:"button",tabIndex:-1});v.setAttribute("video-idx",e),v.onkeydown=function(s){"Enter"===s.key&&r.loadVideoAssetById(e)},v.onclick=function(){r.loadVideoAssetById(e)};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat(d.impolicy16x9(null==r||null===(s=r.videos)||void 0===s||null===(o=s[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(t=window)||void 0===t||null===(a=t.app_data)||void 0===a||null===(n=a.appcmsMain)||void 0===n||null===(c=n.images)||void 0===c?void 0:c.placeholderCover)),p.alt="".concat((null==r||null===(m=r.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),v.append(p);var q=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==r||null===(j=r.videos[e])||void 0===j?void 0:j.title)||"")});i.dom.appendContent(y,v),i.dom.appendContent(y,q),i.dom.appendContent(u,y),i.dom.appendContent(l,u)},j=0;j<this.videos.length;j++)m(j);i.dom.appendContent(o,n),i.dom.appendContent(o,t),i.dom.appendContent(e,o),i.dom.appendContent(e,l),d.handleDrawerResizing(this.playerId,e)}}])}();exports.default=j;