@viewlift/player-backup 2.0.260-backup → 2.0.262-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 (219) hide show
  1. package/cjs/autoNextVideo-f25b83b7.js +1 -0
  2. package/cjs/bundle.css +409 -409
  3. package/cjs/caption-settings-d1eb3bf6.js +1 -0
  4. package/cjs/captions-dbc83a75.js +1 -0
  5. package/cjs/currentVideoInfo-31d70bec.js +1 -0
  6. package/cjs/features-e124228b.js +1 -0
  7. package/cjs/generic-9c38d746.js +1 -0
  8. package/cjs/helper-a50a8ffc.js +1 -0
  9. package/cjs/index-3e6dc5e2.js +1 -0
  10. package/cjs/index-3f0e537b.js +1 -0
  11. package/cjs/index-449b54d6.js +1 -0
  12. package/cjs/index-4905764c.js +1 -0
  13. package/cjs/index-ef1ba89c.js +1 -0
  14. package/cjs/index.js +1 -1
  15. package/cjs/multicamv2-2749d481.js +1 -0
  16. package/cjs/multicamv2-f8f0f4dc.js +1 -0
  17. package/cjs/nextEpisodeButton-db3ccc2e.js +1 -0
  18. package/cjs/playlist-36e39c60.js +1 -0
  19. package/cjs/resolution-f9dcc1b4.js +1 -0
  20. package/cjs/resolution-v2-e42e0101.js +1 -0
  21. package/cjs/series-47e431e6.js +1 -0
  22. package/cjs/series-v2-1e51295c.js +1 -0
  23. package/cjs/series-v2-d01ae047.js +1 -0
  24. package/cjs/settings-icon-b43f4406.js +1 -0
  25. package/cjs/{skin-3ea04cef.js → skin-4b59dbca.js} +1 -1
  26. package/cjs/skin-5ac45888.js +1 -0
  27. package/cjs/skin-9ecfd417.js +1 -0
  28. package/cjs/skin-c742f011.js +1 -0
  29. package/cjs/skin-d4a41771.js +1 -0
  30. package/cjs/skin-da0f0794.js +1 -0
  31. package/cjs/skin-db3ac243.js +1 -0
  32. package/cjs/skin-e4d7b69d.js +1 -0
  33. package/cjs/skin-e6dc154d.js +1 -0
  34. package/cjs/skin-f5e18b89.js +1 -0
  35. package/cjs/start-begin-btn-5739a6c0.js +1 -0
  36. package/cjs/util-5b1c1844.js +1 -0
  37. package/cjs/videoSelector-1e445b08.js +1 -0
  38. package/cjs/videoSelector-c09cc79c.js +1 -0
  39. package/cjs/videojs-dash5.es-78624126.js +1 -0
  40. package/cjs/watch-live-btn-822534d1.js +1 -0
  41. package/esm/autoNextVideo-5fb58d99.js +1 -0
  42. package/esm/bundle.css +409 -409
  43. package/esm/caption-settings-6001af40.js +1 -0
  44. package/esm/{captions-78bd2908.js → captions-f507e8ee.js} +1 -1
  45. package/esm/{currentVideoInfo-0b234e55.js → currentVideoInfo-a8a254c2.js} +1 -1
  46. package/esm/features-3e10d66c.js +1 -0
  47. package/esm/generic-61db4ca3.js +1 -0
  48. package/esm/helper-349e076f.js +1 -0
  49. package/esm/index-277411a6.js +1 -0
  50. package/esm/index-2b305c0c.js +1 -0
  51. package/esm/index-34f977e4.js +1 -0
  52. package/esm/index-4cc8ac6f.js +1 -0
  53. package/esm/index-8e3eab6d.js +1 -0
  54. package/esm/index.js +1 -1
  55. package/esm/multicamv2-ac12df30.js +1 -0
  56. package/esm/multicamv2-fea6877d.js +1 -0
  57. package/esm/nextEpisodeButton-a3603966.js +1 -0
  58. package/esm/playlist-b8ece53c.js +1 -0
  59. package/esm/resolution-1c59b0f3.js +1 -0
  60. package/esm/resolution-v2-705ae275.js +1 -0
  61. package/esm/series-32cff646.js +1 -0
  62. package/esm/series-v2-71223649.js +1 -0
  63. package/esm/series-v2-a17e161b.js +1 -0
  64. package/esm/settings-icon-1e7b0951.js +1 -0
  65. package/esm/skin-0289d02e.js +1 -0
  66. package/esm/skin-0ac4a40b.js +1 -0
  67. package/esm/skin-362b56cd.js +1 -0
  68. package/esm/skin-3dcba1b2.js +1 -0
  69. package/esm/skin-3fc1c3fb.js +1 -0
  70. package/esm/skin-5754db93.js +1 -0
  71. package/esm/skin-5a791719.js +1 -0
  72. package/esm/skin-b24977d3.js +1 -0
  73. package/esm/skin-e8ec3aa7.js +1 -0
  74. package/esm/skin-f6e31ce5.js +1 -0
  75. package/esm/start-begin-btn-1e096fec.js +1 -0
  76. package/esm/util-14c993a4.js +1 -0
  77. package/esm/utilities/beacon.d.ts +2 -2
  78. package/esm/videoSelector-191d20c6.js +1 -0
  79. package/esm/videoSelector-91c3d768.js +1 -0
  80. package/esm/videojs-dash5.es-defc33ab.js +1 -0
  81. package/esm/watch-live-btn-5419f3a7.js +1 -0
  82. package/package.json +1 -1
  83. package/cjs/autoNextVideo-7c491841.js +0 -1
  84. package/cjs/autoNextVideo-e42fc428.js +0 -1
  85. package/cjs/browser-77c57718.js +0 -1
  86. package/cjs/caption-settings-25cabfc0.js +0 -1
  87. package/cjs/caption-settings-be714e97.js +0 -1
  88. package/cjs/captions-07bd3069.js +0 -1
  89. package/cjs/captions-68e263dd.js +0 -1
  90. package/cjs/currentVideoInfo-5802821b.js +0 -1
  91. package/cjs/features-93cd6de4.js +0 -1
  92. package/cjs/features-cd48b2b6.js +0 -1
  93. package/cjs/generic-f04cb45e.js +0 -1
  94. package/cjs/generic-f723dacd.js +0 -1
  95. package/cjs/helper-dbf2fb22.js +0 -1
  96. package/cjs/icons-1a3febef.js +0 -1
  97. package/cjs/index-1736603c.js +0 -1
  98. package/cjs/index-4e9d8827.js +0 -1
  99. package/cjs/index-5bdf1cfd.js +0 -1
  100. package/cjs/index-7ae433c7.js +0 -1
  101. package/cjs/index-84cce26a.js +0 -1
  102. package/cjs/index-eafb9077.js +0 -1
  103. package/cjs/index-ff85bd1e.js +0 -1
  104. package/cjs/multicamv2-49af2bae.js +0 -1
  105. package/cjs/multicamv2-4d7833f1.js +0 -1
  106. package/cjs/multicamv2-6006b5a5.js +0 -1
  107. package/cjs/multicamv2-825cb17d.js +0 -1
  108. package/cjs/nextEpisodeButton-056dd4d9.js +0 -1
  109. package/cjs/nextEpisodeButton-05a96016.js +0 -1
  110. package/cjs/playlist-2889487d.js +0 -1
  111. package/cjs/playlist-4932e799.js +0 -1
  112. package/cjs/renditions-fed22c12.js +0 -1
  113. package/cjs/resolution-9c4872ec.js +0 -1
  114. package/cjs/resolution-e46c9615.js +0 -1
  115. package/cjs/resolution-v2-50cbd77b.js +0 -1
  116. package/cjs/series-4b9888dd.js +0 -1
  117. package/cjs/series-c3a14f61.js +0 -1
  118. package/cjs/series-v2-1d193d93.js +0 -1
  119. package/cjs/series-v2-57b1c5b8.js +0 -1
  120. package/cjs/series-v2-68886cd2.js +0 -1
  121. package/cjs/series-v2-719c957a.js +0 -1
  122. package/cjs/series-v2-b7f70c84.js +0 -1
  123. package/cjs/settings-icon-70f8857a.js +0 -1
  124. package/cjs/settings-icon-a419af57.js +0 -1
  125. package/cjs/skin-066dceed.js +0 -1
  126. package/cjs/skin-25191a17.js +0 -1
  127. package/cjs/skin-3544db58.js +0 -1
  128. package/cjs/skin-42117529.js +0 -1
  129. package/cjs/skin-77549792.js +0 -1
  130. package/cjs/skin-80fd2d0c.js +0 -1
  131. package/cjs/skin-87c06e34.js +0 -1
  132. package/cjs/skin-969cc371.js +0 -1
  133. package/cjs/skin-9bfe9316.js +0 -1
  134. package/cjs/skin-add44dae.js +0 -1
  135. package/cjs/skin-c1400489.js +0 -1
  136. package/cjs/skin-c1af6004.js +0 -1
  137. package/cjs/skin-cf53c6f8.js +0 -1
  138. package/cjs/skin-cfc775a4.js +0 -1
  139. package/cjs/skin-df2070f9.js +0 -1
  140. package/cjs/skin-e54f3fd3.js +0 -1
  141. package/cjs/skin-eeec7a85.js +0 -1
  142. package/cjs/start-begin-btn-5adfa5b7.js +0 -1
  143. package/cjs/util-7186e89f.js +0 -1
  144. package/cjs/util-ef2cd61e.js +0 -1
  145. package/cjs/videoSelector-5f1cf380.js +0 -1
  146. package/cjs/videoSelector-810471f8.js +0 -1
  147. package/cjs/videoSelector-9b5a4625.js +0 -1
  148. package/cjs/videoSelector-f17b0749.js +0 -1
  149. package/cjs/videojs-dash5.es-75637b78.js +0 -1
  150. package/cjs/videojs_contrib_dash-018c8bde.js +0 -1
  151. package/cjs/watch-live-btn-1c5d2e69.js +0 -1
  152. package/esm/autoNextVideo-7323cf5f.js +0 -1
  153. package/esm/autoNextVideo-d682e36c.js +0 -1
  154. package/esm/browser-d4613b36.js +0 -1
  155. package/esm/caption-settings-370d8b1e.js +0 -1
  156. package/esm/caption-settings-3a5e2e2d.js +0 -1
  157. package/esm/captions-b7fd8308.js +0 -1
  158. package/esm/features-20d7893f.js +0 -1
  159. package/esm/features-f634dd8c.js +0 -1
  160. package/esm/generic-715a7738.js +0 -1
  161. package/esm/generic-7505da7f.js +0 -1
  162. package/esm/helper-d52dff3c.js +0 -1
  163. package/esm/icons-3bd3bd8f.js +0 -1
  164. package/esm/index-04f28499.js +0 -1
  165. package/esm/index-2ab55f4b.js +0 -1
  166. package/esm/index-3860a02a.js +0 -1
  167. package/esm/index-5d92eaa3.js +0 -1
  168. package/esm/index-a7fcd7f8.js +0 -1
  169. package/esm/index-aee2840d.js +0 -1
  170. package/esm/index-d42cceca.js +0 -1
  171. package/esm/multicamv2-1297de0f.js +0 -1
  172. package/esm/multicamv2-b2a07ed1.js +0 -1
  173. package/esm/multicamv2-c6e6cb68.js +0 -1
  174. package/esm/multicamv2-d19801a7.js +0 -1
  175. package/esm/nextEpisodeButton-29cc11c2.js +0 -1
  176. package/esm/nextEpisodeButton-b348d4b4.js +0 -1
  177. package/esm/playlist-0c95a577.js +0 -1
  178. package/esm/playlist-2b356158.js +0 -1
  179. package/esm/renditions-4c09c626.js +0 -1
  180. package/esm/resolution-62be852a.js +0 -1
  181. package/esm/resolution-920515d1.js +0 -1
  182. package/esm/resolution-v2-6446fe47.js +0 -1
  183. package/esm/series-090e7c85.js +0 -1
  184. package/esm/series-dee1a2af.js +0 -1
  185. package/esm/series-v2-81f04cd5.js +0 -1
  186. package/esm/series-v2-8a8b6f0c.js +0 -1
  187. package/esm/series-v2-a8491399.js +0 -1
  188. package/esm/series-v2-b13de828.js +0 -1
  189. package/esm/series-v2-f7307228.js +0 -1
  190. package/esm/settings-icon-7d9e5221.js +0 -1
  191. package/esm/settings-icon-a98e5d8b.js +0 -1
  192. package/esm/skin-2f85dae8.js +0 -1
  193. package/esm/skin-58b9263c.js +0 -1
  194. package/esm/skin-5a424471.js +0 -1
  195. package/esm/skin-61229ce9.js +0 -1
  196. package/esm/skin-65765793.js +0 -1
  197. package/esm/skin-6cf385ed.js +0 -1
  198. package/esm/skin-76430de3.js +0 -1
  199. package/esm/skin-8db4ed62.js +0 -1
  200. package/esm/skin-a2b5e469.js +0 -1
  201. package/esm/skin-aeae977d.js +0 -1
  202. package/esm/skin-b3357b0d.js +0 -1
  203. package/esm/skin-bff9e3fe.js +0 -1
  204. package/esm/skin-d555b116.js +0 -1
  205. package/esm/skin-d656e076.js +0 -1
  206. package/esm/skin-d93bcc9b.js +0 -1
  207. package/esm/skin-ddd25096.js +0 -1
  208. package/esm/skin-e4b35c14.js +0 -1
  209. package/esm/skin-f21ef5ec.js +0 -1
  210. package/esm/start-begin-btn-16534825.js +0 -1
  211. package/esm/util-80257541.js +0 -1
  212. package/esm/util-a420b997.js +0 -1
  213. package/esm/videoSelector-0bea276f.js +0 -1
  214. package/esm/videoSelector-1cf43fc8.js +0 -1
  215. package/esm/videoSelector-40c30c18.js +0 -1
  216. package/esm/videoSelector-c94910d2.js +0 -1
  217. package/esm/videojs-dash5.es-1a1bf509.js +0 -1
  218. package/esm/videojs_contrib_dash-f7d94714.js +0 -1
  219. package/esm/watch-live-btn-ddcfab89.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-2609dbe4.js"),l=require("./generic-f04cb45e.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-e42fc428.js"),u=require("./localisation-56e0a999.js");function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-7186e89f.js");var m=r.getComponent("Component"),p=function(){i(y,m);var p,h,b=(p=y,h=v(),function(){var e,t=o(p);if(h){var i=o(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return n(this,e)});function y(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(o=b.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(y,[{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(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(s.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",s.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),s.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var c=r.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),v=r.dom.createEl("div",{className:"video-selector-content"}),m=r.dom.createEl("div",{className:"video-container"}),p=function(e){var i,n,o,a,c,u=r.dom.createEl("div",{className:"video -".concat(e)}),p=r.dom.createEl("div",{className:"recommended -".concat(e)});p.setAttribute("video-idx",e),p.onclick=function(){d.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";s.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 h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),h.alt="No Thumbnail Available",p.append(h);var b=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(c=t.videos[e])||void 0===c?void 0:c.title)||"")});r.dom.appendContent(u,p),r.dom.appendContent(u,b),r.dom.appendContent(m,u),r.dom.appendContent(v,m)},h=0;h<this.videos.length;h++)p(h);r.dom.appendContent(n,o),r.dom.appendContent(n,c),r.dom.appendContent(e,n),r.dom.appendContent(e,v),s.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=p;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-2609dbe4.js"),r=require("./generic-f04cb45e.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-e42fc428.js"),u=require("./localisation-56e0a999.js");function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-7186e89f.js");var v=l.getComponent("Component"),p=function(){n(b,v);var p,h,y=(p=b,h=m(),function(){var e,t=i(p);if(h){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function b(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(i=y.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(b,[{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),r.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 r=l.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),d=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,u,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===(r=a.appcmsMain)||void 0===r||null===(u=r.images)||void 0===u?void 0:u.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(c,p),l.dom.appendContent(d,c)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,d),s.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=p;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-f723dacd.js"),s=require("./skin-3544db58.js"),d=require("./autoNextVideo-7c491841.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-07bd3069.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-ef2cd61e.js");var v=r.getComponent("Component"),m=function(){n(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(t){var n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(n=r.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==r||null===(i=r.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),d.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.js")}).then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var i;null!==(i=n.classList)&&void 0!==i&&i.contains("hidden")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",s.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var i=document.getElementById(this.playerId);if(i){var o=window.getComputedStyle(i,null).getPropertyValue("height");n.style.height="".concat(o),r.dom.appendContent(t,n),i.style.overflow="hidden",this.addFunctionality(n),s.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var d=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,i,o,a,d,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),l.load(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(d=t.videos[e])||void 0===d?void 0:d.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(i,o),r.dom.appendContent(i,d),r.dom.appendContent(e,i),r.dom.appendContent(e,u),s.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-f723dacd.js"),d=require("./skin-3544db58.js"),s=require("./autoNextVideo-7c491841.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-07bd3069.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-ef2cd61e.js");var v=r.getComponent("Component"),m=function(){i(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var i=o(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return n(this,e)});function b(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.PlaylistIcon())});return r.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(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(d.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),d.detectOrientationChange(this.playerId,i)}}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open")};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 i,n,o,a,s,c,m,p,h=r.dom.createEl("div",{className:"video -".concat(e)}),b=r.dom.createEl("div",{className:"recommended -".concat(e)});b.setAttribute("video-idx",e),b.onclick=function(){l.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";d.highlightVideo(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 y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||d.impolicy16x9(null===(o=window)||void 0===o||null===(a=o.app_data)||void 0===a||null===(s=a.appcmsMain)||void 0===s||null===(c=s.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(" "))||""),b.append(y);var f=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(p=t.videos[e])||void 0===p?void 0:p.title)||"")});r.dom.appendContent(h,b),r.dom.appendContent(h,f),r.dom.appendContent(v,h),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(n,s),r.dom.appendContent(n,o),r.dom.appendContent(e,n),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;