@viewlift/player-backup 2.0.300-backup → 2.0.302-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 (150) hide show
  1. package/cjs/{autoNextVideo-5bd449e1.js → autoNextVideo-6cab8d20.js} +1 -1
  2. package/cjs/browser-77c57718.js +1 -0
  3. package/cjs/bundle.css +416 -422
  4. package/cjs/{caption-settings-5efc7591.js → caption-settings-058ad013.js} +1 -1
  5. package/cjs/{captions-5f9611f1.js → captions-d98c49d6.js} +1 -1
  6. package/cjs/{features-0ed32b63.js → features-210cbfeb.js} +1 -1
  7. package/cjs/generic-9239e4ef.js +1 -0
  8. package/cjs/index-268c83a3.js +1 -0
  9. package/cjs/{index-0cb8083b.js → index-50e69a99.js} +1 -1
  10. package/cjs/{index-e8be489f.js → index-b3582f46.js} +1 -1
  11. package/cjs/index.js +1 -1
  12. package/cjs/{multicamv2-cff7b8b7.js → multicamv2-1af47226.js} +1 -1
  13. package/cjs/{multicamv2-25c95b47.js → multicamv2-b1a591f5.js} +1 -1
  14. package/cjs/{nextEpisodeButton-74e8a0df.js → nextEpisodeButton-f6da5f9e.js} +1 -1
  15. package/cjs/{playlist-415e42ad.js → playlist-25247b47.js} +1 -1
  16. package/cjs/{relatedVideosManager-eeeaf32c.js → relatedVideosManager-0a220d05.js} +1 -1
  17. package/cjs/{renditions-6f165ef5.js → renditions-6554142b.js} +1 -1
  18. package/cjs/{resolution-19103db5.js → resolution-4c007d14.js} +1 -1
  19. package/cjs/{series-1e91f9ac.js → series-c6abeb2a.js} +1 -1
  20. package/cjs/{series-v2-12c69b00.js → series-v2-370da4d6.js} +1 -1
  21. package/cjs/{series-v2-bfaacb8c.js → series-v2-a347f3f7.js} +1 -1
  22. package/cjs/{settings-icon-43534947.js → settings-icon-0dcc3788.js} +1 -1
  23. package/cjs/{skin-0ee0edad.js → skin-0a5108bb.js} +1 -1
  24. package/cjs/{skin-fa783fc1.js → skin-100893d4.js} +1 -1
  25. package/cjs/{skin-5cbcd61c.js → skin-1f6f448c.js} +1 -1
  26. package/cjs/{skin-475c6efe.js → skin-44f02ee1.js} +1 -1
  27. package/cjs/{skin-227021f2.js → skin-7e8c618e.js} +1 -1
  28. package/cjs/{skin-3f5c6c6e.js → skin-a36d0fae.js} +1 -1
  29. package/cjs/{skin-013d66cd.js → skin-dfd8c833.js} +1 -1
  30. package/cjs/{skin-c97f0eea.js → skin-e0cf4554.js} +1 -1
  31. package/cjs/{skin-1e1a7fb4.js → skin-f1d45f1d.js} +1 -1
  32. package/cjs/{skin-94c8c63c.js → skin-f33e77ad.js} +1 -1
  33. package/cjs/{util-b4bf1579.js → util-9e6f986e.js} +1 -1
  34. package/cjs/{videoSelector-23532d3c.js → videoSelector-a84a396c.js} +1 -1
  35. package/cjs/{videoSelector-4e9061bb.js → videoSelector-ea7fa96e.js} +1 -1
  36. package/esm/autoNextVideo-be06e737.js +1 -0
  37. package/esm/browser-d4613b36.js +1 -0
  38. package/esm/bundle.css +416 -422
  39. package/esm/{caption-settings-cfb1368b.js → caption-settings-a9b6581e.js} +1 -1
  40. package/esm/{captions-2b4caf69.js → captions-9659ee8f.js} +1 -1
  41. package/esm/components/watch-history/handleWatchHistory.d.ts +0 -1
  42. package/esm/{features-f476e191.js → features-669f2639.js} +1 -1
  43. package/esm/generic-5fc25fa4.js +1 -0
  44. package/esm/helpers/browser.d.ts +0 -1
  45. package/esm/{index-7f9c8eec.js → index-b62e0f74.js} +1 -1
  46. package/esm/index-de007bec.js +1 -0
  47. package/esm/{index-8d6239c3.js → index-fc6d12ac.js} +1 -1
  48. package/esm/index.js +1 -1
  49. package/esm/{multicamv2-15bfaa1d.js → multicamv2-85a146f1.js} +1 -1
  50. package/esm/{multicamv2-3812939e.js → multicamv2-a74f52dc.js} +1 -1
  51. package/esm/{nextEpisodeButton-406f2d70.js → nextEpisodeButton-4d4f981f.js} +1 -1
  52. package/esm/{playlist-5b825b06.js → playlist-de8dcaf0.js} +1 -1
  53. package/esm/{relatedVideosManager-8dd9aa24.js → relatedVideosManager-81661348.js} +1 -1
  54. package/esm/{renditions-19f0b3a9.js → renditions-4eddc06a.js} +1 -1
  55. package/esm/{resolution-879fc9c0.js → resolution-5926bb20.js} +1 -1
  56. package/esm/{series-22cb40d1.js → series-a6e346df.js} +1 -1
  57. package/esm/{series-v2-64cfce61.js → series-v2-58f8f89a.js} +1 -1
  58. package/esm/{series-v2-59d533b4.js → series-v2-8e6a3475.js} +1 -1
  59. package/esm/{settings-icon-851014b6.js → settings-icon-c4e124b8.js} +1 -1
  60. package/esm/{skin-c79a9a01.js → skin-132a3fbe.js} +1 -1
  61. package/esm/skin-1c4e9c12.js +1 -0
  62. package/esm/{skin-b58c0902.js → skin-2c9f1fac.js} +1 -1
  63. package/esm/{skin-8bcdb1ff.js → skin-30c770e0.js} +1 -1
  64. package/esm/{skin-e25c6ce2.js → skin-b507885d.js} +1 -1
  65. package/esm/skin-d0799e30.js +1 -0
  66. package/esm/{skin-5dedeb72.js → skin-d79a44e5.js} +1 -1
  67. package/esm/{skin-dcc8d218.js → skin-dfd05e08.js} +1 -1
  68. package/esm/skin-e2592aa4.js +1 -0
  69. package/esm/{skin-55f1cc14.js → skin-e601cbbf.js} +1 -1
  70. package/esm/util-8d51abc3.js +1 -0
  71. package/esm/{videoSelector-3df8173e.js → videoSelector-38103e1c.js} +1 -1
  72. package/esm/{videoSelector-11dff17a.js → videoSelector-e9b4f3fa.js} +1 -1
  73. package/package.json +2 -4
  74. package/cjs/autoNextVideo-fd60262d.js +0 -1
  75. package/cjs/browser-3670a923.js +0 -1
  76. package/cjs/caption-settings-544fd444.js +0 -1
  77. package/cjs/captions-80f6eb66.js +0 -1
  78. package/cjs/features-12e05d18.js +0 -1
  79. package/cjs/generic-c66535a6.js +0 -1
  80. package/cjs/generic-ccfc8514.js +0 -1
  81. package/cjs/index-467ad153.js +0 -1
  82. package/cjs/index-5698f530.js +0 -1
  83. package/cjs/index-8a1caccc.js +0 -1
  84. package/cjs/index-b6608461.js +0 -1
  85. package/cjs/multicamv2-0834e44d.js +0 -1
  86. package/cjs/multicamv2-e6f27f98.js +0 -1
  87. package/cjs/nextEpisodeButton-8a0fd7c1.js +0 -1
  88. package/cjs/playlist-2093b46a.js +0 -1
  89. package/cjs/renditions-d28715a3.js +0 -1
  90. package/cjs/resolution-dbd4c97b.js +0 -1
  91. package/cjs/series-5286e1c3.js +0 -1
  92. package/cjs/series-v2-8dabeb63.js +0 -1
  93. package/cjs/series-v2-e4df211a.js +0 -1
  94. package/cjs/settings-icon-f75ddcd4.js +0 -1
  95. package/cjs/skin-16ae23af.js +0 -1
  96. package/cjs/skin-354f0a37.js +0 -1
  97. package/cjs/skin-37723483.js +0 -1
  98. package/cjs/skin-54cd0769.js +0 -1
  99. package/cjs/skin-621e7720.js +0 -1
  100. package/cjs/skin-79fa9c1d.js +0 -1
  101. package/cjs/skin-ac3f9750.js +0 -1
  102. package/cjs/skin-adc603f8.js +0 -1
  103. package/cjs/skin-f8d5ccde.js +0 -1
  104. package/cjs/skin-f9bdaa28.js +0 -1
  105. package/cjs/util-54e01671.js +0 -1
  106. package/cjs/videoSelector-72f75918.js +0 -1
  107. package/cjs/videoSelector-e93dfeda.js +0 -1
  108. package/esm/autoNextVideo-5a58fda1.js +0 -1
  109. package/esm/autoNextVideo-66977b2f.js +0 -1
  110. package/esm/browser-de5f6a74.js +0 -1
  111. package/esm/caption-settings-106547c2.js +0 -1
  112. package/esm/captions-89897207.js +0 -1
  113. package/esm/features-ce3dd24e.js +0 -1
  114. package/esm/generic-585e9a5b.js +0 -1
  115. package/esm/generic-7f2d1f91.js +0 -1
  116. package/esm/helpers/apiErrorTracker.d.ts +0 -1
  117. package/esm/helpers/browser.test.d.ts +0 -1
  118. package/esm/helpers/drmErrorDetection.d.ts +0 -6
  119. package/esm/icons-699e8cf0.js +0 -1
  120. package/esm/index-0b88f09f.js +0 -1
  121. package/esm/index-6665f3a3.js +0 -1
  122. package/esm/index-68a708c9.js +0 -1
  123. package/esm/index-bb7166ff.js +0 -1
  124. package/esm/multicamv2-1279caf9.js +0 -1
  125. package/esm/multicamv2-6604d8ad.js +0 -1
  126. package/esm/nextEpisodeButton-3eceb957.js +0 -1
  127. package/esm/playlist-2ccec51c.js +0 -1
  128. package/esm/renditions-ee4e8582.js +0 -1
  129. package/esm/resolution-8cbda37b.js +0 -1
  130. package/esm/series-991c6b60.js +0 -1
  131. package/esm/series-v2-5ef2d921.js +0 -1
  132. package/esm/series-v2-bf3a1b5a.js +0 -1
  133. package/esm/settings-icon-d7dfe9a5.js +0 -1
  134. package/esm/skin-0abde216.js +0 -1
  135. package/esm/skin-2803a6e0.js +0 -1
  136. package/esm/skin-2bf3a2e2.js +0 -1
  137. package/esm/skin-30bb7f84.js +0 -1
  138. package/esm/skin-3d3bb91f.js +0 -1
  139. package/esm/skin-4b9ab1d9.js +0 -1
  140. package/esm/skin-4d3a08d2.js +0 -1
  141. package/esm/skin-4f84b841.js +0 -1
  142. package/esm/skin-70f86676.js +0 -1
  143. package/esm/skin-971b1051.js +0 -1
  144. package/esm/skin-a45c710d.js +0 -1
  145. package/esm/skin-a9fb0c5e.js +0 -1
  146. package/esm/skin-fed5e057.js +0 -1
  147. package/esm/util-36d2ab03.js +0 -1
  148. package/esm/util-907fe226.js +0 -1
  149. package/esm/videoSelector-03b3ffcb.js +0 -1
  150. package/esm/videoSelector-bc53c149.js +0 -1
