@viewlift/player-backup 2.0.368-backup → 2.0.369-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 (65) hide show
  1. package/cjs/{autoNextVideo-cd4cbbb9.js → autoNextVideo-423d63c8.js} +1 -1
  2. package/cjs/bundle.css +534 -528
  3. package/cjs/{caption-settings-0d09a023.js → caption-settings-03628f5c.js} +1 -1
  4. package/cjs/captions-6d34f14b.js +1 -0
  5. package/cjs/{features-2a288f79.js → features-579dfc09.js} +1 -1
  6. package/cjs/generic-25227e81.js +1 -0
  7. package/cjs/{index-1123dc17.js → index-7ba0c893.js} +1 -1
  8. package/cjs/{index-e6f8f1e4.js → index-8a1b84d3.js} +1 -1
  9. package/cjs/{index-bc3c350b.js → index-a276fc30.js} +1 -1
  10. package/cjs/{index-f1795d76.js → index-db332a6d.js} +1 -1
  11. package/cjs/index.js +1 -1
  12. package/cjs/{multicamv2-9a967399.js → multicamv2-6d996e0b.js} +1 -1
  13. package/cjs/{multicamv2-7578fe18.js → multicamv2-c256747c.js} +1 -1
  14. package/cjs/{nextEpisodeButton-ecfa4502.js → nextEpisodeButton-998a1ee5.js} +1 -1
  15. package/cjs/{playlist-db64ff22.js → playlist-bd921770.js} +1 -1
  16. package/cjs/{series-ceab0ec2.js → series-3467f447.js} +1 -1
  17. package/cjs/{series-v2-e008591f.js → series-v2-aac02f76.js} +1 -1
  18. package/cjs/{series-v2-113306dc.js → series-v2-b021fcb5.js} +1 -1
  19. package/cjs/{skin-461c5101.js → skin-349b3663.js} +1 -1
  20. package/cjs/{skin-45479d96.js → skin-34f792b7.js} +1 -1
  21. package/cjs/{skin-8d3254f5.js → skin-35c00530.js} +1 -1
  22. package/cjs/{skin-d6c941fb.js → skin-46df7021.js} +1 -1
  23. package/cjs/{skin-ec8e4c42.js → skin-6667167e.js} +1 -1
  24. package/cjs/{skin-b2b39b8f.js → skin-68fcfaff.js} +1 -1
  25. package/cjs/{skin-1d9cdcdf.js → skin-7e53cab5.js} +1 -1
  26. package/cjs/{skin-0bb339c9.js → skin-a2409a61.js} +1 -1
  27. package/cjs/{skin-15bfa479.js → skin-f408a8df.js} +1 -1
  28. package/cjs/{skin-614e9e9a.js → skin-fc6db1d4.js} +1 -1
  29. package/cjs/{videoSelector-86ca3f28.js → videoSelector-4ffe5b7f.js} +1 -1
  30. package/cjs/{videoSelector-b3c30284.js → videoSelector-e8d21264.js} +1 -1
  31. package/esm/{autoNextVideo-1119f37e.js → autoNextVideo-cad097ab.js} +1 -1
  32. package/esm/bundle.css +534 -528
  33. package/esm/{caption-settings-e1a53633.js → caption-settings-a34f9eb6.js} +1 -1
  34. package/esm/captions-beaade8a.js +1 -0
  35. package/esm/{features-e6aab838.js → features-dc601109.js} +1 -1
  36. package/esm/generic-326a71a3.js +1 -0
  37. package/esm/{index-a8fb3837.js → index-662263e1.js} +1 -1
  38. package/esm/{index-5b55208a.js → index-98364c13.js} +1 -1
  39. package/esm/{index-d874b6ce.js → index-d9840bdb.js} +1 -1
  40. package/esm/{index-62b477f6.js → index-df589dc0.js} +1 -1
  41. package/esm/index.js +1 -1
  42. package/esm/{multicamv2-091fba31.js → multicamv2-55a8ddf8.js} +1 -1
  43. package/esm/{multicamv2-b0c5daa3.js → multicamv2-76c9d34d.js} +1 -1
  44. package/esm/{nextEpisodeButton-848dab7f.js → nextEpisodeButton-cfefe961.js} +1 -1
  45. package/esm/{playlist-4491f5c6.js → playlist-05e214e9.js} +1 -1
  46. package/esm/{series-0ac0d85b.js → series-d48a5f64.js} +1 -1
  47. package/esm/{series-v2-bac0daf1.js → series-v2-81097d29.js} +1 -1
  48. package/esm/{series-v2-426af9af.js → series-v2-f67e637d.js} +1 -1
  49. package/esm/{skin-d4f7faf5.js → skin-00682294.js} +1 -1
  50. package/esm/{skin-e0068359.js → skin-248d30eb.js} +1 -1
  51. package/esm/{skin-7b555431.js → skin-4015b68e.js} +1 -1
  52. package/esm/{skin-fdf8ab0a.js → skin-569ec669.js} +1 -1
  53. package/esm/{skin-58e77247.js → skin-79aa1313.js} +1 -1
  54. package/esm/{skin-d5ffda9e.js → skin-ba2fdd77.js} +1 -1
  55. package/esm/{skin-1f287add.js → skin-da04ffa7.js} +1 -1
  56. package/esm/{skin-8d3718c7.js → skin-ec2a96b8.js} +1 -1
  57. package/esm/{skin-95544751.js → skin-f065740a.js} +1 -1
  58. package/esm/{skin-1e0df6ec.js → skin-f675016d.js} +1 -1
  59. package/esm/{videoSelector-cdee8c18.js → videoSelector-7b03e2ee.js} +1 -1
  60. package/esm/{videoSelector-6faeb573.js → videoSelector-8290988a.js} +1 -1
  61. package/package.json +1 -1
  62. package/cjs/captions-4dfe293a.js +0 -1
  63. package/cjs/generic-1fd7c1af.js +0 -1
  64. package/esm/captions-1f931e14.js +0 -1
  65. package/esm/generic-80161db0.js +0 -1
