@viewlift/player-backup 2.0.361-backup → 2.0.363-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 (276) hide show
  1. package/cjs/_commonjsHelpers-81c4d214.js +1 -0
  2. package/cjs/{autoNextVideo-2338f72b.js → autoNextVideo-b57fd94e.js} +1 -1
  3. package/cjs/browser-ab1ec3ab.js +1 -0
  4. package/cjs/bundle.css +909 -903
  5. package/cjs/caption-settings-50cfa585.js +1 -0
  6. package/cjs/captions-23ff3076.js +1 -0
  7. package/cjs/features-84532cac.js +1 -0
  8. package/cjs/generic-ca18a946.js +1 -0
  9. package/cjs/index-27a62060.js +1 -0
  10. package/cjs/index-62250ea0.js +1 -0
  11. package/cjs/index-66e473f7.js +1 -0
  12. package/cjs/index-91ceac93.js +1 -0
  13. package/cjs/index-d28c1d04.js +1 -0
  14. package/cjs/index-d9460e79.js +1 -0
  15. package/cjs/index-ee9cb57f.js +1 -0
  16. package/cjs/index.js +1 -1
  17. package/cjs/multicamv2-96472b7c.js +1 -0
  18. package/cjs/multicamv2-a3b15f57.js +1 -0
  19. package/cjs/nextEpisodeButton-0e7c699e.js +1 -0
  20. package/cjs/playlist-6dbaae47.js +1 -0
  21. package/cjs/relatedVideosManager-44ec6d59.js +1 -0
  22. package/cjs/renditions-05a85e06.js +1 -0
  23. package/cjs/resolution-059a4468.js +1 -0
  24. package/cjs/series-3754d0a9.js +1 -0
  25. package/cjs/series-v2-00ad95c3.js +1 -0
  26. package/cjs/series-v2-faf6c719.js +1 -0
  27. package/cjs/settings-icon-81e0bc78.js +1 -0
  28. package/cjs/skin-0220bbd7.js +1 -0
  29. package/cjs/skin-13c66191.js +1 -0
  30. package/cjs/skin-2b08e648.js +1 -0
  31. package/cjs/skin-55634dc6.js +1 -0
  32. package/cjs/skin-5e92eba9.js +1 -0
  33. package/cjs/skin-5f049521.js +1 -0
  34. package/cjs/skin-65a80a93.js +1 -0
  35. package/cjs/skin-8111bf49.js +1 -0
  36. package/cjs/skin-c211c3a9.js +1 -0
  37. package/cjs/skin-e3d5c1a7.js +1 -0
  38. package/cjs/{skin-56aa6df7.js → skin-eecb289d.js} +1 -1
  39. package/cjs/videoSelector-0bd954a8.js +1 -0
  40. package/cjs/videoSelector-99835c7d.js +1 -0
  41. package/cjs/videojs-dash5.es-0f92604f.js +1 -0
  42. package/esm/_commonjsHelpers-0307ea52.js +1 -0
  43. package/esm/{autoNextVideo-c38d98be.js → autoNextVideo-ca468d20.js} +1 -1
  44. package/esm/browser-8ea05bed.js +1 -0
  45. package/esm/bundle.css +909 -903
  46. package/esm/caption-settings-d0e2275a.js +1 -0
  47. package/esm/captions-4dea3682.js +1 -0
  48. package/esm/features-0d4290a8.js +1 -0
  49. package/esm/generic-6c14b09e.js +1 -0
  50. package/esm/index-23afe568.js +1 -0
  51. package/esm/index-4be0bb5b.js +1 -0
  52. package/esm/index-8b7ad7a7.js +1 -0
  53. package/esm/index-c276e2a6.js +1 -0
  54. package/esm/index-c4656b30.js +1 -0
  55. package/esm/index-e096af23.js +1 -0
  56. package/esm/index-eded6cb0.js +1 -0
  57. package/esm/index.js +1 -1
  58. package/esm/multicamv2-63047664.js +1 -0
  59. package/esm/multicamv2-7b8465e8.js +1 -0
  60. package/esm/nextEpisodeButton-a3ed5cde.js +1 -0
  61. package/esm/playlist-41378efa.js +1 -0
  62. package/esm/relatedVideosManager-93533a90.js +1 -0
  63. package/esm/remote/airplay/src/js/components/AirPlayButton.d.ts +2 -0
  64. package/esm/remote/airplay/src/js/enableAirPlay.d.ts +2 -0
  65. package/esm/remote/airplay/src/js/index.d.ts +2 -0
  66. package/esm/remote/airplay/src/js/lib/hasAirPlayAPISupport.d.ts +2 -0
  67. package/esm/remote/chromecast/src/js/chromecast/ChromecastSessionManager.d.ts +168 -0
  68. package/esm/remote/chromecast/src/js/components/ChromecastButton.d.ts +2 -0
  69. package/esm/remote/chromecast/src/js/enableChromecast.d.ts +2 -0
  70. package/esm/remote/chromecast/src/js/index.d.ts +2 -0
  71. package/esm/remote/chromecast/src/js/preloadWebComponents.d.ts +2 -0
  72. package/esm/remote/chromecast/src/js/tech/ChromecastTech.d.ts +2 -0
  73. package/esm/remote/chromecast/src/js/tech/ChromecastTechUI.d.ts +92 -0
  74. package/esm/renditions-28891b91.js +1 -0
  75. package/esm/resolution-ce4463bf.js +1 -0
  76. package/esm/series-b9736092.js +1 -0
  77. package/esm/series-v2-1d1e574d.js +1 -0
  78. package/esm/series-v2-768b237e.js +1 -0
  79. package/esm/settings-icon-8eaa7cc6.js +1 -0
  80. package/esm/skin-012028ab.js +1 -0
  81. package/esm/skin-05244e25.js +1 -0
  82. package/esm/skin-2a3ee818.js +1 -0
  83. package/esm/skin-30bed6f1.js +1 -0
  84. package/esm/skin-322d12ce.js +1 -0
  85. package/esm/skin-35b6305b.js +1 -0
  86. package/esm/{skin-ed2760bd.js → skin-5bafce20.js} +1 -1
  87. package/esm/skin-5dd350fb.js +1 -0
  88. package/esm/{skin-9b0258ae.js → skin-62c1d140.js} +1 -1
  89. package/esm/skin-9126d695.js +1 -0
  90. package/esm/skin-eb02f212.js +1 -0
  91. package/esm/{apis → src/apis}/index.d.ts +4 -4
  92. package/esm/{helpers → src/helpers}/token.d.ts +1 -1
  93. package/esm/{index.d.ts → src/index.d.ts} +1 -1
  94. package/esm/videoSelector-323e9112.js +1 -0
  95. package/esm/videoSelector-f3f07a76.js +1 -0
  96. package/esm/videojs-dash5.es-cfe95daa.js +1 -0
  97. package/package.json +10 -3
  98. package/cjs/browser-2807cc02.js +0 -1
  99. package/cjs/caption-settings-0d09a023.js +0 -1
  100. package/cjs/captions-4dfe293a.js +0 -1
  101. package/cjs/features-4822f920.js +0 -1
  102. package/cjs/generic-131b4d00.js +0 -1
  103. package/cjs/index-1347427d.js +0 -1
  104. package/cjs/index-58f88daa.js +0 -1
  105. package/cjs/index-8a058c51.js +0 -1
  106. package/cjs/index-94207847.js +0 -1
  107. package/cjs/index-e7cab57c.js +0 -1
  108. package/cjs/multicamv2-0e42db7a.js +0 -1
  109. package/cjs/multicamv2-5245f838.js +0 -1
  110. package/cjs/nextEpisodeButton-8a55766c.js +0 -1
  111. package/cjs/playlist-38eb1cb2.js +0 -1
  112. package/cjs/relatedVideosManager-0a220d05.js +0 -1
  113. package/cjs/renditions-627bdfad.js +0 -1
  114. package/cjs/resolution-687b9e26.js +0 -1
  115. package/cjs/series-d0c8930b.js +0 -1
  116. package/cjs/series-v2-0af081f5.js +0 -1
  117. package/cjs/series-v2-2b05e313.js +0 -1
  118. package/cjs/settings-icon-e94f47c1.js +0 -1
  119. package/cjs/skin-01291260.js +0 -1
  120. package/cjs/skin-0fafe807.js +0 -1
  121. package/cjs/skin-357cefed.js +0 -1
  122. package/cjs/skin-38523520.js +0 -1
  123. package/cjs/skin-4b068624.js +0 -1
  124. package/cjs/skin-66dce245.js +0 -1
  125. package/cjs/skin-75847791.js +0 -1
  126. package/cjs/skin-7d9d70d6.js +0 -1
  127. package/cjs/skin-8cf6ef56.js +0 -1
  128. package/cjs/skin-ff2b5b51.js +0 -1
  129. package/cjs/videoSelector-98193563.js +0 -1
  130. package/cjs/videoSelector-b237b11b.js +0 -1
  131. package/cjs/videojs-dash5.es-80bdd597.js +0 -1
  132. package/esm/browser-05efadfa.js +0 -1
  133. package/esm/caption-settings-e1a53633.js +0 -1
  134. package/esm/captions-1f931e14.js +0 -1
  135. package/esm/features-61f6f35b.js +0 -1
  136. package/esm/generic-6c20b38b.js +0 -1
  137. package/esm/index-85c4eeac.js +0 -1
  138. package/esm/index-9fb4d0bf.js +0 -1
  139. package/esm/index-a1c20dd9.js +0 -1
  140. package/esm/index-ae6b4732.js +0 -1
  141. package/esm/index-cd110bd0.js +0 -1
  142. package/esm/multicamv2-15e9b2f4.js +0 -1
  143. package/esm/multicamv2-c2c03192.js +0 -1
  144. package/esm/nextEpisodeButton-4c0b9754.js +0 -1
  145. package/esm/playlist-eb4ed43d.js +0 -1
  146. package/esm/relatedVideosManager-81661348.js +0 -1
  147. package/esm/renditions-620d93b3.js +0 -1
  148. package/esm/resolution-43f91f56.js +0 -1
  149. package/esm/series-15e3f963.js +0 -1
  150. package/esm/series-v2-6a0f3851.js +0 -1
  151. package/esm/series-v2-882590c0.js +0 -1
  152. package/esm/settings-icon-de1c6c28.js +0 -1
  153. package/esm/skin-1444eb87.js +0 -1
  154. package/esm/skin-3653c5b3.js +0 -1
  155. package/esm/skin-3ba43c8b.js +0 -1
  156. package/esm/skin-45ab9db1.js +0 -1
  157. package/esm/skin-8af645ca.js +0 -1
  158. package/esm/skin-93e24d96.js +0 -1
  159. package/esm/skin-d0093419.js +0 -1
  160. package/esm/skin-e5ccb4cc.js +0 -1
  161. package/esm/skin-eae68539.js +0 -1
  162. package/esm/videoSelector-0146bf91.js +0 -1
  163. package/esm/videoSelector-6c903f38.js +0 -1
  164. package/esm/videojs-dash5.es-45c88e15.js +0 -1
  165. /package/esm/{assets → src/assets}/icons.d.ts +0 -0
  166. /package/esm/{components → src/components}/advertisement/advertisement.d.ts +0 -0
  167. /package/esm/{components → src/components}/auto-next-video/autoNextVideo.d.ts +0 -0
  168. /package/esm/{components → src/components}/big-mute-btn/index.d.ts +0 -0
  169. /package/esm/{components → src/components}/broadcaster_image/index.d.ts +0 -0
  170. /package/esm/{components → src/components}/caption-settings/caption-settings.d.ts +0 -0
  171. /package/esm/{components → src/components}/chapters/bootstrap.d.ts +0 -0
  172. /package/esm/{components → src/components}/chapters/events.d.ts +0 -0
  173. /package/esm/{components → src/components}/chapters/index.d.ts +0 -0
  174. /package/esm/{components → src/components}/chapters/markers.d.ts +0 -0
  175. /package/esm/{components → src/components}/chapters/offsets.d.ts +0 -0
  176. /package/esm/{components → src/components}/chapters/store.d.ts +0 -0
  177. /package/esm/{components → src/components}/chapters/timelineMapper.d.ts +0 -0
  178. /package/esm/{components → src/components}/dvr-seekbar/index.d.ts +0 -0
  179. /package/esm/{components → src/components}/multicam/multicam.d.ts +0 -0
  180. /package/esm/{components → src/components}/multicam-v2/multicamv2.d.ts +0 -0
  181. /package/esm/{components → src/components}/multicam-v2_TEMP/multicamv2.d.ts +0 -0
  182. /package/esm/{components → src/components}/next-ep-preview/next-ep-preview.d.ts +0 -0
  183. /package/esm/{components → src/components}/next-episode/nextEpisodeButton.d.ts +0 -0
  184. /package/esm/{components → src/components}/playlist-tray/playlist.d.ts +0 -0
  185. /package/esm/{components → src/components}/quality-selector/index.d.ts +0 -0
  186. /package/esm/{components → src/components}/resolution/resolution.d.ts +0 -0
  187. /package/esm/{components → src/components}/series/series.d.ts +0 -0
  188. /package/esm/{components → src/components}/series-v2/helper.d.ts +0 -0
  189. /package/esm/{components → src/components}/series-v2/series-v2.d.ts +0 -0
  190. /package/esm/{components → src/components}/series-v2_TEMP/helper.d.ts +0 -0
  191. /package/esm/{components → src/components}/series-v2_TEMP/series-v2.d.ts +0 -0
  192. /package/esm/{components → src/components}/settings-icon/settings-icon.d.ts +0 -0
  193. /package/esm/{components → src/components}/subs-caps-button/subs-caps-button.d.ts +0 -0
  194. /package/esm/{components → src/components}/text-track-settings/text-track-settings.d.ts +0 -0
  195. /package/esm/{components → src/components}/timer/index.d.ts +0 -0
  196. /package/esm/{components → src/components}/transmit/constants.d.ts +0 -0
  197. /package/esm/{components → src/components}/transmit/index.d.ts +0 -0
  198. /package/esm/{components → src/components}/transmit/session.d.ts +0 -0
  199. /package/esm/{components → src/components}/transmit/transmitAd.d.ts +0 -0
  200. /package/esm/{components → src/components}/transmit/transmitAdManager.d.ts +0 -0
  201. /package/esm/{components → src/components}/transmit/utils.d.ts +0 -0
  202. /package/esm/{components → src/components}/trickplay/helper.d.ts +0 -0
  203. /package/esm/{components → src/components}/trickplay/index.d.ts +0 -0
  204. /package/esm/{components → src/components}/trickplay/videojs.thumbnails.d.ts +0 -0
  205. /package/esm/{components → src/components}/video-selector/videoSelector.d.ts +0 -0
  206. /package/esm/{components → src/components}/video-selector_TEMP/videoSelector.d.ts +0 -0
  207. /package/esm/{components → src/components}/watch-history/handleWatchHistory.d.ts +0 -0
  208. /package/esm/{contentHandler → src/contentHandler}/content_types/epg.d.ts +0 -0
  209. /package/esm/{contentHandler → src/contentHandler}/content_types/external.d.ts +0 -0
  210. /package/esm/{contentHandler → src/contentHandler}/content_types/index.d.ts +0 -0
  211. /package/esm/{contentHandler → src/contentHandler}/content_types/series.d.ts +0 -0
  212. /package/esm/{contentHandler → src/contentHandler}/content_types/vod.d.ts +0 -0
  213. /package/esm/{contentHandler → src/contentHandler}/firePlayer.d.ts +0 -0
  214. /package/esm/{core → src/core}/captions.d.ts +0 -0
  215. /package/esm/{core → src/core}/generic.d.ts +0 -0
  216. /package/esm/{core → src/core}/player_instance.d.ts +0 -0
  217. /package/esm/{core → src/core}/renditions.d.ts +0 -0
  218. /package/esm/{core → src/core}/util.d.ts +0 -0
  219. /package/esm/{core → src/core}/volume.d.ts +0 -0
  220. /package/esm/{dash → src/dash}/dashHandler.d.ts +0 -0
  221. /package/esm/{dash → src/dash}/linear_ssai.d.ts +0 -0
  222. /package/esm/{dash → src/dash}/sgai.d.ts +0 -0
  223. /package/esm/{features → src/features}/scheduleWindow/index.d.ts +0 -0
  224. /package/esm/{features.d.ts → src/features.d.ts} +0 -0
  225. /package/esm/{globalPlayerEvents.d.ts → src/globalPlayerEvents.d.ts} +0 -0
  226. /package/esm/{helpers → src/helpers}/accessibility.d.ts +0 -0
  227. /package/esm/{helpers → src/helpers}/apiErrorTracker.d.ts +0 -0
  228. /package/esm/{helpers → src/helpers}/browser.d.ts +0 -0
  229. /package/esm/{helpers → src/helpers}/browser.test.d.ts +0 -0
  230. /package/esm/{helpers → src/helpers}/currentVideoInfo.d.ts +0 -0
  231. /package/esm/{helpers → src/helpers}/drmErrorDetection.d.ts +0 -0
  232. /package/esm/{helpers → src/helpers}/errorHandling.d.ts +0 -0
  233. /package/esm/{helpers → src/helpers}/loader.d.ts +0 -0
  234. /package/esm/{helpers → src/helpers}/localisation.d.ts +0 -0
  235. /package/esm/{helpers → src/helpers}/playerControlEvents.d.ts +0 -0
  236. /package/esm/{helpers → src/helpers}/scriptLoader.d.ts +0 -0
  237. /package/esm/{helpers → src/helpers}/secondary-switching.d.ts +0 -0
  238. /package/esm/{helpers → src/helpers}/skin.d.ts +0 -0
  239. /package/esm/{helpers → src/helpers}/sourceRetriever.d.ts +0 -0
  240. /package/esm/{helpers → src/helpers}/ssaiEventHandler.d.ts +0 -0
  241. /package/esm/{plugins → src/plugins}/chromecast.d.ts +0 -0
  242. /package/esm/{plugins → src/plugins}/comscore_dist/index.d.ts +0 -0
  243. /package/esm/{plugins → src/plugins}/index.d.ts +0 -0
  244. /package/esm/{plugins → src/plugins}/library.d.ts +0 -0
  245. /package/esm/{plugins → src/plugins}/videojs-dash5.es.d.ts +0 -0
  246. /package/esm/{plugins → src/plugins}/videojs_contrib_dash.d.ts +0 -0
  247. /package/esm/{skin → src/skin}/carousel/skin.d.ts +0 -0
  248. /package/esm/{skin → src/skin}/cn_news/skin.d.ts +0 -0
  249. /package/esm/{skin → src/skin}/default/events.d.ts +0 -0
  250. /package/esm/{skin → src/skin}/default/skin.d.ts +0 -0
  251. /package/esm/{skin → src/skin}/defaultV2/events.d.ts +0 -0
  252. /package/esm/{skin → src/skin}/defaultV2/skin.d.ts +0 -0
  253. /package/esm/{skin → src/skin}/index.d.ts +0 -0
  254. /package/esm/{skin → src/skin}/mini/events.d.ts +0 -0
  255. /package/esm/{skin → src/skin}/mini/skin.d.ts +0 -0
  256. /package/esm/{skin → src/skin}/minimalist/skin.d.ts +0 -0
  257. /package/esm/{skin → src/skin}/multiplayer/events.d.ts +0 -0
  258. /package/esm/{skin → src/skin}/multiplayer/skin.d.ts +0 -0
  259. /package/esm/{skin → src/skin}/news/events.d.ts +0 -0
  260. /package/esm/{skin → src/skin}/news/skin.d.ts +0 -0
  261. /package/esm/{skin → src/skin}/news_live/events.d.ts +0 -0
  262. /package/esm/{skin → src/skin}/news_live/skin.d.ts +0 -0
  263. /package/esm/{skin → src/skin}/vl_one/events.d.ts +0 -0
  264. /package/esm/{skin → src/skin}/vl_one/skin.d.ts +0 -0
  265. /package/esm/{utilities → src/utilities}/analytics.d.ts +0 -0
  266. /package/esm/{utilities → src/utilities}/beacon.d.ts +0 -0
  267. /package/esm/{utilities → src/utilities}/castCommands.d.ts +0 -0
  268. /package/esm/{utilities → src/utilities}/comscore.d.ts +0 -0
  269. /package/esm/{utilities → src/utilities}/controlsColor.d.ts +0 -0
  270. /package/esm/{utilities → src/utilities}/conviva.d.ts +0 -0
  271. /package/esm/{utilities → src/utilities}/keyboardShortcuts.d.ts +0 -0
  272. /package/esm/{utilities → src/utilities}/manager.d.ts +0 -0
  273. /package/esm/{utilities → src/utilities}/qualityLabels.d.ts +0 -0
  274. /package/esm/{utilities → src/utilities}/relatedVideosManager.d.ts +0 -0
  275. /package/esm/{utilities → src/utilities}/replaceMacros.d.ts +0 -0
  276. /package/esm/{utilities → src/utilities}/sse.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{f as l,d as i,e,j as n,k as o,l as t,m as r}from"./features-0d4290a8.js";import{e as s}from"./icons-262bef63.js";import{g as a,p as u,e as d}from"./skin-2a3ee818.js";import{g as v}from"./renditions-28891b91.js";import"@babel/runtime/helpers/toConsumableArray";import{a as C,b as c}from"./index-eded6cb0.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import{r as p}from"./relatedVideosManager-93533a90.js";import{e as h,ad as m,n as f}from"./generic-6c14b09e.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-ca468d20.js";import"./index-c276e2a6.js";import"@babel/runtime/helpers/typeof";import"axios";import"./browser-8ea05bed.js";import"md5";import"js-cookie";import"./captions-4dea3682.js";import"@viewlift/comscore/index.js";function b(b,g){a(b).addClass("skin_mini"),function(i,e){var n=a(i);n&&n.on("loadeddata",(function(){var n,o,t,r,s,a,u,d,c,h;(null===(n=v(i))||void 0===n?void 0:n.length)>0&&0!=(null==e||null===(o=e.skin_settings)||void 0===o?void 0:o.settingsToggle)&&l(i,e);var m=(null===(t=p.get())||void 0===t||null===(r=t.content)||void 0===r?void 0:r.length)>0;if(!(null!=e&&null!==(s=e.series)&&void 0!==s&&s.enable||null!==(a=window)&&void 0!==a&&null!==(u=a.app_data)&&void 0!==u&&null!==(d=u.appcmsMain)&&void 0!==d&&null!==(c=d.features)&&void 0!==c&&c.auto_play||m)||null!=e&&e.liveVideo){if(!(null!=e&&e.liveVideo||null!=e&&null!==(h=e.series)&&void 0!==h&&h.enable)){var f;f=p.subscribe((function(l){var n;(null==l||null===(n=l.content)||void 0===n?void 0:n.length)>0&&(C(i,e),f&&f())}))}}else C(i,e)}))}(b,g),function(l,i){var e,n,o,t,r,s,v,C,c,p,h,m,f,b,g,B,y,L,j=a(l);null===(e=j.controlBar)||void 0===e||e.removeChild("VolumePanel"),null===(n=j.controlBar)||void 0===n||n.addChild("VolumePanel",{inline:!1},1);var w=null===(o=j.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),E=document.createElement("div");E.className="custom-spaced-progress-bar",w&&E.append(w.el());null===(t=j.controlBar)||void 0===t||null===(r=t.el())||void 0===r||r.append(E);var V='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(u(V),null!==(s=j.el().firstChild)&&void 0!==s?s:null);var x=(null==j||null===(v=j.controlBar)||void 0===v||null===(C=v.getChild("PlayToggle"))||void 0===C||null===(c=C.el())||void 0===c?void 0:c.firstChild)||null;if(x){x.style.height="16px",x.style.width="16px";var M=d(x,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",(function(){return M.setAttributeNS(null,"href","#vjs-icon-play")})),j.on("play",(function(){return M.setAttributeNS(null,"href","#vjs-icon-pause")}))}var k=(null==j||null===(p=j.controlBar)||void 0===p||null===(h=p.getChild("FullscreenToggle"))||void 0===h||null===(m=h.el())||void 0===m?void 0:m.firstChild)||null;if(k){k.style.height="24px",k.style.width="24px";var S=d(k,"#vjs-icon-fullscreen");j.on("fullscreenchange",(function(){var l=j.isFullscreen_;null==S||S.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var Z=(null==j||null===(f=j.controlBar)||void 0===f||null===(b=f.getChild("VolumePanel"))||void 0===b?void 0:b.el())||null;if(Z){var A=Z.querySelector(".vjs-mute-control .vjs-icon-placeholder");A.classList.add("vjs-svg-icon"),A.style.height="24px",A.style.width="24px";var T=d(A,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",(function(l){var i=j.volume();0==i||j.muted()?T.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?T.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?T.setAttributeNS(null,"href","#vjs-icon-volume2"):T.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var N=(null==j||null===(g=j.controlBar)||void 0===g||null===(B=g.getChild("PictureInPictureToggle"))||void 0===B?void 0:B.el())||null;if(N){var H=null==N?void 0:N.querySelector(".vjs-icon-placeholder");H.style.height="25px",H.style.width="25px";var P=d(H,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){P.setAttributeNS(null,"href","#vjs-icon-pip")}))}var _=(null==j||null===(y=j.controlBar)||void 0===y||null===(L=y.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(_){var I=_.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");I.classList.add("vjs-svg-icon"),I.style.height="29px",I.style.width="29px";var q=d(I,"#vjs-icon-caps");q.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",(function(l){for(var i=j.textTracks(),e=!1,n=0;n<i.length;n++){var o=i[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){e=!0;break}}e?q.setAttributeNS(null,"href","#vjs-icon-captions"):q.setAttributeNS(null,"href","#vjs-icon-captions-off")}))}j&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(j.liveTracker.on("liveedgechange",(function(){R(j)})),j.on("timeupdate",(function(){R(j)})));function O(l){var i=Math.floor(l/3600),e=Math.floor(l%3600/60),n=Math.floor(l%60),o=function(l){return String(l).padStart(2,"0")};return 0===i?"".concat(o(e),":").concat(o(n)):"".concat(o(i),":").concat(o(e),":").concat(o(n))}function D(l){var i=l.seekable();if(i&&i.length>0){var e=i.end(0);return Math.max(0,e-l.currentTime())}return 0}function R(l){var i,e,n=l.liveTracker.atLiveEdge(),o=D(l),t=null==l||null===(i=l.controlBar)||void 0===i||null===(e=i.remainingTimeDisplay)||void 0===e?void 0:e.el();if(t){var r=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",r&&(r.innerText=O(o)))}}}(b,g),function(l,u){var d,v,C,c,b,g,B,y,L=(null==u||null===(d=u.res)||void 0===d||null===(v=d.video)||void 0===v?void 0:v.isSSAIEnabled)||!1,j=(null==u?void 0:u.skin_settings)||{};null==j||j.slowMoBtn;var w=(null==u||null===(C=u.customData)||void 0===C?void 0:C.ads)||{};null!=j&&j.skipBtn&&0==(null==u?void 0:u.liveVideo)&&0==(null==u?void 0:u.liveui)&&i(l,"VL_ONE",SkipSvgV2());null!=j&&j.rewindBtn&&(0==(null==u?void 0:u.liveVideo)&&0==(null==u?void 0:u.liveui)||1==(null==u?void 0:u.liveui))&&e(l,"VL_ONE",s());var E,V=p.get();(null==V||null===(c=V.content)||void 0===c?void 0:c.length)>0&&n(l,V);E=p.subscribe((function(i){var e,o,t=a(l);(null==t||null===(e=t.controlBar)||void 0===e||!e.getChild("videoSelector"))&&(null==i||null===(o=i.content)||void 0===o?void 0:o.length)>0&&(n(l,i),E&&E())})),(null==u||null===(b=u.streams)||void 0===b?void 0:b.length)>1&&o(l,null==u?void 0:u.streams);(null==u||null===(g=u.playlist)||void 0===g||null===(B=g.content)||void 0===B?void 0:B.length)>0&&t(l,null==u?void 0:u.playlist);null!=u&&null!==(y=u.series)&&void 0!==y&&y.enable&&r(l,u);if("MEDIA_TAILOR"==(null==w?void 0:w.vodAdSticherProvider)&&null!=w&&w.vodAdClientSideTracking&&L){var x,M=null;if(null!=u&&null!==(x=u.series)&&void 0!==x&&x.enable){var k,S,Z,A=null===(k=h())||void 0===k||null===(S=k.video)||void 0===S||null===(Z=S.gist)||void 0===Z?void 0:Z.id,T=f(),N=(null==T?void 0:T.get(A))||{t:0,p:0},H=N.t;N.p<95&&(M=H)}else{var P=u.watchHistoryResumeTime;u.watchedPercentage<95&&(M=P)}m(l,M)}}(b,g),c(b,g)}export{b as initialiseSkin};
@@ -1 +1 @@
1
- import{g as l,p as e,e as i}from"./skin-3653c5b3.js";import{e as n}from"./features-61f6f35b.js";import{g as o}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-6c20b38b.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-05efadfa.js";import"md5";import"js-cookie";import"./captions-1f931e14.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./renditions-620d93b3.js";var t='<svg xmlns="http://www.w3.org/2000/svg" style="display:none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume" viewBox="0 0 24 24">\n <path d="M3 9.00047V15.0005H7L12 20.0005V4.00047L7 9.00047H3ZM16.5 12.0005C16.5 10.2305 15.48 8.71047 14 7.97047V16.0205C15.48 15.2905 16.5 13.7705 16.5 12.0005ZM14 3.23047V5.29047C16.89 6.15047 19 8.83047 19 12.0005C19 15.1705 16.89 17.8505 14 18.7105V20.7705C18.01 19.8605 21 16.2805 21 12.0005C21 7.72047 18.01 4.14047 14 3.23047Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-pip" viewBox="0 0 24 24">\n <path d="M19 7H11V13H19V7ZM21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 20.98 3 20.98H21C22.1 20.98 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM21 19.01H3V4.98H21V19.01Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-captions" viewBox="0 0 18 16">\n <path d="M16.5 1.5V14.5H1.5V1.5H16.5ZM16 0H2C0.89 0 0 0.9 0 2V14C0 15.1 0.89 16 2 16H16C17.1 16 18 15.1 18 14V2C18 0.9 17.1 0 16 0ZM8 7H6.5V6.5H4.5V9.5H6.5V9H8V10C8 10.55 7.55 11 7 11H4C3.45 11 3 10.55 3 10V6C3 5.45 3.45 5 4 5H7C7.55 5 8 5.45 8 6V7ZM15 7H13.5V6.5H11.5V9.5H13.5V9H15V10C15 10.55 14.55 11 14 11H11C10.45 11 10 10.55 10 10V6C10 5.45 10.45 5 11 5H14C14.55 5 15 5.45 15 6V7Z" fill="white"/>\n </symbol>\n </defs>\n</svg>',r='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.99 5V1L6.98999 6L11.99 11V7C15.3 7 17.99 9.69 17.99 13C17.99 16.31 15.3 19 11.99 19C8.67999 19 5.98999 16.31 5.98999 13H3.98999C3.98999 17.42 7.56999 21 11.99 21C16.41 21 19.99 17.42 19.99 13C19.99 8.58 16.41 5 11.99 5Z" fill="white"/>\n<path d="M10.89 16H10.04V12.74L9.03003 13.05V12.36L10.8 11.73H10.89V16Z" fill="white"/>\n<path d="M15.17 14.24C15.17 14.56 15.14 14.84 15.07 15.06C15 15.28 14.9 15.48 14.78 15.63C14.66 15.78 14.5 15.89 14.33 15.96C14.16 16.03 13.96 16.06 13.74 16.06C13.52 16.06 13.33 16.03 13.15 15.96C12.97 15.89 12.82 15.78 12.69 15.63C12.56 15.48 12.46 15.29 12.39 15.06C12.32 14.83 12.28 14.56 12.28 14.24V13.5C12.28 13.18 12.31 12.9 12.38 12.68C12.45 12.46 12.55 12.26 12.67 12.11C12.79 11.96 12.95 11.85 13.12 11.78C13.29 11.71 13.49 11.68 13.71 11.68C13.93 11.68 14.12 11.71 14.3 11.78C14.48 11.85 14.63 11.96 14.76 12.11C14.89 12.26 14.99 12.45 15.06 12.68C15.13 12.91 15.17 13.18 15.17 13.5V14.24ZM14.32 13.38C14.32 13.19 14.31 13.03 14.28 12.9C14.25 12.77 14.21 12.67 14.16 12.59C14.11 12.51 14.05 12.45 13.97 12.42C13.89 12.39 13.81 12.37 13.72 12.37C13.63 12.37 13.54 12.39 13.47 12.42C13.4 12.45 13.33 12.51 13.28 12.59C13.23 12.67 13.19 12.77 13.16 12.9C13.13 13.03 13.12 13.19 13.12 13.38V14.35C13.12 14.54 13.13 14.7 13.16 14.83C13.19 14.96 13.23 15.07 13.28 15.15C13.33 15.23 13.39 15.29 13.47 15.32C13.55 15.35 13.63 15.37 13.72 15.37C13.81 15.37 13.9 15.35 13.97 15.32C14.04 15.29 14.11 15.23 14.16 15.15C14.21 15.07 14.25 14.96 14.27 14.83C14.29 14.7 14.31 14.54 14.31 14.35V13.38H14.32Z" fill="white"/>\n</svg>';function u(u,s){l(u).addClass("skin_cn_news"),function(n,r){var u,s,a,v,c=l(n);if(!c)return;if(c.el().insertBefore(e(t),null!==(u=c.el().firstChild)&&void 0!==u?u:null),null===(s=c.controlBar)||void 0===s||s.removeChild("VolumePanel"),null===(a=c.controlBar)||void 0===a||a.addChild("VolumePanel",{inline:!0},1),!(null!==(v=c.controlBar)&&void 0!==v&&v.getChild("PictureInPictureToggle"))){var d,C,p=null===(d=c.controlBar)||void 0===d?void 0:d.getChild("FullscreenToggle"),m=p?c.controlBar.children().indexOf(p):void 0;null===(C=c.controlBar)||void 0===C||C.addChild("PictureInPictureToggle",{},m)}(function(l){var e,n,o,t=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("PlayToggle"))||void 0===n||null===(o=n.el())||void 0===o?void 0:o.firstChild)||null;if(!t)return;var r=i(t,l.paused()?"#vjs-icon-play":"#vjs-icon-pause");l.on("play",function(){return r.setAttributeNS(null,"href","#vjs-icon-pause")}),l.on("pause",function(){return r.setAttributeNS(null,"href","#vjs-icon-play")})})(c),function(l){var e,n,o=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("VolumePanel"))||void 0===n?void 0:n.el())||null,t=null==o?void 0:o.querySelector(".vjs-mute-control .vjs-icon-placeholder");if(!t)return;var r=i(t,l.muted()?"#vjs-icon-mute":"#vjs-icon-volume");l.on("volumechange",function(){var e=l.muted()||0===l.volume();r.setAttributeNS(null,"href",e?"#vjs-icon-mute":"#vjs-icon-volume")})}(c),function(l){var e,n,o,t=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("PictureInPictureToggle"))||void 0===n||null===(o=n.el())||void 0===o?void 0:o.querySelector(".vjs-icon-placeholder"))||null;if(!t)return;i(t,"#vjs-icon-pip")}(c),function(l){var e,n,o=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("SubsCapsButton"))||void 0===n?void 0:n.el())||null,t=null==o?void 0:o.querySelector(".vjs-icon-placeholder");if(!t)return;i(t,"#vjs-icon-captions");var r=function(){for(var e=l.textTracks(),i=!1,n=0;n<e.length;n++){var t=e[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}o.classList.toggle("vjs-cc-on",i)};r(),l.textTracks().on("change",r)}(c),function(l){var e,n,o,t=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("FullscreenToggle"))||void 0===n||null===(o=n.el())||void 0===o?void 0:o.firstChild)||null;if(!t)return;var r=i(t,"#vjs-icon-fullscreen");l.on("fullscreenchange",function(){null==r||r.setAttributeNS(null,"href",l.isFullscreen()?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}(c),function(l,e){var i,n=null==l||null===(i=l.controlBar)||void 0===i?void 0:i.getChild("SeekToLive");if(n){var t,r,u=n.el().querySelector(".vjs-seek-to-live-text"),s=o("liveText")||"LIVE",a=o("goLiveText")||"GO LIVE",v=function(){var e,i;u&&(u.textContent=null!==(e=l.liveTracker)&&void 0!==e&&null!==(i=e.atLiveEdge)&&void 0!==i&&i.call(e)?s:a)};v(),l.on("timeupdate",v),null===(t=l.liveTracker)||void 0===t||null===(r=t.on)||void 0===r||r.call(t,"liveedgechange",v),n.on("click",function(){if(l.paused())try{l.play()}catch(l){}})}if(null!=e&&e.liveVideo&&null!=e&&e.liveui&&l.liveTracker){var c=function(){return function(l){var e,i,n,o,t=null==l||null===(e=l.controlBar)||void 0===e||null===(i=e.remainingTimeDisplay)||void 0===i?void 0:i.el();if(!t)return;var r=t.querySelector(".vjs-remaining-time-display");null!==(n=l.liveTracker)&&void 0!==n&&null!==(o=n.atLiveEdge)&&void 0!==o&&o.call(n)?t.style.display="none":(t.style.display="flex",r&&(r.innerText=(u=function(l){var e=l.seekable();return e&&e.length>0?Math.max(0,e.end(0)-l.currentTime()):0}(l),s=Math.floor(u/3600),a=Math.floor(u%3600/60),v=Math.floor(u%60),c=function(l){return String(l).padStart(2,"0")},0===s?"".concat(c(a),":").concat(c(v)):"".concat(c(s),":").concat(c(a),":").concat(c(v)))));var u,s,a,v,c}(l)};l.liveTracker.on("liveedgechange",c),l.on("timeupdate",c)}}(c,r)}(u,s),function(l,e){var i,o,t,u,s=(null==e||null===(i=e.res)||void 0===i?void 0:i.contentType)||"video",a=(null==e||null===(o=e.res)||void 0===o||null===(t=o[s])||void 0===t||null===(u=t.liveDetails)||void 0===u?void 0:u.isDvrEnabled)||!1;(null!=e&&e.liveui||a)&&n(l,"CN_NEWS",r)}(u,s)}export{u as initialiseSkin};
1
+ import{g as l,p as e,e as i}from"./skin-2a3ee818.js";import{e as n}from"./features-0d4290a8.js";import{g as o}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-6c14b09e.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-8ea05bed.js";import"md5";import"js-cookie";import"./captions-4dea3682.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./renditions-28891b91.js";var t='<svg xmlns="http://www.w3.org/2000/svg" style="display:none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume" viewBox="0 0 24 24">\n <path d="M3 9.00047V15.0005H7L12 20.0005V4.00047L7 9.00047H3ZM16.5 12.0005C16.5 10.2305 15.48 8.71047 14 7.97047V16.0205C15.48 15.2905 16.5 13.7705 16.5 12.0005ZM14 3.23047V5.29047C16.89 6.15047 19 8.83047 19 12.0005C19 15.1705 16.89 17.8505 14 18.7105V20.7705C18.01 19.8605 21 16.2805 21 12.0005C21 7.72047 18.01 4.14047 14 3.23047Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-pip" viewBox="0 0 24 24">\n <path d="M19 7H11V13H19V7ZM21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 20.98 3 20.98H21C22.1 20.98 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM21 19.01H3V4.98H21V19.01Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-captions" viewBox="0 0 18 16">\n <path d="M16.5 1.5V14.5H1.5V1.5H16.5ZM16 0H2C0.89 0 0 0.9 0 2V14C0 15.1 0.89 16 2 16H16C17.1 16 18 15.1 18 14V2C18 0.9 17.1 0 16 0ZM8 7H6.5V6.5H4.5V9.5H6.5V9H8V10C8 10.55 7.55 11 7 11H4C3.45 11 3 10.55 3 10V6C3 5.45 3.45 5 4 5H7C7.55 5 8 5.45 8 6V7ZM15 7H13.5V6.5H11.5V9.5H13.5V9H15V10C15 10.55 14.55 11 14 11H11C10.45 11 10 10.55 10 10V6C10 5.45 10.45 5 11 5H14C14.55 5 15 5.45 15 6V7Z" fill="white"/>\n </symbol>\n </defs>\n</svg>',r='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.99 5V1L6.98999 6L11.99 11V7C15.3 7 17.99 9.69 17.99 13C17.99 16.31 15.3 19 11.99 19C8.67999 19 5.98999 16.31 5.98999 13H3.98999C3.98999 17.42 7.56999 21 11.99 21C16.41 21 19.99 17.42 19.99 13C19.99 8.58 16.41 5 11.99 5Z" fill="white"/>\n<path d="M10.89 16H10.04V12.74L9.03003 13.05V12.36L10.8 11.73H10.89V16Z" fill="white"/>\n<path d="M15.17 14.24C15.17 14.56 15.14 14.84 15.07 15.06C15 15.28 14.9 15.48 14.78 15.63C14.66 15.78 14.5 15.89 14.33 15.96C14.16 16.03 13.96 16.06 13.74 16.06C13.52 16.06 13.33 16.03 13.15 15.96C12.97 15.89 12.82 15.78 12.69 15.63C12.56 15.48 12.46 15.29 12.39 15.06C12.32 14.83 12.28 14.56 12.28 14.24V13.5C12.28 13.18 12.31 12.9 12.38 12.68C12.45 12.46 12.55 12.26 12.67 12.11C12.79 11.96 12.95 11.85 13.12 11.78C13.29 11.71 13.49 11.68 13.71 11.68C13.93 11.68 14.12 11.71 14.3 11.78C14.48 11.85 14.63 11.96 14.76 12.11C14.89 12.26 14.99 12.45 15.06 12.68C15.13 12.91 15.17 13.18 15.17 13.5V14.24ZM14.32 13.38C14.32 13.19 14.31 13.03 14.28 12.9C14.25 12.77 14.21 12.67 14.16 12.59C14.11 12.51 14.05 12.45 13.97 12.42C13.89 12.39 13.81 12.37 13.72 12.37C13.63 12.37 13.54 12.39 13.47 12.42C13.4 12.45 13.33 12.51 13.28 12.59C13.23 12.67 13.19 12.77 13.16 12.9C13.13 13.03 13.12 13.19 13.12 13.38V14.35C13.12 14.54 13.13 14.7 13.16 14.83C13.19 14.96 13.23 15.07 13.28 15.15C13.33 15.23 13.39 15.29 13.47 15.32C13.55 15.35 13.63 15.37 13.72 15.37C13.81 15.37 13.9 15.35 13.97 15.32C14.04 15.29 14.11 15.23 14.16 15.15C14.21 15.07 14.25 14.96 14.27 14.83C14.29 14.7 14.31 14.54 14.31 14.35V13.38H14.32Z" fill="white"/>\n</svg>';function u(u,s){l(u).addClass("skin_cn_news"),function(n,r){var u,s,a,v,c=l(n);if(!c)return;if(c.el().insertBefore(e(t),null!==(u=c.el().firstChild)&&void 0!==u?u:null),null===(s=c.controlBar)||void 0===s||s.removeChild("VolumePanel"),null===(a=c.controlBar)||void 0===a||a.addChild("VolumePanel",{inline:!0},1),!(null!==(v=c.controlBar)&&void 0!==v&&v.getChild("PictureInPictureToggle"))){var d,C,p=null===(d=c.controlBar)||void 0===d?void 0:d.getChild("FullscreenToggle"),m=p?c.controlBar.children().indexOf(p):void 0;null===(C=c.controlBar)||void 0===C||C.addChild("PictureInPictureToggle",{},m)}(function(l){var e,n,o,t=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("PlayToggle"))||void 0===n||null===(o=n.el())||void 0===o?void 0:o.firstChild)||null;if(!t)return;var r=i(t,l.paused()?"#vjs-icon-play":"#vjs-icon-pause");l.on("play",(function(){return r.setAttributeNS(null,"href","#vjs-icon-pause")})),l.on("pause",(function(){return r.setAttributeNS(null,"href","#vjs-icon-play")}))})(c),function(l){var e,n,o=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("VolumePanel"))||void 0===n?void 0:n.el())||null,t=null==o?void 0:o.querySelector(".vjs-mute-control .vjs-icon-placeholder");if(!t)return;var r=i(t,l.muted()?"#vjs-icon-mute":"#vjs-icon-volume");l.on("volumechange",(function(){var e=l.muted()||0===l.volume();r.setAttributeNS(null,"href",e?"#vjs-icon-mute":"#vjs-icon-volume")}))}(c),function(l){var e,n,o,t=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("PictureInPictureToggle"))||void 0===n||null===(o=n.el())||void 0===o?void 0:o.querySelector(".vjs-icon-placeholder"))||null;if(!t)return;i(t,"#vjs-icon-pip")}(c),function(l){var e,n,o=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("SubsCapsButton"))||void 0===n?void 0:n.el())||null,t=null==o?void 0:o.querySelector(".vjs-icon-placeholder");if(!t)return;i(t,"#vjs-icon-captions");var r=function(){for(var e=l.textTracks(),i=!1,n=0;n<e.length;n++){var t=e[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}o.classList.toggle("vjs-cc-on",i)};r(),l.textTracks().on("change",r)}(c),function(l){var e,n,o,t=(null==l||null===(e=l.controlBar)||void 0===e||null===(n=e.getChild("FullscreenToggle"))||void 0===n||null===(o=n.el())||void 0===o?void 0:o.firstChild)||null;if(!t)return;var r=i(t,"#vjs-icon-fullscreen");l.on("fullscreenchange",(function(){null==r||r.setAttributeNS(null,"href",l.isFullscreen()?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}(c),function(l,e){var i,n=null==l||null===(i=l.controlBar)||void 0===i?void 0:i.getChild("SeekToLive");if(n){var t,r,u=n.el().querySelector(".vjs-seek-to-live-text"),s=o("liveText")||"LIVE",a=o("goLiveText")||"GO LIVE",v=function(){var e,i;u&&(u.textContent=null!==(e=l.liveTracker)&&void 0!==e&&null!==(i=e.atLiveEdge)&&void 0!==i&&i.call(e)?s:a)};v(),l.on("timeupdate",v),null===(t=l.liveTracker)||void 0===t||null===(r=t.on)||void 0===r||r.call(t,"liveedgechange",v),n.on("click",(function(){if(l.paused())try{l.play()}catch(l){}}))}if(null!=e&&e.liveVideo&&null!=e&&e.liveui&&l.liveTracker){var c=function(){return function(l){var e,i,n,o,t=null==l||null===(e=l.controlBar)||void 0===e||null===(i=e.remainingTimeDisplay)||void 0===i?void 0:i.el();if(!t)return;var r=t.querySelector(".vjs-remaining-time-display");null!==(n=l.liveTracker)&&void 0!==n&&null!==(o=n.atLiveEdge)&&void 0!==o&&o.call(n)?t.style.display="none":(t.style.display="flex",r&&(r.innerText=(u=function(l){var e=l.seekable();return e&&e.length>0?Math.max(0,e.end(0)-l.currentTime()):0}(l),s=Math.floor(u/3600),a=Math.floor(u%3600/60),v=Math.floor(u%60),c=function(l){return String(l).padStart(2,"0")},0===s?"".concat(c(a),":").concat(c(v)):"".concat(c(s),":").concat(c(a),":").concat(c(v)))));var u,s,a,v,c}(l)};l.liveTracker.on("liveedgechange",c),l.on("timeupdate",c)}}(c,r)}(u,s),function(l,e){var i,o,t,u,s=(null==e||null===(i=e.res)||void 0===i?void 0:i.contentType)||"video",a=(null==e||null===(o=e.res)||void 0===o||null===(t=o[s])||void 0===t||null===(u=t.liveDetails)||void 0===u?void 0:u.isDvrEnabled)||!1;(null!=e&&e.liveui||a)&&n(l,"CN_NEWS",r)}(u,s)}export{u as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{f as l,g as e,h as o,d as i,e as n,i as t,j as r,k as a,l as d,m as s}from"./features-0d4290a8.js";import{M as u,a as v,c as m,d as p}from"./icons-262bef63.js";import{g as c,b as h}from"./skin-2a3ee818.js";import{g as f}from"./renditions-28891b91.js";import{g as b}from"./captions-4dea3682.js";import{a as g,b as C}from"./index-eded6cb0.js";import{i as j}from"./index-4be0bb5b.js";import{a as y,d as w}from"./browser-8ea05bed.js";import{r as V}from"./relatedVideosManager-93533a90.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./generic-6c14b09e.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"md5";import"js-cookie";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-ca468d20.js";import"./index-c276e2a6.js";function B(B,k){c(B).addClass("skin_defaultv2"),function(){"Chrome"==w()&&import("./chromett-a3cbb2e1.js").then((function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)}));import("./skin-46def1ff.js").then((function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)}))}(),function(i,n){var t=c(i);t&&(t.on("loadeddata",(function(){var o,t,r,a,d,s,u,v,m,p;(null===(o=f(i))||void 0===o?void 0:o.length)>0&&l(i,n),(null===(t=b(i))||void 0===t?void 0:t.length)>0&&e(i,n);var c=(null===(r=V.get())||void 0===r||null===(a=r.content)||void 0===a?void 0:a.length)>0;if(!(null!=n&&null!==(d=n.series)&&void 0!==d&&d.enable||null!==(s=window)&&void 0!==s&&null!==(u=s.app_data)&&void 0!==u&&null!==(v=u.appcmsMain)&&void 0!==v&&null!==(m=v.features)&&void 0!==m&&m.auto_play||c)||null!=n&&n.liveVideo){if(!(null!=n&&n.liveVideo||null!=n&&null!==(p=n.series)&&void 0!==p&&p.enable)){var h;h=V.subscribe((function(l){var e;(null==l||null===(e=l.content)||void 0===e?void 0:e.length)>0&&(g(i,n),h&&h())}))}}else g(i,n);null!=n&&n.liveVideo||y()||j(i)})),t.one("play",(function(){var l,e,n,t;null!==(l=window)&&void 0!==l&&null!==(e=l.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(i,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)})))}(B,k),function(l,e){var o,i,n,t,r,a,d,s,m,p,f,b,g,C=c(l);null===(o=C.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(i=C.controlBar)||void 0===i||i.addChild("VolumePanel",{inline:!1},1);var j=null===(n=C.controlBar)||void 0===n?void 0:n.getChild("ProgressControl"),y=null===(t=C.controlBar)||void 0===t?void 0:t.getChild("CurrentTimeDisplay"),w=null===(r=C.controlBar)||void 0===r?void 0:r.getChild("SeekToLive"),V=document.createElement("div");V.className="custom-spaced-progress-bar",j&&y&&w&&V.append(j.el(),y.el(),w.el());null===(a=C.controlBar)||void 0===a||null===(d=a.el())||void 0===d||d.append(V),null==C||null===(s=C.controlBar)||void 0===s||null===(m=s.getChild("FullscreenToggle"))||void 0===m||null===(p=m.el())||void 0===p||p.appendChild(h(u(window.controlsColor))),null==C||null===(f=C.controlBar)||void 0===f||null===(b=f.getChild("FullscreenToggle"))||void 0===b||null===(g=b.el())||void 0===g||g.appendChild(h(v(window.controlsColor)));var B=document.getElementsByClassName("vjs-time-control");e.liveVideo&&B[0]&&(B[0].style.display="none")}(B,k),function(l,e){var o,u,v,h,f,b=(null==e?void 0:e.skin_settings)||{},g=0!=(null==b?void 0:b.slowMoBtn);0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)&&i(l,"defaultV2",m());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",p());!e.liveVideo&&g&&t(l);var C,j=V.get();(null==j||null===(o=j.content)||void 0===o?void 0:o.length)>0&&r(l,j);C=V.subscribe((function(e){var o,i,n=c(l);(null==n||null===(o=n.controlBar)||void 0===o||!o.getChild("videoSelector"))&&(null==e||null===(i=e.content)||void 0===i?void 0:i.length)>0&&(r(l,e),C&&C())})),(null==e||null===(u=e.streams)||void 0===u?void 0:u.length)>1&&a(l,null==e?void 0:e.streams);(null==e||null===(v=e.playlist)||void 0===v||null===(h=v.content)||void 0===h?void 0:h.length)>0&&d(l,null==e?void 0:e.playlist);null!=e&&null!==(f=e.series)&&void 0!==f&&f.enable&&s(l,e)}(B,k),C(B,k)}export{B as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{Q as e,R as t}from"./generic-6c14b09e.js";import{g as r}from"./skin-2a3ee818.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-8ea05bed.js";import"md5";import"js-cookie";import"./captions-4dea3682.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";function o(o){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)})),i(),function(o){var i=document.getElementById("".concat(o)),n=r(o);i&&i.addEventListener("touchstart",(function(){n.paused()?e(o):t(o)}))}(o)}var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
@@ -4,10 +4,10 @@ export namespace baseUrlManager {
4
4
  }
5
5
  export function getVideoDetails(id: any, token: any, ssaiDisable?: boolean): Promise<any>;
6
6
  export function getSeriesDetails(id: any, token: any): Promise<any>;
7
- export function saveWatchHistory(params: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
8
- export function getVideoInfo(videoId: any, token: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
9
- export function getSeriesWatchHistory(data: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
7
+ export function saveWatchHistory(params: any): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
8
+ export function getVideoInfo(videoId: any, token: any): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
9
+ export function getSeriesWatchHistory(data: any): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
10
10
  export function getLinearChannelDetails(params: any, token: any, ssaiDisable?: boolean): Promise<any>;
11
- export function getEntitlementData(id: any, token: any, url: any, locationData: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
11
+ export function getEntitlementData(id: any, token: any, url: any, locationData: any): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
12
12
  export function apiHeaders(endpoint: any): any;
13
13
  export function apiParams(endpoint: any): any;
@@ -1,6 +1,6 @@
1
1
  export function token_authentication_enabled(params: any): boolean;
2
2
  export function getToken(): Promise<any>;
3
- export function fetchRefreshToken(): Promise<import("axios").AxiosResponse<any, any, {}>>;
3
+ export function fetchRefreshToken(): Promise<import("axios").AxiosResponse<any, any, {}, any>>;
4
4
  export function refreshTokenManager(): {
5
5
  set(token: any): void;
6
6
  get(): any;
@@ -30,7 +30,7 @@ declare function VLPlayerCore(): {
30
30
  getVolume: (playerId: any) => string;
31
31
  disableControls: (playerId: any) => void;
32
32
  setPlaybackSpeed: (playerId: any, speed: any) => string;
33
- getEntitlementData: (id: any, token: any, url: any, locationData: any) => Promise<import("axios").AxiosResponse<any, any, {}>>;
33
+ getEntitlementData: (id: any, token: any, url: any, locationData: any) => Promise<import("axios").AxiosResponse<any, any, {}, any>>;
34
34
  getSsaiEvents: typeof getSsaiEvents;
35
35
  getPlayerControlEvents: typeof getPlayerControlEvents;
36
36
  playerEvents: typeof playerEvents;
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/get";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import l from"video.js";import{f as d,g as s}from"./icons-262bef63.js";import{U as r,aa as c}from"./generic-6c14b09e.js";import{i as m,j as u,s as v,k as p,h,l as b}from"./skin-2a3ee818.js";import{a as y,u as f}from"./autoNextVideo-ca468d20.js";import{g as E}from"./localisation-0bf399a1.js";import{r as g}from"./relatedVideosManager-93533a90.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-8ea05bed.js";import"md5";import"js-cookie";import"./captions-4dea3682.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./index-c276e2a6.js";function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var I=l.getComponent("Component"),N=function(){n(B,I);var N,x,k=(N=B,x=C(),function(){var e,t=a(N);if(x){var o=a(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return i(this,e)});function B(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,B),(i=k.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(c(0),y({playerId:i.playerId,content:i.videos,cb:i.cb})),i._unsubRelated=g.subscribe((function(e){var t;i.videos=(null==e?void 0:e.content)||i.videos,i.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:i.cb,f(i.videos),i._refreshList()})),i}return t(B,[{key:"_buildVideoItem",value:function(e){var t,o,n,i,a,d,s,r,c,u=this,v=l.dom.createEl("div",{className:"video -".concat(e)}),p=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(this.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(t){"Enter"===t.key&&u.loadVideoAssetById(e)},p.onclick=function(){u.loadVideoAssetById(e)};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat(m(null==this||null===(t=this.videos)||void 0===t||null===(o=t[e])||void 0===o?void 0:o.img)||m(null===(n=window)||void 0===n||null===(i=n.app_data)||void 0===i||null===(a=i.appcmsMain)||void 0===a||null===(d=a.images)||void 0===d?void 0:d.placeholderCover)),h.alt="".concat((null==this||null===(s=this.videos[e])||void 0===s||null===(r=s.title)||void 0===r?void 0:r.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(h);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(c=this.videos[e])||void 0===c?void 0:c.title)||"")});return l.dom.appendContent(v,p),l.dom.appendContent(v,b),v}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){l.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)l.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,n,i){var l=o(a(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof l?function(e){return l.apply(n,e)}:l}(B,"dispose",this,3)([])}},{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",ariaExpanded:!1,innerHTML:"".concat(d())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-89c7f4d2.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=l.dom.createEl("div",{className:"video-selection-container hidden"}),n=l.dom.$(".video-selector-icon",this.el());n.onclick=function(){var i,a;null!==(i=o.classList)&&void 0!==i&&i.contains("hidden")?(u(),o.classList.remove("hidden"),t.classList.add("open"),v(e.playerId,o),e.handleTabIndexSelector(),null===(a=e.titleEl)||void 0===a||a.focus(),n.setAttribute("aria-expanded",!0)):(o.classList.add("hidden"),t.classList.remove("open"),n.setAttribute("aria-expanded",!1))};var i=document.getElementById(this.playerId);if(i){var a=window.getComputedStyle(i,null).getPropertyValue("height");o.style.height="".concat(a),l.dom.appendContent(t,o),i.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;c(e+1);for(var o=l.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";h(e),r(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;this.titleEl&&(this.titleEl.tabIndex=0),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"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))[0]&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o,n;this.titleEl&&(this.titleEl.tabIndex=-1),null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1),null!==(t=document.getElementsByClassName("video-selector-icon"))&&void 0!==t&&t[0]&&document.getElementsByClassName("video-selector-icon")[0].setAttribute("aria-expanded",!1);for(var i=document.getElementsByClassName("video-accessibility"),a=(null==i||null===(o=i[0])||void 0===o||null===(n=o.children)||void 0===n?void 0:n.length)||0,l=0;l<a;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("button",{className:"video-selector-cross-icon",ariaLabel:"close video selector",type:"button",tabIndex:-1,innerHTML:"".concat(s())});i.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};var a=E("relatedVideoTitle")||"Recommended",d=l.dom.createEl("div",{className:"video-selector-title",innerHTML:a,ariaLabel:a,tabIndex:-1});d.setAttribute("role","heading"),d.setAttribute("aria-level","2"),this.titleEl=d;for(var r=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=l.dom.createEl("div",{className:"video-container video-accessibility"}),u=function(e){var o,n,i,a,d,s,u,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("button",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(m(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||m(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(d=a.appcmsMain)||void 0===d||null===(s=d.images)||void 0===s?void 0:s.placeholderCover)),b.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),b.setAttribute("aria-hidden","true"),h.append(b);var y=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,y),l.dom.appendContent(c,p),l.dom.appendContent(r,c)},v=0;v<this.videos.length;v++)u(v);l.dom.appendContent(n,d),l.dom.appendContent(n,i),l.dom.appendContent(e,n),l.dom.appendContent(e,r),b(this.playerId,e)}}]),B}();export{N 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/get";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import l from"video.js";import{E as r,g as d}from"./icons-262bef63.js";import{U as s,aa as c}from"./generic-6c14b09e.js";import{m,j as u,s as v,k as p,l as h}from"./skin-2a3ee818.js";import{a as f,u as b}from"./autoNextVideo-ca468d20.js";import{g as y}from"./localisation-0bf399a1.js";import{r as g}from"./relatedVideosManager-93533a90.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-8ea05bed.js";import"md5";import"js-cookie";import"./captions-4dea3682.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./index-c276e2a6.js";function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var N=l.getComponent("Component"),E=function(){n(I,N);var E,k,j=(E=I,k=C(),function(){var e,t=a(E);if(k){var o=a(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return i(this,e)});function I(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,I),(i=j.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(c(0),f({playerId:i.playerId,content:i.videos,cb:i.cb})),i._unsubRelated=g.subscribe((function(e){var t;i.videos=(null==e?void 0:e.content)||i.videos,i.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:i.cb,b(i.videos),i._refreshList()})),i}return t(I,[{key:"_buildVideoItem",value:function(e){var t,o,n,i,a,r=this,d=l.dom.createEl("div",{className:"video -".concat(e)}),u=l.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){c(e+1);for(var t=l.dom.$$(".recommended"),o=0;o<t.length;o++)t[o].style.border="none";m(e),s(r.playerId,r.videos[e].id).then((function(e){r.cb&&r.cb(e)})).catch((function(e){r.cb&&r.cb(e)}))};var v=document.createElement("img");v.className="related-thumbnail-image",v.src="".concat((null==this||null===(t=this.videos)||void 0===t||null===(o=t[e])||void 0===o?void 0:o.img)||(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.fallbackImage)),v.alt="No Thumbnail Available",u.append(v);var p=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(a=this.videos[e])||void 0===a?void 0:a.title)||"")});return l.dom.appendContent(d,u),l.dom.appendContent(d,p),d}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){l.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)l.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,n,i){var l=o(a(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof l?function(e){return l.apply(n,e)}:l}(I,"dispose",this,3)([])}},{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("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return l.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=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(u(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",v(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),l.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=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(d())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var a=l.dom.createEl("div",{className:"video-selector-title",innerHTML:y("relatedVideoTitle")||"Recommended"}),r=l.dom.createEl("div",{className:"video-selector-content"}),u=l.dom.createEl("div",{className:"video-container"}),v=function(e){var o,n,i,a,d,v=l.dom.createEl("div",{className:"video -".concat(e)}),p=l.dom.createEl("div",{className:"recommended -".concat(e)});p.setAttribute("video-idx",e),p.onclick=function(){c(e+1);for(var o=l.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";m(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===(a=i.customData)||void 0===a?void 0:a.fallbackImage)),h.alt="No Thumbnail Available",p.append(h);var f=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(d=t.videos[e])||void 0===d?void 0:d.title)||"")});l.dom.appendContent(v,p),l.dom.appendContent(v,f),l.dom.appendContent(u,v),l.dom.appendContent(r,u)},p=0;p<this.videos.length;p++)v(p);l.dom.appendContent(n,i),l.dom.appendContent(n,a),l.dom.appendContent(e,n),l.dom.appendContent(e,r),h(this.playerId,e)}}]),I}();export{E as default};