@viewlift/player-backup 2.0.269-backup → 2.0.270-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 (197) hide show
  1. package/cjs/{autoNextVideo-a0684b2e.js → autoNextVideo-aab04ca2.js} +1 -1
  2. package/cjs/autoNextVideo-c18c5a9d.js +1 -0
  3. package/cjs/autoNextVideo-d02d40bb.js +1 -0
  4. package/cjs/autoNextVideo-fc3a66ed.js +1 -0
  5. package/cjs/bundle.css +262 -262
  6. package/cjs/{features-5af9462c.js → features-06672d0e.js} +1 -1
  7. package/cjs/features-3cb595a6.js +1 -0
  8. package/cjs/features-7254ff24.js +1 -0
  9. package/cjs/features-e04a1906.js +1 -0
  10. package/cjs/generic-302fcb0f.js +1 -0
  11. package/cjs/{generic-9ede01a7.js → generic-73c41ab8.js} +1 -1
  12. package/cjs/generic-92ede746.js +1 -0
  13. package/cjs/generic-ece54fe4.js +1 -0
  14. package/cjs/{index-daed42a3.js → index-06461546.js} +1 -1
  15. package/cjs/{index-3ab4a71e.js → index-156ebc96.js} +1 -1
  16. package/cjs/index-3ea3d917.js +1 -0
  17. package/cjs/index-5f4c22e0.js +1 -0
  18. package/cjs/index-8fb992e3.js +1 -0
  19. package/cjs/index-a5284d8c.js +1 -0
  20. package/cjs/index-c3c5304e.js +1 -0
  21. package/cjs/index-e1fa72cb.js +1 -0
  22. package/cjs/index.js +1 -1
  23. package/cjs/{multicamv2-7a48b087.js → multicamv2-775af5cd.js} +1 -1
  24. package/cjs/multicamv2-7b610283.js +1 -0
  25. package/cjs/multicamv2-7c115911.js +1 -0
  26. package/cjs/{multicamv2-36e8ec8a.js → multicamv2-84760599.js} +1 -1
  27. package/cjs/multicamv2-a1ad5eb0.js +1 -0
  28. package/cjs/multicamv2-cd64c23d.js +1 -0
  29. package/cjs/multicamv2-d8678089.js +1 -0
  30. package/cjs/multicamv2-dd2b304c.js +1 -0
  31. package/cjs/{nextEpisodeButton-e749739c.js → nextEpisodeButton-55c9ca47.js} +1 -1
  32. package/cjs/nextEpisodeButton-8a285b57.js +1 -0
  33. package/cjs/nextEpisodeButton-943003ed.js +1 -0
  34. package/cjs/nextEpisodeButton-c0bf8d12.js +1 -0
  35. package/cjs/{playlist-d805fa90.js → playlist-0817f929.js} +1 -1
  36. package/cjs/playlist-92c9c514.js +1 -0
  37. package/cjs/playlist-ae50e704.js +1 -0
  38. package/cjs/playlist-b02614d9.js +1 -0
  39. package/cjs/{series-354a0322.js → series-ad8bdcab.js} +1 -1
  40. package/cjs/series-b1d6b31a.js +1 -0
  41. package/cjs/series-c80c4a36.js +1 -0
  42. package/cjs/series-fa79e1a1.js +1 -0
  43. package/cjs/{series-v2-4b0ad742.js → series-v2-49a73d41.js} +1 -1
  44. package/cjs/{series-v2-4c5d40a8.js → series-v2-61a08a5d.js} +1 -1
  45. package/cjs/series-v2-79428f58.js +1 -0
  46. package/cjs/series-v2-979acedf.js +1 -0
  47. package/cjs/series-v2-9f2fa133.js +1 -0
  48. package/cjs/series-v2-b8010f7c.js +1 -0
  49. package/cjs/series-v2-b920c6e8.js +1 -0
  50. package/cjs/series-v2-bef8dcf9.js +1 -0
  51. package/cjs/{skin-2fabea5e.js → skin-053c4b0e.js} +1 -1
  52. package/cjs/{skin-b237d7b1.js → skin-1dbf6726.js} +1 -1
  53. package/cjs/{skin-210f2812.js → skin-1fc9778c.js} +1 -1
  54. package/cjs/{skin-7149e823.js → skin-2b06a950.js} +1 -1
  55. package/cjs/{skin-da2bf9bc.js → skin-35f8cc7b.js} +1 -1
  56. package/cjs/skin-3d0ecf5f.js +1 -0
  57. package/cjs/{skin-baa82c8e.js → skin-43859976.js} +1 -1
  58. package/cjs/skin-4a955d7a.js +1 -0
  59. package/cjs/skin-58e9b426.js +1 -0
  60. package/cjs/skin-5bf91421.js +1 -0
  61. package/cjs/{skin-c661670e.js → skin-5cf349ab.js} +1 -1
  62. package/cjs/skin-65ada70c.js +1 -0
  63. package/cjs/skin-67fa7113.js +1 -0
  64. package/cjs/skin-6dc08f62.js +1 -0
  65. package/cjs/{skin-25675970.js → skin-6e633748.js} +1 -1
  66. package/cjs/skin-70374d63.js +1 -0
  67. package/cjs/skin-72444813.js +1 -0
  68. package/cjs/skin-78182ddc.js +1 -0
  69. package/cjs/skin-85e89904.js +1 -0
  70. package/cjs/skin-88072589.js +1 -0
  71. package/cjs/{skin-c500edc5.js → skin-988acd01.js} +1 -1
  72. package/cjs/skin-9a207c46.js +1 -0
  73. package/cjs/skin-a100c6a0.js +1 -0
  74. package/cjs/skin-a20b263d.js +1 -0
  75. package/cjs/skin-b02f6a39.js +1 -0
  76. package/cjs/skin-c66c28cb.js +1 -0
  77. package/cjs/skin-d4a940d6.js +1 -0
  78. package/cjs/skin-d898389f.js +1 -0
  79. package/cjs/skin-d98e4f7a.js +1 -0
  80. package/cjs/skin-e8806c6e.js +1 -0
  81. package/cjs/skin-e8f2fbd4.js +1 -0
  82. package/cjs/skin-ec03e8e0.js +1 -0
  83. package/cjs/skin-ed5cb06a.js +1 -0
  84. package/cjs/skin-f7dd877b.js +1 -0
  85. package/cjs/skin-fb5aad71.js +1 -0
  86. package/cjs/skin-ff2aa150.js +1 -0
  87. package/cjs/{util-8ad9d630.js → util-0108a17b.js} +1 -1
  88. package/cjs/util-4e928cc2.js +1 -0
  89. package/cjs/util-ac0da02b.js +1 -0
  90. package/cjs/util-fceffc9c.js +1 -0
  91. package/cjs/{videoSelector-68d8d84e.js → videoSelector-161e6e18.js} +1 -1
  92. package/cjs/{videoSelector-57152f21.js → videoSelector-68a44bf2.js} +1 -1
  93. package/cjs/videoSelector-788aefeb.js +1 -0
  94. package/cjs/videoSelector-98767cca.js +1 -0
  95. package/cjs/videoSelector-b2ed6c41.js +1 -0
  96. package/cjs/videoSelector-b960b6cb.js +1 -0
  97. package/cjs/videoSelector-cd0a328a.js +1 -0
  98. package/cjs/videoSelector-e0666d3f.js +1 -0
  99. package/esm/{autoNextVideo-6ab2b97a.js → autoNextVideo-245106dc.js} +1 -1
  100. package/esm/autoNextVideo-4cdb3520.js +1 -0
  101. package/esm/autoNextVideo-7dd4dfc3.js +1 -0
  102. package/esm/autoNextVideo-9cfdd391.js +1 -0
  103. package/esm/bundle.css +262 -262
  104. package/esm/{features-b3526a7a.js → features-3d00bfaf.js} +1 -1
  105. package/esm/features-51f77be4.js +1 -0
  106. package/esm/features-e8652545.js +1 -0
  107. package/esm/features-ee32a6b1.js +1 -0
  108. package/esm/generic-053ecf26.js +1 -0
  109. package/esm/generic-718c2043.js +1 -0
  110. package/esm/{generic-740ffc07.js → generic-f7b6857e.js} +1 -1
  111. package/esm/generic-fa853318.js +1 -0
  112. package/esm/index-1844243e.js +1 -0
  113. package/esm/{index-26dcbfc3.js → index-18e71208.js} +1 -1
  114. package/esm/{index-7fc3bd1b.js → index-1ac2df49.js} +1 -1
  115. package/esm/index-1eb08652.js +1 -0
  116. package/esm/index-37c4969a.js +1 -0
  117. package/esm/index-9367e9fe.js +1 -0
  118. package/esm/index-ac0740b3.js +1 -0
  119. package/esm/index-f529337e.js +1 -0
  120. package/esm/index.js +1 -1
  121. package/esm/{multicamv2-f85dfa0b.js → multicamv2-328e923e.js} +1 -1
  122. package/esm/{multicamv2-dd70a6aa.js → multicamv2-4740ed50.js} +1 -1
  123. package/esm/multicamv2-4db4411c.js +1 -0
  124. package/esm/multicamv2-56795ac0.js +1 -0
  125. package/esm/multicamv2-9088f871.js +1 -0
  126. package/esm/multicamv2-af5aaae2.js +1 -0
  127. package/esm/multicamv2-cb120e9c.js +1 -0
  128. package/esm/multicamv2-d2e17a37.js +1 -0
  129. package/esm/{nextEpisodeButton-4ceda14d.js → nextEpisodeButton-02ec2fbd.js} +1 -1
  130. package/esm/nextEpisodeButton-07b2ad4f.js +1 -0
  131. package/esm/nextEpisodeButton-2169fc07.js +1 -0
  132. package/esm/nextEpisodeButton-980827db.js +1 -0
  133. package/esm/{playlist-b267f666.js → playlist-0ee754f2.js} +1 -1
  134. package/esm/playlist-35e41884.js +1 -0
  135. package/esm/playlist-5e7c09c3.js +1 -0
  136. package/esm/playlist-9803964f.js +1 -0
  137. package/esm/{series-8fd3310e.js → series-1ac34519.js} +1 -1
  138. package/esm/series-8ee62012.js +1 -0
  139. package/esm/series-a4bbc31c.js +1 -0
  140. package/esm/series-d272f64a.js +1 -0
  141. package/esm/{series-v2-ac589b22.js → series-v2-177d5849.js} +1 -1
  142. package/esm/series-v2-1acb7131.js +1 -0
  143. package/esm/{series-v2-752ab4ec.js → series-v2-2598cf78.js} +1 -1
  144. package/esm/series-v2-3299026d.js +1 -0
  145. package/esm/series-v2-4118214b.js +1 -0
  146. package/esm/series-v2-49a0edc1.js +1 -0
  147. package/esm/series-v2-7cc868a6.js +1 -0
  148. package/esm/series-v2-db4ffd44.js +1 -0
  149. package/esm/{skin-bd79d907.js → skin-0028b4f9.js} +1 -1
  150. package/esm/skin-0cd2c5af.js +1 -0
  151. package/esm/{skin-a08c5bc3.js → skin-101047cd.js} +1 -1
  152. package/esm/{skin-c998863a.js → skin-1919cffd.js} +1 -1
  153. package/esm/{skin-2e4d0ad8.js → skin-2b945cd5.js} +1 -1
  154. package/esm/{skin-6a775f92.js → skin-31a5bbbf.js} +1 -1
  155. package/esm/{skin-cf049658.js → skin-376f7235.js} +1 -1
  156. package/esm/skin-3f6533f9.js +1 -0
  157. package/esm/{skin-a625396e.js → skin-406a83e0.js} +1 -1
  158. package/esm/{skin-8a65a5d9.js → skin-5d70dccd.js} +1 -1
  159. package/esm/skin-664339e7.js +1 -0
  160. package/esm/skin-66d8c4ba.js +1 -0
  161. package/esm/skin-678faffc.js +1 -0
  162. package/esm/skin-6df698eb.js +1 -0
  163. package/esm/{skin-765a4c47.js → skin-7d31f534.js} +1 -1
  164. package/esm/skin-81d9aa36.js +1 -0
  165. package/esm/skin-89fcf481.js +1 -0
  166. package/esm/skin-96861a7b.js +1 -0
  167. package/esm/skin-97da3473.js +1 -0
  168. package/esm/skin-a8094978.js +1 -0
  169. package/esm/skin-b605bb54.js +1 -0
  170. package/esm/skin-be8f7529.js +1 -0
  171. package/esm/skin-c034f74d.js +1 -0
  172. package/esm/skin-ce94c821.js +1 -0
  173. package/esm/skin-cf0ff17f.js +1 -0
  174. package/esm/skin-d06474ec.js +1 -0
  175. package/esm/skin-d55ddaba.js +1 -0
  176. package/esm/skin-dc6a0bb2.js +1 -0
  177. package/esm/skin-e29aa22f.js +1 -0
  178. package/esm/skin-e59d91cf.js +1 -0
  179. package/esm/skin-e63be5f3.js +1 -0
  180. package/esm/skin-e9f5f527.js +1 -0
  181. package/esm/skin-edf70506.js +1 -0
  182. package/esm/skin-fa6fe4b3.js +1 -0
  183. package/esm/skin-fdab5e91.js +1 -0
  184. package/esm/skin-fe802a00.js +1 -0
  185. package/esm/{util-e0435c60.js → util-468a93fd.js} +1 -1
  186. package/esm/util-9d3b1d34.js +1 -0
  187. package/esm/util-eb5f314c.js +1 -0
  188. package/esm/util-fac978d2.js +1 -0
  189. package/esm/{videoSelector-f86775c4.js → videoSelector-1b345e70.js} +1 -1
  190. package/esm/videoSelector-3e58e8ce.js +1 -0
  191. package/esm/videoSelector-5fa20b2e.js +1 -0
  192. package/esm/{videoSelector-fd411c45.js → videoSelector-842af462.js} +1 -1
  193. package/esm/videoSelector-b9a2cbe5.js +1 -0
  194. package/esm/videoSelector-bf4a9044.js +1 -0
  195. package/esm/videoSelector-cbb097f3.js +1 -0
  196. package/esm/videoSelector-eda5c3b6.js +1 -0
  197. package/package.json +2 -2