@@ -1 +0,0 @@
1
- import{f as l,d as i,e,j as n,k as o,l as t,m as r}from"./features-ce3dd24e.js";import{f as s}from"./icons-699e8cf0.js";import{g as a,p as u,e as d}from"./skin-4f84b841.js";import{g as C}from"./renditions-19f0b3a9.js";import{a as v,b as c}from"./index-0b88f09f.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{e as p,a9 as h,m}from"./generic-585e9a5b.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-5a58fda1.js";import"./util-36d2ab03.js";import"@babel/runtime/helpers/typeof";import"axios";import"./browser-de5f6a74.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@viewlift/comscore/index.js";function f(f,b){a(f).addClass("skin_mini"),function(i,e){var n=a(i);n&&n.on("loadeddata",function(){var n,o,t,r,s,a,u;(null===(n=C(i))||void 0===n?void 0:n.length)>0&&0!=(null==e||null===(o=e.skin_settings)||void 0===o?void 0:o.settingsToggle)&&l(i,e),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(r=window)&&void 0!==r&&null!==(s=r.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(u=a.features)&&void 0!==u&&u.auto_play)||null!=e&&e.liveVideo||v(i,e)})}(f,b),function(l,i){var e,n,o,t,r,s,C,v,c,p,h,m,f,b,B,y,g,L,j=a(l);null===(e=j.controlBar)||void 0===e||e.removeChild("VolumePanel"),null===(n=j.controlBar)||void 0===n||n.addChild("VolumePanel",{inline:!1},1);var w=null===(o=j.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),E=document.createElement("div");E.className="custom-spaced-progress-bar",w&&E.append(w.el());null===(t=j.controlBar)||void 0===t||null===(r=t.el())||void 0===r||r.append(E);var V='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(u(V),null!==(s=j.el().firstChild)&&void 0!==s?s:null);var x=(null==j||null===(C=j.controlBar)||void 0===C||null===(v=C.getChild("PlayToggle"))||void 0===v||null===(c=v.el())||void 0===c?void 0:c.firstChild)||null;if(x){x.style.height="16px",x.style.width="16px";var M=d(x,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",function(){return M.setAttributeNS(null,"href","#vjs-icon-play")}),j.on("play",function(){return M.setAttributeNS(null,"href","#vjs-icon-pause")})}var k=(null==j||null===(p=j.controlBar)||void 0===p||null===(h=p.getChild("FullscreenToggle"))||void 0===h||null===(m=h.el())||void 0===m?void 0:m.firstChild)||null;if(k){k.style.height="24px",k.style.width="24px";var S=d(k,"#vjs-icon-fullscreen");j.on("fullscreenchange",function(){var l=j.isFullscreen_;null==S||S.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var Z=(null==j||null===(f=j.controlBar)||void 0===f||null===(b=f.getChild("VolumePanel"))||void 0===b?void 0:b.el())||null;if(Z){var A=Z.querySelector(".vjs-mute-control .vjs-icon-placeholder");A.classList.add("vjs-svg-icon"),A.style.height="24px",A.style.width="24px";var T=d(A,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",function(l){var i=j.volume();0==i||j.muted()?T.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?T.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?T.setAttributeNS(null,"href","#vjs-icon-volume2"):T.setAttributeNS(null,"href","#vjs-icon-volume3")})}var N=(null==j||null===(B=j.controlBar)||void 0===B||null===(y=B.getChild("PictureInPictureToggle"))||void 0===y?void 0:y.el())||null;if(N){var H=null==N?void 0:N.querySelector(".vjs-icon-placeholder");H.style.height="25px",H.style.width="25px";var P=d(H,"#vjs-icon-pip");j.on("enterpictureinpicture",function(){P.setAttributeNS(null,"href","#vjs-icon-pip")})}var _=(null==j||null===(g=j.controlBar)||void 0===g||null===(L=g.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(_){var q=_.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");q.classList.add("vjs-svg-icon"),q.style.height="29px",q.style.width="29px";var D=d(q,"#vjs-icon-caps");D.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",function(l){for(var i=j.textTracks(),e=!1,n=0;n<i.length;n++){var o=i[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){e=!0;break}}e?D.setAttributeNS(null,"href","#vjs-icon-captions"):D.setAttributeNS(null,"href","#vjs-icon-captions-off")})}j&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(j.liveTracker.on("liveedgechange",function(){F(j)}),j.on("timeupdate",function(){F(j)}));function I(l){var i=Math.floor(l/3600),e=Math.floor(l%3600/60),n=Math.floor(l%60),o=function(l){return String(l).padStart(2,"0")};return 0===i?"".concat(o(e),":").concat(o(n)):"".concat(o(i),":").concat(o(e),":").concat(o(n))}function O(l){var i=l.seekable();if(i&&i.length>0){var e=i.end(0);return Math.max(0,e-l.currentTime())}return 0}function F(l){var i,e,n=l.liveTracker.atLiveEdge(),o=O(l),t=null==l||null===(i=l.controlBar)||void 0===i||null===(e=i.remainingTimeDisplay)||void 0===e?void 0:e.el();if(t){var r=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",r&&(r.innerText=I(o)))}}}(f,b),function(l,a){var u,d,C,v,c,f,b,B,y,g=(null==a||null===(u=a.res)||void 0===u||null===(d=u.video)||void 0===d?void 0:d.isSSAIEnabled)||!1,L=(null==a?void 0:a.skin_settings)||{};null==L||L.slowMoBtn;var j=(null==a||null===(C=a.customData)||void 0===C?void 0:C.ads)||{};null!=L&&L.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&i(l,"VL_ONE",SkipSvgV2());null!=L&&L.rewindBtn&&(0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&e(l,"VL_ONE",s());(null==a||null===(v=a.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&n(l,null==a?void 0:a.relatedVideos);(null==a||null===(f=a.streams)||void 0===f?void 0:f.length)>1&&o(l,null==a?void 0:a.streams);(null==a||null===(b=a.playlist)||void 0===b||null===(B=b.content)||void 0===B?void 0:B.length)>0&&t(l,null==a?void 0:a.playlist);null!=a&&null!==(y=a.series)&&void 0!==y&&y.enable&&r(l,a);if("MEDIA_TAILOR"==(null==j?void 0:j.vodAdSticherProvider)&&null!=j&&j.vodAdClientSideTracking&&g){var w,E=null;if(null!=a&&null!==(w=a.series)&&void 0!==w&&w.enable){var V,x,M,k=null===(V=p())||void 0===V||null===(x=V.video)||void 0===x||null===(M=x.gist)||void 0===M?void 0:M.id,S=m(),Z=(null==S?void 0:S.get(k))||{t:0,p:0},A=Z.t;Z.p<95&&(E=A)}else{var T=a.watchHistoryResumeTime;a.watchedPercentage<95&&(E=T)}h(l,E)}}(f,b),c(f,b)}export{f as initialiseSkin};
@@ -1 +0,0 @@
1
- import{P as e,Q as t}from"./generic-585e9a5b.js";import{g as r}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-de5f6a74.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";function o(o){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),i(),function(o){var i=document.getElementById("".concat(o)),n=r(o);i&&i.addEventListener("touchstart",function(){n.paused()?e(o):t(o)})}(o)}var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
@@ -1 +0,0 @@
1
- import n from"@babel/runtime/helpers/typeof";import{e,v as t,a2 as o}from"./generic-585e9a5b.js";import{g as i}from"./skin-4f84b841.js";var a=!1,r=function(n,e,t){var o=i(n);o?e>=0&&e<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(e)}),o.currentTime(e)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(n,"'"))},c=function(n,e){var t=i(n);if(!t)return"Cannot find player with id: '".concat(n,"'");try{return t.playbackRate(e),"Playback speed set to ".concat(e,"x")}catch(n){return"Error: ".concat(n)}},u=function(n,r){var c=i(n);c?(c.on("ended",function(){return a=!0}),c.on("timeupdate",function(){if(!c.paused()&&a){var n,i,u=null===(n=e())||void 0===n||null===(i=n.video)||void 0===i?void 0:i.id;t.get(u)?(t.clear(),o.clear(),r(),t.set(u)):(t.clear(),t.set(u)),a=!1}})):r("Cannot find player with id: '".concat(n,"'"))},l=function(n,e){var t=i(n);t?t.on("timeupdate",function(){return e(t.currentTime())}):e("Cannot find player with id: '".concat(n,"'"))},s=function(n,e){var t=i(n);t?t.on("ended",function(){return e(!0)}):e("Cannot find player with id: '".concat(n,"'"))},d=function(n){var e=i(n);return e?e.duration():"Cannot find player with id: '".concat(n,"'")};function f(){var e=function(n,e){var t=i(n);if(!t)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof e)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",function(){return t()})},onPause:function(n,t){e(n,t).on("pause",function(){return t()})},onMute:function(n,t){var o=e(n,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",function(n){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",function(){var n=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:n})})},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){console.log(o.textTracks());var e=o.textTracks().tracks_.filter(function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode});e.length>0&&t({enabled:e[0]})})},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){var e,i;console.log(o.textTracks()),(null==o||null===(e=o.textTracks())||void 0===e||null===(i=e.tracks_)||void 0===i?void 0:i.every(function(n){return"showing"!=n.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var i=e(t,o);i.on("loadeddata",function(){var e,t,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(a=t.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(n){o(n)});for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",e=s)}e&&e.addEventListener("cuechange",function(){var n=e.activeCues;if(n&&n.length>0)for(var t=0;t<n.length;t++){var i=n[t];o(i)}else console.log("no active cue at this moment")})})},onError:function(n,t){var o=e(n,t);o.on("error",function(){var n,e;t({error:null==o||null===(n=o.error())||void 0===n?void 0:n.code,msg:null==o||null===(e=o.error())||void 0===e?void 0:e.message})})}}}export{s as a,c as b,u as c,d as g,l as o,f as p,r as s};
@@ -1 +0,0 @@
1
- import n from"@babel/runtime/helpers/typeof";import{e,v as t,a2 as o}from"./generic-7f2d1f91.js";import{g as i}from"./skin-0abde216.js";var a=!1,r=function(n,e,t){var o=i(n);o?e>=0&&e<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(e)}),o.currentTime(e)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(n,"'"))},c=function(n,e){var t=i(n);if(!t)return"Cannot find player with id: '".concat(n,"'");try{return t.playbackRate(e),"Playback speed set to ".concat(e,"x")}catch(n){return"Error: ".concat(n)}},u=function(n,r){var c=i(n);c?(c.on("ended",function(){return a=!0}),c.on("timeupdate",function(){if(!c.paused()&&a){var n,i,u=null===(n=e())||void 0===n||null===(i=n.video)||void 0===i?void 0:i.id;t.get(u)?(t.clear(),o.clear(),r(),t.set(u)):(t.clear(),t.set(u)),a=!1}})):r("Cannot find player with id: '".concat(n,"'"))},l=function(n,e){var t=i(n);t?t.on("timeupdate",function(){return e(t.currentTime())}):e("Cannot find player with id: '".concat(n,"'"))},s=function(n,e){var t=i(n);t?t.on("ended",function(){return e(!0)}):e("Cannot find player with id: '".concat(n,"'"))},d=function(n){var e=i(n);return e?e.duration():"Cannot find player with id: '".concat(n,"'")};function f(){var e=function(n,e){var t=i(n);if(!t)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof e)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",function(){return t()})},onPause:function(n,t){e(n,t).on("pause",function(){return t()})},onMute:function(n,t){var o=e(n,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",function(n){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",function(){var n=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:n})})},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){console.log(o.textTracks());var e=o.textTracks().tracks_.filter(function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode});e.length>0&&t({enabled:e[0]})})},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){var e,i;console.log(o.textTracks()),(null==o||null===(e=o.textTracks())||void 0===e||null===(i=e.tracks_)||void 0===i?void 0:i.every(function(n){return"showing"!=n.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var i=e(t,o);i.on("loadeddata",function(){var e,t,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(a=t.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(n){o(n)});for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",e=s)}e&&e.addEventListener("cuechange",function(){var n=e.activeCues;if(n&&n.length>0)for(var t=0;t<n.length;t++){var i=n[t];o(i)}else console.log("no active cue at this moment")})})},onError:function(n,t){var o=e(n,t);o.on("error",function(){var n,e;t({error:null==o||null===(n=o.error())||void 0===n?void 0:n.code,msg:null==o||null===(e=o.error())||void 0===e?void 0:e.message})})}}}export{s as a,c as b,u as c,d as g,l as o,f as p,r as s};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-699e8cf0.js";import{S as s,a6 as d}from"./generic-585e9a5b.js";import{j as c,s as m,k as p,l as u,m as v}from"./skin-4f84b841.js";import{a as h}from"./autoNextVideo-5a58fda1.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-de5f6a74.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-36d2ab03.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){o(j,y);var g,C,N=(g=j,C=b(),function(){var e,t=i(g);if(C){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function j(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,j),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),h({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(j,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),j}();export{g as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{g as l,e as s}from"./icons-699e8cf0.js";import{S as d,a6 as r}from"./generic-585e9a5b.js";import{j as c,s as m,k as u,h as v,l as p,i as h}from"./skin-4f84b841.js";import{a as b}from"./autoNextVideo-5a58fda1.js";import{g as y}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-de5f6a74.js";import"md5";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"./util-36d2ab03.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=a.getComponent("Component"),g=function(){o(I,C);var g,E,N=(g=I,E=f(),function(){var e,t=i(g);if(E){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function I(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,I),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r(0),b({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(I,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))[0]&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(s())});i.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:y("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=a.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,i,l,s,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),b.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,y),a.dom.appendContent(r,v),a.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),I}();export{g as default};