@viewlift/player-backup 2.0.129-backup → 2.0.130-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 (45) hide show
  1. package/cjs/{autoNextVideo-825738e3.js → autoNextVideo-bd3f3aed.js} +1 -1
  2. package/cjs/bundle.css +7 -4
  3. package/cjs/{features-14a82131.js → features-9f23aa88.js} +1 -1
  4. package/cjs/{generic-ed5351ac.js → generic-88fa6091.js} +1 -1
  5. package/cjs/{index-7acf44c0.js → index-c7f00c41.js} +1 -1
  6. package/cjs/index.js +1 -1
  7. package/cjs/{multicamv2-6783d16a.js → multicamv2-1f47ae1b.js} +1 -1
  8. package/cjs/{multicamv2-15fa46f2.js → multicamv2-c5716e13.js} +1 -1
  9. package/cjs/{nextEpisodeButton-f9df60bf.js → nextEpisodeButton-45403d93.js} +1 -1
  10. package/cjs/{playlist-f25d4fdd.js → playlist-1bd026ce.js} +1 -1
  11. package/cjs/{series-afb31c97.js → series-26c1f224.js} +1 -1
  12. package/cjs/{series-v2-ac9be1a5.js → series-v2-20f23d20.js} +1 -1
  13. package/cjs/{series-v2-4a6758a5.js → series-v2-3d545d97.js} +1 -1
  14. package/cjs/{skin-3fc1e587.js → skin-1ed36a2c.js} +1 -1
  15. package/cjs/{skin-31e91fc1.js → skin-2fe8a95b.js} +1 -1
  16. package/cjs/{skin-3582a7a9.js → skin-73dd2cbc.js} +1 -1
  17. package/cjs/{skin-50ab074c.js → skin-a9702d15.js} +1 -1
  18. package/cjs/{skin-05462c6b.js → skin-b6ead35e.js} +1 -1
  19. package/cjs/{skin-9ab21a0e.js → skin-c86f2454.js} +1 -1
  20. package/cjs/{skin-74b6b2c5.js → skin-cee62c4f.js} +1 -1
  21. package/cjs/{videoSelector-f5662a3d.js → videoSelector-87787750.js} +1 -1
  22. package/cjs/{videoSelector-ead22cdb.js → videoSelector-91208e47.js} +1 -1
  23. package/esm/{autoNextVideo-f650feaa.js → autoNextVideo-62e297ac.js} +1 -1
  24. package/esm/bundle.css +7 -4
  25. package/esm/{features-ef85cd2d.js → features-17f618a5.js} +1 -1
  26. package/esm/{generic-d3218d2d.js → generic-0db99da5.js} +1 -1
  27. package/esm/{index-fa452b8f.js → index-758b050a.js} +1 -1
  28. package/esm/index.js +1 -1
  29. package/esm/{multicamv2-f7e2a5e8.js → multicamv2-2a323a27.js} +1 -1
  30. package/esm/{multicamv2-b94f873f.js → multicamv2-9d555fe8.js} +1 -1
  31. package/esm/{nextEpisodeButton-afbebe47.js → nextEpisodeButton-7558817a.js} +1 -1
  32. package/esm/{playlist-401520ba.js → playlist-c3b4da10.js} +1 -1
  33. package/esm/{series-8bc4a1f5.js → series-61133d3b.js} +1 -1
  34. package/esm/{series-v2-1a997cce.js → series-v2-3957825b.js} +1 -1
  35. package/esm/{series-v2-895f8693.js → series-v2-c026cbd8.js} +1 -1
  36. package/esm/{skin-795e6c33.js → skin-0a1f7a06.js} +1 -1
  37. package/esm/{skin-0909de60.js → skin-33deb177.js} +1 -1
  38. package/esm/{skin-e26a71b9.js → skin-4ffbb569.js} +1 -1
  39. package/esm/{skin-2bca74ac.js → skin-51fc6993.js} +1 -1
  40. package/esm/{skin-d0b579c5.js → skin-6d26b808.js} +1 -1
  41. package/esm/{skin-4e867135.js → skin-dce35bcf.js} +1 -1
  42. package/esm/{skin-48d178ae.js → skin-dd59ec36.js} +1 -1
  43. package/esm/{videoSelector-0f557027.js → videoSelector-2d272c79.js} +1 -1
  44. package/esm/{videoSelector-5ed9f860.js → videoSelector-c6c9b3b4.js} +1 -1
  45. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";var e=require("./features-14a82131.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-63ae6607.js"),t=require("./resolution-9c4872ec.js"),o=require("./index-7acf44c0.js"),r=require("./generic-ed5351ac.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./autoNextVideo-825738e3.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-bf891620.js"),exports.initialiseSkin=function(s,u){i.getPlayer(s).addClass("skin_news"),function(){"Chrome"==r.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-12248e27.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),function(l,n){var s=i.getPlayer(l);s&&s.on("loadeddata",function(){var i,s,u,d,a,C;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,n),!(null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(d=u.app_data)&&void 0!==d&&null!==(a=d.appcmsMain)&&void 0!==a&&null!==(C=a.features)&&void 0!==C&&C.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n),null!=n&&n.liveVideo||r.isMobile()||o.initiateTrickplay(l)})}(s,u),function(e){var l,t,o,r,s,u,d,a,C,v,c,h,p,f,m,b,B,y,L=i.getPlayer(e);null===(l=L.controlBar)||void 0===l||l.removeChild("VolumePanel"),null===(t=L.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var j=null===(o=L.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),g=document.createElement("div");g.className="custom-spaced-progress-bar",j&&g.append(j.el());null===(r=L.controlBar)||void 0===r||null===(s=r.el())||void 0===s||s.append(g);var V='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';L.el().insertBefore(n.parseSvgString(V),null!==(u=L.el().firstChild)&&void 0!==u?u:null);var E=(null==L||null===(d=L.controlBar)||void 0===d||null===(a=d.getChild("PlayToggle"))||void 0===a||null===(C=a.el())||void 0===C?void 0:C.firstChild)||null;if(E){E.style.height="24px",E.style.width="24px";var w=n.injectSVG(E,L.paused()?"#vjs-icon-play":"#vjs-icon-pause");L.on("pause",function(){return w.setAttributeNS(null,"href","#vjs-icon-play")}),L.on("play",function(){return w.setAttributeNS(null,"href","#vjs-icon-pause")})}var x=(null==L||null===(v=L.controlBar)||void 0===v||null===(c=v.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=n.injectSVG(x,"#vjs-icon-fullscreen");L.on("fullscreenchange",function(){var e=L.isFullscreen_;null==S||S.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var q=(null==L||null===(p=L.controlBar)||void 0===p||null===(f=p.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(q){var M=q.querySelector(".vjs-mute-control .vjs-icon-placeholder");M.classList.add("vjs-svg-icon"),M.style.height="24px",M.style.width="24px";var k=n.injectSVG(M,L.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");L.on("volumechange",function(e){var l=L.volume();console.log(l,L.muted()),0==l||L.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==L||null===(m=L.controlBar)||void 0===m||null===(b=m.getChild("PictureInPictureToggle"))||void 0===b?void 0:b.el())||null;if(P){var Z=null==P?void 0:P.querySelector(".vjs-icon-placeholder");Z.style.height="16px",Z.style.width="25px";var _=n.injectSVG(Z,"#vjs-icon-pip");L.on("enterpictureinpicture",function(){_.setAttributeNS(null,"href","#vjs-icon-pip")})}var A=(null==L||null===(B=L.controlBar)||void 0===B||null===(y=B.getChild("SubsCapsButton"))||void 0===y?void 0:y.el())||null;if(A){var N=A.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");N.classList.add("vjs-svg-icon"),N.style.height="16px",N.style.width="29px";var T=n.injectSVG(N,"#vjs-icon-caps");T.setAttributeNS(null,"href","#vjs-icon-captions-off"),L.textTracks().on("change",function(e){for(var l=L.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?T.setAttributeNS(null,"href","#vjs-icon-captions"):T.setAttributeNS(null,"href","#vjs-icon-captions-off")})}}(s),function(i,n){var t,o,r,s,u,d,a=(null==n?void 0:n.skin_settings)||{};null==a||a.slowMoBtn,null!=a&&a.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());(null!=a&&a.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(t=n.relatedVideos)||void 0===t||null===(o=t.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(r=n.streams)||void 0===r?void 0:r.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(s=n.playlist)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(d=n.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(s,u),o.addTVProviderImage(s,u)};