@@ -0,0 +1 @@
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-eb807ef0.js"),l=require("./generic-92ede746.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-fc3a66ed.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("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-fceffc9c.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.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")?(d.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",d.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),d.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 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=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 i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].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===(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)),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(n,o),r.dom.appendContent(n,s),r.dom.appendContent(e,n),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-eb807ef0.js"),r=require("./generic-92ede746.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-fc3a66ed.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("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-fceffc9c.js");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.js")}).then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),d.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),d.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";d.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:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,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(d.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(c=r.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),d.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),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-eb807ef0.js"),l=require("./generic-73c41ab8.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-d02d40bb.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("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-ac0da02b.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.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")?(d.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",d.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),d.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 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=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 i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].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===(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)),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(n,o),r.dom.appendContent(n,s),r.dom.appendContent(e,n),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
@@ -1 +1 @@
1
- import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-740ffc07.js";import{a}from"./util-e0435c60.js";import{g as c,h as s}from"./skin-4f84b841.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var v=l.playerId;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(f+1),n(v,d[f].id).then(function(n){s(f,v),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,v),f++,r=setTimeout(function(){i(v)&&m(f,v,d)},5e3)})))})},m=function t(i,o,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
1
+ import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-053ecf26.js";import{a}from"./util-9d3b1d34.js";import{g as c,h as s}from"./skin-4f84b841.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var v=l.playerId;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(f+1),n(v,d[f].id).then(function(n){s(f,v),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,v),f++,r=setTimeout(function(){i(v)&&m(f,v,d)},5e3)})))})},m=function t(i,o,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
@@ -0,0 +1 @@
1
+ import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-fa853318.js";import{a}from"./util-fac978d2.js";import{g as c,h as s}from"./skin-4f84b841.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var v=l.playerId;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(f+1),n(v,d[f].id).then(function(n){s(f,v),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,v),f++,r=setTimeout(function(){i(v)&&m(f,v,d)},5e3)})))})},m=function t(i,o,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
@@ -0,0 +1 @@
1
+ import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-f7b6857e.js";import{a}from"./util-eb5f314c.js";import{g as c,h as s}from"./skin-4f84b841.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var v=l.playerId;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(f+1),n(v,d[f].id).then(function(n){s(f,v),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,v),f++,r=setTimeout(function(){i(v)&&m(f,v,d)},5e3)})))})},m=function t(i,o,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
@@ -0,0 +1 @@
1
+ import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-718c2043.js";import{a}from"./util-468a93fd.js";import{g as c,h as s}from"./skin-4f84b841.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var v=l.playerId;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(f+1),n(v,d[f].id).then(function(n){s(f,v),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,v),f++,r=setTimeout(function(){i(v)&&m(f,v,d)},5e3)})))})},m=function t(i,o,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};