@viewlift/player-backup 2.0.229-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 (440) hide show
  1. package/{@viewlift/player-backup/cjs/autoNextVideo-a96d73b9.js → cjs/autoNextVideo-7d7ab3d1.js} +1 -1
  2. package/{@viewlift/player/esm → cjs}/bundle.css +559 -559
  3. package/{@viewlift/player-backup/cjs/features-e0b20fb8.js → cjs/features-2de8aac9.js} +1 -1
  4. package/{@viewlift/player-backup/cjs/generic-6a2ba5db.js → cjs/generic-1b82ec6f.js} +1 -1
  5. package/{@viewlift/player-backup/cjs/index-f7a6741b.js → cjs/index-1fcf5f9b.js} +1 -1
  6. package/{@viewlift/player/cjs/index-f292ad41.js → cjs/index-47740d12.js} +1 -1
  7. package/{@viewlift/player-backup/cjs/index-3eef2a22.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-c83f7ed2.js → cjs/multicamv2-09024455.js} +1 -1
  10. package/{@viewlift/player/cjs/multicamv2-62765979.js → cjs/multicamv2-d7d7ea94.js} +1 -1
  11. package/{@viewlift/player/cjs/nextEpisodeButton-82932303.js → cjs/nextEpisodeButton-8602ebca.js} +1 -1
  12. package/{@viewlift/player-backup/cjs/playlist-dd9bd2bd.js → cjs/playlist-e84aed86.js} +1 -1
  13. package/{@viewlift/player-backup/cjs/series-55942b92.js → cjs/series-8ae3ffe0.js} +1 -1
  14. package/{@viewlift/player-backup/cjs/series-v2-a6f4b9b9.js → cjs/series-v2-a5b7993e.js} +1 -1
  15. package/{@viewlift/player/cjs/series-v2-a80f7f84.js → cjs/series-v2-d6c6b7dd.js} +1 -1
  16. package/{@viewlift/player-backup/cjs/skin-158708bd.js → cjs/skin-02eb7456.js} +1 -1
  17. package/{@viewlift/player-backup/cjs/skin-e7fc7639.js → cjs/skin-1cab5b19.js} +1 -1
  18. package/{@viewlift/player-backup/cjs/skin-5e45a3fc.js → cjs/skin-271984a0.js} +1 -1
  19. package/{@viewlift/player-backup/cjs/skin-5cd92b41.js → cjs/skin-43e92429.js} +1 -1
  20. package/{@viewlift/player-backup/cjs/skin-adabac44.js → cjs/skin-bdb40384.js} +1 -1
  21. package/{@viewlift/player/cjs/skin-3da27707.js → cjs/skin-d144630c.js} +1 -1
  22. package/{@viewlift/player-backup/cjs/skin-6c0442c4.js → cjs/skin-dad5728b.js} +1 -1
  23. package/{@viewlift/player/cjs/skin-7791bfcc.js → cjs/skin-ee0adfc1.js} +1 -1
  24. package/{@viewlift/player-backup/cjs/skin-b90d17c5.js → cjs/skin-fa0f019a.js} +1 -1
  25. package/{@viewlift/player/cjs/util-7bd5a6bc.js → cjs/util-ec7d2fb9.js} +1 -1
  26. package/{@viewlift/player-backup/cjs/videoSelector-bdd3458b.js → cjs/videoSelector-632e0634.js} +1 -1
  27. package/{@viewlift/player/cjs/videoSelector-b63e0a55.js → cjs/videoSelector-cbb4fd7e.js} +1 -1
  28. package/{@viewlift/player-backup/esm/autoNextVideo-1c43df3b.js → esm/autoNextVideo-18708ace.js} +1 -1
  29. package/{@viewlift/player-backup/cjs → esm}/bundle.css +701 -701
  30. package/{@viewlift/player/esm/features-14645d28.js → esm/features-778a7117.js} +1 -1
  31. package/{@viewlift/player-backup/esm/generic-749be534.js → esm/generic-d3cb033f.js} +1 -1
  32. package/{@viewlift/player/esm/index-962adc0f.js → esm/index-3ef2827d.js} +1 -1
  33. package/{@viewlift/player/esm/index-b68f3de7.js → esm/index-d485bd0c.js} +1 -1
  34. package/{@viewlift/player/esm/index-2feba524.js → esm/index-fb68a3fc.js} +1 -1
  35. package/{@viewlift/player-backup/esm → esm}/index.js +1 -1
  36. package/{@viewlift/player/esm/multicamv2-71497045.js → esm/multicamv2-5f6ae02a.js} +1 -1
  37. package/{@viewlift/player/esm/multicamv2-4f51caf2.js → esm/multicamv2-a442705f.js} +1 -1
  38. package/{@viewlift/player-backup/esm/nextEpisodeButton-7dd08b7a.js → esm/nextEpisodeButton-0f62df3c.js} +1 -1
  39. package/{@viewlift/player/esm/playlist-495143be.js → esm/playlist-c4e41393.js} +1 -1
  40. package/{@viewlift/player-backup/esm/series-9cd0ff8f.js → esm/series-41530aa2.js} +1 -1
  41. package/{@viewlift/player/esm/series-v2-dc3b2cc0.js → esm/series-v2-7cb7da9b.js} +1 -1
  42. package/{@viewlift/player-backup/esm/series-v2-4672090b.js → esm/series-v2-ff0cb000.js} +1 -1
  43. package/{@viewlift/player-backup/esm/skin-bbb8d8ac.js → esm/skin-1e085eaa.js} +1 -1
  44. package/{@viewlift/player-backup/esm/skin-755ef0cf.js → esm/skin-42edfeef.js} +1 -1
  45. package/{@viewlift/player-backup/esm/skin-f927be29.js → esm/skin-5acbd983.js} +1 -1
  46. package/{@viewlift/player-backup/esm/skin-996aec07.js → esm/skin-6208ab0e.js} +1 -1
  47. package/{@viewlift/player-backup/esm/skin-21d3ed15.js → esm/skin-69bd0539.js} +1 -1
  48. package/{@viewlift/player-backup/esm/skin-aa1f01a4.js → esm/skin-87a6ca51.js} +1 -1
  49. package/{@viewlift/player-backup/esm/skin-e665cba3.js → esm/skin-a832d373.js} +1 -1
  50. package/{@viewlift/player-backup/esm/skin-8efd151b.js → esm/skin-d5efcc88.js} +1 -1
  51. package/{@viewlift/player/esm/skin-e36f960c.js → esm/skin-fa248c90.js} +1 -1
  52. package/{@viewlift/player-backup/esm/util-cee0891f.js → esm/util-4e79be1c.js} +1 -1
  53. package/{@viewlift/player/esm/videoSelector-7ec3b7b4.js → esm/videoSelector-2691356b.js} +1 -1
  54. package/{@viewlift/player/esm/videoSelector-c49f57b3.js → esm/videoSelector-4d07e059.js} +1 -1
  55. package/package.json +21 -56
  56. package/@viewlift/player/cjs/autoNextVideo-aebb5b86.js +0 -1
  57. package/@viewlift/player/cjs/bundle.css +0 -2830
  58. package/@viewlift/player/cjs/caption-settings-34ca0188.js +0 -1
  59. package/@viewlift/player/cjs/caption-settings-d1eb3bf6.js +0 -1
  60. package/@viewlift/player/cjs/captions-dbc83a75.js +0 -1
  61. package/@viewlift/player/cjs/chromett-f925fb6c.js +0 -1
  62. package/@viewlift/player/cjs/currentVideoInfo-31d70bec.js +0 -1
  63. package/@viewlift/player/cjs/error-26d5a3c3.js +0 -1
  64. package/@viewlift/player/cjs/features-7c91a868.js +0 -1
  65. package/@viewlift/player/cjs/generic-5bea38c9.js +0 -1
  66. package/@viewlift/player/cjs/helper-a50a8ffc.js +0 -1
  67. package/@viewlift/player/cjs/icons-2609dbe4.js +0 -1
  68. package/@viewlift/player/cjs/index-3f0e537b.js +0 -1
  69. package/@viewlift/player/cjs/index-4905764c.js +0 -1
  70. package/@viewlift/player/cjs/index-a3e9c3fa.js +0 -1
  71. package/@viewlift/player/cjs/index-dc27b685.js +0 -1
  72. package/@viewlift/player/cjs/index.js +0 -1
  73. package/@viewlift/player/cjs/localisation-56e0a999.js +0 -1
  74. package/@viewlift/player/cjs/multicamv2-1efdbdb9.js +0 -1
  75. package/@viewlift/player/cjs/multicamv2-7a86b517.js +0 -1
  76. package/@viewlift/player/cjs/multicamv2-9b055a51.js +0 -1
  77. package/@viewlift/player/cjs/nextEpisodeButton-b6e6586f.js +0 -1
  78. package/@viewlift/player/cjs/player_instance-fcf6a8fb.js +0 -1
  79. package/@viewlift/player/cjs/playlist-1d71412d.js +0 -1
  80. package/@viewlift/player/cjs/playlist-df87ca90.js +0 -1
  81. package/@viewlift/player/cjs/resolution-f9dcc1b4.js +0 -1
  82. package/@viewlift/player/cjs/resolution-v2-e42e0101.js +0 -1
  83. package/@viewlift/player/cjs/series-9c237975.js +0 -1
  84. package/@viewlift/player/cjs/series-adbda303.js +0 -1
  85. package/@viewlift/player/cjs/series-v2-2105fd89.js +0 -1
  86. package/@viewlift/player/cjs/series-v2-8440f095.js +0 -1
  87. package/@viewlift/player/cjs/series-v2-e037e14e.js +0 -1
  88. package/@viewlift/player/cjs/settings-icon-8d364c01.js +0 -1
  89. package/@viewlift/player/cjs/settings-icon-b43f4406.js +0 -1
  90. package/@viewlift/player/cjs/skin-033b83d4.js +0 -1
  91. package/@viewlift/player/cjs/skin-225252ff.js +0 -1
  92. package/@viewlift/player/cjs/skin-37b25d7d.js +0 -1
  93. package/@viewlift/player/cjs/skin-38de8257.js +0 -1
  94. package/@viewlift/player/cjs/skin-49515c15.js +0 -1
  95. package/@viewlift/player/cjs/skin-5eee1389.js +0 -1
  96. package/@viewlift/player/cjs/skin-6c9a5185.js +0 -1
  97. package/@viewlift/player/cjs/skin-ba38afdb.js +0 -1
  98. package/@viewlift/player/cjs/skin-ddeeaf13.js +0 -1
  99. package/@viewlift/player/cjs/skin-eb0ecb8c.js +0 -1
  100. package/@viewlift/player/cjs/skin-f5e18b89.js +0 -1
  101. package/@viewlift/player/cjs/skin-fc1e7e52.js +0 -1
  102. package/@viewlift/player/cjs/start-begin-btn-5739a6c0.js +0 -1
  103. package/@viewlift/player/cjs/videoSelector-b6e03076.js +0 -1
  104. package/@viewlift/player/cjs/videoSelector-d080a65f.js +0 -1
  105. package/@viewlift/player/cjs/videoSelector-fcdf11eb.js +0 -1
  106. package/@viewlift/player/cjs/videojs-dash5.es-ec94e5f4.js +0 -1
  107. package/@viewlift/player/cjs/watch-live-btn-822534d1.js +0 -1
  108. package/@viewlift/player/esm/apis/index.d.ts +0 -11
  109. package/@viewlift/player/esm/assets/icons.d.ts +0 -25
  110. package/@viewlift/player/esm/autoNextVideo-45c813b4.js +0 -1
  111. package/@viewlift/player/esm/caption-settings-6001af40.js +0 -1
  112. package/@viewlift/player/esm/caption-settings-cb47408f.js +0 -1
  113. package/@viewlift/player/esm/captions-f507e8ee.js +0 -1
  114. package/@viewlift/player/esm/chromett-a3cbb2e1.js +0 -1
  115. package/@viewlift/player/esm/components/advertisement/advertisement.d.ts +0 -1
  116. package/@viewlift/player/esm/components/auto-next-video/autoNextVideo.d.ts +0 -2
  117. package/@viewlift/player/esm/components/big-mute-btn/index.d.ts +0 -9
  118. package/@viewlift/player/esm/components/broadcaster_image/index.d.ts +0 -1
  119. package/@viewlift/player/esm/components/caption-settings/caption-settings.d.ts +0 -14
  120. package/@viewlift/player/esm/components/dvr-seekbar/index.d.ts +0 -14
  121. package/@viewlift/player/esm/components/dvr-startover/helper.d.ts +0 -17
  122. package/@viewlift/player/esm/components/dvr-startover/index.d.ts +0 -1
  123. package/@viewlift/player/esm/components/dvr-startover/marker.d.ts +0 -3
  124. package/@viewlift/player/esm/components/dvr-startover/start-begin-btn.d.ts +0 -6
  125. package/@viewlift/player/esm/components/dvr-startover/watch-live-btn.d.ts +0 -6
  126. package/@viewlift/player/esm/components/multicam/multicam.d.ts +0 -18
  127. package/@viewlift/player/esm/components/multicam-v2/multicamv2.d.ts +0 -13
  128. package/@viewlift/player/esm/components/multicam-v2_TEMP/multicamv2.d.ts +0 -13
  129. package/@viewlift/player/esm/components/next-ep-preview/next-ep-preview.d.ts +0 -1
  130. package/@viewlift/player/esm/components/next-episode/nextEpisodeButton.d.ts +0 -13
  131. package/@viewlift/player/esm/components/playlist-tray/playlist.d.ts +0 -15
  132. package/@viewlift/player/esm/components/quality-selector/index.d.ts +0 -1
  133. package/@viewlift/player/esm/components/resolution/resolution-v2.d.ts +0 -18
  134. package/@viewlift/player/esm/components/resolution/resolution.d.ts +0 -20
  135. package/@viewlift/player/esm/components/series/series.d.ts +0 -10
  136. package/@viewlift/player/esm/components/series-v2/helper.d.ts +0 -3
  137. package/@viewlift/player/esm/components/series-v2/series-v2.d.ts +0 -25
  138. package/@viewlift/player/esm/components/series-v2_TEMP/helper.d.ts +0 -1
  139. package/@viewlift/player/esm/components/series-v2_TEMP/series-v2.d.ts +0 -21
  140. package/@viewlift/player/esm/components/settings-icon/settings-icon.d.ts +0 -17
  141. package/@viewlift/player/esm/components/trickplay/helper.d.ts +0 -13
  142. package/@viewlift/player/esm/components/trickplay/index.d.ts +0 -1
  143. package/@viewlift/player/esm/components/trickplay/videojs.thumbnails.d.ts +0 -1
  144. package/@viewlift/player/esm/components/video-selector/videoSelector.d.ts +0 -18
  145. package/@viewlift/player/esm/components/video-selector_TEMP/videoSelector.d.ts +0 -16
  146. package/@viewlift/player/esm/components/watch-history/handleWatchHistory.d.ts +0 -2
  147. package/@viewlift/player/esm/contentHandler/content_types/epg.d.ts +0 -4
  148. package/@viewlift/player/esm/contentHandler/content_types/external.d.ts +0 -4
  149. package/@viewlift/player/esm/contentHandler/content_types/index.d.ts +0 -5
  150. package/@viewlift/player/esm/contentHandler/content_types/series.d.ts +0 -4
  151. package/@viewlift/player/esm/contentHandler/content_types/vod.d.ts +0 -4
  152. package/@viewlift/player/esm/contentHandler/firePlayer.d.ts +0 -4
  153. package/@viewlift/player/esm/core/captions.d.ts +0 -10
  154. package/@viewlift/player/esm/core/generic.d.ts +0 -49
  155. package/@viewlift/player/esm/core/player_instance.d.ts +0 -6
  156. package/@viewlift/player/esm/core/renditions.d.ts +0 -6
  157. package/@viewlift/player/esm/core/util.d.ts +0 -19
  158. package/@viewlift/player/esm/core/volume.d.ts +0 -2
  159. package/@viewlift/player/esm/currentVideoInfo-a8a254c2.js +0 -1
  160. package/@viewlift/player/esm/dash/dashHandler.d.ts +0 -1
  161. package/@viewlift/player/esm/dash/linear_ssai.d.ts +0 -1
  162. package/@viewlift/player/esm/dash/sgai.d.ts +0 -14
  163. package/@viewlift/player/esm/error-2395864b.js +0 -1
  164. package/@viewlift/player/esm/features.d.ts +0 -33
  165. package/@viewlift/player/esm/generic-769f7ba2.js +0 -1
  166. package/@viewlift/player/esm/globalPlayerEvents.d.ts +0 -8
  167. package/@viewlift/player/esm/helper-349e076f.js +0 -1
  168. package/@viewlift/player/esm/helpers/browser.d.ts +0 -2
  169. package/@viewlift/player/esm/helpers/currentVideoInfo.d.ts +0 -21
  170. package/@viewlift/player/esm/helpers/errorHandling.d.ts +0 -2
  171. package/@viewlift/player/esm/helpers/loader.d.ts +0 -2
  172. package/@viewlift/player/esm/helpers/localisation.d.ts +0 -2
  173. package/@viewlift/player/esm/helpers/scriptLoader.d.ts +0 -2
  174. package/@viewlift/player/esm/helpers/secondary-switching.d.ts +0 -1
  175. package/@viewlift/player/esm/helpers/skin.d.ts +0 -20
  176. package/@viewlift/player/esm/helpers/sourceRetriever.d.ts +0 -11
  177. package/@viewlift/player/esm/helpers/ssaiEventHandler.d.ts +0 -27
  178. package/@viewlift/player/esm/helpers/token.d.ts +0 -9
  179. package/@viewlift/player/esm/icons-37daa6b3.js +0 -1
  180. package/@viewlift/player/esm/index-4cc8ac6f.js +0 -1
  181. package/@viewlift/player/esm/index-8e3eab6d.js +0 -1
  182. package/@viewlift/player/esm/index.d.ts +0 -44
  183. package/@viewlift/player/esm/index.js +0 -1
  184. package/@viewlift/player/esm/localisation-0bf399a1.js +0 -1
  185. package/@viewlift/player/esm/multicamv2-1fb5149a.js +0 -1
  186. package/@viewlift/player/esm/multicamv2-b7cec0cf.js +0 -1
  187. package/@viewlift/player/esm/nextEpisodeButton-6dfddf32.js +0 -1
  188. package/@viewlift/player/esm/nextEpisodeButton-a1556cdf.js +0 -1
  189. package/@viewlift/player/esm/player_instance-34118a5b.js +0 -1
  190. package/@viewlift/player/esm/playlist-7ecf432a.js +0 -1
  191. package/@viewlift/player/esm/plugins/chromecast.d.ts +0 -18
  192. package/@viewlift/player/esm/plugins/comscore_dist/index.d.ts +0 -50
  193. package/@viewlift/player/esm/plugins/index.d.ts +0 -2
  194. package/@viewlift/player/esm/plugins/library.d.ts +0 -8
  195. package/@viewlift/player/esm/plugins/videojs-dash5.es.d.ts +0 -51
  196. package/@viewlift/player/esm/plugins/videojs_contrib_dash.d.ts +0 -51
  197. package/@viewlift/player/esm/resolution-1c59b0f3.js +0 -1
  198. package/@viewlift/player/esm/resolution-v2-705ae275.js +0 -1
  199. package/@viewlift/player/esm/series-041152aa.js +0 -1
  200. package/@viewlift/player/esm/series-becf9249.js +0 -1
  201. package/@viewlift/player/esm/series-v2-6e9853f8.js +0 -1
  202. package/@viewlift/player/esm/series-v2-6effac8f.js +0 -1
  203. package/@viewlift/player/esm/series-v2-87343239.js +0 -1
  204. package/@viewlift/player/esm/settings-icon-1e7b0951.js +0 -1
  205. package/@viewlift/player/esm/settings-icon-1fbc99bc.js +0 -1
  206. package/@viewlift/player/esm/skin/carousel/skin.d.ts +0 -1
  207. package/@viewlift/player/esm/skin/default/events.d.ts +0 -1
  208. package/@viewlift/player/esm/skin/default/skin.d.ts +0 -1
  209. package/@viewlift/player/esm/skin/defaultV2/events.d.ts +0 -1
  210. package/@viewlift/player/esm/skin/defaultV2/skin.d.ts +0 -1
  211. package/@viewlift/player/esm/skin/index.d.ts +0 -1
  212. package/@viewlift/player/esm/skin/mini/events.d.ts +0 -1
  213. package/@viewlift/player/esm/skin/mini/skin.d.ts +0 -1
  214. package/@viewlift/player/esm/skin/minimalist/skin.d.ts +0 -1
  215. package/@viewlift/player/esm/skin/multiplayer/events.d.ts +0 -1
  216. package/@viewlift/player/esm/skin/multiplayer/skin.d.ts +0 -1
  217. package/@viewlift/player/esm/skin/news/events.d.ts +0 -1
  218. package/@viewlift/player/esm/skin/news/skin.d.ts +0 -1
  219. package/@viewlift/player/esm/skin/news_live/events.d.ts +0 -1
  220. package/@viewlift/player/esm/skin/news_live/skin.d.ts +0 -1
  221. package/@viewlift/player/esm/skin/vl_one/events.d.ts +0 -1
  222. package/@viewlift/player/esm/skin/vl_one/skin.d.ts +0 -1
  223. package/@viewlift/player/esm/skin-11e8e90b.js +0 -1
  224. package/@viewlift/player/esm/skin-271fa63f.js +0 -1
  225. package/@viewlift/player/esm/skin-273ee9b8.js +0 -1
  226. package/@viewlift/player/esm/skin-2af1a28a.js +0 -1
  227. package/@viewlift/player/esm/skin-2c638dc1.js +0 -1
  228. package/@viewlift/player/esm/skin-3dcba1b2.js +0 -1
  229. package/@viewlift/player/esm/skin-52c3510b.js +0 -1
  230. package/@viewlift/player/esm/skin-5804a5af.js +0 -1
  231. package/@viewlift/player/esm/skin-71be210e.js +0 -1
  232. package/@viewlift/player/esm/skin-b9731ec0.js +0 -1
  233. package/@viewlift/player/esm/skin-d4a4342d.js +0 -1
  234. package/@viewlift/player/esm/skin-e6600a72.js +0 -1
  235. package/@viewlift/player/esm/skin-fbab87d5.js +0 -1
  236. package/@viewlift/player/esm/start-begin-btn-1e096fec.js +0 -1
  237. package/@viewlift/player/esm/util-06603bad.js +0 -1
  238. package/@viewlift/player/esm/utilities/analytics.d.ts +0 -3
  239. package/@viewlift/player/esm/utilities/beacon.d.ts +0 -3
  240. package/@viewlift/player/esm/utilities/comscore.d.ts +0 -5
  241. package/@viewlift/player/esm/utilities/controlsColor.d.ts +0 -1
  242. package/@viewlift/player/esm/utilities/conviva.d.ts +0 -5
  243. package/@viewlift/player/esm/utilities/keyboardShortcuts.d.ts +0 -5
  244. package/@viewlift/player/esm/utilities/replaceMacros.d.ts +0 -1
  245. package/@viewlift/player/esm/videoSelector-8e258d45.js +0 -1
  246. package/@viewlift/player/esm/videoSelector-def99d5e.js +0 -1
  247. package/@viewlift/player/esm/videojs-dash5.es-390dd922.js +0 -1
  248. package/@viewlift/player/esm/watch-live-btn-5419f3a7.js +0 -1
  249. package/@viewlift/player/package.json +0 -23
  250. package/@viewlift/player-backup/cjs/index-d7f46b96.js +0 -1
  251. package/@viewlift/player-backup/cjs/multicamv2-9990d70f.js +0 -1
  252. package/@viewlift/player-backup/cjs/nextEpisodeButton-cdcff8ec.js +0 -1
  253. package/@viewlift/player-backup/cjs/series-v2-588c92cf.js +0 -1
  254. package/@viewlift/player-backup/cjs/skin-391418cd.js +0 -1
  255. package/@viewlift/player-backup/cjs/skin-77a58b45.js +0 -1
  256. package/@viewlift/player-backup/cjs/util-7c5a46f3.js +0 -1
  257. package/@viewlift/player-backup/cjs/videoSelector-592002a3.js +0 -1
  258. package/@viewlift/player-backup/esm/bundle.css +0 -2830
  259. package/@viewlift/player-backup/esm/features-465db57c.js +0 -1
  260. package/@viewlift/player-backup/esm/index-9ac54b9b.js +0 -1
  261. package/@viewlift/player-backup/esm/index-ada7d4ee.js +0 -1
  262. package/@viewlift/player-backup/esm/index-c4f3477c.js +0 -1
  263. package/@viewlift/player-backup/esm/multicamv2-644cda07.js +0 -1
  264. package/@viewlift/player-backup/esm/multicamv2-e193da51.js +0 -1
  265. package/@viewlift/player-backup/esm/playlist-6d62bee9.js +0 -1
  266. package/@viewlift/player-backup/esm/series-v2-a9038834.js +0 -1
  267. package/@viewlift/player-backup/esm/skin-62bf8143.js +0 -1
  268. package/@viewlift/player-backup/esm/videoSelector-0cfed08d.js +0 -1
  269. package/@viewlift/player-backup/esm/videoSelector-65c51f5e.js +0 -1
  270. package/@viewlift/player-backup/package.json +0 -23
  271. package/@viewlift/player_legacy/cjs/autoNextVideo-0207f04b.js +0 -1
  272. package/@viewlift/player_legacy/cjs/bundle.css +0 -750
  273. package/@viewlift/player_legacy/cjs/caption-settings-34ca0188.js +0 -1
  274. package/@viewlift/player_legacy/cjs/caption-settings-b2f5caed.js +0 -1
  275. package/@viewlift/player_legacy/cjs/chromett-f925fb6c.js +0 -1
  276. package/@viewlift/player_legacy/cjs/dvr_skin-f7f770ae.js +0 -1
  277. package/@viewlift/player_legacy/cjs/error-26d5a3c3.js +0 -1
  278. package/@viewlift/player_legacy/cjs/features-a8748699.js +0 -1
  279. package/@viewlift/player_legacy/cjs/generic-84f939ad.js +0 -1
  280. package/@viewlift/player_legacy/cjs/icons-515b2da0.js +0 -1
  281. package/@viewlift/player_legacy/cjs/index.js +0 -1
  282. package/@viewlift/player_legacy/cjs/keyboardShortcuts-f767c579.js +0 -1
  283. package/@viewlift/player_legacy/cjs/loader-393b838a.js +0 -1
  284. package/@viewlift/player_legacy/cjs/localisation-56e0a999.js +0 -1
  285. package/@viewlift/player_legacy/cjs/multicam-8f3d061a.js +0 -1
  286. package/@viewlift/player_legacy/cjs/multicam-a41fe4a6.js +0 -1
  287. package/@viewlift/player_legacy/cjs/multicamv2-76d8530b.js +0 -1
  288. package/@viewlift/player_legacy/cjs/multicamv2-c4d6b48f.js +0 -1
  289. package/@viewlift/player_legacy/cjs/mwebPotrait-3c11d7cf.js +0 -1
  290. package/@viewlift/player_legacy/cjs/mwebPotraitTray-456078d4.js +0 -1
  291. package/@viewlift/player_legacy/cjs/nextEpisodeButton-b6e6586f.js +0 -1
  292. package/@viewlift/player_legacy/cjs/nextEpisodeButton-fe540cf1.js +0 -1
  293. package/@viewlift/player_legacy/cjs/nondvr_skin-ef2cb3b2.js +0 -1
  294. package/@viewlift/player_legacy/cjs/playlist-3932fd04.js +0 -1
  295. package/@viewlift/player_legacy/cjs/playlist-df87ca90.js +0 -1
  296. package/@viewlift/player_legacy/cjs/renditions-6e13cb32.js +0 -1
  297. package/@viewlift/player_legacy/cjs/resolution-93446685.js +0 -1
  298. package/@viewlift/player_legacy/cjs/series-9c237975.js +0 -1
  299. package/@viewlift/player_legacy/cjs/series-da129ad0.js +0 -1
  300. package/@viewlift/player_legacy/cjs/series-v2-4690c9b9.js +0 -1
  301. package/@viewlift/player_legacy/cjs/series-v2-fd7485a5.js +0 -1
  302. package/@viewlift/player_legacy/cjs/settings-icon-8d364c01.js +0 -1
  303. package/@viewlift/player_legacy/cjs/settings-icon-df80e58e.js +0 -1
  304. package/@viewlift/player_legacy/cjs/skin-225252ff.js +0 -1
  305. package/@viewlift/player_legacy/cjs/skin-63b8f7de.js +0 -1
  306. package/@viewlift/player_legacy/cjs/skin-64ba51a6.js +0 -1
  307. package/@viewlift/player_legacy/cjs/skin-6c47cc18.js +0 -1
  308. package/@viewlift/player_legacy/cjs/skin-7bc2d995.js +0 -1
  309. package/@viewlift/player_legacy/cjs/skin-7c1b43eb.js +0 -1
  310. package/@viewlift/player_legacy/cjs/skin-983a2ea7.js +0 -1
  311. package/@viewlift/player_legacy/cjs/skin-b361b474.js +0 -1
  312. package/@viewlift/player_legacy/cjs/skin-c66e9b42.js +0 -1
  313. package/@viewlift/player_legacy/cjs/skin-fc1e7e52.js +0 -1
  314. package/@viewlift/player_legacy/cjs/util-fb2cc4c4.js +0 -1
  315. package/@viewlift/player_legacy/cjs/videoSelector-aff5bd81.js +0 -1
  316. package/@viewlift/player_legacy/cjs/videoSelector-fcdf11eb.js +0 -1
  317. package/@viewlift/player_legacy/esm/autoNextVideo-9849ba49.js +0 -1
  318. package/@viewlift/player_legacy/esm/bundle.css +0 -750
  319. package/@viewlift/player_legacy/esm/caption-settings-c487e1d4.js +0 -1
  320. package/@viewlift/player_legacy/esm/caption-settings-cb47408f.js +0 -1
  321. package/@viewlift/player_legacy/esm/chromett-a3cbb2e1.js +0 -1
  322. package/@viewlift/player_legacy/esm/dvr_skin-9cc1b144.js +0 -1
  323. package/@viewlift/player_legacy/esm/error-2395864b.js +0 -1
  324. package/@viewlift/player_legacy/esm/features-f0405edc.js +0 -1
  325. package/@viewlift/player_legacy/esm/generic-d6622897.js +0 -1
  326. package/@viewlift/player_legacy/esm/icons-3e9a1686.js +0 -1
  327. package/@viewlift/player_legacy/esm/index.js +0 -1
  328. package/@viewlift/player_legacy/esm/keyboardShortcuts-d3c02093.js +0 -1
  329. package/@viewlift/player_legacy/esm/loader-580278fe.js +0 -1
  330. package/@viewlift/player_legacy/esm/localisation-0bf399a1.js +0 -1
  331. package/@viewlift/player_legacy/esm/multicam-4b0e408e.js +0 -1
  332. package/@viewlift/player_legacy/esm/multicam-de741974.js +0 -1
  333. package/@viewlift/player_legacy/esm/multicamv2-d006cffa.js +0 -1
  334. package/@viewlift/player_legacy/esm/multicamv2-efe93b72.js +0 -1
  335. package/@viewlift/player_legacy/esm/mwebPotrait-3c1805d8.js +0 -1
  336. package/@viewlift/player_legacy/esm/mwebPotraitTray-5323453e.js +0 -1
  337. package/@viewlift/player_legacy/esm/nextEpisodeButton-172e786c.js +0 -1
  338. package/@viewlift/player_legacy/esm/nextEpisodeButton-a1556cdf.js +0 -1
  339. package/@viewlift/player_legacy/esm/nondvr_skin-64be70e5.js +0 -1
  340. package/@viewlift/player_legacy/esm/playlist-7ecf432a.js +0 -1
  341. package/@viewlift/player_legacy/esm/playlist-ce940630.js +0 -1
  342. package/@viewlift/player_legacy/esm/renditions-71ea4b1e.js +0 -1
  343. package/@viewlift/player_legacy/esm/resolution-9836657e.js +0 -1
  344. package/@viewlift/player_legacy/esm/series-041152aa.js +0 -1
  345. package/@viewlift/player_legacy/esm/series-90b99709.js +0 -1
  346. package/@viewlift/player_legacy/esm/series-v2-05347955.js +0 -1
  347. package/@viewlift/player_legacy/esm/series-v2-4cdbf9b1.js +0 -1
  348. package/@viewlift/player_legacy/esm/settings-icon-1fbc99bc.js +0 -1
  349. package/@viewlift/player_legacy/esm/settings-icon-982e8c56.js +0 -1
  350. package/@viewlift/player_legacy/esm/skin-271fa63f.js +0 -1
  351. package/@viewlift/player_legacy/esm/skin-28f20306.js +0 -1
  352. package/@viewlift/player_legacy/esm/skin-2c638dc1.js +0 -1
  353. package/@viewlift/player_legacy/esm/skin-35587f60.js +0 -1
  354. package/@viewlift/player_legacy/esm/skin-649d1a0c.js +0 -1
  355. package/@viewlift/player_legacy/esm/skin-96de1bc3.js +0 -1
  356. package/@viewlift/player_legacy/esm/skin-cd537931.js +0 -1
  357. package/@viewlift/player_legacy/esm/skin-dc0ea0bd.js +0 -1
  358. package/@viewlift/player_legacy/esm/skin-e9170fb9.js +0 -1
  359. package/@viewlift/player_legacy/esm/skin-fbc45594.js +0 -1
  360. package/@viewlift/player_legacy/esm/util-4a2489f5.js +0 -1
  361. package/@viewlift/player_legacy/esm/videoSelector-8e258d45.js +0 -1
  362. package/@viewlift/player_legacy/esm/videoSelector-e140c66d.js +0 -1
  363. package/@viewlift/player_legacy/package.json +0 -17
  364. package/@viewlift/web-multiplayer/cjs/bundle.css +0 -68
  365. package/@viewlift/web-multiplayer/cjs/index.js +0 -1
  366. package/@viewlift/web-multiplayer/esm/App.js +0 -1
  367. package/@viewlift/web-multiplayer/esm/bundle.css +0 -68
  368. package/@viewlift/web-multiplayer/esm/components/Multiplayer.js +0 -1
  369. package/@viewlift/web-multiplayer/esm/index.js +0 -1
  370. package/@viewlift/web-multiplayer/esm/reportWebVitals.js +0 -1
  371. package/@viewlift/web-multiplayer/package.json +0 -38
  372. package/player-micro-frontend/cjs/index.js +0 -1
  373. package/player-micro-frontend/esm/index.js +0 -1
  374. package/player-micro-frontend/package.json +0 -33
  375. /package/{@viewlift/player-backup/cjs → cjs}/caption-settings-34ca0188.js +0 -0
  376. /package/{@viewlift/player-backup/cjs → cjs}/caption-settings-d1eb3bf6.js +0 -0
  377. /package/{@viewlift/player-backup/cjs → cjs}/captions-dbc83a75.js +0 -0
  378. /package/{@viewlift/player-backup/cjs → cjs}/chromett-f925fb6c.js +0 -0
  379. /package/{@viewlift/player-backup/cjs → cjs}/currentVideoInfo-31d70bec.js +0 -0
  380. /package/{@viewlift/player-backup/cjs → cjs}/error-26d5a3c3.js +0 -0
  381. /package/{@viewlift/player-backup/cjs → cjs}/helper-a50a8ffc.js +0 -0
  382. /package/{@viewlift/player-backup/cjs → cjs}/icons-2609dbe4.js +0 -0
  383. /package/{@viewlift/player-backup/cjs → cjs}/index-3f0e537b.js +0 -0
  384. /package/{@viewlift/player-backup/cjs → cjs}/index-4905764c.js +0 -0
  385. /package/{@viewlift/player-backup/cjs → cjs}/localisation-56e0a999.js +0 -0
  386. /package/{@viewlift/player-backup/cjs → cjs}/multicamv2-1efdbdb9.js +0 -0
  387. /package/{@viewlift/player-backup/cjs → cjs}/multicamv2-7a86b517.js +0 -0
  388. /package/{@viewlift/player-backup/cjs → cjs}/nextEpisodeButton-b6e6586f.js +0 -0
  389. /package/{@viewlift/player-backup/cjs → cjs}/player_instance-fcf6a8fb.js +0 -0
  390. /package/{@viewlift/player-backup/cjs → cjs}/playlist-df87ca90.js +0 -0
  391. /package/{@viewlift/player-backup/cjs → cjs}/resolution-f9dcc1b4.js +0 -0
  392. /package/{@viewlift/player-backup/cjs → cjs}/resolution-v2-e42e0101.js +0 -0
  393. /package/{@viewlift/player-backup/cjs → cjs}/series-9c237975.js +0 -0
  394. /package/{@viewlift/player-backup/cjs → cjs}/series-v2-2105fd89.js +0 -0
  395. /package/{@viewlift/player-backup/cjs → cjs}/series-v2-e037e14e.js +0 -0
  396. /package/{@viewlift/player-backup/cjs → cjs}/settings-icon-8d364c01.js +0 -0
  397. /package/{@viewlift/player-backup/cjs → cjs}/settings-icon-b43f4406.js +0 -0
  398. /package/{@viewlift/player-backup/cjs → cjs}/skin-225252ff.js +0 -0
  399. /package/{@viewlift/player-backup/cjs → cjs}/skin-38de8257.js +0 -0
  400. /package/{@viewlift/player-backup/cjs → cjs}/skin-ba38afdb.js +0 -0
  401. /package/{@viewlift/player-backup/cjs → cjs}/skin-f5e18b89.js +0 -0
  402. /package/{@viewlift/player-backup/cjs → cjs}/skin-fc1e7e52.js +0 -0
  403. /package/{@viewlift/player-backup/cjs → cjs}/start-begin-btn-5739a6c0.js +0 -0
  404. /package/{@viewlift/player-backup/cjs → cjs}/videoSelector-b6e03076.js +0 -0
  405. /package/{@viewlift/player-backup/cjs → cjs}/videoSelector-fcdf11eb.js +0 -0
  406. /package/{@viewlift/player-backup/cjs → cjs}/videojs-dash5.es-ec94e5f4.js +0 -0
  407. /package/{@viewlift/player-backup/cjs → cjs}/watch-live-btn-822534d1.js +0 -0
  408. /package/{@viewlift/player-backup/esm → esm}/caption-settings-6001af40.js +0 -0
  409. /package/{@viewlift/player-backup/esm → esm}/caption-settings-cb47408f.js +0 -0
  410. /package/{@viewlift/player-backup/esm → esm}/captions-f507e8ee.js +0 -0
  411. /package/{@viewlift/player-backup/esm → esm}/chromett-a3cbb2e1.js +0 -0
  412. /package/{@viewlift/player-backup/esm → esm}/currentVideoInfo-a8a254c2.js +0 -0
  413. /package/{@viewlift/player-backup/esm → esm}/error-2395864b.js +0 -0
  414. /package/{@viewlift/player-backup/esm → esm}/helper-349e076f.js +0 -0
  415. /package/{@viewlift/player-backup/esm → esm}/icons-37daa6b3.js +0 -0
  416. /package/{@viewlift/player-backup/esm → esm}/index-4cc8ac6f.js +0 -0
  417. /package/{@viewlift/player-backup/esm → esm}/index-8e3eab6d.js +0 -0
  418. /package/{@viewlift/player-backup/esm → esm}/localisation-0bf399a1.js +0 -0
  419. /package/{@viewlift/player-backup/esm → esm}/multicamv2-1fb5149a.js +0 -0
  420. /package/{@viewlift/player-backup/esm → esm}/multicamv2-b7cec0cf.js +0 -0
  421. /package/{@viewlift/player-backup/esm → esm}/nextEpisodeButton-a1556cdf.js +0 -0
  422. /package/{@viewlift/player-backup/esm → esm}/player_instance-34118a5b.js +0 -0
  423. /package/{@viewlift/player-backup/esm → esm}/playlist-7ecf432a.js +0 -0
  424. /package/{@viewlift/player-backup/esm → esm}/resolution-1c59b0f3.js +0 -0
  425. /package/{@viewlift/player-backup/esm → esm}/resolution-v2-705ae275.js +0 -0
  426. /package/{@viewlift/player-backup/esm → esm}/series-041152aa.js +0 -0
  427. /package/{@viewlift/player-backup/esm → esm}/series-v2-6e9853f8.js +0 -0
  428. /package/{@viewlift/player-backup/esm → esm}/series-v2-87343239.js +0 -0
  429. /package/{@viewlift/player-backup/esm → esm}/settings-icon-1e7b0951.js +0 -0
  430. /package/{@viewlift/player-backup/esm → esm}/settings-icon-1fbc99bc.js +0 -0
  431. /package/{@viewlift/player-backup/esm → esm}/skin-271fa63f.js +0 -0
  432. /package/{@viewlift/player-backup/esm → esm}/skin-2c638dc1.js +0 -0
  433. /package/{@viewlift/player-backup/esm → esm}/skin-3dcba1b2.js +0 -0
  434. /package/{@viewlift/player-backup/esm → esm}/skin-71be210e.js +0 -0
  435. /package/{@viewlift/player-backup/esm → esm}/skin-fbab87d5.js +0 -0
  436. /package/{@viewlift/player-backup/esm → esm}/start-begin-btn-1e096fec.js +0 -0
  437. /package/{@viewlift/player-backup/esm → esm}/videoSelector-8e258d45.js +0 -0
  438. /package/{@viewlift/player-backup/esm → esm}/videoSelector-def99d5e.js +0 -0
  439. /package/{@viewlift/player-backup/esm → esm}/videojs-dash5.es-390dd922.js +0 -0
  440. /package/{@viewlift/player-backup/esm → esm}/watch-live-btn-5419f3a7.js +0 -0
