@viewlift/player-backup 2.0.35-smarttv → 2.0.36-smarttv
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-5c61b9cb.js +1 -0
- package/cjs/bundle.css +2 -2
- package/cjs/{features-d8e95dc9.js → features-5dabcea5.js} +1 -1
- package/cjs/{index-22c51eee.js → index-991b30f4.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{playlist-01fd8996.js → playlist-350baa1e.js} +1 -1
- package/cjs/{renditions-6ca861f3.js → renditions-24aeeea9.js} +1 -1
- package/cjs/{series-v2-d21309ce.js → series-v2-6e8cbcda.js} +1 -1
- package/cjs/{series-v2-264f1274.js → series-v2-8756ac9e.js} +1 -1
- package/cjs/{settings-icon-574dc30a.js → settings-icon-9b3d3788.js} +1 -1
- package/cjs/{skin-a7171b70.js → skin-a4eabf7a.js} +1 -1
- package/cjs/{skin-4e236315.js → skin-c45387ad.js} +1 -1
- package/cjs/{skin-d1f05fdb.js → skin-c81d6add.js} +1 -1
- package/cjs/{skin-6ed10ade.js → skin-eac0a0fb.js} +1 -1
- package/cjs/{videoSelector-6fc58bce.js → videoSelector-2c94e849.js} +1 -1
- package/cjs/{videoSelector-68b2ef10.js → videoSelector-d97ab3f8.js} +1 -1
- package/esm/autoNextVideo-56f70964.js +1 -0
- package/esm/bundle.css +2 -2
- package/esm/{caption-settings-b11a19b3.js → caption-settings-088e70f5.js} +1 -1
- package/esm/{features-9a77b3ec.js → features-84286390.js} +1 -1
- package/esm/{index-caeb7f58.js → index-0c0f2cb0.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{multicamv2-1b6bbad6.js → multicamv2-1dbc6fd3.js} +1 -1
- package/esm/nextEpisodeButton-518b5e22.js +1 -0
- package/esm/{playlist-606bdc1a.js → playlist-603ebd69.js} +1 -1
- package/esm/{renditions-7724f87c.js → renditions-7f946d48.js} +1 -1
- package/esm/{series-v2-a9bd9cce.js → series-v2-a5c6cd10.js} +1 -1
- package/esm/{series-v2-e6464c17.js → series-v2-b59f854c.js} +1 -1
- package/esm/{settings-icon-51763bdf.js → settings-icon-cccc4c93.js} +1 -1
- package/esm/{skin-9c71c31d.js → skin-9c36b83f.js} +1 -1
- package/esm/{skin-3c8134ab.js → skin-b9b4babd.js} +1 -1
- package/esm/{skin-bb1155ba.js → skin-cc14c02c.js} +1 -1
- package/esm/{skin-31efcd21.js → skin-d432bcd8.js} +1 -1
- package/esm/{util-7ef0c31b.js → util-1b598a26.js} +1 -1
- package/esm/{videoSelector-c91fa81d.js → videoSelector-08019968.js} +1 -1
- package/esm/{videoSelector-4c015dd4.js → videoSelector-d11c7ff1.js} +1 -1
- package/package.json +1 -1
- package/cjs/autoNextVideo-2ff24f68.js +0 -1
- package/cjs/videojs_contrib_dash-9a5f4c2b.js +0 -1
- package/esm/autoNextVideo-fc102a98.js +0 -1
- package/esm/nextEpisodeButton-66506110.js +0 -1
- package/esm/videojs_contrib_dash-d8104535.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/toConsumableArray"),a=require("@babel/runtime-corejs3/helpers/classCallCheck"),n=require("@babel/runtime-corejs3/helpers/createClass"),i=require("@babel/runtime-corejs3/helpers/inherits"),r=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),o=require("@babel/runtime-corejs3/helpers/getPrototypeOf");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var l=require("@babel/runtime-corejs3/core-js-stable/map"),s=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),c=require("@babel/runtime-corejs3/core-js-stable/instance/map"),d=require("@babel/runtime-corejs3/core-js-stable/instance/sort"),u=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),p=require("video.js"),m=require("./icons-9e9e6364.js"),v=require("./skin-b28fa2ec.js"),h=require("./renditions-
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/toConsumableArray"),a=require("@babel/runtime-corejs3/helpers/classCallCheck"),n=require("@babel/runtime-corejs3/helpers/createClass"),i=require("@babel/runtime-corejs3/helpers/inherits"),r=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),o=require("@babel/runtime-corejs3/helpers/getPrototypeOf");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var l=require("@babel/runtime-corejs3/core-js-stable/map"),s=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),c=require("@babel/runtime-corejs3/core-js-stable/instance/map"),d=require("@babel/runtime-corejs3/core-js-stable/instance/sort"),u=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),p=require("video.js"),m=require("./icons-9e9e6364.js"),v=require("./skin-b28fa2ec.js"),h=require("./renditions-24aeeea9.js"),b=require("./resolution-27153a3f.js"),g=require("./localisation-56e0a999.js");function y(t){var a=f();return function(){var n,i=o(t);if(a){var l=o(this).constructor;n=e(i,arguments,l)}else n=i.apply(this,arguments);return r(this,n)}}function f(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/helpers/assertThisInitialized"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/parse-int"),require("./browser-2df57579.js"),require("core-js/modules/es.regexp.exec.js"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of");var j=p.getComponent("Component"),C=function(e){i(o,j);var r=y(o);function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,o),(t=r.call(this,e,n)).playerId=n.playerId,t.seriesData=n.sres,t.currentVideoData=n.res,t.initialiseStructure(),t.loadCSS(),t.resolutionBitrateMap,t}return n(o,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new l,s(e).call(e,(function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var n=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,n||1/0))}}))}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),n=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!n)&&a>n}},{key:"createEl",value:function(){var e=p.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=p.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(m.SettingsSvgV2())});return p.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./settings-icon-8d364c01.js")})).then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=p.dom.createEl("div",{className:"selection-container hidden"});p.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(v.closeOpenDrawers(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",v.setUpdatedElHeight(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(i),p.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),v.detectOrientationChange(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=p.dom.createEl("div",{className:"settings-selector-head"}),n=p.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(m.crossIconSvg())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var i=p.dom.createEl("div",{className:"settings-selector-title",innerHTML:g.getLocalisation("settingsTitle")||"Settings"}),r=p.dom.createEl("div",{className:"settings-selector-content"}),o=p.dom.createEl("div",{className:"settings-container"}),l=this.createVideoQualityContainer();p.dom.appendContent(o,l);var s=this.createAudioQualityContainer();p.dom.appendContent(o,s),p.dom.appendContent(a,n),p.dom.appendContent(a,i),p.dom.appendContent(e,a),p.dom.appendContent(e,r),p.dom.appendContent(r,o),v.handleDrawerResizing(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=v.getPlayer(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=p.dom.createEl("div",{className:"audio-language-container"}),n=p.dom.createEl("div",{className:"audio-language-container-title",innerHTML:g.getLocalisation("audioLanguageText")||"Audio Language"});p.dom.appendContent(a,n);for(var i=function(e){var n,i=document.createElement("label");i.className="audio-language-holder",i.setAttribute("for","language-radio-".concat(e));var r=document.createElement("div");r.className="audio - ".concat(e),r.textContent=null==t||null===(n=t[e])||void 0===n?void 0:n.label;var o=p.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});o.setAttribute("type","radio"),1==t[e].enabled&&(o.checked=!0),o.onchange=function(a){c(t).call(t,(function(e){e.enabled=!1})),t[e].enabled=!0},p.dom.appendContent(i,o),p.dom.appendContent(i,r),p.dom.appendContent(a,i)},r=0;r<t.length;r++)i(r);return a}}},{key:"createVideoQualityContainer",value:function(){var e,a,n=this,i=p.dom.createEl("div",{className:"video-quality-container"}),r=p.dom.createEl("div",{className:"video-quality-container-title",innerHTML:g.getLocalisation("videoQualityText")||"Video Quality"});p.dom.appendContent(i,r);var o=d(e=u(a=[]).call(a,t(h.getRenditions(this.playerId)),[{height:"Auto"}])).call(e,(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)}));this.fillResolutionBitrateMap(o),b.playSelectedResolution(this.playerId,"raw",!0);for(var l=function(e){var t,a,r,l=document.createElement("label"),s=document.createElement("div"),c=document.createElement("div");c.className="video-quality-bitrate-label",s.className="video-quality-holder",l.className="video-quality-label-container",l.setAttribute("for","quality".concat(e));var d=document.createElement("div");d.className="video-quality - ".concat(e);var u=(null==o||null===(t=o[e])||void 0===t?void 0:t.height)+"".concat("Auto"==(null==o||null===(a=o[e])||void 0===a?void 0:a.height)?"":"p"),h=document.createTextNode(u),y="".concat(n.isEnhancedBitrate(o[e])?g.getLocalisation("enhancedBitrateLabel")||"Enhanced Bitrate":""),f=document.createTextNode(y);if(c.appendChild(f),d.appendChild(h),(null==o||null===(r=o[e])||void 0===r?void 0:r.height)>=720)for(var j=v.parseHtmlString("<span class='hd-rendition'> HD </span>");null!=j&&j.firstChild;)d.appendChild(j.firstChild);var C=p.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(o[e]),checked:"".concat(e==o.length-1)});C.setAttribute("type","radio"),C.onchange=function(t){var a=o[e];"true"=="".concat("Auto"==o[e].height)?b.playSelectedResolution(n.playerId,a,!0):b.playSelectedResolution(n.playerId,a)};var q=document.createElement("span");q.className=y?"check-mark center":"check-mark";var E=v.parseSvgString(m.TickMarkIcon());q.appendChild(E),s.appendChild(C),s.appendChild(q),s.appendChild(d),p.dom.appendContent(l,s),l.appendChild(c),p.dom.appendContent(i,l)},s=0;s<o.length;s++)l(s);return i}}]),o}();exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var e=require("./features-
|
|
1
|
+
"use strict";require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var e=require("./features-5dabcea5.js"),r=require("./icons-9e9e6364.js"),s=require("./skin-b28fa2ec.js"),i=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),o=require("./renditions-24aeeea9.js"),l=require("./captions-d160e397.js"),t=require("./index-991b30f4.js"),a=require("./browser-2df57579.js");function u(r,u){var n=s.getPlayer(r);n&&(n.on("loadeddata",(function(){var s,c,d,j,m,b,p;(null===(s=o.getRenditions(r))||void 0===s?void 0:s.length)>0&&e.addSettingsButtonV2(r,u),(null===(c=l.getCaptions(r))||void 0===c?void 0:c.length)>0&&e.addCaptionButton(r,u),!(null!=u&&null!==(d=u.series)&&void 0!==d&&d.enable||null!==(j=window)&&void 0!==j&&null!==(m=j.app_data)&&void 0!==m&&null!==(b=m.appcmsMain)&&void 0!==b&&null!==(p=b.features)&&void 0!==p&&p.auto_play)||null!=u&&u.liveVideo||t.addNextEpPreview(r,u),function(e,r){var s,o,l=Math.floor(e/60),t=null===(s=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===s?void 0:s[0];t&&(t.style.marginRight=l>60?"56px":"41px");var a=document.getElementsByClassName("vjs-live-control")[0],u=document.getElementsByClassName("vjs-time-control");r&&i(o=a.classList.value).call(o,"vjs-hidden")&&(u[0].style.display="block",t&&(t.style.marginRight="56px"))}(n.duration(),(null==u?void 0:u.liveVideo)||!1),null!=u&&u.liveVideo||a.isMobile()||t.initiateTrickplay(r)})),n.one("play",(function(){var s,i,o,l;null!==(s=window)&&void 0!==s&&null!==(i=s.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(r,null===(o=window)||void 0===o||null===(l=o.customData)||void 0===l?void 0:l.iframeOverlayUrl)})))}require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classCallCheck"),require("@babel/runtime-corejs3/helpers/createClass"),require("@babel/runtime-corejs3/helpers/inherits"),require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),require("@babel/runtime-corejs3/helpers/getPrototypeOf"),require("video.js"),require("./generic-294ac08e.js"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("./localisation-56e0a999.js"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("@babel/runtime-corejs3/core-js-stable/instance/sort"),require("./autoNextVideo-5c61b9cb.js"),require("./util-1f5115f2.js"),require("@babel/runtime-corejs3/helpers/typeof"),require("core-js/modules/es.string.split.js"),require("@babel/runtime-corejs3/core-js-stable/parse-float"),require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of"),require("@babel/runtime-corejs3/helpers/slicedToArray"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("@babel/runtime-corejs3/core-js-stable/instance/trim"),require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"),require("@babel/runtime-corejs3/core-js-stable/parse-int"),require("@babel/runtime-corejs3/core-js-stable/instance/pad-start"),require("@babel/runtime-corejs3/core-js-stable/instance/flat"),exports.initialiseSkin=function(i,o){s.getPlayer(i).addClass("skin_defaultv2"),function(){"Chrome"==a.detectBrowser()&&Promise.resolve().then((function(){return require("./chromett-f925fb6c.js")})).then((function(e){var r=document.createElement("style");r.id="chromett",r.append("".concat(e.default)),document.head.appendChild(r)}));Promise.resolve().then((function(){return require("./skin-87c06e34.js")})).then((function(e){var r=document.createElement("style");r.id="default_v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}(),u(i,o),function(e,i){var o,l,t,a,u,n,c=s.getPlayer(e);null==c||null===(o=c.controlBar)||void 0===o||null===(l=o.getChild("FullscreenToggle"))||void 0===l||null===(t=l.el())||void 0===t||t.appendChild(s.createIconMarkup(r.MinimizeSvg(window.controlsColor))),null==c||null===(a=c.controlBar)||void 0===a||null===(u=a.getChild("FullscreenToggle"))||void 0===u||null===(n=u.el())||void 0===n||n.appendChild(s.createIconMarkup(r.MaximizeSvg(window.controlsColor)));var d=document.getElementsByClassName("vjs-time-control");i.liveVideo&&d[0]&&(d[0].style.display="none")}(i,o),function(s,i){var o,l,t,a,u,n;0==(null==i?void 0:i.liveVideo)&&0==(null==i?void 0:i.liveui)&&e.addSkipButton(s,"defaultV2",r.SkipSvgV2());(0==(null==i?void 0:i.liveVideo)&&0==(null==i?void 0:i.liveui)||1==(null==i?void 0:i.liveui))&&e.addRewindButton(s,"defaultV2",r.RewindSvgV2());i.liveVideo||e.addSlowMotion(s);(null==i||null===(o=i.relatedVideos)||void 0===o||null===(l=o.content)||void 0===l?void 0:l.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(s,null==i?void 0:i.relatedVideos);(null==i||null===(t=i.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(s,null==i?void 0:i.streams);(null==i||null===(a=i.playlist)||void 0===a||null===(u=a.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(s,null==i?void 0:i.playlist);null!=i&&null!==(n=i.series)&&void 0!==n&&n.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(s,i)}(i,o),t.addTVProviderImage(i,o)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var e=require("./features-
|
|
1
|
+
"use strict";require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var e=require("./features-5dabcea5.js"),r=require("./keyboardShortcuts-b1e158f8.js"),s=require("./icons-9e9e6364.js"),o=require("./skin-b28fa2ec.js"),i=require("./generic-294ac08e.js");require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classCallCheck"),require("@babel/runtime-corejs3/helpers/createClass"),require("@babel/runtime-corejs3/helpers/inherits"),require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),require("@babel/runtime-corejs3/helpers/getPrototypeOf"),require("video.js"),require("./renditions-24aeeea9.js"),require("@babel/runtime-corejs3/core-js-stable/instance/sort"),require("./localisation-56e0a999.js"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("./browser-2df57579.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),exports.initialiseSkin=function(t,u){o.getPlayer(t).addClass("skin_default"),r.initialiseKeyboardEvents(t,u),Promise.resolve().then((function(){return require("./skin-ba38afdb.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,o){0==o.liveVideo&&0==o.liveui&&e.addSkipButton(r,"default",s.SkipSvg());(0==o.liveVideo&&0==o.liveui||1==o.liveui)&&e.addRewindButton(r,"default",s.RewindSvg())}(t,u),function(r,t){var u=o.getPlayer(r),a=(null==t?void 0:t.sres)||null;u.on("loadeddata",(function(){e.addResolutionModule(r,"default",s.SettingsSvg()),a&&Promise.resolve().then((function(){return require("./nextEpisodeButton-d938133c.js")})).then((function(e){e.initaliseFunctionality(t.sres.seasons,i.getCurrentVideo())}))})),u.one("loadedmetadata",(function(){var s;a&&(e.addSeriesModule(r,null==t||null===(s=t.sres)||void 0===s?void 0:s.seasons,t),e.addNextEpisodeButton(t.sres,t.res,r))}))}(t,u),function(e,r){var i,t,u,a,l=o.getPlayer(e),n=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],d=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(n&&(n.style.display="none"),c&&(c.style.display="none"),d&&(d.style.display="none"));null===(i=l.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(t=i.el())||void 0===t||t.appendChild(o.createIconMarkup(s.MinimizeSvg(window.controlsColor))),null===(u=l.controlBar.getChild("FullscreenToggle"))||void 0===u||null===(a=u.el())||void 0===a||a.appendChild(o.createIconMarkup(s.MaximizeSvg(window.controlsColor)));var j=l.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(o.createIconMarkup(s.NewCaptionsSvg()));var m=document.createElement("div");m.classList.add("caption-header"),j.querySelector(".vjs-menu-content").insertBefore(m,j.querySelector(".vjs-menu-item"))}(t,u)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./features-d8e95dc9.js"),r=require("./skin-b28fa2ec.js"),o=require("./index-22c51eee.js"),t=require("./browser-2df57579.js");require("videojs-contrib-quality-menu");var s=require("video.js"),n=require("./keyboardShortcuts-b1e158f8.js"),a=require("./generic-294ac08e.js");require("core-js/modules/es.function.name.js");var i=require("@babel/runtime-corejs3/core-js-stable/object/keys"),l=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),u=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),c=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),d=require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),m=require("@babel/runtime-corejs3/core-js-stable/object/define-property"),j=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),b=require("@babel/runtime-corejs3/core-js-stable/array/from"),p=require("@babel/runtime-corejs3/core-js-stable/symbol"),v=require("@babel/runtime-corejs3/core-js/get-iterator-method"),y=require("@babel/runtime-corejs3/helpers/toConsumableArray"),f=require("@babel/runtime-corejs3/helpers/slicedToArray"),q=require("@babel/runtime-corejs3/helpers/defineProperty"),h=require("@babel/runtime-corejs3/helpers/asyncToGenerator"),g=require("@babel/runtime-corejs3/regenerator"),k=require("@babel/runtime-corejs3/core-js-stable/json/stringify"),S=require("@babel/runtime-corejs3/core-js-stable/url"),w=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),x=require("@babel/runtime-corejs3/core-js-stable/object/entries"),C=require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"),I=require("@babel/runtime-corejs3/core-js-stable/instance/map"),T=require("@babel/runtime-corejs3/core-js-stable/array/is-array"),M=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),E=require("@babel/runtime-corejs3/core-js-stable/map"),P=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),B=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),A=require("@babel/runtime-corejs3/core-js-stable/instance/pad-start");require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.regexp.to-string.js");var N=require("./icons-9e9e6364.js");require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),require("@babel/runtime-corejs3/helpers/classCallCheck"),require("@babel/runtime-corejs3/helpers/createClass"),require("@babel/runtime-corejs3/helpers/inherits"),require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),require("@babel/runtime-corejs3/helpers/getPrototypeOf"),require("./renditions-6ca861f3.js"),require("@babel/runtime-corejs3/core-js-stable/instance/sort"),require("./localisation-56e0a999.js"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("./autoNextVideo-2ff24f68.js"),require("./util-1f5115f2.js"),require("@babel/runtime-corejs3/helpers/typeof"),require("core-js/modules/es.string.split.js"),require("@babel/runtime-corejs3/core-js-stable/parse-float"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.array.join.js"),require("@babel/runtime-corejs3/core-js-stable/instance/trim"),require("@babel/runtime-corejs3/core-js-stable/parse-int"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/instance/flat"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval");function O(s,n){var a=r.getPlayer(s);a&&(a.on("loadeddata",(function(){var e,a,i,l,u;!function(e){var o=r.getPlayer(e);o&&(null==o||o.qualityMenu,o.qualityMenu({useResolutionLabels:!0}))}(s),!(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable||null!==(a=window)&&void 0!==a&&null!==(i=a.app_data)&&void 0!==i&&null!==(l=i.appcmsMain)&&void 0!==l&&null!==(u=l.features)&&void 0!==u&&u.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(s,n),null!=n&&n.liveVideo||t.isMobile()||o.initiateTrickplay(s)})),a.one("play",(function(){var r,o,t,n;null!==(r=window)&&void 0!==r&&null!==(o=r.customData)&&void 0!==o&&o.iframeOverlayUrl&&e.addOutputtingOverlay(s,null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}function U(e,r){var o=void 0!==p&&v(e)||e["@@iterator"];if(!o){if(T(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return V(e,r);var t=j(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?b(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?V(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,s=function(){};return{s:s,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){i=!0,n=e},f:function(){try{a||null==o.return||o.return()}finally{if(i)throw n}}}}function V(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function R(e,r){var o=i(e);if(l){var t=l(e);r&&(t=B(t).call(t,(function(r){return u(e,r).enumerable}))),o.push.apply(o,t)}return o}function D(e){for(var r=1;r<arguments.length;r++){var o,t,s=null!=arguments[r]?arguments[r]:{};r%2?M(o=R(Object(s),!0)).call(o,(function(r){q(e,r,s[r])})):c?d(e,c(s)):M(t=R(Object(s))).call(t,(function(r){m(e,r,u(s,r))}))}return e}function _(){return _=h(g.mark((function e(o,t){var s,i,l,u,c,d,m,j,b,p,v,q,O,V,R,_,L,Q,$;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $=function(e,t,s){var n=r.getPlayer(o);Math.floor(n.currentTime());var a,i,l,u,c,d,m,j,b,p,v,y,f,q,h=U(t);try{for(h.s();!(a=h.n()).done;)i=void 0,l=void 0,u=void 0,c=void 0,d=void 0,m=void 0,j=void 0,b=void 0,p=void 0,v=void 0,y=void 0,f=void 0,q=void 0,d=a.value,m=d.eventType,j=d.beaconUrls,b=d.startTimeInSeconds,p=d.startTime,v=d.durationInSeconds,y=Math.round(b),f=j[0],q=(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l||null===(u=l.ads)||void 0===u?void 0:u.adEventHandler)||null,y!=Math.round(n.currentTime())||Q.has(p)||(Q.set(p,!0),"function"==typeof q&&q({adsData:{eventType:m,startTimeInSeconds:b,startTime:p,durationInSeconds:v,ad:null==e||null===(c=e.ads)||void 0===c?void 0:c[s],adIndex:s}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",m,"Fired:".concat(Math.round(n.currentTime())),"AD_POD:",e),fetch(f))}catch(e){h.e(e)}finally{h.f()}},L=function(e){var r,o,t=Math.floor(e/60),s=Math.floor(e%60);return P(r="".concat(t,":")).call(r,A(o=s.toString()).call(o,2,"0"))},R=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=U(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),a=f(n,2),i=a[0],l=a[1];r[decodeURIComponent(i)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var u={},c=0,d=x(r);c<d.length;c++){var m=f(d[c],2),j=m[0],b=m[1];if(C(j).call(j,"ads."))u[j.replace(/^ads\./,"")]=b;else u[j]=b}return u},s=r.getPlayer(o),i=t.replace("dash","session").replace("master","session"),i=a.replaceMacros(i,o,{}),l=R(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:k({adsParams:D({},l)})});case 10:return u=e.sent,e.next=13,u.json();case 13:c=e.sent,d="https://"+new S(i).hostname,m=c.trackingUrl,j=c.manifestUrl,b=d+m,p=d+j,console.log("%c TRACKING URL","background: #bdf369; color: #000",b),null!=t&&w(t).call(t,".mpd")?(q=(null==s||null===(v=s.currentSource())||void 0===v?void 0:v.keySystemOptions)||null,a.loadVideo(o,{src:p,type:"application/x-mpegURL",keySystemOptions:q})):(V=(null==s||null===(O=s.currentSource())||void 0===O?void 0:O.keySystems)||null,a.loadVideo(o,{src:p,type:"application/x-mpegURL",keySystems:V})),s.one("loadeddata",(function(){_(b)})),_=function(){var e=h(g.mark((function e(t){var s,a,i,l,u,c,d,m,j,b,p,v,f,q,h,k,S;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return a=e.sent,e.next=5,a.json();case 5:i=e.sent,l=i.avails,u=[],c=r.getPlayer(o),d=c.controlBar.progressControl,m=d.seekBar.el(),I(l).call(l,(function(e){var r;T(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&u.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),M(u).call(u,(function(e){var r=e.markerPositionInSeconds,o=c.duration();if(!(r>o)){var t=r/o*100,s=document.createElement("div");s.className="vjs-seekbar-marker",s.style.left="".concat(t,"%"),s.style.position="absolute",s.style.top="0",s.style.bottom="0",s.style.width="2px",s.style.backgroundColor="#fecc09",s.style.left="".concat(t,"%"),s.style.pointerEvents="none",m.appendChild(s)}})),j=new E,b=-1,c.on("timeupdate",r.throttle((function(){var e=Math.floor(c.currentTime());if(e!==b){b=e;for(var r=!1,o=function(){var o=s[t],a=o.startTimeInSeconds,i=o.durationInSeconds,l=o.ads,u=Math.floor(a+i);if(e>=a&&e<=u){var c,m;r=!0,j.set(a,!0),n.keyboardManager.disable(),d.el().style.visibility="hidden";for(var b=e-a,v=0,f=0,q=0;q<l.length;q++){var h,g=null==l||null===(h=l[q])||void 0===h?void 0:h.durationInSeconds;if(b<v+g){f=q;break}v+=g}var S=l[f],x=b-v,C=Math.max(0,S.durationInSeconds-x),I=Math.round(C);p.style.display="block",k.textContent=P(c=P(m="".concat(f+1," of ")).call(m,l.length," • ")).call(c,L(I));var T=[];return M(l).call(l,(function(e){var r,o=B(r=e.trackingEvents).call(r,(function(e){var r;return w(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));T.push.apply(T,y(o))})),$(o,T,f),"break"}},t=0,s=u;t<s.length;t++){if("break"===o())break}r||(p.style.display="none",d.el().style.visibility="visible",n.keyboardManager.enable())}}),1e3)),c.on("seeked",(function(){for(var e=null,r=0,o=u;r<o.length;r++){var t=o[r],s=null==c?void 0:c.currentTime(),n=t.startTimeInSeconds,a=t.durationInSeconds;s>Math.floor(n+a)&&!j.has(n)&&(e=n,j.set(n,!0))}e&&(c.currentTime(e),console.log("seeking back to",e),e=null)})),(p=document.createElement("div")).className="ssai-ad-container",(v=document.createElement("div")).className="sponsored-adbox",(f=document.createElement("div")).className="sponsored-text",f.textContent="Sponsored Ad",(q=document.createElement("div")).className="ad-info-icon",h=r.parseSvgString(N.InfoIcon()),q.appendChild(h),v.append(f),v.append(q),(k=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(S=document.createElement("div")).className="ad-visit-advertiser",S.textContent="Visit Advertiser",(null===(s=document.getElementsByClassName("tvProviderImage"))||void 0===s?void 0:s[0])&&(S.style.right="8.6rem"),p.append(v),p.append(k),p.append(S),c.el().appendChild(p);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),Q=new E;case 24:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}var L=function(e,o){var t,n,a,i,l,u,c,d,m,j,b,p,v=r.getPlayer(e),y=(null==o?void 0:o.theme)||{},f=s.dom.$(".vjs-play-progress"),q=s.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");q&&(q.style.color="".concat(null===(t=window)||void 0===t||null===(n=t.app_data)||void 0===n||null===(a=n.appcmsMain)||void 0===a||null===(i=a.brand)||void 0===i||null===(l=i.cta)||void 0===l||null===(u=l.primary)||void 0===u?void 0:u.backgroundColor)),f&&(f.style.background="".concat(null===(c=window)||void 0===c||null===(d=c.app_data)||void 0===d||null===(m=d.appcmsMain)||void 0===m||null===(j=m.brand)||void 0===j||null===(b=j.cta)||void 0===b||null===(p=b.primary)||void 0===p?void 0:p.backgroundColor));var h=v.getChild("BigPlayButton")||null;(null==y?void 0:y.progressBarColor)&&f&&(f.style.background=y.progressBarColor),(null==y?void 0:y.playButtonBackgroundColor)&&h&&(h.el().style.background=y.playButtonBackgroundColor),(null==y?void 0:y.playButtonColor)&&q&&(q.style.color=y.playButtonColor),(null==y?void 0:y.playButtonType)&&("square"==(null==y?void 0:y.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(t,s){r.getPlayer(t).addClass("skin_vlone"),O(t,s),function(r,t){var s,i,l,u,c,d,m=null==t||null===(s=t.res)||void 0===s||null===(i=s.video)||void 0===i?void 0:i.isSSAIEnabled,j=a.getSource(null==t?void 0:t.res,r)||{},b=j.src;(null==t||null===(l=t.relatedVideos)||void 0===l||null===(u=l.content)||void 0===u?void 0:u.length)>0&&e.addVideoSelector(r,null==t?void 0:t.relatedVideos);null!=t&&null!==(c=t.series)&&void 0!==c&&c.enable&&e.addSeriesSelectorV2(r,t);(null==t||null===(d=t.streams)||void 0===d?void 0:d.length)>1&&e.addMulticamSelector(r,null==t?void 0:t.streams);o.addTVProviderImage(r,t),n.initialiseKeyboardEvents(r,t),m&&function(e,r){_.apply(this,arguments)}(r,b)}(t,s),L(t,s)};
|
|
1
|
+
"use strict";var e=require("./features-5dabcea5.js"),r=require("./skin-b28fa2ec.js"),o=require("./index-991b30f4.js"),t=require("./browser-2df57579.js");require("videojs-contrib-quality-menu");var s=require("video.js"),n=require("./keyboardShortcuts-b1e158f8.js"),a=require("./generic-294ac08e.js");require("core-js/modules/es.function.name.js");var i=require("@babel/runtime-corejs3/core-js-stable/object/keys"),l=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),u=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),c=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),d=require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),m=require("@babel/runtime-corejs3/core-js-stable/object/define-property"),j=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),b=require("@babel/runtime-corejs3/core-js-stable/array/from"),p=require("@babel/runtime-corejs3/core-js-stable/symbol"),v=require("@babel/runtime-corejs3/core-js/get-iterator-method"),y=require("@babel/runtime-corejs3/helpers/toConsumableArray"),f=require("@babel/runtime-corejs3/helpers/slicedToArray"),q=require("@babel/runtime-corejs3/helpers/defineProperty"),h=require("@babel/runtime-corejs3/helpers/asyncToGenerator"),g=require("@babel/runtime-corejs3/regenerator"),k=require("@babel/runtime-corejs3/core-js-stable/json/stringify"),S=require("@babel/runtime-corejs3/core-js-stable/url"),w=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),x=require("@babel/runtime-corejs3/core-js-stable/object/entries"),C=require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"),I=require("@babel/runtime-corejs3/core-js-stable/instance/map"),T=require("@babel/runtime-corejs3/core-js-stable/array/is-array"),M=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),E=require("@babel/runtime-corejs3/core-js-stable/map"),P=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),B=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),A=require("@babel/runtime-corejs3/core-js-stable/instance/pad-start");require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.regexp.to-string.js");var N=require("./icons-9e9e6364.js");require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),require("@babel/runtime-corejs3/helpers/classCallCheck"),require("@babel/runtime-corejs3/helpers/createClass"),require("@babel/runtime-corejs3/helpers/inherits"),require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),require("@babel/runtime-corejs3/helpers/getPrototypeOf"),require("./renditions-24aeeea9.js"),require("@babel/runtime-corejs3/core-js-stable/instance/sort"),require("./localisation-56e0a999.js"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("./autoNextVideo-5c61b9cb.js"),require("./util-1f5115f2.js"),require("@babel/runtime-corejs3/helpers/typeof"),require("core-js/modules/es.string.split.js"),require("@babel/runtime-corejs3/core-js-stable/parse-float"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.array.join.js"),require("@babel/runtime-corejs3/core-js-stable/instance/trim"),require("@babel/runtime-corejs3/core-js-stable/parse-int"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/instance/flat"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval");function O(s,n){var a=r.getPlayer(s);a&&(a.on("loadeddata",(function(){var e,a,i,l,u;!function(e){var o=r.getPlayer(e);o&&(null==o||o.qualityMenu,o.qualityMenu({useResolutionLabels:!0}))}(s),!(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable||null!==(a=window)&&void 0!==a&&null!==(i=a.app_data)&&void 0!==i&&null!==(l=i.appcmsMain)&&void 0!==l&&null!==(u=l.features)&&void 0!==u&&u.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(s,n),null!=n&&n.liveVideo||t.isMobile()||o.initiateTrickplay(s)})),a.one("play",(function(){var r,o,t,n;null!==(r=window)&&void 0!==r&&null!==(o=r.customData)&&void 0!==o&&o.iframeOverlayUrl&&e.addOutputtingOverlay(s,null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}function U(e,r){var o=void 0!==p&&v(e)||e["@@iterator"];if(!o){if(T(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return V(e,r);var t=j(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?b(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?V(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,s=function(){};return{s:s,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){i=!0,n=e},f:function(){try{a||null==o.return||o.return()}finally{if(i)throw n}}}}function V(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function R(e,r){var o=i(e);if(l){var t=l(e);r&&(t=B(t).call(t,(function(r){return u(e,r).enumerable}))),o.push.apply(o,t)}return o}function D(e){for(var r=1;r<arguments.length;r++){var o,t,s=null!=arguments[r]?arguments[r]:{};r%2?M(o=R(Object(s),!0)).call(o,(function(r){q(e,r,s[r])})):c?d(e,c(s)):M(t=R(Object(s))).call(t,(function(r){m(e,r,u(s,r))}))}return e}function _(){return _=h(g.mark((function e(o,t){var s,i,l,u,c,d,m,j,b,p,v,q,O,V,R,_,L,Q,$;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $=function(e,t,s){var n=r.getPlayer(o);Math.floor(n.currentTime());var a,i,l,u,c,d,m,j,b,p,v,y,f,q,h=U(t);try{for(h.s();!(a=h.n()).done;)i=void 0,l=void 0,u=void 0,c=void 0,d=void 0,m=void 0,j=void 0,b=void 0,p=void 0,v=void 0,y=void 0,f=void 0,q=void 0,d=a.value,m=d.eventType,j=d.beaconUrls,b=d.startTimeInSeconds,p=d.startTime,v=d.durationInSeconds,y=Math.round(b),f=j[0],q=(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l||null===(u=l.ads)||void 0===u?void 0:u.adEventHandler)||null,y!=Math.round(n.currentTime())||Q.has(p)||(Q.set(p,!0),"function"==typeof q&&q({adsData:{eventType:m,startTimeInSeconds:b,startTime:p,durationInSeconds:v,ad:null==e||null===(c=e.ads)||void 0===c?void 0:c[s],adIndex:s}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",m,"Fired:".concat(Math.round(n.currentTime())),"AD_POD:",e),fetch(f))}catch(e){h.e(e)}finally{h.f()}},L=function(e){var r,o,t=Math.floor(e/60),s=Math.floor(e%60);return P(r="".concat(t,":")).call(r,A(o=s.toString()).call(o,2,"0"))},R=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=U(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),a=f(n,2),i=a[0],l=a[1];r[decodeURIComponent(i)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var u={},c=0,d=x(r);c<d.length;c++){var m=f(d[c],2),j=m[0],b=m[1];if(C(j).call(j,"ads."))u[j.replace(/^ads\./,"")]=b;else u[j]=b}return u},s=r.getPlayer(o),i=t.replace("dash","session").replace("master","session"),i=a.replaceMacros(i,o,{}),l=R(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:k({adsParams:D({},l)})});case 10:return u=e.sent,e.next=13,u.json();case 13:c=e.sent,d="https://"+new S(i).hostname,m=c.trackingUrl,j=c.manifestUrl,b=d+m,p=d+j,console.log("%c TRACKING URL","background: #bdf369; color: #000",b),null!=t&&w(t).call(t,".mpd")?(q=(null==s||null===(v=s.currentSource())||void 0===v?void 0:v.keySystemOptions)||null,a.loadVideo(o,{src:p,type:"application/x-mpegURL",keySystemOptions:q})):(V=(null==s||null===(O=s.currentSource())||void 0===O?void 0:O.keySystems)||null,a.loadVideo(o,{src:p,type:"application/x-mpegURL",keySystems:V})),s.one("loadeddata",(function(){_(b)})),_=function(){var e=h(g.mark((function e(t){var s,a,i,l,u,c,d,m,j,b,p,v,f,q,h,k,S;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return a=e.sent,e.next=5,a.json();case 5:i=e.sent,l=i.avails,u=[],c=r.getPlayer(o),d=c.controlBar.progressControl,m=d.seekBar.el(),I(l).call(l,(function(e){var r;T(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&u.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),M(u).call(u,(function(e){var r=e.markerPositionInSeconds,o=c.duration();if(!(r>o)){var t=r/o*100,s=document.createElement("div");s.className="vjs-seekbar-marker",s.style.left="".concat(t,"%"),s.style.position="absolute",s.style.top="0",s.style.bottom="0",s.style.width="2px",s.style.backgroundColor="#fecc09",s.style.left="".concat(t,"%"),s.style.pointerEvents="none",m.appendChild(s)}})),j=new E,b=-1,c.on("timeupdate",r.throttle((function(){var e=Math.floor(c.currentTime());if(e!==b){b=e;for(var r=!1,o=function(){var o=s[t],a=o.startTimeInSeconds,i=o.durationInSeconds,l=o.ads,u=Math.floor(a+i);if(e>=a&&e<=u){var c,m;r=!0,j.set(a,!0),n.keyboardManager.disable(),d.el().style.visibility="hidden";for(var b=e-a,v=0,f=0,q=0;q<l.length;q++){var h,g=null==l||null===(h=l[q])||void 0===h?void 0:h.durationInSeconds;if(b<v+g){f=q;break}v+=g}var S=l[f],x=b-v,C=Math.max(0,S.durationInSeconds-x),I=Math.round(C);p.style.display="block",k.textContent=P(c=P(m="".concat(f+1," of ")).call(m,l.length," • ")).call(c,L(I));var T=[];return M(l).call(l,(function(e){var r,o=B(r=e.trackingEvents).call(r,(function(e){var r;return w(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));T.push.apply(T,y(o))})),$(o,T,f),"break"}},t=0,s=u;t<s.length;t++){if("break"===o())break}r||(p.style.display="none",d.el().style.visibility="visible",n.keyboardManager.enable())}}),1e3)),c.on("seeked",(function(){for(var e=null,r=0,o=u;r<o.length;r++){var t=o[r],s=null==c?void 0:c.currentTime(),n=t.startTimeInSeconds,a=t.durationInSeconds;s>Math.floor(n+a)&&!j.has(n)&&(e=n,j.set(n,!0))}e&&(c.currentTime(e),console.log("seeking back to",e),e=null)})),(p=document.createElement("div")).className="ssai-ad-container",(v=document.createElement("div")).className="sponsored-adbox",(f=document.createElement("div")).className="sponsored-text",f.textContent="Sponsored Ad",(q=document.createElement("div")).className="ad-info-icon",h=r.parseSvgString(N.InfoIcon()),q.appendChild(h),v.append(f),v.append(q),(k=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(S=document.createElement("div")).className="ad-visit-advertiser",S.textContent="Visit Advertiser",(null===(s=document.getElementsByClassName("tvProviderImage"))||void 0===s?void 0:s[0])&&(S.style.right="8.6rem"),p.append(v),p.append(k),p.append(S),c.el().appendChild(p);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),Q=new E;case 24:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}var L=function(e,o){var t,n,a,i,l,u,c,d,m,j,b,p,v=r.getPlayer(e),y=(null==o?void 0:o.theme)||{},f=s.dom.$(".vjs-play-progress"),q=s.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");q&&(q.style.color="".concat(null===(t=window)||void 0===t||null===(n=t.app_data)||void 0===n||null===(a=n.appcmsMain)||void 0===a||null===(i=a.brand)||void 0===i||null===(l=i.cta)||void 0===l||null===(u=l.primary)||void 0===u?void 0:u.backgroundColor)),f&&(f.style.background="".concat(null===(c=window)||void 0===c||null===(d=c.app_data)||void 0===d||null===(m=d.appcmsMain)||void 0===m||null===(j=m.brand)||void 0===j||null===(b=j.cta)||void 0===b||null===(p=b.primary)||void 0===p?void 0:p.backgroundColor));var h=v.getChild("BigPlayButton")||null;(null==y?void 0:y.progressBarColor)&&f&&(f.style.background=y.progressBarColor),(null==y?void 0:y.playButtonBackgroundColor)&&h&&(h.el().style.background=y.playButtonBackgroundColor),(null==y?void 0:y.playButtonColor)&&q&&(q.style.color=y.playButtonColor),(null==y?void 0:y.playButtonType)&&("square"==(null==y?void 0:y.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(t,s){r.getPlayer(t).addClass("skin_vlone"),O(t,s),function(r,t){var s,i,l,u,c,d,m=null==t||null===(s=t.res)||void 0===s||null===(i=s.video)||void 0===i?void 0:i.isSSAIEnabled,j=a.getSource(null==t?void 0:t.res,r)||{},b=j.src;(null==t||null===(l=t.relatedVideos)||void 0===l||null===(u=l.content)||void 0===u?void 0:u.length)>0&&e.addVideoSelector(r,null==t?void 0:t.relatedVideos);null!=t&&null!==(c=t.series)&&void 0!==c&&c.enable&&e.addSeriesSelectorV2(r,t);(null==t||null===(d=t.streams)||void 0===d?void 0:d.length)>1&&e.addMulticamSelector(r,null==t?void 0:t.streams);o.addTVProviderImage(r,t),n.initialiseKeyboardEvents(r,t),m&&function(e,r){_.apply(this,arguments)}(r,b)}(t,s),L(t,s)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var e=require("./skin-b28fa2ec.js"),r=require("./features-
|
|
1
|
+
"use strict";require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var e=require("./skin-b28fa2ec.js"),r=require("./features-5dabcea5.js"),s=require("./renditions-24aeeea9.js"),o=require("./captions-d160e397.js");require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("video.js"),require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classCallCheck"),require("@babel/runtime-corejs3/helpers/createClass"),require("@babel/runtime-corejs3/helpers/inherits"),require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),require("@babel/runtime-corejs3/helpers/getPrototypeOf"),require("./generic-294ac08e.js"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("./browser-2df57579.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("./localisation-56e0a999.js"),require("@babel/runtime-corejs3/core-js-stable/instance/sort"),exports.initialiseSkin=function(i,t){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(i,t){e.getPlayer(i).on("loadeddata",(function(){var e;(null===(e=s.getRenditions(i))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(i,t),null!=t&&t.disableCaptions&&o.removeCaptions(i)}))}(i,t),function(s,o){var i=e.getPlayer(s);i.controls(!1),r.addDBClickFullScreen(s)}(i)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),o=require("@babel/runtime-corejs3/helpers/inherits"),t=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),i=require("@babel/runtime-corejs3/helpers/getPrototypeOf");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var a=require("video.js"),n=require("./icons-9e9e6364.js"),
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),o=require("@babel/runtime-corejs3/helpers/inherits"),t=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),i=require("@babel/runtime-corejs3/helpers/getPrototypeOf");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var a=require("video.js"),n=require("./icons-9e9e6364.js"),l=require("./generic-294ac08e.js"),c=require("./skin-b28fa2ec.js"),u=require("./autoNextVideo-5c61b9cb.js"),d=require("./localisation-56e0a999.js");function j(r){var s=m();return function(){var o,a=i(r);if(s){var n=i(this).constructor;o=e(a,arguments,n)}else o=a.apply(this,arguments);return t(this,o)}}function m(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(m=function(){return!!r})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("./browser-2df57579.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("./util-1f5115f2.js");var p=a.getComponent("Component"),b=function(e){o(i,p);var t=j(i);function i(e){var s,o,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,i),(a=t.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(s=n.related)||void 0===s?void 0:s.cb)||null,a.autoNext=(null==n||null===(o=n.related)||void 0===o?void 0:o.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(l.setVideoIdx(0),u.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return s(i,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var r=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(n.EpisodesSvg())});return a.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-fcdf11eb.js")})).then((function(e){var r=document.createElement("style");r.id="video-selection",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this,r=this.el(),s=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=s.classList)&&void 0!==o&&o.contains("hidden")?(c.closeOpenDrawers(),s.classList.remove("hidden"),r.classList.add("open"),s.style.right="0px",c.setUpdatedElHeight(e.playerId,s)):(s.classList.add("hidden"),r.classList.remove("open"),s.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height");s.style.height="".concat(t),a.dom.appendContent(r,s),o.style.overflow="hidden",this.addFunctionality(s),c.detectOrientationChange(this.playerId,s)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),o=a.dom.createEl("div",{className:"video-selector-head"}),t=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(n.crossIconSvg())});t.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var i=a.dom.createEl("div",{className:"video-selector-title",innerHTML:d.getLocalisation("relatedVideoTitle")||"Recommended"}),u=a.dom.createEl("div",{className:"video-selector-content"}),j=a.dom.createEl("div",{className:"video-container"}),m=function(e){var s,o,t,i,n,d=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(){l.setVideoIdx(e+1);for(var s=a.dom.$$(".recommended"),o=0;o<s.length;o++)s[o].style.border="none";c.highlightVideo_DEFAULTV2_TEMP(e),l.load(r.playerId,r.videos[e].id).then((function(e){r.cb&&r.cb(e)})).catch((function(e){r.cb&&r.cb(e)}))};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==r||null===(s=r.videos)||void 0===s||null===(o=s[e])||void 0===o?void 0:o.img)||(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==r||null===(n=r.videos[e])||void 0===n?void 0:n.title)||"")});a.dom.appendContent(d,m),a.dom.appendContent(d,b),a.dom.appendContent(j,d),a.dom.appendContent(u,j)},p=0;p<this.videos.length;p++)m(p);a.dom.appendContent(o,t),a.dom.appendContent(o,i),a.dom.appendContent(e,o),a.dom.appendContent(e,u),c.handleDrawerResizing(this.playerId,e)}}]),i}();exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),o=require("@babel/runtime-corejs3/helpers/inherits"),t=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),i=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),a=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),n=require("@babel/runtime-corejs3/core-js-stable/instance/trim");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.split.js");var l=require("video.js"),c=require("./icons-9e9e6364.js"),u=require("./generic-294ac08e.js"),d=require("./skin-b28fa2ec.js"),j=require("./autoNextVideo-
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),o=require("@babel/runtime-corejs3/helpers/inherits"),t=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),i=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),a=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),n=require("@babel/runtime-corejs3/core-js-stable/instance/trim");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.split.js");var l=require("video.js"),c=require("./icons-9e9e6364.js"),u=require("./generic-294ac08e.js"),d=require("./skin-b28fa2ec.js"),j=require("./autoNextVideo-5c61b9cb.js"),m=require("./localisation-56e0a999.js");function p(r){var s=b();return function(){var o,a=i(r);if(s){var n=i(this).constructor;o=e(a,arguments,n)}else o=a.apply(this,arguments);return t(this,o)}}function b(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(b=function(){return!!r})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.string.replace.js"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-2df57579.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("./util-1f5115f2.js");var y=l.getComponent("Component"),v=function(e){o(i,y);var t=p(i);function i(e){var s,o,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,i),(a=t.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(s=n.related)||void 0===s?void 0:s.cb)||null,a.autoNext=(null==n||null===(o=n.related)||void 0===o?void 0:o.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(u.setVideoIdx(0),j.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return s(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var r=l.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(c.PlaylistIcon())});return l.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-b6e03076.js")})).then((function(e){var r=document.createElement("style");r.id="video-selection",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this,r=this.el(),s=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=s.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),s.classList.remove("hidden"),r.classList.add("open"),d.setUpdatedElHeight(e.playerId,s)):(s.classList.add("hidden"),r.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height");s.style.height="".concat(t),l.dom.appendContent(r,s),o.style.overflow="hidden",this.addFunctionality(s),d.detectOrientationChange(this.playerId,s)}}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),t=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(c.crossIconSvg())});t.onclick=function(){e.classList.add("hidden"),s.classList.remove("open")};for(var i=l.dom.createEl("div",{className:"video-selector-title",innerHTML:m.getLocalisation("relatedVideoTitle")||"Recommended"}),j=l.dom.createEl("div",{className:"video-selector-content"}),p=l.dom.createEl("div",{className:"video-container"}),b=function(e){var s,o,t,i,c,m,b,y,v,q,h=l.dom.createEl("div",{className:"video -".concat(e)}),f=l.dom.createEl("div",{className:"recommended -".concat(e)});f.setAttribute("video-idx",e),f.onclick=function(){u.setVideoIdx(e+1);for(var s=l.dom.$$(".recommended"),o=0;o<s.length;o++)s[o].style.border="none";d.highlightVideo(e),u.load(r.playerId,r.videos[e].id).then((function(e){r.cb&&r.cb(e)})).catch((function(e){r.cb&&r.cb(e)}))};var g=document.createElement("img");g.className="related-thumbnail-image",g.src="".concat(d.impolicy16x9(null==r||null===(s=r.videos)||void 0===s||null===(o=s[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(t=window)||void 0===t||null===(i=t.app_data)||void 0===i||null===(c=i.appcmsMain)||void 0===c||null===(m=c.images)||void 0===m?void 0:m.placeholderCover)),g.alt="".concat((null==r||null===(b=r.videos[e])||void 0===b?void 0:a(y=n(v=b.title).call(v).split(/\s+/)).call(y,0,2).join(" "))||""),f.append(g);var C=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==r||null===(q=r.videos[e])||void 0===q?void 0:q.title)||"")});l.dom.appendContent(h,f),l.dom.appendContent(h,C),l.dom.appendContent(p,h),l.dom.appendContent(j,p)},y=0;y<this.videos.length;y++)b(y);l.dom.appendContent(o,i),l.dom.appendContent(o,t),l.dom.appendContent(e,o),l.dom.appendContent(e,j),d.handleDrawerResizing(this.playerId,e)}}]),i}();exports.default=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"@babel/runtime-corejs3/core-js-stable/set-timeout";import{G as t,f as o,Q as i,P as e,R as a}from"./generic-979547e7.js";import{a as r}from"./util-1b598a26.js";import{g as c,h as s}from"./skin-43755201.js";var u,f=0,l=0,m=function(m){clearTimeout(f);var p=null==m?void 0:m.content;u=null==m?void 0:m.cb;var v=m.playerId;r(v,(function(){var r=c(v);0!==(null==r?void 0:r.currentTime())&&((l=e())>p.length-1||(a(l+1),t(v,p[l].id).then((function(n){s(l,v),o(n.response),l++,h(n)})).catch((function(t){h(t),s(l,v),l++,f=n((function(){i(v)&&d(l,v,p)}),5e3)}))))}))},d=function o(i,e,r,c){l=i,i>r.length-1||(a(l+1),t(e,r[i].id).then((function(n){s(l,e),l++,h(n)})).catch((function(t){h(t),n((function(){s(l,e),l++,o(l,e,r)}),5e3)})))},h=function(n){u&&u(n)};export{m as a,d as s};
|
package/esm/bundle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import n from"@babel/runtime-corejs3/helpers/createClass";import a from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import i from"@babel/runtime-corejs3/core-js-stable/instance/map";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import c from"video.js";import{C as s,f as l}from"./icons-68d3a609.js";import{g as d,d as m,e as p}from"./captions-2bcc449f.js";import{e as u,s as v,f,j as h}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";function y(t){var n=
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import n from"@babel/runtime-corejs3/helpers/createClass";import a from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import i from"@babel/runtime-corejs3/core-js-stable/instance/map";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import c from"video.js";import{C as s,f as l}from"./icons-68d3a609.js";import{g as d,d as m,e as p}from"./captions-2bcc449f.js";import{e as u,s as v,f,j as h}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";function y(t){var n=g();return function(){var a,i=r(t);if(n){var c=r(this).constructor;a=e(i,arguments,c)}else a=i.apply(this,arguments);return o(this,a)}}function g(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var b=c.getComponent("Component"),C=function(e){a(r,b);var o=y(r);function r(e){var n,a,i,c,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,r),(c=o.call(this,e,s)).playerId=s.playerId,c.seriesData=s.sres,c.currentVideoData=s.res,c.initialiseStructure(),c.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(i=a.style)||void 0===i||i.setProperty("display","none","important"),c}return n(r,[{key:"createEl",value:function(){var e=c.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=c.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(s())});return c.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./caption-settings-cb47408f.js").then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=d(this.playerId);null==t||i(t).call(t,(function(t){return m(e.playerId,t.id)}));var n=this.el(),a=c.dom.createEl("div",{className:"caption-selection-container hidden"});c.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(u(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",v(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),c.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),f(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=c.dom.createEl("div",{className:"caption-selector-head"}),a=c.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(l())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=c.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=c.dom.createEl("div",{className:"caption-selector-content"}),i=c.dom.createEl("div",{className:"caption-container"}),s=this.createLanguageContanier();c.dom.appendContent(i,s),c.dom.appendContent(n,a),c.dom.appendContent(n,o),c.dom.appendContent(e,n),c.dom.appendContent(e,r),c.dom.appendContent(r,i),h(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=c.dom.createEl("div",{className:"caption-language-container"}),n=c.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});c.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=c.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important"));var r=d(e.playerId);i(r).call(r,(function(t){return m(e.playerId,t.id)}))},c.dom.appendContent(a,r),c.dom.appendContent(a,o),c.dom.appendContent(t,a);for(var s=d(this.playerId),l=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==s||null===(a=s[n])||void 0===a?void 0:a.label;var i=c.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});i.onchange=function(t){p(e.playerId,s[n].id)},i.setAttribute("type","radio"),c.dom.appendContent(o,i),c.dom.appendContent(o,r),c.dom.appendContent(t,o)},u=0;u<s.length;u++)l(u);return t}},{key:"createFontSizeContainer",value:function(){var e=c.dom.createEl("div",{className:"caption-font-container"}),t=c.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});c.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var i=document.createElement("div");i.className="fontsize - ".concat(a),i.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var s=c.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});s.setAttribute("type","radio"),s.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},c.dom.appendContent(r,s),c.dom.appendContent(r,i),c.dom.appendContent(e,r)}return e}}]),r}();export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/core-js-stable/object/keys";import r from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import o from"@babel/runtime-corejs3/core-js-stable/instance/filter";import n from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import l from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import i from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import a from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import s from"@babel/runtime-corejs3/core-js-stable/object/define-property";import c from"@babel/runtime-corejs3/helpers/defineProperty";import d from"@babel/runtime-corejs3/helpers/classCallCheck";import u from"@babel/runtime-corejs3/helpers/createClass";import m from"@babel/runtime-corejs3/helpers/inherits";import p from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import f from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import h from"video.js";import{E as v,B as g}from"./generic-979547e7.js";import{g as b}from"./renditions-
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/core-js-stable/object/keys";import r from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import o from"@babel/runtime-corejs3/core-js-stable/instance/filter";import n from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import l from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import i from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import a from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import s from"@babel/runtime-corejs3/core-js-stable/object/define-property";import c from"@babel/runtime-corejs3/helpers/defineProperty";import d from"@babel/runtime-corejs3/helpers/classCallCheck";import u from"@babel/runtime-corejs3/helpers/createClass";import m from"@babel/runtime-corejs3/helpers/inherits";import p from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import f from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import h from"video.js";import{E as v,B as g}from"./generic-979547e7.js";import{g as b}from"./renditions-7f946d48.js";import{g as C,p as j}from"./skin-43755201.js";import{g as y}from"./localisation-0bf399a1.js";function B(e,l){var i=t(e);if(r){var a=r(e);l&&(a=o(a).call(a,(function(t){return n(e,t).enumerable}))),i.push.apply(i,a)}return i}function k(e){for(var t=1;t<arguments.length;t++){var r,o,d=null!=arguments[t]?arguments[t]:{};t%2?l(r=B(Object(d),!0)).call(r,(function(t){c(e,t,d[t])})):i?a(e,i(d)):l(o=B(Object(d))).call(o,(function(t){s(e,t,n(d,t))}))}return e}function S(t){var r=E();return function(){var o,n=f(t);if(r){var l=f(this).constructor;o=e(n,arguments,l)}else o=n.apply(this,arguments);return p(this,o)}}function E(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}var I=function(e){var t=function(e){m(o,e);var t=S(o);function o(e,r){var n;d(this,o);var l=(n=t.call(this,e,r)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=y("slowMoText")||"Slow Mo",n}return u(o,[{key:"handleClick",value:function(){1==r.playbackRate()?(r.playbackRate(.5),this.el().style.background="darkgray"):(r.playbackRate(1),this.el().style.background="none")}}]),o}(h.getComponent("Button"));h.registerComponent("MyButton",t);var r=h(e);r.getChild("controlBar").addChild("myButton",{},2)},M=function(e,t,r){var o=function(t){m(n,t);var o=S(n);function n(e,t){var l;d(this,n);var i=(l=o.call(this,e,t)).el_;i.classList.add("vjs-rewind-button");var a=j(r);return i.append(a),l}return u(n,[{key:"handleClick",value:function(){v(e,10)}}]),n}(h.getComponent("Button"));h.registerComponent("MyButton",o),h(e).getChild("controlBar").addChild("myButton",{},1)},w=function(e,t,r){var o=function(t){m(n,t);var o=S(n);function n(e,t){var l;d(this,n);var i=(l=o.call(this,e,t)).el_;i.classList.add("vjs-skip-button");var a=j(r);return i.append(a),l}return u(n,[{key:"handleClick",value:function(){g(e,10)}}]),n}(h.getComponent("Button"));h.registerComponent("MyButton",o),h(e).getChild("controlBar").addChild("myButton",{},1)},L=function(e,t,r){import("./resolution-de9dd282.js").then((function(o){var n=o.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=C(e),i=b(e);(null==i?void 0:i.length)>0&&(h.registerComponent("resolutionModule",n),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:i},l.controlBar.children().length-4))}))},N=function(e,t,r){import("./nextEpisodeButton-518b5e22.js").then((function(o){var n=o.default,l=C(r);h.registerComponent("nextEpisodeButtonModule",n),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},l.controlBar.children().length-5)}))},_=function(e,t,r){import("./series-81680634.js").then((function(o){var n=o.seriesModule,l=C(e);h.registerComponent("seriesModule",n),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var i=document.querySelectorAll(".season-title-sdk"),a=function(e){i[e].addEventListener("click",(function(){t[e]&&o.handleSeasonChange(t[e],e,l,r)}))},s=0;s<i.length;s++)a(s)}))},x=function(e,t){import("./videoSelector-d11c7ff1.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("videoSelector",o),n.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},n.controlBar.children().length-3)}))},T=function(e,t){import("./caption-settings-088e70f5.js").then((function(r){var o,n,l,i,a=r.default,s=C(e);h.registerComponent("captionSelector",a),null===(o=document)||void 0===o||null===(n=o.getElementById(e))||void 0===n||null===(l=n.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),s&&s.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},s.controlBar.children().length-3)}))},O=function(e,t){import("./settings-icon-cccc4c93.js").then((function(r){var o,n,l,i,a=r.default,s=C(e);h.registerComponent("settingsSelector",a),null===(o=document)||void 0===o||null===(n=o.getElementById(e))||void 0===n||null===(l=n.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),s&&s.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},s.controlBar.children().length-3)}))},R=function(e,t){import("./playlist-603ebd69.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("playlistSelector",o),n.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},n.controlBar.children().length-3)}))},V=function(e,t){import("./series-v2-b59f854c.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("seriesV2",o),n.getChild("controlBar").addChild("seriesV2",k({playerId:e},t),n.controlBar.children().length-3)}))},q=function(e,t){import("./multicamv2-10e8f652.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("streamSelector",o),n.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},n.controlBar.children().length-4)}))},H=function(e,t){var r=C(e).el(),o=h.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(o)},D=function(e){var t=C(e).el(),r=0,o=C(e);o.addChild("fullscreenToggle");var n=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};o.el().addEventListener("dblclick",n),window._multiplayer_dbClickHandler=n;o.el().addEventListener("touchend",(function(){var e=(new Date).getTime(),o=e-r;if(o<300&&o>0){var n,l=null==t||null===(n=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===n?void 0:n[0];l&&l.click()}r=e})),window._multiplayer_dbTapHandler=n},P=function(e,t){import("./videoSelector-08019968.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("videoSelector",o),n.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},n.controlBar.children().length-3)}))},A=function(e,t){import("./series-v2-a5c6cd10.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("seriesV2",o),n.getChild("controlBar").addChild("seriesV2",k({playerId:e},t),n.controlBar.children().length-3)}))},z=function(e,t){import("./multicamv2-1dbc6fd3.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("streamSelector",o),n.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},n.controlBar.children().length-4)}))};export{L as a,_ as b,N as c,w as d,M as e,O as f,T as g,H as h,I as i,P as j,z as k,R as l,A as m,D as n,x as o,V as p,q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/helpers/toConsumableArray";import t from"@babel/runtime-corejs3/core-js-stable/instance/map";import n from"@babel/runtime-corejs3/core-js-stable/instance/filter";import{g as r}from"./skin-43755201.js";import{P as o,b as i,d as a}from"./generic-979547e7.js";import{s as l}from"./autoNextVideo-fc102a98.js";import s from"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import u from"@babel/runtime-corejs3/core-js-stable/instance/slice";import c from"@babel/runtime-corejs3/core-js-stable/parse-float";import m from"@babel/runtime-corejs3/core-js-stable/instance/index-of";import d from"video.js";import p from"@babel/runtime-corejs3/helpers/asyncToGenerator";import v from"@babel/runtime-corejs3/regenerator";import f from"@babel/runtime-corejs3/core-js-stable/instance/includes";import b from"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import g from"@babel/runtime-corejs3/helpers/defineProperty";import h from"@babel/runtime-corejs3/helpers/slicedToArray";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import x from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import y from"@babel/runtime-corejs3/core-js-stable/instance/trim";import j from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import w from"@babel/runtime-corejs3/core-js-stable/parse-int";import E from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import N from"@babel/runtime-corejs3/core-js-stable/promise";import C from"@babel/runtime-corejs3/core-js-stable/instance/flat";var k,T,A,L,B=[],M=function(a,l){var s;if(null!=l&&null!==(s=l.series)&&void 0!==s&&s.enable){var u;B=[];var c=i();null==c||t(c).call(c,(function(t){var n;return(n=B).push.apply(n,e(t.episodes))})),null==l||null===(u=l.series)||void 0===u||u.cb}else{var m,d;B=(null==l||null===(m=l.relatedVideos)||void 0===m?void 0:m.content)||[],null==l||null===(d=l.relatedVideos)||void 0===d||d.cb}var p=r(a);p.on("timeupdate",(function(){var e,t,n=Math.floor(p.currentTime()),r=p.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&o()<=(null===(t=B)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}));var v,f=n(B).call(B,(function(e,t){return t==o()}));if((null==f?void 0:f.length)>0)if(null!==(v=document.getElementsByClassName("next-ep-preview"))&&void 0!==v&&v[0]){var b,g,h,x,y,j,w,E,N,C,k,T;(null===(b=document.getElementsByClassName("next-ep-preview"))||void 0===b?void 0:b[0]).style.visibility="hidden";var A=null===(g=document.getElementsByClassName("next-ep-title"))||void 0===g?void 0:g[0],L=null===(h=document.getElementsByClassName("next-ep-img"))||void 0===h?void 0:h[0],M=null===(x=document.getElementsByClassName("next-ep-content"))||void 0===x?void 0:x[0],S=null===(y=f[0])||void 0===y?void 0:y.title;(null===(j=S)||void 0===j?void 0:j.length)>60&&(S=S.substr(0,60)+"..."),A.textContent="".concat(S),L.src=(null===(w=f[0])||void 0===w||null===(E=w.gist)||void 0===E||null===(N=E.imageGist)||void 0===N?void 0:N.r16x9)||(null==f||null===(C=f[0])||void 0===C?void 0:C.img)||(null===(k=window)||void 0===k||null===(T=k.customData)||void 0===T?void 0:T.fallbackImage),M.onclick=function(){return I(a)}}else{var P,R,X,O,$,D,U,G,F=document.createElement("div");F.className="next-ep-preview",F.style.visibility="hidden",document.getElementById(a).append(F);var V=document.createElement("div");V.className="next-ep-header",V.textContent="Next up";var _=null===(P=f[0])||void 0===P?void 0:P.title,q=document.createElement("img");q.className="next-ep-img",q.src=(null===(R=f[0])||void 0===R||null===(X=R.gist)||void 0===X||null===(O=X.imageGist)||void 0===O?void 0:O.r16x9)||(null==f||null===($=f[0])||void 0===$?void 0:$.img)||(null===(D=window)||void 0===D||null===(U=D.customData)||void 0===U?void 0:U.fallbackImage);var H=document.createElement("div");H.className="next-ep-title",(null===(G=_)||void 0===G?void 0:G.length)>60&&(_=_.substr(0,60)+"..."),H.textContent="".concat(_);var W=document.createElement("div");W.className="next-ep-content",W.append(q),W.append(H),W.onclick=function(){return I(a)},F.append(V),F.append(W)}},I=function(e,t){var n=r(e),i=Math.floor(n.currentTime());if(Math.floor(n.duration())!=i){n.pause(e);var a=o();l(a,e,B)}};function S(e){var t=e.split("\n"),n=[];return x(t).call(t,(function(e){if(e=y(e).call(e),j(e).call(e,"#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};x(t).call(t,(function(e){f(e).call(e,"RESOLUTION")&&(r.resolution=e.split("=")[1]),f(e).call(e,"URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))})),n.push(r)}})),n}function P(e){return R.apply(this,arguments)}function R(){return(R=p(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new N((function(e){var n=new Image;n.src=t.uri,n.crossOrigin="Anonymous";var r=[],o=t.layout.split("x"),i=h(o,2),a=i[0],l=i[1];n.onload=function(){var o=document.createElement("canvas");o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0,o.width,o.height);for(var i=o.width/l,s=o.height/a,u=0;u<a;u++)for(var c=0;c<l;c++){var m=document.createElement("canvas");m.width=i,m.height=s,m.getContext("2d").drawImage(o,c*i,u*s,i,s,0,0,i,s);var d=m.toDataURL("image/png");r.push({uri:d,duration:t.duration})}e(r)},n.onerror=function(n){var r,o,i,a;e([{duration:t.duration,uri:"".concat(null===(r=window)||void 0===r||null===(o=r.app_data)||void 0===o||null===(i=o.appcmsMain)||void 0===i||null===(a=i.images)||void 0===a?void 0:a.placeholderCover)}])}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return O.apply(this,arguments)}function O(){return(O=p(v.mark((function e(t){var n,r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:return r=e.sent,e.abrupt("return",S(r));case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching the M3U8 manifest:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function $(e){return D.apply(this,arguments)}function D(){return(D=p(v.mark((function e(n){var r,o,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=C,e.next=3,N.all(t(n).call(n,(function(e){return P(e)})));case 3:return e.t1=r=e.sent,o=(0,e.t0)(e.t1).call(r),i={},t(o).call(o,(function(e,t){var n,r=e.duration;i[r*t]={src:e.uri,style:(n={left:"-60px",height:"85px",width:"130px"},g(n,"left","-60px"),g(n,"border","1px solid transparent"),g(n,"borderRadius","4px"),n)}})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}k={0:{src:"example-thumbnail.png"}},T=function e(){var t,n,r,o,i;for(r in n=(t=u(Array.prototype).call(arguments)).shift()||{},t)for(i in o=t[r])o.hasOwnProperty(i)&&("object"===s(o[i])?n[i]=e(n[i],o[i]):n[i]=o[i]);return n},A=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},L=function e(t){return"HTML"!==t.nodeName&&"static"===A(t)("position")?e(t.offsetParent):t},d.registerPlugin("thumbnails",(function(e){var t,n,r,o,i,a,l,s;function u(){document.removeEventListener("pointermove",l),document.removeEventListener("pointerup",u),s()}n=T({},k,e),o=this,function(e){var t,n,r;-1!==m(e=navigator.userAgent.toLowerCase()).call(e,"android")&&(n=function(){t.addClass("fake-active")},r=function(){t.removeClass("fake-active")},(t=o.controlBar.progressControl).on("touchstart",n),t.on("touchend",r),t.on("touchcancel",r))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",r=document.createElement("img"),t.appendChild(r),r.src=n[0].src,r.className="vjs-thumbnail",T(r.style,n[0].style),r.style.left||r.style.right||(r.onload=function(){r.style.left=-r.naturalWidth/2+"px"}),a=o.duration(),o.on("durationchange",(function(e){a=o.duration()})),o.on("loadedmetadata",(function(e){a=o.duration()})),(i=o.controlBar.progressControl).el().appendChild(t),l=function(e){var o,l,s,u,m,d,p,v,f,b;for(l in s=0,f=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,p=((b=L(i.el()).getBoundingClientRect()).width||b.right)+f,d=e.pageX,e.changedTouches&&(d=e.changedTouches[0].pageX),u=d||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,u-=L(i.el()).getBoundingClientRect().left+f,o=Math.floor((u-i.el().offsetLeft)/i.width()*a),n)o>l&&(s=Math.max(s,l));(m=n[s]).src&&r.src!=m.src&&(r.src=m.src),m.style&&r.style!=m.style&&T(r.style,m.style),u+(v=function(e,t){var n;return t?c(t):"auto"!==(n=A(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?c(n[1])-c(n[3]):0}(r,m.width||n[0].width)/2)>p?u-=u+v-p:u<v&&(u=v),t.style.left=u+"px"},i.on("mousemove",l),i.on("touchmove",l),i.on("pointerdown",(function(e){document.addEventListener("pointermove",l),document.addEventListener("pointerup",u)})),s=function(e){t.style.left="-1000px"},i.on("mouseout",s),i.on("touchcancel",s),i.on("touchend",s),o.on("userinactive",s)}));var U=function(){var e=p(v.mark((function e(t,n){var r,o,i,a;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:return o=e.sent,i=o.split("\n"),a=[],x(i).call(i,(function(e,n){var r;e=y(e).call(e);var o,l={resolution:null,duration:null,uri:null,layout:null};n>0&&f(r=i[n-1]).call(r,"#EXT-X-TILES")&&(i[n-1]=i[n-1].split(","),l.uri=t+e,x(o=i[n-1]).call(o,(function(e){var t,n=f(e).call(e,":")?e.split(":")[1]:e;x(t=n.split(",")).call(t,(function(e){var t=e.split("="),n=h(t,2),r=n[0],o=n[1];r=r.toLowerCase(),l[r]=o}))})),a.push(l))})),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function G(e,t){return F.apply(this,arguments)}function F(){return(F=p(v.mark((function e(t,n){var o,i,l,s,c,d,p,f,b,g,x,y,j,E,N,C,k,T,A,L,B,M,I,S,P,R,X,O,$,D,U,G,F,q,H;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=r(n),s=u(o=t.split("/")).call(o,0,m(i=t.split("/")).call(i,"dash")+1).join("/")||t,e.prev=2,e.next=5,fetch(t);case 5:return f=e.sent,e.next=8,f.text();case 8:b=e.sent,g=new DOMParser,x=g.parseFromString(b,"application/xml"),y=(null==l?void 0:l.duration())||(null===(c=a())||void 0===c||null===(d=c.video)||void 0===d?void 0:d.runtime),j=(null==x||null===(p=x.querySelector("MPD > BaseURL"))||void 0===p?void 0:p.textContent)||s+"/",E=x.getElementsByTagName("AdaptationSet"),N=0;case 15:if(!(N<E.length)){e.next=43;break}if(("image"!==(C=E[N]).getAttribute("contentType")||"image/png"!==C.getAttribute("mimeType"))&&"image/jpeg"!==C.getAttribute("mimeType")){e.next=40;break}if(k=C.getElementsByTagName("SegmentTemplate")[0],T=C.getElementsByTagName("Representation")[0],A=T.getElementsByTagName("EssentialProperty")[0],L=A.getAttribute("value"),B=null==L?void 0:L.split("x"),M=h(B,2),I=M[0],S=M[1],!k){e.next=40;break}if(k.getAttribute("media"),P=k.getAttribute("duration"),R=k.getAttribute("timescale"),X=(R?P/R:P)/(I*S),O=T.getAttribute("id"),$=Math.round(y/X),D=Math.ceil($/(I*S)),U=k.getAttribute("media"),G=w(k.getAttribute("startNumber"))||0,!isNaN(w(D))){e.next=36;break}return e.abrupt("return");case 36:for(F=[],q=V(U),N=0;N<D;N++)H=q?_(q,N+G):U,F.push({duration:X,layout:L,uri:j+H.replace("$Number$",N+G).replace("$RepresentationID$",O)});return e.abrupt("return",F);case 40:N++,e.next=15;break;case 43:return console.log("No trickplay segment found."),e.abrupt("return",null);case 47:e.prev=47,e.t0=e.catch(2),console.error("Error fetching or parsing MPD:",e.t0);case 50:case"end":return e.stop()}}),e,null,[[2,47]])})))).apply(this,arguments)}function V(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function _(e,t){var n,r=e.match(/%0(\d+)d/);if(!r)return e;var o=w(r[1],10),i=E(n=String(t)).call(n,o,"0");return e.replace(/\$Number%0\d+d\$/,i)}function q(e){return H.apply(this,arguments)}function H(){return(H=p(v.mark((function e(t){var n,o,i,a,l,s,u,c,m,d,p,g,h,x,y,j;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r(t),u=s.currentSource(),c=u.src,c=null!==(n=c)&&void 0!==n&&f(n).call(n,"blob")?null===(o=window)||void 0===o||null===(i=o.player)||void 0===i?void 0:i.getSource():c,null===(a=c)||void 0===a||!f(a).call(a,"m3u8")){e.next=19;break}return e.next=6,X(c);case 6:if(!((null==(m=e.sent)?void 0:m.length)>0)){e.next=17;break}return d=(null==m?void 0:m[0])||null,p=d.uri,g=c.substring(0,b(c).call(c,"/"))+"/",e.next=12,U(g,p);case 12:return h=e.sent,e.next=15,$(h);case 15:x=e.sent,s.thumbnails(x);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!f(l).call(l,"mpd")){e.next=28;break}return e.next=22,G(c,t);case 22:if(!((null==(y=e.sent)?void 0:y.length)>0)){e.next=28;break}return e.next=26,$(y);case 26:j=e.sent,s.thumbnails(j);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e,t){var n=r(e),o=null==t?void 0:t.tvProviderLogoUrl;if(o){var i=document.createElement("div");i.className="tvProviderImage";var a=document.createElement("img");a.src="".concat(o),a.alt="Provider Image",i.append(a),n.el().appendChild(i),n.on("useractive",(function(){i.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||i.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}}export{M as a,W as b,q as i};
|
|
1
|
+
import e from"@babel/runtime-corejs3/helpers/toConsumableArray";import t from"@babel/runtime-corejs3/core-js-stable/instance/map";import n from"@babel/runtime-corejs3/core-js-stable/instance/filter";import{g as r}from"./skin-43755201.js";import{P as o,b as i,d as a}from"./generic-979547e7.js";import{s as l}from"./autoNextVideo-56f70964.js";import s from"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import u from"@babel/runtime-corejs3/core-js-stable/instance/slice";import c from"@babel/runtime-corejs3/core-js-stable/parse-float";import d from"@babel/runtime-corejs3/core-js-stable/instance/index-of";import m from"video.js";import p from"@babel/runtime-corejs3/helpers/asyncToGenerator";import v from"@babel/runtime-corejs3/regenerator";import f from"@babel/runtime-corejs3/core-js-stable/instance/includes";import b from"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import g from"@babel/runtime-corejs3/helpers/defineProperty";import h from"@babel/runtime-corejs3/helpers/slicedToArray";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import x from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import y from"@babel/runtime-corejs3/core-js-stable/instance/trim";import j from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import w from"@babel/runtime-corejs3/core-js-stable/parse-int";import E from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import N from"@babel/runtime-corejs3/core-js-stable/promise";import C from"@babel/runtime-corejs3/core-js-stable/instance/flat";var k,T,A,L,B=[],M=function(a,l){var s;if(null!=l&&null!==(s=l.series)&&void 0!==s&&s.enable){var u;B=[];var c=i();null==c||t(c).call(c,(function(t){var n;return(n=B).push.apply(n,e(t.episodes))})),null==l||null===(u=l.series)||void 0===u||u.cb}else{var d,m;B=(null==l||null===(d=l.relatedVideos)||void 0===d?void 0:d.content)||[],null==l||null===(m=l.relatedVideos)||void 0===m||m.cb}var p=r(a);p.on("timeupdate",(function(){var e,t,n=Math.floor(p.currentTime()),r=p.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&o()<=(null===(t=B)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}));var v,f=n(B).call(B,(function(e,t){return t==o()}));if((null==f?void 0:f.length)>0)if(null!==(v=document.getElementsByClassName("next-ep-preview"))&&void 0!==v&&v[0]){var b,g,h,x,y,j,w,E,N,C,k,T;(null===(b=document.getElementsByClassName("next-ep-preview"))||void 0===b?void 0:b[0]).style.visibility="hidden";var A=null===(g=document.getElementsByClassName("next-ep-title"))||void 0===g?void 0:g[0],L=null===(h=document.getElementsByClassName("next-ep-img"))||void 0===h?void 0:h[0],M=null===(x=document.getElementsByClassName("next-ep-content"))||void 0===x?void 0:x[0],S=null===(y=f[0])||void 0===y?void 0:y.title;(null===(j=S)||void 0===j?void 0:j.length)>60&&(S=S.substr(0,60)+"..."),A.textContent="".concat(S),L.src=(null===(w=f[0])||void 0===w||null===(E=w.gist)||void 0===E||null===(N=E.imageGist)||void 0===N?void 0:N.r16x9)||(null==f||null===(C=f[0])||void 0===C?void 0:C.img)||(null===(k=window)||void 0===k||null===(T=k.customData)||void 0===T?void 0:T.fallbackImage),M.onclick=function(){return I(a)}}else{var P,R,X,O,$,D,U,G,F=document.createElement("div");F.className="next-ep-preview",F.style.visibility="hidden",document.getElementById(a).append(F);var V=document.createElement("div");V.className="next-ep-header",V.textContent="Next up";var _=null===(P=f[0])||void 0===P?void 0:P.title,q=document.createElement("img");q.className="next-ep-img",q.src=(null===(R=f[0])||void 0===R||null===(X=R.gist)||void 0===X||null===(O=X.imageGist)||void 0===O?void 0:O.r16x9)||(null==f||null===($=f[0])||void 0===$?void 0:$.img)||(null===(D=window)||void 0===D||null===(U=D.customData)||void 0===U?void 0:U.fallbackImage);var H=document.createElement("div");H.className="next-ep-title",(null===(G=_)||void 0===G?void 0:G.length)>60&&(_=_.substr(0,60)+"..."),H.textContent="".concat(_);var W=document.createElement("div");W.className="next-ep-content",W.append(q),W.append(H),W.onclick=function(){return I(a)},F.append(V),F.append(W)}},I=function(e,t){var n=r(e),i=Math.floor(n.currentTime());if(Math.floor(n.duration())!=i){n.pause(e);var a=o();l(a,e,B)}};function S(e){var t=e.split("\n"),n=[];return x(t).call(t,(function(e){if(e=y(e).call(e),j(e).call(e,"#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};x(t).call(t,(function(e){f(e).call(e,"RESOLUTION")&&(r.resolution=e.split("=")[1]),f(e).call(e,"URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))})),n.push(r)}})),n}function P(e){return R.apply(this,arguments)}function R(){return(R=p(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new N((function(e){var n=new Image;n.src=t.uri,n.crossOrigin="Anonymous";var r=[],o=t.layout.split("x"),i=h(o,2),a=i[0],l=i[1];n.onload=function(){var o=document.createElement("canvas");o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0,o.width,o.height);for(var i=o.width/l,s=o.height/a,u=0;u<a;u++)for(var c=0;c<l;c++){var d=document.createElement("canvas");d.width=i,d.height=s,d.getContext("2d").drawImage(o,c*i,u*s,i,s,0,0,i,s);var m=d.toDataURL("image/png");r.push({uri:m,duration:t.duration})}e(r)},n.onerror=function(n){var r,o,i,a;e([{duration:t.duration,uri:"".concat(null===(r=window)||void 0===r||null===(o=r.app_data)||void 0===o||null===(i=o.appcmsMain)||void 0===i||null===(a=i.images)||void 0===a?void 0:a.placeholderCover)}])}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return O.apply(this,arguments)}function O(){return(O=p(v.mark((function e(t){var n,r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:return r=e.sent,e.abrupt("return",S(r));case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching the M3U8 manifest:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function $(e){return D.apply(this,arguments)}function D(){return(D=p(v.mark((function e(n){var r,o,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=C,e.next=3,N.all(t(n).call(n,(function(e){return P(e)})));case 3:return e.t1=r=e.sent,o=(0,e.t0)(e.t1).call(r),i={},t(o).call(o,(function(e,t){var n,r=e.duration;i[r*t]={src:e.uri,style:(n={left:"-60px",height:"85px",width:"130px"},g(n,"left","-60px"),g(n,"border","1px solid transparent"),g(n,"borderRadius","4px"),n)}})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}k={0:{src:"example-thumbnail.png"}},T=function e(){var t,n,r,o,i;for(r in n=(t=u(Array.prototype).call(arguments)).shift()||{},t)for(i in o=t[r])o.hasOwnProperty(i)&&("object"===s(o[i])?n[i]=e(n[i],o[i]):n[i]=o[i]);return n},A=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},L=function e(t){return"HTML"!==t.nodeName&&"static"===A(t)("position")?e(t.offsetParent):t},m.registerPlugin("thumbnails",(function(e){var t,n,r,o,i,a,l,s;function u(){document.removeEventListener("pointermove",l),document.removeEventListener("pointerup",u),s()}n=T({},k,e),o=this,function(e){var t,n,r;-1!==d(e=navigator.userAgent.toLowerCase()).call(e,"android")&&(n=function(){t.addClass("fake-active")},r=function(){t.removeClass("fake-active")},(t=o.controlBar.progressControl).on("touchstart",n),t.on("touchend",r),t.on("touchcancel",r))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",r=document.createElement("img"),t.appendChild(r),r.src=n[0].src,r.className="vjs-thumbnail",T(r.style,n[0].style),r.style.left||r.style.right||(r.onload=function(){r.style.left=-r.naturalWidth/2+"px"}),a=o.duration(),o.on("durationchange",(function(e){a=o.duration()})),o.on("loadedmetadata",(function(e){a=o.duration()})),(i=o.controlBar.progressControl).el().appendChild(t),l=function(e){var o,l,s,u,d,m,p,v,f,b;for(l in s=0,f=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,p=((b=L(i.el()).getBoundingClientRect()).width||b.right)+f,m=e.pageX,e.changedTouches&&(m=e.changedTouches[0].pageX),u=m||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,u-=L(i.el()).getBoundingClientRect().left+f,o=Math.floor((u-i.el().offsetLeft)/i.width()*a),n)o>l&&(s=Math.max(s,l));(d=n[s]).src&&r.src!=d.src&&(r.src=d.src),d.style&&r.style!=d.style&&T(r.style,d.style),u+(v=function(e,t){var n;return t?c(t):"auto"!==(n=A(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?c(n[1])-c(n[3]):0}(r,d.width||n[0].width)/2)>p?u-=u+v-p:u<v&&(u=v),t.style.left=u+"px"},i.on("mousemove",l),i.on("touchmove",l),i.on("pointerdown",(function(e){document.addEventListener("pointermove",l),document.addEventListener("pointerup",u)})),s=function(e){t.style.left="-1000px"},i.on("mouseout",s),i.on("touchcancel",s),i.on("touchend",s),o.on("userinactive",s)}));var U=function(){var e=p(v.mark((function e(t,n){var r,o,i,a;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:return o=e.sent,i=o.split("\n"),a=[],x(i).call(i,(function(e,n){var r;e=y(e).call(e);var o,l={resolution:null,duration:null,uri:null,layout:null};n>0&&f(r=i[n-1]).call(r,"#EXT-X-TILES")&&(i[n-1]=i[n-1].split(","),l.uri=t+e,x(o=i[n-1]).call(o,(function(e){var t,n=f(e).call(e,":")?e.split(":")[1]:e;x(t=n.split(",")).call(t,(function(e){var t=e.split("="),n=h(t,2),r=n[0],o=n[1];r=r.toLowerCase(),l[r]=o}))})),a.push(l))})),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function G(e,t){return F.apply(this,arguments)}function F(){return(F=p(v.mark((function e(t,n){var o,i,l,s,c,m,p,f,b,g,x,y,j,E,N,C,k,T,A,L,B,M,I,S,P,R,X,O,$,D,U,G,F,q,H;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=r(n),s=u(o=t.split("/")).call(o,0,d(i=t.split("/")).call(i,"dash")+1).join("/")||t,e.prev=2,e.next=5,fetch(t);case 5:return f=e.sent,e.next=8,f.text();case 8:b=e.sent,g=new DOMParser,x=g.parseFromString(b,"application/xml"),y=(null==l?void 0:l.duration())||(null===(c=a())||void 0===c||null===(m=c.video)||void 0===m?void 0:m.runtime),j=(null==x||null===(p=x.querySelector("MPD > BaseURL"))||void 0===p?void 0:p.textContent)||s+"/",E=x.getElementsByTagName("AdaptationSet"),N=0;case 15:if(!(N<E.length)){e.next=43;break}if(("image"!==(C=E[N]).getAttribute("contentType")||"image/png"!==C.getAttribute("mimeType"))&&"image/jpeg"!==C.getAttribute("mimeType")){e.next=40;break}if(k=C.getElementsByTagName("SegmentTemplate")[0],T=C.getElementsByTagName("Representation")[0],A=T.getElementsByTagName("EssentialProperty")[0],L=A.getAttribute("value"),B=null==L?void 0:L.split("x"),M=h(B,2),I=M[0],S=M[1],!k){e.next=40;break}if(k.getAttribute("media"),P=k.getAttribute("duration"),R=k.getAttribute("timescale"),X=(R?P/R:P)/(I*S),O=T.getAttribute("id"),$=Math.round(y/X),D=Math.ceil($/(I*S)),U=k.getAttribute("media"),G=w(k.getAttribute("startNumber"))||0,!isNaN(w(D))){e.next=36;break}return e.abrupt("return");case 36:for(F=[],q=V(U),N=0;N<D;N++)H=q?_(q,N+G):U,F.push({duration:X,layout:L,uri:j+H.replace("$Number$",N+G).replace("$RepresentationID$",O)});return e.abrupt("return",F);case 40:N++,e.next=15;break;case 43:return console.log("No trickplay segment found."),e.abrupt("return",null);case 47:e.prev=47,e.t0=e.catch(2),console.error("Error fetching or parsing MPD:",e.t0);case 50:case"end":return e.stop()}}),e,null,[[2,47]])})))).apply(this,arguments)}function V(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function _(e,t){var n,r=e.match(/%0(\d+)d/);if(!r)return e;var o=w(r[1],10),i=E(n=String(t)).call(n,o,"0");return e.replace(/\$Number%0\d+d\$/,i)}function q(e){return H.apply(this,arguments)}function H(){return(H=p(v.mark((function e(t){var n,o,i,a,l,s,u,c,d,m,p,g,h,x,y,j;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r(t),u=s.currentSource(),c=u.src,c=null!==(n=c)&&void 0!==n&&f(n).call(n,"blob")?null===(o=window)||void 0===o||null===(i=o.player)||void 0===i?void 0:i.getSource():c,null===(a=c)||void 0===a||!f(a).call(a,"m3u8")){e.next=19;break}return e.next=6,X(c);case 6:if(!((null==(d=e.sent)?void 0:d.length)>0)){e.next=17;break}return m=(null==d?void 0:d[0])||null,p=m.uri,g=c.substring(0,b(c).call(c,"/"))+"/",e.next=12,U(g,p);case 12:return h=e.sent,e.next=15,$(h);case 15:x=e.sent,s.thumbnails(x);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!f(l).call(l,"mpd")){e.next=28;break}return e.next=22,G(c,t);case 22:if(!((null==(y=e.sent)?void 0:y.length)>0)){e.next=28;break}return e.next=26,$(y);case 26:j=e.sent,s.thumbnails(j);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e,t){var n=r(e),o=null==t?void 0:t.tvProviderLogoUrl;if(o){var i=document.createElement("div");i.className="tvProviderImage";var a=document.createElement("img");a.src="".concat(o),a.alt="Provider Image",i.append(a),n.el().appendChild(i),n.on("useractive",(function(){i.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||i.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}}export{M as a,W as b,q as i};
|