@@ -1 +1 @@
1
- "use strict";var e=require("./features-2a288f79.js"),l=require("./icons-eb807ef0.js"),i=require("./skin-66dce245.js"),n=require("./renditions-627bdfad.js");require("@babel/runtime/helpers/toConsumableArray");var t=require("./index-e6f8f1e4.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray");var o=require("./relatedVideosManager-0a220d05.js"),r=require("./generic-1fd7c1af.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("./autoNextVideo-cd4cbbb9.js"),require("./index-f1795d76.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("./captions-4dfe293a.js"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(s,u){i.getPlayer(s).addClass("skin_mini"),function(l,r){var s=i.getPlayer(l);s&&s.on("loadeddata",function(){var i,s,u,d,a,v,C,c,h,p;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==r||null===(s=r.skin_settings)||void 0===s?void 0:s.settingsToggle)&&e.addSettingsButtonV2(l,r);var f=(null===(u=o.relatedVideosManager.get())||void 0===u||null===(d=u.content)||void 0===d?void 0:d.length)>0;if(!(null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable||null!==(v=window)&&void 0!==v&&null!==(C=v.app_data)&&void 0!==C&&null!==(c=C.appcmsMain)&&void 0!==c&&null!==(h=c.features)&&void 0!==h&&h.auto_play||f)||null!=r&&r.liveVideo){if(!(null!=r&&r.liveVideo||null!=r&&null!==(p=r.series)&&void 0!==p&&p.enable)){var g;g=o.relatedVideosManager.subscribe(function(e){var i;(null==e||null===(i=e.content)||void 0===i?void 0:i.length)>0&&(t.addNextEpPreview(l,r),g&&g())})}}else t.addNextEpPreview(l,r)})}(s,u),function(e,l){var n,t,o,r,s,u,d,a,v,C,c,h,p,f,g,m,b,B,y=i.getPlayer(e);null===(n=y.controlBar)||void 0===n||n.removeChild("VolumePanel"),null===(t=y.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var L=null===(o=y.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),V=document.createElement("div");V.className="custom-spaced-progress-bar",L&&V.append(L.el());null===(r=y.controlBar)||void 0===r||null===(s=r.el())||void 0===s||s.append(V);var j='<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>';y.el().insertBefore(i.parseSvgString(j),null!==(u=y.el().firstChild)&&void 0!==u?u:null);var E=(null==y||null===(d=y.controlBar)||void 0===d||null===(a=d.getChild("PlayToggle"))||void 0===a||null===(v=a.el())||void 0===v?void 0:v.firstChild)||null;if(E){E.style.height="16px",E.style.width="16px";var w=i.injectSVG(E,y.paused()?"#vjs-icon-play":"#vjs-icon-pause");y.on("pause",function(){return w.setAttributeNS(null,"href","#vjs-icon-play")}),y.on("play",function(){return w.setAttributeNS(null,"href","#vjs-icon-pause")})}var x=(null==y||null===(C=y.controlBar)||void 0===C||null===(c=C.getChild("FullscreenToggle"))||void 0===c||null===(h=c.el())||void 0===h?void 0:h.firstChild)||null;if(x){x.style.height="24px",x.style.width="24px";var S=i.injectSVG(x,"#vjs-icon-fullscreen");y.on("fullscreenchange",function(){var e=y.isFullscreen_;null==S||S.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var M=(null==y||null===(p=y.controlBar)||void 0===p||null===(f=p.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(M){var q=M.querySelector(".vjs-mute-control .vjs-icon-placeholder");q.classList.add("vjs-svg-icon"),q.style.height="24px",q.style.width="24px";var k=i.injectSVG(q,y.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");y.on("volumechange",function(e){var l=y.volume();0==l||y.muted()?k.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?k.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?k.setAttributeNS(null,"href","#vjs-icon-volume2"):k.setAttributeNS(null,"href","#vjs-icon-volume3")})}var P=(null==y||null===(g=y.controlBar)||void 0===g||null===(m=g.getChild("PictureInPictureToggle"))||void 0===m?void 0:m.el())||null;if(P){var T=null==P?void 0:P.querySelector(".vjs-icon-placeholder");T.style.height="25px",T.style.width="25px";var A=i.injectSVG(T,"#vjs-icon-pip");y.on("enterpictureinpicture",function(){A.setAttributeNS(null,"href","#vjs-icon-pip")})}var Z=(null==y||null===(b=y.controlBar)||void 0===b||null===(B=b.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(Z){var _=Z.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");_.classList.add("vjs-svg-icon"),_.style.height="29px",_.style.width="29px";var N=i.injectSVG(_,"#vjs-icon-caps");N.setAttributeNS(null,"href","#vjs-icon-captions-off"),y.textTracks().on("change",function(e){for(var l=y.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?N.setAttributeNS(null,"href","#vjs-icon-captions"):N.setAttributeNS(null,"href","#vjs-icon-captions-off")})}y&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(y.liveTracker.on("liveedgechange",function(){F(y)}),y.on("timeupdate",function(){F(y)}));function H(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 F(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=H(t)))}}}(s,u),function(n,t){var s,u,d,a,v,C,c,h,p=(null==t||null===(s=t.res)||void 0===s||null===(u=s.video)||void 0===u?void 0:u.isSSAIEnabled)||!1,f=(null==t?void 0:t.skin_settings)||{};null==f||f.slowMoBtn;var g=(null==t||null===(d=t.customData)||void 0===d?void 0:d.ads)||{};null!=f&&f.skipBtn&&0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)&&e.addSkipButton(n,"VL_ONE",SkipSvgV2());null!=f&&f.rewindBtn&&(0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)||1==(null==t?void 0:t.liveui))&&e.addRewindButton(n,"VL_ONE",l.RewindSvgV3());var m,b=o.relatedVideosManager.get();(null==b||null===(a=b.content)||void 0===a?void 0:a.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(n,b);m=o.relatedVideosManager.subscribe(function(l){var t,o,r=i.getPlayer(n);(null==r||null===(t=r.controlBar)||void 0===t||!t.getChild("videoSelector"))&&(null==l||null===(o=l.content)||void 0===o?void 0:o.length)>0&&(e.addVideoSelector_DEFAULTV2_TEMP(n,l),m&&m())}),(null==t||null===(v=t.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(n,null==t?void 0:t.streams);(null==t||null===(C=t.playlist)||void 0===C||null===(c=C.content)||void 0===c?void 0:c.length)>0&&e.addPlaylistSelector(n,null==t?void 0:t.playlist);null!=t&&null!==(h=t.series)&&void 0!==h&&h.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(n,t);if("MEDIA_TAILOR"==(null==g?void 0:g.vodAdSticherProvider)&&null!=g&&g.vodAdClientSideTracking&&p){var B,y=null;if(null!=t&&null!==(B=t.series)&&void 0!==B&&B.enable){var L,V,j,E=null===(L=r.getCurrentVideo())||void 0===L||null===(V=L.video)||void 0===V||null===(j=V.gist)||void 0===j?void 0:j.id,w=r.getSeriesWatchMap(),x=(null==w?void 0:w.get(E))||{t:0,p:0},S=x.t;x.p<95&&(y=S)}else{var M=t.watchHistoryResumeTime;t.watchedPercentage<95&&(y=M)}r.setupAdvertisementMarkers(n,y)}}(s,u),t.addTVProviderImage(s,u)};
1
+ "use strict";var e=require("./features-579dfc09.js"),l=require("./icons-eb807ef0.js"),i=require("./skin-66dce245.js"),n=require("./renditions-627bdfad.js");require("./captions-6d34f14b.js");var t=require("./index-8a1b84d3.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 o=require("./relatedVideosManager-0a220d05.js"),r=require("./generic-25227e81.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("./autoNextVideo-423d63c8.js"),require("./index-db332a6d.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(s,u){i.getPlayer(s).addClass("skin_mini"),function(l,r){var s=i.getPlayer(l);s&&s.on("loadeddata",function(){var i,s,u,d,a,v,C,c,h,p;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==r||null===(s=r.skin_settings)||void 0===s?void 0:s.settingsToggle)&&e.addSettingsButtonV2(l,r);var f=(null===(u=o.relatedVideosManager.get())||void 0===u||null===(d=u.content)||void 0===d?void 0:d.length)>0;if(!(null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable||null!==(v=window)&&void 0!==v&&null!==(C=v.app_data)&&void 0!==C&&null!==(c=C.appcmsMain)&&void 0!==c&&null!==(h=c.features)&&void 0!==h&&h.auto_play||f)||null!=r&&r.liveVideo){if(!(null!=r&&r.liveVideo||null!=r&&null!==(p=r.series)&&void 0!==p&&p.enable)){var g;g=o.relatedVideosManager.subscribe(function(e){var i;(null==e||null===(i=e.content)||void 0===i?void 0:i.length)>0&&(t.addNextEpPreview(l,r),g&&g())})}}else t.addNextEpPreview(l,r)})}(s,u),function(e,l){var n,t,o,r,s,u,d,a,v,C,c,h,p,f,g,m,b,B,y=i.getPlayer(e);null===(n=y.controlBar)||void 0===n||n.removeChild("VolumePanel"),null===(t=y.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var L=null===(o=y.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),V=document.createElement("div");V.className="custom-spaced-progress-bar",L&&V.append(L.el());null===(r=y.controlBar)||void 0===r||null===(s=r.el())||void 0===s||s.append(V);var j='<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>';y.el().insertBefore(i.parseSvgString(j),null!==(u=y.el().firstChild)&&void 0!==u?u:null);var E=(null==y||null===(d=y.controlBar)||void 0===d||null===(a=d.getChild("PlayToggle"))||void 0===a||null===(v=a.el())||void 0===v?void 0:v.firstChild)||null;if(E){E.style.height="16px",E.style.width="16px";var w=i.injectSVG(E,y.paused()?"#vjs-icon-play":"#vjs-icon-pause");y.on("pause",function(){return w.setAttributeNS(null,"href","#vjs-icon-play")}),y.on("play",function(){return w.setAttributeNS(null,"href","#vjs-icon-pause")})}var x=(null==y||null===(C=y.controlBar)||void 0===C||null===(c=C.getChild("FullscreenToggle"))||void 0===c||null===(h=c.el())||void 0===h?void 0:h.firstChild)||null;if(x){x.style.height="24px",x.style.width="24px";var S=i.injectSVG(x,"#vjs-icon-fullscreen");y.on("fullscreenchange",function(){var e=y.isFullscreen_;null==S||S.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var M=(null==y||null===(p=y.controlBar)||void 0===p||null===(f=p.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(M){var q=M.querySelector(".vjs-mute-control .vjs-icon-placeholder");q.classList.add("vjs-svg-icon"),q.style.height="24px",q.style.width="24px";var k=i.injectSVG(q,y.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");y.on("volumechange",function(e){var l=y.volume();0==l||y.muted()?k.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?k.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?k.setAttributeNS(null,"href","#vjs-icon-volume2"):k.setAttributeNS(null,"href","#vjs-icon-volume3")})}var P=(null==y||null===(g=y.controlBar)||void 0===g||null===(m=g.getChild("PictureInPictureToggle"))||void 0===m?void 0:m.el())||null;if(P){var T=null==P?void 0:P.querySelector(".vjs-icon-placeholder");T.style.height="25px",T.style.width="25px";var A=i.injectSVG(T,"#vjs-icon-pip");y.on("enterpictureinpicture",function(){A.setAttributeNS(null,"href","#vjs-icon-pip")})}var Z=(null==y||null===(b=y.controlBar)||void 0===b||null===(B=b.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(Z){var _=Z.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");_.classList.add("vjs-svg-icon"),_.style.height="29px",_.style.width="29px";var N=i.injectSVG(_,"#vjs-icon-caps");N.setAttributeNS(null,"href","#vjs-icon-captions-off"),y.textTracks().on("change",function(e){for(var l=y.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?N.setAttributeNS(null,"href","#vjs-icon-captions"):N.setAttributeNS(null,"href","#vjs-icon-captions-off")})}y&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(y.liveTracker.on("liveedgechange",function(){F(y)}),y.on("timeupdate",function(){F(y)}));function H(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 F(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=H(t)))}}}(s,u),function(n,t){var s,u,d,a,v,C,c,h,p=(null==t||null===(s=t.res)||void 0===s||null===(u=s.video)||void 0===u?void 0:u.isSSAIEnabled)||!1,f=(null==t?void 0:t.skin_settings)||{};null==f||f.slowMoBtn;var g=(null==t||null===(d=t.customData)||void 0===d?void 0:d.ads)||{};null!=f&&f.skipBtn&&0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)&&e.addSkipButton(n,"VL_ONE",SkipSvgV2());null!=f&&f.rewindBtn&&(0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)||1==(null==t?void 0:t.liveui))&&e.addRewindButton(n,"VL_ONE",l.RewindSvgV3());var m,b=o.relatedVideosManager.get();(null==b||null===(a=b.content)||void 0===a?void 0:a.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(n,b);m=o.relatedVideosManager.subscribe(function(l){var t,o,r=i.getPlayer(n);(null==r||null===(t=r.controlBar)||void 0===t||!t.getChild("videoSelector"))&&(null==l||null===(o=l.content)||void 0===o?void 0:o.length)>0&&(e.addVideoSelector_DEFAULTV2_TEMP(n,l),m&&m())}),(null==t||null===(v=t.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(n,null==t?void 0:t.streams);(null==t||null===(C=t.playlist)||void 0===C||null===(c=C.content)||void 0===c?void 0:c.length)>0&&e.addPlaylistSelector(n,null==t?void 0:t.playlist);null!=t&&null!==(h=t.series)&&void 0!==h&&h.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(n,t);if("MEDIA_TAILOR"==(null==g?void 0:g.vodAdSticherProvider)&&null!=g&&g.vodAdClientSideTracking&&p){var B,y=null;if(null!=t&&null!==(B=t.series)&&void 0!==B&&B.enable){var L,V,j,E=null===(L=r.getCurrentVideo())||void 0===L||null===(V=L.video)||void 0===V||null===(j=V.gist)||void 0===j?void 0:j.id,w=r.getSeriesWatchMap(),x=(null==w?void 0:w.get(E))||{t:0,p:0},S=x.t;x.p<95&&(y=S)}else{var M=t.watchHistoryResumeTime;t.watchedPercentage<95&&(y=M)}r.setupAdvertisementMarkers(n,y)}}(s,u),t.addTVProviderImage(s,u)};
@@ -1 +1 @@
1
- "use strict";var e=require("./generic-1fd7c1af.js"),r=require("./skin-66dce245.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("./captions-4dfe293a.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(t){Promise.resolve().then(function(){return require("./skin-225252ff.js")}).then(function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)}),i(),function(i){var t=document.getElementById("".concat(i)),n=r.getPlayer(i);t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})}(t)};
1
+ "use strict";var e=require("./generic-25227e81.js"),r=require("./skin-66dce245.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("./captions-6d34f14b.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(t){Promise.resolve().then(function(){return require("./skin-225252ff.js")}).then(function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)}),i(),function(i){var t=document.getElementById("".concat(i)),n=r.getPlayer(i);t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})}(t)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-2a288f79.js"),l=require("./skin-66dce245.js"),i=require("./index-e6f8f1e4.js"),n=require("./index-bc3c350b.js"),t=require("./browser-2807cc02.js"),r=require("@babel/runtime/helpers/defineProperty"),o=require("@babel/runtime/helpers/toConsumableArray"),u=require("video.js");require("videojs-contrib-quality-menu");var a=require("./resolution-687b9e26.js"),d=require("./relatedVideosManager-0a220d05.js"),v=require("./generic-1fd7c1af.js"),s=require("./icons-eb807ef0.js");function c(e,l){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,n)}return i}function p(e){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?c(Object(i),!0).forEach(function(l){r(e,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(i,l))})}return e}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("./renditions-627bdfad.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-cd4cbbb9.js"),require("./index-f1795d76.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/assertThisInitialized"),require("axios"),require("md5"),require("js-cookie"),require("./captions-4dfe293a.js"),require("@viewlift/comscore/index.js");var b=function(e,l){var i,n;if(e&&null!=l){e.options_.label=l;var t=null===(i=e.el())||void 0===i||null===(n=i.querySelector)||void 0===n?void 0:n.call(i,".vjs-menu-item-text");t&&(t.innerHTML=l)}},f=function(e){var l,i;return null!==(l=null!==(i=null==e?void 0:e.bitrate)&&void 0!==i?i:null==e?void 0:e.bandwidth)&&void 0!==l?l:0},y=function(e){var l=a.resolveEnhancedBitrateLabel();return l?"".concat(e," ").concat(l):e},g=function(e){var l,i=null===(l=t.playerConfigManager.getConfig())||void 0===l?void 0:l.qualityLabels,n=a.resolveAutoQualityLabel();if(null!=i&&i.auto&&"function"==typeof u.addLanguage){var r="function"==typeof e.language&&e.language()||"en";u.addLanguage(r,{Auto:i.auto})}var d=function(e){var l,i=e.getChild("controlBar");return i&&(i.getChild("QualityMenuButton")||(null===(l=i.children())||void 0===l?void 0:l.find(function(e){return"QualityMenuButton"===(null==e?void 0:e.name_)})))||null}(e);if(d&&!d._qualityLabelsPatched){if(d._qualityLabelsPatched=!0,"function"==typeof d.groupByResolution_){var v=d.groupByResolution_.bind(d);d.groupByResolution_=function(){var e=this;return v().reduce(function(l,i){return l.concat(function(e,l){var i,n=o(l.levels||[]).sort(function(l,i){return f(e[i])-f(e[l])}),t=a.resolveHeightQualityLabel(null==e||null===(i=e[n[0]])||void 0===i?void 0:i.height),r=null!=t?t:l.label,u=null!=t?"":l.subLabel,d=f(e[n[n.length-1]]);return f(e[n[0]])===d?[p(p({},l),{},{label:r,subLabel:u})]:n.map(function(i){return p(p({},l),{},{levels:[i],active:e.selectedIndex===i,label:f(e[i])>d?y(r):r,subLabel:u})})}(e.qualityLevels_,i))},[])}}if("function"==typeof d.createItems){var s=d.createItems.bind(d);d.createItems=function(){var e=s();return e.forEach(function(e){var l;return b(e,null===(l=e.options_)||void 0===l?void 0:l.label)}),this.autoMenuItem_&&null!=i&&i.auto&&b(this.autoMenuItem_,n),e}}"function"==typeof d.update&&d.update()}},h=function(e){var i=l.getPlayer(e);if(i){var n=function(e){var l,i,n,t,r,o=null==e||null===(l=e.dash)||void 0===l?void 0:l.mediaPlayer;if(o&&"function"==typeof e.qualityLevels&&e._dashQualityLevelsFor!==o){var u=(null===(i=o.getRepresentationsByType)||void 0===i?void 0:i.call(o,"video"))||[];if(u.length){e._dashQualityLevelsFor=o;for(var a=e.qualityLevels();a.length;)a.removeQualityLevel(a[0]);var d=function(e){return(null==e?void 0:e.bandwidth)||1e3*((null==e?void 0:e.bitrateInKbit)||0)},v=u.map(function(){return!0}),s=!1,c=function(){s=!1;var e=u.filter(function(e,l){return v[l]});if(e.length&&e.length!==u.length){var l=e.reduce(function(e,l){return d(l)>d(e)?l:e});o.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),o.setRepresentationForTypeById("video",l.id,!0)}else o.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}})};u.forEach(function(e,l){a.addQualityLevel({id:String(e.id),width:e.width,height:e.height,bandwidth:d(e),enabled:function(e){if("boolean"!=typeof e)return v[l];v[l]=e,s||(s=!0,Promise.resolve().then(c))}})});var p=function(e){var l=u.findIndex(function(l){return l.id===(null==e?void 0:e.id)});l<0||a.selectedIndex===l||(a.selectedIndex_=l,a.trigger({type:"change",selectedIndex:l}))},b=null===(n=window)||void 0===n||null===(t=n.dashjs)||void 0===t||null===(r=t.MediaPlayer)||void 0===r?void 0:r.events;return null!=b&&b.QUALITY_CHANGE_RENDERED&&o.on(b.QUALITY_CHANGE_RENDERED,function(e){var l=e.mediaType,i=e.newRepresentation;"video"===l&&p(i)}),function(){var e;return p(null===(e=o.getCurrentRepresentationForType)||void 0===e?void 0:e.call(o,"video"))}}}}(i);"function"==typeof i.qualityMenu&&i.qualityMenu({useResolutionLabels:!0}),i.ready(function(){g(i),n&&n()}),i.on("loadstart",function(){i.ready(function(){return g(i)})})}};var m=function(e,i){var n,t,r,o,a,d,v,s,c,p,b,f,y=l.getPlayer(e),g=(null==i?void 0:i.theme)||{},h=u.dom.$(".vjs-play-progress"),m=u.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");m&&(m.style.color="".concat(null===(n=window)||void 0===n||null===(t=n.app_data)||void 0===t||null===(r=t.appcmsMain)||void 0===r||null===(o=r.brand)||void 0===o||null===(a=o.cta)||void 0===a||null===(d=a.primary)||void 0===d?void 0:d.backgroundColor)),h&&(h.style.background="".concat(null===(v=window)||void 0===v||null===(s=v.app_data)||void 0===s||null===(c=s.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(b=p.cta)||void 0===b||null===(f=b.primary)||void 0===f?void 0:f.backgroundColor));var q=y.getChild("BigPlayButton")||null;(null==g?void 0:g.progressBarColor)&&h&&(h.style.background=g.progressBarColor),(null==g?void 0:g.playButtonBackgroundColor)&&q&&(q.el().style.background=g.playButtonBackgroundColor),(null==g?void 0:g.playButtonColor)&&m&&(m.style.color=g.playButtonColor),(null==g?void 0:g.playButtonType)&&("square"==(null==g?void 0:g.playButtonType)?q.el().style.borderRadius=".3em":q.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),function(r,o){var u,a=l.getPlayer(r),v=(null==o||null===(u=o.res)||void 0===u?void 0:u.siteId)||"";a&&(a.on("loadeddata",function(){var e,l,u,a,s,c,p,b;h(r);var f=(null===(e=d.relatedVideosManager.get())||void 0===e||null===(l=e.content)||void 0===l?void 0:l.length)>0;if(!(null!=o&&null!==(u=o.series)&&void 0!==u&&u.enable||null!==(a=window)&&void 0!==a&&null!==(s=a.app_data)&&void 0!==s&&null!==(c=s.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play||f)||null!=o&&o.liveVideo){if(!(null!=o&&o.liveVideo||null!=o&&null!==(b=o.series)&&void 0!==b&&b.enable)){var y;y=d.relatedVideosManager.subscribe(function(e){var l;(null==e||null===(l=e.content)||void 0===l?void 0:l.length)>0&&(i.addNextEpPreview(r,o),y&&y())})}}else i.addNextEpPreview(r,o);null!=o&&o.liveVideo||t.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===v||n.initiateTrickplay(r)}),a.one("play",function(){var l,i,n,t;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(r,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}(r,o),function(n,t){var r,o,u,a,c,p,b,f=l.getPlayer(n),y=(null==t?void 0:t.liveVideo)||!1,g=(null==t||null===(r=t.res)||void 0===r?void 0:r.contentType)||"video",h=(null==t||null===(o=t.res)||void 0===o||null===(u=o[g])||void 0===u?void 0:u.isSSAIEnabled)||!1,m=v.getSource(null==t?void 0:t.res,n)||{};m.src;var q=(null==t?void 0:t.skin_settings)||{},w=(null==t||null===(a=t.customData)||void 0===a?void 0:a.ads)||{};if(y&&(null==t||!t.liveui)){var j,L=null==f||null===(j=f.controlBar)||void 0===j?void 0:j.getChild("LiveDisplay"),_=(null==L?void 0:L.el())||null,S=null==_?void 0:_.querySelector(".vjs-live-display");if(_&&S){var k,B,C=document.createElement("button");C.type="button",C.className="vjs-live-display",C.setAttribute("aria-label","live"),C.textContent="LIVE";var P=function(){try{var e;null==f||null===(e=f.liveTracker)||void 0===e||e.seekToLiveEdge()}catch(e){console.log(e,"Cannot seek to LE")}};C.addEventListener("click",P),S.replaceWith(C),L&&(L.contentEl_=C);var E=live_button_el.querySelector(".vjs-live-display")||live_button_el,T=function(){var e,l,i,n=null===(e=null==f||null===(l=f.liveTracker)||void 0===l||null===(i=l.atLiveEdge)||void 0===i?void 0:i.call(l))||void 0===e||e;E.classList.toggle("vjs-behind-live",!n)};null==f||null===(k=f.liveTracker)||void 0===k||null===(B=k.on)||void 0===B||B.call(k,"liveedgechange",T),T(),_.removeAttribute("tabindex"),_.removeAttribute("role"),_.removeAttribute("aria-label")}}null!=q&&q.skipBtn&&0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)&&e.addSkipButton(n,"VL_ONE",s.SkipSvgV2());(null!=q&&q.rewindBtn&&0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)||1==(null==t?void 0:t.liveui))&&e.addRewindButton(n,"VL_ONE",s.RewindSvgV2());var O,M=d.relatedVideosManager.get();(null==M||null===(c=M.content)||void 0===c?void 0:c.length)>0&&e.addVideoSelector(n,M);O=d.relatedVideosManager.subscribe(function(i){var t,r,o=l.getPlayer(n);(null==o||null===(t=o.controlBar)||void 0===t||!t.getChild("videoSelector"))&&(null==i||null===(r=i.content)||void 0===r?void 0:r.length)>0&&(e.addVideoSelector(n,i),O&&O())}),null!=t&&null!==(p=t.series)&&void 0!==p&&p.enable&&e.addSeriesSelectorV2(n,t);(null==t||null===(b=t.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(n,null==t?void 0:t.streams);if(i.addTVProviderImage(n,t),v.initialiseKeyboardEvents(n,t),h&&y&&"TRANSMIT"==(null==w?void 0:w.liveAdSticherProvider)&&!(null==w||!w.liveAdClientSideTracking))v.initializeTransmit(n,t);else if("MEDIA_TAILOR"==(null==w?void 0:w.vodAdSticherProvider)&&null!=w&&w.vodAdClientSideTracking&&h)if(y)v.setupAdvertisementMarkersForLinear(n);else{var I,A=null;if(null!=t&&null!==(I=t.series)&&void 0!==I&&I.enable){var V,R,x,D,N,Q=null===(V=v.getCurrentVideo())||void 0===V||null===(R=V.video)||void 0===R||null===(x=R.gist)||void 0===x?void 0:x.id,H=v.getSeriesWatchMap(),F=(null==H?void 0:H.get(Q))||{t:0,p:0},U=F.t,G=F.p;"function"==typeof(null===(D=window)||void 0===D||null===(N=D.watchHistory)||void 0===N?void 0:N.cb)&&window.watchHistory.cb({watchedTime:U}),G<95&&(A=U)}else{var K=t.watchHistoryResumeTime;t.watchedPercentage<95&&(A=K)}v.setupAdvertisementMarkers(n,A)}}(r,o),m(r,o)};
1
+ "use strict";var e=require("./features-579dfc09.js"),l=require("./skin-66dce245.js"),i=require("./index-8a1b84d3.js"),n=require("./index-a276fc30.js"),t=require("./browser-2807cc02.js"),r=require("@babel/runtime/helpers/defineProperty"),o=require("@babel/runtime/helpers/toConsumableArray"),u=require("video.js");require("videojs-contrib-quality-menu");var a=require("./resolution-687b9e26.js"),d=require("./relatedVideosManager-0a220d05.js"),v=require("./generic-25227e81.js"),s=require("./icons-eb807ef0.js");function c(e,l){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,n)}return i}function p(e){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?c(Object(i),!0).forEach(function(l){r(e,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(i,l))})}return e}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("./renditions-627bdfad.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-423d63c8.js"),require("./index-db332a6d.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/assertThisInitialized"),require("axios"),require("md5"),require("js-cookie"),require("./captions-6d34f14b.js"),require("@viewlift/comscore/index.js");var b=function(e,l){var i,n;if(e&&null!=l){e.options_.label=l;var t=null===(i=e.el())||void 0===i||null===(n=i.querySelector)||void 0===n?void 0:n.call(i,".vjs-menu-item-text");t&&(t.innerHTML=l)}},f=function(e){var l,i;return null!==(l=null!==(i=null==e?void 0:e.bitrate)&&void 0!==i?i:null==e?void 0:e.bandwidth)&&void 0!==l?l:0},y=function(e){var l=a.resolveEnhancedBitrateLabel();return l?"".concat(e," ").concat(l):e},g=function(e){var l,i=null===(l=t.playerConfigManager.getConfig())||void 0===l?void 0:l.qualityLabels,n=a.resolveAutoQualityLabel();if(null!=i&&i.auto&&"function"==typeof u.addLanguage){var r="function"==typeof e.language&&e.language()||"en";u.addLanguage(r,{Auto:i.auto})}var d=function(e){var l,i=e.getChild("controlBar");return i&&(i.getChild("QualityMenuButton")||(null===(l=i.children())||void 0===l?void 0:l.find(function(e){return"QualityMenuButton"===(null==e?void 0:e.name_)})))||null}(e);if(d&&!d._qualityLabelsPatched){if(d._qualityLabelsPatched=!0,"function"==typeof d.groupByResolution_){var v=d.groupByResolution_.bind(d);d.groupByResolution_=function(){var e=this;return v().reduce(function(l,i){return l.concat(function(e,l){var i,n=o(l.levels||[]).sort(function(l,i){return f(e[i])-f(e[l])}),t=a.resolveHeightQualityLabel(null==e||null===(i=e[n[0]])||void 0===i?void 0:i.height),r=null!=t?t:l.label,u=null!=t?"":l.subLabel,d=f(e[n[n.length-1]]);return f(e[n[0]])===d?[p(p({},l),{},{label:r,subLabel:u})]:n.map(function(i){return p(p({},l),{},{levels:[i],active:e.selectedIndex===i,label:f(e[i])>d?y(r):r,subLabel:u})})}(e.qualityLevels_,i))},[])}}if("function"==typeof d.createItems){var s=d.createItems.bind(d);d.createItems=function(){var e=s();return e.forEach(function(e){var l;return b(e,null===(l=e.options_)||void 0===l?void 0:l.label)}),this.autoMenuItem_&&null!=i&&i.auto&&b(this.autoMenuItem_,n),e}}"function"==typeof d.update&&d.update()}},h=function(e){var i=l.getPlayer(e);if(i){var n=function(e){var l,i,n,t,r,o=null==e||null===(l=e.dash)||void 0===l?void 0:l.mediaPlayer;if(o&&"function"==typeof e.qualityLevels&&e._dashQualityLevelsFor!==o){var u=(null===(i=o.getRepresentationsByType)||void 0===i?void 0:i.call(o,"video"))||[];if(u.length){e._dashQualityLevelsFor=o;for(var a=e.qualityLevels();a.length;)a.removeQualityLevel(a[0]);var d=function(e){return(null==e?void 0:e.bandwidth)||1e3*((null==e?void 0:e.bitrateInKbit)||0)},v=u.map(function(){return!0}),s=!1,c=function(){s=!1;var e=u.filter(function(e,l){return v[l]});if(e.length&&e.length!==u.length){var l=e.reduce(function(e,l){return d(l)>d(e)?l:e});o.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),o.setRepresentationForTypeById("video",l.id,!0)}else o.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}})};u.forEach(function(e,l){a.addQualityLevel({id:String(e.id),width:e.width,height:e.height,bandwidth:d(e),enabled:function(e){if("boolean"!=typeof e)return v[l];v[l]=e,s||(s=!0,Promise.resolve().then(c))}})});var p=function(e){var l=u.findIndex(function(l){return l.id===(null==e?void 0:e.id)});l<0||a.selectedIndex===l||(a.selectedIndex_=l,a.trigger({type:"change",selectedIndex:l}))},b=null===(n=window)||void 0===n||null===(t=n.dashjs)||void 0===t||null===(r=t.MediaPlayer)||void 0===r?void 0:r.events;return null!=b&&b.QUALITY_CHANGE_RENDERED&&o.on(b.QUALITY_CHANGE_RENDERED,function(e){var l=e.mediaType,i=e.newRepresentation;"video"===l&&p(i)}),function(){var e;return p(null===(e=o.getCurrentRepresentationForType)||void 0===e?void 0:e.call(o,"video"))}}}}(i);"function"==typeof i.qualityMenu&&i.qualityMenu({useResolutionLabels:!0}),i.ready(function(){g(i),n&&n()}),i.on("loadstart",function(){i.ready(function(){return g(i)})})}};var m=function(e,i){var n,t,r,o,a,d,v,s,c,p,b,f,y=l.getPlayer(e),g=(null==i?void 0:i.theme)||{},h=u.dom.$(".vjs-play-progress"),m=u.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");m&&(m.style.color="".concat(null===(n=window)||void 0===n||null===(t=n.app_data)||void 0===t||null===(r=t.appcmsMain)||void 0===r||null===(o=r.brand)||void 0===o||null===(a=o.cta)||void 0===a||null===(d=a.primary)||void 0===d?void 0:d.backgroundColor)),h&&(h.style.background="".concat(null===(v=window)||void 0===v||null===(s=v.app_data)||void 0===s||null===(c=s.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(b=p.cta)||void 0===b||null===(f=b.primary)||void 0===f?void 0:f.backgroundColor));var q=y.getChild("BigPlayButton")||null;(null==g?void 0:g.progressBarColor)&&h&&(h.style.background=g.progressBarColor),(null==g?void 0:g.playButtonBackgroundColor)&&q&&(q.el().style.background=g.playButtonBackgroundColor),(null==g?void 0:g.playButtonColor)&&m&&(m.style.color=g.playButtonColor),(null==g?void 0:g.playButtonType)&&("square"==(null==g?void 0:g.playButtonType)?q.el().style.borderRadius=".3em":q.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),function(r,o){var u,a=l.getPlayer(r),v=(null==o||null===(u=o.res)||void 0===u?void 0:u.siteId)||"";a&&(a.on("loadeddata",function(){var e,l,u,a,s,c,p,b;h(r);var f=(null===(e=d.relatedVideosManager.get())||void 0===e||null===(l=e.content)||void 0===l?void 0:l.length)>0;if(!(null!=o&&null!==(u=o.series)&&void 0!==u&&u.enable||null!==(a=window)&&void 0!==a&&null!==(s=a.app_data)&&void 0!==s&&null!==(c=s.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play||f)||null!=o&&o.liveVideo){if(!(null!=o&&o.liveVideo||null!=o&&null!==(b=o.series)&&void 0!==b&&b.enable)){var y;y=d.relatedVideosManager.subscribe(function(e){var l;(null==e||null===(l=e.content)||void 0===l?void 0:l.length)>0&&(i.addNextEpPreview(r,o),y&&y())})}}else i.addNextEpPreview(r,o);null!=o&&o.liveVideo||t.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===v||n.initiateTrickplay(r)}),a.one("play",function(){var l,i,n,t;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(r,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}(r,o),function(n,t){var r,o,u,a,c,p,b,f=l.getPlayer(n),y=(null==t?void 0:t.liveVideo)||!1,g=(null==t||null===(r=t.res)||void 0===r?void 0:r.contentType)||"video",h=(null==t||null===(o=t.res)||void 0===o||null===(u=o[g])||void 0===u?void 0:u.isSSAIEnabled)||!1,m=v.getSource(null==t?void 0:t.res,n)||{};m.src;var q=(null==t?void 0:t.skin_settings)||{},w=(null==t||null===(a=t.customData)||void 0===a?void 0:a.ads)||{};if(y&&(null==t||!t.liveui)){var j,L=null==f||null===(j=f.controlBar)||void 0===j?void 0:j.getChild("LiveDisplay"),_=(null==L?void 0:L.el())||null,S=null==_?void 0:_.querySelector(".vjs-live-display");if(_&&S){var k,B,C=document.createElement("button");C.type="button",C.className="vjs-live-display",C.setAttribute("aria-label","live"),C.textContent="LIVE";var P=function(){try{var e;null==f||null===(e=f.liveTracker)||void 0===e||e.seekToLiveEdge()}catch(e){console.log(e,"Cannot seek to LE")}};C.addEventListener("click",P),S.replaceWith(C),L&&(L.contentEl_=C);var E=live_button_el.querySelector(".vjs-live-display")||live_button_el,T=function(){var e,l,i,n=null===(e=null==f||null===(l=f.liveTracker)||void 0===l||null===(i=l.atLiveEdge)||void 0===i?void 0:i.call(l))||void 0===e||e;E.classList.toggle("vjs-behind-live",!n)};null==f||null===(k=f.liveTracker)||void 0===k||null===(B=k.on)||void 0===B||B.call(k,"liveedgechange",T),T(),_.removeAttribute("tabindex"),_.removeAttribute("role"),_.removeAttribute("aria-label")}}null!=q&&q.skipBtn&&0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)&&e.addSkipButton(n,"VL_ONE",s.SkipSvgV2());(null!=q&&q.rewindBtn&&0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)||1==(null==t?void 0:t.liveui))&&e.addRewindButton(n,"VL_ONE",s.RewindSvgV2());var O,M=d.relatedVideosManager.get();(null==M||null===(c=M.content)||void 0===c?void 0:c.length)>0&&e.addVideoSelector(n,M);O=d.relatedVideosManager.subscribe(function(i){var t,r,o=l.getPlayer(n);(null==o||null===(t=o.controlBar)||void 0===t||!t.getChild("videoSelector"))&&(null==i||null===(r=i.content)||void 0===r?void 0:r.length)>0&&(e.addVideoSelector(n,i),O&&O())}),null!=t&&null!==(p=t.series)&&void 0!==p&&p.enable&&e.addSeriesSelectorV2(n,t);(null==t||null===(b=t.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(n,null==t?void 0:t.streams);if(i.addTVProviderImage(n,t),v.initialiseKeyboardEvents(n,t),h&&y&&"TRANSMIT"==(null==w?void 0:w.liveAdSticherProvider)&&!(null==w||!w.liveAdClientSideTracking))v.initializeTransmit(n,t);else if("MEDIA_TAILOR"==(null==w?void 0:w.vodAdSticherProvider)&&null!=w&&w.vodAdClientSideTracking&&h)if(y)v.setupAdvertisementMarkersForLinear(n);else{var I,A=null;if(null!=t&&null!==(I=t.series)&&void 0!==I&&I.enable){var V,R,x,D,N,Q=null===(V=v.getCurrentVideo())||void 0===V||null===(R=V.video)||void 0===R||null===(x=R.gist)||void 0===x?void 0:x.id,H=v.getSeriesWatchMap(),F=(null==H?void 0:H.get(Q))||{t:0,p:0},U=F.t,G=F.p;"function"==typeof(null===(D=window)||void 0===D||null===(N=D.watchHistory)||void 0===N?void 0:N.cb)&&window.watchHistory.cb({watchedTime:U}),G<95&&(A=U)}else{var K=t.watchHistoryResumeTime;t.watchedPercentage<95&&(A=K)}v.setupAdvertisementMarkers(n,A)}}(r,o),m(r,o)};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/get"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),d=require("./icons-eb807ef0.js"),s=require("./generic-1fd7c1af.js"),r=require("./skin-66dce245.js"),c=require("./autoNextVideo-cd4cbbb9.js"),u=require("./localisation-56e0a999.js"),v=require("./relatedVideosManager-0a220d05.js");function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("./captions-4dfe293a.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./index-f1795d76.js");var p=a.getComponent("Component"),h=function(){i(f,p);var h,b,y=(h=f,b=m(),function(){var e,t=l(h);if(b){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function f(t){var n,i,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,f),(o=y.call(this,t,l)).playerId=l.playerId,o.seriesData=l.sres,o.videos=l.related.content,o.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==l||null===(i=l.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=l.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(s.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o._unsubRelated=v.relatedVideosManager.subscribe(function(e){var t;o.videos=(null==e?void 0:e.content)||o.videos,o.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:o.cb,c.updateContent(o.videos),o._refreshList()}),o}return t(f,[{key:"_buildVideoItem",value:function(e){var t,n,i,o,l,d,s,c,u,v=this,m=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(this.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(t){"Enter"===t.key&&v.loadVideoAssetById(e)},p.onclick=function(){v.loadVideoAssetById(e)};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat(r.impolicy16x9(null==this||null===(t=this.videos)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.img)||r.impolicy16x9(null===(i=window)||void 0===i||null===(o=i.app_data)||void 0===o||null===(l=o.appcmsMain)||void 0===l||null===(d=l.images)||void 0===d?void 0:d.placeholderCover)),h.alt="".concat((null==this||null===(s=this.videos[e])||void 0===s||null===(c=s.title)||void 0===c?void 0:c.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(h);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(u=this.videos[e])||void 0===u?void 0:u.title)||"")});return a.dom.appendContent(m,p),a.dom.appendContent(m,b),m}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){a.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)a.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,i,o){var a=n(l(1&o?e.prototype:e),t,i);return 2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a}(f,"dispose",this,3)([])}},{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",ariaExpanded:!1,innerHTML:"".concat(d.PlaylistIcon())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b90fe564.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=a.dom.createEl("div",{className:"video-selection-container hidden"}),i=a.dom.$(".video-selector-icon",this.el());i.onclick=function(){var o,l;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(r.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),r.setUpdatedElHeight(e.playerId,n),e.handleTabIndexSelector(),null===(l=e.titleEl)||void 0===l||l.focus(),i.setAttribute("aria-expanded",!0)):(n.classList.add("hidden"),t.classList.remove("open"),i.setAttribute("aria-expanded",!1))};var o=document.getElementById(this.playerId);if(o){var l=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(l),a.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),r.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;s.setVideoIdx(e+1);for(var n=a.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";r.highlightVideo(e),s.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;this.titleEl&&(this.titleEl.tabIndex=0),null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var i=document.getElementsByClassName("video-accessibility"),o=(null==i||null===(t=i[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<o;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n,i;this.titleEl&&(this.titleEl.tabIndex=-1),null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1),null!==(t=document.getElementsByClassName("video-selector-icon"))&&void 0!==t&&t[0]&&document.getElementsByClassName("video-selector-icon")[0].setAttribute("aria-expanded",!1);for(var o=document.getElementsByClassName("video-accessibility"),l=(null==o||null===(n=o[0])||void 0===n||null===(i=n.children)||void 0===i?void 0:i.length)||0,a=0;a<l;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=a.dom.createEl("div",{className:"video-selector-head"}),o=a.dom.createEl("button",{className:"video-selector-cross-icon",ariaLabel:"close video selector",type:"button",tabIndex:-1,innerHTML:"".concat(d.crossIconSvg())});o.onkeydown=function(i){"Enter"===i.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};var l=u.getLocalisation("relatedVideoTitle")||"Recommended",s=a.dom.createEl("div",{className:"video-selector-title",innerHTML:l,ariaLabel:l,tabIndex:-1});s.setAttribute("role","heading"),s.setAttribute("aria-level","2"),this.titleEl=s;for(var c=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),v=a.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,i,o,l,d,s,u,m,p=a.dom.createEl("div",{className:"video -".concat(e)}),h=a.dom.createEl("button",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(r.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||r.impolicy16x9(null===(o=window)||void 0===o||null===(l=o.app_data)||void 0===l||null===(d=l.appcmsMain)||void 0===d||null===(s=d.images)||void 0===s?void 0:s.placeholderCover)),b.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),b.setAttribute("aria-hidden","true"),h.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title)||"")});a.dom.appendContent(p,h),a.dom.appendContent(p,y),a.dom.appendContent(v,p),a.dom.appendContent(c,v)},p=0;p<this.videos.length;p++)m(p);a.dom.appendContent(i,s),a.dom.appendContent(i,o),a.dom.appendContent(e,i),a.dom.appendContent(e,c),r.handleDrawerResizing(this.playerId,e)}}]),f}();exports.default=h;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/get"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),d=require("./icons-eb807ef0.js"),s=require("./generic-25227e81.js"),r=require("./skin-66dce245.js"),c=require("./autoNextVideo-423d63c8.js"),u=require("./localisation-56e0a999.js"),v=require("./relatedVideosManager-0a220d05.js");function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("./captions-6d34f14b.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./index-db332a6d.js");var p=a.getComponent("Component"),h=function(){i(f,p);var h,b,y=(h=f,b=m(),function(){var e,t=l(h);if(b){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function f(t){var n,i,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,f),(o=y.call(this,t,l)).playerId=l.playerId,o.seriesData=l.sres,o.videos=l.related.content,o.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==l||null===(i=l.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=l.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(s.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o._unsubRelated=v.relatedVideosManager.subscribe(function(e){var t;o.videos=(null==e?void 0:e.content)||o.videos,o.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:o.cb,c.updateContent(o.videos),o._refreshList()}),o}return t(f,[{key:"_buildVideoItem",value:function(e){var t,n,i,o,l,d,s,c,u,v=this,m=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(this.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(t){"Enter"===t.key&&v.loadVideoAssetById(e)},p.onclick=function(){v.loadVideoAssetById(e)};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat(r.impolicy16x9(null==this||null===(t=this.videos)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.img)||r.impolicy16x9(null===(i=window)||void 0===i||null===(o=i.app_data)||void 0===o||null===(l=o.appcmsMain)||void 0===l||null===(d=l.images)||void 0===d?void 0:d.placeholderCover)),h.alt="".concat((null==this||null===(s=this.videos[e])||void 0===s||null===(c=s.title)||void 0===c?void 0:c.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(h);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(u=this.videos[e])||void 0===u?void 0:u.title)||"")});return a.dom.appendContent(m,p),a.dom.appendContent(m,b),m}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){a.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)a.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,i,o){var a=n(l(1&o?e.prototype:e),t,i);return 2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a}(f,"dispose",this,3)([])}},{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",ariaExpanded:!1,innerHTML:"".concat(d.PlaylistIcon())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b90fe564.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=a.dom.createEl("div",{className:"video-selection-container hidden"}),i=a.dom.$(".video-selector-icon",this.el());i.onclick=function(){var o,l;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(r.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),r.setUpdatedElHeight(e.playerId,n),e.handleTabIndexSelector(),null===(l=e.titleEl)||void 0===l||l.focus(),i.setAttribute("aria-expanded",!0)):(n.classList.add("hidden"),t.classList.remove("open"),i.setAttribute("aria-expanded",!1))};var o=document.getElementById(this.playerId);if(o){var l=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(l),a.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),r.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;s.setVideoIdx(e+1);for(var n=a.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";r.highlightVideo(e),s.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;this.titleEl&&(this.titleEl.tabIndex=0),null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var i=document.getElementsByClassName("video-accessibility"),o=(null==i||null===(t=i[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<o;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n,i;this.titleEl&&(this.titleEl.tabIndex=-1),null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1),null!==(t=document.getElementsByClassName("video-selector-icon"))&&void 0!==t&&t[0]&&document.getElementsByClassName("video-selector-icon")[0].setAttribute("aria-expanded",!1);for(var o=document.getElementsByClassName("video-accessibility"),l=(null==o||null===(n=o[0])||void 0===n||null===(i=n.children)||void 0===i?void 0:i.length)||0,a=0;a<l;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=a.dom.createEl("div",{className:"video-selector-head"}),o=a.dom.createEl("button",{className:"video-selector-cross-icon",ariaLabel:"close video selector",type:"button",tabIndex:-1,innerHTML:"".concat(d.crossIconSvg())});o.onkeydown=function(i){"Enter"===i.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};var l=u.getLocalisation("relatedVideoTitle")||"Recommended",s=a.dom.createEl("div",{className:"video-selector-title",innerHTML:l,ariaLabel:l,tabIndex:-1});s.setAttribute("role","heading"),s.setAttribute("aria-level","2"),this.titleEl=s;for(var c=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),v=a.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,i,o,l,d,s,u,m,p=a.dom.createEl("div",{className:"video -".concat(e)}),h=a.dom.createEl("button",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(r.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||r.impolicy16x9(null===(o=window)||void 0===o||null===(l=o.app_data)||void 0===l||null===(d=l.appcmsMain)||void 0===d||null===(s=d.images)||void 0===s?void 0:s.placeholderCover)),b.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),b.setAttribute("aria-hidden","true"),h.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title)||"")});a.dom.appendContent(p,h),a.dom.appendContent(p,y),a.dom.appendContent(v,p),a.dom.appendContent(c,v)},p=0;p<this.videos.length;p++)m(p);a.dom.appendContent(i,s),a.dom.appendContent(i,o),a.dom.appendContent(e,i),a.dom.appendContent(e,c),r.handleDrawerResizing(this.playerId,e)}}]),f}();exports.default=h;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/get"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),l=require("./icons-eb807ef0.js"),d=require("./generic-1fd7c1af.js"),s=require("./skin-66dce245.js"),c=require("./autoNextVideo-cd4cbbb9.js"),u=require("./localisation-56e0a999.js"),v=require("./relatedVideosManager-0a220d05.js");function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("./captions-4dfe293a.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./index-f1795d76.js");var p=a.getComponent("Component"),h=function(){n(y,p);var h,b,f=(h=y,b=m(),function(){var e,t=r(h);if(b){var i=r(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(o=f.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o._unsubRelated=v.relatedVideosManager.subscribe(function(e){var t;o.videos=(null==e?void 0:e.content)||o.videos,o.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:o.cb,c.updateContent(o.videos),o._refreshList()}),o}return t(y,[{key:"_buildVideoItem",value:function(e){var t,i,n,o,r,l=this,c=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.setVideoIdx(e+1);for(var t=a.dom.$$(".recommended"),i=0;i<t.length;i++)t[i].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),d.load(l.playerId,l.videos[e].id).then(function(e){l.cb&&l.cb(e)}).catch(function(e){l.cb&&l.cb(e)})};var v=document.createElement("img");v.className="related-thumbnail-image",v.src="".concat((null==this||null===(t=this.videos)||void 0===t||null===(i=t[e])||void 0===i?void 0:i.img)||(null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.fallbackImage)),v.alt="No Thumbnail Available",u.append(v);var m=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(r=this.videos[e])||void 0===r?void 0:r.title)||"")});return a.dom.appendContent(c,u),a.dom.appendContent(c,m),c}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){a.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)a.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,n,o){var a=i(r(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof a?function(e){return a.apply(n,e)}:a}(y,"dispose",this,3)([])}},{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(l.EpisodesSvg())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.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(),i=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(s.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",s.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),a.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),s.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),o=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),v=a.dom.createEl("div",{className:"video-container"}),m=function(e){var i,n,o,r,l,u=a.dom.createEl("div",{className:"video -".concat(e)}),m=a.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){d.setVideoIdx(e+1);for(var i=a.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),d.load(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r?void 0:r.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=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(u,m),a.dom.appendContent(u,h),a.dom.appendContent(v,u),a.dom.appendContent(c,v)},p=0;p<this.videos.length;p++)m(p);a.dom.appendContent(n,o),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),s.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=h;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/get"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),l=require("./icons-eb807ef0.js"),d=require("./generic-25227e81.js"),s=require("./skin-66dce245.js"),c=require("./autoNextVideo-423d63c8.js"),u=require("./localisation-56e0a999.js"),v=require("./relatedVideosManager-0a220d05.js");function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-2807cc02.js"),require("md5"),require("js-cookie"),require("./captions-6d34f14b.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./index-db332a6d.js");var p=a.getComponent("Component"),h=function(){n(y,p);var h,b,f=(h=y,b=m(),function(){var e,t=r(h);if(b){var i=r(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(o=f.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o._unsubRelated=v.relatedVideosManager.subscribe(function(e){var t;o.videos=(null==e?void 0:e.content)||o.videos,o.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:o.cb,c.updateContent(o.videos),o._refreshList()}),o}return t(y,[{key:"_buildVideoItem",value:function(e){var t,i,n,o,r,l=this,c=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.setVideoIdx(e+1);for(var t=a.dom.$$(".recommended"),i=0;i<t.length;i++)t[i].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),d.load(l.playerId,l.videos[e].id).then(function(e){l.cb&&l.cb(e)}).catch(function(e){l.cb&&l.cb(e)})};var v=document.createElement("img");v.className="related-thumbnail-image",v.src="".concat((null==this||null===(t=this.videos)||void 0===t||null===(i=t[e])||void 0===i?void 0:i.img)||(null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.fallbackImage)),v.alt="No Thumbnail Available",u.append(v);var m=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(r=this.videos[e])||void 0===r?void 0:r.title)||"")});return a.dom.appendContent(c,u),a.dom.appendContent(c,m),c}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){a.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)a.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,n,o){var a=i(r(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof a?function(e){return a.apply(n,e)}:a}(y,"dispose",this,3)([])}},{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(l.EpisodesSvg())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.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(),i=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(s.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",s.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),a.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),s.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),o=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),v=a.dom.createEl("div",{className:"video-container"}),m=function(e){var i,n,o,r,l,u=a.dom.createEl("div",{className:"video -".concat(e)}),m=a.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){d.setVideoIdx(e+1);for(var i=a.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),d.load(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r?void 0:r.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=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(u,m),a.dom.appendContent(u,h),a.dom.appendContent(v,u),a.dom.appendContent(c,v)},p=0;p<this.videos.length;p++)m(p);a.dom.appendContent(n,o),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),s.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=h;
@@ -1 +1 @@
1
- import{s as e,ac as n,X as t,ab as o,ad as r}from"./generic-80161db0.js";import{b as s,a as i}from"./index-62b477f6.js";import{g as u,h as a}from"./skin-3653c5b3.js";var l,d=0,c=0,v=new Set(["NOT_AIRED","VIDEO_NOT_AVAILABLE","CONTENT_NOT_AVAILABLE"]),f=function(e){return(null==e?void 0:e.response)||e},p=function(e,n){return e&&null!=n&&n.gist&&(e.response=e.response||{},e.response.video=e.response.video||{},e.response.video.gist=n.gist),e},g=function(e){var n,t,o=f(e),r=null==o||null===(n=o.response)||void 0===n?void 0:n.data;return 403===(null==o||null===(t=o.response)||void 0===t?void 0:t.status)||(!!(null!=r&&r.scheduleStartDate&&Number(r.scheduleStartDate)>Date.now())||!(null==r||!r.errorCode||!v.has(r.errorCode)))},m=function(e,n){clearTimeout(d);var t=f(n);i(e,t,null);var o=u(e);o&&!o.paused()&&o.pause()},h=function(e,n,o){var r=o[e];if(function(e){var n,t=null==e||null===(n=e.gist)||void 0===n?void 0:n.scheduleStartDate;return t&&Number(t)>Date.now()}(r))return Promise.reject(function(e){var n,t,o;return{response:{data:{errorMessage:null!=e&&null!==(n=e.gist)&&void 0!==n&&n.scheduleStartDate?"Coming soon":"Content not available",scheduleStartDate:null==e||null===(t=e.gist)||void 0===t?void 0:t.scheduleStartDate,scheduleEndDate:null==e||null===(o=e.gist)||void 0===o?void 0:o.scheduleEndDate,gist:null==e?void 0:e.gist}}}}(r));if(!u(n)){var s={status:!1,msg:"Player not initialised for next episode load",response:{playerId:n,episode:r}};return console.error("[autoNextVideo] player not found before trying next episode load",s),Promise.reject(s)}return t(n,r.id)},D=[],T=function(e){D=e||[]},N=function(t){clearTimeout(d),D=(null==t?void 0:t.content)||[],l=null==t?void 0:t.cb;var i=t.playerId;s(i,function(){var t=u(i);0!==(null==t?void 0:t.currentTime())&&((c=o())>D.length-1||(r(c+1),h(c,i,D).then(function(n){a(c,i),e(n.response),c++,A(n)}).catch(function(e){A(p(e,D[idx])),a(c,i),g(e)?m(i,e):(c++,d=setTimeout(function(){n(i)&&b(c,i,D)},5e3))})))})},b=function e(n,t,o,s){c=n,n>o.length-1||(r(c+1),h(n,t,o).then(function(e){a(c,t),c++,A(e)}).catch(function(r){A(p(r,o[n])),g(r)?m(t,r):setTimeout(function(){a(c,t),c++,e(c,t,o)},5e3)}))},A=function(e){l&&l(e)};export{N as a,b as s,T as u};
1
+ import{s as e,ac as n,X as t,ab as o,ad as r}from"./generic-326a71a3.js";import{b as s,a as i}from"./index-df589dc0.js";import{g as u,h as a}from"./skin-3653c5b3.js";var l,d=0,c=0,v=new Set(["NOT_AIRED","VIDEO_NOT_AVAILABLE","CONTENT_NOT_AVAILABLE"]),f=function(e){return(null==e?void 0:e.response)||e},p=function(e,n){return e&&null!=n&&n.gist&&(e.response=e.response||{},e.response.video=e.response.video||{},e.response.video.gist=n.gist),e},g=function(e){var n,t,o=f(e),r=null==o||null===(n=o.response)||void 0===n?void 0:n.data;return 403===(null==o||null===(t=o.response)||void 0===t?void 0:t.status)||(!!(null!=r&&r.scheduleStartDate&&Number(r.scheduleStartDate)>Date.now())||!(null==r||!r.errorCode||!v.has(r.errorCode)))},m=function(e,n){clearTimeout(d);var t=f(n);i(e,t,null);var o=u(e);o&&!o.paused()&&o.pause()},h=function(e,n,o){var r=o[e];if(function(e){var n,t=null==e||null===(n=e.gist)||void 0===n?void 0:n.scheduleStartDate;return t&&Number(t)>Date.now()}(r))return Promise.reject(function(e){var n,t,o;return{response:{data:{errorMessage:null!=e&&null!==(n=e.gist)&&void 0!==n&&n.scheduleStartDate?"Coming soon":"Content not available",scheduleStartDate:null==e||null===(t=e.gist)||void 0===t?void 0:t.scheduleStartDate,scheduleEndDate:null==e||null===(o=e.gist)||void 0===o?void 0:o.scheduleEndDate,gist:null==e?void 0:e.gist}}}}(r));if(!u(n)){var s={status:!1,msg:"Player not initialised for next episode load",response:{playerId:n,episode:r}};return console.error("[autoNextVideo] player not found before trying next episode load",s),Promise.reject(s)}return t(n,r.id)},D=[],T=function(e){D=e||[]},N=function(t){clearTimeout(d),D=(null==t?void 0:t.content)||[],l=null==t?void 0:t.cb;var i=t.playerId;s(i,function(){var t=u(i);0!==(null==t?void 0:t.currentTime())&&((c=o())>D.length-1||(r(c+1),h(c,i,D).then(function(n){a(c,i),e(n.response),c++,A(n)}).catch(function(e){A(p(e,D[idx])),a(c,i),g(e)?m(i,e):(c++,d=setTimeout(function(){n(i)&&b(c,i,D)},5e3))})))})},b=function e(n,t,o,s){c=n,n>o.length-1||(r(c+1),h(n,t,o).then(function(e){a(c,t),c++,A(e)}).catch(function(r){A(p(r,o[n])),g(r)?m(t,r):setTimeout(function(){a(c,t),c++,e(c,t,o)},5e3)}))},A=function(e){l&&l(e)};export{N as a,b as s,T as u};