@viewlift/player-backup 2.0.230-backup → 2.0.231-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 (319) hide show
  1. package/{@viewlift/player-backup/cjs/autoNextVideo-a42585ab.js → cjs/autoNextVideo-7d7ab3d1.js} +1 -1
  2. package/{@viewlift/player-backup/cjs → cjs}/bundle.css +433 -433
  3. package/{@viewlift/player-backup/cjs/features-f68ce3fb.js → cjs/features-2de8aac9.js} +1 -1
  4. package/{@viewlift/player-backup/cjs/generic-42df2356.js → cjs/generic-1b82ec6f.js} +1 -1
  5. package/{@viewlift/player-backup/cjs/index-ae7fa630.js → cjs/index-1fcf5f9b.js} +1 -1
  6. package/{@viewlift/player-backup/cjs/index-90466af0.js → cjs/index-47740d12.js} +1 -1
  7. package/{@viewlift/player-backup/cjs/index-04b2530f.js → cjs/index-47928a86.js} +1 -1
  8. package/{@viewlift/player-backup/cjs → cjs}/index.js +1 -1
  9. package/{@viewlift/player-backup/cjs/multicamv2-7d163d9d.js → cjs/multicamv2-09024455.js} +1 -1
  10. package/{@viewlift/player-backup/cjs/multicamv2-e5f9f991.js → cjs/multicamv2-d7d7ea94.js} +1 -1
  11. package/{@viewlift/player-backup/cjs/nextEpisodeButton-f8aacfc8.js → cjs/nextEpisodeButton-8602ebca.js} +1 -1
  12. package/{@viewlift/player-backup/cjs/playlist-0cf7efc7.js → cjs/playlist-e84aed86.js} +1 -1
  13. package/{@viewlift/player-backup/cjs/series-ba300c8a.js → cjs/series-8ae3ffe0.js} +1 -1
  14. package/{@viewlift/player-backup/cjs/series-v2-f0132e4d.js → cjs/series-v2-a5b7993e.js} +1 -1
  15. package/{@viewlift/player-backup/cjs/series-v2-99b6589c.js → cjs/series-v2-d6c6b7dd.js} +1 -1
  16. package/{@viewlift/player-backup/cjs/skin-bae423f5.js → cjs/skin-02eb7456.js} +1 -1
  17. package/{@viewlift/player-backup/cjs/skin-6d8c7523.js → cjs/skin-1cab5b19.js} +1 -1
  18. package/{@viewlift/player-backup/cjs/skin-b8e41049.js → cjs/skin-271984a0.js} +1 -1
  19. package/{@viewlift/player-backup/cjs/skin-fd0abb21.js → cjs/skin-43e92429.js} +1 -1
  20. package/{@viewlift/player-backup/cjs/skin-9ea5e200.js → cjs/skin-bdb40384.js} +1 -1
  21. package/{@viewlift/player-backup/cjs/skin-1d5f75a5.js → cjs/skin-d144630c.js} +1 -1
  22. package/{@viewlift/player-backup/cjs/skin-febf5feb.js → cjs/skin-dad5728b.js} +1 -1
  23. package/{@viewlift/player-backup/cjs/skin-b59e6f4b.js → cjs/skin-ee0adfc1.js} +1 -1
  24. package/{@viewlift/player-backup/cjs/skin-657fecd5.js → cjs/skin-fa0f019a.js} +1 -1
  25. package/{@viewlift/player-backup/cjs/util-1ecaa3aa.js → cjs/util-ec7d2fb9.js} +1 -1
  26. package/{@viewlift/player-backup/cjs/videoSelector-b063c2fa.js → cjs/videoSelector-632e0634.js} +1 -1
  27. package/{@viewlift/player-backup/cjs/videoSelector-c7a8084b.js → cjs/videoSelector-cbb4fd7e.js} +1 -1
  28. package/{@viewlift/player-backup/esm/autoNextVideo-562cb118.js → esm/autoNextVideo-18708ace.js} +1 -1
  29. package/{@viewlift/player-backup/esm → esm}/bundle.css +433 -433
  30. package/{@viewlift/player-backup/esm/features-cd2d1ef5.js → esm/features-778a7117.js} +1 -1
  31. package/{@viewlift/player-backup/esm/generic-0d8916dd.js → esm/generic-d3cb033f.js} +1 -1
  32. package/{@viewlift/player-backup/esm/index-6878d5da.js → esm/index-3ef2827d.js} +1 -1
  33. package/{@viewlift/player-backup/esm/index-d4b7f0f1.js → esm/index-d485bd0c.js} +1 -1
  34. package/{@viewlift/player-backup/esm/index-96695c58.js → esm/index-fb68a3fc.js} +1 -1
  35. package/{@viewlift/player-backup/esm → esm}/index.js +1 -1
  36. package/{@viewlift/player-backup/esm/multicamv2-73e06f75.js → esm/multicamv2-5f6ae02a.js} +1 -1
  37. package/{@viewlift/player-backup/esm/multicamv2-b4132d34.js → esm/multicamv2-a442705f.js} +1 -1
  38. package/{@viewlift/player-backup/esm/nextEpisodeButton-55ba4076.js → esm/nextEpisodeButton-0f62df3c.js} +1 -1
  39. package/{@viewlift/player-backup/esm/playlist-18c389e3.js → esm/playlist-c4e41393.js} +1 -1
  40. package/{@viewlift/player-backup/esm/series-d2127ba9.js → esm/series-41530aa2.js} +1 -1
  41. package/{@viewlift/player-backup/esm/series-v2-374d6ad3.js → esm/series-v2-7cb7da9b.js} +1 -1
  42. package/{@viewlift/player-backup/esm/series-v2-45904259.js → esm/series-v2-ff0cb000.js} +1 -1
  43. package/{@viewlift/player-backup/esm/skin-386fb496.js → esm/skin-1e085eaa.js} +1 -1
  44. package/{@viewlift/player-backup/esm/skin-783bc970.js → esm/skin-42edfeef.js} +1 -1
  45. package/{@viewlift/player-backup/esm/skin-a7b78d71.js → esm/skin-5acbd983.js} +1 -1
  46. package/{@viewlift/player-backup/esm/skin-57bd5f88.js → esm/skin-6208ab0e.js} +1 -1
  47. package/{@viewlift/player-backup/esm/skin-de1aa5f5.js → esm/skin-69bd0539.js} +1 -1
  48. package/{@viewlift/player-backup/esm/skin-68945038.js → esm/skin-87a6ca51.js} +1 -1
  49. package/{@viewlift/player-backup/esm/skin-1cf8c85f.js → esm/skin-a832d373.js} +1 -1
  50. package/{@viewlift/player-backup/esm/skin-48674c27.js → esm/skin-d5efcc88.js} +1 -1
  51. package/{@viewlift/player-backup/esm/skin-bc3198f1.js → esm/skin-fa248c90.js} +1 -1
  52. package/{@viewlift/player-backup/esm/util-931b842b.js → esm/util-4e79be1c.js} +1 -1
  53. package/{@viewlift/player-backup/esm/videoSelector-3c767fee.js → esm/videoSelector-2691356b.js} +1 -1
  54. package/{@viewlift/player-backup/esm/videoSelector-c45eea40.js → esm/videoSelector-4d07e059.js} +1 -1
  55. package/package.json +21 -56
  56. package/@viewlift/player/esm/apis/index.d.ts +0 -11
  57. package/@viewlift/player/esm/assets/icons.d.ts +0 -25
  58. package/@viewlift/player/esm/components/advertisement/advertisement.d.ts +0 -1
  59. package/@viewlift/player/esm/components/auto-next-video/autoNextVideo.d.ts +0 -2
  60. package/@viewlift/player/esm/components/big-mute-btn/index.d.ts +0 -9
  61. package/@viewlift/player/esm/components/broadcaster_image/index.d.ts +0 -1
  62. package/@viewlift/player/esm/components/caption-settings/caption-settings.d.ts +0 -14
  63. package/@viewlift/player/esm/components/dvr-seekbar/index.d.ts +0 -14
  64. package/@viewlift/player/esm/components/dvr-startover/helper.d.ts +0 -17
  65. package/@viewlift/player/esm/components/dvr-startover/index.d.ts +0 -1
  66. package/@viewlift/player/esm/components/dvr-startover/marker.d.ts +0 -3
  67. package/@viewlift/player/esm/components/dvr-startover/start-begin-btn.d.ts +0 -6
  68. package/@viewlift/player/esm/components/dvr-startover/watch-live-btn.d.ts +0 -6
  69. package/@viewlift/player/esm/components/multicam/multicam.d.ts +0 -18
  70. package/@viewlift/player/esm/components/multicam-v2/multicamv2.d.ts +0 -13
  71. package/@viewlift/player/esm/components/multicam-v2_TEMP/multicamv2.d.ts +0 -13
  72. package/@viewlift/player/esm/components/next-ep-preview/next-ep-preview.d.ts +0 -1
  73. package/@viewlift/player/esm/components/next-episode/nextEpisodeButton.d.ts +0 -13
  74. package/@viewlift/player/esm/components/playlist-tray/playlist.d.ts +0 -15
  75. package/@viewlift/player/esm/components/quality-selector/index.d.ts +0 -1
  76. package/@viewlift/player/esm/components/resolution/resolution-v2.d.ts +0 -18
  77. package/@viewlift/player/esm/components/resolution/resolution.d.ts +0 -20
  78. package/@viewlift/player/esm/components/series/series.d.ts +0 -10
  79. package/@viewlift/player/esm/components/series-v2/helper.d.ts +0 -3
  80. package/@viewlift/player/esm/components/series-v2/series-v2.d.ts +0 -25
  81. package/@viewlift/player/esm/components/series-v2_TEMP/helper.d.ts +0 -1
  82. package/@viewlift/player/esm/components/series-v2_TEMP/series-v2.d.ts +0 -21
  83. package/@viewlift/player/esm/components/settings-icon/settings-icon.d.ts +0 -17
  84. package/@viewlift/player/esm/components/trickplay/helper.d.ts +0 -13
  85. package/@viewlift/player/esm/components/trickplay/index.d.ts +0 -1
  86. package/@viewlift/player/esm/components/trickplay/videojs.thumbnails.d.ts +0 -1
  87. package/@viewlift/player/esm/components/video-selector/videoSelector.d.ts +0 -18
  88. package/@viewlift/player/esm/components/video-selector_TEMP/videoSelector.d.ts +0 -16
  89. package/@viewlift/player/esm/components/watch-history/handleWatchHistory.d.ts +0 -2
  90. package/@viewlift/player/esm/contentHandler/content_types/epg.d.ts +0 -4
  91. package/@viewlift/player/esm/contentHandler/content_types/external.d.ts +0 -4
  92. package/@viewlift/player/esm/contentHandler/content_types/index.d.ts +0 -5
  93. package/@viewlift/player/esm/contentHandler/content_types/series.d.ts +0 -4
  94. package/@viewlift/player/esm/contentHandler/content_types/vod.d.ts +0 -4
  95. package/@viewlift/player/esm/contentHandler/firePlayer.d.ts +0 -4
  96. package/@viewlift/player/esm/core/captions.d.ts +0 -10
  97. package/@viewlift/player/esm/core/generic.d.ts +0 -49
  98. package/@viewlift/player/esm/core/player_instance.d.ts +0 -6
  99. package/@viewlift/player/esm/core/renditions.d.ts +0 -6
  100. package/@viewlift/player/esm/core/util.d.ts +0 -19
  101. package/@viewlift/player/esm/core/volume.d.ts +0 -2
  102. package/@viewlift/player/esm/dash/dashHandler.d.ts +0 -1
  103. package/@viewlift/player/esm/dash/linear_ssai.d.ts +0 -1
  104. package/@viewlift/player/esm/dash/sgai.d.ts +0 -14
  105. package/@viewlift/player/esm/features.d.ts +0 -33
  106. package/@viewlift/player/esm/globalPlayerEvents.d.ts +0 -8
  107. package/@viewlift/player/esm/helpers/browser.d.ts +0 -2
  108. package/@viewlift/player/esm/helpers/currentVideoInfo.d.ts +0 -21
  109. package/@viewlift/player/esm/helpers/errorHandling.d.ts +0 -2
  110. package/@viewlift/player/esm/helpers/loader.d.ts +0 -2
  111. package/@viewlift/player/esm/helpers/localisation.d.ts +0 -2
  112. package/@viewlift/player/esm/helpers/scriptLoader.d.ts +0 -2
  113. package/@viewlift/player/esm/helpers/secondary-switching.d.ts +0 -1
  114. package/@viewlift/player/esm/helpers/skin.d.ts +0 -20
  115. package/@viewlift/player/esm/helpers/sourceRetriever.d.ts +0 -11
  116. package/@viewlift/player/esm/helpers/ssaiEventHandler.d.ts +0 -27
  117. package/@viewlift/player/esm/helpers/token.d.ts +0 -9
  118. package/@viewlift/player/esm/index.d.ts +0 -44
  119. package/@viewlift/player/esm/plugins/chromecast.d.ts +0 -18
  120. package/@viewlift/player/esm/plugins/comscore_dist/index.d.ts +0 -50
  121. package/@viewlift/player/esm/plugins/index.d.ts +0 -2
  122. package/@viewlift/player/esm/plugins/library.d.ts +0 -8
  123. package/@viewlift/player/esm/plugins/videojs-dash5.es.d.ts +0 -51
  124. package/@viewlift/player/esm/plugins/videojs_contrib_dash.d.ts +0 -51
  125. package/@viewlift/player/esm/skin/carousel/skin.d.ts +0 -1
  126. package/@viewlift/player/esm/skin/default/events.d.ts +0 -1
  127. package/@viewlift/player/esm/skin/default/skin.d.ts +0 -1
  128. package/@viewlift/player/esm/skin/defaultV2/events.d.ts +0 -1
  129. package/@viewlift/player/esm/skin/defaultV2/skin.d.ts +0 -1
  130. package/@viewlift/player/esm/skin/index.d.ts +0 -1
  131. package/@viewlift/player/esm/skin/mini/events.d.ts +0 -1
  132. package/@viewlift/player/esm/skin/mini/skin.d.ts +0 -1
  133. package/@viewlift/player/esm/skin/minimalist/skin.d.ts +0 -1
  134. package/@viewlift/player/esm/skin/multiplayer/events.d.ts +0 -1
  135. package/@viewlift/player/esm/skin/multiplayer/skin.d.ts +0 -1
  136. package/@viewlift/player/esm/skin/news/events.d.ts +0 -1
  137. package/@viewlift/player/esm/skin/news/skin.d.ts +0 -1
  138. package/@viewlift/player/esm/skin/news_live/events.d.ts +0 -1
  139. package/@viewlift/player/esm/skin/news_live/skin.d.ts +0 -1
  140. package/@viewlift/player/esm/skin/vl_one/events.d.ts +0 -1
  141. package/@viewlift/player/esm/skin/vl_one/skin.d.ts +0 -1
  142. package/@viewlift/player/esm/utilities/analytics.d.ts +0 -3
  143. package/@viewlift/player/esm/utilities/beacon.d.ts +0 -3
  144. package/@viewlift/player/esm/utilities/comscore.d.ts +0 -5
  145. package/@viewlift/player/esm/utilities/controlsColor.d.ts +0 -1
  146. package/@viewlift/player/esm/utilities/conviva.d.ts +0 -5
  147. package/@viewlift/player/esm/utilities/keyboardShortcuts.d.ts +0 -5
  148. package/@viewlift/player/esm/utilities/replaceMacros.d.ts +0 -1
  149. package/@viewlift/player-backup/package.json +0 -23
  150. package/@viewlift/player_legacy/cjs/autoNextVideo-0207f04b.js +0 -1
  151. package/@viewlift/player_legacy/cjs/bundle.css +0 -750
  152. package/@viewlift/player_legacy/cjs/caption-settings-34ca0188.js +0 -1
  153. package/@viewlift/player_legacy/cjs/caption-settings-b2f5caed.js +0 -1
  154. package/@viewlift/player_legacy/cjs/chromett-f925fb6c.js +0 -1
  155. package/@viewlift/player_legacy/cjs/dvr_skin-f7f770ae.js +0 -1
  156. package/@viewlift/player_legacy/cjs/error-26d5a3c3.js +0 -1
  157. package/@viewlift/player_legacy/cjs/features-a8748699.js +0 -1
  158. package/@viewlift/player_legacy/cjs/generic-84f939ad.js +0 -1
  159. package/@viewlift/player_legacy/cjs/icons-515b2da0.js +0 -1
  160. package/@viewlift/player_legacy/cjs/index.js +0 -1
  161. package/@viewlift/player_legacy/cjs/keyboardShortcuts-f767c579.js +0 -1
  162. package/@viewlift/player_legacy/cjs/loader-393b838a.js +0 -1
  163. package/@viewlift/player_legacy/cjs/localisation-56e0a999.js +0 -1
  164. package/@viewlift/player_legacy/cjs/multicam-8f3d061a.js +0 -1
  165. package/@viewlift/player_legacy/cjs/multicam-a41fe4a6.js +0 -1
  166. package/@viewlift/player_legacy/cjs/multicamv2-76d8530b.js +0 -1
  167. package/@viewlift/player_legacy/cjs/multicamv2-c4d6b48f.js +0 -1
  168. package/@viewlift/player_legacy/cjs/mwebPotrait-3c11d7cf.js +0 -1
  169. package/@viewlift/player_legacy/cjs/mwebPotraitTray-456078d4.js +0 -1
  170. package/@viewlift/player_legacy/cjs/nextEpisodeButton-b6e6586f.js +0 -1
  171. package/@viewlift/player_legacy/cjs/nextEpisodeButton-fe540cf1.js +0 -1
  172. package/@viewlift/player_legacy/cjs/nondvr_skin-ef2cb3b2.js +0 -1
  173. package/@viewlift/player_legacy/cjs/playlist-3932fd04.js +0 -1
  174. package/@viewlift/player_legacy/cjs/playlist-df87ca90.js +0 -1
  175. package/@viewlift/player_legacy/cjs/renditions-6e13cb32.js +0 -1
  176. package/@viewlift/player_legacy/cjs/resolution-93446685.js +0 -1
  177. package/@viewlift/player_legacy/cjs/series-9c237975.js +0 -1
  178. package/@viewlift/player_legacy/cjs/series-da129ad0.js +0 -1
  179. package/@viewlift/player_legacy/cjs/series-v2-4690c9b9.js +0 -1
  180. package/@viewlift/player_legacy/cjs/series-v2-fd7485a5.js +0 -1
  181. package/@viewlift/player_legacy/cjs/settings-icon-8d364c01.js +0 -1
  182. package/@viewlift/player_legacy/cjs/settings-icon-df80e58e.js +0 -1
  183. package/@viewlift/player_legacy/cjs/skin-225252ff.js +0 -1
  184. package/@viewlift/player_legacy/cjs/skin-63b8f7de.js +0 -1
  185. package/@viewlift/player_legacy/cjs/skin-64ba51a6.js +0 -1
  186. package/@viewlift/player_legacy/cjs/skin-6c47cc18.js +0 -1
  187. package/@viewlift/player_legacy/cjs/skin-7bc2d995.js +0 -1
  188. package/@viewlift/player_legacy/cjs/skin-7c1b43eb.js +0 -1
  189. package/@viewlift/player_legacy/cjs/skin-983a2ea7.js +0 -1
  190. package/@viewlift/player_legacy/cjs/skin-b361b474.js +0 -1
  191. package/@viewlift/player_legacy/cjs/skin-c66e9b42.js +0 -1
  192. package/@viewlift/player_legacy/cjs/skin-fc1e7e52.js +0 -1
  193. package/@viewlift/player_legacy/cjs/util-fb2cc4c4.js +0 -1
  194. package/@viewlift/player_legacy/cjs/videoSelector-aff5bd81.js +0 -1
  195. package/@viewlift/player_legacy/cjs/videoSelector-fcdf11eb.js +0 -1
  196. package/@viewlift/player_legacy/esm/autoNextVideo-9849ba49.js +0 -1
  197. package/@viewlift/player_legacy/esm/bundle.css +0 -750
  198. package/@viewlift/player_legacy/esm/caption-settings-c487e1d4.js +0 -1
  199. package/@viewlift/player_legacy/esm/caption-settings-cb47408f.js +0 -1
  200. package/@viewlift/player_legacy/esm/chromett-a3cbb2e1.js +0 -1
  201. package/@viewlift/player_legacy/esm/dvr_skin-9cc1b144.js +0 -1
  202. package/@viewlift/player_legacy/esm/error-2395864b.js +0 -1
  203. package/@viewlift/player_legacy/esm/features-f0405edc.js +0 -1
  204. package/@viewlift/player_legacy/esm/generic-d6622897.js +0 -1
  205. package/@viewlift/player_legacy/esm/icons-3e9a1686.js +0 -1
  206. package/@viewlift/player_legacy/esm/index.js +0 -1
  207. package/@viewlift/player_legacy/esm/keyboardShortcuts-d3c02093.js +0 -1
  208. package/@viewlift/player_legacy/esm/loader-580278fe.js +0 -1
  209. package/@viewlift/player_legacy/esm/localisation-0bf399a1.js +0 -1
  210. package/@viewlift/player_legacy/esm/multicam-4b0e408e.js +0 -1
  211. package/@viewlift/player_legacy/esm/multicam-de741974.js +0 -1
  212. package/@viewlift/player_legacy/esm/multicamv2-d006cffa.js +0 -1
  213. package/@viewlift/player_legacy/esm/multicamv2-efe93b72.js +0 -1
  214. package/@viewlift/player_legacy/esm/mwebPotrait-3c1805d8.js +0 -1
  215. package/@viewlift/player_legacy/esm/mwebPotraitTray-5323453e.js +0 -1
  216. package/@viewlift/player_legacy/esm/nextEpisodeButton-172e786c.js +0 -1
  217. package/@viewlift/player_legacy/esm/nextEpisodeButton-a1556cdf.js +0 -1
  218. package/@viewlift/player_legacy/esm/nondvr_skin-64be70e5.js +0 -1
  219. package/@viewlift/player_legacy/esm/playlist-7ecf432a.js +0 -1
  220. package/@viewlift/player_legacy/esm/playlist-ce940630.js +0 -1
  221. package/@viewlift/player_legacy/esm/renditions-71ea4b1e.js +0 -1
  222. package/@viewlift/player_legacy/esm/resolution-9836657e.js +0 -1
  223. package/@viewlift/player_legacy/esm/series-041152aa.js +0 -1
  224. package/@viewlift/player_legacy/esm/series-90b99709.js +0 -1
  225. package/@viewlift/player_legacy/esm/series-v2-05347955.js +0 -1
  226. package/@viewlift/player_legacy/esm/series-v2-4cdbf9b1.js +0 -1
  227. package/@viewlift/player_legacy/esm/settings-icon-1fbc99bc.js +0 -1
  228. package/@viewlift/player_legacy/esm/settings-icon-982e8c56.js +0 -1
  229. package/@viewlift/player_legacy/esm/skin-271fa63f.js +0 -1
  230. package/@viewlift/player_legacy/esm/skin-28f20306.js +0 -1
  231. package/@viewlift/player_legacy/esm/skin-2c638dc1.js +0 -1
  232. package/@viewlift/player_legacy/esm/skin-35587f60.js +0 -1
  233. package/@viewlift/player_legacy/esm/skin-649d1a0c.js +0 -1
  234. package/@viewlift/player_legacy/esm/skin-96de1bc3.js +0 -1
  235. package/@viewlift/player_legacy/esm/skin-cd537931.js +0 -1
  236. package/@viewlift/player_legacy/esm/skin-dc0ea0bd.js +0 -1
  237. package/@viewlift/player_legacy/esm/skin-e9170fb9.js +0 -1
  238. package/@viewlift/player_legacy/esm/skin-fbc45594.js +0 -1
  239. package/@viewlift/player_legacy/esm/util-4a2489f5.js +0 -1
  240. package/@viewlift/player_legacy/esm/videoSelector-8e258d45.js +0 -1
  241. package/@viewlift/player_legacy/esm/videoSelector-e140c66d.js +0 -1
  242. package/@viewlift/player_legacy/package.json +0 -17
  243. package/@viewlift/web-multiplayer/cjs/bundle.css +0 -68
  244. package/@viewlift/web-multiplayer/cjs/index.js +0 -1
  245. package/@viewlift/web-multiplayer/esm/App.js +0 -1
  246. package/@viewlift/web-multiplayer/esm/bundle.css +0 -68
  247. package/@viewlift/web-multiplayer/esm/components/Multiplayer.js +0 -1
  248. package/@viewlift/web-multiplayer/esm/index.js +0 -1
  249. package/@viewlift/web-multiplayer/esm/reportWebVitals.js +0 -1
  250. package/@viewlift/web-multiplayer/package.json +0 -38
  251. package/player-micro-frontend/cjs/index.js +0 -1
  252. package/player-micro-frontend/esm/index.js +0 -1
  253. package/player-micro-frontend/package.json +0 -33
  254. /package/{@viewlift/player-backup/cjs → cjs}/caption-settings-34ca0188.js +0 -0
  255. /package/{@viewlift/player-backup/cjs → cjs}/caption-settings-d1eb3bf6.js +0 -0
  256. /package/{@viewlift/player-backup/cjs → cjs}/captions-dbc83a75.js +0 -0
  257. /package/{@viewlift/player-backup/cjs → cjs}/chromett-f925fb6c.js +0 -0
  258. /package/{@viewlift/player-backup/cjs → cjs}/currentVideoInfo-31d70bec.js +0 -0
  259. /package/{@viewlift/player-backup/cjs → cjs}/error-26d5a3c3.js +0 -0
  260. /package/{@viewlift/player-backup/cjs → cjs}/helper-a50a8ffc.js +0 -0
  261. /package/{@viewlift/player-backup/cjs → cjs}/icons-2609dbe4.js +0 -0
  262. /package/{@viewlift/player-backup/cjs → cjs}/index-3f0e537b.js +0 -0
  263. /package/{@viewlift/player-backup/cjs → cjs}/index-4905764c.js +0 -0
  264. /package/{@viewlift/player-backup/cjs → cjs}/localisation-56e0a999.js +0 -0
  265. /package/{@viewlift/player-backup/cjs → cjs}/multicamv2-1efdbdb9.js +0 -0
  266. /package/{@viewlift/player-backup/cjs → cjs}/multicamv2-7a86b517.js +0 -0
  267. /package/{@viewlift/player-backup/cjs → cjs}/nextEpisodeButton-b6e6586f.js +0 -0
  268. /package/{@viewlift/player-backup/cjs → cjs}/player_instance-fcf6a8fb.js +0 -0
  269. /package/{@viewlift/player-backup/cjs → cjs}/playlist-df87ca90.js +0 -0
  270. /package/{@viewlift/player-backup/cjs → cjs}/resolution-f9dcc1b4.js +0 -0
  271. /package/{@viewlift/player-backup/cjs → cjs}/resolution-v2-e42e0101.js +0 -0
  272. /package/{@viewlift/player-backup/cjs → cjs}/series-9c237975.js +0 -0
  273. /package/{@viewlift/player-backup/cjs → cjs}/series-v2-2105fd89.js +0 -0
  274. /package/{@viewlift/player-backup/cjs → cjs}/series-v2-e037e14e.js +0 -0
  275. /package/{@viewlift/player-backup/cjs → cjs}/settings-icon-8d364c01.js +0 -0
  276. /package/{@viewlift/player-backup/cjs → cjs}/settings-icon-b43f4406.js +0 -0
  277. /package/{@viewlift/player-backup/cjs → cjs}/skin-225252ff.js +0 -0
  278. /package/{@viewlift/player-backup/cjs → cjs}/skin-38de8257.js +0 -0
  279. /package/{@viewlift/player-backup/cjs → cjs}/skin-ba38afdb.js +0 -0
  280. /package/{@viewlift/player-backup/cjs → cjs}/skin-f5e18b89.js +0 -0
  281. /package/{@viewlift/player-backup/cjs → cjs}/skin-fc1e7e52.js +0 -0
  282. /package/{@viewlift/player-backup/cjs → cjs}/start-begin-btn-5739a6c0.js +0 -0
  283. /package/{@viewlift/player-backup/cjs → cjs}/videoSelector-b6e03076.js +0 -0
  284. /package/{@viewlift/player-backup/cjs → cjs}/videoSelector-fcdf11eb.js +0 -0
  285. /package/{@viewlift/player-backup/cjs → cjs}/videojs-dash5.es-ec94e5f4.js +0 -0
  286. /package/{@viewlift/player-backup/cjs → cjs}/watch-live-btn-822534d1.js +0 -0
  287. /package/{@viewlift/player-backup/esm → esm}/caption-settings-6001af40.js +0 -0
  288. /package/{@viewlift/player-backup/esm → esm}/caption-settings-cb47408f.js +0 -0
  289. /package/{@viewlift/player-backup/esm → esm}/captions-f507e8ee.js +0 -0
  290. /package/{@viewlift/player-backup/esm → esm}/chromett-a3cbb2e1.js +0 -0
  291. /package/{@viewlift/player-backup/esm → esm}/currentVideoInfo-a8a254c2.js +0 -0
  292. /package/{@viewlift/player-backup/esm → esm}/error-2395864b.js +0 -0
  293. /package/{@viewlift/player-backup/esm → esm}/helper-349e076f.js +0 -0
  294. /package/{@viewlift/player-backup/esm → esm}/icons-37daa6b3.js +0 -0
  295. /package/{@viewlift/player-backup/esm → esm}/index-4cc8ac6f.js +0 -0
  296. /package/{@viewlift/player-backup/esm → esm}/index-8e3eab6d.js +0 -0
  297. /package/{@viewlift/player-backup/esm → esm}/localisation-0bf399a1.js +0 -0
  298. /package/{@viewlift/player-backup/esm → esm}/multicamv2-1fb5149a.js +0 -0
  299. /package/{@viewlift/player-backup/esm → esm}/multicamv2-b7cec0cf.js +0 -0
  300. /package/{@viewlift/player-backup/esm → esm}/nextEpisodeButton-a1556cdf.js +0 -0
  301. /package/{@viewlift/player-backup/esm → esm}/player_instance-34118a5b.js +0 -0
  302. /package/{@viewlift/player-backup/esm → esm}/playlist-7ecf432a.js +0 -0
  303. /package/{@viewlift/player-backup/esm → esm}/resolution-1c59b0f3.js +0 -0
  304. /package/{@viewlift/player-backup/esm → esm}/resolution-v2-705ae275.js +0 -0
  305. /package/{@viewlift/player-backup/esm → esm}/series-041152aa.js +0 -0
  306. /package/{@viewlift/player-backup/esm → esm}/series-v2-6e9853f8.js +0 -0
  307. /package/{@viewlift/player-backup/esm → esm}/series-v2-87343239.js +0 -0
  308. /package/{@viewlift/player-backup/esm → esm}/settings-icon-1e7b0951.js +0 -0
  309. /package/{@viewlift/player-backup/esm → esm}/settings-icon-1fbc99bc.js +0 -0
  310. /package/{@viewlift/player-backup/esm → esm}/skin-271fa63f.js +0 -0
  311. /package/{@viewlift/player-backup/esm → esm}/skin-2c638dc1.js +0 -0
  312. /package/{@viewlift/player-backup/esm → esm}/skin-3dcba1b2.js +0 -0
  313. /package/{@viewlift/player-backup/esm → esm}/skin-71be210e.js +0 -0
  314. /package/{@viewlift/player-backup/esm → esm}/skin-fbab87d5.js +0 -0
  315. /package/{@viewlift/player-backup/esm → esm}/start-begin-btn-1e096fec.js +0 -0
  316. /package/{@viewlift/player-backup/esm → esm}/videoSelector-8e258d45.js +0 -0
  317. /package/{@viewlift/player-backup/esm → esm}/videoSelector-def99d5e.js +0 -0
  318. /package/{@viewlift/player-backup/esm → esm}/videojs-dash5.es-390dd922.js +0 -0
  319. /package/{@viewlift/player-backup/esm → esm}/watch-live-btn-5419f3a7.js +0 -0
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{E as a,e as d,B as c}from"./icons-37daa6b3.js";import{E as m}from"./generic-0d8916dd.js";import{b as u,l as p,i as v,g as h,e as f}from"./currentVideoInfo-a8a254c2.js";import{g as C,p as y}from"./skin-3dcba1b2.js";import{a as g}from"./autoNextVideo-562cb118.js";import{g as b}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-931b842b.js";function N(e){var t=E();return function(){var o,n=l(e);if(t){var s=l(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return i(this,o)}}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}var k=r.getComponent("Component"),S=function(i){s(E,k);var l=N(E);function E(o){var s,i,r,a,d,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,E),(c=l.call(this,o,m)).playerId=m.playerId,c.seriesData=m.sres,c.videos=null==m||null===(s=m.sres)||void 0===s?void 0:s.seasons,c.currentVideoData=m.res,c.initialiseStructure(),c.loadCSS(),c.selectedSeason=0,c.cb=null==m||null===(i=m.series)||void 0===i?void 0:i.cb,c.autoPlayNext=(null==m||null===(r=m.series)||void 0===r?void 0:r.autoPlayNext)||!1,sessionStorage.getItem("token"),c.watchMap=u(),null!==(a=n(c))&&void 0!==a&&a.autoPlayNext&&null!=m&&null!==(d=m.series)&&void 0!==d&&d.enable){var h,f,C,y,b=null==m||null===(h=m.sres)||void 0===h?void 0:h.seasons,N=[];b.map((function(t){N.push.apply(N,e(t.episodes))})),p(N),v(null===(f=c.options_)||void 0===f||null===(C=f.res)||void 0===C||null===(y=C.video)||void 0===y?void 0:y.id),g({playerId:c.playerId,content:N,cb:c.cb,series:null==m?void 0:m.sres})}return c}return o(E,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(a())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,o=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(C(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=r.dom.createEl("div",{className:"series-selection-container hidden"});r.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var n=document.getElementById(this.playerId);if(n){var s=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(s,"px"),r.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=r.dom.createEl("div",{className:"series-selector-head"}),s=r.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(d())});s.onclick=function(){if("series-selector-cross-icon"===s.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===s.className){var n=r.dom.$(".series-selector-content",t.el());for(r.dom.$(".series-selector-cross-icon",t.el()),s.className="series-selector-cross-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var i=t.createSeasonLister();for(r.dom.appendContent(n,i),r.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var l=y(d());s.appendChild(l)}};var i=r.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=r.dom.createEl("div",{className:"series-selector-content"}),a=this.createSeasonLister();r.dom.appendContent(l,a),r.dom.appendContent(n,s),r.dom.appendContent(n,i),r.dom.appendContent(e,n),r.dom.appendContent(e,l),b(this.playerId).on("fullscreenchange",(function(){var o=document.getElementById(t.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(n,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;b(this.playerId);for(var t=h(),o=r.dom.createEl("div",{className:"season-container"}),n=function(n){var s,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(n));var l=document.createElement("div");l.className="season - ".concat(n),l.textContent=null===(s=t[n])||void 0===s?void 0:s.title;var a=r.dom.createEl("input",{className:"radio - ".concat(n),id:"season-".concat(n),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==n&&(a.checked=!0),a.onclick=function(t){f.set(n),e.showSeasonDetails(n)},r.dom.appendContent(i,a),r.dom.appendContent(i,l),r.dom.appendContent(o,i)},s=0;s<t.length;s++)n(s);return o}},{key:"getSeasonDetailsContainer",value:function(t,o){var n=this;t=t.map((function(e){var t,o,s,i,l;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(o=e.gist)||void 0===o||null===(s=o.imageGist)||void 0===s?void 0:s.r16x9,watchedPercentage:(null==n||null===(i=n.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}}));for(var s=function(s){var i,l,a,d,c,u,p,h=r.dom.createEl("div",{className:"series-container"}),f=r.dom.createEl("div",{className:"series-section",index:s}),C=r.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=t[s])||void 0===i?void 0:i.title)||"")}),y=r.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[s].watchedPercentage,"%' class='series-progress-bar-value'></div>")});r.dom.appendContent(f,C),r.dom.appendContent(f,y),r.dom.appendContent(h,f),r.dom.appendContent(o,h);var g=r.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(l=t[s])||void 0===l?void 0:l.description)||"";(null===(a=b)||void 0===a?void 0:a.length)>170&&(b=b.substr(0,170)+"...");var N=r.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),E=r.dom.createEl("img",{className:"series-image"});E.src="".concat((null===(d=t[s])||void 0===d?void 0:d.img)||(null===(c=window)||void 0===c||null===(u=c.customData)||void 0===u?void 0:u.fallbackImage)),E.alt="".concat(null===(p=t[s])||void 0===p?void 0:p.title),r.dom.appendContent(g,E),r.dom.appendContent(g,N),r.dom.appendContent(h,g),r.dom.appendContent(o,h),g.onclick=function(e){var o;e.stopPropagation(),v(null===(o=t[s])||void 0===o?void 0:o.id),m(n.playerId,t[s].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},f.onclick=function(t){var o,n,s,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(o=l.classList)&&void 0!==o&&o.contains("hidden")?(h.style.backgroundColor="#0000007d",null==l||null===(n=l.classList)||void 0===n||n.remove("hidden")):(null==l||null===(s=l.classList)||void 0===s||s.add("hidden"),h.style.backgroundColor="unset")}},i=0;i<t.length;i++)s(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=r.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var o=h()[e].episodes;this.getSeasonDetailsContainer(o,t);var n=r.dom.$(".series-selector-cross-icon",this.el());for(n.className="series-selector-back-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var s=y(c());n.appendChild(s),r.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),E}();export{S as default};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{E as a,e as d,B as c}from"./icons-37daa6b3.js";import{E as m}from"./generic-d3cb033f.js";import{b as u,l as p,i as v,g as h,e as f}from"./currentVideoInfo-a8a254c2.js";import{g as C,p as y}from"./skin-3dcba1b2.js";import{a as g}from"./autoNextVideo-18708ace.js";import{g as b}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-4e79be1c.js";function N(e){var t=E();return function(){var o,n=l(e);if(t){var s=l(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return i(this,o)}}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}var k=r.getComponent("Component"),S=function(i){s(E,k);var l=N(E);function E(o){var s,i,r,a,d,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,E),(c=l.call(this,o,m)).playerId=m.playerId,c.seriesData=m.sres,c.videos=null==m||null===(s=m.sres)||void 0===s?void 0:s.seasons,c.currentVideoData=m.res,c.initialiseStructure(),c.loadCSS(),c.selectedSeason=0,c.cb=null==m||null===(i=m.series)||void 0===i?void 0:i.cb,c.autoPlayNext=(null==m||null===(r=m.series)||void 0===r?void 0:r.autoPlayNext)||!1,sessionStorage.getItem("token"),c.watchMap=u(),null!==(a=n(c))&&void 0!==a&&a.autoPlayNext&&null!=m&&null!==(d=m.series)&&void 0!==d&&d.enable){var h,f,C,y,b=null==m||null===(h=m.sres)||void 0===h?void 0:h.seasons,N=[];b.map((function(t){N.push.apply(N,e(t.episodes))})),p(N),v(null===(f=c.options_)||void 0===f||null===(C=f.res)||void 0===C||null===(y=C.video)||void 0===y?void 0:y.id),g({playerId:c.playerId,content:N,cb:c.cb,series:null==m?void 0:m.sres})}return c}return o(E,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(a())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,o=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(C(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=r.dom.createEl("div",{className:"series-selection-container hidden"});r.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var n=document.getElementById(this.playerId);if(n){var s=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(s,"px"),r.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=r.dom.createEl("div",{className:"series-selector-head"}),s=r.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(d())});s.onclick=function(){if("series-selector-cross-icon"===s.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===s.className){var n=r.dom.$(".series-selector-content",t.el());for(r.dom.$(".series-selector-cross-icon",t.el()),s.className="series-selector-cross-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var i=t.createSeasonLister();for(r.dom.appendContent(n,i),r.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var l=y(d());s.appendChild(l)}};var i=r.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=r.dom.createEl("div",{className:"series-selector-content"}),a=this.createSeasonLister();r.dom.appendContent(l,a),r.dom.appendContent(n,s),r.dom.appendContent(n,i),r.dom.appendContent(e,n),r.dom.appendContent(e,l),b(this.playerId).on("fullscreenchange",(function(){var o=document.getElementById(t.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(n,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;b(this.playerId);for(var t=h(),o=r.dom.createEl("div",{className:"season-container"}),n=function(n){var s,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(n));var l=document.createElement("div");l.className="season - ".concat(n),l.textContent=null===(s=t[n])||void 0===s?void 0:s.title;var a=r.dom.createEl("input",{className:"radio - ".concat(n),id:"season-".concat(n),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==n&&(a.checked=!0),a.onclick=function(t){f.set(n),e.showSeasonDetails(n)},r.dom.appendContent(i,a),r.dom.appendContent(i,l),r.dom.appendContent(o,i)},s=0;s<t.length;s++)n(s);return o}},{key:"getSeasonDetailsContainer",value:function(t,o){var n=this;t=t.map((function(e){var t,o,s,i,l;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(o=e.gist)||void 0===o||null===(s=o.imageGist)||void 0===s?void 0:s.r16x9,watchedPercentage:(null==n||null===(i=n.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}}));for(var s=function(s){var i,l,a,d,c,u,p,h=r.dom.createEl("div",{className:"series-container"}),f=r.dom.createEl("div",{className:"series-section",index:s}),C=r.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=t[s])||void 0===i?void 0:i.title)||"")}),y=r.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[s].watchedPercentage,"%' class='series-progress-bar-value'></div>")});r.dom.appendContent(f,C),r.dom.appendContent(f,y),r.dom.appendContent(h,f),r.dom.appendContent(o,h);var g=r.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(l=t[s])||void 0===l?void 0:l.description)||"";(null===(a=b)||void 0===a?void 0:a.length)>170&&(b=b.substr(0,170)+"...");var N=r.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),E=r.dom.createEl("img",{className:"series-image"});E.src="".concat((null===(d=t[s])||void 0===d?void 0:d.img)||(null===(c=window)||void 0===c||null===(u=c.customData)||void 0===u?void 0:u.fallbackImage)),E.alt="".concat(null===(p=t[s])||void 0===p?void 0:p.title),r.dom.appendContent(g,E),r.dom.appendContent(g,N),r.dom.appendContent(h,g),r.dom.appendContent(o,h),g.onclick=function(e){var o;e.stopPropagation(),v(null===(o=t[s])||void 0===o?void 0:o.id),m(n.playerId,t[s].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},f.onclick=function(t){var o,n,s,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(o=l.classList)&&void 0!==o&&o.contains("hidden")?(h.style.backgroundColor="#0000007d",null==l||null===(n=l.classList)||void 0===n||n.remove("hidden")):(null==l||null===(s=l.classList)||void 0===s||s.add("hidden"),h.style.backgroundColor="unset")}},i=0;i<t.length;i++)s(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=r.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var o=h()[e].episodes;this.getSeasonDetailsContainer(o,t);var n=r.dom.$(".series-selector-cross-icon",this.el());for(n.className="series-selector-back-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var s=y(c());n.appendChild(s),r.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),E}();export{S as default};
@@ -1 +1 @@
1
- import{a as e,b as t,c as o,d as i,e as s}from"./features-cd2d1ef5.js";import{R as r}from"./generic-0d8916dd.js";import{S as n,M as l,a,N as m,b as d,R as p}from"./icons-37daa6b3.js";import{g as u}from"./player_instance-34118a5b.js";import{b as c}from"./skin-3dcba1b2.js";import{a as b}from"./currentVideoInfo-a8a254c2.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"video.js";import"./resolution-1c59b0f3.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function v(v,f){u(v).addClass("skin_default"),r(v,f),import("./skin-71be210e.js").then((function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,t){0==t.liveVideo&&0==t.liveui&&i(e,"default",d());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&s(e,"default",p())}(v,f),function(i,s){var r=u(i),l=(null==s?void 0:s.sres)||null;r.on("loadeddata",(function(){e(i,"default",n()),l&&import("./nextEpisodeButton-55ba4076.js").then((function(e){e.initaliseFunctionality(s.sres.seasons,b())}))})),r.one("loadedmetadata",(function(){var e;l&&(t(i,null==s||null===(e=s.sres)||void 0===e?void 0:e.seasons,s),o(s.sres,s.res,i))}))}(v,f),function(e,t){var o,i,s,r,n=u(e),d=document.getElementsByClassName("vjs-current-time")[0],p=document.getElementsByClassName("vjs-duration")[0],b=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(d&&(d.style.display="none"),p&&(p.style.display="none"),b&&(b.style.display="none"));null===(o=n.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(i=o.el())||void 0===i||i.appendChild(c(l(window.controlsColor))),null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(r=s.el())||void 0===r||r.appendChild(c(a(window.controlsColor)));var v=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(m()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
1
+ import{a as e,b as t,c as o,d as i,e as s}from"./features-778a7117.js";import{R as r}from"./generic-d3cb033f.js";import{S as n,M as l,a,N as m,b as d,R as p}from"./icons-37daa6b3.js";import{g as u}from"./player_instance-34118a5b.js";import{b as c}from"./skin-3dcba1b2.js";import{a as b}from"./currentVideoInfo-a8a254c2.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"video.js";import"./resolution-1c59b0f3.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function v(v,f){u(v).addClass("skin_default"),r(v,f),import("./skin-71be210e.js").then((function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,t){0==t.liveVideo&&0==t.liveui&&i(e,"default",d());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&s(e,"default",p())}(v,f),function(i,s){var r=u(i),l=(null==s?void 0:s.sres)||null;r.on("loadeddata",(function(){e(i,"default",n()),l&&import("./nextEpisodeButton-0f62df3c.js").then((function(e){e.initaliseFunctionality(s.sres.seasons,b())}))})),r.one("loadedmetadata",(function(){var e;l&&(t(i,null==s||null===(e=s.sres)||void 0===e?void 0:e.seasons,s),o(s.sres,s.res,i))}))}(v,f),function(e,t){var o,i,s,r,n=u(e),d=document.getElementsByClassName("vjs-current-time")[0],p=document.getElementsByClassName("vjs-duration")[0],b=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(d&&(d.style.display="none"),p&&(p.style.display="none"),b&&(b.style.display="none"));null===(o=n.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(i=o.el())||void 0===i||i.appendChild(c(l(window.controlsColor))),null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(r=s.el())||void 0===r||r.appendChild(c(a(window.controlsColor)));var v=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(m()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
@@ -1 +1 @@
1
- import{A as e,B as t}from"./generic-0d8916dd.js";import{g as r}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"./currentVideoInfo-a8a254c2.js";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"./skin-3dcba1b2.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";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};
1
+ import{A as e,B as t}from"./generic-d3cb033f.js";import{g as r}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"./currentVideoInfo-a8a254c2.js";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"./skin-3dcba1b2.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";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};
@@ -1 +1 @@
1
- import{f as l,d as i,e,j as n,k as o,l as t,m as r}from"./features-cd2d1ef5.js";import{f as s}from"./icons-37daa6b3.js";import{g as a}from"./player_instance-34118a5b.js";import{p as u,e as d}from"./skin-3dcba1b2.js";import{g as C}from"./resolution-1c59b0f3.js";import{a as v,b as c}from"./index-96695c58.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{V as p}from"./generic-0d8916dd.js";import{a as h,b as m}from"./currentVideoInfo-a8a254c2.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"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-562cb118.js";import"./util-931b842b.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";function f(f,b){a(f).addClass("skin_mini"),function(i,e){var n=a(i);n&&n.on("loadeddata",(function(){var n,o,t,r,s,a,u;(null===(n=C(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),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(r=window)&&void 0!==r&&null!==(s=r.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(u=a.features)&&void 0!==u&&u.auto_play)||null!=e&&e.liveVideo||v(i,e)}))}(f,b),function(l,i){var e,n,o,t,r,s,C,v,c,p,h,m,f,b,B,y,g,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===(C=j.controlBar)||void 0===C||null===(v=C.getChild("PlayToggle"))||void 0===v||null===(c=v.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===(B=j.controlBar)||void 0===B||null===(y=B.getChild("PictureInPictureToggle"))||void 0===y?void 0:y.el())||null;if(N){var _=null==N?void 0:N.querySelector(".vjs-icon-placeholder");_.style.height="25px",_.style.width="25px";var H=d(_,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){H.setAttributeNS(null,"href","#vjs-icon-pip")}))}var P=(null==j||null===(g=j.controlBar)||void 0===g||null===(L=g.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(P){var I=P.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)))}}}(f,b),function(l,a){var u,d,C,v,c,f,b,B,y,g=(null==a||null===(u=a.res)||void 0===u||null===(d=u.video)||void 0===d?void 0:d.isSSAIEnabled)||!1,L=(null==a?void 0:a.skin_settings)||{};null==L||L.slowMoBtn;var j=(null==a||null===(C=a.customData)||void 0===C?void 0:C.ads)||{};null!=L&&L.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&i(l,"VL_ONE",SkipSvgV2());null!=L&&L.rewindBtn&&(0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&e(l,"VL_ONE",s());(null==a||null===(v=a.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&n(l,null==a?void 0:a.relatedVideos);(null==a||null===(f=a.streams)||void 0===f?void 0:f.length)>1&&o(l,null==a?void 0:a.streams);(null==a||null===(b=a.playlist)||void 0===b||null===(B=b.content)||void 0===B?void 0:B.length)>0&&t(l,null==a?void 0:a.playlist);null!=a&&null!==(y=a.series)&&void 0!==y&&y.enable&&r(l,a);if("MEDIA_TAILOR"==(null==j?void 0:j.vodAdSticherProvider)&&null!=j&&j.vodAdClientSideTracking&&g){var w,E=null;if(null!=a&&null!==(w=a.series)&&void 0!==w&&w.enable){var V,x,M,k=null===(V=h())||void 0===V||null===(x=V.video)||void 0===x||null===(M=x.gist)||void 0===M?void 0:M.id,S=m(),Z=(null==S?void 0:S.get(k))||{t:0,p:0},A=Z.t;Z.p<95&&(E=A)}else{var T=a.watchHistoryResumeTime;a.watchedPercentage<95&&(E=T)}p(l,E)}}(f,b),c(f,b)}export{f as initialiseSkin};
1
+ import{f as l,d as i,e,j as n,k as o,l as t,m as r}from"./features-778a7117.js";import{f as s}from"./icons-37daa6b3.js";import{g as a}from"./player_instance-34118a5b.js";import{p as u,e as d}from"./skin-3dcba1b2.js";import{g as C}from"./resolution-1c59b0f3.js";import{a as v,b as c}from"./index-fb68a3fc.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{V as p}from"./generic-d3cb033f.js";import{a as h,b as m}from"./currentVideoInfo-a8a254c2.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"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-18708ace.js";import"./util-4e79be1c.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";function f(f,b){a(f).addClass("skin_mini"),function(i,e){var n=a(i);n&&n.on("loadeddata",(function(){var n,o,t,r,s,a,u;(null===(n=C(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),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(r=window)&&void 0!==r&&null!==(s=r.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(u=a.features)&&void 0!==u&&u.auto_play)||null!=e&&e.liveVideo||v(i,e)}))}(f,b),function(l,i){var e,n,o,t,r,s,C,v,c,p,h,m,f,b,B,y,g,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===(C=j.controlBar)||void 0===C||null===(v=C.getChild("PlayToggle"))||void 0===v||null===(c=v.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===(B=j.controlBar)||void 0===B||null===(y=B.getChild("PictureInPictureToggle"))||void 0===y?void 0:y.el())||null;if(N){var _=null==N?void 0:N.querySelector(".vjs-icon-placeholder");_.style.height="25px",_.style.width="25px";var H=d(_,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){H.setAttributeNS(null,"href","#vjs-icon-pip")}))}var P=(null==j||null===(g=j.controlBar)||void 0===g||null===(L=g.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(P){var I=P.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)))}}}(f,b),function(l,a){var u,d,C,v,c,f,b,B,y,g=(null==a||null===(u=a.res)||void 0===u||null===(d=u.video)||void 0===d?void 0:d.isSSAIEnabled)||!1,L=(null==a?void 0:a.skin_settings)||{};null==L||L.slowMoBtn;var j=(null==a||null===(C=a.customData)||void 0===C?void 0:C.ads)||{};null!=L&&L.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&i(l,"VL_ONE",SkipSvgV2());null!=L&&L.rewindBtn&&(0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&e(l,"VL_ONE",s());(null==a||null===(v=a.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&n(l,null==a?void 0:a.relatedVideos);(null==a||null===(f=a.streams)||void 0===f?void 0:f.length)>1&&o(l,null==a?void 0:a.streams);(null==a||null===(b=a.playlist)||void 0===b||null===(B=b.content)||void 0===B?void 0:B.length)>0&&t(l,null==a?void 0:a.playlist);null!=a&&null!==(y=a.series)&&void 0!==y&&y.enable&&r(l,a);if("MEDIA_TAILOR"==(null==j?void 0:j.vodAdSticherProvider)&&null!=j&&j.vodAdClientSideTracking&&g){var w,E=null;if(null!=a&&null!==(w=a.series)&&void 0!==w&&w.enable){var V,x,M,k=null===(V=h())||void 0===V||null===(x=V.video)||void 0===x||null===(M=x.gist)||void 0===M?void 0:M.id,S=m(),Z=(null==S?void 0:S.get(k))||{t:0,p:0},A=Z.t;Z.p<95&&(E=A)}else{var T=a.watchHistoryResumeTime;a.watchedPercentage<95&&(E=T)}p(l,E)}}(f,b),c(f,b)}export{f as initialiseSkin};
@@ -1 +1 @@
1
- import{f as l,t as i,d as e,e as n,j as o,k as t,l as r,m as s}from"./features-cd2d1ef5.js";import{f as a}from"./icons-37daa6b3.js";import{g as d}from"./player_instance-34118a5b.js";import{p as u,e as v}from"./skin-3dcba1b2.js";import{g as C}from"./resolution-1c59b0f3.js";import{a as c,b as p}from"./index-96695c58.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{U as h,V as m}from"./generic-0d8916dd.js";import{a as f,b}from"./currentVideoInfo-a8a254c2.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"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-562cb118.js";import"./util-931b842b.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";function g(g,L){d(g).addClass("skin_news_live"),function(i,e){var n=d(i);n&&n.on("loadeddata",(function(){var n,o,t,r,s,a,d;(null===(n=C(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),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(r=window)&&void 0!==r&&null!==(s=r.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(d=a.features)&&void 0!==d&&d.auto_play)||null!=e&&e.liveVideo||c(i,e)}))}(g,L),function(l,i){var e,n,o,t,r,s,a,C,c,p,h,m,f,b,g,L,y,B,j,w,V,E,x,k,M,S,T,Z,_,A,H=d(l);null===(e=H.controlBar)||void 0===e||e.removeChild("PlayToggle");var P=null==H||null===(n=H.controlBar)||void 0===n||null===(o=n.el())||void 0===o||null===(t=o.children)||void 0===t?void 0:t[2],N=document.createElement("div");N.className="vjs-play-toggle-container",N.append(null==H||null===(r=H.controlBar)||void 0===r||null===(s=r.addChild("PlayToggle"))||void 0===s?void 0:s.el()),null==H||null===(a=H.controlBar)||void 0===a||null===(C=a.el())||void 0===C||C.insertBefore(N,P),null==H||null===(c=H.controlBar)||void 0===c||c.removeChild("VolumePanel"),null==H||null===(p=H.controlBar)||void 0===p||p.addChild("VolumePanel",{inline:!0},1);var I=null==H||null===(h=H.controlBar)||void 0===h?void 0:h.getChild("ProgressControl");null===(m=H.controlBar)||void 0===m||m.removeChild("SeekToLive"),null===(f=H.controlBar)||void 0===f||f.addChild("SeekToLive",{inline:!1},2);var q=null===(b=H.controlBar)||void 0===b||null===(g=b.getChild("SeekToLive"))||void 0===g?void 0:g.el();q&&(q.onclick=function(){if(H.paused())try{H.play()}catch(l){console.log(l)}});var O=document.createElement("div");O.className="custom-spaced-progress-bar",I&&O.append(I.el());null===(L=H.controlBar)||void 0===L||null===(y=L.el())||void 0===y||y.append(O);var D='<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 <symbol id="vjs-icon-big-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="inherit"/>\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="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\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>\n </svg>';H.el().insertBefore(u(D),null!==(B=H.el().firstChild)&&void 0!==B?B:null);var R=(null==H||null===(j=H.controlBar)||void 0===j||null===(w=j.getChild("PlayToggle"))||void 0===w||null===(V=w.el())||void 0===V?void 0:V.firstChild)||null;if(R){R.style.height="18px",R.style.width="18px";var F=v(R,H.paused()?"#vjs-icon-play":"#vjs-icon-pause");H.on("pause",(function(){return F.setAttributeNS(null,"href","#vjs-icon-play")})),H.on("play",(function(){return F.setAttributeNS(null,"href","#vjs-icon-pause")}))}var z=(null==H||null===(E=H.controlBar)||void 0===E||null===(x=E.getChild("FullscreenToggle"))||void 0===x||null===(k=x.el())||void 0===k?void 0:k.firstChild)||null;if(z){z.style.height="24px",z.style.width="24px";var G=v(z,"#vjs-icon-fullscreen");H.on("fullscreenchange",(function(){var l=H.isFullscreen_;null==G||G.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var K=(null==H||null===(M=H.controlBar)||void 0===M||null===(S=M.getChild("VolumePanel"))||void 0===S?void 0:S.el())||null;if(K){var U=K.querySelector(".vjs-mute-control .vjs-icon-placeholder");U.classList.add("vjs-svg-icon"),U.style.height="24px",U.style.width="24px";var J=v(U,H.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");H.on("volumechange",(function(l){var i=H.volume();console.log(i,H.muted()),0==i||H.muted()?J.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?J.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?J.setAttributeNS(null,"href","#vjs-icon-volume2"):J.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var Q=(null==H||null===(T=H.controlBar)||void 0===T||null===(Z=T.getChild("PictureInPictureToggle"))||void 0===Z?void 0:Z.el())||null;if(Q){var W=null==Q?void 0:Q.querySelector(".vjs-icon-placeholder");W.style.height="25px",W.style.width="25px";var X=v(W,"#vjs-icon-pip");H.on("enterpictureinpicture",(function(){X.setAttributeNS(null,"href","#vjs-icon-pip")}))}var Y=(null==H||null===(_=H.controlBar)||void 0===_||null===(A=_.getChild("SubsCapsButton"))||void 0===A?void 0:A.el())||null;if(Y){var $=Y.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");$.classList.add("vjs-svg-icon"),$.style.height="29px",$.style.width="29px";var ll=v($,"#vjs-icon-caps");ll.setAttributeNS(null,"href","#vjs-icon-captions-off"),H.textTracks().on("change",(function(l){for(var i=H.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?ll.setAttributeNS(null,"href","#vjs-icon-captions"):ll.setAttributeNS(null,"href","#vjs-icon-captions-off")}))}H&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(H.liveTracker.on("liveedgechange",(function(){nl(H)})),H.on("timeupdate",(function(){nl(H)})));function il(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 el(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 nl(l){var i,e,n=l.liveTracker.atLiveEdge(),o=el(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=il(o)))}}}(g,L),function(l,d){var u,v,C,c,p,g,L,y,B,j,w=(null==d?void 0:d.liveVideo)||!1,V=(null==d||null===(u=d.res)||void 0===u?void 0:u.contentType)||"video",E=(null==d||null===(v=d.res)||void 0===v||null===(C=v[V])||void 0===C?void 0:C.isSSAIEnabled)||!1,x=(null==d?void 0:d.skin_settings)||{};null==x||x.slowMoBtn;var k=(null==d||null===(c=d.customData)||void 0===c?void 0:c.ads)||{};i(l),null!=x&&x.skipBtn&&0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)&&e(l,"VL_ONE",SkipSvgV2());null!=x&&x.rewindBtn&&(0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)||1==(null==d?void 0:d.liveui))&&n(l,"VL_ONE",a());(null==d||null===(p=d.relatedVideos)||void 0===p||null===(g=p.content)||void 0===g?void 0:g.length)>0&&o(l,null==d?void 0:d.relatedVideos);(null==d||null===(L=d.streams)||void 0===L?void 0:L.length)>1&&t(l,null==d?void 0:d.streams);(null==d||null===(y=d.playlist)||void 0===y||null===(B=y.content)||void 0===B?void 0:B.length)>0&&r(l,null==d?void 0:d.playlist);null!=d&&null!==(j=d.series)&&void 0!==j&&j.enable&&s(l,d);if("MEDIA_TAILOR"==(null==k?void 0:k.vodAdSticherProvider)&&null!=k&&k.vodAdClientSideTracking&&E)if(w)h(l);else{var M,S=null;if(null!=d&&null!==(M=d.series)&&void 0!==M&&M.enable){var T,Z,_,A,H,P=null===(T=f())||void 0===T||null===(Z=T.video)||void 0===Z||null===(_=Z.gist)||void 0===_?void 0:_.id,N=b(),I=(null==N?void 0:N.get(P))||{t:0,p:0},q=I.t,O=I.p;"function"==typeof(null===(A=window)||void 0===A||null===(H=A.watchHistory)||void 0===H?void 0:H.cb)&&window.watchHistory.cb({watchedTime:q}),O<95&&(S=q)}else{var D=d.watchHistoryResumeTime;d.watchedPercentage<95&&(S=D)}m(l,S)}}(g,L),p(g,L)}export{g as initialiseSkin};
1
+ import{f as l,t as i,d as e,e as n,j as o,k as t,l as r,m as s}from"./features-778a7117.js";import{f as a}from"./icons-37daa6b3.js";import{g as d}from"./player_instance-34118a5b.js";import{p as u,e as v}from"./skin-3dcba1b2.js";import{g as C}from"./resolution-1c59b0f3.js";import{a as c,b as p}from"./index-fb68a3fc.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{U as h,V as m}from"./generic-d3cb033f.js";import{a as f,b}from"./currentVideoInfo-a8a254c2.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"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-18708ace.js";import"./util-4e79be1c.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";function g(g,L){d(g).addClass("skin_news_live"),function(i,e){var n=d(i);n&&n.on("loadeddata",(function(){var n,o,t,r,s,a,d;(null===(n=C(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),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(r=window)&&void 0!==r&&null!==(s=r.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(d=a.features)&&void 0!==d&&d.auto_play)||null!=e&&e.liveVideo||c(i,e)}))}(g,L),function(l,i){var e,n,o,t,r,s,a,C,c,p,h,m,f,b,g,L,y,B,j,w,V,E,x,k,M,S,T,Z,_,A,H=d(l);null===(e=H.controlBar)||void 0===e||e.removeChild("PlayToggle");var P=null==H||null===(n=H.controlBar)||void 0===n||null===(o=n.el())||void 0===o||null===(t=o.children)||void 0===t?void 0:t[2],N=document.createElement("div");N.className="vjs-play-toggle-container",N.append(null==H||null===(r=H.controlBar)||void 0===r||null===(s=r.addChild("PlayToggle"))||void 0===s?void 0:s.el()),null==H||null===(a=H.controlBar)||void 0===a||null===(C=a.el())||void 0===C||C.insertBefore(N,P),null==H||null===(c=H.controlBar)||void 0===c||c.removeChild("VolumePanel"),null==H||null===(p=H.controlBar)||void 0===p||p.addChild("VolumePanel",{inline:!0},1);var I=null==H||null===(h=H.controlBar)||void 0===h?void 0:h.getChild("ProgressControl");null===(m=H.controlBar)||void 0===m||m.removeChild("SeekToLive"),null===(f=H.controlBar)||void 0===f||f.addChild("SeekToLive",{inline:!1},2);var q=null===(b=H.controlBar)||void 0===b||null===(g=b.getChild("SeekToLive"))||void 0===g?void 0:g.el();q&&(q.onclick=function(){if(H.paused())try{H.play()}catch(l){console.log(l)}});var O=document.createElement("div");O.className="custom-spaced-progress-bar",I&&O.append(I.el());null===(L=H.controlBar)||void 0===L||null===(y=L.el())||void 0===y||y.append(O);var D='<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 <symbol id="vjs-icon-big-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="inherit"/>\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="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\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>\n </svg>';H.el().insertBefore(u(D),null!==(B=H.el().firstChild)&&void 0!==B?B:null);var R=(null==H||null===(j=H.controlBar)||void 0===j||null===(w=j.getChild("PlayToggle"))||void 0===w||null===(V=w.el())||void 0===V?void 0:V.firstChild)||null;if(R){R.style.height="18px",R.style.width="18px";var F=v(R,H.paused()?"#vjs-icon-play":"#vjs-icon-pause");H.on("pause",(function(){return F.setAttributeNS(null,"href","#vjs-icon-play")})),H.on("play",(function(){return F.setAttributeNS(null,"href","#vjs-icon-pause")}))}var z=(null==H||null===(E=H.controlBar)||void 0===E||null===(x=E.getChild("FullscreenToggle"))||void 0===x||null===(k=x.el())||void 0===k?void 0:k.firstChild)||null;if(z){z.style.height="24px",z.style.width="24px";var G=v(z,"#vjs-icon-fullscreen");H.on("fullscreenchange",(function(){var l=H.isFullscreen_;null==G||G.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var K=(null==H||null===(M=H.controlBar)||void 0===M||null===(S=M.getChild("VolumePanel"))||void 0===S?void 0:S.el())||null;if(K){var U=K.querySelector(".vjs-mute-control .vjs-icon-placeholder");U.classList.add("vjs-svg-icon"),U.style.height="24px",U.style.width="24px";var J=v(U,H.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");H.on("volumechange",(function(l){var i=H.volume();console.log(i,H.muted()),0==i||H.muted()?J.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?J.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?J.setAttributeNS(null,"href","#vjs-icon-volume2"):J.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var Q=(null==H||null===(T=H.controlBar)||void 0===T||null===(Z=T.getChild("PictureInPictureToggle"))||void 0===Z?void 0:Z.el())||null;if(Q){var W=null==Q?void 0:Q.querySelector(".vjs-icon-placeholder");W.style.height="25px",W.style.width="25px";var X=v(W,"#vjs-icon-pip");H.on("enterpictureinpicture",(function(){X.setAttributeNS(null,"href","#vjs-icon-pip")}))}var Y=(null==H||null===(_=H.controlBar)||void 0===_||null===(A=_.getChild("SubsCapsButton"))||void 0===A?void 0:A.el())||null;if(Y){var $=Y.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");$.classList.add("vjs-svg-icon"),$.style.height="29px",$.style.width="29px";var ll=v($,"#vjs-icon-caps");ll.setAttributeNS(null,"href","#vjs-icon-captions-off"),H.textTracks().on("change",(function(l){for(var i=H.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?ll.setAttributeNS(null,"href","#vjs-icon-captions"):ll.setAttributeNS(null,"href","#vjs-icon-captions-off")}))}H&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(H.liveTracker.on("liveedgechange",(function(){nl(H)})),H.on("timeupdate",(function(){nl(H)})));function il(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 el(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 nl(l){var i,e,n=l.liveTracker.atLiveEdge(),o=el(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=il(o)))}}}(g,L),function(l,d){var u,v,C,c,p,g,L,y,B,j,w=(null==d?void 0:d.liveVideo)||!1,V=(null==d||null===(u=d.res)||void 0===u?void 0:u.contentType)||"video",E=(null==d||null===(v=d.res)||void 0===v||null===(C=v[V])||void 0===C?void 0:C.isSSAIEnabled)||!1,x=(null==d?void 0:d.skin_settings)||{};null==x||x.slowMoBtn;var k=(null==d||null===(c=d.customData)||void 0===c?void 0:c.ads)||{};i(l),null!=x&&x.skipBtn&&0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)&&e(l,"VL_ONE",SkipSvgV2());null!=x&&x.rewindBtn&&(0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)||1==(null==d?void 0:d.liveui))&&n(l,"VL_ONE",a());(null==d||null===(p=d.relatedVideos)||void 0===p||null===(g=p.content)||void 0===g?void 0:g.length)>0&&o(l,null==d?void 0:d.relatedVideos);(null==d||null===(L=d.streams)||void 0===L?void 0:L.length)>1&&t(l,null==d?void 0:d.streams);(null==d||null===(y=d.playlist)||void 0===y||null===(B=y.content)||void 0===B?void 0:B.length)>0&&r(l,null==d?void 0:d.playlist);null!=d&&null!==(j=d.series)&&void 0!==j&&j.enable&&s(l,d);if("MEDIA_TAILOR"==(null==k?void 0:k.vodAdSticherProvider)&&null!=k&&k.vodAdClientSideTracking&&E)if(w)h(l);else{var M,S=null;if(null!=d&&null!==(M=d.series)&&void 0!==M&&M.enable){var T,Z,_,A,H,P=null===(T=f())||void 0===T||null===(Z=T.video)||void 0===Z||null===(_=Z.gist)||void 0===_?void 0:_.id,N=b(),I=(null==N?void 0:N.get(P))||{t:0,p:0},q=I.t,O=I.p;"function"==typeof(null===(A=window)||void 0===A||null===(H=A.watchHistory)||void 0===H?void 0:H.cb)&&window.watchHistory.cb({watchedTime:q}),O<95&&(S=q)}else{var D=d.watchHistoryResumeTime;d.watchedPercentage<95&&(S=D)}m(l,S)}}(g,L),p(g,L)}export{g as initialiseSkin};
@@ -1 +1 @@
1
- import{f as l,t as i,d as e,e as n,j as o,k as t,l as s,m as r}from"./features-cd2d1ef5.js";import{f as a}from"./icons-37daa6b3.js";import{g as d}from"./player_instance-34118a5b.js";import{p as u,e as v}from"./skin-3dcba1b2.js";import{g as C}from"./resolution-1c59b0f3.js";import{a as c,b as p}from"./index-96695c58.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{U as h,V as m}from"./generic-0d8916dd.js";import{a as f,b as y}from"./currentVideoInfo-a8a254c2.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"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-562cb118.js";import"./util-931b842b.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";function b(b,L){d(b).addClass("skin_news"),function(i,e){var n=d(i);n&&n.on("loadeddata",(function(){var n,o,t,s,r,a,d;(null===(n=C(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),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(s=window)&&void 0!==s&&null!==(r=s.app_data)&&void 0!==r&&null!==(a=r.appcmsMain)&&void 0!==a&&null!==(d=a.features)&&void 0!==d&&d.auto_play)||null!=e&&e.liveVideo||c(i,e)}))}(b,L),function(l,i){var e,n,o,t,s,r,a,C,c,p,h,m,f,y,b,L,g,B,j=d(l);if(null!=i&&i.liveVideo){var w,V,E,x,M,k,S=null===(w=j.controlBar)||void 0===w||null===(V=w.getChild("TimeDivider"))||void 0===V?void 0:V.el(),Z=null===(E=j.controlBar)||void 0===E||null===(x=E.getChild("CurrentTimeDisplay"))||void 0===x?void 0:x.el(),T=null===(M=j.controlBar)||void 0===M||null===(k=M.getChild("DurationDisplay"))||void 0===k?void 0:k.el();S&&(S.style.display="none"),Z&&(Z.style.display="none"),T&&(T.style.display="none")}var A=null===(e=j.controlBar)||void 0===e?void 0:e.getChild("ProgressControl"),_=null===(n=j.controlBar)||void 0===n||null===(o=n.getChild("SeekToLive"))||void 0===o?void 0:o.el();_&&(_.onclick=function(){if(j.paused())try{j.play()}catch(l){console.log(l)}});var H=document.createElement("div");H.className="custom-spaced-progress-bar",A&&H.append(A.el());null===(t=j.controlBar)||void 0===t||null===(s=t.el())||void 0===s||s.append(H);var N='<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 <symbol id="vjs-icon-big-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="inherit"/>\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="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\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>\n </svg>';j.el().insertBefore(u(N),null!==(r=j.el().firstChild)&&void 0!==r?r:null);var P=(null==j||null===(a=j.controlBar)||void 0===a||null===(C=a.getChild("PlayToggle"))||void 0===C||null===(c=C.el())||void 0===c?void 0:c.firstChild)||null;if(P){P.style.height="18px",P.style.width="18px";var D=v(P,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",(function(){return D.setAttributeNS(null,"href","#vjs-icon-play")})),j.on("play",(function(){return D.setAttributeNS(null,"href","#vjs-icon-pause")}))}var I=(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(I){I.style.height="24px",I.style.width="24px";var q=v(I,"#vjs-icon-fullscreen");j.on("fullscreenchange",(function(){var l=j.isFullscreen_;null==q||q.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var O=(null==j||null===(f=j.controlBar)||void 0===f||null===(y=f.getChild("VolumePanel"))||void 0===y?void 0:y.el())||null;if(O){var R=O.querySelector(".vjs-mute-control .vjs-icon-placeholder");R.classList.add("vjs-svg-icon"),R.style.height="24px",R.style.width="24px";var F=v(R,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",(function(l){var i=j.volume();console.log(i,j.muted()),0==i||j.muted()?F.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?F.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?F.setAttributeNS(null,"href","#vjs-icon-volume2"):F.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var z=(null==j||null===(b=j.controlBar)||void 0===b||null===(L=b.getChild("PictureInPictureToggle"))||void 0===L?void 0:L.el())||null;if(z){var G=null==z?void 0:z.querySelector(".vjs-icon-placeholder");G.style.height="25px",G.style.width="25px";var K=v(G,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){K.setAttributeNS(null,"href","#vjs-icon-pip")}))}var U=(null==j||null===(g=j.controlBar)||void 0===g||null===(B=g.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(U){var J=U.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");J.classList.add("vjs-svg-icon"),J.style.height="29px",J.style.width="29px";var Q=v(J,"#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(){Y(j)})),j.on("timeupdate",(function(){Y(j)})));function W(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 X(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 Y(l){var i,e,n=l.liveTracker.atLiveEdge(),o=X(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 s=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",s&&(s.innerText=W(o)))}}}(b,L),function(l,d){var u,v,C,c,p,b,L,g,B,j,w=(null==d?void 0:d.liveVideo)||!1,V=(null==d||null===(u=d.res)||void 0===u?void 0:u.contentType)||"video",E=(null==d||null===(v=d.res)||void 0===v||null===(C=v[V])||void 0===C?void 0:C.isSSAIEnabled)||!1,x=(null==d?void 0:d.skin_settings)||{};null==x||x.slowMoBtn;var M=(null==d||null===(c=d.customData)||void 0===c?void 0:c.ads)||{};i(l),null!=x&&x.skipBtn&&0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)&&e(l,"VL_ONE",SkipSvgV2());null!=x&&x.rewindBtn&&(0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)||1==(null==d?void 0:d.liveui))&&n(l,"VL_ONE",a());(null==d||null===(p=d.relatedVideos)||void 0===p||null===(b=p.content)||void 0===b?void 0:b.length)>0&&o(l,null==d?void 0:d.relatedVideos);(null==d||null===(L=d.streams)||void 0===L?void 0:L.length)>1&&t(l,null==d?void 0:d.streams);(null==d||null===(g=d.playlist)||void 0===g||null===(B=g.content)||void 0===B?void 0:B.length)>0&&s(l,null==d?void 0:d.playlist);null!=d&&null!==(j=d.series)&&void 0!==j&&j.enable&&r(l,d);if("MEDIA_TAILOR"==(null==M?void 0:M.vodAdSticherProvider)&&null!=M&&M.vodAdClientSideTracking&&E)if(w)h(l);else{var k,S=null;if(null!=d&&null!==(k=d.series)&&void 0!==k&&k.enable){var Z,T,A,_,H,N=null===(Z=f())||void 0===Z||null===(T=Z.video)||void 0===T||null===(A=T.gist)||void 0===A?void 0:A.id,P=y(),D=(null==P?void 0:P.get(N))||{t:0,p:0},I=D.t,q=D.p;"function"==typeof(null===(_=window)||void 0===_||null===(H=_.watchHistory)||void 0===H?void 0:H.cb)&&window.watchHistory.cb({watchedTime:I}),q<95&&(S=I)}else{var O=d.watchHistoryResumeTime;d.watchedPercentage<95&&(S=O)}m(l,S)}}(b,L),p(b,L)}export{b as initialiseSkin};
1
+ import{f as l,t as i,d as e,e as n,j as o,k as t,l as s,m as r}from"./features-778a7117.js";import{f as a}from"./icons-37daa6b3.js";import{g as d}from"./player_instance-34118a5b.js";import{p as u,e as v}from"./skin-3dcba1b2.js";import{g as C}from"./resolution-1c59b0f3.js";import{a as c,b as p}from"./index-fb68a3fc.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{U as h,V as m}from"./generic-d3cb033f.js";import{a as f,b as y}from"./currentVideoInfo-a8a254c2.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"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-18708ace.js";import"./util-4e79be1c.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";function b(b,L){d(b).addClass("skin_news"),function(i,e){var n=d(i);n&&n.on("loadeddata",(function(){var n,o,t,s,r,a,d;(null===(n=C(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),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(s=window)&&void 0!==s&&null!==(r=s.app_data)&&void 0!==r&&null!==(a=r.appcmsMain)&&void 0!==a&&null!==(d=a.features)&&void 0!==d&&d.auto_play)||null!=e&&e.liveVideo||c(i,e)}))}(b,L),function(l,i){var e,n,o,t,s,r,a,C,c,p,h,m,f,y,b,L,g,B,j=d(l);if(null!=i&&i.liveVideo){var w,V,E,x,M,k,S=null===(w=j.controlBar)||void 0===w||null===(V=w.getChild("TimeDivider"))||void 0===V?void 0:V.el(),Z=null===(E=j.controlBar)||void 0===E||null===(x=E.getChild("CurrentTimeDisplay"))||void 0===x?void 0:x.el(),T=null===(M=j.controlBar)||void 0===M||null===(k=M.getChild("DurationDisplay"))||void 0===k?void 0:k.el();S&&(S.style.display="none"),Z&&(Z.style.display="none"),T&&(T.style.display="none")}var A=null===(e=j.controlBar)||void 0===e?void 0:e.getChild("ProgressControl"),_=null===(n=j.controlBar)||void 0===n||null===(o=n.getChild("SeekToLive"))||void 0===o?void 0:o.el();_&&(_.onclick=function(){if(j.paused())try{j.play()}catch(l){console.log(l)}});var H=document.createElement("div");H.className="custom-spaced-progress-bar",A&&H.append(A.el());null===(t=j.controlBar)||void 0===t||null===(s=t.el())||void 0===s||s.append(H);var N='<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 <symbol id="vjs-icon-big-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="inherit"/>\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="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\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>\n </svg>';j.el().insertBefore(u(N),null!==(r=j.el().firstChild)&&void 0!==r?r:null);var P=(null==j||null===(a=j.controlBar)||void 0===a||null===(C=a.getChild("PlayToggle"))||void 0===C||null===(c=C.el())||void 0===c?void 0:c.firstChild)||null;if(P){P.style.height="18px",P.style.width="18px";var D=v(P,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",(function(){return D.setAttributeNS(null,"href","#vjs-icon-play")})),j.on("play",(function(){return D.setAttributeNS(null,"href","#vjs-icon-pause")}))}var I=(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(I){I.style.height="24px",I.style.width="24px";var q=v(I,"#vjs-icon-fullscreen");j.on("fullscreenchange",(function(){var l=j.isFullscreen_;null==q||q.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var O=(null==j||null===(f=j.controlBar)||void 0===f||null===(y=f.getChild("VolumePanel"))||void 0===y?void 0:y.el())||null;if(O){var R=O.querySelector(".vjs-mute-control .vjs-icon-placeholder");R.classList.add("vjs-svg-icon"),R.style.height="24px",R.style.width="24px";var F=v(R,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",(function(l){var i=j.volume();console.log(i,j.muted()),0==i||j.muted()?F.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?F.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?F.setAttributeNS(null,"href","#vjs-icon-volume2"):F.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var z=(null==j||null===(b=j.controlBar)||void 0===b||null===(L=b.getChild("PictureInPictureToggle"))||void 0===L?void 0:L.el())||null;if(z){var G=null==z?void 0:z.querySelector(".vjs-icon-placeholder");G.style.height="25px",G.style.width="25px";var K=v(G,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){K.setAttributeNS(null,"href","#vjs-icon-pip")}))}var U=(null==j||null===(g=j.controlBar)||void 0===g||null===(B=g.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(U){var J=U.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");J.classList.add("vjs-svg-icon"),J.style.height="29px",J.style.width="29px";var Q=v(J,"#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(){Y(j)})),j.on("timeupdate",(function(){Y(j)})));function W(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 X(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 Y(l){var i,e,n=l.liveTracker.atLiveEdge(),o=X(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 s=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",s&&(s.innerText=W(o)))}}}(b,L),function(l,d){var u,v,C,c,p,b,L,g,B,j,w=(null==d?void 0:d.liveVideo)||!1,V=(null==d||null===(u=d.res)||void 0===u?void 0:u.contentType)||"video",E=(null==d||null===(v=d.res)||void 0===v||null===(C=v[V])||void 0===C?void 0:C.isSSAIEnabled)||!1,x=(null==d?void 0:d.skin_settings)||{};null==x||x.slowMoBtn;var M=(null==d||null===(c=d.customData)||void 0===c?void 0:c.ads)||{};i(l),null!=x&&x.skipBtn&&0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)&&e(l,"VL_ONE",SkipSvgV2());null!=x&&x.rewindBtn&&(0==(null==d?void 0:d.liveVideo)&&0==(null==d?void 0:d.liveui)||1==(null==d?void 0:d.liveui))&&n(l,"VL_ONE",a());(null==d||null===(p=d.relatedVideos)||void 0===p||null===(b=p.content)||void 0===b?void 0:b.length)>0&&o(l,null==d?void 0:d.relatedVideos);(null==d||null===(L=d.streams)||void 0===L?void 0:L.length)>1&&t(l,null==d?void 0:d.streams);(null==d||null===(g=d.playlist)||void 0===g||null===(B=g.content)||void 0===B?void 0:B.length)>0&&s(l,null==d?void 0:d.playlist);null!=d&&null!==(j=d.series)&&void 0!==j&&j.enable&&r(l,d);if("MEDIA_TAILOR"==(null==M?void 0:M.vodAdSticherProvider)&&null!=M&&M.vodAdClientSideTracking&&E)if(w)h(l);else{var k,S=null;if(null!=d&&null!==(k=d.series)&&void 0!==k&&k.enable){var Z,T,A,_,H,N=null===(Z=f())||void 0===Z||null===(T=Z.video)||void 0===T||null===(A=T.gist)||void 0===A?void 0:A.id,P=y(),D=(null==P?void 0:P.get(N))||{t:0,p:0},I=D.t,q=D.p;"function"==typeof(null===(_=window)||void 0===_||null===(H=_.watchHistory)||void 0===H?void 0:H.cb)&&window.watchHistory.cb({watchedTime:I}),q<95&&(S=I)}else{var O=d.watchHistoryResumeTime;d.watchedPercentage<95&&(S=O)}m(l,S)}}(b,L),p(b,L)}export{b as initialiseSkin};
@@ -1 +1 @@
1
- import{A as e,B as r}from"./generic-0d8916dd.js";import{g as t}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"./currentVideoInfo-a8a254c2.js";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"./skin-3dcba1b2.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function o(e){n(e),i(e)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",(function(){i.paused()?e(o):r(o)}))},n=function(e){var r=t(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
1
+ import{A as e,B as r}from"./generic-d3cb033f.js";import{g as t}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"./currentVideoInfo-a8a254c2.js";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"./skin-3dcba1b2.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";function o(e){n(e),i(e)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",(function(){i.paused()?e(o):r(o)}))},n=function(e){var r=t(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
@@ -1 +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-cd2d1ef5.js";import{M as u,a as m,c as p,d as v}from"./icons-37daa6b3.js";import{g as c}from"./player_instance-34118a5b.js";import{b as h}from"./skin-3dcba1b2.js";import{g as f}from"./resolution-1c59b0f3.js";import{g as b}from"./captions-f507e8ee.js";import{a as g,b as C}from"./index-96695c58.js";import{i as j}from"./index-d4b7f0f1.js";import{S as y,d as V}from"./generic-0d8916dd.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"video.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./currentVideoInfo-a8a254c2.js";import"./autoNextVideo-562cb118.js";import"./util-931b842b.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"@viewlift/comscore/index.js";function w(w,B){c(w).addClass("skin_defaultv2"),function(){"Chrome"==V()&&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-fbab87d5.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;(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),!(null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable||null!==(a=window)&&void 0!==a&&null!==(d=a.app_data)&&void 0!==d&&null!==(s=d.appcmsMain)&&void 0!==s&&null!==(u=s.features)&&void 0!==u&&u.auto_play)||null!=n&&n.liveVideo||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)})))}(w,B),function(l,e){var o,i,n,t,r,a,d,s,p,v,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"),V=null===(r=C.controlBar)||void 0===r?void 0:r.getChild("SeekToLive"),w=document.createElement("div");w.className="custom-spaced-progress-bar",j&&y&&V&&w.append(j.el(),y.el(),V.el());null===(a=C.controlBar)||void 0===a||null===(d=a.el())||void 0===d||d.append(w),null==C||null===(s=C.controlBar)||void 0===s||null===(p=s.getChild("FullscreenToggle"))||void 0===p||null===(v=p.el())||void 0===v||v.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(m(window.controlsColor)));var B=document.getElementsByClassName("vjs-time-control");e.liveVideo&&B[0]&&(B[0].style.display="none")}(w,B),function(l,e){var o,u,m,c,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",p());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",v());!e.liveVideo&&g&&t(l);(null==e||null===(o=e.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&r(l,null==e?void 0:e.relatedVideos);(null==e||null===(m=e.streams)||void 0===m?void 0:m.length)>1&&a(l,null==e?void 0:e.streams);(null==e||null===(c=e.playlist)||void 0===c||null===(h=c.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)}(w,B),C(w,B)}export{w as initialiseSkin};
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-778a7117.js";import{M as u,a as m,c as p,d as v}from"./icons-37daa6b3.js";import{g as c}from"./player_instance-34118a5b.js";import{b as h}from"./skin-3dcba1b2.js";import{g as f}from"./resolution-1c59b0f3.js";import{g as b}from"./captions-f507e8ee.js";import{a as g,b as C}from"./index-fb68a3fc.js";import{i as j}from"./index-d485bd0c.js";import{S as y,d as V}from"./generic-d3cb033f.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"video.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./currentVideoInfo-a8a254c2.js";import"./autoNextVideo-18708ace.js";import"./util-4e79be1c.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"@viewlift/comscore/index.js";function w(w,B){c(w).addClass("skin_defaultv2"),function(){"Chrome"==V()&&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-fbab87d5.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;(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),!(null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable||null!==(a=window)&&void 0!==a&&null!==(d=a.app_data)&&void 0!==d&&null!==(s=d.appcmsMain)&&void 0!==s&&null!==(u=s.features)&&void 0!==u&&u.auto_play)||null!=n&&n.liveVideo||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)})))}(w,B),function(l,e){var o,i,n,t,r,a,d,s,p,v,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"),V=null===(r=C.controlBar)||void 0===r?void 0:r.getChild("SeekToLive"),w=document.createElement("div");w.className="custom-spaced-progress-bar",j&&y&&V&&w.append(j.el(),y.el(),V.el());null===(a=C.controlBar)||void 0===a||null===(d=a.el())||void 0===d||d.append(w),null==C||null===(s=C.controlBar)||void 0===s||null===(p=s.getChild("FullscreenToggle"))||void 0===p||null===(v=p.el())||void 0===v||v.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(m(window.controlsColor)));var B=document.getElementsByClassName("vjs-time-control");e.liveVideo&&B[0]&&(B[0].style.display="none")}(w,B),function(l,e){var o,u,m,c,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",p());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",v());!e.liveVideo&&g&&t(l);(null==e||null===(o=e.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&r(l,null==e?void 0:e.relatedVideos);(null==e||null===(m=e.streams)||void 0===m?void 0:m.length)>1&&a(l,null==e?void 0:e.streams);(null==e||null===(c=e.playlist)||void 0===c||null===(h=c.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)}(w,B),C(w,B)}export{w as initialiseSkin};
@@ -1 +1 @@
1
- import{g as e}from"./player_instance-34118a5b.js";import{f as r,n as t}from"./features-cd2d1ef5.js";import{g as i}from"./resolution-1c59b0f3.js";import{r as o}from"./captions-f507e8ee.js";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-0d8916dd.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"./currentVideoInfo-a8a254c2.js";import"@babel/runtime/helpers/typeof";import"./skin-3dcba1b2.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/assertThisInitialized";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=i(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&o(t)}))}(s,n),function(r,i){var o=e(r);o.controls(!1),t(r)}(s)}export{s as initialiseSkin};
1
+ import{g as e}from"./player_instance-34118a5b.js";import{f as r,n as t}from"./features-778a7117.js";import{g as i}from"./resolution-1c59b0f3.js";import{r as o}from"./captions-f507e8ee.js";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-d3cb033f.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"./currentVideoInfo-a8a254c2.js";import"@babel/runtime/helpers/typeof";import"./skin-3dcba1b2.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/assertThisInitialized";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=i(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&o(t)}))}(s,n),function(r,i){var o=e(r);o.controls(!1),t(r)}(s)}export{s as initialiseSkin};
@@ -1 +1 @@
1
- import{h as l,d as e,e as o,o as i,p as n,q as t,r,s as a}from"./features-cd2d1ef5.js";import{g as u}from"./player_instance-34118a5b.js";import{a as s,b as d}from"./index-96695c58.js";import{i as v}from"./index-d4b7f0f1.js";import{S as c,e as m,R as p,U as b,V as h}from"./generic-0d8916dd.js";import"videojs-contrib-quality-menu";import{i as f,r as y}from"./index-6878d5da.js";import{c as g}from"./helper-349e076f.js";import{c as j,a as w,b as C}from"./currentVideoInfo-a8a254c2.js";import k from"video.js";import{c as T,d as B}from"./icons-37daa6b3.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"./resolution-1c59b0f3.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./skin-3dcba1b2.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-562cb118.js";import"./util-931b842b.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";import"video.js/dist/video-js.min.css";function L(e,o){var i=u(e);i&&(i.on("loadeddata",(function(){var l,n,t,r,a,d=g(o),m=j();i.qualityLevels()&&i.qualityLevels().length&&function(l){var e=u(l);e&&(null==e||e.qualityMenu,e.qualityMenu({useResolutionLabels:!0}))}(e),!(null!=o&&null!==(l=o.series)&&void 0!==l&&l.enable||null!==(n=window)&&void 0!==n&&null!==(t=n.app_data)&&void 0!==t&&null!==(r=t.appcmsMain)&&void 0!==r&&null!==(a=r.features)&&void 0!==a&&a.auto_play)||null!=o&&o.liveVideo||s(e,o),null!=o&&o.liveVideo||c()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||v(e),d&&m&&m.length?f(e):y()})),i.one("play",(function(){var o,i,n,t;null!==(o=window)&&void 0!==o&&null!==(i=o.customData)&&void 0!==i&&i.iframeOverlayUrl&&l(e,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)})))}function V(l,s){u(l).addClass("skin_vlone"),L(l,s),function(l,s){var v,c,f,y,j,k,L,V,E,M=u(l),q=(null==s?void 0:s.liveVideo)||!1,x=(null==s||null===(v=s.res)||void 0===v?void 0:v.contentType)||"video",_=(null==s||null===(c=s.res)||void 0===c||null===(f=c[x])||void 0===f?void 0:f.isSSAIEnabled)||!1,A=m(null==s?void 0:s.res,l)||{};A.src;var D=(null==s?void 0:s.skin_settings)||{},I=(null==s||null===(y=s.customData)||void 0===y?void 0:y.ads)||{};if(g(s),q&&!(null!=s&&s.liveui)){var R,S,O=(null==M||null===(R=M.controlBar)||void 0===R||null===(S=R.getChild("LiveDisplay"))||void 0===S?void 0:S.el())||null;O&&(O.onclick=function(){try{var l;null==M||null===(l=M.liveTracker)||void 0===l||l.seekToLiveEdge()}catch(l){console.log(l,"Cannot seek to LE")}})}null!=D&&D.skipBtn&&0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)&&e(l,"VL_ONE",T());(null!=D&&D.rewindBtn&&0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)||1==(null==s?void 0:s.liveui))&&o(l,"VL_ONE",B());(null==s||null===(j=s.relatedVideos)||void 0===j||null===(k=j.content)||void 0===k?void 0:k.length)>0&&i(l,null==s?void 0:s.relatedVideos);null!=s&&null!==(L=s.series)&&void 0!==L&&L.enable&&n(l,s);(null==s||null===(V=s.streams)||void 0===V?void 0:V.length)>1&&t(l,null==s?void 0:s.streams);if(d(l,s),p(l,s),"MEDIA_TAILOR"==(null==I?void 0:I.vodAdSticherProvider)&&null!=I&&I.vodAdClientSideTracking&&_)if(q)b(l);else{var P,H=null;if(null!=s&&null!==(P=s.series)&&void 0!==P&&P.enable){var N,U,$,z,G,J=null===(N=w())||void 0===N||null===(U=N.video)||void 0===U||null===($=U.gist)||void 0===$?void 0:$.id,K=C(),Y=(null==K?void 0:K.get(J))||{t:0,p:0},F=Y.t,Q=Y.p;"function"==typeof(null===(z=window)||void 0===z||null===(G=z.watchHistory)||void 0===G?void 0:G.cb)&&window.watchHistory.cb({watchedTime:F}),Q<95&&(H=F)}else{var W=s.watchHistoryResumeTime;s.watchedPercentage<95&&(H=W)}h(l,H)}null!=s&&s.isDvrEnabled&&null!=s&&null!==(E=s.dvrConfig)&&void 0!==E&&E.enable&&(r(l,s),a(l,s))}(l,s),E(l,s),function(l){var e,o,i,n=u(l),t=null;if(!n)return;var r=n.controlBar.getChild("VolumePanel"),a=null===(e=r.getChild("MuteToggle"))||void 0===e?void 0:e.el(),s=null==r||null===(o=r.el())||void 0===o?void 0:o.querySelector(".vjs-volume-bar"),d=null==r||null===(i=r.el())||void 0===i?void 0:i.querySelector(".vjs-volume-level");if(!r||!s||!d)return;function v(l){l.preventDefault(),t&&(clearTimeout(t),t=null),m(p(l.touches[0]))}function c(l){l.preventDefault(),m(p(l.changedTouches[0])),t=setTimeout((function(){r.el().classList.remove("vjs-hover")}),2e3)}function m(l){var e=Math.min(Math.max(l,0),100);d.style.height=e+"%",s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuetext",e+"%"),n.volume(e/100)}function p(l){var e=s.getBoundingClientRect(),o=l.clientY-e.top,i=e.height;return 100-Math.min(Math.max(o/i*100,0),100)}a.addEventListener("touchend",(function(){null!=r&&r.el()&&(r.el().classList.toggle("vjs-hover"),n.muted(!1),t&&(clearTimeout(t),t=null),t=setTimeout((function(){r.el().classList.remove("vjs-hover")}),2e3))})),s.addEventListener("touchmove",v,{passive:!1}),s.addEventListener("touchstart",v,{passive:!1}),s.addEventListener("touchend",c,{passive:!1})}(l)}var E=function(l,e){var o,i,n,t,r,a,s,d,v,c,m,p,b=u(l),h=(null==e?void 0:e.theme)||{},f=k.dom.$(".vjs-play-progress"),y=k.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");y&&(y.style.color="".concat(null===(o=window)||void 0===o||null===(i=o.app_data)||void 0===i||null===(n=i.appcmsMain)||void 0===n||null===(t=n.brand)||void 0===t||null===(r=t.cta)||void 0===r||null===(a=r.primary)||void 0===a?void 0:a.backgroundColor)),f&&(f.style.background="".concat(null===(s=window)||void 0===s||null===(d=s.app_data)||void 0===d||null===(v=d.appcmsMain)||void 0===v||null===(c=v.brand)||void 0===c||null===(m=c.cta)||void 0===m||null===(p=m.primary)||void 0===p?void 0:p.backgroundColor));var g=b.getChild("BigPlayButton")||null;(null==h?void 0:h.progressBarColor)&&f&&(f.style.background=h.progressBarColor),(null==h?void 0:h.playButtonBackgroundColor)&&g&&(g.el().style.background=h.playButtonBackgroundColor),(null==h?void 0:h.playButtonColor)&&y&&(y.style.color=h.playButtonColor),(null==h?void 0:h.playButtonType)&&("square"==(null==h?void 0:h.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{V as initialiseSkin};
1
+ import{h as l,d as e,e as o,o as i,p as n,q as t,r,s as a}from"./features-778a7117.js";import{g as u}from"./player_instance-34118a5b.js";import{a as s,b as d}from"./index-fb68a3fc.js";import{i as v}from"./index-d485bd0c.js";import{S as c,e as m,R as p,U as b,V as h}from"./generic-d3cb033f.js";import"videojs-contrib-quality-menu";import{i as f,r as y}from"./index-3ef2827d.js";import{c as g}from"./helper-349e076f.js";import{c as j,a as w,b as C}from"./currentVideoInfo-a8a254c2.js";import k from"video.js";import{c as T,d as B}from"./icons-37daa6b3.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"./resolution-1c59b0f3.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./skin-3dcba1b2.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-18708ace.js";import"./util-4e79be1c.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"./captions-f507e8ee.js";import"@viewlift/comscore/index.js";import"video.js/dist/video-js.min.css";function L(e,o){var i=u(e);i&&(i.on("loadeddata",(function(){var l,n,t,r,a,d=g(o),m=j();i.qualityLevels()&&i.qualityLevels().length&&function(l){var e=u(l);e&&(null==e||e.qualityMenu,e.qualityMenu({useResolutionLabels:!0}))}(e),!(null!=o&&null!==(l=o.series)&&void 0!==l&&l.enable||null!==(n=window)&&void 0!==n&&null!==(t=n.app_data)&&void 0!==t&&null!==(r=t.appcmsMain)&&void 0!==r&&null!==(a=r.features)&&void 0!==a&&a.auto_play)||null!=o&&o.liveVideo||s(e,o),null!=o&&o.liveVideo||c()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||v(e),d&&m&&m.length?f(e):y()})),i.one("play",(function(){var o,i,n,t;null!==(o=window)&&void 0!==o&&null!==(i=o.customData)&&void 0!==i&&i.iframeOverlayUrl&&l(e,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)})))}function V(l,s){u(l).addClass("skin_vlone"),L(l,s),function(l,s){var v,c,f,y,j,k,L,V,E,M=u(l),q=(null==s?void 0:s.liveVideo)||!1,x=(null==s||null===(v=s.res)||void 0===v?void 0:v.contentType)||"video",_=(null==s||null===(c=s.res)||void 0===c||null===(f=c[x])||void 0===f?void 0:f.isSSAIEnabled)||!1,A=m(null==s?void 0:s.res,l)||{};A.src;var D=(null==s?void 0:s.skin_settings)||{},I=(null==s||null===(y=s.customData)||void 0===y?void 0:y.ads)||{};if(g(s),q&&!(null!=s&&s.liveui)){var R,S,O=(null==M||null===(R=M.controlBar)||void 0===R||null===(S=R.getChild("LiveDisplay"))||void 0===S?void 0:S.el())||null;O&&(O.onclick=function(){try{var l;null==M||null===(l=M.liveTracker)||void 0===l||l.seekToLiveEdge()}catch(l){console.log(l,"Cannot seek to LE")}})}null!=D&&D.skipBtn&&0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)&&e(l,"VL_ONE",T());(null!=D&&D.rewindBtn&&0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)||1==(null==s?void 0:s.liveui))&&o(l,"VL_ONE",B());(null==s||null===(j=s.relatedVideos)||void 0===j||null===(k=j.content)||void 0===k?void 0:k.length)>0&&i(l,null==s?void 0:s.relatedVideos);null!=s&&null!==(L=s.series)&&void 0!==L&&L.enable&&n(l,s);(null==s||null===(V=s.streams)||void 0===V?void 0:V.length)>1&&t(l,null==s?void 0:s.streams);if(d(l,s),p(l,s),"MEDIA_TAILOR"==(null==I?void 0:I.vodAdSticherProvider)&&null!=I&&I.vodAdClientSideTracking&&_)if(q)b(l);else{var P,H=null;if(null!=s&&null!==(P=s.series)&&void 0!==P&&P.enable){var N,U,$,z,G,J=null===(N=w())||void 0===N||null===(U=N.video)||void 0===U||null===($=U.gist)||void 0===$?void 0:$.id,K=C(),Y=(null==K?void 0:K.get(J))||{t:0,p:0},F=Y.t,Q=Y.p;"function"==typeof(null===(z=window)||void 0===z||null===(G=z.watchHistory)||void 0===G?void 0:G.cb)&&window.watchHistory.cb({watchedTime:F}),Q<95&&(H=F)}else{var W=s.watchHistoryResumeTime;s.watchedPercentage<95&&(H=W)}h(l,H)}null!=s&&s.isDvrEnabled&&null!=s&&null!==(E=s.dvrConfig)&&void 0!==E&&E.enable&&(r(l,s),a(l,s))}(l,s),E(l,s),function(l){var e,o,i,n=u(l),t=null;if(!n)return;var r=n.controlBar.getChild("VolumePanel"),a=null===(e=r.getChild("MuteToggle"))||void 0===e?void 0:e.el(),s=null==r||null===(o=r.el())||void 0===o?void 0:o.querySelector(".vjs-volume-bar"),d=null==r||null===(i=r.el())||void 0===i?void 0:i.querySelector(".vjs-volume-level");if(!r||!s||!d)return;function v(l){l.preventDefault(),t&&(clearTimeout(t),t=null),m(p(l.touches[0]))}function c(l){l.preventDefault(),m(p(l.changedTouches[0])),t=setTimeout((function(){r.el().classList.remove("vjs-hover")}),2e3)}function m(l){var e=Math.min(Math.max(l,0),100);d.style.height=e+"%",s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuetext",e+"%"),n.volume(e/100)}function p(l){var e=s.getBoundingClientRect(),o=l.clientY-e.top,i=e.height;return 100-Math.min(Math.max(o/i*100,0),100)}a.addEventListener("touchend",(function(){null!=r&&r.el()&&(r.el().classList.toggle("vjs-hover"),n.muted(!1),t&&(clearTimeout(t),t=null),t=setTimeout((function(){r.el().classList.remove("vjs-hover")}),2e3))})),s.addEventListener("touchmove",v,{passive:!1}),s.addEventListener("touchstart",v,{passive:!1}),s.addEventListener("touchend",c,{passive:!1})}(l)}var E=function(l,e){var o,i,n,t,r,a,s,d,v,c,m,p,b=u(l),h=(null==e?void 0:e.theme)||{},f=k.dom.$(".vjs-play-progress"),y=k.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");y&&(y.style.color="".concat(null===(o=window)||void 0===o||null===(i=o.app_data)||void 0===i||null===(n=i.appcmsMain)||void 0===n||null===(t=n.brand)||void 0===t||null===(r=t.cta)||void 0===r||null===(a=r.primary)||void 0===a?void 0:a.backgroundColor)),f&&(f.style.background="".concat(null===(s=window)||void 0===s||null===(d=s.app_data)||void 0===d||null===(v=d.appcmsMain)||void 0===v||null===(c=v.brand)||void 0===c||null===(m=c.cta)||void 0===m||null===(p=m.primary)||void 0===p?void 0:p.backgroundColor));var g=b.getChild("BigPlayButton")||null;(null==h?void 0:h.progressBarColor)&&f&&(f.style.background=h.progressBarColor),(null==h?void 0:h.playButtonBackgroundColor)&&g&&(g.el().style.background=h.playButtonBackgroundColor),(null==h?void 0:h.playButtonColor)&&y&&(y.style.color=h.playButtonColor),(null==h?void 0:h.playButtonType)&&("square"==(null==h?void 0:h.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{V as initialiseSkin};
@@ -1 +1 @@
1
- import n from"@babel/runtime/helpers/typeof";import{Q as e}from"./generic-0d8916dd.js";import{a as t,v as o}from"./currentVideoInfo-a8a254c2.js";import{g as i}from"./player_instance-34118a5b.js";var a=!1,r=function(n,e,t){var o=i(n);o?e>=0&&e<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(e)}),o.currentTime(e)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(n,"'"))},c=function(n,r){var c=i(n);c?(c.on("ended",(function(){return a=!0})),c.on("timeupdate",(function(){if(!c.paused()&&a){var n,i,u=null===(n=t())||void 0===n||null===(i=n.video)||void 0===i?void 0:i.id;o.get(u)?(o.clear(),e.clear(),r(),o.set(u)):(o.clear(),o.set(u)),a=!1}}))):r("Cannot find player with id: '".concat(n,"'"))},u=function(n,e){var t=i(n);if(!t)return"Cannot find player with id: '".concat(n,"'");try{return t.playbackRate(e),"Playback speed set to ".concat(e,"x")}catch(n){return"Error: ".concat(n)}},l=function(n,e){var t=i(n);t?t.on("timeupdate",(function(){return e(t.currentTime())})):e("Cannot find player with id: '".concat(n,"'"))},s=function(n,e){var t=i(n);t?t.on("ended",(function(){return e(!0)})):e("Cannot find player with id: '".concat(n,"'"))},d=function(n){var e=i(n);return e?e.duration():"Cannot find player with id: '".concat(n,"'")};function f(){var e=function(n,e){var t=i(n);if(!t)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof e)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",(function(){return t()}))},onPause:function(n,t){e(n,t).on("pause",(function(){return t()}))},onMute:function(n,t){var o=e(n,t);o.on("volumechange",(function(){o.muted()?t({muted:!0}):t({muted:!1})}))},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",(function(){t({pip:!0})})),o.on("leavepictureinpicture",(function(){t({pip:!1})}))},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",(function(n){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})}))},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",(function(){var n=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:n})}))},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",(function(){t({seeked:o.currentTime()})}))},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",(function(n){console.log(o.textTracks());var e=o.textTracks().tracks_.filter((function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode}));e.length>0&&t({enabled:e[0]})}))},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",(function(n){var e,i;console.log(o.textTracks()),(null==o||null===(e=o.textTracks())||void 0===e||null===(i=e.tracks_)||void 0===i?void 0:i.every((function(n){return"showing"!=n.mode})))&&t({captions_disabled:!0})}))},onSubtitleCueChange:function(t,o){var i=e(t,o);i.on("loadeddata",(function(){var e,t,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(a=t.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,(function(n){o(n)}));for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",e=s)}e&&e.addEventListener("cuechange",(function(){var n=e.activeCues;if(n&&n.length>0)for(var t=0;t<n.length;t++){var i=n[t];o(i)}else console.log("no active cue at this moment")}))}))},onError:function(n,t){var o=e(n,t);o.on("error",(function(){var n,e;t({error:null==o||null===(n=o.error())||void 0===n?void 0:n.code,msg:null==o||null===(e=o.error())||void 0===e?void 0:e.message})}))}}}export{s as a,u as b,c,d as g,l as o,f as p,r as s};
1
+ import n from"@babel/runtime/helpers/typeof";import{Q as e}from"./generic-d3cb033f.js";import{a as t,v as o}from"./currentVideoInfo-a8a254c2.js";import{g as i}from"./player_instance-34118a5b.js";var a=!1,r=function(n,e,t){var o=i(n);o?e>=0&&e<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(e)}),o.currentTime(e)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(n,"'"))},c=function(n,r){var c=i(n);c?(c.on("ended",(function(){return a=!0})),c.on("timeupdate",(function(){if(!c.paused()&&a){var n,i,u=null===(n=t())||void 0===n||null===(i=n.video)||void 0===i?void 0:i.id;o.get(u)?(o.clear(),e.clear(),r(),o.set(u)):(o.clear(),o.set(u)),a=!1}}))):r("Cannot find player with id: '".concat(n,"'"))},u=function(n,e){var t=i(n);if(!t)return"Cannot find player with id: '".concat(n,"'");try{return t.playbackRate(e),"Playback speed set to ".concat(e,"x")}catch(n){return"Error: ".concat(n)}},l=function(n,e){var t=i(n);t?t.on("timeupdate",(function(){return e(t.currentTime())})):e("Cannot find player with id: '".concat(n,"'"))},s=function(n,e){var t=i(n);t?t.on("ended",(function(){return e(!0)})):e("Cannot find player with id: '".concat(n,"'"))},d=function(n){var e=i(n);return e?e.duration():"Cannot find player with id: '".concat(n,"'")};function f(){var e=function(n,e){var t=i(n);if(!t)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof e)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",(function(){return t()}))},onPause:function(n,t){e(n,t).on("pause",(function(){return t()}))},onMute:function(n,t){var o=e(n,t);o.on("volumechange",(function(){o.muted()?t({muted:!0}):t({muted:!1})}))},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",(function(){t({pip:!0})})),o.on("leavepictureinpicture",(function(){t({pip:!1})}))},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",(function(n){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})}))},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",(function(){var n=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:n})}))},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",(function(){t({seeked:o.currentTime()})}))},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",(function(n){console.log(o.textTracks());var e=o.textTracks().tracks_.filter((function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode}));e.length>0&&t({enabled:e[0]})}))},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",(function(n){var e,i;console.log(o.textTracks()),(null==o||null===(e=o.textTracks())||void 0===e||null===(i=e.tracks_)||void 0===i?void 0:i.every((function(n){return"showing"!=n.mode})))&&t({captions_disabled:!0})}))},onSubtitleCueChange:function(t,o){var i=e(t,o);i.on("loadeddata",(function(){var e,t,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(a=t.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,(function(n){o(n)}));for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",e=s)}e&&e.addEventListener("cuechange",(function(){var n=e.activeCues;if(n&&n.length>0)for(var t=0;t<n.length;t++){var i=n[t];o(i)}else console.log("no active cue at this moment")}))}))},onError:function(n,t){var o=e(n,t);o.on("error",(function(){var n,e;t({error:null==o||null===(n=o.error())||void 0===n?void 0:n.code,msg:null==o||null===(e=o.error())||void 0===e?void 0:e.message})}))}}}export{s as a,u as b,c,d as g,l as o,f as p,r as s};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-37daa6b3.js";import{E as s}from"./generic-0d8916dd.js";import{k as d}from"./currentVideoInfo-a8a254c2.js";import{g as c,s as m,j as p,k as u,l as v}from"./skin-3dcba1b2.js";import{a as h}from"./autoNextVideo-562cb118.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./player_instance-34118a5b.js";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-931b842b.js";function b(e){var t=y();return function(){var o,a=i(e);if(t){var r=i(this).constructor;o=Reflect.construct(a,arguments,r)}else o=a.apply(this,arguments);return n(this,o)}}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var g=a.getComponent("Component"),C=function(n){o(y,g);var i=b(y);function y(t){var o,n,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(a=i.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.videos=r.related.content,a.cb=(null==r||null===(o=r.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(y,[{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(r())});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(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=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,r,l,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===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.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,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),y}();export{C as default};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-37daa6b3.js";import{E as s}from"./generic-d3cb033f.js";import{k as d}from"./currentVideoInfo-a8a254c2.js";import{g as c,s as m,j as p,k as u,l as v}from"./skin-3dcba1b2.js";import{a as h}from"./autoNextVideo-18708ace.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./player_instance-34118a5b.js";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-4e79be1c.js";function b(e){var t=y();return function(){var o,a=i(e);if(t){var r=i(this).constructor;o=Reflect.construct(a,arguments,r)}else o=a.apply(this,arguments);return n(this,o)}}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var g=a.getComponent("Component"),C=function(n){o(y,g);var i=b(y);function y(t){var o,n,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(a=i.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.videos=r.related.content,a.cb=(null==r||null===(o=r.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(y,[{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(r())});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(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=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,r,l,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===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.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,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),y}();export{C as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{g as l,e as s}from"./icons-37daa6b3.js";import{E as d}from"./generic-0d8916dd.js";import{k as r}from"./currentVideoInfo-a8a254c2.js";import{g as c,s as m,j as u,h as v,k as p,i as h}from"./skin-3dcba1b2.js";import{a as y}from"./autoNextVideo-562cb118.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./player_instance-34118a5b.js";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-931b842b.js";function f(e){var t=C();return function(){var o,a=i(e);if(t){var l=i(this).constructor;o=Reflect.construct(a,arguments,l)}else o=a.apply(this,arguments);return n(this,o)}}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var g=a.getComponent("Component"),E=function(n){o(C,g);var i=f(C);function C(t){var o,n,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,C),(a=i.call(this,t,l)).playerId=l.playerId,a.seriesData=l.sres,a.videos=l.related.content,a.cb=(null==l||null===(o=l.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==l||null===(n=l.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=l.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(r(0),y({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(C,[{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("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return a.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=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),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 i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(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"),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;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"),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))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{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",ariaLabel:"close video selector",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()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=a.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,i,l,s,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.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===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(y);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,b),a.dom.appendContent(r,v),a.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),C}();export{E as default};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{g as l,e as s}from"./icons-37daa6b3.js";import{E as d}from"./generic-d3cb033f.js";import{k as r}from"./currentVideoInfo-a8a254c2.js";import{g as c,s as m,j as u,h as v,k as p,i as h}from"./skin-3dcba1b2.js";import{a as y}from"./autoNextVideo-18708ace.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./player_instance-34118a5b.js";import"js-cookie";import"./captions-f507e8ee.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-4e79be1c.js";function f(e){var t=C();return function(){var o,a=i(e);if(t){var l=i(this).constructor;o=Reflect.construct(a,arguments,l)}else o=a.apply(this,arguments);return n(this,o)}}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var g=a.getComponent("Component"),E=function(n){o(C,g);var i=f(C);function C(t){var o,n,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,C),(a=i.call(this,t,l)).playerId=l.playerId,a.seriesData=l.sres,a.videos=l.related.content,a.cb=(null==l||null===(o=l.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==l||null===(n=l.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=l.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(r(0),y({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(C,[{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("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return a.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=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),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 i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(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"),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;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"),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))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{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",ariaLabel:"close video selector",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()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=a.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,i,l,s,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.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===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(y);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,b),a.dom.appendContent(r,v),a.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),C}();export{E as default};