@viewlift/player-backup 2.0.378-backup → 2.0.379-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.
- package/cjs/{autoNextVideo-68672b76.js → autoNextVideo-38f45ca1.js} +1 -1
- package/cjs/bundle.css +859 -842
- package/cjs/{features-38873abb.js → features-8beda29d.js} +1 -1
- package/cjs/generic-0b925a19.js +1 -0
- package/cjs/index-22c077d0.js +1 -0
- package/cjs/{index-3a351e42.js → index-517acf72.js} +1 -1
- package/cjs/{index-9e05e266.js → index-93ac04ff.js} +1 -1
- package/cjs/{index-5562e80d.js → index-f64ef24d.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/localisation-da6f64c6.js +1 -0
- package/cjs/{multicamv2-c33fd165.js → multicamv2-2123cc15.js} +1 -1
- package/cjs/{multicamv2-39cc5698.js → multicamv2-41a918f4.js} +1 -1
- package/cjs/{nextEpisodeButton-4cd04954.js → nextEpisodeButton-c68c6da4.js} +1 -1
- package/cjs/{playlist-5b387ba5.js → playlist-8d5202b4.js} +1 -1
- package/cjs/{series-554e1f6f.js → series-b3b39dd7.js} +1 -1
- package/cjs/{series-v2-759d1b9f.js → series-v2-3baa5caa.js} +1 -1
- package/cjs/{series-v2-f513d96e.js → series-v2-f31465e3.js} +1 -1
- package/cjs/settings-icon-7a519942.js +1 -0
- package/cjs/{skin-ea9d4fd0.js → skin-6b4fd720.js} +1 -1
- package/cjs/{skin-9ef12f43.js → skin-8d797b1e.js} +1 -1
- package/cjs/{skin-cfe26f4b.js → skin-90c06edf.js} +1 -1
- package/cjs/{skin-0b2c868e.js → skin-a3530077.js} +1 -1
- package/cjs/skin-aef6f952.js +1 -0
- package/cjs/{skin-49921eed.js → skin-d6a48901.js} +1 -1
- package/cjs/{skin-9734a061.js → skin-e03a88b8.js} +1 -1
- package/cjs/{skin-c1111e65.js → skin-ed4decab.js} +1 -1
- package/cjs/{skin-80ad30a9.js → skin-f0bbb76d.js} +1 -1
- package/cjs/{skin-528d0747.js → skin-f8994d41.js} +1 -1
- package/cjs/{videoSelector-05f988b1.js → videoSelector-1399cc18.js} +1 -1
- package/cjs/{videoSelector-1df54701.js → videoSelector-2bc8977c.js} +1 -1
- package/esm/{autoNextVideo-a694d718.js → autoNextVideo-7dc4b5f9.js} +1 -1
- package/esm/bundle.css +859 -842
- package/esm/{features-a7e5e171.js → features-048cb801.js} +1 -1
- package/esm/generic-759b1422.js +1 -0
- package/esm/{index-7067e5db.js → index-07f963db.js} +1 -1
- package/esm/{index-f61ce130.js → index-1577b990.js} +1 -1
- package/esm/index-1a5d906c.js +1 -0
- package/esm/{index-cbaac7c7.js → index-3bae4958.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/localisation-2f1ee38c.js +1 -0
- package/esm/{multicamv2-ccbd1435.js → multicamv2-220833f5.js} +1 -1
- package/esm/{multicamv2-97a3b0f4.js → multicamv2-bd4bf0f5.js} +1 -1
- package/esm/{nextEpisodeButton-cf9328cc.js → nextEpisodeButton-ca0a2b98.js} +1 -1
- package/esm/{playlist-3d669989.js → playlist-2d49901b.js} +1 -1
- package/esm/{series-704b41dd.js → series-637f67ff.js} +1 -1
- package/esm/{series-v2-e1ae0c27.js → series-v2-7caace2c.js} +1 -1
- package/esm/{series-v2-843283cb.js → series-v2-899b6955.js} +1 -1
- package/esm/settings-icon-abd55c1e.js +1 -0
- package/esm/{skin-15bea000.js → skin-0e9bc166.js} +1 -1
- package/esm/{skin-4390b877.js → skin-28192217.js} +1 -1
- package/esm/{skin-034c0111.js → skin-2cb9e01a.js} +1 -1
- package/esm/{skin-29dfa892.js → skin-2d7f1782.js} +1 -1
- package/esm/{skin-cd51486c.js → skin-318448f4.js} +1 -1
- package/esm/skin-44cb0a24.js +1 -0
- package/esm/{skin-16d24d3a.js → skin-77259d09.js} +1 -1
- package/esm/{skin-d5474de8.js → skin-7d2af43a.js} +1 -1
- package/esm/{skin-16cb5cfb.js → skin-9d2dad58.js} +1 -1
- package/esm/{skin-800b5977.js → skin-bcb995db.js} +1 -1
- package/esm/src/helpers/localisation.d.ts +1 -0
- package/esm/{videoSelector-c185464d.js → videoSelector-01d26572.js} +1 -1
- package/esm/{videoSelector-91f8908b.js → videoSelector-21c88bd3.js} +1 -1
- package/package.json +1 -1
- package/cjs/generic-ca2a22d8.js +0 -1
- package/cjs/index-c52abe27.js +0 -1
- package/cjs/localisation-56e0a999.js +0 -1
- package/cjs/settings-icon-8d593433.js +0 -1
- package/cjs/skin-b4c02ae6.js +0 -1
- package/esm/generic-65cb8119.js +0 -1
- package/esm/index-18292507.js +0 -1
- package/esm/localisation-0bf399a1.js +0 -1
- package/esm/settings-icon-c31267aa.js +0 -1
- package/esm/skin-12fdaa37.js +0 -1
- package/esm/src/core/captions.test.d.ts +0 -1
- package/esm/src/features/dvrStartOver/helpers.test.d.ts +0 -1
- package/esm/src/features/dvrStartOver/index.test.d.ts +0 -1
- package/esm/src/helpers/playerControlEvents.test.d.ts +0 -1
- package/esm/src/utilities/beacon.test.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./skin-55634dc6.js"),l=require("./features-38873abb.js"),i=require("./localisation-56e0a999.js");require("@babel/runtime/helpers/toConsumableArray"),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-ca2a22d8.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./manager-77ddd30c.js"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-8b889384.js"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/typeof"),require("./playerControlEvents-db923a5c.js"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("./renditions-05a85e06.js");var n='<svg xmlns="http://www.w3.org/2000/svg" style="display:none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="white"/>\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 <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z" fill="white"/>\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 <symbol id="vjs-icon-volume" viewBox="0 0 24 24">\n <path d="M3 9.00047V15.0005H7L12 20.0005V4.00047L7 9.00047H3ZM16.5 12.0005C16.5 10.2305 15.48 8.71047 14 7.97047V16.0205C15.48 15.2905 16.5 13.7705 16.5 12.0005ZM14 3.23047V5.29047C16.89 6.15047 19 8.83047 19 12.0005C19 15.1705 16.89 17.8505 14 18.7105V20.7705C18.01 19.8605 21 16.2805 21 12.0005C21 7.72047 18.01 4.14047 14 3.23047Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-mute" 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="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 </symbol>\n <symbol id="vjs-icon-pip" viewBox="0 0 24 24">\n <path d="M19 7H11V13H19V7ZM21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 20.98 3 20.98H21C22.1 20.98 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM21 19.01H3V4.98H21V19.01Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-captions" viewBox="0 0 18 16">\n <path d="M16.5 1.5V14.5H1.5V1.5H16.5ZM16 0H2C0.89 0 0 0.9 0 2V14C0 15.1 0.89 16 2 16H16C17.1 16 18 15.1 18 14V2C18 0.9 17.1 0 16 0ZM8 7H6.5V6.5H4.5V9.5H6.5V9H8V10C8 10.55 7.55 11 7 11H4C3.45 11 3 10.55 3 10V6C3 5.45 3.45 5 4 5H7C7.55 5 8 5.45 8 6V7ZM15 7H13.5V6.5H11.5V9.5H13.5V9H15V10C15 10.55 14.55 11 14 11H11C10.45 11 10 10.55 10 10V6C10 5.45 10.45 5 11 5H14C14.55 5 15 5.45 15 6V7Z" fill="white"/>\n </symbol>\n </defs>\n</svg>',r='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.99 5V1L6.98999 6L11.99 11V7C15.3 7 17.99 9.69 17.99 13C17.99 16.31 15.3 19 11.99 19C8.67999 19 5.98999 16.31 5.98999 13H3.98999C3.98999 17.42 7.56999 21 11.99 21C16.41 21 19.99 17.42 19.99 13C19.99 8.58 16.41 5 11.99 5Z" fill="white"/>\n<path d="M10.89 16H10.04V12.74L9.03003 13.05V12.36L10.8 11.73H10.89V16Z" fill="white"/>\n<path d="M15.17 14.24C15.17 14.56 15.14 14.84 15.07 15.06C15 15.28 14.9 15.48 14.78 15.63C14.66 15.78 14.5 15.89 14.33 15.96C14.16 16.03 13.96 16.06 13.74 16.06C13.52 16.06 13.33 16.03 13.15 15.96C12.97 15.89 12.82 15.78 12.69 15.63C12.56 15.48 12.46 15.29 12.39 15.06C12.32 14.83 12.28 14.56 12.28 14.24V13.5C12.28 13.18 12.31 12.9 12.38 12.68C12.45 12.46 12.55 12.26 12.67 12.11C12.79 11.96 12.95 11.85 13.12 11.78C13.29 11.71 13.49 11.68 13.71 11.68C13.93 11.68 14.12 11.71 14.3 11.78C14.48 11.85 14.63 11.96 14.76 12.11C14.89 12.26 14.99 12.45 15.06 12.68C15.13 12.91 15.17 13.18 15.17 13.5V14.24ZM14.32 13.38C14.32 13.19 14.31 13.03 14.28 12.9C14.25 12.77 14.21 12.67 14.16 12.59C14.11 12.51 14.05 12.45 13.97 12.42C13.89 12.39 13.81 12.37 13.72 12.37C13.63 12.37 13.54 12.39 13.47 12.42C13.4 12.45 13.33 12.51 13.28 12.59C13.23 12.67 13.19 12.77 13.16 12.9C13.13 13.03 13.12 13.19 13.12 13.38V14.35C13.12 14.54 13.13 14.7 13.16 14.83C13.19 14.96 13.23 15.07 13.28 15.15C13.33 15.23 13.39 15.29 13.47 15.32C13.55 15.35 13.63 15.37 13.72 15.37C13.81 15.37 13.9 15.35 13.97 15.32C14.04 15.29 14.11 15.23 14.16 15.15C14.21 15.07 14.25 14.96 14.27 14.83C14.29 14.7 14.31 14.54 14.31 14.35V13.38H14.32Z" fill="white"/>\n</svg>';exports.initialiseSkin=function(o,t){var u=e.getPlayer(o);u.addClass("skin_cn_news"),u.toggleClass("vjs-cn-news-vod",!(null!=t&&t.liveVideo)),function(l,r){var o,t,u,s,a=e.getPlayer(l);if(!a)return;if(a.el().insertBefore(e.parseSvgString(n),null!==(o=a.el().firstChild)&&void 0!==o?o:null),null===(t=a.controlBar)||void 0===t||t.removeChild("VolumePanel"),null===(u=a.controlBar)||void 0===u||u.addChild("VolumePanel",{inline:!0},1),!(null!==(s=a.controlBar)&&void 0!==s&&s.getChild("PictureInPictureToggle"))){var v,c,d=null===(v=a.controlBar)||void 0===v?void 0:v.getChild("FullscreenToggle"),C=d?a.controlBar.children().indexOf(d):void 0;null===(c=a.controlBar)||void 0===c||c.addChild("PictureInPictureToggle",{},C)}(function(l){var i,n,r,o=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("PlayToggle"))||void 0===n||null===(r=n.el())||void 0===r?void 0:r.firstChild)||null;if(!o)return;var t=e.injectSVG(o,l.paused()?"#vjs-icon-play":"#vjs-icon-pause");l.on("play",(function(){return t.setAttributeNS(null,"href","#vjs-icon-pause")})),l.on("pause",(function(){return t.setAttributeNS(null,"href","#vjs-icon-play")}))})(a),function(l){var i,n,r=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("VolumePanel"))||void 0===n?void 0:n.el())||null,o=null==r?void 0:r.querySelector(".vjs-mute-control .vjs-icon-placeholder");if(!o)return;var t=e.injectSVG(o,l.muted()?"#vjs-icon-mute":"#vjs-icon-volume");l.on("volumechange",(function(){var e=l.muted()||0===l.volume();t.setAttributeNS(null,"href",e?"#vjs-icon-mute":"#vjs-icon-volume")}))}(a),function(l){var i,n,r,o=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("PictureInPictureToggle"))||void 0===n||null===(r=n.el())||void 0===r?void 0:r.querySelector(".vjs-icon-placeholder"))||null;if(!o)return;e.injectSVG(o,"#vjs-icon-pip")}(a),function(l){var i,n,r=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("SubsCapsButton"))||void 0===n?void 0:n.el())||null,o=null==r?void 0:r.querySelector(".vjs-icon-placeholder");if(!o)return;e.injectSVG(o,"#vjs-icon-captions");var t=function(){for(var e=l.textTracks(),i=!1,n=0;n<e.length;n++){var o=e[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){i=!0;break}}r.classList.toggle("vjs-cc-on",i)};t(),l.textTracks().on("change",t)}(a),function(l){var i,n,r,o=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("FullscreenToggle"))||void 0===n||null===(r=n.el())||void 0===r?void 0:r.firstChild)||null;if(!o)return;var t=e.injectSVG(o,"#vjs-icon-fullscreen");l.on("fullscreenchange",(function(){null==t||t.setAttributeNS(null,"href",l.isFullscreen()?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}(a),function(e,l){var n,r=null==e||null===(n=e.controlBar)||void 0===n?void 0:n.getChild("SeekToLive");if(r){var o,t,u=r.el().querySelector(".vjs-seek-to-live-text"),s=i.getLocalisation("liveText")||"LIVE",a=i.getLocalisation("goLiveText")||"GO LIVE",v=function(){var l,i;u&&(u.textContent=null!==(l=e.liveTracker)&&void 0!==l&&null!==(i=l.atLiveEdge)&&void 0!==i&&i.call(l)?s:a)};v(),e.on("timeupdate",v),null===(o=e.liveTracker)||void 0===o||null===(t=o.on)||void 0===t||t.call(o,"liveedgechange",v),r.on("click",(function(){if(e.paused())try{e.play()}catch(e){}}))}if(null!=l&&l.liveVideo&&null!=l&&l.liveui&&e.liveTracker){var c=function(){return function(e){var l,i,n,r,o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(!o)return;var t=o.querySelector(".vjs-remaining-time-display");null!==(n=e.liveTracker)&&void 0!==n&&null!==(r=n.atLiveEdge)&&void 0!==r&&r.call(n)?o.style.display="none":(o.style.display="flex",t&&(t.innerText=(u=function(e){var l=e.seekable();return l&&l.length>0?Math.max(0,l.end(0)-e.currentTime()):0}(e),s=Math.floor(u/3600),a=Math.floor(u%3600/60),v=Math.floor(u%60),c=function(e){return String(e).padStart(2,"0")},0===s?"".concat(c(a),":").concat(c(v)):"".concat(c(s),":").concat(c(a),":").concat(c(v)))));var u,s,a,v,c}(e)};e.liveTracker.on("liveedgechange",c),e.on("timeupdate",c)}}(a,r)}(o,t),function(e,i){var n,o,t,u,s=(null==i||null===(n=i.res)||void 0===n?void 0:n.contentType)||"video",a=(null==i||null===(o=i.res)||void 0===o||null===(t=o[s])||void 0===t||null===(u=t.liveDetails)||void 0===u?void 0:u.isDvrEnabled)||!1;(null!=i&&i.liveui||a)&&l.addRewindButton(e,"CN_NEWS",r)}(o,t)};
|
|
1
|
+
"use strict";var e=require("./skin-55634dc6.js"),l=require("./features-8beda29d.js"),i=require("./localisation-da6f64c6.js");require("@babel/runtime/helpers/toConsumableArray"),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-0b925a19.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./manager-77ddd30c.js"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-8b889384.js"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/typeof"),require("./playerControlEvents-db923a5c.js"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("./renditions-05a85e06.js");var n='<svg xmlns="http://www.w3.org/2000/svg" style="display:none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="white"/>\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 <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z" fill="white"/>\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 <symbol id="vjs-icon-volume" viewBox="0 0 24 24">\n <path d="M3 9.00047V15.0005H7L12 20.0005V4.00047L7 9.00047H3ZM16.5 12.0005C16.5 10.2305 15.48 8.71047 14 7.97047V16.0205C15.48 15.2905 16.5 13.7705 16.5 12.0005ZM14 3.23047V5.29047C16.89 6.15047 19 8.83047 19 12.0005C19 15.1705 16.89 17.8505 14 18.7105V20.7705C18.01 19.8605 21 16.2805 21 12.0005C21 7.72047 18.01 4.14047 14 3.23047Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-mute" 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="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 </symbol>\n <symbol id="vjs-icon-pip" viewBox="0 0 24 24">\n <path d="M19 7H11V13H19V7ZM21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 20.98 3 20.98H21C22.1 20.98 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM21 19.01H3V4.98H21V19.01Z" fill="white"/>\n </symbol>\n <symbol id="vjs-icon-captions" viewBox="0 0 18 16">\n <path d="M16.5 1.5V14.5H1.5V1.5H16.5ZM16 0H2C0.89 0 0 0.9 0 2V14C0 15.1 0.89 16 2 16H16C17.1 16 18 15.1 18 14V2C18 0.9 17.1 0 16 0ZM8 7H6.5V6.5H4.5V9.5H6.5V9H8V10C8 10.55 7.55 11 7 11H4C3.45 11 3 10.55 3 10V6C3 5.45 3.45 5 4 5H7C7.55 5 8 5.45 8 6V7ZM15 7H13.5V6.5H11.5V9.5H13.5V9H15V10C15 10.55 14.55 11 14 11H11C10.45 11 10 10.55 10 10V6C10 5.45 10.45 5 11 5H14C14.55 5 15 5.45 15 6V7Z" fill="white"/>\n </symbol>\n </defs>\n</svg>',r='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.99 5V1L6.98999 6L11.99 11V7C15.3 7 17.99 9.69 17.99 13C17.99 16.31 15.3 19 11.99 19C8.67999 19 5.98999 16.31 5.98999 13H3.98999C3.98999 17.42 7.56999 21 11.99 21C16.41 21 19.99 17.42 19.99 13C19.99 8.58 16.41 5 11.99 5Z" fill="white"/>\n<path d="M10.89 16H10.04V12.74L9.03003 13.05V12.36L10.8 11.73H10.89V16Z" fill="white"/>\n<path d="M15.17 14.24C15.17 14.56 15.14 14.84 15.07 15.06C15 15.28 14.9 15.48 14.78 15.63C14.66 15.78 14.5 15.89 14.33 15.96C14.16 16.03 13.96 16.06 13.74 16.06C13.52 16.06 13.33 16.03 13.15 15.96C12.97 15.89 12.82 15.78 12.69 15.63C12.56 15.48 12.46 15.29 12.39 15.06C12.32 14.83 12.28 14.56 12.28 14.24V13.5C12.28 13.18 12.31 12.9 12.38 12.68C12.45 12.46 12.55 12.26 12.67 12.11C12.79 11.96 12.95 11.85 13.12 11.78C13.29 11.71 13.49 11.68 13.71 11.68C13.93 11.68 14.12 11.71 14.3 11.78C14.48 11.85 14.63 11.96 14.76 12.11C14.89 12.26 14.99 12.45 15.06 12.68C15.13 12.91 15.17 13.18 15.17 13.5V14.24ZM14.32 13.38C14.32 13.19 14.31 13.03 14.28 12.9C14.25 12.77 14.21 12.67 14.16 12.59C14.11 12.51 14.05 12.45 13.97 12.42C13.89 12.39 13.81 12.37 13.72 12.37C13.63 12.37 13.54 12.39 13.47 12.42C13.4 12.45 13.33 12.51 13.28 12.59C13.23 12.67 13.19 12.77 13.16 12.9C13.13 13.03 13.12 13.19 13.12 13.38V14.35C13.12 14.54 13.13 14.7 13.16 14.83C13.19 14.96 13.23 15.07 13.28 15.15C13.33 15.23 13.39 15.29 13.47 15.32C13.55 15.35 13.63 15.37 13.72 15.37C13.81 15.37 13.9 15.35 13.97 15.32C14.04 15.29 14.11 15.23 14.16 15.15C14.21 15.07 14.25 14.96 14.27 14.83C14.29 14.7 14.31 14.54 14.31 14.35V13.38H14.32Z" fill="white"/>\n</svg>';exports.initialiseSkin=function(o,t){var u=e.getPlayer(o);u.addClass("skin_cn_news"),u.toggleClass("vjs-cn-news-vod",!(null!=t&&t.liveVideo)),function(l,r){var o,t,u,s,a=e.getPlayer(l);if(!a)return;if(a.el().insertBefore(e.parseSvgString(n),null!==(o=a.el().firstChild)&&void 0!==o?o:null),null===(t=a.controlBar)||void 0===t||t.removeChild("VolumePanel"),null===(u=a.controlBar)||void 0===u||u.addChild("VolumePanel",{inline:!0},1),!(null!==(s=a.controlBar)&&void 0!==s&&s.getChild("PictureInPictureToggle"))){var v,c,d=null===(v=a.controlBar)||void 0===v?void 0:v.getChild("FullscreenToggle"),C=d?a.controlBar.children().indexOf(d):void 0;null===(c=a.controlBar)||void 0===c||c.addChild("PictureInPictureToggle",{},C)}(function(l){var i,n,r,o=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("PlayToggle"))||void 0===n||null===(r=n.el())||void 0===r?void 0:r.firstChild)||null;if(!o)return;var t=e.injectSVG(o,l.paused()?"#vjs-icon-play":"#vjs-icon-pause");l.on("play",(function(){return t.setAttributeNS(null,"href","#vjs-icon-pause")})),l.on("pause",(function(){return t.setAttributeNS(null,"href","#vjs-icon-play")}))})(a),function(l){var i,n,r=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("VolumePanel"))||void 0===n?void 0:n.el())||null,o=null==r?void 0:r.querySelector(".vjs-mute-control .vjs-icon-placeholder");if(!o)return;var t=e.injectSVG(o,l.muted()?"#vjs-icon-mute":"#vjs-icon-volume");l.on("volumechange",(function(){var e=l.muted()||0===l.volume();t.setAttributeNS(null,"href",e?"#vjs-icon-mute":"#vjs-icon-volume")}))}(a),function(l){var i,n,r,o=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("PictureInPictureToggle"))||void 0===n||null===(r=n.el())||void 0===r?void 0:r.querySelector(".vjs-icon-placeholder"))||null;if(!o)return;e.injectSVG(o,"#vjs-icon-pip")}(a),function(l){var i,n,r=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("SubsCapsButton"))||void 0===n?void 0:n.el())||null,o=null==r?void 0:r.querySelector(".vjs-icon-placeholder");if(!o)return;e.injectSVG(o,"#vjs-icon-captions");var t=function(){for(var e=l.textTracks(),i=!1,n=0;n<e.length;n++){var o=e[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){i=!0;break}}r.classList.toggle("vjs-cc-on",i)};t(),l.textTracks().on("change",t)}(a),function(l){var i,n,r,o=(null==l||null===(i=l.controlBar)||void 0===i||null===(n=i.getChild("FullscreenToggle"))||void 0===n||null===(r=n.el())||void 0===r?void 0:r.firstChild)||null;if(!o)return;var t=e.injectSVG(o,"#vjs-icon-fullscreen");l.on("fullscreenchange",(function(){null==t||t.setAttributeNS(null,"href",l.isFullscreen()?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}(a),function(e,l){var n,r=null==e||null===(n=e.controlBar)||void 0===n?void 0:n.getChild("SeekToLive");if(r){var o,t,u=r.el().querySelector(".vjs-seek-to-live-text"),s=i.getLocalisation("liveText")||"LIVE",a=i.getLocalisation("goLiveText")||"GO LIVE",v=function(){var l,i;u&&(u.textContent=null!==(l=e.liveTracker)&&void 0!==l&&null!==(i=l.atLiveEdge)&&void 0!==i&&i.call(l)?s:a)};v(),e.on("timeupdate",v),null===(o=e.liveTracker)||void 0===o||null===(t=o.on)||void 0===t||t.call(o,"liveedgechange",v),r.on("click",(function(){if(e.paused())try{e.play()}catch(e){}}))}if(null!=l&&l.liveVideo&&null!=l&&l.liveui&&e.liveTracker){var c=function(){return function(e){var l,i,n,r,o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(!o)return;var t=o.querySelector(".vjs-remaining-time-display");null!==(n=e.liveTracker)&&void 0!==n&&null!==(r=n.atLiveEdge)&&void 0!==r&&r.call(n)?o.style.display="none":(o.style.display="flex",t&&(t.innerText=(u=function(e){var l=e.seekable();return l&&l.length>0?Math.max(0,l.end(0)-e.currentTime()):0}(e),s=Math.floor(u/3600),a=Math.floor(u%3600/60),v=Math.floor(u%60),c=function(e){return String(e).padStart(2,"0")},0===s?"".concat(c(a),":").concat(c(v)):"".concat(c(s),":").concat(c(a),":").concat(c(v)))));var u,s,a,v,c}(e)};e.liveTracker.on("liveedgechange",c),e.on("timeupdate",c)}}(a,r)}(o,t),function(e,i){var n,o,t,u,s=(null==i||null===(n=i.res)||void 0===n?void 0:n.contentType)||"video",a=(null==i||null===(o=i.res)||void 0===o||null===(t=o[s])||void 0===t||null===(u=t.liveDetails)||void 0===u?void 0:u.isDvrEnabled)||!1;(null!=i&&i.liveui||a)&&l.addRewindButton(e,"CN_NEWS",r)}(o,t)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./skin-55634dc6.js"),r=require("./features-
|
|
1
|
+
"use strict";var e=require("./skin-55634dc6.js"),r=require("./features-8beda29d.js"),i=require("./renditions-05a85e06.js"),t=require("./captions-8b889384.js");require("@babel/runtime/helpers/toConsumableArray"),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-0b925a19.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./manager-77ddd30c.js"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("@babel/runtime/helpers/typeof"),require("./playerControlEvents-db923a5c.js"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("./localisation-da6f64c6.js"),exports.initialiseSkin=function(n,s){Promise.resolve().then((function(){return require("./skin-7f60cfe9.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),function(r){var i=e.getPlayer(r);i.addChild("SubsCapsButton")}(n)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./generic-
|
|
1
|
+
"use strict";var e=require("./generic-0b925a19.js"),r=require("./skin-55634dc6.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./manager-77ddd30c.js"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-8b889384.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/typeof"),require("./playerControlEvents-db923a5c.js"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/objectWithoutProperties");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(t){Promise.resolve().then((function(){return require("./skin-225252ff.js")})).then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),i(),function(i){var t=document.getElementById("".concat(i)),n=r.getPlayer(i);t&&t.addEventListener("touchstart",(function(){n.paused()?e.play(i):e.pause(i)}))}(t)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./features-
|
|
1
|
+
"use strict";var e=require("./features-8beda29d.js"),l=require("./icons-437e83c9.js"),i=require("./skin-55634dc6.js"),r=require("./renditions-05a85e06.js"),n=require("./captions-8b889384.js"),o=require("./index-517acf72.js"),t=require("./index-f64ef24d.js"),d=require("./browser-3670a923.js"),a=require("./relatedVideosManager-44ec6d59.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("./generic-0b925a19.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./manager-77ddd30c.js"),require("md5"),require("js-cookie"),require("@babel/runtime/helpers/typeof"),require("./playerControlEvents-db923a5c.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("./localisation-da6f64c6.js"),require("./autoNextVideo-38f45ca1.js"),require("./index-93ac04ff.js"),exports.initialiseSkin=function(u,s){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-4bc06df1.js")})).then((function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)}))}(),function(l,u){var s=i.getPlayer(l);s&&(s.on("loadeddata",(function(){var i,s,v,c,p,m,g,h,b,q;(null===(i=r.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,u),(null===(s=n.getCaptions(l))||void 0===s?void 0:s.length)>0&&e.addCaptionButton(l,u);var f=(null===(v=a.relatedVideosManager.get())||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0;if(!(null!=u&&null!==(p=u.series)&&void 0!==p&&p.enable||null!==(m=window)&&void 0!==m&&null!==(g=m.app_data)&&void 0!==g&&null!==(h=g.appcmsMain)&&void 0!==h&&null!==(b=h.features)&&void 0!==b&&b.auto_play||f)||null!=u&&u.liveVideo){if(!(null!=u&&u.liveVideo||null!=u&&null!==(q=u.series)&&void 0!==q&&q.enable)){var V;V=a.relatedVideosManager.subscribe((function(e){var i;(null==e||null===(i=e.content)||void 0===i?void 0:i.length)>0&&(o.addNextEpPreview(l,u),V&&V())}))}}else o.addNextEpPreview(l,u);null!=u&&u.liveVideo||d.isMobile()||t.initiateTrickplay(l)})),s.one("play",(function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)})))}(u,s),function(e,r){var n,o,t,d,a,u,s,v,c,p,m,g,h,b=i.getPlayer(e);null===(n=b.controlBar)||void 0===n||n.removeChild("VolumePanel"),null===(o=b.controlBar)||void 0===o||o.addChild("VolumePanel",{inline:!1},1);var q=null===(t=b.controlBar)||void 0===t?void 0:t.getChild("ProgressControl"),f=null===(d=b.controlBar)||void 0===d?void 0:d.getChild("CurrentTimeDisplay"),V=null===(a=b.controlBar)||void 0===a?void 0:a.getChild("SeekToLive"),C=document.createElement("div");C.className="custom-spaced-progress-bar",q&&f&&V&&C.append(q.el(),f.el(),V.el());null===(u=b.controlBar)||void 0===u||null===(s=u.el())||void 0===s||s.append(C),null==b||null===(v=b.controlBar)||void 0===v||null===(c=v.getChild("FullscreenToggle"))||void 0===c||null===(p=c.el())||void 0===p||p.appendChild(i.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==b||null===(m=b.controlBar)||void 0===m||null===(g=m.getChild("FullscreenToggle"))||void 0===g||null===(h=g.el())||void 0===h||h.appendChild(i.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var y=document.getElementsByClassName("vjs-time-control");r.liveVideo&&y[0]&&(y[0].style.display="none")}(u,s),function(r,n){var o,t,d,u,s,v=(null==n?void 0:n.skin_settings)||{},c=0!=(null==v?void 0:v.slowMoBtn);0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(r,"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(r,"defaultV2",l.RewindSvgV2());!n.liveVideo&&c&&e.addSlowMotion(r);e.addVerticalViewButton(r,n);var p,m=a.relatedVideosManager.get();(null==m||null===(o=m.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(r,m);p=a.relatedVideosManager.subscribe((function(l){var n,o,t=i.getPlayer(r);(null==t||null===(n=t.controlBar)||void 0===n||!n.getChild("videoSelector"))&&(null==l||null===(o=l.content)||void 0===o?void 0:o.length)>0&&(e.addVideoSelector_DEFAULTV2_TEMP(r,l),p&&p())})),(null==n||null===(t=n.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(r,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(r,null==n?void 0:n.playlist);null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(r,n)}(u,s),o.addTVProviderImage(u,s)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/get"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),l=require("./icons-437e83c9.js"),d=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/get"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),l=require("./icons-437e83c9.js"),d=require("./generic-0b925a19.js"),s=require("./skin-55634dc6.js"),c=require("./autoNextVideo-38f45ca1.js"),u=require("./localisation-da6f64c6.js"),v=require("./relatedVideosManager-44ec6d59.js");function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./manager-77ddd30c.js"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-8b889384.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/typeof"),require("./playerControlEvents-db923a5c.js"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("./index-93ac04ff.js");var p=a.getComponent("Component"),h=function(){n(y,p);var h,b,f=(h=y,b=m(),function(){var e,t=r(h);if(b){var i=r(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(o=f.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o._unsubRelated=v.relatedVideosManager.subscribe((function(e){var t;o.videos=(null==e?void 0:e.content)||o.videos,o.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:o.cb,c.updateContent(o.videos),o._refreshList()})),o}return t(y,[{key:"_buildVideoItem",value:function(e){var t,i,n,o,r,l=this,c=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d.setVideoIdx(e+1);for(var t=a.dom.$$(".recommended"),i=0;i<t.length;i++)t[i].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),d.load(l.playerId,l.videos[e].id).then((function(e){l.cb&&l.cb(e)})).catch((function(e){l.cb&&l.cb(e)}))};var v=document.createElement("img");v.className="related-thumbnail-image",v.src="".concat((null==this||null===(t=this.videos)||void 0===t||null===(i=t[e])||void 0===i?void 0:i.img)||(null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.fallbackImage)),v.alt="No Thumbnail Available",u.append(v);var m=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(r=this.videos[e])||void 0===r?void 0:r.title)||"")});return a.dom.appendContent(c,u),a.dom.appendContent(c,m),c}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){a.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)a.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,n,o){var a=i(r(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof a?function(e){return a.apply(n,e)}:a}(y,"dispose",this,3)([])}},{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(l.EpisodesSvg())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-fcdf11eb.js")})).then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),i=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(s.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",s.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),a.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),s.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),o=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),v=a.dom.createEl("div",{className:"video-container"}),m=function(e){var i,n,o,r,l,u=a.dom.createEl("div",{className:"video -".concat(e)}),m=a.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){d.setVideoIdx(e+1);for(var i=a.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),d.load(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r?void 0:r.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(u,m),a.dom.appendContent(u,h),a.dom.appendContent(v,u),a.dom.appendContent(c,v)},p=0;p<this.videos.length;p++)m(p);a.dom.appendContent(n,o),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),s.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/get"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),d=require("./icons-437e83c9.js"),r=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/get"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),d=require("./icons-437e83c9.js"),r=require("./generic-0b925a19.js"),s=require("./skin-55634dc6.js"),c=require("./autoNextVideo-38f45ca1.js"),u=require("./localisation-da6f64c6.js"),v=require("./relatedVideosManager-44ec6d59.js");function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./manager-77ddd30c.js"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-8b889384.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/typeof"),require("./playerControlEvents-db923a5c.js"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/objectWithoutProperties"),require("./index-93ac04ff.js");var p=a.getComponent("Component"),h=function(){i(f,p);var h,b,y=(h=f,b=m(),function(){var e,t=l(h);if(b){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function f(t){var n,i,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,f),(o=y.call(this,t,l)).playerId=l.playerId,o.seriesData=l.sres,o.videos=l.related.content,o.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==l||null===(i=l.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=l.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(r.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o._unsubRelated=v.relatedVideosManager.subscribe((function(e){var t;o.videos=(null==e?void 0:e.content)||o.videos,o.cb=null!==(t=null==e?void 0:e.cb)&&void 0!==t?t:o.cb,c.updateContent(o.videos),o._refreshList()})),o}return t(f,[{key:"_buildVideoItem",value:function(e){var t,n,i,o,l,d,r,c,u,v=this,m=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(this.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(t){"Enter"===t.key&&v.loadVideoAssetById(e)},p.onclick=function(){v.loadVideoAssetById(e)};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat(s.impolicy16x9(null==this||null===(t=this.videos)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.img)||s.impolicy16x9(null===(i=window)||void 0===i||null===(o=i.app_data)||void 0===o||null===(l=o.appcmsMain)||void 0===l||null===(d=l.images)||void 0===d?void 0:d.placeholderCover)),h.alt="".concat((null==this||null===(r=this.videos[e])||void 0===r||null===(c=r.title)||void 0===c?void 0:c.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(h);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==this||null===(u=this.videos[e])||void 0===u?void 0:u.title)||"")});return a.dom.appendContent(m,p),a.dom.appendContent(m,b),m}},{key:"_refreshList",value:function(){var e=this.el().querySelector(".video-container");if(e){a.dom.emptyEl(e);for(var t=0;t<this.videos.length;t++)a.dom.appendContent(e,this._buildVideoItem(t))}}},{key:"dispose",value:function(){this._unsubRelated&&this._unsubRelated(),function(e,t,i,o){var a=n(l(1&o?e.prototype:e),t,i);return 2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a}(f,"dispose",this,3)([])}},{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"video-selector-icon",title:"video selector",ariaExpanded:!1,innerHTML:"".concat(d.PlaylistIcon())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-b90fe564.js")})).then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=a.dom.createEl("div",{className:"video-selection-container hidden"}),i=a.dom.$(".video-selector-icon",this.el());i.onclick=function(){var o,l;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),s.setUpdatedElHeight(e.playerId,n),e.handleTabIndexSelector(),null===(l=e.titleEl)||void 0===l||l.focus(),i.setAttribute("aria-expanded",!0)):(n.classList.add("hidden"),t.classList.remove("open"),i.setAttribute("aria-expanded",!1))};var o=document.getElementById(this.playerId);if(o){var l=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(l),a.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),s.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r.setVideoIdx(e+1);for(var n=a.dom.$$(".recommended"),i=0;i<n.length;i++)n[i].style.border="none";s.highlightVideo(e),r.load(this.playerId,this.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))}},{key:"handleTabIndexSelector",value:function(){var e,t,n;this.titleEl&&(this.titleEl.tabIndex=0),null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var i=document.getElementsByClassName("video-accessibility"),o=(null==i||null===(t=i[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<o;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n,i;this.titleEl&&(this.titleEl.tabIndex=-1),null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1),null!==(t=document.getElementsByClassName("video-selector-icon"))&&void 0!==t&&t[0]&&document.getElementsByClassName("video-selector-icon")[0].setAttribute("aria-expanded",!1);for(var o=document.getElementsByClassName("video-accessibility"),l=(null==o||null===(n=o[0])||void 0===n||null===(i=n.children)||void 0===i?void 0:i.length)||0,a=0;a<l;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),i=a.dom.createEl("div",{className:"video-selector-head"}),o=a.dom.createEl("button",{className:"video-selector-cross-icon",ariaLabel:"close video selector",type:"button",tabIndex:-1,innerHTML:"".concat(d.crossIconSvg())});o.onkeydown=function(i){"Enter"===i.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};var l=u.getLocalisation("relatedVideoTitle")||"Recommended",r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:l,ariaLabel:l,tabIndex:-1});r.setAttribute("role","heading"),r.setAttribute("aria-level","2"),this.titleEl=r;for(var c=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),v=a.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,i,o,l,d,r,u,m,p=a.dom.createEl("div",{className:"video -".concat(e)}),h=a.dom.createEl("button",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(s.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(i=n[e])||void 0===i?void 0:i.img)||s.impolicy16x9(null===(o=window)||void 0===o||null===(l=o.app_data)||void 0===l||null===(d=l.appcmsMain)||void 0===d||null===(r=d.images)||void 0===r?void 0:r.placeholderCover)),b.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),b.setAttribute("aria-hidden","true"),h.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title)||"")});a.dom.appendContent(p,h),a.dom.appendContent(p,y),a.dom.appendContent(v,p),a.dom.appendContent(c,v)},p=0;p<this.videos.length;p++)m(p);a.dom.appendContent(i,r),a.dom.appendContent(i,o),a.dom.appendContent(e,i),a.dom.appendContent(e,c),s.handleDrawerResizing(this.playerId,e)}}]),f}();exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e,ac as n,Y as t,ab as o,ad as r}from"./generic-
|
|
1
|
+
import{s as e,ac as n,Y as t,ab as o,ad as r}from"./generic-759b1422.js";import{b as s,a as i}from"./index-1577b990.js";import{g as u,h as a}from"./skin-2a3ee818.js";var l,d=0,c=0,v=new Set(["NOT_AIRED","VIDEO_NOT_AVAILABLE","CONTENT_NOT_AVAILABLE"]),f=function(e){return(null==e?void 0:e.response)||e},p=function(e,n){return e&&null!=n&&n.gist&&(e.response=e.response||{},e.response.video=e.response.video||{},e.response.video.gist=n.gist),e},g=function(e){var n,t,o=f(e),r=null==o||null===(n=o.response)||void 0===n?void 0:n.data;return 403===(null==o||null===(t=o.response)||void 0===t?void 0:t.status)||(!!(null!=r&&r.scheduleStartDate&&Number(r.scheduleStartDate)>Date.now())||!(null==r||!r.errorCode||!v.has(r.errorCode)))},m=function(e,n){clearTimeout(d);var t=f(n);i(e,t,null);var o=u(e);o&&!o.paused()&&o.pause()},h=function(e,n,o){var r=o[e];if(function(e){var n,t=null==e||null===(n=e.gist)||void 0===n?void 0:n.scheduleStartDate;return t&&Number(t)>Date.now()}(r))return Promise.reject(function(e){var n,t,o;return{response:{data:{errorMessage:null!=e&&null!==(n=e.gist)&&void 0!==n&&n.scheduleStartDate?"Coming soon":"Content not available",scheduleStartDate:null==e||null===(t=e.gist)||void 0===t?void 0:t.scheduleStartDate,scheduleEndDate:null==e||null===(o=e.gist)||void 0===o?void 0:o.scheduleEndDate,gist:null==e?void 0:e.gist}}}}(r));if(!u(n)){var s={status:!1,msg:"Player not initialised for next episode load",response:{playerId:n,episode:r}};return console.error("[autoNextVideo] player not found before trying next episode load",s),Promise.reject(s)}return t(n,r.id)},D=[],T=function(e){D=e||[]},N=function(t){clearTimeout(d),D=(null==t?void 0:t.content)||[],l=null==t?void 0:t.cb;var i=t.playerId;s(i,(function(){var t=u(i);0!==(null==t?void 0:t.currentTime())&&((c=o())>D.length-1||(r(c+1),h(c,i,D).then((function(n){a(c,i),e(n.response),c++,A(n)})).catch((function(e){A(p(e,D[idx])),a(c,i),g(e)?m(i,e):(c++,d=setTimeout((function(){n(i)&&b(c,i,D)}),5e3))}))))}))},b=function e(n,t,o,s){c=n,n>o.length-1||(r(c+1),h(n,t,o).then((function(e){a(c,t),c++,A(e)})).catch((function(r){A(p(r,o[n])),g(r)?m(t,r):setTimeout((function(){a(c,t),c++,e(c,t,o)}),5e3)})))},A=function(e){l&&l(e)};export{N as a,b as s,T as u};
|