@viewlift/player-backup 2.0.70-backup → 2.0.70-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 (252) hide show
  1. package/cjs/autoNextVideo-1f49211b.js +1 -0
  2. package/cjs/autoNextVideo-42ae9f83.js +1 -0
  3. package/cjs/autoNextVideo-54a8a49e.js +1 -0
  4. package/cjs/browser-38ff3331.js +1 -0
  5. package/cjs/browser-b4213cb7.js +1 -0
  6. package/cjs/bundle.css +1591 -47
  7. package/cjs/caption-settings-4edadfe5.js +1 -0
  8. package/cjs/caption-settings-5944a544.js +1 -0
  9. package/cjs/captions-393835e9.js +1 -0
  10. package/cjs/{captions-07bd3069.js → captions-3c7ca3a7.js} +1 -1
  11. package/cjs/features-3071a8b4.js +1 -0
  12. package/cjs/features-8ccce5cb.js +1 -0
  13. package/cjs/features-e8393717.js +1 -0
  14. package/cjs/generic-25679e19.js +1 -0
  15. package/cjs/generic-c3ef1a4c.js +1 -0
  16. package/cjs/generic-cf4b06d0.js +1 -0
  17. package/cjs/icons-0ea2e662.js +1 -0
  18. package/cjs/icons-bacdb330.js +1 -0
  19. package/cjs/index-1cd04c8b.js +1 -0
  20. package/cjs/index-27816143.js +1 -0
  21. package/cjs/index-3f0492aa.js +1 -0
  22. package/cjs/index-4282d6c8.js +1 -0
  23. package/cjs/{index-84cce26a.js → index-8606834d.js} +1 -1
  24. package/cjs/index-87f65418.js +1 -0
  25. package/cjs/index-a1dba6e8.js +1 -0
  26. package/cjs/index-bf6dde3f.js +1 -0
  27. package/cjs/index-e5afb8a7.js +1 -0
  28. package/cjs/index-ee4e22d6.js +1 -0
  29. package/cjs/index.js +1 -1
  30. package/cjs/multicamv2-59658c00.js +1 -0
  31. package/cjs/multicamv2-733a4c98.js +1 -0
  32. package/cjs/multicamv2-84aa0456.js +1 -0
  33. package/cjs/multicamv2-dfe24339.js +1 -0
  34. package/cjs/multicamv2-fb56bab1.js +1 -0
  35. package/cjs/multicamv2-fe442c50.js +1 -0
  36. package/cjs/nextEpisodeButton-89b2f43c.js +1 -0
  37. package/cjs/nextEpisodeButton-a2bd48c7.js +1 -0
  38. package/cjs/nextEpisodeButton-db512765.js +1 -0
  39. package/cjs/playlist-dc7fd81d.js +1 -0
  40. package/cjs/playlist-f54e53e1.js +1 -0
  41. package/cjs/playlist-ffa59fac.js +1 -0
  42. package/cjs/renditions-17c543e3.js +1 -0
  43. package/cjs/renditions-26c6d0df.js +1 -0
  44. package/cjs/resolution-4ccb28ba.js +1 -0
  45. package/cjs/resolution-5a0df2be.js +1 -0
  46. package/cjs/resolution-7e0a2fe4.js +1 -0
  47. package/cjs/series-50af9773.js +1 -0
  48. package/cjs/series-547835df.js +1 -0
  49. package/cjs/series-8301d2ed.js +1 -0
  50. package/cjs/series-v2-07ce65b0.js +1 -0
  51. package/cjs/series-v2-214a3bb6.js +1 -0
  52. package/cjs/series-v2-26fac2cb.js +1 -0
  53. package/cjs/series-v2-8880bf8e.js +1 -0
  54. package/cjs/series-v2-8a3e111b.js +1 -0
  55. package/cjs/series-v2-ba70e761.js +1 -0
  56. package/cjs/settings-icon-0cbc8b5f.js +1 -0
  57. package/cjs/settings-icon-12add1fe.js +1 -0
  58. package/cjs/settings-icon-bd2311fe.js +1 -0
  59. package/cjs/skin-079b0930.js +1 -0
  60. package/cjs/skin-08116b1b.js +1 -0
  61. package/cjs/skin-0f88b8d8.js +1 -0
  62. package/cjs/skin-23eda0a7.js +1 -0
  63. package/cjs/skin-3338cc6f.js +1 -0
  64. package/cjs/skin-3397dca5.js +1 -0
  65. package/cjs/skin-36af123e.js +1 -0
  66. package/cjs/skin-3a34b971.js +1 -0
  67. package/cjs/skin-3bdd38e0.js +1 -0
  68. package/cjs/skin-3cc15dc2.js +1 -0
  69. package/cjs/skin-43ce1430.js +1 -0
  70. package/cjs/skin-448d38a6.js +1 -0
  71. package/cjs/skin-4a202e70.js +1 -0
  72. package/cjs/skin-6c7101cc.js +1 -0
  73. package/cjs/skin-725fbda6.js +1 -0
  74. package/cjs/skin-79349e81.js +1 -0
  75. package/cjs/skin-7b9006f8.js +1 -0
  76. package/cjs/skin-88b9e5b1.js +1 -0
  77. package/cjs/skin-9319e6f5.js +1 -0
  78. package/cjs/skin-9be8e345.js +1 -0
  79. package/cjs/skin-b3999029.js +1 -0
  80. package/cjs/skin-c165b563.js +1 -0
  81. package/cjs/skin-d74e2aae.js +1 -0
  82. package/cjs/skin-d7cd2ac9.js +1 -0
  83. package/cjs/skin-deb410a6.js +1 -0
  84. package/cjs/skin-eabf5eb1.js +1 -0
  85. package/cjs/skin-ec6f8863.js +1 -0
  86. package/cjs/skin-f0dbcafa.js +1 -0
  87. package/cjs/skin-fc778d21.js +1 -0
  88. package/cjs/util-2487e498.js +1 -0
  89. package/cjs/util-c1962d91.js +1 -0
  90. package/cjs/videoSelector-5e0393ec.js +1 -0
  91. package/cjs/videoSelector-913574c8.js +1 -0
  92. package/cjs/videoSelector-c371fba4.js +1 -0
  93. package/cjs/videoSelector-c9e30433.js +1 -0
  94. package/cjs/videoSelector-d37a3677.js +1 -0
  95. package/cjs/videoSelector-ff9f89e0.js +1 -0
  96. package/cjs/videojs-dash5.es-0d7dcdf9.js +1 -0
  97. package/cjs/videojs-dash5.es-3cd3423d.js +1 -0
  98. package/esm/autoNextVideo-2dae5124.js +1 -0
  99. package/esm/autoNextVideo-767734a4.js +1 -0
  100. package/esm/autoNextVideo-793707f8.js +1 -0
  101. package/esm/browser-512cd55a.js +1 -0
  102. package/esm/browser-8414342e.js +1 -0
  103. package/esm/bundle.css +1591 -47
  104. package/esm/caption-settings-adcfbf9d.js +1 -0
  105. package/esm/caption-settings-b7ccde0e.js +1 -0
  106. package/esm/captions-5dc8f704.js +1 -0
  107. package/esm/{captions-b7fd8308.js → captions-7996e045.js} +1 -1
  108. package/esm/features-40341935.js +1 -0
  109. package/esm/features-9d5fdf7e.js +1 -0
  110. package/esm/features-e7e14dda.js +1 -0
  111. package/esm/generic-258d34e7.js +1 -0
  112. package/esm/generic-3f37be1e.js +1 -0
  113. package/esm/generic-66d1506b.js +1 -0
  114. package/esm/{icons-8e47e640.js → icons-79ad4d7d.js} +1 -1
  115. package/esm/icons-b212fe63.js +1 -0
  116. package/esm/index-144e82ca.js +1 -0
  117. package/esm/index-2257f4dd.js +1 -0
  118. package/esm/index-236cca97.js +1 -0
  119. package/esm/index-527907c0.js +1 -0
  120. package/esm/index-5c199c09.js +1 -0
  121. package/esm/index-5d9f05d1.js +1 -0
  122. package/esm/index-5e046049.js +1 -0
  123. package/esm/index-6d0a87a6.js +1 -0
  124. package/esm/index-90e9dd42.js +1 -0
  125. package/esm/index-c4b6db11.js +1 -0
  126. package/esm/index.js +1 -1
  127. package/esm/multicamv2-0545a0ae.js +1 -0
  128. package/esm/multicamv2-14c2a659.js +1 -0
  129. package/esm/multicamv2-163da219.js +1 -0
  130. package/esm/multicamv2-5cab9f8e.js +1 -0
  131. package/esm/multicamv2-b101ecd9.js +1 -0
  132. package/esm/multicamv2-fe3eda2b.js +1 -0
  133. package/esm/nextEpisodeButton-7e942772.js +1 -0
  134. package/esm/nextEpisodeButton-f3651707.js +1 -0
  135. package/esm/nextEpisodeButton-fcfc868e.js +1 -0
  136. package/esm/playlist-4f7cdb85.js +1 -0
  137. package/esm/playlist-bc200231.js +1 -0
  138. package/esm/playlist-ec59d28b.js +1 -0
  139. package/esm/{renditions-4c09c626.js → renditions-65794079.js} +1 -1
  140. package/esm/renditions-92e03207.js +1 -0
  141. package/esm/resolution-84571e3a.js +1 -0
  142. package/esm/resolution-ed00f17a.js +1 -0
  143. package/esm/resolution-ff76ef38.js +1 -0
  144. package/esm/series-39ee26d4.js +1 -0
  145. package/esm/series-82341be5.js +1 -0
  146. package/esm/series-dc5effb9.js +1 -0
  147. package/esm/series-v2-52ff0962.js +1 -0
  148. package/esm/series-v2-6beb4cc3.js +1 -0
  149. package/esm/series-v2-6d3351ff.js +1 -0
  150. package/esm/series-v2-76fe35d9.js +1 -0
  151. package/esm/series-v2-c7ca8aea.js +1 -0
  152. package/esm/series-v2-cfb1e0d9.js +1 -0
  153. package/esm/settings-icon-732bddc8.js +1 -0
  154. package/esm/settings-icon-c670ad25.js +1 -0
  155. package/esm/settings-icon-d88c6a52.js +1 -0
  156. package/esm/skin-02f0805d.js +1 -0
  157. package/esm/skin-049e3470.js +1 -0
  158. package/esm/skin-078dbbbb.js +1 -0
  159. package/esm/skin-08b2a668.js +1 -0
  160. package/esm/skin-0c6cc433.js +1 -0
  161. package/esm/skin-138992dc.js +1 -0
  162. package/esm/skin-1ef7495f.js +1 -0
  163. package/esm/skin-1f7cd934.js +1 -0
  164. package/esm/skin-2480763f.js +1 -0
  165. package/esm/skin-3ee29e32.js +1 -0
  166. package/esm/skin-3f27ce1e.js +1 -0
  167. package/esm/skin-45eb5003.js +1 -0
  168. package/esm/skin-4b55cb89.js +1 -0
  169. package/esm/skin-57c031df.js +1 -0
  170. package/esm/skin-5a4f7dff.js +1 -0
  171. package/esm/skin-5c99fa22.js +1 -0
  172. package/esm/skin-7dc9c5f5.js +1 -0
  173. package/esm/skin-8615e53a.js +1 -0
  174. package/esm/skin-8668c482.js +1 -0
  175. package/esm/skin-8a617b92.js +1 -0
  176. package/esm/skin-8e2c5488.js +1 -0
  177. package/esm/skin-a32bda6d.js +1 -0
  178. package/esm/skin-ad92ef73.js +1 -0
  179. package/esm/skin-b56ca7dd.js +1 -0
  180. package/esm/skin-bd68eaf1.js +1 -0
  181. package/esm/skin-d8724e3c.js +1 -0
  182. package/esm/skin-dfd47b2e.js +1 -0
  183. package/esm/skin-e0c2f0ff.js +1 -0
  184. package/esm/skin-e286536e.js +1 -0
  185. package/esm/util-389babb5.js +1 -0
  186. package/esm/util-c4f931f0.js +1 -0
  187. package/esm/videoSelector-05c05c24.js +1 -0
  188. package/esm/videoSelector-668073dc.js +1 -0
  189. package/esm/videoSelector-7836dcb6.js +1 -0
  190. package/esm/videoSelector-9fbd4736.js +1 -0
  191. package/esm/videoSelector-db7d4cb6.js +1 -0
  192. package/esm/videoSelector-e3a73107.js +1 -0
  193. package/esm/videojs-dash5.es-17cb6067.js +1 -0
  194. package/esm/videojs-dash5.es-792e6bc2.js +1 -0
  195. package/package.json +6 -3
  196. package/cjs/autoNextVideo-116ab67f.js +0 -1
  197. package/cjs/browser-77c57718.js +0 -1
  198. package/cjs/caption-settings-be714e97.js +0 -1
  199. package/cjs/features-045305a6.js +0 -1
  200. package/cjs/generic-5d13985a.js +0 -1
  201. package/cjs/icons-1a3febef.js +0 -1
  202. package/cjs/index-27c35ba0.js +0 -1
  203. package/cjs/index-c55540f8.js +0 -1
  204. package/cjs/multicamv2-36e0036b.js +0 -1
  205. package/cjs/multicamv2-8fed590e.js +0 -1
  206. package/cjs/nextEpisodeButton-cb8fd535.js +0 -1
  207. package/cjs/playlist-938117f4.js +0 -1
  208. package/cjs/renditions-fed22c12.js +0 -1
  209. package/cjs/resolution-e46c9615.js +0 -1
  210. package/cjs/series-b7c2af54.js +0 -1
  211. package/cjs/series-v2-3730d400.js +0 -1
  212. package/cjs/series-v2-9109f774.js +0 -1
  213. package/cjs/settings-icon-70f8857a.js +0 -1
  214. package/cjs/skin-265b807c.js +0 -1
  215. package/cjs/skin-3544db58.js +0 -1
  216. package/cjs/skin-9781656f.js +0 -1
  217. package/cjs/skin-ab7231d1.js +0 -1
  218. package/cjs/skin-e8295232.js +0 -1
  219. package/cjs/skin-eb6cbd42.js +0 -1
  220. package/cjs/skin-ece5c8e4.js +0 -1
  221. package/cjs/util-ef2cd61e.js +0 -1
  222. package/cjs/videoSelector-75b45ff6.js +0 -1
  223. package/cjs/videoSelector-84d35d1b.js +0 -1
  224. package/cjs/videojs_contrib_dash-018c8bde.js +0 -1
  225. package/esm/autoNextVideo-8a56130e.js +0 -1
  226. package/esm/browser-d4613b36.js +0 -1
  227. package/esm/caption-settings-4ab479b0.js +0 -1
  228. package/esm/features-68b5db3d.js +0 -1
  229. package/esm/generic-7206a937.js +0 -1
  230. package/esm/index-5d92eaa3.js +0 -1
  231. package/esm/index-bdc2ba85.js +0 -1
  232. package/esm/index-e01aa76c.js +0 -1
  233. package/esm/multicamv2-480d2121.js +0 -1
  234. package/esm/multicamv2-d897a809.js +0 -1
  235. package/esm/nextEpisodeButton-d0139827.js +0 -1
  236. package/esm/playlist-6dd08b34.js +0 -1
  237. package/esm/resolution-920515d1.js +0 -1
  238. package/esm/series-0c1abfff.js +0 -1
  239. package/esm/series-v2-bdb72a88.js +0 -1
  240. package/esm/series-v2-c4017f00.js +0 -1
  241. package/esm/settings-icon-366126fa.js +0 -1
  242. package/esm/skin-185a13cd.js +0 -1
  243. package/esm/skin-4272de79.js +0 -1
  244. package/esm/skin-58b9263c.js +0 -1
  245. package/esm/skin-5af975a5.js +0 -1
  246. package/esm/skin-67f989e1.js +0 -1
  247. package/esm/skin-d67c19a0.js +0 -1
  248. package/esm/skin-f613a5cf.js +0 -1
  249. package/esm/util-80257541.js +0 -1
  250. package/esm/videoSelector-25152c41.js +0 -1
  251. package/esm/videoSelector-26c81da3.js +0 -1
  252. package/esm/videojs_contrib_dash-f7d94714.js +0 -1