@@ -1 +0,0 @@
1
- import t from"@babel/runtime/helpers/classCallCheck";import e from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{k as l}from"./icons-37daa6b3.js";import{i as s}from"./helper-349e076f.js";import"./currentVideoInfo-a8a254c2.js";function a(t){var e=c();return function(){var r,i=n(t);if(e){var l=n(this).constructor;r=Reflect.construct(i,arguments,l)}else r=i.apply(this,arguments);return o(this,r)}}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}var u=i.getComponent("Component"),m=function(o){r(c,u);var n=a(c);function c(e,r){var o;return t(this,c),o=n.call(this,e,r),r.userId,r.siteOwner,o.el().innerHTML=l(),o.on("click",(function(){s(e)})),o}return e(c,[{key:"createEl",value:function(){return i.dom.createEl("button",{className:"vjs-control vjs-button dvr-watch-live-btn",role:"button",tabIndex:0,title:"Watch Live"})}}]),c}();export{m as default};
@@ -1,23 +0,0 @@
1
- {
2
- "name": "@viewlift/player",
3
- "version": "2.0.229-backup",
4
- "main": "dist/bundle.cjs.js",
5
- "types": "dist/@viewlift/player/esm/index.d.ts",
6
- "amdName": "_playerCore",
7
- "dependencies": {
8
- "@silvermine/videojs-airplay": "^1.3.0",
9
- "@silvermine/videojs-chromecast": "^1.4.1",
10
- "@viewlift/comscore": "^0.0.6",
11
- "axios": "^1.2.3",
12
- "ima": "npm:videojs-ima@2.2.0",
13
- "js-cookie": "^3.0.5",
14
- "video.js": "8.22.0",
15
- "videojs-contrib-ads": "7.5.2",
16
- "videojs-contrib-eme": "5.5.1",
17
- "videojs-mux": "^4.21.7",
18
- "videojs-contrib-quality-menu": "^1.0.3"
19
- },
20
- "overrides": {
21
- "min-document": "^2.19.1"
22
- }
23
- }
@@ -1 +0,0 @@
1
- "use strict";require("video.js/dist/video-js.min.css");var e=require("./generic-6a2ba5db.js"),n=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/asyncToGenerator"),o=require("@babel/runtime/regenerator"),i=require("video.js"),r=require("./util-7c5a46f3.js"),l=require("./captions-dbc83a75.js"),a=require("./resolution-f9dcc1b4.js"),u=require("./skin-f5e18b89.js"),s=require("./player_instance-fcf6a8fb.js"),d=require("./localisation-56e0a999.js"),c=require("./currentVideoInfo-31d70bec.js"),v=require("@babel/runtime/helpers/typeof"),p=require("./icons-2609dbe4.js"),f=require("./helper-a50a8ffc.js"),m=require("@babel/runtime/helpers/toConsumableArray"),g=function(e){return new Promise((function(n,t){if(y(e))t("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!0,o.src=e,o.onload=function(){n()},o.onerror=function(n){t("Error while loading script ".concat(e," : ").concat(n))},document.head.appendChild(o)}}))},y=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},h=function(e,n,t){var o=s.getPlayer(e);if(o)if(n>=0&&n<=100){o.muted()&&o.muted(!1);var i=parseFloat(n)/100;o.volume(i),t&&t({status:!0,msg:"Volume set to ".concat(n,"%")})}else t&&t({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else t({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},b=function(e){var n=s.getPlayer(e);return n?parseInt(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},w=function(){var n=t(o.mark((function n(t){var r,l,a,u,d;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=s.getPlayer(null==t?void 0:t.playerId),null!=t&&null!==(r=t.series)&&void 0!==r&&r.enable||!(null!=t&&t.chromecastReceiverId||null!=t&&t.airplay)){n.next=10;break}return n.prev=2,n.next=5,g("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),console.log("Error",n.t0);case 10:if(null!=t&&null!==(l=t.series)&&void 0!==l&&l.enable||null==t||!t.chromecastReceiverId){n.next=21;break}return n.next=13,import("@silvermine/videojs-chromecast");case 13:n.sent.default(i),(d=i.getTech("chromecast"))&&!d.prototype.seeking&&(d.prototype.seeking=function(){}),null!==(u=window)&&void 0!==u&&u.cast?null==a||a.chromecast({receiverAppID:null==t?void 0:t.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==a||a.chromecast({receiverAppID:null==t?void 0:t.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},n.next=22;break;case 21:console.log("Chromecast plugin is not available");case 22:null!=t&&t.airplay&&"Safari"==e.detectBrowser()?null==a||a.airPlay({addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 23:case"end":return n.stop()}}),n,null,[[2,7]])})));return function(e){return n.apply(this,arguments)}}(),k=function(e,n){var t=s.getPlayer(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",(function(n){var t,o,r,l,a,u=this.el(),s=i.dom.getPointerPosition(u,n).x;i.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var d=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(r=o.framework)||void 0===r||null===(l=r.CastContext)||void 0===l||null===(a=l.getInstance())||void 0===a?void 0:a.S;if(console.log(d),d&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var v=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),p=v.h.media[0].liveSeekableRange.end;v.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=p*s,v.seek()}}))};var S=function(){var e=t(o.mark((function e(){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([import("videojs-contrib-ads"),import("ima"),g("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){})).catch((function(e){return console.log(e)}))]);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var n=t(o.mark((function n(){return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,import("@viewlift/comscore/index.js").then((function(n){e.comscoreInstanceManager.set(n)}));case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),O=function(){var e=t(o.mark((function e(){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("utilising contrib eme"),e.next=3,import("videojs-contrib-eme").then((function(e){i.getPlugin("eme")||i.registerPlugin("eme",e.default)}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=t(o.mark((function e(){var n;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(!(n=e.sent)||"function"!=typeof n.register){e.next=7;break}return n.register(i),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=t(o.mark((function e(){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then((function(){return require("./index-3f0e537b.js")}));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to load dvr seekbar");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=t(o.mark((function e(){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then((function(){return require("./videojs-dash5.es-ec94e5f4.js")}));case 3:console.log("utilising contrib dash"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Failed to load contrib dash plugin");case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),C=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){g("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default(i)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default(i)}))},loadAdsLibrary:S,loadEMELibrary:O,loadMuxPlugin:P,loadDvrSeekbar:j,loadContribDash:T,loadComscorePlugin:I});function E(e){return D.apply(this,arguments)}function D(){return(D=t(o.mark((function n(t){var i,r,l;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=(null==t?void 0:t.airplay)||!1,n.next=3,S();case 3:i&&"Safari"==e.detectBrowser()?Promise.resolve().then((function(){return C})).then((function(e){e.importAirplay()})):(l=(null===(r=document)||void 0===r?void 0:r.getElementById(null==t?void 0:t.playerId))||null)&&l.setAttribute("x-webkit-airplay","deny");case 4:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function x(e){return L.apply(this,arguments)}function L(){return(L=t(o.mark((function e(n){var t,i,r,l,a,u;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=s.getPlayer(n.playerId),e.next=3,I();case 3:u.comscore({publisherId:null==n||null===(t=n.comscore)||void 0===t?void 0:t.publishedId,endpoint:null==n||null===(i=n.comscore)||void 0===i?void 0:i.endpoint,implementationId:null==n||null===(r=n.comscore)||void 0===r?void 0:r.implementationId,projectId:null==n||null===(l=n.comscore)||void 0===l?void 0:l.projectId,debug:(null==n||null===(a=n.comscore)||void 0===a?void 0:a.debug)||!1});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e,n){return A.apply(this,arguments)}function A(){return(A=t(o.mark((function n(t,i){var r,l,a,u,s,d,c,v,p,f,m,g,y,h;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p=(null==i?void 0:i.contentType)||"video",f=null==i||null===(r=i[p])||void 0===r?void 0:r.drmEnabled,null==i||null===(l=i[p])||void 0===l||null===(a=l.liveDetails)||void 0===a||a.isDvrEnabled,null==t||t.showPositiveSeekbar,m=(null==i||null===(u=i[p])||void 0===u||null===(s=u.streamingInfo)||void 0===s||null===(d=s.videoAssets)||void 0===d?void 0:d.dash)||null,g=(null==t||null===(c=t.comscore)||void 0===c?void 0:c.enable)||!1,y=!(null==t||null===(v=t.analytics)||void 0===v||!v.muxKey),n.prev=7,n.next=10,Promise.allSettled([f?"Safari"==e.detectBrowser()?O():"caliente"!=(null===(h=window)||void 0===h?void 0:h.siteName)?T():O():"Safari"!=e.detectBrowser()&&m?T():null,g?x(t):null,y?P():null,w(t)]);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(7),console.log("Error",n.t0);case 15:case"end":return n.stop()}}),n,null,[[7,12]])})))).apply(this,arguments)}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function N(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?V(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):V(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var B=new Set,_=null,M=function(n,t,o,i){var r,l,a,u,s,d,v,p={},f=(null==n?void 0:n.contentType)||"video";p["c3.cm.id"]=(null===(r=n[f])||void 0===r?void 0:r.id)||"Null",p["c3.cm.contentType"]=K(n),p[null==o||null===(l=o.Constants)||void 0===l?void 0:l.IS_LIVE]=!(null==n||!n.linearchannel),p[null==o||null===(a=o.Constants)||void 0===a?void 0:a.STREAM_URL]=t.currentSrc(),p[null==o||null===(u=o.Constants)||void 0===u?void 0:u.VIEWER_ID]="undefined"===e.getUserId()?"NULL":e.getUserId(),p["c3.cm.categoryType"]=F(n),p["m3.net.t"]=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return"Unknown";if(e.type)switch(e.type){case"wifi":return"WiFi";case"ethernet":return"Ethernet";default:return e.type}switch(e.effectiveType){case"slow-2g":case"2g":return"2G";case"3g":return"3G";case"4g":return e.downlink>=20?"WiFi":"4G";default:return"Unknown"}}(),p.DRMEnabled=(null===(s=n[f])||void 0===s?void 0:s.drmEnabled)||"None",p.DAIStream=null!==(d=n[f])&&void 0!==d&&null!==(v=d.gist)&&void 0!==v&&v.isSSAIEnabled?"YES":"NO",p[o.Constants.DEFAULT_RESOURCE]="AKAMAI",p["c3.cm.brand"]="NULL",p.CDVREnabled=W(n),p["c3.cm.genreList"]=q(n),p["c3.cm.genre"]=H(n),p["c3.cm.channel"]=U(n,i);var m=X(c.getCurrentSeries(),n);return p=N(N({},p),m)},H=function(e){var n,t,o,i=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[i])||void 0===n||null===(t=n.gist)||void 0===t||null===(o=t.primaryCategory)||void 0===o?void 0:o.title)||"Null"},q=function(e){var n,t=(null==e?void 0:e.contentType)||"video";return((null==e||null===(n=e[t])||void 0===n?void 0:n.categories)||[]).map((function(e){return null==e?void 0:e.title})).join(", ")||"Null"},U=function(e,n){var t,o,i=(null==e?void 0:e.contentType)||"video";return"video"===i?"VOD":(null===(o=((null==e||null===(t=e[i])||void 0===t?void 0:t.channels)||[]).find((function(e){return(null==e?void 0:e.id)===(null==n?void 0:n.channelId)})))||void 0===o?void 0:o.title)||"NULL"},F=function(e){var n,t;return null!=e&&e.linearchannel?"Linear Channel":null!=e&&null!==(n=e.video)&&void 0!==n&&null!==(t=n.streamingInfo)&&void 0!==t&&t.isLiveStream?"Live Event":"VOD"},W=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video",i=(null==e||null===(n=e[o])||void 0===n||null===(t=n.liveDetails)||void 0===t?void 0:t.isDvrEnabled)||!1;return i?"YES":"NO"},G=function(e,n){var t,o,i=(n||{}).epg;if(i&&null!=i&&i.enable&&null!=i&&i.programTitle)return i.programTitle;var r=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(t=e[r])||void 0===t||null===(o=t.gist)||void 0===o?void 0:o.title)||"Null";return"".concat(l)},K=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var J,z,X=function(n,t){var o,i,r,l,a,u={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!n||!t||null!=t&&t.linearchannel)return u;var s=e.getSeasonNumber(),d=e.getEpisodeNumber();return u["c3.cm.seriesName"]=(null==t||null===(o=t.video)||void 0===o||null===(i=o.series)||void 0===i?void 0:i.title)||"Null",u["c3.cm.seasonNumber"]=(null==s?void 0:s.toString())||"Null",u["c3.cm.showTitle"]=(null==n||null===(r=n[s-1])||void 0===r||null===(l=r.episodes)||void 0===l||null===(a=l[d-1])||void 0===a?void 0:a.title)||"Null",u["c3.cm.episodeNumber"]=(null==d?void 0:d.toString())||"Null",u},Y=function(e){switch(e){case"com.widevine.alpha":return"Widevine";case"com.microsoft.playready":return"PlayReady";case"org.w3.clearkey":return"ClearKey";case"com.apple.fps.1_0":return"FairPlay";default:return"Unknown DRM System"}},Q=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},$=function(){var e=t(o.mark((function e(n,t){var i,r,l,a,u,d,v,p,f,m,g,y;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(null==t?void 0:t.convivaConfig)||{},r=i.trackConvivaPlayerEvent,l=i.paymentHandler,a=i.tveProvider,u=i.enable,d=i.appName,p=(v=t||{}).token,f=v.epg,u){e.next=4;break}return e.abrupt("return");case 4:if(m=s.getPlayer(n),"function"==typeof(g=r)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,g("getConvivaObject");case 10:if(y=e.sent){e.next=13;break}return e.abrupt("return");case 13:m.ready((function(){var e=m.tech(!0),n=!1;e.on("keysessioncreated",(function(e){n=!0;var t=e.target;if(t&&t.keySystem){var o=Y(t.keySystem);g("contentInfo",{DRMEnabled:o})}else g("contentInfo",{DRMEnabled:"None"})})),n||g("contentInfo",{DRMEnabled:"None"})})),m.on("loadstart",(function(){var e,n;_&&_!==m.currentSrc()&&g("playbackEnded"),g("setPlayer",m),B.clear(),_=m.currentSrc();var o=Q(m.currentType()),i=c.getCurrentVideo(),r=M(i,m,y,f);r[null==y||null===(e=y.Constants)||void 0===e?void 0:e.PLAYER_NAME]=d||"WEB",r[null==y||null===(n=y.Constants)||void 0===n?void 0:n.ASSET_NAME]=G(i,t),r.authToken=p||"NULL",r.streamType=o,r.D2CType=l||"NONE",r.subscriberType=a?"MVPD":"FREE"!==l?"D2C":"FREE",r["c3.cm.affiliate"]=a||"NULL",Z.setData(r),g("contentInfo",r)})),m.on("loadedmetadata",(function(){var e,n=m.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),g("contentInfo",{screenResolution:e})})),m.on("play",(function(){B.has(m.currentSrc())||(B.add(m.currentSrc()),g("playbackStarted",null))})),m.on("ended",(function(){B.has(m.currentSrc())&&B.delete(m.currentSrc()),g("playbackEnded")})),m.on("ads-loader",(function(e){e&&null!=e&&e.adsLoader&&g("initAdSensor",{player:m,adsLoader:null==e?void 0:e.adsLoader})})),m.on("dispose",(function(){null==B||B.clear(),g("playbackEnded")}));case 20:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Z=(J={},{setData:function(e){J=N(N({},J),e)},getData:function(){return J}}),ee=function(e,n){var t=null==n?void 0:n.skin;"default"==t?Promise.resolve().then((function(){return require("./skin-b90d17c5.js")})).then((function(t){t.initialiseSkin(e,n)})):"carousel"==t?Promise.resolve().then((function(){return require("./skin-5cd92b41.js")})).then((function(n){n.initaliseSkin(e)})):"defaultV2"==t?Promise.resolve().then((function(){return require("./skin-adabac44.js")})).then((function(t){t.initialiseSkin(e,n)})):"multiplayer"==t?Promise.resolve().then((function(){return require("./skin-5e45a3fc.js")})).then((function(t){t.initialiseSkin(e,n)})):"minimalist"==t?Promise.resolve().then((function(){return require("./skin-e7fc7639.js")})).then((function(t){t.initaliseSkin(e,n)})):"VL_ONE"==t?Promise.resolve().then((function(){return require("./skin-391418cd.js")})).then((function(t){t.initialiseSkin(e,n)})):"news"==t?Promise.resolve().then((function(){return require("./skin-158708bd.js")})).then((function(t){t.initialiseSkin(e,n)})):"news_live"==t?Promise.resolve().then((function(){return require("./skin-6c0442c4.js")})).then((function(t){t.initialiseSkin(e,n)})):"mini"==t&&Promise.resolve().then((function(){return require("./skin-77a58b45.js")})).then((function(t){t.initialiseSkin(e,n)}))};function ne(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function te(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var oe=[],ie=0,re=null;function le(){console.log("Cleaning up watch history data"),z=null,oe=[],ie=0,re=null}function ae(n,t,o){var i,r,l,a,u,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==t||null===(i=t.watchHistory)||void 0===i||i.apiVersion;var d=null==t||null===(r=t.watchHistory)||void 0===r?void 0:r.profileId,c=Math.floor(n.currentTime()),v=Math.floor(n.duration());null==t||null===(l=t.watchHistory)||void 0===l||l.xapiKey;var p=(null==t||null===(a=t.video)||void 0===a?void 0:a.originalObjectId)||null,f=(null==t||null===(u=t.watchHistory)||void 0===u?void 0:u.saveOffline)||!1,m=Math.floor(n.currentTime()),g=s?100:Math.floor(c/v*100),y={};f?se(y={completed:s,watchedTime:m,watchedPercentage:g},d,t.siteOwner):(y=te(te({videoId:z,watchedTime:m,watchedPercentage:g,doneWatching:s,profileId:d},re&&{seriesId:re}),p&&{originalObjectId:p}),e.saveWatchHistory(y).then((function(e){})).catch((function(e){}))),ie=c+o}function ue(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function se(e,t,o){var i=t?"watchhistory-data-".concat(t):"watchhistory-data-guest-".concat(o),r=ue(i),l=(new Date).getTime(),a=c.getCurrentVideo(),u=(null==a?void 0:a.video)||{},s=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce((function(e,t){return te(te({},e),{},n({},t,u[t]))}),{}),d=r.findIndex((function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===z}));d<0?r.push(te(te({content:s},e),{},{addedDate:l,updateDate:l})):r[d]=te(te(te({},r[d]),e),{},{updateDate:l}),localStorage.setItem("".concat(i),JSON.stringify(r))}function de(e,n,t){var o=ue(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),i=[];return o&&Array.isArray(o)&&(i=o.filter((function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n}))),i}var ce=!1,ve=function(n,t){var o,i,r=(null==n?void 0:n.contentType)||"video";if(((null==n||null===(o=n[r])||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.secondaryVideoAssets)||null)&&!ce){var l=pe(n,"videoAssets","secondaryVideoAssets"),a=e.getSource(l,t);return a&&e.loadVideo(t,a),ce=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function pe(e,n,t){if(Array.isArray(e))return e.map((function(e){return pe(e,n,t)}));if(null!==e&&"object"===v(e)){var o={};return Object.keys(e).forEach((function(i){i===n&&void 0!==e[t]?o[i]=e[t]:i===t&&void 0!==e[n]?o[i]=e[n]:o[i]=pe(e[i],n,t)})),o}return e}function fe(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return me(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?me(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function me(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ye(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ge(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var he=function(n,t,o,i){var r,a,u,d,p,f=i.res,m=i.sres,g=s.getPlayer(n),y=(null==f?void 0:f.contentType)||"video",b=(null==f||null===(r=f[y])||void 0===r?void 0:r.drmEnabled)||!1,w=(null==f||null===(a=f[y])||void 0===a||null===(u=a.streamingInfo)||void 0===u?void 0:u.isLiveStream)||!1,k=(null==f||null===(d=f[y])||void 0===d||null===(p=d.liveDetails)||void 0===p?void 0:p.isDvrEnabled)||!1;c.setCurrentVideo(f),c.videoReplayTracker.set(f),g&&(g.on("loadstart",(function(){w?o.resolve({status:!0,msg:"Video Loaded",response:f}):o.resolve(ye({status:!0,msg:"Player Initialised"},m?{seriesResponse:m,response:f}:{response:f}))})),g.on("loadeddata",(function(){var o,i,r,a=l.getCaptions(n);if(null==a||a.map((function(e){return l.disableCaptions(n,e.id)})),k&&"Safari"===e.detectBrowser())try{var u;null==g||null===(u=g.liveTracker)||void 0===u||u.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==g||!g.muted())&&h(n,sessionStorage.getItem("volume")||"100");var d=c.getCurrentVideo();if(e.initialiseComscoreStreamingTracking(t),e.clearError(),null!=t&&t.watchHistory&&null!=t&&null!==(o=t.watchHistory)&&void 0!==o&&o.enable&&(!t.isAnonymousUser||null!=t&&null!==(i=t.watchHistory)&&void 0!==i&&i.saveOffline)){var v,p,m=ye(ye({},t),f);!function(e,n,t){var o,i,r;null!=n&&n.series&&null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable&&(re=null==n||null===(i=n.series)||void 0===i?void 0:i.id),oe=[],ie=0,z=t;var l=(null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.interval)||30,a=s.getPlayer(e);a&&(a.on("dispose",le),a.on("timeupdate",(function(){if(!a.seeking()){var e=Math.floor(a.currentTime());oe.includes(ie)||(e!=ie||e<l?e>ie&&(ie=e+l):(oe.push(e),ae(a,n,l)))}})),a.one("ended",(function(){ae(a,n,l,!0)})))}(n,m,null==d||null===(v=d.video)||void 0===v||null===(p=v.gist)||void 0===p?void 0:p.id)}if(null!=t&&null!==(r=t.analytics)&&void 0!==r&&r.muxKey&&null!=g&&g.mux){var y,b,w,S,I,O,P=(null===(y=c.getCurrentVideo())||void 0===y?void 0:y.video)||(null==f?void 0:f.video),j=null==P?void 0:P.gist,T={env_key:null==t||null===(b=t.analytics)||void 0===b?void 0:b.muxKey,player_name:"vl-web-player",player_version:null===(w=window)||void 0===w?void 0:w.vl_player_version,video_id:null==j?void 0:j.id,video_title:null==j?void 0:j.title,video_series:null==P||null===(S=P.series)||void 0===S?void 0:S.title,video_stream_type:null!=P&&null!==(I=P.streamingInfo)&&void 0!==I&&I.isLiveStream?"live":"video",viewer_user_id:null==t||null===(O=t.analytics)||void 0===O?void 0:O.userId};g.mux({debug:!1,data:T})}})),g.textTracks().on("change",(function(e){var n=this.tracks_.filter((function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];g.trigger("subtitlechanged",n)})),g.on("subtitlechanged",(function(e,n){var t,o,i,r,l,a,u,s,d,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,p=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(r=i.CastContext)||void 0===r||null===(l=r.getInstance())||void 0===l?void 0:l.S,f=null===(a=window)||void 0===a||null===(u=a.cast)||void 0===u||null===(s=u.framework)||void 0===s||null===(d=s.CastContext)||void 0===d||null===(c=d.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===p){var m,g=f.getMediaSession(),y=g.media.tracks.filter((function(e){return"TEXT"==e.type}));m=n?new chrome.cast.media.EditTracksInfoRequest([y[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(m)}})),g.tech_.on("retryplaylist",(function(){w&&ve(f,n)})),g.on("error",(function(){var t,i;(console.log("ERROR",g.error(),g.error().code),4===g.error().code&&w)?ve(f,n):(e.handleError(n,(null==g||null===(t=g.error())||void 0===t?void 0:t.message)||"Some error occured"),o.reject({status:!1,msg:(null==g||null===(i=g.error())||void 0===i?void 0:i.message)||"Some error occured",response:f}))})),g.one("play",(function(){var e,n,o,i,r;if(null===(e=window)||void 0===e||null===(n=e.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(i=o.adsConfig)||void 0===i||!i.vodAdClientSideTracking){if(null!=t&&null!==(r=t.series)&&void 0!==r&&r.enable){var l,a,u,s=null===(l=c.getCurrentVideo())||void 0===l||null===(a=l.video)||void 0===a||null===(u=a.gist)||void 0===u?void 0:u.id,d=c.getSeriesWatchMap(),v=(null==d?void 0:d.get(s))||{t:0,p:0},p=v.t,f=v.p;p&&f<95&&setTimeout((function(){g.currentTime(p)}),0)}else null!=t&&t.watchHistoryResumeTime&&(null==t?void 0:t.watchedPercentage)<95&&setTimeout((function(){g.currentTime(null==t?void 0:t.watchHistoryResumeTime)}),0);if(null!=g&&g.dvrSeekbar)try{g.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}}})),g.on("volumechange",(function(){var e=100*g.volume().toFixed(2);g.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)})),g.on("chromecastDisconnected",(function(){if(w){g.currentSource();for(var e=g.textTracks(),n=e.length-1;n>=0;n--)g.removeRemoteTextTrack(e[n])}})),g.one("loadeddata",(function(){var n,t=(null==g||null===(n=g.audioTracks())||void 0===n?void 0:n.tracks_)||null;if(t)if(t.sort((function(e,n){var t=(e.language||e.language||"").toUpperCase(),o=(n.language||n.label||"").toUpperCase();return t<o?-1:t>o?1:0})),"object"==v(g.dash)){var o,i,r,l=null==g||null===(o=g.dash)||void 0===o||null===(i=o.mediaPlayer)||void 0===i?void 0:i.getTracksFor("audio"),a=null==l?void 0:l.find((function(e){var n;return null==e||null===(n=e.roles)||void 0===n?void 0:n.includes("main")})),u=fe(t);try{for(u.s();!(r=u.n()).done;){var s=r.value;if(a&&(null==s?void 0:s.id)=="dash-audio-".concat(a.index)){s.enabled=!0;break}}}catch(e){u.e(e)}finally{u.f()}}else{var d,c=fe(t);try{for(c.s();!(d=c.n()).done;){var p,f,m,y=d.value;if(("Chrome"==e.detectBrowser()||"Edge"==e.detectBrowser()&&(null!==(p=navigator)&&void 0!==p&&null!==(f=p.userAgent)&&void 0!==f&&f.includes("Macintosh")||!b))&&null!=y&&null!==(m=y.label)&&void 0!==m&&m.includes("5.1"))g.audioTracks().removeTrack(y);else{if("main"==y.kind){y.enabled=!0;break}y.enabled=!1}}}catch(e){c.e(e)}finally{c.f()}}})))};function be(e,n,t){var o=document.createElement("div");return o.className="vjs-seekbar-program-marker",o.id=e,o.style.title=n,o.style.left="".concat(t,"%"),o.style.position="absolute",o.style.top="0",o.style.bottom="0",o.style.width="4px",o.style.backgroundColor="#000000",o.style.left="".concat(t,"%"),o.style.pointerEvents="none",o}function we(){document.querySelectorAll(".vjs-seekbar-program-marker").forEach((function(e){e.remove()}))}function ke(e){var n=(new Date).getTime(),t=new Date(n-1e3*e).getTime();return(c.getCurrentEpgPrograms()||[]).filter((function(e){var o=new Date(e.formatted_startdate).getTime();return o>=t&&o<=n})).map((function(e){var n=new Date(e.formatted_startdate).getTime()-t;return{title:e.title,time:n/1e3,id:e.programme_id}}))}function Se(e,n){var t=s.getPlayer(e);if(t){var o=n.dvrConfig,i=void 0===o?{}:o,r=n.videoId;n.epg;var l=i.playLive,a=i.playFromBegining,u=i.programs;c.setCurrentEpgPrograms(u),t.on("loadeddata",(function(){f.checkDvrStartOverEnabled(n)?a?f.playFromBeginningHandler(t,n):l?f.playLiveOrResumeHandler(t,r):(!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.dvrConfig,o=void 0===t?{}:t,i=n.videoId,r=n.epg,l=o.buttonConfig,a=void 0===l?{}:l,u=a.watchLive;a.resume;var s=a.startFromBegining,d=i;if(r&&null!=r&&r.enable){var c=JSON.parse(sessionStorage.getItem("epgConfig"));d="".concat(null==c?void 0:c.programId,"-").concat(null==c?void 0:c.channelId)}var v=!!f.getWatchedTime(d),p=document.querySelector(".vjs-dvr-btn-overlay");p||((p=document.createElement("div")).className="vjs-dvr-btn-overlay");var m=f.getCurrentProgramThumbnail(n);m&&(p.style.backgroundImage="url(".concat(m,")"),p.style.backgroundPosition="center center",p.style.backgroundRepeat="no-repeat",p.style.backgroundSize="cover");p.innerHTML=Oe(o,v),p.style.display="flex",e.el().appendChild(p),f.pauseAndHideControl(e),Ie("watch-live-resume-btn",u,(function(){f.showControl(e,p),f.playLiveOrResumeHandler(e,d)})),Ie("watch-begining-btn",s,(function(){f.showControl(e,p),f.playFromBeginningHandler(e,n)}))}(t,n),f.handleLiveStartOverBtn({player:t,showWatchLive:!0,showStartOver:!0})):f.removeDvrStartOver(t)})),t.one("loadedmetadata",(function(){sessionStorage.setItem("program_switched",!0),function(e,n){var t=n.videoId,o=e.currentTime(),i=!1,r=e.seekable(),l=r.start(0),a=r.end(r.length-1)-l,u=JSON.parse(sessionStorage.getItem("epgConfig")),s=t,d=!0;if(u&&null!=u&&u.enable){var c;d=(null==n||null===(c=n.epg)||void 0===c?void 0:c.programId)===(null==u?void 0:u.programId),s=null==u?void 0:u.programId}e.on("seeking",(function(){i=!0})),e.on("seeked",(function(){i=!1,o=e.currentTime();var t=JSON.parse(sessionStorage.getItem("epgConfig"));if(t&&null!=t&&t.enable){if(!d||sessionStorage.getItem("program_switched"))return;s="".concat(null==t?void 0:t.programId,"-").concat(null==t?void 0:t.channelId)}f.saveWatchedTime(s,o),f.getProgramStartTime(e,n),f.handleLiveStartOverBtn({player:e,showWatchLive:e.seekable().end(0)-e.currentTime()>5,showStartOver:!0})})),e.on("timeupdate",(function(){if(!i){var n=JSON.parse(sessionStorage.getItem("epgConfig"));if(n&&null!=n&&n.enable){if(!d||sessionStorage.getItem("program_switched")&&!e.currentTime())return;if(sessionStorage.getItem("program_switched")&&e.currentTime())return void sessionStorage.removeItem("program_switched");s="".concat(null==n?void 0:n.programId,"-").concat(null==n?void 0:n.channelId)}var t=e.currentTime();Math.abs(t-o)>=20&&(f.saveWatchedTime(s,t),o=t,function(e,n){ke(n).forEach((function(t){var o=t.id,i=t.title,r=t.time,l=document.getElementById(o);if(l){var a=Math.min(r/n*100,99.5);l.style.left="".concat(a,"%")}else{var u=e.controlBar.progressControl.seekBar.el(),s=be(o,i,Math.min(r/n*100,99.5));u.appendChild(s)}}))}(e,a))}}))}(t,n)}))}else console.warn("Player instance is required to initialize start over.")}function Ie(e,n,t){var o,i,r=document.getElementById(e);r&&(i=n,(o=r)&&(o.style.color="".concat((null==i?void 0:i.textColor)||"#000"),o.style.backgroundColor="".concat((null==i?void 0:i.backGroundColor)||"#DCF95B")),r.addEventListener("click",t))}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(null==e?void 0:e.buttonConfig)||{},o=t.watchLive,i=t.resume,r=t.startFromBegining,l=n?(null==i?void 0:i.text)||"Resume":(null==o?void 0:o.text)||"Watch Live",a='<button id="watch-live-resume-btn">'.concat(p.watchLiveIcon2()," ").concat(l,"</button>"),u='<button id="watch-begining-btn">'.concat(p.startLiveIcon()," ").concat((null==r?void 0:r.text)||"Start From Beginning","</button>");return'<div class="dvr-button">'.concat(a," ").concat(u,"</div>")}function Pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function je(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pe(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var Te=function(r,a,d,c){var v,p,f,m,g,y,h,b,w,S,I,O,P,j,T,C,E,D,x,L,A,V,N,B,_,M,H,q,U,F,W,G,K,J,z,X,Y,Q=a.res,ne=void 0===Q?null:Q,te=a.sres,oe=void 0===te?null:te,ie=null!=d&&d.chromecastReceiverId?["chromecast","html5"]:["html5"],re=(null===(v=ne)||void 0===v?void 0:v.contentType)||"video",le=u.impolicy16x9(null===(p=ne)||void 0===p||null===(f=p[re])||void 0===f||null===(m=f.gist)||void 0===m?void 0:m.videoImageUrl)||u.impolicy16x9(null===(g=ne)||void 0===g||null===(y=g[re])||void 0===y||null===(h=y.gist)||void 0===h||null===(b=h.imageGist)||void 0===b?void 0:b.r16x9),ae=(null===(w=ne)||void 0===w||null===(S=w[re])||void 0===S||null===(I=S.liveDetails)||void 0===I?void 0:I.isDvrEnabled)||!1,ue=(null===(O=ne)||void 0===O||null===(P=O[re])||void 0===P||null===(j=P.streamingInfo)||void 0===j?void 0:j.isLiveStream)||!1,se=(null===(T=ne)||void 0===T||null===(C=T.ads)||void 0===C||null===(E=C.preRoll)||void 0===E||null===(D=E.adTags)||void 0===D||null===(x=D.web)||void 0===x?void 0:x.active)&&(null===(L=ne)||void 0===L||null===(A=L.ads)||void 0===A||null===(V=A.preRoll)||void 0===V||null===(N=V.adTags)||void 0===N||null===(B=N.web)||void 0===B?void 0:B.url);ne=je(je({},ne),{},{audioAssetSource:null==d?void 0:d.audioAssetSource});var de=(null==d||null===(_=d.customData)||void 0===_?void 0:_.ads)||{},ce=(null===(M=ne)||void 0===M||null===(H=M[re])||void 0===H?void 0:H.isSSAIEnabled)&&"MEDIA_TAILOR"==(null==de?void 0:de.vodAdSticherProvider)||!1,ve=(null==d?void 0:d.latency)||6,pe=(null==d?void 0:d.skin_settings)||{};null==d||d.dvrConfig;var fe=(X={enableSmoothSeeking:!0,controls:0!=(null==d?void 0:d.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==d?void 0:d.muted)||!1,autoplay:(null==d?void 0:d.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:(null==pe?void 0:pe.pictureInPictureToggle)||!1},playbackRates:null!=pe&&pe.playbackRates?[.5,1,1.5,2]:[],muteToggle:"multiplayer"==d.skin,liveui:ae},n(X,"autoplay",null==d?void 0:d.autoplay),n(X,"normalizeAutoplay",(null==d?void 0:d.autoplay)&&!se),n(X,"loop",(null==d?void 0:d.loop)||!1),n(X,"audioPosterMode",null==d?void 0:d.audioPosterMode),n(X,"html5",je(je({dash:je(je(je({},!i.browser.IS_SAFARI&&{useTTML:!0}),(null==d?void 0:d.debugConfig)&&(null==d||null===(q=d.debugConfig)||void 0===q?void 0:q.enable)&&{debug:!0,logLevel:null!=d&&null!==(U=d.debugConfig)&&void 0!==U&&U.logLevel?null==d||null===(F=d.debugConfig)||void 0===F?void 0:F.logLevel:"DEBUG"}),{},{updateSettings:{streaming:{delay:{liveDelay:ve},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},gaps:{enableStallFix:!0,stallSeek:3},abr:je(je({},(null==d?void 0:d.initialBandwidth)&&{initialBitrate:{audio:-1,video:(null==d?void 0:d.initialBandwidth)/1e3}}),{},{autoSwitchBitrate:{video:!0,audio:!0}})}}}),vhs:je(je(je({},(null==d?void 0:d.initialBandwidth)&&{bandwidth:d.initialBandwidth}),{},{liveRangeSafeTimeDelta:ve,useDevicePixelRatio:!0,experimentalLLHLS:(null==d?void 0:d.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==d||null===(W=d.customData)||void 0===W?void 0:W.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:null===(G=null==d?void 0:d.enableLowInitialPlaylist)||void 0===G||G}),debug:(null==d?void 0:d.debugConfig)&&(null==d||null===(K=d.debugConfig)||void 0===K?void 0:K.enable)||!1,nativeTextTracks:"Safari"==e.detectBrowser()},0==(null==d||null===(J=d.customData)||void 0===J?void 0:J.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==d||null===(z=d.customData)||void 0===z?void 0:z.nativeVideoTracks)&&{nativeVideoTracks:!1})),n(X,"poster",le),n(X,"techOrder",ie),n(X,"chromecast",{requestCustomDataFn:function(e){var n,t,o=s.getPlayer(r),i=((null==o?void 0:o.textTracksJson_)||o.textTracks().tracks_).filter((function(e){return"captions"==e.kind||"subtitles"==e.kind})),l=function(e,n,t){var o,i,r,l,a,u,s,d,c,v,p=(null==e?void 0:e.contentType)||"video",f={};if(e&&null!=e&&e[p]&&null!=e&&e[p].drmEnabled){var m,g,y,h,b,w,k,S;f.isDrmEnabled=!0;var I=(null==n||null===(m=n.keySystems)||void 0===m?void 0:m["com.widevine.alpha"])||null,O=(null==I?void 0:I.url)||(null==n||null===(g=n.keySystemOptions)||void 0===g||null===(y=g[0])||void 0===y||null===(h=y.options)||void 0===h?void 0:h.serverURL);f.licenseUrl=O;var P=(null==I?void 0:I.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(b=n.keySystemOptions)||void 0===b||null===(w=b[0])||void 0===w||null===(k=w.options)||void 0===k||null===(S=k.httpRequestHeaders)||void 0===S?void 0:S["X-AxDRM-Message"]);f.licenseToken=P}var j=(null==e||null===(o=e[p])||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";f.contentType=j;var T=null==e||null===(r=e[p])||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.runtime;f.duration=T;var C=null==e||null===(a=e[p])||void 0===a||null===(u=a.gist)||void 0===u?void 0:u.title;f.mediaTitle=C;var E=null==e||null===(s=e[p])||void 0===s||null===(d=s.gist)||void 0===d?void 0:d.videoImageUrl;return f.mediaImage=E,f.subTitles=t,f.DVR=(null==e||null===(c=e[p])||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(f),f}(ne,e,i);return je(je({},l),{},{convivaMetaData:je({customerKey:(null==d||null===(n=d.convivaConfig)||void 0===n?void 0:n.customerKey)||null,debug:(null==d||null===(t=d.convivaConfig)||void 0===t?void 0:t.debug)||!1},Z.getData())})},modifyLoadRequestFn:function(e){var n,t,o,i,l,a=s.getPlayer(r),u=(null==a?void 0:a.currentSource())||{};!(null===(n=ne)||void 0===n||null===(t=n[re])||void 0===t||null===(o=t.streamingInfo)||void 0===o||null===(i=o.videoAssets)||void 0===i?void 0:i.is4K)&&1||null!=u&&u.src&&null!=u&&null!==(l=u.src)&&void 0!==l&&l.includes(".m3u8")&&(e.media.hlsSegmentFormat="fmp4",e.media.hlsVideoSegmentFormat="fmp4");return e}}),X);if(!i.getPlayers()[r]){null!=d&&d.debugConfig&&null!=d&&null!==(Y=d.debugConfig)&&void 0!==Y&&Y.enable&&i.log.level("debug");var me=i(r,fe,function(){var n=t(o.mark((function n(){var t,a,u,s,v,p,f,m,g,y,h,b,w,S,I,O,P,j,T,C,E;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(me),console.log(i.VERSION),console.log(i.getPlugins()),n.next=5,R(d,ne);case 5:if(w=null===(t=ne)||void 0===t||null===(a=t[re])||void 0===a||null===(u=a.liveDetails)||void 0===u?void 0:u.startOverTime,ue&&c.resolve(je({status:!0,msg:"Player Initialised"},oe?{seriesResponse:oe,response:ne}:{response:ne})),ae&&null!=d&&null!==(s=d.dvrConfig)&&void 0!==s&&s.enable&&Se(r,je(je({},d),{},{isDvrEnabled:ae})),e.inititateBeacon(r,null==d?void 0:d.analyticsCb,null==d?void 0:d.customData),$(r,d),/Android/i.test(navigator.userAgent)&&(i.options.vhs.overrideNative=!0),ae&&k(r,w),!se||null!=d&&null!==(v=d.customData)&&void 0!==v&&v.disableAds||e.initialiseAdvertisement(r,se,ne),S=e.getSource(ne,r),console.log(S),null!=d&&d.nearestClusterUrl&&(S=e.getUpdatedClusterSource(S,d.nearestClusterUrl)),!ce){n.next=21;break}return n.next=20,e.getSGAIEnabledSource(r,ne);case 20:S=n.sent;case 21:S?e.loadVideo(r,S):(c.reject({status:!1,msg:"Incompatible / Missing Source",response:ne}),e.handleError(r,"Incompatible / Missing Source")),((null===(p=ne)||void 0===p||null===(f=p[re])||void 0===f||null===(m=f.contentDetails)||void 0===m||null===(g=m.closedCaptions)||void 0===g?void 0:g.length)>0||(null===(y=ne)||void 0===y||null===(h=y[re])||void 0===h||null===(b=h.closedCaptions)||void 0===b?void 0:b.length)>0)&&(E=(null===(O=ne)||void 0===O||null===(P=O[re])||void 0===P||null===(j=P.contentDetails)||void 0===j?void 0:j.closedCaptions)||(null===(T=ne)||void 0===T||null===(C=T[re])||void 0===C?void 0:C.closedCaptions),I=E.filter((function(e){return"VTT"===e.format||"WEBVTT"===e.format})),l.addCaptions(r,I)),null!=d&&d.disableControls?e.disableControls(r):ee(r,je(je(je({},d),fe),{},{liveVideo:ue,isDvrEnabled:ae,res:ne,sres:oe})),he(r,je(je(je({},d),fe),{},{liveVideo:ue}),c,{res:ne,sres:oe});case 25:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}())}};function Ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function Ee(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ce(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var De,xe=function(e,n){var t=n.resolve,o=n.reject,i=null==e?void 0:e.playerId,r=Le(e);Te(i,{res:r},e,{resolve:t,reject:o})},Le=function(n){var t,o,i,r,l,a,u,s,d,c,v,p=null==n?void 0:n.streamingInfo,f=null==n||null===(t=n.streamingInfo)||void 0===t?void 0:t.videoAssets,g=(null==n||null===(o=n.streamingInfo)||void 0===o?void 0:o.isDrmEnabled)||null,y=(null==n||null===(i=n.streamingInfo)||void 0===i||null===(r=i.ads)||void 0===r?void 0:r.url)||null,h=(null==n||null===(l=n.streamingInfo)||void 0===l?void 0:l.posterUrl)||null,b=(null==n||null===(a=n.streamingInfo)||void 0===a?void 0:a.subtitles)||[],w=(null==n||null===(u=n.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.drmProvider)||null,k=(null==n||null===(d=n.streamingInfo)||void 0===d?void 0:d.macroMap)||[],S=(null==n||null===(c=n.customData)||void 0===c||null===(v=c.ads)||void 0===v?void 0:v.isSSAIEnabled)||!1,I=null==n?void 0:n.token,O=e.getDecodedToken(I);null==O||O.site;var P=null==O?void 0:O.siteId;return Ee(Ee({id:"".concat(P,"_external")},!g&&{directPlaybackUrl:null==f?void 0:f.url}),{},{video:Ee(Ee({drmEnabled:g,streamingInfo:Ee({videoAssets:Ee(Ee({},w&&{drmProvider:w}),{},{widevine:null==f?void 0:f.widevine,fairPlay:null==f?void 0:f.fairPlay,playReady:null==f?void 0:f.playReady})},(null==p?void 0:p.isDvrEnabled)&&{isLiveStream:!0})},S&&{isSSAIEnabled:S}),{},{metadata:k,liveDetails:{isDvrEnabled:null==p?void 0:p.isDvrEnabled},gist:Ee({},h&&{videoImageUrl:h}),contentDetails:Ee({},(null==b?void 0:b.length)>0&&{closedCaptions:m(b)})}),ads:{preRoll:{adTags:{web:Ee(Ee({},y&&{active:!0}),y&&{url:y})}}}})};function Re(e,n){return Ae.apply(this,arguments)}function Ae(){return(Ae=t(o.mark((function n(t,i){var r,l,a,u,s,d,v,p,f;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=i.resolve,u=i.reject,s=null==t?void 0:t.videoId,d=null==t?void 0:t.playerId,v=!(null==t||!t.anonymousId),n.next=6,e.getToken();case 6:p=n.sent,f=!1===(null==t||null===(r=t.customData)||void 0===r||null===(l=r.ads)||void 0===l?void 0:l.isSSAIEnabled),e.getVideoDetails(s,p,f).then((function(n){var o,i,r,l;window.contentType=null==n||null===(o=n.data)||void 0===o||null===(i=o.video)||void 0===i||null===(r=i.gist)||void 0===r?void 0:r.contentType,c.setCurrentVideo(null==n?void 0:n.data);var f,m=null==n?void 0:n.data;if(null!=t&&t.watchHistory&&null!=t&&null!==(l=t.watchHistory)&&void 0!==l&&l.enable&&!v)if((null===(f=t.watchHistory)||void 0===f?void 0:f.saveOffline)||!1){var g,y,h,b=de((null===(g=t.watchHistory)||void 0===g?void 0:g.profileId)||"",s,null==t?void 0:t.siteOwner);if(b&&b.length)t.watchHistoryResumeTime=(null===(y=b[0])||void 0===y?void 0:y.watchedTime)||null,t.watchedPercentage=(null===(h=b[0])||void 0===h?void 0:h.watchedPercentage)||null;m.contentType="video",Te(d,{res:m},t,{resolve:a,reject:u})}else e.getVideoInfo(s,p).then((function(e){var n,o,i,r,l,a;null!==(n=window)&&void 0!==n&&null!==(o=n.watchHistory)&&void 0!==o&&o.cb&&(null===(i=window)||void 0===i||null===(r=i.watchHistory)||void 0===r||r.cb(null==e?void 0:e.data)),t.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,t.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,m.contentType="video"})).catch((function(e){var n,t,o,i;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))})).finally((function(){Te(d,{res:m},t,{resolve:a,reject:u})}));else Te(d,{res:m},t,{resolve:a,reject:u})})).catch((function(n){e.initiateErrorHandling(n,d,u,s)}));case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function Ve(e,n){return Ne.apply(this,arguments)}function Ne(){return(Ne=t(o.mark((function n(t,i){var r,l,a,u,s,d,c,v;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=i.resolve,u=i.reject,n.next=3,e.getToken();case 3:s=n.sent,d=null==t?void 0:t.playerId,c=null==t?void 0:t.epg,v=!1===(null==t||null===(r=t.customData)||void 0===r||null===(l=r.ads)||void 0===l?void 0:l.isSSAIEnabled),e.getLinearChannelDetails(c,s,v).then((function(e){var n=null==e?void 0:e.data;n.contentType="linearchannel",n.channelId=null==c?void 0:c.channelId,Te(d,{res:n},t,{resolve:a,reject:u})})).catch((function(n){e.initiateErrorHandling(n,d,u,videoId)}));case 8:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function Be(e,n){return _e.apply(this,arguments)}function _e(){return(_e=t(o.mark((function n(t,i){var r,l,a,u,s,d,v;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=i.resolve,a=i.reject,n.next=3,e.getToken();case 3:u=n.sent,s=null==t?void 0:t.playerId,d=sessionStorage.getItem("season-idx")||0,c.seasonIdxManager.set(parseInt(d)),v=null==t||null===(r=t.series)||void 0===r?void 0:r.id,e.getSeriesDetails(v,u).then((function(n){var o,i,r,d=n.data,p=n.data.seasons;c.setCurrentSeries(p);var f=videoId||(null==p||null===(o=p[0])||void 0===o||null===(i=o.episodes)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.id);e.createSeriesWatchMap(v,u),e.getVideoDetails(f,u).then((function(e){var n,o,i;window.contentType=null==e||null===(n=e.data)||void 0===n||null===(o=n.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType,c.setCurrentVideo(e.data),Te(s,{res:null==e?void 0:e.data,sres:d},t,{resolve:l,reject:a})})).catch((function(n){e.initiateErrorHandling(n,s,a,videoId)}))})).catch((function(n){e.initiateErrorHandling(n,s,a)}));case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function Me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function He(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Me(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}exports.VLPlayerCore=function(){return{loadVideoInstantly:e.loadVideoInstantly,onTimeUpdate:r.onTimeUpdate,getVideoDuration:r.getVideoDuration,onVideoEnded:r.onVideoEnded,init:function(n){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Promise(function(){var i=t(o.mark((function t(i,r){var l,a,s,c,v,p,f,m,y,h,b,w,k,S,I,O,P,j,T,C,D,x,L,R,A;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isPlayerInitialised(null==n?void 0:n.playerId)){t.next=2;break}return t.abrupt("return");case 2:if(k=(null==n?void 0:n.videoSourceUrl)||!1,S=null==n?void 0:n.asat,I=(null==n||null===(l=n.epg)||void 0===l?void 0:l.enable)||!1,O=null==n?void 0:n.videoId,P=(null==n||null===(a=n.series)||void 0===a?void 0:a.enable)||!1,j=(null==n?void 0:n.streamingInfo)||!1,window.videoId=O,T=null==n?void 0:n.token,!e.token_authentication_enabled(n)){t.next=17;break}if(sessionStorage.setItem("vlp_token",T),e.refreshTokenManager().set(null==n?void 0:n.refreshToken),T&&!e.isTokenExpired(T)){t.next=16;break}return r({status:!1,msg:"".concat(T?"Token is expired !":"Missing Authorization Token"),response:{token:T}}),t.abrupt("return");case 16:De=JSON.parse(atob(T.split(".")[1]));case 17:return window.siteName=null===(s=De)||void 0===s?void 0:s.site,window.siteId=null===(c=De)||void 0===c?void 0:c.siteId,n.isAnonymousUser=!(null===(v=De)||void 0===v||!v.anonymousId),n.siteOwner=(null===(p=De)||void 0===p?void 0:p.site)||null,n.userId=(null===(f=De)||void 0===f?void 0:f.userId)||null,window.sessionStorage.setItem("uid",null===(m=De)||void 0===m?void 0:m.userId),window.watchHistory=n.watchHistory||null,C=null==n?void 0:n.playerId,n.chromecastReceiverId=null!=n&&null!==(y=n.series)&&void 0!==y&&y.enable?null:null==n?void 0:n.chromecastReceiverId,D=(null==n||null===(h=n.analytics)||void 0===h?void 0:h.gaId)||null,(x=null==n?void 0:n.errors)&&(window.customErrors=x),window.customData=null==n?void 0:n.customData,d.setLocalisation(null==n||null===(b=n.customData)||void 0===b?void 0:b.localisation),e.baseUrlManager.set(n.apiBaseUrl),null!=n&&n.skin&&!u.isNotAValidSkin(n.skin)||(n.skin="VL_ONE"),t.next=35,E(n);case 35:D&&g("https://www.googletagmanager.com/gtag/js?id=".concat(D)).then((function(){return e.runGtag(D)})).catch((function(e){})),(L=null===(w=document)||void 0===w?void 0:w.getElementById("".concat(C)))&&L.addEventListener("contextmenu",(function(e){return e.preventDefault()})),k?(A={directPlaybackUrl:k,id:R="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},S?e.getVideoDetails(R,T).then((function(e){var t=(null==e?void 0:e.data)||{};Te(C,{res:He(He({},t),A)},n,{resolve:i,reject:r})})).catch((function(n){e.initiateErrorHandling(n,C,r,R)})):Te(C,{res:A},n,{resolve:i,reject:r})):j?xe(n,{resolve:i,reject:r}):P?Be(n,{resolve:i,reject:r}):I?Ve(n,{resolve:i,reject:r}):Re(n,{resolve:i,reject:r});case 39:case"end":return t.stop()}}),t)})));return function(e,n){return i.apply(this,arguments)}}())},getRenditions:a.getRenditions,skip:e.skip,getPlayer:s.getPlayer,play:e.play,pause:e.pause,detectBrowser:e.detectBrowser,rewind:e.rewind,loadVideo:e.loadVideo,seekToTimeStamp:r.seekToTimeStamp,isPlayerInitialised:e.isPlayerInitialised,load:e.load,authenticateLC:e.authenticateLC,dispose:e.dispose,enableCaptions:l.enableCaptions,disableCaptions:l.disableCaptions,getCaptions:l.getCaptions,playSelectedResolution:a.playSelectedResolution,getSource:e.getSource,setVolume:h,getVolume:b,disableControls:e.disableControls,setPlaybackSpeed:r.setPlaybackSpeed,getEntitlementData:e.getEntitlementData,adsQueuePointManager:e.adsQueuePointManager,getSsaiEvents:e.getSsaiEvents,playerEvents:r.playerEvents,onReplay:r.onReplay,isBehindLive:e.isBehindLive}},exports.initiateMarker=function(e){var n=s.getPlayer(e),t=n.seekable(),o=n.controlBar.progressControl.seekBar.el();if(t&&t.length>0){var i=t.start(0),r=t.end(t.length-1)-i;we(),ke(r).forEach((function(e){var n=e.id,t=e.title,i=e.time,l=be(n,t,Math.min(i/r*100,99.5));o.appendChild(l)}))}},exports.removeMarkers=we;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),i=require("./icons-2609dbe4.js"),o=require("./generic-6a2ba5db.js"),l=require("./skin-f5e18b89.js"),c=require("./player_instance-fcf6a8fb.js");function d(e){var t=u();return function(){var r,s=a(e);if(t){var i=a(this).constructor;r=Reflect.construct(s,arguments,i)}else r=s.apply(this,arguments);return n(this,r)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js");var m=s.getComponent("Component"),p=function(n){r(u,m);var a=d(u);function u(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),(r=a.call(this,t,n)).playerId=n.playerId,r.seriesData=n.sres,r.streams=n.streams,r.currentVideoData=n.res,r.initialiseStructure(),r.loadCSS(),r}return t(u,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(i.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-7a86b517.js")})).then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(l.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var n=window.getComputedStyle(r,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),r.style.overflow="hidden",s.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),n=s.dom.createEl("div",{className:"stream-selector-head"}),a=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(i.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var l=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),u=s.dom.createEl("div",{className:"stream-tray"}),m=function(e){var r,n=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(i.SelectedStream())});0==e&&(n.classList.add("selected"),n.style.border="4px solid #D2393B"),n.onclick=function(){for(var r=s.dom.$$(".stream"),a=0;a<r.length;a++)r[a].style.border="none",r[a].classList.remove("selected");n.classList.add("selected"),n.style.border="4px solid #D2393B",o.load(t.playerId,t.streams[e].id).then((function(e){o.play(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(t.streams[e].img,")");var a=document.createElement("img");a.className="stream-thumbnail-image",a.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),a.alt="No Thumbnail Available",n.append(a),s.dom.appendContent(u,n),s.dom.appendContent(d,u)},p=0;p<this.streams.length;p++)m(p);s.dom.appendContent(n,a),s.dom.appendContent(n,l),s.dom.appendContent(e,n),s.dom.appendContent(e,d),c.getPlayer(this.playerId).on("fullscreenchange",(function(){var r=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(r,"px")}))}}]),u}();exports.default=p;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),t=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),l=require("./icons-2609dbe4.js"),s=require("./generic-6a2ba5db.js"),a=require("./currentVideoInfo-31d70bec.js"),d=require("./skin-f5e18b89.js");function u(e){var n=c();return function(){var t,o=i(e);if(n){var l=i(this).constructor;t=Reflect.construct(o,arguments,l)}else t=o.apply(this,arguments);return r(this,t)}}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js");var p=o.getComponent("Component"),v=function(r){t(s,p);var i=u(s);function s(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,s),(t=i.call(this,n,r)).playerId=r.playerId,t.seriesData=r.sres,t.currentVideoData=r.res,t.initialiseStructure(),t.loadCSS(),t}return n(s,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"play-next"}),n=o.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return o.dom.appendContent(e,n),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./nextEpisodeButton-b6e6586f.js")})).then((function(e){var n=document.createElement("style");n.id="multicam",n.append("".concat(e.default)),document.head.appendChild(n)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),n=o.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),t=o.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=o.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=o.dom.createEl("div",{className:"next-eps-image"}),l=o.dom.createEl("div",{className:"next-eps-description"});o.dom.appendContent(r,i),o.dom.appendContent(r,l),o.dom.appendContent(n,t),o.dom.appendContent(n,r),this.toggleContentOnHover(e,n),o.dom.appendContent(e,n)}},{key:"toggleContentOnHover",value:function(e,n){e.addEventListener("mouseover",(function(){o.dom.removeClass(n,"nextepisode-hidden")})),n.addEventListener("mouseover",(function(){o.dom.removeClass(n,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){o.dom.addClass(n,"nextepisode-hidden")})),n.addEventListener("mouseout",(function(){o.dom.addClass(n,"nextepisode-hidden")}))}}]),s}(),m=function(e,n){for(var t=-1,r=0;r<e.length;r++)for(var i=0;i<e[r].episodes.length;i++)if(e[r].episodes[i].id===n){t=r;break}return t},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;if(!(e&&n>=0))return{prevEp:null,nextEp:null};var t=e.episodes.length,r=n-1>=0?n-1:t-1,i=(n+1)%t,o=t>1?e.episodes[r]:null,l=t>1?e.episodes[i]:null;return r===i&&(0===r?l=null:o=null),{prevEp:o,nextEp:l,prevEpIdx:r,nextEpIdx:i}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,t=null;return e?(e.episodes.forEach((function(e,r){e.gist.id===n&&(t=r)})),t):null},x=function(e){var n,t;o.dom.$(".next-eps"),o.dom.$(".play-next").onclick=function(){var n;s.load("my-player",null==e||null===(n=e.gist)||void 0===n?void 0:n.id).then((function(e){a.setCurrentVideo(e.response)}))};var r=o.dom.$(".next-eps-image"),i=d.parseHtmlString("<img src=".concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==r||r.append(l);for(var u=o.dom.$(".next-eps-description"),c=d.parseHtmlString("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.description,"</div>"));null!=c&&c.firstChild;)null==u||u.appendChild(c.firstChild)};exports.default=v,exports.initaliseFunctionality=function(e,n){var t=m(e,n.video.gist.id),r=h(e[t],n.video.gist.id),i=f(e[t],r);x(i.nextEp)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/assertThisInitialized"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-2609dbe4.js"),d=require("./generic-6a2ba5db.js"),c=require("./currentVideoInfo-31d70bec.js"),u=require("./skin-f5e18b89.js"),v=require("./autoNextVideo-a96d73b9.js"),p=require("./player_instance-fcf6a8fb.js");function m(e){var t=h();return function(){var n,s=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(s,arguments,i)}else n=s.apply(this,arguments);return o(this,n)}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-7c5a46f3.js");var f=l.getComponent("Component"),g=function(o){i(h,f);var r=m(h);function h(n){var i,o,l,a,d,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,h),(u=r.call(this,n,p)).playerId=p.playerId,u.seriesData=p.sres,u.videos=null==p||null===(i=p.sres)||void 0===i?void 0:i.seasons,u.currentVideoData=p.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==p||null===(o=p.series)||void 0===o?void 0:o.cb,u.autoPlayNext=(null==p||null===(l=p.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=c.getSeriesWatchMap(),null!==(a=s(u))&&void 0!==a&&a.autoPlayNext&&null!=p&&null!==(d=p.series)&&void 0!==d&&d.enable){var m,f,g,y,C=null==p||null===(m=p.sres)||void 0===m?void 0:m.seasons,b=[];C.map((function(t){b.push.apply(b,e(t.episodes))})),c.createIdxMapping(b),c.setVideoIdxById(null===(f=u.options_)||void 0===f||null===(g=f.res)||void 0===g||null===(y=g.video)||void 0===y?void 0:y.id),v.autoPlayNext({playerId:u.playerId,content:b,cb:u.cb,series:null==p?void 0:p.sres})}return u}return n(h,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-e037e14e.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,n=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(u.closeOpenDrawers(),e.classList.remove("hidden"),n.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(n)};var s=document.getElementById(this.playerId);if(s){var i=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);n.style.height="".concat(i,"px"),l.dom.appendContent(t,n),s.style.overflow="hidden",this.addFunctionality(n)}}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),s=l.dom.createEl("div",{className:"series-selector-head"}),i=l.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){if("series-selector-cross-icon"===i.className)e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===i.className){var s=l.dom.$(".series-selector-content",t.el());for(l.dom.$(".series-selector-cross-icon",t.el()),i.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=t.createSeasonLister();for(l.dom.appendContent(s,o),l.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=i&&i.firstChild;)i.removeChild(i.firstChild);var r=u.parseSvgString(a.crossIconSvg());i.appendChild(r)}};var o=l.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),r=l.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();l.dom.appendContent(r,d),l.dom.appendContent(s,i),l.dom.appendContent(s,o),l.dom.appendContent(e,s),l.dom.appendContent(e,r),p.getPlayer(this.playerId).on("fullscreenchange",(function(){var n=document.getElementById(t.playerId);if(n){var s=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(s,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;p.getPlayer(this.playerId);for(var t=c.getCurrentSeries(),n=l.dom.createEl("div",{className:"season-container"}),s=function(s){var i,o=document.createElement("label");o.className="season-holder",o.setAttribute("for","season-".concat(s));var r=document.createElement("div");r.className="season - ".concat(s),r.textContent=null===(i=t[s])||void 0===i?void 0:i.title;var a=l.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==s&&(a.checked=!0),a.onclick=function(t){c.seasonIdxManager.set(s),e.showSeasonDetails(s)},l.dom.appendContent(o,a),l.dom.appendContent(o,r),l.dom.appendContent(n,o)},i=0;i<t.length;i++)s(i);return n}},{key:"getSeasonDetailsContainer",value:function(t,n){var s=this;t=t.map((function(e){var t,n,i,o,r;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===(n=e.gist)||void 0===n||null===(i=n.imageGist)||void 0===i?void 0:i.r16x9,watchedPercentage:(null==s||null===(o=s.watchMap)||void 0===o||null===(r=o.get(null==e?void 0:e.id))||void 0===r?void 0:r.p)||0}}));for(var i=function(i){var o,r,a,u,v,p,m,h=l.dom.createEl("div",{className:"series-container"}),f=l.dom.createEl("div",{className:"series-section",index:i}),g=l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(o=t[i])||void 0===o?void 0:o.title)||"")}),y=l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[i].watchedPercentage,"%' class='series-progress-bar-value'></div>")});l.dom.appendContent(f,g),l.dom.appendContent(f,y),l.dom.appendContent(h,f),l.dom.appendContent(n,h);var C=l.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(r=t[i])||void 0===r?void 0:r.description)||"";(null===(a=b)||void 0===a?void 0:a.length)>170&&(b=b.substr(0,170)+"...");var S=l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),N=l.dom.createEl("img",{className:"series-image"});N.src="".concat((null===(u=t[i])||void 0===u?void 0:u.img)||(null===(v=window)||void 0===v||null===(p=v.customData)||void 0===p?void 0:p.fallbackImage)),N.alt="".concat(null===(m=t[i])||void 0===m?void 0:m.title),l.dom.appendContent(C,N),l.dom.appendContent(C,S),l.dom.appendContent(h,C),l.dom.appendContent(n,h),C.onclick=function(e){var n;e.stopPropagation(),c.setVideoIdxById(null===(n=t[i])||void 0===n?void 0:n.id),d.load(s.playerId,t[i].id).then((function(e){null!=s&&s.cb&&s.cb(e)})).catch((function(e){null!=s&&s.cb&&s.cb(e)}))},f.onclick=function(t){var n,s,i,o=document.getElementsByClassName("series-selector-content")[0].childNodes,r=(o=e(o))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=r&&null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(h.style.backgroundColor="#0000007d",null==r||null===(s=r.classList)||void 0===s||s.remove("hidden")):(null==r||null===(i=r.classList)||void 0===i||i.add("hidden"),h.style.backgroundColor="unset")}},o=0;o<t.length;o++)i(o);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=l.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var n=c.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(n,t);var s=l.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var i=u.parseSvgString(a.BackIcon());s.appendChild(i),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),h}();exports.default=g;
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-e0b20fb8.js"),l=require("./player_instance-fcf6a8fb.js"),i=require("./index-f7a6741b.js"),r=require("./index-3eef2a22.js"),n=require("./generic-6a2ba5db.js");require("videojs-contrib-quality-menu");var o=require("./index-d7f46b96.js"),t=require("./helper-a50a8ffc.js"),u=require("./currentVideoInfo-31d70bec.js"),a=require("video.js"),d=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./resolution-f9dcc1b4.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-f5e18b89.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-a96d73b9.js"),require("./util-7c5a46f3.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@viewlift/comscore/index.js"),require("video.js/dist/video-js.min.css");function s(a,d){var s=l.getPlayer(a);s&&(s.on("loadeddata",(function(){var e,v,c,p,m,g=t.checkDvrStartOverEnabled(d),b=u.getCurrentEpgPrograms();s.qualityLevels()&&s.qualityLevels().length&&function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(a),!(null!=d&&null!==(e=d.series)&&void 0!==e&&e.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=d&&d.liveVideo||i.addNextEpPreview(a,d),null!=d&&d.liveVideo||n.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||r.initiateTrickplay(a),g&&b&&b.length?o.initiateMarker(a):o.removeMarkers()})),s.one("play",(function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(a,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}var v=function(e,i){var r,n,o,t,u,d,s,v,c,p,m,g,b=l.getPlayer(e),h=(null==i?void 0:i.theme)||{},y=a.dom.$(".vjs-play-progress"),q=a.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");q&&(q.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(t=o.brand)||void 0===t||null===(u=t.cta)||void 0===u||null===(d=u.primary)||void 0===d?void 0:d.backgroundColor)),y&&(y.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(g=m.primary)||void 0===g?void 0:g.backgroundColor));var f=b.getChild("BigPlayButton")||null;(null==h?void 0:h.progressBarColor)&&y&&(y.style.background=h.progressBarColor),(null==h?void 0:h.playButtonBackgroundColor)&&f&&(f.el().style.background=h.playButtonBackgroundColor),(null==h?void 0:h.playButtonColor)&&q&&(q.style.color=h.playButtonColor),(null==h?void 0:h.playButtonType)&&("square"==(null==h?void 0:h.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),s(r,o),function(r,o){var a,s,v,c,p,m,g,b,h,y=l.getPlayer(r),q=(null==o?void 0:o.liveVideo)||!1,f=(null==o||null===(a=o.res)||void 0===a?void 0:a.contentType)||"video",j=(null==o||null===(s=o.res)||void 0===s||null===(v=s[f])||void 0===v?void 0:v.isSSAIEnabled)||!1,k=n.getSource(null==o?void 0:o.res,r)||{};k.src;var w=(null==o?void 0:o.skin_settings)||{},C=(null==o||null===(c=o.customData)||void 0===c?void 0:c.ads)||{};if(t.checkDvrStartOverEnabled(o),q&&!(null!=o&&o.liveui)){var B,S,T=(null==y||null===(B=y.controlBar)||void 0===B||null===(S=B.getChild("LiveDisplay"))||void 0===S?void 0:S.el())||null;T&&(T.onclick=function(){try{var e;null==y||null===(e=y.liveTracker)||void 0===e||e.seekToLiveEdge()}catch(e){console.log(e,"Cannot seek to LE")}})}null!=w&&w.skipBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)&&e.addSkipButton(r,"VL_ONE",d.SkipSvgV2());(null!=w&&w.rewindBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)||1==(null==o?void 0:o.liveui))&&e.addRewindButton(r,"VL_ONE",d.RewindSvgV2());(null==o||null===(p=o.relatedVideos)||void 0===p||null===(m=p.content)||void 0===m?void 0:m.length)>0&&e.addVideoSelector(r,null==o?void 0:o.relatedVideos);null!=o&&null!==(g=o.series)&&void 0!==g&&g.enable&&e.addSeriesSelectorV2(r,o);(null==o||null===(b=o.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(r,null==o?void 0:o.streams);if(i.addTVProviderImage(r,o),n.initialiseKeyboardEvents(r,o),"MEDIA_TAILOR"==(null==C?void 0:C.vodAdSticherProvider)&&null!=C&&C.vodAdClientSideTracking&&j)if(q)n.setupAdvertisementMarkersForLinear(r);else{var L,M=null;if(null!=o&&null!==(L=o.series)&&void 0!==L&&L.enable){var V,E,P,x,A,D=null===(V=u.getCurrentVideo())||void 0===V||null===(E=V.video)||void 0===E||null===(P=E.gist)||void 0===P?void 0:P.id,O=u.getSeriesWatchMap(),_=(null==O?void 0:O.get(D))||{t:0,p:0},I=_.t,R=_.p;"function"==typeof(null===(x=window)||void 0===x||null===(A=x.watchHistory)||void 0===A?void 0:A.cb)&&window.watchHistory.cb({watchedTime:I}),R<95&&(M=I)}else{var N=o.watchHistoryResumeTime;o.watchedPercentage<95&&(M=N)}n.setupAdvertisementMarkers(r,M)}null!=o&&o.isDvrEnabled&&null!=o&&null!==(h=o.dvrConfig)&&void 0!==h&&h.enable&&(e.addStartFromBeginningButton(r,o),e.addWatchLiveButton(r,o))}(r,o),v(r,o),function(e){var i,r,n,o=l.getPlayer(e),t=null;if(!o)return;var u=o.controlBar.getChild("VolumePanel"),a=null===(i=u.getChild("MuteToggle"))||void 0===i?void 0:i.el(),d=null==u||null===(r=u.el())||void 0===r?void 0:r.querySelector(".vjs-volume-bar"),s=null==u||null===(n=u.el())||void 0===n?void 0:n.querySelector(".vjs-volume-level");if(!u||!d||!s)return;function v(e){e.preventDefault(),t&&(clearTimeout(t),t=null),p(m(e.touches[0]))}function c(e){e.preventDefault(),p(m(e.changedTouches[0])),t=setTimeout((function(){u.el().classList.remove("vjs-hover")}),2e3)}function p(e){var l=Math.min(Math.max(e,0),100);s.style.height=l+"%",d.setAttribute("aria-valuenow",l),d.setAttribute("aria-valuetext",l+"%"),o.volume(l/100)}function m(e){var l=d.getBoundingClientRect(),i=e.clientY-l.top,r=l.height;return 100-Math.min(Math.max(i/r*100,0),100)}a.addEventListener("touchend",(function(){null!=u&&u.el()&&(u.el().classList.toggle("vjs-hover"),o.muted(!1),t&&(clearTimeout(t),t=null),t=setTimeout((function(){u.el().classList.remove("vjs-hover")}),2e3))})),d.addEventListener("touchmove",v,{passive:!1}),d.addEventListener("touchstart",v,{passive:!1}),d.addEventListener("touchend",c,{passive:!1})}(r)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-e0b20fb8.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-f5e18b89.js"),t=require("./resolution-f9dcc1b4.js"),o=require("./index-f7a6741b.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray");var r=require("./generic-6a2ba5db.js"),s=require("./currentVideoInfo-31d70bec.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/assertThisInitialized"),require("./autoNextVideo-a96d73b9.js"),require("./util-7c5a46f3.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(u,a){i.getPlayer(u).addClass("skin_mini"),function(l,n){var r=i.getPlayer(l);r&&r.on("loadeddata",(function(){var i,r,s,u,a,d,v;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==n||null===(r=n.skin_settings)||void 0===r?void 0:r.settingsToggle)&&e.addSettingsButtonV2(l,n),!(null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(a=u.app_data)&&void 0!==a&&null!==(d=a.appcmsMain)&&void 0!==d&&null!==(v=d.features)&&void 0!==v&&v.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n)}))}(u,a),function(e,l){var t,o,r,s,u,a,d,v,C,c,h,p,f,m,b,g,y,B,L=i.getPlayer(e);null===(t=L.controlBar)||void 0===t||t.removeChild("VolumePanel"),null===(o=L.controlBar)||void 0===o||o.addChild("VolumePanel",{inline:!1},1);var j=null===(r=L.controlBar)||void 0===r?void 0:r.getChild("ProgressControl"),V=document.createElement("div");V.className="custom-spaced-progress-bar",j&&V.append(j.el());null===(s=L.controlBar)||void 0===s||null===(u=s.el())||void 0===u||u.append(V);var E='<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>';L.el().insertBefore(n.parseSvgString(E),null!==(a=L.el().firstChild)&&void 0!==a?a:null);var w=(null==L||null===(d=L.controlBar)||void 0===d||null===(v=d.getChild("PlayToggle"))||void 0===v||null===(C=v.el())||void 0===C?void 0:C.firstChild)||null;if(w){w.style.height="16px",w.style.width="16px";var x=n.injectSVG(w,L.paused()?"#vjs-icon-play":"#vjs-icon-pause");L.on("pause",(function(){return x.setAttributeNS(null,"href","#vjs-icon-play")})),L.on("play",(function(){return x.setAttributeNS(null,"href","#vjs-icon-pause")}))}var S=(null==L||null===(c=L.controlBar)||void 0===c||null===(h=c.getChild("FullscreenToggle"))||void 0===h||null===(p=h.el())||void 0===p?void 0:p.firstChild)||null;if(S){S.style.height="24px",S.style.width="24px";var M=n.injectSVG(S,"#vjs-icon-fullscreen");L.on("fullscreenchange",(function(){var e=L.isFullscreen_;null==M||M.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var q=(null==L||null===(f=L.controlBar)||void 0===f||null===(m=f.getChild("VolumePanel"))||void 0===m?void 0:m.el())||null;if(q){var k=q.querySelector(".vjs-mute-control .vjs-icon-placeholder");k.classList.add("vjs-svg-icon"),k.style.height="24px",k.style.width="24px";var T=n.injectSVG(k,L.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");L.on("volumechange",(function(e){var l=L.volume();0==l||L.muted()?T.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?T.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?T.setAttributeNS(null,"href","#vjs-icon-volume2"):T.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var A=(null==L||null===(b=L.controlBar)||void 0===b||null===(g=b.getChild("PictureInPictureToggle"))||void 0===g?void 0:g.el())||null;if(A){var P=null==A?void 0:A.querySelector(".vjs-icon-placeholder");P.style.height="25px",P.style.width="25px";var Z=n.injectSVG(P,"#vjs-icon-pip");L.on("enterpictureinpicture",(function(){Z.setAttributeNS(null,"href","#vjs-icon-pip")}))}var _=(null==L||null===(y=L.controlBar)||void 0===y||null===(B=y.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(_){var N=_.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");N.classList.add("vjs-svg-icon"),N.style.height="29px",N.style.width="29px";var H=n.injectSVG(N,"#vjs-icon-caps");H.setAttributeNS(null,"href","#vjs-icon-captions-off"),L.textTracks().on("change",(function(e){for(var l=L.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?H.setAttributeNS(null,"href","#vjs-icon-captions"):H.setAttributeNS(null,"href","#vjs-icon-captions-off")}))}L&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(L.liveTracker.on("liveedgechange",(function(){G(L)})),L.on("timeupdate",(function(){G(L)})));function I(e){var l=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),t=function(e){return String(e).padStart(2,"0")};return 0===l?"".concat(t(i),":").concat(t(n)):"".concat(t(l),":").concat(t(i),":").concat(t(n))}function D(e){var l=e.seekable();if(l&&l.length>0){var i=l.end(0);return Math.max(0,i-e.currentTime())}return 0}function G(e){var l,i,n=e.liveTracker.atLiveEdge(),t=D(e),o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(o){var r=o.querySelector(".vjs-remaining-time-display");n?o.style.display="none":(o.style.display="flex",r&&(r.innerText=I(t)))}}}(u,a),function(i,n){var t,o,u,a,d,v,C,c,h,p=(null==n||null===(t=n.res)||void 0===t||null===(o=t.video)||void 0===o?void 0:o.isSSAIEnabled)||!1,f=(null==n?void 0:n.skin_settings)||{};null==f||f.slowMoBtn;var m=(null==n||null===(u=n.customData)||void 0===u?void 0:u.ads)||{};null!=f&&f.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());null!=f&&f.rewindBtn&&(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(a=n.relatedVideos)||void 0===a||null===(d=a.content)||void 0===d?void 0:d.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(v=n.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(C=n.playlist)||void 0===C||null===(c=C.content)||void 0===c?void 0:c.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(h=n.series)&&void 0!==h&&h.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n);if("MEDIA_TAILOR"==(null==m?void 0:m.vodAdSticherProvider)&&null!=m&&m.vodAdClientSideTracking&&p){var b,g=null;if(null!=n&&null!==(b=n.series)&&void 0!==b&&b.enable){var y,B,L,j=null===(y=s.getCurrentVideo())||void 0===y||null===(B=y.video)||void 0===B||null===(L=B.gist)||void 0===L?void 0:L.id,V=s.getSeriesWatchMap(),E=(null==V?void 0:V.get(j))||{t:0,p:0},w=E.t;E.p<95&&(g=w)}else{var x=n.watchHistoryResumeTime;n.watchedPercentage<95&&(g=x)}r.setupAdvertisementMarkers(i,g)}}(u,a),o.addTVProviderImage(u,a)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/typeof"),n=require("./generic-6a2ba5db.js"),t=require("./currentVideoInfo-31d70bec.js"),o=require("./player_instance-fcf6a8fb.js"),r=!1;exports.getVideoDuration=function(e){var n=o.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onReplay=function(e,i){var a=o.getPlayer(e);a?(a.on("ended",(function(){return r=!0})),a.on("timeupdate",(function(){if(!a.paused()&&r){var e,o,c=null===(e=t.getCurrentVideo())||void 0===e||null===(o=e.video)||void 0===o?void 0:o.id;t.videoReplayTracker.get(c)?(t.videoReplayTracker.clear(),n.trackMap.clear(),i(),t.videoReplayTracker.set(c)):(t.videoReplayTracker.clear(),t.videoReplayTracker.set(c)),r=!1}}))):i("Cannot find player with id: '".concat(e,"'"))},exports.onTimeUpdate=function(e,n){var t=o.getPlayer(e);t?t.on("timeupdate",(function(){return n(t.currentTime())})):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var t=o.getPlayer(e);t?t.on("ended",(function(){return n(!0)})):n("Cannot find player with id: '".concat(e,"'"))},exports.playerEvents=function(){var n=function(e,n){var t=o.getPlayer(e);if(!t)throw"Cannot find player with id: '".concat(e,"'");if("function"!=typeof n)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(e,t){n(e,t).on("play",(function(){return t()}))},onPause:function(e,t){n(e,t).on("pause",(function(){return t()}))},onMute:function(e,t){var o=n(e,t);o.on("volumechange",(function(){o.muted()?t({muted:!0}):t({muted:!1})}))},onPictureInPictureChange:function(e,t){var o=n(e,t);o.on("enterpictureinpicture",(function(){t({pip:!0})})),o.on("leavepictureinpicture",(function(){t({pip:!1})}))},onFullScreenChange:function(e,t){var o=n(e,t);o.on("fullscreenchange",(function(e){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})}))},onSetVolume:function(e,t){var o=n(e,t);o.on("volumechange",(function(){var e=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:e})}))},onSeeked:function(e,t){var o=n(e,t);o.on("seeked",(function(){t({seeked:o.currentTime()})}))},onSubtitleEnable:function(e,t){var o=n(e,t);o.textTracks().on("change",(function(e){console.log(o.textTracks());var n=o.textTracks().tracks_.filter((function(e){return("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode}));n.length>0&&t({enabled:n[0]})}))},onDisableSubtitles:function(e,t){var o=n(e,t);o.textTracks().on("change",(function(e){var n,r;console.log(o.textTracks()),(null==o||null===(n=o.textTracks())||void 0===n||null===(r=n.tracks_)||void 0===r?void 0:r.every((function(e){return"showing"!=e.mode})))&&t({captions_disabled:!0})}))},onSubtitleCueChange:function(t,o){var r=n(t,o);r.on("loadeddata",(function(){var n,t,i,a,c,u=r.textTracks();"object"==e(r.dash)&&null!=r.dash&&r.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(i=t.dashjs)||void 0===i||null===(a=i.MediaPlayer)||void 0===a||null===(c=a.events)||void 0===c?void 0:c.CAPTION_RENDERED,(function(e){o(e)}));for(var l=0;l<u.length;l++){var d=u[l];"metadata"===d.kind&&(d.mode="hidden",n=d)}n&&n.addEventListener("cuechange",(function(){var e=n.activeCues;if(e&&e.length>0)for(var t=0;t<e.length;t++){var r=e[t];o(r)}else console.log("no active cue at this moment")}))}))},onError:function(e,t){var o=n(e,t);o.on("error",(function(){var e,n;t({error:null==o||null===(e=o.error())||void 0===e?void 0:e.code,msg:null==o||null===(n=o.error())||void 0===n?void 0:n.message})}))}}},exports.seekToTimeStamp=function(e,n,t){var r=o.getPlayer(e);r?n>=0&&n<=r.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),r.currentTime(n)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var t=o.getPlayer(e);if(!t)return"Cannot find player with id: '".concat(e,"'");try{return t.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(e){return"Error: ".concat(e)}};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-2609dbe4.js"),r=require("./generic-6a2ba5db.js"),d=require("./currentVideoInfo-31d70bec.js"),s=require("./skin-f5e18b89.js"),c=require("./autoNextVideo-a96d73b9.js"),u=require("./localisation-56e0a999.js");function m(e){var t=v();return function(){var n,l=i(e);if(t){var a=i(this).constructor;n=Reflect.construct(l,arguments,a)}else n=l.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-7c5a46f3.js");var p=l.getComponent("Component"),h=function(o){n(v,p);var i=m(v);function v(t){var n,o,l,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),(l=i.call(this,t,a)).playerId=a.playerId,l.seriesData=a.sres,l.videos=a.related.content,l.cb=(null==a||null===(n=a.related)||void 0===n?void 0:n.cb)||null,l.autoNext=(null==a||null===(o=a.related)||void 0===o?void 0:o.autoNext)||!1,l.currentVideoData=a.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return t(v,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-b6e03076.js")})).then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),s.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),s.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;d.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";s.highlightVideo(e),r.load(this.playerId,this.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))}},{key:"handleTabIndexSelector",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var r=l.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),d=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,u,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(s.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||s.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(u=r.images)||void 0===u?void 0:u.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(c,p),l.dom.appendContent(d,c)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,d),s.handleDrawerResizing(this.playerId,e)}}]),v}();exports.default=h;