1
+ "use strict";var e=require("./features-9f23aa88.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-63ae6607.js"),t=require("./resolution-9c4872ec.js"),o=require("./index-c7f00c41.js"),r=require("./generic-88fa6091.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./autoNextVideo-bd3f3aed.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-bf891620.js"),exports.initialiseSkin=function(s,u){i.getPlayer(s).addClass("skin_news"),function(){"Chrome"==r.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-12248e27.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),function(l,n){var s=i.getPlayer(l);s&&s.on("loadeddata",function(){var i,s,u,d,a,C;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,n),!(null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(d=u.app_data)&&void 0!==d&&null!==(a=d.appcmsMain)&&void 0!==a&&null!==(C=a.features)&&void 0!==C&&C.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n),null!=n&&n.liveVideo||r.isMobile()||o.initiateTrickplay(l)})}(s,u),function(e){var l,t,o,r,s,u,d,a,C,v,c,h,p,f,m,b,B,y,L=i.getPlayer(e);null===(l=L.controlBar)||void 0===l||l.removeChild("VolumePanel"),null===(t=L.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var j=null===(o=L.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),g=document.createElement("div");g.className="custom-spaced-progress-bar",j&&g.append(j.el());null===(r=L.controlBar)||void 0===r||null===(s=r.el())||void 0===s||s.append(g);var V='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';L.el().insertBefore(n.parseSvgString(V),null!==(u=L.el().firstChild)&&void 0!==u?u:null);var E=(null==L||null===(d=L.controlBar)||void 0===d||null===(a=d.getChild("PlayToggle"))||void 0===a||null===(C=a.el())||void 0===C?void 0:C.firstChild)||null;if(E){E.style.height="24px",E.style.width="24px";var w=n.injectSVG(E,L.paused()?"#vjs-icon-play":"#vjs-icon-pause");L.on("pause",function(){return w.setAttributeNS(null,"href","#vjs-icon-play")}),L.on("play",function(){return w.setAttributeNS(null,"href","#vjs-icon-pause")})}var x=(null==L||null===(v=L.controlBar)||void 0===v||null===(c=v.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=n.injectSVG(x,"#vjs-icon-fullscreen");L.on("fullscreenchange",function(){var e=L.isFullscreen_;null==S||S.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var q=(null==L||null===(p=L.controlBar)||void 0===p||null===(f=p.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(q){var M=q.querySelector(".vjs-mute-control .vjs-icon-placeholder");M.classList.add("vjs-svg-icon"),M.style.height="24px",M.style.width="24px";var k=n.injectSVG(M,L.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");L.on("volumechange",function(e){var l=L.volume();console.log(l,L.muted()),0==l||L.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==L||null===(m=L.controlBar)||void 0===m||null===(b=m.getChild("PictureInPictureToggle"))||void 0===b?void 0:b.el())||null;if(P){var Z=null==P?void 0:P.querySelector(".vjs-icon-placeholder");Z.style.height="16px",Z.style.width="25px";var _=n.injectSVG(Z,"#vjs-icon-pip");L.on("enterpictureinpicture",function(){_.setAttributeNS(null,"href","#vjs-icon-pip")})}var A=(null==L||null===(B=L.controlBar)||void 0===B||null===(y=B.getChild("SubsCapsButton"))||void 0===y?void 0:y.el())||null;if(A){var N=A.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");N.classList.add("vjs-svg-icon"),N.style.height="16px",N.style.width="29px";var T=n.injectSVG(N,"#vjs-icon-caps");T.setAttributeNS(null,"href","#vjs-icon-captions-off"),L.textTracks().on("change",function(e){for(var l=L.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?T.setAttributeNS(null,"href","#vjs-icon-captions"):T.setAttributeNS(null,"href","#vjs-icon-captions-off")})}}(s),function(i,n){var t,o,r,s,u,d,a=(null==n?void 0:n.skin_settings)||{};null==a||a.slowMoBtn,null!=a&&a.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());(null!=a&&a.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(t=n.relatedVideos)||void 0===t||null===(o=t.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(r=n.streams)||void 0===r?void 0:r.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(s=n.playlist)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(d=n.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(s,u),o.addTVProviderImage(s,u)};
@@ -1 +1 @@
1
- "use strict";var e=require("./generic-ed5351ac.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./captions-bf891620.js"),require("./skin-63ae6607.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
1
+ "use strict";var e=require("./generic-88fa6091.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./captions-bf891620.js"),require("./skin-63ae6607.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
@@ -1 +1 @@
1
- "use strict";var e=require("./player_instance-fcf6a8fb.js"),r=require("./features-14a82131.js"),i=require("./resolution-9c4872ec.js"),t=require("./captions-bf891620.js");require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-ed5351ac.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./skin-63ae6607.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(n,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(n,s){e.getPlayer(n).on("loadeddata",function(){var e;(null===(e=i.getRenditions(n))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(n,s),null!=s&&s.disableCaptions&&t.removeCaptions(n)})}(n,s),function(i){var t=e.getPlayer(i);t.controls(!1),r.addDBClickFullScreen(i)}(n)};
1
+ "use strict";var e=require("./player_instance-fcf6a8fb.js"),r=require("./features-9f23aa88.js"),i=require("./resolution-9c4872ec.js"),t=require("./captions-bf891620.js");require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-88fa6091.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./skin-63ae6607.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(n,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(n,s){e.getPlayer(n).on("loadeddata",function(){var e;(null===(e=i.getRenditions(n))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(n,s),null!=s&&s.disableCaptions&&t.removeCaptions(n)})}(n,s),function(i){var t=e.getPlayer(i);t.controls(!1),r.addDBClickFullScreen(i)}(n)};
@@ -1 +1 @@
1
- "use strict";var e=require("./generic-ed5351ac.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./captions-bf891620.js"),require("./skin-63ae6607.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){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 n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",function(){t.paused()?e.play(i):e.pause(i)})}(n)};
1
+ "use strict";var e=require("./generic-88fa6091.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./captions-bf891620.js"),require("./skin-63ae6607.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){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 n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",function(){t.paused()?e.play(i):e.pause(i)})}(n)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-14a82131.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-63ae6607.js"),r=require("./resolution-9c4872ec.js"),o=require("./captions-bf891620.js"),t=require("./index-7acf44c0.js"),d=require("./generic-ed5351ac.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./autoNextVideo-825738e3.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),exports.initialiseSkin=function(u,a){i.getPlayer(u).addClass("skin_defaultv2"),function(){"Chrome"==d.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-38de8257.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),function(l,n){var u=i.getPlayer(l);u&&(u.on("loadeddata",function(){var i,u,a,s,v,c,p;(null===(i=r.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,n),(null===(u=o.getCaptions(l))||void 0===u?void 0:u.length)>0&&e.addCaptionButton(l,n),!(null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable||null!==(s=window)&&void 0!==s&&null!==(v=s.app_data)&&void 0!==v&&null!==(c=v.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play)||null!=n&&n.liveVideo||t.addNextEpPreview(l,n),null!=n&&n.liveVideo||d.isMobile()||t.initiateTrickplay(l)}),u.one("play",function(){var i,n,r,o;null!==(i=window)&&void 0!==i&&null!==(n=i.customData)&&void 0!==n&&n.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(r=window)||void 0===r||null===(o=r.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}(u,a),function(e,r){var o,t,d,u,a,s,v,c,p,m,h,g,b,q=i.getPlayer(e);null===(o=q.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(t=q.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var C=null===(d=q.controlBar)||void 0===d?void 0:d.getChild("ProgressControl"),f=null===(u=q.controlBar)||void 0===u?void 0:u.getChild("CurrentTimeDisplay"),y=null===(a=q.controlBar)||void 0===a?void 0:a.getChild("SeekToLive"),V=document.createElement("div");V.className="custom-spaced-progress-bar",C&&f&&y&&V.append(C.el(),f.el(),y.el());null===(s=q.controlBar)||void 0===s||null===(v=s.el())||void 0===v||v.append(V),null==q||null===(c=q.controlBar)||void 0===c||null===(p=c.getChild("FullscreenToggle"))||void 0===p||null===(m=p.el())||void 0===m||m.appendChild(n.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==q||null===(h=q.controlBar)||void 0===h||null===(g=h.getChild("FullscreenToggle"))||void 0===g||null===(b=g.el())||void 0===b||b.appendChild(n.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var j=document.getElementsByClassName("vjs-time-control");r.liveVideo&&j[0]&&(j[0].style.display="none")}(u,a),function(i,n){var r,o,t,d,u,a,s=(null==n?void 0:n.skin_settings)||{},v=0!=(null==s?void 0:s.slowMoBtn);0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());!n.liveVideo&&v&&e.addSlowMotion(i);(null==n||null===(r=n.relatedVideos)||void 0===r||null===(o=r.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(t=n.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(d=n.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(u,a),t.addTVProviderImage(u,a)};
1
+ "use strict";var e=require("./features-9f23aa88.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-63ae6607.js"),r=require("./resolution-9c4872ec.js"),o=require("./captions-bf891620.js"),t=require("./index-c7f00c41.js"),d=require("./generic-88fa6091.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./autoNextVideo-bd3f3aed.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),exports.initialiseSkin=function(u,a){i.getPlayer(u).addClass("skin_defaultv2"),function(){"Chrome"==d.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-38de8257.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),function(l,n){var u=i.getPlayer(l);u&&(u.on("loadeddata",function(){var i,u,a,s,v,c,p;(null===(i=r.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,n),(null===(u=o.getCaptions(l))||void 0===u?void 0:u.length)>0&&e.addCaptionButton(l,n),!(null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable||null!==(s=window)&&void 0!==s&&null!==(v=s.app_data)&&void 0!==v&&null!==(c=v.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play)||null!=n&&n.liveVideo||t.addNextEpPreview(l,n),null!=n&&n.liveVideo||d.isMobile()||t.initiateTrickplay(l)}),u.one("play",function(){var i,n,r,o;null!==(i=window)&&void 0!==i&&null!==(n=i.customData)&&void 0!==n&&n.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(r=window)||void 0===r||null===(o=r.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}(u,a),function(e,r){var o,t,d,u,a,s,v,c,p,m,h,g,b,q=i.getPlayer(e);null===(o=q.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(t=q.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var C=null===(d=q.controlBar)||void 0===d?void 0:d.getChild("ProgressControl"),f=null===(u=q.controlBar)||void 0===u?void 0:u.getChild("CurrentTimeDisplay"),y=null===(a=q.controlBar)||void 0===a?void 0:a.getChild("SeekToLive"),V=document.createElement("div");V.className="custom-spaced-progress-bar",C&&f&&y&&V.append(C.el(),f.el(),y.el());null===(s=q.controlBar)||void 0===s||null===(v=s.el())||void 0===v||v.append(V),null==q||null===(c=q.controlBar)||void 0===c||null===(p=c.getChild("FullscreenToggle"))||void 0===p||null===(m=p.el())||void 0===m||m.appendChild(n.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==q||null===(h=q.controlBar)||void 0===h||null===(g=h.getChild("FullscreenToggle"))||void 0===g||null===(b=g.el())||void 0===b||b.appendChild(n.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var j=document.getElementsByClassName("vjs-time-control");r.liveVideo&&j[0]&&(j[0].style.display="none")}(u,a),function(i,n){var r,o,t,d,u,a,s=(null==n?void 0:n.skin_settings)||{},v=0!=(null==s?void 0:s.slowMoBtn);0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());!n.liveVideo&&v&&e.addSlowMotion(i);(null==n||null===(r=n.relatedVideos)||void 0===r||null===(o=r.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(t=n.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(d=n.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(u,a),t.addTVProviderImage(u,a)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-14a82131.js"),r=require("./player_instance-fcf6a8fb.js"),i=require("./index-7acf44c0.js"),l=require("./generic-ed5351ac.js");require("videojs-contrib-quality-menu");var n=require("video.js"),t=require("@babel/runtime/helpers/asyncToGenerator"),a=require("@babel/runtime/regenerator"),o=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./resolution-9c4872ec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-63ae6607.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-825738e3.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-bf891620.js");var u={markerStyle:{width:"5px","background-color":"red"},markerTip:{display:!1,text:function(e){return e.title},time:function(e){return e.time}},onMarkerClick:function(e){},markers:[],duration:0};function d(){return(d=t(a.mark(function e(i,l){var n,t,o,u,d,v;return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=r.getPlayer(i),(t=n.seekable())&&t.length>0&&(o=t.start(0),u=t.end(t.length-1),d=u-o,n.markers({markerStyle:{width:"4px","background-color":"#576478"},markerTip:{display:!1},duration:d||0}),n.markers.initializeMarker(),v=s(l,d),n.markers.add(v));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function s(e,r){var i=(new Date).getTime(),l=new Date(i-1e3*r).getTime();return e.filter(function(e){var r=new Date(e.formatted_startdate).getTime();return r>=l&&r<=i}).map(function(e){var r=new Date(e.formatted_startdate).getTime()-l;return{key:e.programId,title:e.title,time:r/1e3}})}function v(n,t){var a=r.getPlayer(n);a&&(a.on("loadeddata",function(){var e,o,u,s,v,c,p,m,y,k=(null==t||null===(e=t.dvrConfig)||void 0===e?void 0:e.programs)||[];a.qualityLevels()&&a.qualityLevels().length&&function(e){var i=r.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(n),!(null!=t&&null!==(o=t.series)&&void 0!==o&&o.enable||null!==(u=window)&&void 0!==u&&null!==(s=u.app_data)&&void 0!==s&&null!==(v=s.appcmsMain)&&void 0!==v&&null!==(c=v.features)&&void 0!==c&&c.auto_play)||null!=t&&t.liveVideo||i.addNextEpPreview(n,t),null!=t&&t.liveVideo||l.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||i.initiateTrickplay(n);var g=(null==t||null===(p=t.epg)||void 0===p?void 0:p.programSubType)||"";null!=t&&null!==(m=t.dvrConfig)&&void 0!==m&&m.enable&&null!=t&&t.isDvrEnabled&&null!=t&&null!==(y=t.epg)&&void 0!==y&&y.enable&&"LIVE"===(null==g?void 0:g.toUpperCase())&&k&&k.length&&function(e,r){d.apply(this,arguments)}(n,k)}),a.one("play",function(){var r,i,l,t;null!==(r=window)&&void 0!==r&&null!==(i=r.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(n,null===(l=window)||void 0===l||null===(t=l.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}n.registerPlugin("markers",function(e){var r=n.mergeOptions(u,e),i={},l=[],t=this,a=null;function o(){l.sort(function(e,i){return r.markerTip.time(e)-r.markerTip.time(i)})}function d(e){e.forEach(function(e){t.el().querySelector(".vjs-progress-holder").appendChild(function(e){var l=n.dom.createEl("div",{},{"data-marker-key":e.key,"data-marker-time":r.markerTip.time(e)});return v(e,l),l.addEventListener("click",function(l){var n=!1;if("function"==typeof r.onMarkerClick&&(n=!1===r.onMarkerClick(e)),!n){var a=this.getAttribute("data-marker-key");t.currentTime(r.markerTip.time(i[a]))}}),r.markerTip.display&&function(e){e.addEventListener("mouseover",function(){var l=i[e.getAttribute("data-marker-key")];a&&(r.markerTip.html?a.querySelector(".vjs-tip-inner").innerHTML=r.markerTip.html(l):a.querySelector(".vjs-tip-inner").innerText=r.markerTip.text(l),a.style.left=s(l)+"%",a.style.visibility="visible")}),e.addEventListener("mouseout",function(){a&&(a.style.visibility="hidden")})}(l),l}(e)),i[e.key]=e,l.push(e)}),o()}function s(e){return r.markerTip.time(e)/r.duration*100}function v(e,i){i.className="vjs-marker ".concat(e.class||""),Object.keys(r.markerStyle).forEach(function(e){i.style[e]=r.markerStyle[e]});var l=e.time/r.duration;(l<0||l>1)&&(i.style.display="none");var n=s(e);n>=99.5&&(n=99.5),i.style.left=n+"%"}t.markers={getMarkers:function(){return l},initializeMarker:function(){a=n.dom.createEl("div",{className:"vjs-tip",innerHTML:"<div class='vjs-tip-arrow'></div><div class='vjs-tip-inner'></div>"}),t.el().querySelector(".vjs-progress-holder").appendChild(a)},add:function(e){d(e)},update:function(e,i){!function(e,i){e.forEach(function(e){var l=t.el().querySelector(".vjs-marker[data-marker-key='"+e.key+"']"),n=r.markerTip.time(e);l?(i||l.getAttribute("data-marker-time")!==n)&&(v(e,l),l.setAttribute("data-marker-time",n)):d([e])}),o()}(e,i)}}});var c=function(e,i){var l,t,a,o,u,d,s,v,c,p,m,y,k=r.getPlayer(e),g=(null==i?void 0:i.theme)||{},b=n.dom.$(".vjs-play-progress"),f=n.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");f&&(f.style.color="".concat(null===(l=window)||void 0===l||null===(t=l.app_data)||void 0===t||null===(a=t.appcmsMain)||void 0===a||null===(o=a.brand)||void 0===o||null===(u=o.cta)||void 0===u||null===(d=u.primary)||void 0===d?void 0:d.backgroundColor)),b&&(b.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(y=m.primary)||void 0===y?void 0:y.backgroundColor));var h=k.getChild("BigPlayButton")||null;(null==g?void 0:g.progressBarColor)&&b&&(b.style.background=g.progressBarColor),(null==g?void 0:g.playButtonBackgroundColor)&&h&&(h.el().style.background=g.playButtonBackgroundColor),(null==g?void 0:g.playButtonColor)&&f&&(f.style.color=g.playButtonColor),(null==g?void 0:g.playButtonType)&&("square"==(null==g?void 0:g.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(n,t){r.getPlayer(n).addClass("skin_vlone"),v(n,t),function(r,n){var t,a,u,d,s,v,c,p,m,y,k,g,b,f,h,q=(null==n||null===(t=n.res)||void 0===t||null===(a=t.video)||void 0===a?void 0:a.isSSAIEnabled)||!1,T=l.getSource(null==n?void 0:n.res,r)||{};T.src;var w=(null==n?void 0:n.skin_settings)||{};null!=w&&w.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(r,"VL_ONE",o.SkipSvgV2());(null!=w&&w.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(r,"VL_ONE",o.RewindSvgV2());(null==n||null===(u=n.relatedVideos)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.length)>0&&e.addVideoSelector(r,null==n?void 0:n.relatedVideos);null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable&&e.addSeriesSelectorV2(r,n);(null==n||null===(v=n.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector(r,null==n?void 0:n.streams);if(i.addTVProviderImage(r,n),l.initialiseKeyboardEvents(r,n),"MEDIA_TAILOR"==(null===(c=window)||void 0===c||null===(p=c.app_data)||void 0===p||null===(m=p.appcmsMain)||void 0===m||null===(y=m.adsConfig)||void 0===y?void 0:y.vodAdSticherProvider)&&null!==(k=window)&&void 0!==k&&null!==(g=k.app_data)&&void 0!==g&&null!==(b=g.appcmsMain)&&void 0!==b&&null!==(f=b.adsConfig)&&void 0!==f&&f.vodAdClientSideTracking&&q){var C,j=null;if(null!=n&&null!==(C=n.series)&&void 0!==C&&C.enable){var S,B,M,E=null===(S=l.getCurrentVideo())||void 0===S||null===(B=S.video)||void 0===B||null===(M=B.gist)||void 0===M?void 0:M.id,V=l.getSeriesWatchMap(),L=(null==V?void 0:V.get(E))||{t:0,p:0},_=L.t;L.p<95&&(j=_)}else{var P=n.watchHistoryResumeTime;n.watchedPercentage<95&&(j=P)}l.setupAdvertisementMarkers(r,j)}if(null!=n&&null!==(h=n.dvrConfig)&&void 0!==h&&h.enable&&null!=n&&n.isDvrEnabled){var A,x,D=(null==n||null===(A=n.epg)||void 0===A?void 0:A.programSubType)||"";null!=n&&null!==(x=n.epg)&&void 0!==x&&x.enable?"LIVE"===(null==D?void 0:D.toUpperCase())&&(e.addStartFromBeginningButton(r,n),e.addWatchLiveButton(r,n)):(e.addStartFromBeginningButton(r,n),e.addWatchLiveButton(r,n))}}(n,t),c(n,t)};
1
+ "use strict";var e=require("./features-9f23aa88.js"),r=require("./player_instance-fcf6a8fb.js"),i=require("./index-c7f00c41.js"),l=require("./generic-88fa6091.js");require("videojs-contrib-quality-menu");var n=require("video.js"),t=require("@babel/runtime/helpers/asyncToGenerator"),a=require("@babel/runtime/regenerator"),o=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./resolution-9c4872ec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-63ae6607.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-bd3f3aed.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-bf891620.js");var u={markerStyle:{width:"5px","background-color":"red"},markerTip:{display:!1,text:function(e){return e.title},time:function(e){return e.time}},onMarkerClick:function(e){},markers:[],duration:0};function d(){return(d=t(a.mark(function e(i,l){var n,t,o,u,d,v;return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=r.getPlayer(i),(t=n.seekable())&&t.length>0&&(o=t.start(0),u=t.end(t.length-1),d=u-o,n.markers({markerStyle:{width:"4px","background-color":"#576478"},markerTip:{display:!1},duration:d||0}),n.markers.initializeMarker(),v=s(l,d),n.markers.add(v));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function s(e,r){var i=(new Date).getTime(),l=new Date(i-1e3*r).getTime();return e.filter(function(e){var r=new Date(e.formatted_startdate).getTime();return r>=l&&r<=i}).map(function(e){var r=new Date(e.formatted_startdate).getTime()-l;return{key:e.programId,title:e.title,time:r/1e3}})}function v(n,t){var a=r.getPlayer(n);a&&(a.on("loadeddata",function(){var e,o,u,s,v,c,p,m,y,k=(null==t||null===(e=t.dvrConfig)||void 0===e?void 0:e.programs)||[];a.qualityLevels()&&a.qualityLevels().length&&function(e){var i=r.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(n),!(null!=t&&null!==(o=t.series)&&void 0!==o&&o.enable||null!==(u=window)&&void 0!==u&&null!==(s=u.app_data)&&void 0!==s&&null!==(v=s.appcmsMain)&&void 0!==v&&null!==(c=v.features)&&void 0!==c&&c.auto_play)||null!=t&&t.liveVideo||i.addNextEpPreview(n,t),null!=t&&t.liveVideo||l.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||i.initiateTrickplay(n);var g=(null==t||null===(p=t.epg)||void 0===p?void 0:p.programSubType)||"";null!=t&&null!==(m=t.dvrConfig)&&void 0!==m&&m.enable&&null!=t&&t.isDvrEnabled&&null!=t&&null!==(y=t.epg)&&void 0!==y&&y.enable&&"LIVE"===(null==g?void 0:g.toUpperCase())&&k&&k.length&&function(e,r){d.apply(this,arguments)}(n,k)}),a.one("play",function(){var r,i,l,t;null!==(r=window)&&void 0!==r&&null!==(i=r.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(n,null===(l=window)||void 0===l||null===(t=l.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}n.registerPlugin("markers",function(e){var r=n.mergeOptions(u,e),i={},l=[],t=this,a=null;function o(){l.sort(function(e,i){return r.markerTip.time(e)-r.markerTip.time(i)})}function d(e){e.forEach(function(e){t.el().querySelector(".vjs-progress-holder").appendChild(function(e){var l=n.dom.createEl("div",{},{"data-marker-key":e.key,"data-marker-time":r.markerTip.time(e)});return v(e,l),l.addEventListener("click",function(l){var n=!1;if("function"==typeof r.onMarkerClick&&(n=!1===r.onMarkerClick(e)),!n){var a=this.getAttribute("data-marker-key");t.currentTime(r.markerTip.time(i[a]))}}),r.markerTip.display&&function(e){e.addEventListener("mouseover",function(){var l=i[e.getAttribute("data-marker-key")];a&&(r.markerTip.html?a.querySelector(".vjs-tip-inner").innerHTML=r.markerTip.html(l):a.querySelector(".vjs-tip-inner").innerText=r.markerTip.text(l),a.style.left=s(l)+"%",a.style.visibility="visible")}),e.addEventListener("mouseout",function(){a&&(a.style.visibility="hidden")})}(l),l}(e)),i[e.key]=e,l.push(e)}),o()}function s(e){return r.markerTip.time(e)/r.duration*100}function v(e,i){i.className="vjs-marker ".concat(e.class||""),Object.keys(r.markerStyle).forEach(function(e){i.style[e]=r.markerStyle[e]});var l=e.time/r.duration;(l<0||l>1)&&(i.style.display="none");var n=s(e);n>=99.5&&(n=99.5),i.style.left=n+"%"}t.markers={getMarkers:function(){return l},initializeMarker:function(){a=n.dom.createEl("div",{className:"vjs-tip",innerHTML:"<div class='vjs-tip-arrow'></div><div class='vjs-tip-inner'></div>"}),t.el().querySelector(".vjs-progress-holder").appendChild(a)},add:function(e){d(e)},update:function(e,i){!function(e,i){e.forEach(function(e){var l=t.el().querySelector(".vjs-marker[data-marker-key='"+e.key+"']"),n=r.markerTip.time(e);l?(i||l.getAttribute("data-marker-time")!==n)&&(v(e,l),l.setAttribute("data-marker-time",n)):d([e])}),o()}(e,i)}}});var c=function(e,i){var l,t,a,o,u,d,s,v,c,p,m,y,k=r.getPlayer(e),g=(null==i?void 0:i.theme)||{},b=n.dom.$(".vjs-play-progress"),f=n.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");f&&(f.style.color="".concat(null===(l=window)||void 0===l||null===(t=l.app_data)||void 0===t||null===(a=t.appcmsMain)||void 0===a||null===(o=a.brand)||void 0===o||null===(u=o.cta)||void 0===u||null===(d=u.primary)||void 0===d?void 0:d.backgroundColor)),b&&(b.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(y=m.primary)||void 0===y?void 0:y.backgroundColor));var h=k.getChild("BigPlayButton")||null;(null==g?void 0:g.progressBarColor)&&b&&(b.style.background=g.progressBarColor),(null==g?void 0:g.playButtonBackgroundColor)&&h&&(h.el().style.background=g.playButtonBackgroundColor),(null==g?void 0:g.playButtonColor)&&f&&(f.style.color=g.playButtonColor),(null==g?void 0:g.playButtonType)&&("square"==(null==g?void 0:g.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(n,t){r.getPlayer(n).addClass("skin_vlone"),v(n,t),function(r,n){var t,a,u,d,s,v,c,p,m,y,k,g,b,f,h,q=(null==n||null===(t=n.res)||void 0===t||null===(a=t.video)||void 0===a?void 0:a.isSSAIEnabled)||!1,T=l.getSource(null==n?void 0:n.res,r)||{};T.src;var w=(null==n?void 0:n.skin_settings)||{};null!=w&&w.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(r,"VL_ONE",o.SkipSvgV2());(null!=w&&w.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(r,"VL_ONE",o.RewindSvgV2());(null==n||null===(u=n.relatedVideos)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.length)>0&&e.addVideoSelector(r,null==n?void 0:n.relatedVideos);null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable&&e.addSeriesSelectorV2(r,n);(null==n||null===(v=n.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector(r,null==n?void 0:n.streams);if(i.addTVProviderImage(r,n),l.initialiseKeyboardEvents(r,n),"MEDIA_TAILOR"==(null===(c=window)||void 0===c||null===(p=c.app_data)||void 0===p||null===(m=p.appcmsMain)||void 0===m||null===(y=m.adsConfig)||void 0===y?void 0:y.vodAdSticherProvider)&&null!==(k=window)&&void 0!==k&&null!==(g=k.app_data)&&void 0!==g&&null!==(b=g.appcmsMain)&&void 0!==b&&null!==(f=b.adsConfig)&&void 0!==f&&f.vodAdClientSideTracking&&q){var C,j=null;if(null!=n&&null!==(C=n.series)&&void 0!==C&&C.enable){var S,B,M,E=null===(S=l.getCurrentVideo())||void 0===S||null===(B=S.video)||void 0===B||null===(M=B.gist)||void 0===M?void 0:M.id,V=l.getSeriesWatchMap(),L=(null==V?void 0:V.get(E))||{t:0,p:0},_=L.t;L.p<95&&(j=_)}else{var P=n.watchHistoryResumeTime;n.watchedPercentage<95&&(j=P)}l.setupAdvertisementMarkers(r,j)}if(null!=n&&null!==(h=n.dvrConfig)&&void 0!==h&&h.enable&&null!=n&&n.isDvrEnabled){var A,x,D=(null==n||null===(A=n.epg)||void 0===A?void 0:A.programSubType)||"";null!=n&&null!==(x=n.epg)&&void 0!==x&&x.enable?"LIVE"===(null==D?void 0:D.toUpperCase())&&(e.addStartFromBeginningButton(r,n),e.addWatchLiveButton(r,n)):(e.addStartFromBeginningButton(r,n),e.addWatchLiveButton(r,n))}}(n,t),c(n,t)};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-2609dbe4.js"),r=require("./generic-ed5351ac.js"),d=require("./skin-63ae6607.js"),s=require("./autoNextVideo-825738e3.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.js")}).then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";d.highlightVideo(e),r.load(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var r=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(c=r.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),d.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-2609dbe4.js"),r=require("./generic-88fa6091.js"),d=require("./skin-63ae6607.js"),s=require("./autoNextVideo-bd3f3aed.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.js")}).then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";d.highlightVideo(e),r.load(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var r=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(c=r.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),d.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-2609dbe4.js"),l=require("./generic-ed5351ac.js"),d=require("./skin-63ae6607.js"),s=require("./autoNextVideo-825738e3.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof");var v=r.getComponent("Component"),m=function(){n(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(t){var n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(n=r.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==r||null===(i=r.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.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(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var i;null!==(i=n.classList)&&void 0!==i&&i.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var i=document.getElementById(this.playerId);if(i){var o=window.getComputedStyle(i,null).getPropertyValue("height");n.style.height="".concat(o),r.dom.appendContent(t,n),i.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var s=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,i,o,a,s,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";d.highlightVideo_DEFAULTV2_TEMP(e),l.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===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(s=t.videos[e])||void 0===s?void 0:s.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(i,o),r.dom.appendContent(i,s),r.dom.appendContent(e,i),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-2609dbe4.js"),l=require("./generic-88fa6091.js"),d=require("./skin-63ae6607.js"),s=require("./autoNextVideo-bd3f3aed.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof");var v=r.getComponent("Component"),m=function(){n(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(t){var n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(n=r.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==r||null===(i=r.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.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(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var i;null!==(i=n.classList)&&void 0!==i&&i.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var i=document.getElementById(this.playerId);if(i){var o=window.getComputedStyle(i,null).getPropertyValue("height");n.style.height="".concat(o),r.dom.appendContent(t,n),i.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var s=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,i,o,a,s,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";d.highlightVideo_DEFAULTV2_TEMP(e),l.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===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(s=t.videos[e])||void 0===s?void 0:s.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(i,o),r.dom.appendContent(i,s),r.dom.appendContent(e,i),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
@@ -1 +1 @@
1
- import{I as n,j as t,W as i,V as o,X as a}from"./generic-d3218d2d.js";import{a as e}from"./util-28923483.js";import{h as c}from"./skin-0f689204.js";import{g as s}from"./player_instance-34118a5b.js";var r,u=0,f=0,l=function(l){clearTimeout(u);var h=null==l?void 0:l.content;r=null==l?void 0:l.cb;var v=l.playerId;e(v,function(){var e=s(v);0!==(null==e?void 0:e.currentTime())&&((f=o())>h.length-1||(a(f+1),n(v,h[f].id).then(function(n){c(f,v),t(n.response),f++,p(n)}).catch(function(n){p(n),c(f,v),f++,u=setTimeout(function(){i(v)&&m(f,v,h)},5e3)})))})},m=function t(i,o,e,s){f=i,i>e.length-1||(a(f+1),n(o,e[i].id).then(function(n){c(f,o),f++,p(n)}).catch(function(n){p(n),setTimeout(function(){c(f,o),f++,t(f,o,e)},5e3)}))},p=function(n){r&&r(n)};export{l as a,m as s};
1
+ import{I as n,j as t,W as i,V as o,X as a}from"./generic-0db99da5.js";import{a as e}from"./util-28923483.js";import{h as c}from"./skin-0f689204.js";import{g as s}from"./player_instance-34118a5b.js";var r,u=0,f=0,l=function(l){clearTimeout(u);var h=null==l?void 0:l.content;r=null==l?void 0:l.cb;var v=l.playerId;e(v,function(){var e=s(v);0!==(null==e?void 0:e.currentTime())&&((f=o())>h.length-1||(a(f+1),n(v,h[f].id).then(function(n){c(f,v),t(n.response),f++,p(n)}).catch(function(n){p(n),c(f,v),f++,u=setTimeout(function(){i(v)&&m(f,v,h)},5e3)})))})},m=function t(i,o,e,s){f=i,i>e.length-1||(a(f+1),n(o,e[i].id).then(function(n){c(f,o),f++,p(n)}).catch(function(n){p(n),setTimeout(function(){c(f,o),f++,t(f,o,e)},5e3)}))},p=function(n){r&&r(n)};export{l as a,m as s};
package/esm/bundle.css CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
 
6
6
 
7
-
8
7
  .video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control {
9
8
  height: 0.7em;
10
9
  position: absolute;
@@ -218,6 +217,7 @@
218
217
  font-weight: bold
219
218
  }
220
219
 
220
+
221
221
  /* CSS for videojs-dvr-seekbar */
222
222
 
223
223
  .video-js.vjs-dvr-seekbar {
@@ -392,8 +392,6 @@
392
392
 
393
393
 
394
394
 
395
-
396
-
397
395
  .video-js .multicamera-parent.default{
398
396
  height: 345px;
399
397
  position: absolute;
@@ -474,6 +472,8 @@
474
472
 
475
473
 
476
474
 
475
+
476
+
477
477
  /* nextep */
478
478
  .next-ep-preview{
479
479
  position: absolute;
@@ -942,7 +942,10 @@
942
942
  }
943
943
  }
944
944
 
945
-
945
+ .hide-progress-bar{
946
+ display: none !important;
947
+ visibility: hidden !important;
948
+ }
946
949
  /* Resolution Module */
947
950
 
948
951
  .video-js .container {
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{G as a,D as s}from"./generic-d3218d2d.js";import{g as c}from"./resolution-62be852a.js";import{p as d}from"./skin-0f689204.js";import{g as u}from"./localisation-0bf399a1.js";import{g as p}from"./player_instance-34118a5b.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=u("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=d(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=d(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-v2-6446fe47.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=p(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-afbebe47.js").then(function(r){var o=r.default,l=p(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-8bc4a1f5.js").then(function(r){var o=r.seriesModule,l=p(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-5ed9f860.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-85f54d85.js").then(function(n){var r,o,l,a,s=n.default,c=p(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},w=function(e,t){import("./settings-icon-336390f5.js").then(function(n){var r,o,l,a,s=n.default,c=p(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},I=function(e,t){import("./playlist-401520ba.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},E=function(e,t){import("./series-v2-1a997cce.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},O=function(e,t){import("./multicamv2-f7e2a5e8.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=p(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=p(e).el(),n=0,r=p(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},L=function(e,t){import("./videoSelector-0f557027.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},_=function(e,t){import("./series-v2-895f8693.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},x=function(e,t){import("./multicamv2-b94f873f.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},D=function(e,t){import("./start-begin-btn-0afa2def.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("startFromBeginingButton",r);var l=o.getChild("controlBar").addChild("startFromBeginingButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_}));o.startFromBeginningButton=l})},N=function(e,t){import("./watch-live-btn-85cd433b.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("watchLiveButton",r);var l=o.getChild("controlBar").addChild("watchLiveButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_})+1);o.watchLiveButton=l})};export{B as a,j as b,b as c,y as d,C as e,w as f,S as g,M as h,g as i,L as j,x as k,I as l,_ as m,P as n,k as o,E as p,O as q,D as r,N as s};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{G as a,D as s}from"./generic-0db99da5.js";import{g as c}from"./resolution-62be852a.js";import{p as d}from"./skin-0f689204.js";import{g as u}from"./localisation-0bf399a1.js";import{g as p}from"./player_instance-34118a5b.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=u("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=d(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=d(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-v2-6446fe47.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=p(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-7558817a.js").then(function(r){var o=r.default,l=p(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-61133d3b.js").then(function(r){var o=r.seriesModule,l=p(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-c6c9b3b4.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-85f54d85.js").then(function(n){var r,o,l,a,s=n.default,c=p(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},w=function(e,t){import("./settings-icon-336390f5.js").then(function(n){var r,o,l,a,s=n.default,c=p(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},I=function(e,t){import("./playlist-c3b4da10.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},E=function(e,t){import("./series-v2-3957825b.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},O=function(e,t){import("./multicamv2-2a323a27.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=p(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=p(e).el(),n=0,r=p(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},L=function(e,t){import("./videoSelector-2d272c79.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},_=function(e,t){import("./series-v2-c026cbd8.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},x=function(e,t){import("./multicamv2-9d555fe8.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},D=function(e,t){import("./start-begin-btn-0afa2def.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("startFromBeginingButton",r);var l=o.getChild("controlBar").addChild("startFromBeginingButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_}));o.startFromBeginningButton=l})},N=function(e,t){import("./watch-live-btn-85cd433b.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("watchLiveButton",r);var l=o.getChild("controlBar").addChild("watchLiveButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_})+1);o.watchLiveButton=l})};export{B as a,j as b,b as c,y as d,C as e,w as f,S as g,M as h,g as i,L as j,x as k,I as l,_ as m,P as n,k as o,E as p,O as q,D as r,N as s};