@@ -0,0 +1 @@
1
+ import{g as e}from"./skin-8e2c5488.js";import{f as r,n as t}from"./features-40341935.js";import{g as o}from"./renditions-65794079.js";import{r as i}from"./captions-7996e045.js";import"video.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"./generic-3f37be1e.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";function s(s,n){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e(t).on("loadeddata",function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&i(t)})}(s,n),function(r){var o=e(r);o.controls(!1),t(r)}(s)}export{s as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{F as e,G as t}from"./generic-3f37be1e.js";import{g as o}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";function r(r){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),n(),function(r){var n=document.getElementById("".concat(r)),i=o(r);n&&n.addEventListener("touchstart",function(){i.paused()?e(r):t(r)})}(r)}var n=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{r as initaliseSkin};
@@ -0,0 +1 @@
1
+ import{g as n}from"./skin-8e2c5488.js";var t=function(t,a,r){var i=n(t);i?a>=0&&a<=i.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),i.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(t,"'"))},a=function(t,a){var r=n(t);if(!r)return"Cannot find player with id: '".concat(t,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(n){return"Error: ".concat(n)}},r=function(t,a){var r=n(t);r?r.on("timeupdate",function(){return a(r.currentTime())}):a("Cannot find player with id: '".concat(t,"'"))},i=function(t,a){var r=n(t);r?r.on("ended",function(){return a(!0)}):a("Cannot find player with id: '".concat(t,"'"))},e=function(t){var a=n(t);return a?a.duration():"Cannot find player with id: '".concat(t,"'")},o=function(t){var a=n(t);return a?a.currentTime():"Cannot find player with id: '".concat(t,"'")};export{o as a,i as b,a as c,e as g,r as o,t as s};
@@ -0,0 +1 @@
1
+ import{g as n}from"./skin-1f7cd934.js";var t=function(t,a,r){var i=n(t);i?a>=0&&a<=i.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),i.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(t,"'"))},a=function(t,a){var r=n(t);if(!r)return"Cannot find player with id: '".concat(t,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(n){return"Error: ".concat(n)}},r=function(t,a){var r=n(t);r?r.on("timeupdate",function(){return a(r.currentTime())}):a("Cannot find player with id: '".concat(t,"'"))},i=function(t,a){var r=n(t);r?r.on("ended",function(){return a(!0)}):a("Cannot find player with id: '".concat(t,"'"))},e=function(t){var a=n(t);return a?a.duration():"Cannot find player with id: '".concat(t,"'")},o=function(t){var a=n(t);return a?a.currentTime():"Cannot find player with id: '".concat(t,"'")};export{o as a,i as b,a as c,e as g,r as o,t as s};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/inherits";import i from"video.js";import{e as l,f as d}from"./icons-79ad4d7d.js";import{J as s,T as c}from"./generic-258d34e7.js";import{e as r,s as m,f as u,h as v,j as p,i as h}from"./skin-8e2c5488.js";import{a as y}from"./autoNextVideo-793707f8.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=i.getComponent("Component"),g=function(){function g(t){var a,i,l,d,s,r,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),d=this,r=[t,m],s=n(s=g),(l=o(d,f()?Reflect.construct(s,r||[],n(d).constructor):s.apply(d,r))).playerId=m.playerId,l.seriesData=m.sres,l.videos=m.related.content,l.cb=(null==m||null===(a=m.related)||void 0===a?void 0:a.cb)||null,l.autoNext=(null==m||null===(i=m.related)||void 0===i?void 0:i.autoNext)||!1,l.currentVideoData=m.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(c(0),y({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return a(g,C),t(g,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.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(),o=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(r(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var a=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(a),i.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;c(e+1);for(var o=i.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(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,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),a=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(d())});a.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},a.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=i.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),s=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=i.dom.createEl("div",{className:"video-container video-accessibility"}),r=function(e){var o,n,a,l,d,r,m,u,v=i.dom.createEl("div",{className:"video -".concat(e)}),p=i.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(a=window)||void 0===a||null===(l=a.app_data)||void 0===l||null===(d=l.appcmsMain)||void 0===d||null===(r=d.images)||void 0===r?void 0:r.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(" "))||""),p.append(y);var b=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});i.dom.appendContent(v,p),i.dom.appendContent(v,b),i.dom.appendContent(c,v),i.dom.appendContent(s,c)},m=0;m<this.videos.length;m++)r(m);i.dom.appendContent(n,l),i.dom.appendContent(n,a),i.dom.appendContent(e,n),i.dom.appendContent(e,s),p(this.playerId,e)}}])}();export{g as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import a from"video.js";import{E as l,f as r}from"./icons-79ad4d7d.js";import{J as s,T as d}from"./generic-3f37be1e.js";import{e as c,s as m,f as p,j as u,k as v}from"./skin-8e2c5488.js";import{a as h}from"./autoNextVideo-767734a4.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){function g(t){var i,a,l,r,s,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),r=this,c=[t,m],s=n(s=g),(l=o(r,b()?Reflect.construct(s,c||[],n(r).constructor):s.apply(r,c))).playerId=m.playerId,l.seriesData=m.sres,l.videos=m.related.content,l.cb=(null==m||null===(i=m.related)||void 0===i?void 0:i.cb)||null,l.autoNext=(null==m||null===(a=m.related)||void 0===a?void 0:a.autoNext)||!1,l.currentVideoData=m.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(d(0),h({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return i(g,y),t(g,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(l())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.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(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(r())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,l,r,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(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===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(r=t.videos[e])||void 0===r?void 0:r.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,l),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}])}();export{g as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/inherits";import i from"video.js";import{e as l,f as d}from"./icons-79ad4d7d.js";import{J as s,T as c}from"./generic-3f37be1e.js";import{e as r,s as m,f as u,h as v,j as p,i as h}from"./skin-8e2c5488.js";import{a as y}from"./autoNextVideo-767734a4.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=i.getComponent("Component"),g=function(){function g(t){var a,i,l,d,s,r,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),d=this,r=[t,m],s=n(s=g),(l=o(d,f()?Reflect.construct(s,r||[],n(d).constructor):s.apply(d,r))).playerId=m.playerId,l.seriesData=m.sres,l.videos=m.related.content,l.cb=(null==m||null===(a=m.related)||void 0===a?void 0:a.cb)||null,l.autoNext=(null==m||null===(i=m.related)||void 0===i?void 0:i.autoNext)||!1,l.currentVideoData=m.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(c(0),y({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return a(g,C),t(g,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.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(),o=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(r(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var a=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(a),i.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;c(e+1);for(var o=i.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(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,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),a=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(d())});a.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},a.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=i.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),s=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=i.dom.createEl("div",{className:"video-container video-accessibility"}),r=function(e){var o,n,a,l,d,r,m,u,v=i.dom.createEl("div",{className:"video -".concat(e)}),p=i.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(a=window)||void 0===a||null===(l=a.app_data)||void 0===l||null===(d=l.appcmsMain)||void 0===d||null===(r=d.images)||void 0===r?void 0:r.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(" "))||""),p.append(y);var b=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});i.dom.appendContent(v,p),i.dom.appendContent(v,b),i.dom.appendContent(c,v),i.dom.appendContent(s,c)},m=0;m<this.videos.length;m++)r(m);i.dom.appendContent(n,l),i.dom.appendContent(n,a),i.dom.appendContent(e,n),i.dom.appendContent(e,s),p(this.playerId,e)}}])}();export{g as default};
@@ -0,0 +1 @@
1
+ import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.trim.js";import i from"video.js";import{e as a,f as d}from"./icons-b212fe63.js";import{J as n,T as l}from"./generic-66d1506b.js";import{e as c,s as m,f as p,h as u,j,i as y}from"./skin-1f7cd934.js";import{a as v}from"./autoNextVideo-2dae5124.js";import{g as f}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.concat.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-c4f931f0.js";function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var b=i.getComponent("Component"),g=function(){function g(o){var r,i,a,d,n,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),d=this,c=[o,m],n=t(n=g),(a=s(d,h()?Reflect.construct(n,c||[],t(d).constructor):n.apply(d,c))).playerId=m.playerId,a.seriesData=m.sres,a.videos=m.related.content,a.cb=(null==m||null===(r=m.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==m||null===(i=m.related)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=m.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(l(0),v({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(g,b),o(g,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a())});return i.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)})}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),s=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var t;e.handleTabIndexSelector(),null!==(t=s.classList)&&void 0!==t&&t.contains("hidden")?(c(),s.classList.remove("hidden"),o.classList.add("open"),m(e.playerId,s)):(s.classList.add("hidden"),o.classList.remove("open"))};var t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height");s.style.height="".concat(r),i.dom.appendContent(o,s),t.style.overflow="hidden",this.addFunctionality(s),p(this.playerId,s)}}},{key:"loadVideoAssetById",value:function(e){var o=this;l(e+1);for(var s=i.dom.$$(".recommended"),t=0;t<s.length;t++)s[t].style.border="none";u(e),n(this.playerId,this.videos[e].id).then(function(e){o.cb&&o.cb(e)}).catch(function(e){o.cb&&o.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,o,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 t=document.getElementsByClassName("video-accessibility"),r=(null==t||null===(o=t[0])||void 0===o||null===(s=o.children)||void 0===s?void 0:s.length)||0,i=0;i<r;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,o,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 t=document.getElementsByClassName("video-accessibility"),r=(null==t||null===(o=t[0])||void 0===o||null===(s=o.children)||void 0===s?void 0:s.length)||0,i=0;i<r;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var o=this,s=this.el(),t=i.dom.createEl("div",{className:"video-selector-head"}),r=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(d())});r.onkeydown=function(t){"Enter"===t.key&&(e.classList.add("hidden"),s.classList.remove("open"),o.handleCloseTabIndex())},r.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),o.handleCloseTabIndex()};for(var a=i.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),n=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),l=i.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var s,t,r,a,d,c,m,p,u=i.dom.createEl("div",{className:"video -".concat(e)}),j=i.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(o.videos[e].title),type:"button",tabIndex:-1});j.setAttribute("video-idx",e),j.onkeydown=function(s){"Enter"===s.key&&o.loadVideoAssetById(e)},j.onclick=function(){o.loadVideoAssetById(e)};var v=document.createElement("img");v.className="related-thumbnail-image",v.src="".concat(y(null==o||null===(s=o.videos)||void 0===s||null===(t=s[e])||void 0===t?void 0:t.img)||y(null===(r=window)||void 0===r||null===(a=r.app_data)||void 0===a||null===(d=a.appcmsMain)||void 0===d||null===(c=d.images)||void 0===c?void 0:c.placeholderCover)),v.alt="".concat((null==o||null===(m=o.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),j.append(v);var f=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(p=o.videos[e])||void 0===p?void 0:p.title)||"")});i.dom.appendContent(u,j),i.dom.appendContent(u,f),i.dom.appendContent(l,u),i.dom.appendContent(n,l)},m=0;m<this.videos.length;m++)c(m);i.dom.appendContent(t,a),i.dom.appendContent(t,r),i.dom.appendContent(e,t),i.dom.appendContent(e,n),j(this.playerId,e)}}])}();export{g as default};
@@ -0,0 +1 @@
1
+ import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import r from"@babel/runtime/helpers/getPrototypeOf";import t from"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import i from"video.js";import{E as a,f as d}from"./icons-b212fe63.js";import{J as l,T as n}from"./generic-66d1506b.js";import{e as c,s as m,f as p,j as u,k as j}from"./skin-1f7cd934.js";import{a as y}from"./autoNextVideo-2dae5124.js";import{g as v}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.concat.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-c4f931f0.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=i.getComponent("Component"),b=function(){function b(o){var t,i,a,d,l,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),d=this,c=[o,m],l=r(l=b),(a=s(d,f()?Reflect.construct(l,c||[],r(d).constructor):l.apply(d,c))).playerId=m.playerId,a.seriesData=m.sres,a.videos=m.related.content,a.cb=(null==m||null===(t=m.related)||void 0===t?void 0:t.cb)||null,a.autoNext=(null==m||null===(i=m.related)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=m.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(n(0),y({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(b,h),o(b,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a())});return i.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)})}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),s=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var r;null!==(r=s.classList)&&void 0!==r&&r.contains("hidden")?(c(),s.classList.remove("hidden"),o.classList.add("open"),s.style.right="0px",m(e.playerId,s)):(s.classList.add("hidden"),o.classList.remove("open"),s.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var t=window.getComputedStyle(r,null).getPropertyValue("height");s.style.height="".concat(t),i.dom.appendContent(o,s),r.style.overflow="hidden",this.addFunctionality(s),p(this.playerId,s)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var o=this,s=this.el(),r=i.dom.createEl("div",{className:"video-selector-head"}),t=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(d())});t.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var a=i.dom.createEl("div",{className:"video-selector-title",innerHTML:v("relatedVideoTitle")||"Recommended"}),c=i.dom.createEl("div",{className:"video-selector-content"}),m=i.dom.createEl("div",{className:"video-container"}),p=function(e){var s,r,t,a,d,p=i.dom.createEl("div",{className:"video -".concat(e)}),u=i.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){n(e+1);for(var s=i.dom.$$(".recommended"),r=0;r<s.length;r++)s[r].style.border="none";j(e),l(o.playerId,o.videos[e].id).then(function(e){o.cb&&o.cb(e)}).catch(function(e){o.cb&&o.cb(e)})};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat((null==o||null===(s=o.videos)||void 0===s||null===(r=s[e])||void 0===r?void 0:r.img)||(null===(t=window)||void 0===t||null===(a=t.customData)||void 0===a?void 0:a.fallbackImage)),y.alt="No Thumbnail Available",u.append(y);var v=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(d=o.videos[e])||void 0===d?void 0:d.title)||"")});i.dom.appendContent(p,u),i.dom.appendContent(p,v),i.dom.appendContent(m,p),i.dom.appendContent(c,m)},y=0;y<this.videos.length;y++)p(y);i.dom.appendContent(r,t),i.dom.appendContent(r,a),i.dom.appendContent(e,r),i.dom.appendContent(e,c),u(this.playerId,e)}}])}();export{b as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import a from"video.js";import{E as l,f as r}from"./icons-79ad4d7d.js";import{J as s,T as d}from"./generic-258d34e7.js";import{e as c,s as m,f as p,j as u,k as v}from"./skin-8e2c5488.js";import{a as h}from"./autoNextVideo-793707f8.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){function g(t){var i,a,l,r,s,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),r=this,c=[t,m],s=n(s=g),(l=o(r,b()?Reflect.construct(s,c||[],n(r).constructor):s.apply(r,c))).playerId=m.playerId,l.seriesData=m.sres,l.videos=m.related.content,l.cb=(null==m||null===(i=m.related)||void 0===i?void 0:i.cb)||null,l.autoNext=(null==m||null===(a=m.related)||void 0===a?void 0:a.autoNext)||!1,l.currentVideoData=m.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(d(0),h({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return i(g,y),t(g,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(l())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.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(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(r())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,l,r,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(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===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(r=t.videos[e])||void 0===r?void 0:r.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,l),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}])}();export{g as default};