@viewlift/player-backup 2.0.38-smarttv → 2.0.40-backup
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/autoNextVideo-f43d3c6b.js +1 -0
- package/cjs/browser-77c57718.js +1 -0
- package/cjs/bundle.css +121 -103
- package/cjs/caption-settings-be714e97.js +1 -0
- package/cjs/captions-07bd3069.js +1 -0
- package/cjs/features-97b9ddd3.js +1 -0
- package/cjs/generic-d5a358b3.js +1 -0
- package/cjs/icons-1a3febef.js +1 -0
- package/cjs/index-25599792.js +1 -0
- package/cjs/index-84cce26a.js +1 -0
- package/cjs/index-ff62e3f1.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-27a1f79a.js +1 -0
- package/cjs/multicamv2-e061b01b.js +1 -0
- package/cjs/nextEpisodeButton-9149040d.js +1 -0
- package/cjs/playlist-f9f44391.js +1 -0
- package/cjs/renditions-fed22c12.js +1 -0
- package/cjs/resolution-e46c9615.js +1 -0
- package/cjs/series-0ddcd078.js +1 -0
- package/cjs/series-v2-9caf000c.js +1 -0
- package/cjs/series-v2-e23e32e1.js +1 -0
- package/cjs/settings-icon-70f8857a.js +1 -0
- package/cjs/skin-1d925909.js +1 -0
- package/cjs/skin-28d39205.js +1 -0
- package/cjs/skin-3544db58.js +1 -0
- package/cjs/skin-8669d185.js +1 -0
- package/cjs/skin-8bfd28a5.js +1 -0
- package/cjs/skin-9337f348.js +1 -0
- package/cjs/skin-d465fffd.js +1 -0
- package/cjs/util-ef2cd61e.js +1 -0
- package/cjs/videoSelector-2f34f31e.js +1 -0
- package/cjs/videoSelector-62fd5fa1.js +1 -0
- package/cjs/videojs_contrib_dash-5ac53a44.js +1 -0
- package/esm/autoNextVideo-a02e0bce.js +1 -0
- package/esm/browser-d4613b36.js +1 -0
- package/esm/bundle.css +121 -103
- package/esm/caption-settings-4ab479b0.js +1 -0
- package/esm/captions-b7fd8308.js +1 -0
- package/esm/features-ce8f391c.js +1 -0
- package/esm/generic-c74188d9.js +1 -0
- package/esm/icons-8e47e640.js +1 -0
- package/esm/index-5d92eaa3.js +1 -0
- package/esm/index-e68570c6.js +1 -0
- package/esm/index-e9390d8f.js +1 -0
- package/esm/index.js +1 -1
- package/esm/multicamv2-8b4670ee.js +1 -0
- package/esm/multicamv2-d46580c3.js +1 -0
- package/esm/nextEpisodeButton-1016717d.js +1 -0
- package/esm/playlist-5874bf55.js +1 -0
- package/esm/renditions-4c09c626.js +1 -0
- package/esm/resolution-920515d1.js +1 -0
- package/esm/series-c42e7202.js +1 -0
- package/esm/series-v2-0329b92a.js +1 -0
- package/esm/series-v2-1d2ad120.js +1 -0
- package/esm/settings-icon-366126fa.js +1 -0
- package/esm/skin-58b9263c.js +1 -0
- package/esm/skin-7cb0aacc.js +1 -0
- package/esm/skin-7fcbc562.js +1 -0
- package/esm/skin-a48a02a8.js +1 -0
- package/esm/skin-cdf424dc.js +1 -0
- package/esm/skin-f66d3f4d.js +1 -0
- package/esm/skin-f790ba88.js +1 -0
- package/esm/util-80257541.js +1 -0
- package/esm/videoSelector-2feea699.js +1 -0
- package/esm/videoSelector-fe5e1c99.js +1 -0
- package/esm/videojs_contrib_dash-a82e8b26.js +1 -0
- package/package.json +1 -1
- package/cjs/autoNextVideo-17e9c827.js +0 -1
- package/cjs/browser-aa8ef172.js +0 -1
- package/cjs/caption-settings-9e3eaa49.js +0 -1
- package/cjs/captions-d160e397.js +0 -1
- package/cjs/features-e8ff154f.js +0 -1
- package/cjs/generic-90e67a4c.js +0 -1
- package/cjs/icons-9e9e6364.js +0 -1
- package/cjs/index-2e762039.js +0 -1
- package/cjs/index-7655d9c5.js +0 -1
- package/cjs/keyboardShortcuts-c2f8ca74.js +0 -1
- package/cjs/multicamv2-115eaabb.js +0 -1
- package/cjs/multicamv2-cea3ccbb.js +0 -1
- package/cjs/nextEpisodeButton-8050e8ab.js +0 -1
- package/cjs/playlist-1fda85f2.js +0 -1
- package/cjs/renditions-6ca861f3.js +0 -1
- package/cjs/resolution-d093453e.js +0 -1
- package/cjs/series-991adff5.js +0 -1
- package/cjs/series-v2-7b8b0b7b.js +0 -1
- package/cjs/series-v2-f2a6d9a0.js +0 -1
- package/cjs/settings-icon-6b46bc3a.js +0 -1
- package/cjs/skin-348036b3.js +0 -1
- package/cjs/skin-382811c3.js +0 -1
- package/cjs/skin-49458492.js +0 -1
- package/cjs/skin-5b10125d.js +0 -1
- package/cjs/skin-614a05c7.js +0 -1
- package/cjs/skin-b28fa2ec.js +0 -1
- package/cjs/skin-cef78ff3.js +0 -1
- package/cjs/util-1f5115f2.js +0 -1
- package/cjs/videoSelector-4e8a3c62.js +0 -1
- package/cjs/videoSelector-f07641b0.js +0 -1
- package/cjs/videojs_contrib_dash-52d8a5ce.js +0 -1
- package/esm/autoNextVideo-b1b3db93.js +0 -1
- package/esm/browser-65e5d36c.js +0 -1
- package/esm/caption-settings-f5d62f95.js +0 -1
- package/esm/captions-2bcc449f.js +0 -1
- package/esm/features-a5258464.js +0 -1
- package/esm/generic-ca913bb9.js +0 -1
- package/esm/icons-68d3a609.js +0 -1
- package/esm/index-0e9e7f29.js +0 -1
- package/esm/index-a680c0dd.js +0 -1
- package/esm/keyboardShortcuts-1d5ca3ca.js +0 -1
- package/esm/multicamv2-55ff5073.js +0 -1
- package/esm/multicamv2-81f5201e.js +0 -1
- package/esm/nextEpisodeButton-3715939a.js +0 -1
- package/esm/playlist-019ace4e.js +0 -1
- package/esm/renditions-7724f87c.js +0 -1
- package/esm/resolution-608d4334.js +0 -1
- package/esm/series-0dfdf1d6.js +0 -1
- package/esm/series-v2-1f3dd04d.js +0 -1
- package/esm/series-v2-856160cb.js +0 -1
- package/esm/settings-icon-d0cba728.js +0 -1
- package/esm/skin-159bdc20.js +0 -1
- package/esm/skin-43755201.js +0 -1
- package/esm/skin-5134b789.js +0 -1
- package/esm/skin-9e2f78f2.js +0 -1
- package/esm/skin-adfb18cb.js +0 -1
- package/esm/skin-b3169389.js +0 -1
- package/esm/skin-eb7d4238.js +0 -1
- package/esm/util-7ef0c31b.js +0 -1
- package/esm/videoSelector-c397bb2f.js +0 -1
- package/esm/videoSelector-d3efbe32.js +0 -1
- package/esm/videojs_contrib_dash-473e13ca.js +0 -1
package/cjs/skin-382811c3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-e8ff154f.js"),r=require("./skin-b28fa2ec.js"),t=require("./index-2e762039.js"),n=require("./browser-aa8ef172.js");require("videojs-contrib-quality-menu");var o=require("video.js"),a=require("./keyboardShortcuts-c2f8ca74.js"),l=require("./generic-90e67a4c.js"),i=require("@babel/runtime-corejs3/core-js-stable/object/keys"),s=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"),b=require("@babel/runtime-corejs3/core-js-stable/object/define-property"),v=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),m=require("@babel/runtime-corejs3/core-js-stable/array/from"),p=require("@babel/runtime-corejs3/core-js-stable/symbol"),j=require("@babel/runtime-corejs3/core-js/get-iterator-method"),f=require("@babel/runtime-corejs3/helpers/toConsumableArray"),y=require("@babel/runtime-corejs3/helpers/slicedToArray"),h=require("@babel/runtime-corejs3/helpers/defineProperty"),q=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"),C=require("@babel/runtime-corejs3/core-js-stable/object/entries"),I=require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"),T=require("@babel/runtime-corejs3/core-js-stable/instance/map"),x=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"),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-17e9c827.js"),require("./util-1f5115f2.js"),require("@babel/runtime-corejs3/helpers/typeof"),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("@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("axios"),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("@babel/runtime-corejs3/core-js-stable/set-interval");function O(o,a){var l=r.getPlayer(o);l&&(l.on("loadeddata",(function(){var e,l,i,s,u;!function(e){var t=r.getPlayer(e);t&&(null==t||t.qualityMenu,t.qualityMenu({useResolutionLabels:!0}))}(o),!(null!=a&&null!==(e=a.series)&&void 0!==e&&e.enable||null!==(l=window)&&void 0!==l&&null!==(i=l.app_data)&&void 0!==i&&null!==(s=i.appcmsMain)&&void 0!==s&&null!==(u=s.features)&&void 0!==u&&u.auto_play)||null!=a&&a.liveVideo||t.addNextEpPreview(o,a),null!=a&&a.liveVideo||n.isMobile()||t.initiateTrickplay(o)})),l.one("play",(function(){var r,t,n,a;null!==(r=window)&&void 0!==r&&null!==(t=r.customData)&&void 0!==t&&t.iframeOverlayUrl&&e.addOutputtingOverlay(o,null===(n=window)||void 0===n||null===(a=n.customData)||void 0===a?void 0:a.iframeOverlayUrl)})))}function U(e,r){var t=void 0!==p&&j(e)||e["@@iterator"];if(!t){if(x(e)||(t=function(e,r){if(e){var t;if("string"==typeof e)return V(e,r);var n=v(t={}.toString.call(e)).call(t,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?m(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,l=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){i=!0,a=e},f:function(){try{l||null==t.return||t.return()}finally{if(i)throw a}}}}function V(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function R(e,r){var t=i(e);if(s){var n=s(e);r&&(n=B(n).call(n,(function(r){return u(e,r).enumerable}))),t.push.apply(t,n)}return t}function D(e){for(var r=1;r<arguments.length;r++){var t,n,o=null!=arguments[r]?arguments[r]:{};r%2?M(t=R(Object(o),!0)).call(t,(function(r){h(e,r,o[r])})):c?d(e,c(o)):M(n=R(Object(o))).call(n,(function(r){b(e,r,u(o,r))}))}return e}function _(){return _=q(g.mark((function e(t,n){var o,i,s,u,c,d,b,v,m,p,j,h,O,V,R,_,L,Q,$;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $=function(e,n,o){var a=r.getPlayer(t);Math.floor(a.currentTime());var l,i,s,u,c,d,b,v,m,p,j,f,y,h,q=U(n);try{for(q.s();!(l=q.n()).done;)i=void 0,s=void 0,u=void 0,c=void 0,d=void 0,b=void 0,v=void 0,m=void 0,p=void 0,j=void 0,f=void 0,y=void 0,h=void 0,d=l.value,b=d.eventType,v=d.beaconUrls,m=d.startTimeInSeconds,p=d.startTime,j=d.durationInSeconds,f=Math.round(m),y=v[0],h=(null===(i=window)||void 0===i||null===(s=i.customData)||void 0===s||null===(u=s.ads)||void 0===u?void 0:u.adEventHandler)||null,f!=Math.round(a.currentTime())||Q.has(p)||(Q.set(p,!0),"function"==typeof h&&h({adsData:{eventType:b,startTimeInSeconds:m,startTime:p,durationInSeconds:j,ad:null==e||null===(c=e.ads)||void 0===c?void 0:c[o],adIndex:o}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",b,"Fired:".concat(Math.round(a.currentTime())),"AD_POD:",e),fetch(y))}catch(e){q.e(e)}finally{q.f()}},L=function(e){var r,t,n=Math.floor(e/60),o=Math.floor(e%60);return P(r="".concat(n,":")).call(r,A(t=o.toString()).call(t,2,"0"))},R=function(e){var r={},t=e.split("?")[1];if(!t)return r;var n,o=U(t.split("&"));try{for(o.s();!(n=o.n()).done;){var a=n.value.split("="),l=y(a,2),i=l[0],s=l[1];r[decodeURIComponent(i)]=decodeURIComponent(s||"")}}catch(e){o.e(e)}finally{o.f()}for(var u={},c=0,d=C(r);c<d.length;c++){var b=y(d[c],2),v=b[0],m=b[1];if(I(v).call(v,"ads."))u[v.replace(/^ads\./,"")]=m;else u[v]=m}return u},o=r.getPlayer(t),i=n.replace("dash","session").replace("master","session"),i=l.replaceMacros(i,t,{}),s=R(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:k({adsParams:D({},s)})});case 10:return u=e.sent,e.next=13,u.json();case 13:c=e.sent,d="https://"+new S(i).hostname,b=c.trackingUrl,v=c.manifestUrl,m=d+b,p=d+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",m),null!=n&&w(n).call(n,".mpd")?(h=(null==o||null===(j=o.currentSource())||void 0===j?void 0:j.keySystemOptions)||null,l.loadVideo(t,{src:p,type:"application/x-mpegURL",keySystemOptions:h})):(V=(null==o||null===(O=o.currentSource())||void 0===O?void 0:O.keySystems)||null,l.loadVideo(t,{src:p,type:"application/x-mpegURL",keySystems:V})),o.one("loadeddata",(function(){_(m)})),_=function(){var e=q(g.mark((function e(n){var o,l,i,s,u,c,d,b,v,m,p,j,y,h,q,k,S;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n);case 2:return l=e.sent,e.next=5,l.json();case 5:i=e.sent,s=i.avails,u=[],c=r.getPlayer(t),d=c.controlBar.progressControl,b=d.seekBar.el(),T(s).call(s,(function(e){var r;x(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,t=c.duration();if(!(r>t)){var n=r/t*100,o=document.createElement("div");o.className="vjs-seekbar-marker",o.style.left="".concat(n,"%"),o.style.position="absolute",o.style.top="0",o.style.bottom="0",o.style.width="2px",o.style.backgroundColor="#fecc09",o.style.left="".concat(n,"%"),o.style.pointerEvents="none",b.appendChild(o)}})),v=new E,m=-1,c.on("timeupdate",r.throttle((function(){var e=Math.floor(c.currentTime());if(e!==m){m=e;for(var r=!1,t=function(){var t=o[n],l=t.startTimeInSeconds,i=t.durationInSeconds,s=t.ads,u=Math.floor(l+i);if(e>=l&&e<=u){var c,b;r=!0,v.set(l,!0),a.keyboardManager.disable(),d.el().style.visibility="hidden";for(var m=e-l,j=0,y=0,h=0;h<s.length;h++){var q,g=null==s||null===(q=s[h])||void 0===q?void 0:q.durationInSeconds;if(m<j+g){y=h;break}j+=g}var S=s[y],C=m-j,I=Math.max(0,S.durationInSeconds-C),T=Math.round(I);p.style.display="block",k.textContent=P(c=P(b="".concat(y+1," of ")).call(b,s.length," • ")).call(c,L(T));var x=[];return M(s).call(s,(function(e){var r,t=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)}));x.push.apply(x,f(t))})),$(t,x,y),"break"}},n=0,o=u;n<o.length;n++){if("break"===t())break}r||(p.style.display="none",d.el().style.visibility="visible",a.keyboardManager.enable())}}),1e3)),c.on("seeked",(function(){for(var e=null,r=0,t=u;r<t.length;r++){var n=t[r],o=null==c?void 0:c.currentTime(),a=n.startTimeInSeconds,l=n.durationInSeconds;o>Math.floor(a+l)&&!v.has(a)&&(e=a,v.set(a,!0))}e&&(c.currentTime(e),console.log("seeking back to",e),e=null)})),(p=document.createElement("div")).className="ssai-ad-container",(j=document.createElement("div")).className="sponsored-adbox",(y=document.createElement("div")).className="sponsored-text",y.textContent="Sponsored Ad",(h=document.createElement("div")).className="ad-info-icon",q=r.parseSvgString(N.InfoIcon()),h.appendChild(q),j.append(y),j.append(h),(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===(o=document.getElementsByClassName("tvProviderImage"))||void 0===o?void 0:o[0])&&(S.style.right="8.6rem"),p.append(j),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,t){var n,a,l,i,s,u,c,d,b,v,m,p,j=r.getPlayer(e),f=(null==t?void 0:t.theme)||{},y=o.dom.$(".vjs-play-progress"),h=o.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(n=window)||void 0===n||null===(a=n.app_data)||void 0===a||null===(l=a.appcmsMain)||void 0===l||null===(i=l.brand)||void 0===i||null===(s=i.cta)||void 0===s||null===(u=s.primary)||void 0===u?void 0:u.backgroundColor)),y&&(y.style.background="".concat(null===(c=window)||void 0===c||null===(d=c.app_data)||void 0===d||null===(b=d.appcmsMain)||void 0===b||null===(v=b.brand)||void 0===v||null===(m=v.cta)||void 0===m||null===(p=m.primary)||void 0===p?void 0:p.backgroundColor));var q=j.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&y&&(y.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&q&&(q.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&h&&(h.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?q.el().style.borderRadius=".3em":q.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(n,o){r.getPlayer(n).addClass("skin_vlone"),O(n,o),function(r,n){var o,i,s,u,c,d,b=null==n||null===(o=n.res)||void 0===o||null===(i=o.video)||void 0===i?void 0:i.isSSAIEnabled,v=l.getSource(null==n?void 0:n.res,r)||{},m=v.src;(null==n||null===(s=n.relatedVideos)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&e.addVideoSelector(r,null==n?void 0:n.relatedVideos);null!=n&&null!==(c=n.series)&&void 0!==c&&c.enable&&e.addSeriesSelectorV2(r,n);(null==n||null===(d=n.streams)||void 0===d?void 0:d.length)>1&&e.addMulticamSelector(r,null==n?void 0:n.streams);t.addTVProviderImage(r,n),a.initialiseKeyboardEvents(r,n),b&&function(e,r){_.apply(this,arguments)}(r,m)}(n,o),L(n,o)};
|
package/cjs/skin-49458492.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./generic-90e67a4c.js"),r=require("./skin-b28fa2ec.js");require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),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("video.js"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("axios"),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-aa8ef172.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("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray");var s=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(t){Promise.resolve().then((function(){return require("./skin-225252ff.js")})).then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),s(),function(s){var t=document.getElementById("".concat(s)),i=r.getPlayer(s);t&&t.addEventListener("touchstart",(function(){i.paused()?e.play(s):e.pause(s)}))}(t)};
|
package/cjs/skin-5b10125d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-e8ff154f.js"),r=require("./icons-9e9e6364.js"),i=require("./skin-b28fa2ec.js"),l=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),t=require("./renditions-6ca861f3.js"),o=require("./captions-d160e397.js"),s=require("./index-2e762039.js"),n=require("./browser-aa8ef172.js");function a(r,a){var u=i.getPlayer(r);u&&(u.on("loadeddata",(function(){var i,c,d,b,j,m,v;(null===(i=t.getRenditions(r))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(r,a),(null===(c=o.getCaptions(r))||void 0===c?void 0:c.length)>0&&e.addCaptionButton(r,a),!(null!=a&&null!==(d=a.series)&&void 0!==d&&d.enable||null!==(b=window)&&void 0!==b&&null!==(j=b.app_data)&&void 0!==j&&null!==(m=j.appcmsMain)&&void 0!==m&&null!==(v=m.features)&&void 0!==v&&v.auto_play)||null!=a&&a.liveVideo||s.addNextEpPreview(r,a),function(e,r){var i,t,o=Math.floor(e/60),s=null===(i=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===i?void 0:i[0];s&&(s.style.marginRight=o>60?"56px":"41px");var n=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");r&&l(t=n.classList.value).call(t,"vjs-hidden")&&(a[0].style.display="block",s&&(s.style.marginRight="56px"))}(u.duration(),(null==a?void 0:a.liveVideo)||!1),null!=a&&a.liveVideo||n.isMobile()||s.initiateTrickplay(r)})),u.one("play",(function(){var i,l,t,o;null!==(i=window)&&void 0!==i&&null!==(l=i.customData)&&void 0!==l&&l.iframeOverlayUrl&&e.addOutputtingOverlay(r,null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.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-90e67a4c.js"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),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("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),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("@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-17e9c827.js"),require("./util-1f5115f2.js"),require("@babel/runtime-corejs3/helpers/typeof"),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("@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(l,t){i.getPlayer(l).addClass("skin_defaultv2"),function(){"Chrome"==n.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)}))}(),a(l,t),function(e,l){var t,o,s,n,a,u,c=i.getPlayer(e);null==c||null===(t=c.controlBar)||void 0===t||null===(o=t.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(i.createIconMarkup(r.MinimizeSvg(window.controlsColor))),null==c||null===(n=c.controlBar)||void 0===n||null===(a=n.getChild("FullscreenToggle"))||void 0===a||null===(u=a.el())||void 0===u||u.appendChild(i.createIconMarkup(r.MaximizeSvg(window.controlsColor)));var d=document.getElementsByClassName("vjs-time-control");l.liveVideo&&d[0]&&(d[0].style.display="none")}(l,t),function(i,l){var t,o,s,n,a,u;0==(null==l?void 0:l.liveVideo)&&0==(null==l?void 0:l.liveui)&&e.addSkipButton(i,"defaultV2",r.SkipSvgV2());(0==(null==l?void 0:l.liveVideo)&&0==(null==l?void 0:l.liveui)||1==(null==l?void 0:l.liveui))&&e.addRewindButton(i,"defaultV2",r.RewindSvgV2());l.liveVideo||e.addSlowMotion(i);(null==l||null===(t=l.relatedVideos)||void 0===t||null===(o=t.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==l?void 0:l.relatedVideos);(null==l||null===(s=l.streams)||void 0===s?void 0:s.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==l?void 0:l.streams);(null==l||null===(n=l.playlist)||void 0===n||null===(a=n.content)||void 0===a?void 0:a.length)>0&&e.addPlaylistSelector(i,null==l?void 0:l.playlist);null!=l&&null!==(u=l.series)&&void 0!==u&&u.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,l)}(l,t),s.addTVProviderImage(l,t)};
|
package/cjs/skin-614a05c7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./generic-90e67a4c.js"),r=require("./skin-b28fa2ec.js");require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),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("video.js"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("axios"),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-aa8ef172.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("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray");var s=function(s){var t=r.getPlayer(s),i=document.getElementById("".concat(s));i&&i.addEventListener("touchstart",(function(){t.paused()?e.play(s):e.pause(s)}))},t=function(e){var s=r.getPlayer(e);s.requestFullscreen=function(){},s.controlBar.hide()};exports.initaliseSkin=function(e){t(e),s(e)};
|
package/cjs/skin-b28fa2ec.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime-corejs3/helpers/toConsumableArray"),n=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),t=require("@babel/runtime-corejs3/core-js-stable/instance/map"),r=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),i=require("@babel/runtime-corejs3/core-js-stable/date/now"),o=require("video.js"),l=function(e){return!!o.getPlayer("".concat(e))&&o.getPlayer("".concat(e))},a=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE"],u=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},c=function(n){var r=e(document.querySelectorAll("[video-idx]"));t(r).call(r,(function(e){var t=e.getAttribute("video-idx");e.style.border=t==n?"2px solid white":"none"}))},s="",d=function(e,n){var t;if(n){var r=document.getElementById(e),i=null===(t=window.getComputedStyle(r,null))||void 0===t?void 0:t.height;n.style.height!==i&&(n.style.height="".concat(i))}};exports.clearEventListeners=function(){window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler)},exports.closeOpenDrawers=function(){var n=e(document.getElementsByClassName("vjs-control vjs-button open"));null==n||t(n).call(n,(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()}))},exports.createIconMarkup=function(e){return u(e)},exports.detectOrientationChange=function(e,n){var t,i=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",r=document.getElementById(e);if(r&&s!==t){var i=window.getComputedStyle(r,null).getPropertyValue("height");n&&(n.style.height="".concat(i)),s=t}}(e,n)};window._orientationChangeHandler=i;window.addEventListener("resize",(function(){clearTimeout(t),t=r((function(){i()}),100)}))},exports.getPlayer=l,exports.handleDrawerResizing=function(e,n){var t,i=l(e),o=l(e).el(),a=new ResizeObserver((function(){var i;null!==(i=n.classList)&&void 0!==i&&i.contains("hidden")||(t&&clearTimeout(t),t=r((function(){d(e,n)}),300))}));a.observe(o),i.on("dispose",(function(){a.disconnect()})),i.on("fullscreenchange",(function(){r((function(){d(e,n)}),50)}))},exports.highlightVideo=function(n,r){if(r){var i,o,a=l(r);if(a&&"function"==typeof a.el&&null!=a&&null!==(i=a.el())&&void 0!==i&&null!==(o=i.classList)&&void 0!==o&&o.contains("skin_defaultv2"))return void c(n)}var u=e(document.querySelectorAll("[video-idx]"));console.log(u),t(u).call(u,(function(e){var t=e.parentNode,r=e.getAttribute("video-idx");t.style.background=r==n?"gray":"none"}))},exports.highlightVideo_DEFAULTV2_TEMP=c,exports.impolicy16x9=function(e){return e&&!n(e).call(e,"?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},exports.isNotAValidSkin=function(e){return!n(a).call(a,e)},exports.parseHtmlString=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},exports.parseSvgString=u,exports.setUpdatedElHeight=d,exports.throttle=function(e,n){var t=null,o=null;return function(){for(var l=this,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];o?(clearTimeout(t),t=r((function(){i()-o>=n&&(e.apply(l,u),o=i())}),n-(i()-o))):(e.apply(this,u),o=i())}};
|
package/cjs/skin-cef78ff3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./skin-b28fa2ec.js"),r=require("./features-e8ff154f.js"),s=require("./renditions-6ca861f3.js"),t=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-90e67a4c.js"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),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("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("./browser-aa8ef172.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("@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,o){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,o){e.getPlayer(i).on("loadeddata",(function(){var e;(null===(e=s.getRenditions(i))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(i,o),null!=o&&o.disableCaptions&&t.removeCaptions(i)}))}(i,o),function(s,t){var i=e.getPlayer(s);i.controls(!1),r.addDBClickFullScreen(s)}(i)};
|
package/cjs/util-1f5115f2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./skin-b28fa2ec.js");exports.getVideoDuration=function(e){var n=t.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onTimeUpdate=function(e,n){var a=t.getPlayer(e);a?a.on("timeupdate",(function(){return n(a.currentTime())})):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var a=t.getPlayer(e);a?a.on("ended",(function(){return n(!0)})):n("Cannot find player with id: '".concat(e,"'"))},exports.seekToTimeStamp=function(e,n,a){var r=t.getPlayer(e);r?n>=0&&n<=r.duration()?(a({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),r.currentTime(n)):a({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):a("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var a=t.getPlayer(e);if(!a)return"Cannot find player with id: '".concat(e,"'");try{return a.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(t){return"Error: ".concat(t)}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),t=require("@babel/runtime-corejs3/helpers/createClass"),o=require("@babel/runtime-corejs3/helpers/inherits"),i=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),n=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),s=require("video.js"),a=require("./icons-9e9e6364.js"),l=require("./generic-90e67a4c.js"),c=require("./skin-b28fa2ec.js"),d=require("./autoNextVideo-17e9c827.js"),u=require("./localisation-56e0a999.js");function b(r){var t=m();return function(){var o,s=n(r);if(t){var a=n(this).constructor;o=e(s,arguments,a)}else o=s.apply(this,arguments);return i(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("@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("@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-aa8ef172.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("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("./util-1f5115f2.js");var p=s.getComponent("Component"),v=function(e){o(n,p);var i=b(n);function n(e){var t,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,n),(s=i.call(this,e,a)).playerId=a.playerId,s.seriesData=a.sres,s.videos=a.related.content,s.cb=(null==a||null===(t=a.related)||void 0===t?void 0:t.cb)||null,s.autoNext=(null==a||null===(o=a.related)||void 0===o?void 0:o.autoNext)||!1,s.currentVideoData=a.res,s.initialiseStructure(),s.loadCSS(),s.autoNext&&(l.setVideoIdx(0),d.autoPlayNext({playerId:s.playerId,content:s.videos,cb:s.cb})),s}return t(n,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var r=s.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return s.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(),t=s.dom.createEl("div",{className:"video-selection-container hidden"});s.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=t.classList)&&void 0!==o&&o.contains("hidden")?(c.closeOpenDrawers(),t.classList.remove("hidden"),r.classList.add("open"),t.style.right="0px",c.setUpdatedElHeight(e.playerId,t)):(t.classList.add("hidden"),r.classList.remove("open"),t.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");t.style.height="".concat(i),s.dom.appendContent(r,t),o.style.overflow="hidden",this.addFunctionality(t),c.detectOrientationChange(this.playerId,t)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var r=this,t=this.el(),o=s.dom.createEl("div",{className:"video-selector-head"}),i=s.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};for(var n=s.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),d=s.dom.createEl("div",{className:"video-selector-content"}),b=s.dom.createEl("div",{className:"video-container"}),m=function(e){var t,o,i,n,a,u=s.dom.createEl("div",{className:"video -".concat(e)}),m=s.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var t=s.dom.$$(".recommended"),o=0;o<t.length;o++)t[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===(t=r.videos)||void 0===t||null===(o=t[e])||void 0===o?void 0:o.img)||(null===(i=window)||void 0===i||null===(n=i.customData)||void 0===n?void 0:n.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var v=s.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==r||null===(a=r.videos[e])||void 0===a?void 0:a.title)||"")});s.dom.appendContent(u,m),s.dom.appendContent(u,v),s.dom.appendContent(b,u),s.dom.appendContent(d,b)},p=0;p<this.videos.length;p++)m(p);s.dom.appendContent(o,i),s.dom.appendContent(o,n),s.dom.appendContent(e,o),s.dom.appendContent(e,d),c.handleDrawerResizing(this.playerId,e)}}]),n}();exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),t=require("@babel/runtime-corejs3/helpers/createClass"),o=require("@babel/runtime-corejs3/helpers/inherits"),i=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),n=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),s=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),a=require("@babel/runtime-corejs3/core-js-stable/instance/trim"),l=require("video.js"),c=require("./icons-9e9e6364.js"),d=require("./generic-90e67a4c.js"),u=require("./skin-b28fa2ec.js"),b=require("./autoNextVideo-17e9c827.js"),m=require("./localisation-56e0a999.js");function p(r){var t=v();return function(){var o,s=n(r);if(t){var a=n(this).constructor;o=e(s,arguments,a)}else o=s.apply(this,arguments);return i(this,o)}}function v(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(v=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("@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("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-aa8ef172.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("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("./util-1f5115f2.js");var j=l.getComponent("Component"),h=function(e){o(n,j);var i=p(n);function n(e){var t,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,n),(s=i.call(this,e,a)).playerId=a.playerId,s.seriesData=a.sres,s.videos=a.related.content,s.cb=(null==a||null===(t=a.related)||void 0===t?void 0:t.cb)||null,s.autoNext=(null==a||null===(o=a.related)||void 0===o?void 0:o.autoNext)||!1,s.currentVideoData=a.res,s.initialiseStructure(),s.loadCSS(),s.autoNext&&(d.setVideoIdx(0),b.autoPlayNext({playerId:s.playerId,content:s.videos,cb:s.cb})),s}return t(n,[{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(),t=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=t.classList)&&void 0!==o&&o.contains("hidden")?(u.closeOpenDrawers(),t.classList.remove("hidden"),r.classList.add("open"),u.setUpdatedElHeight(e.playerId,t)):(t.classList.add("hidden"),r.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");t.style.height="".concat(i),l.dom.appendContent(r,t),o.style.overflow="hidden",this.addFunctionality(t),u.detectOrientationChange(this.playerId,t)}}},{key:"addFunctionality",value:function(e){var r=this,t=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(c.crossIconSvg())});i.onclick=function(){e.classList.add("hidden"),t.classList.remove("open")};for(var n=l.dom.createEl("div",{className:"video-selector-title",innerHTML:m.getLocalisation("relatedVideoTitle")||"Recommended"}),b=l.dom.createEl("div",{className:"video-selector-content"}),p=l.dom.createEl("div",{className:"video-container"}),v=function(e){var t,o,i,n,c,m,v,j,h,q,y=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(){d.setVideoIdx(e+1);for(var t=l.dom.$$(".recommended"),o=0;o<t.length;o++)t[o].style.border="none";u.highlightVideo(e),d.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(u.impolicy16x9(null==r||null===(t=r.videos)||void 0===t||null===(o=t[e])||void 0===o?void 0:o.img)||u.impolicy16x9(null===(i=window)||void 0===i||null===(n=i.app_data)||void 0===n||null===(c=n.appcmsMain)||void 0===c||null===(m=c.images)||void 0===m?void 0:m.placeholderCover)),g.alt="".concat((null==r||null===(v=r.videos[e])||void 0===v?void 0:s(j=a(h=v.title).call(h).split(/\s+/)).call(j,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(y,f),l.dom.appendContent(y,C),l.dom.appendContent(p,y),l.dom.appendContent(b,p)},j=0;j<this.videos.length;j++)v(j);l.dom.appendContent(o,n),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,b),u.handleDrawerResizing(this.playerId,e)}}]),n}();exports.default=h;
|