@viewlift/player-backup 2.0.300-backup → 2.0.302-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-5bd449e1.js → autoNextVideo-6cab8d20.js} +1 -1
- package/cjs/browser-77c57718.js +1 -0
- package/cjs/bundle.css +416 -422
- package/cjs/{caption-settings-5efc7591.js → caption-settings-058ad013.js} +1 -1
- package/cjs/{captions-5f9611f1.js → captions-d98c49d6.js} +1 -1
- package/cjs/{features-0ed32b63.js → features-210cbfeb.js} +1 -1
- package/cjs/generic-9239e4ef.js +1 -0
- package/cjs/index-268c83a3.js +1 -0
- package/cjs/{index-0cb8083b.js → index-50e69a99.js} +1 -1
- package/cjs/{index-e8be489f.js → index-b3582f46.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{multicamv2-cff7b8b7.js → multicamv2-1af47226.js} +1 -1
- package/cjs/{multicamv2-25c95b47.js → multicamv2-b1a591f5.js} +1 -1
- package/cjs/{nextEpisodeButton-74e8a0df.js → nextEpisodeButton-f6da5f9e.js} +1 -1
- package/cjs/{playlist-415e42ad.js → playlist-25247b47.js} +1 -1
- package/cjs/{relatedVideosManager-eeeaf32c.js → relatedVideosManager-0a220d05.js} +1 -1
- package/cjs/{renditions-6f165ef5.js → renditions-6554142b.js} +1 -1
- package/cjs/{resolution-19103db5.js → resolution-4c007d14.js} +1 -1
- package/cjs/{series-1e91f9ac.js → series-c6abeb2a.js} +1 -1
- package/cjs/{series-v2-12c69b00.js → series-v2-370da4d6.js} +1 -1
- package/cjs/{series-v2-bfaacb8c.js → series-v2-a347f3f7.js} +1 -1
- package/cjs/{settings-icon-43534947.js → settings-icon-0dcc3788.js} +1 -1
- package/cjs/{skin-0ee0edad.js → skin-0a5108bb.js} +1 -1
- package/cjs/{skin-fa783fc1.js → skin-100893d4.js} +1 -1
- package/cjs/{skin-5cbcd61c.js → skin-1f6f448c.js} +1 -1
- package/cjs/{skin-475c6efe.js → skin-44f02ee1.js} +1 -1
- package/cjs/{skin-227021f2.js → skin-7e8c618e.js} +1 -1
- package/cjs/{skin-3f5c6c6e.js → skin-a36d0fae.js} +1 -1
- package/cjs/{skin-013d66cd.js → skin-dfd8c833.js} +1 -1
- package/cjs/{skin-c97f0eea.js → skin-e0cf4554.js} +1 -1
- package/cjs/{skin-1e1a7fb4.js → skin-f1d45f1d.js} +1 -1
- package/cjs/{skin-94c8c63c.js → skin-f33e77ad.js} +1 -1
- package/cjs/{util-b4bf1579.js → util-9e6f986e.js} +1 -1
- package/cjs/{videoSelector-23532d3c.js → videoSelector-a84a396c.js} +1 -1
- package/cjs/{videoSelector-4e9061bb.js → videoSelector-ea7fa96e.js} +1 -1
- package/esm/autoNextVideo-be06e737.js +1 -0
- package/esm/browser-d4613b36.js +1 -0
- package/esm/bundle.css +416 -422
- package/esm/{caption-settings-cfb1368b.js → caption-settings-a9b6581e.js} +1 -1
- package/esm/{captions-2b4caf69.js → captions-9659ee8f.js} +1 -1
- package/esm/components/watch-history/handleWatchHistory.d.ts +0 -1
- package/esm/{features-f476e191.js → features-669f2639.js} +1 -1
- package/esm/generic-5fc25fa4.js +1 -0
- package/esm/helpers/browser.d.ts +0 -1
- package/esm/{index-7f9c8eec.js → index-b62e0f74.js} +1 -1
- package/esm/index-de007bec.js +1 -0
- package/esm/{index-8d6239c3.js → index-fc6d12ac.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{multicamv2-15bfaa1d.js → multicamv2-85a146f1.js} +1 -1
- package/esm/{multicamv2-3812939e.js → multicamv2-a74f52dc.js} +1 -1
- package/esm/{nextEpisodeButton-406f2d70.js → nextEpisodeButton-4d4f981f.js} +1 -1
- package/esm/{playlist-5b825b06.js → playlist-de8dcaf0.js} +1 -1
- package/esm/{relatedVideosManager-8dd9aa24.js → relatedVideosManager-81661348.js} +1 -1
- package/esm/{renditions-19f0b3a9.js → renditions-4eddc06a.js} +1 -1
- package/esm/{resolution-879fc9c0.js → resolution-5926bb20.js} +1 -1
- package/esm/{series-22cb40d1.js → series-a6e346df.js} +1 -1
- package/esm/{series-v2-64cfce61.js → series-v2-58f8f89a.js} +1 -1
- package/esm/{series-v2-59d533b4.js → series-v2-8e6a3475.js} +1 -1
- package/esm/{settings-icon-851014b6.js → settings-icon-c4e124b8.js} +1 -1
- package/esm/{skin-c79a9a01.js → skin-132a3fbe.js} +1 -1
- package/esm/skin-1c4e9c12.js +1 -0
- package/esm/{skin-b58c0902.js → skin-2c9f1fac.js} +1 -1
- package/esm/{skin-8bcdb1ff.js → skin-30c770e0.js} +1 -1
- package/esm/{skin-e25c6ce2.js → skin-b507885d.js} +1 -1
- package/esm/skin-d0799e30.js +1 -0
- package/esm/{skin-5dedeb72.js → skin-d79a44e5.js} +1 -1
- package/esm/{skin-dcc8d218.js → skin-dfd05e08.js} +1 -1
- package/esm/skin-e2592aa4.js +1 -0
- package/esm/{skin-55f1cc14.js → skin-e601cbbf.js} +1 -1
- package/esm/util-8d51abc3.js +1 -0
- package/esm/{videoSelector-3df8173e.js → videoSelector-38103e1c.js} +1 -1
- package/esm/{videoSelector-11dff17a.js → videoSelector-e9b4f3fa.js} +1 -1
- package/package.json +2 -4
- package/cjs/autoNextVideo-fd60262d.js +0 -1
- package/cjs/browser-3670a923.js +0 -1
- package/cjs/caption-settings-544fd444.js +0 -1
- package/cjs/captions-80f6eb66.js +0 -1
- package/cjs/features-12e05d18.js +0 -1
- package/cjs/generic-c66535a6.js +0 -1
- package/cjs/generic-ccfc8514.js +0 -1
- package/cjs/index-467ad153.js +0 -1
- package/cjs/index-5698f530.js +0 -1
- package/cjs/index-8a1caccc.js +0 -1
- package/cjs/index-b6608461.js +0 -1
- package/cjs/multicamv2-0834e44d.js +0 -1
- package/cjs/multicamv2-e6f27f98.js +0 -1
- package/cjs/nextEpisodeButton-8a0fd7c1.js +0 -1
- package/cjs/playlist-2093b46a.js +0 -1
- package/cjs/renditions-d28715a3.js +0 -1
- package/cjs/resolution-dbd4c97b.js +0 -1
- package/cjs/series-5286e1c3.js +0 -1
- package/cjs/series-v2-8dabeb63.js +0 -1
- package/cjs/series-v2-e4df211a.js +0 -1
- package/cjs/settings-icon-f75ddcd4.js +0 -1
- package/cjs/skin-16ae23af.js +0 -1
- package/cjs/skin-354f0a37.js +0 -1
- package/cjs/skin-37723483.js +0 -1
- package/cjs/skin-54cd0769.js +0 -1
- package/cjs/skin-621e7720.js +0 -1
- package/cjs/skin-79fa9c1d.js +0 -1
- package/cjs/skin-ac3f9750.js +0 -1
- package/cjs/skin-adc603f8.js +0 -1
- package/cjs/skin-f8d5ccde.js +0 -1
- package/cjs/skin-f9bdaa28.js +0 -1
- package/cjs/util-54e01671.js +0 -1
- package/cjs/videoSelector-72f75918.js +0 -1
- package/cjs/videoSelector-e93dfeda.js +0 -1
- package/esm/autoNextVideo-5a58fda1.js +0 -1
- package/esm/autoNextVideo-66977b2f.js +0 -1
- package/esm/browser-de5f6a74.js +0 -1
- package/esm/caption-settings-106547c2.js +0 -1
- package/esm/captions-89897207.js +0 -1
- package/esm/features-ce3dd24e.js +0 -1
- package/esm/generic-585e9a5b.js +0 -1
- package/esm/generic-7f2d1f91.js +0 -1
- package/esm/helpers/apiErrorTracker.d.ts +0 -1
- package/esm/helpers/browser.test.d.ts +0 -1
- package/esm/helpers/drmErrorDetection.d.ts +0 -6
- package/esm/icons-699e8cf0.js +0 -1
- package/esm/index-0b88f09f.js +0 -1
- package/esm/index-6665f3a3.js +0 -1
- package/esm/index-68a708c9.js +0 -1
- package/esm/index-bb7166ff.js +0 -1
- package/esm/multicamv2-1279caf9.js +0 -1
- package/esm/multicamv2-6604d8ad.js +0 -1
- package/esm/nextEpisodeButton-3eceb957.js +0 -1
- package/esm/playlist-2ccec51c.js +0 -1
- package/esm/renditions-ee4e8582.js +0 -1
- package/esm/resolution-8cbda37b.js +0 -1
- package/esm/series-991c6b60.js +0 -1
- package/esm/series-v2-5ef2d921.js +0 -1
- package/esm/series-v2-bf3a1b5a.js +0 -1
- package/esm/settings-icon-d7dfe9a5.js +0 -1
- package/esm/skin-0abde216.js +0 -1
- package/esm/skin-2803a6e0.js +0 -1
- package/esm/skin-2bf3a2e2.js +0 -1
- package/esm/skin-30bb7f84.js +0 -1
- package/esm/skin-3d3bb91f.js +0 -1
- package/esm/skin-4b9ab1d9.js +0 -1
- package/esm/skin-4d3a08d2.js +0 -1
- package/esm/skin-4f84b841.js +0 -1
- package/esm/skin-70f86676.js +0 -1
- package/esm/skin-971b1051.js +0 -1
- package/esm/skin-a45c710d.js +0 -1
- package/esm/skin-a9fb0c5e.js +0 -1
- package/esm/skin-fed5e057.js +0 -1
- package/esm/util-36d2ab03.js +0 -1
- package/esm/util-907fe226.js +0 -1
- package/esm/videoSelector-03b3ffcb.js +0 -1
- package/esm/videoSelector-bc53c149.js +0 -1
package/cjs/skin-37723483.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./generic-ccfc8514.js"),r=require("./skin-c97f0eea.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(t){Promise.resolve().then(function(){return require("./skin-225252ff.js")}).then(function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)}),i(),function(i){var t=document.getElementById("".concat(i)),n=r.getPlayer(i);t&&t.addEventListener("touchstart",function(){n.paused()?e.play(i):e.pause(i)})}(t)};
|
package/cjs/skin-54cd0769.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-0ed32b63.js"),r=require("./generic-ccfc8514.js"),i=require("./icons-eb807ef0.js"),n=require("./skin-c97f0eea.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./renditions-d28715a3.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(t,l){n.getPlayer(t).addClass("skin_default"),r.initialiseKeyboardEvents(t,l),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,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(t,l),function(t,l){var s=n.getPlayer(t),o=(null==l?void 0:l.sres)||null;s.on("loadeddata",function(){e.addResolutionModule(t,"default",i.SettingsSvg()),o&&Promise.resolve().then(function(){return require("./nextEpisodeButton-8a0fd7c1.js")}).then(function(e){e.initaliseFunctionality(l.sres.seasons,r.getCurrentVideo())})}),s.one("loadedmetadata",function(){var r;o&&(e.addSeriesModule(t,null==l||null===(r=l.sres)||void 0===r?void 0:r.seasons,l),e.addNextEpisodeButton(l.sres,l.res,t))})}(t,l),function(e,r){var t,l,s,o,u=n.getPlayer(e),a=document.getElementsByClassName("vjs-current-time")[0],d=document.getElementsByClassName("vjs-duration")[0],c=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(a&&(a.style.display="none"),d&&(d.style.display="none"),c&&(c.style.display="none"));null===(t=u.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(l=t.el())||void 0===l||l.appendChild(n.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(s=u.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(o=s.el())||void 0===o||o.appendChild(n.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var m=u.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(n.createIconMarkup(i.NewCaptionsSvg()));var p=document.createElement("div");p.classList.add("caption-header"),m.querySelector(".vjs-menu-content").insertBefore(p,m.querySelector(".vjs-menu-item"))}(t,l)};
|
package/cjs/skin-621e7720.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-0ed32b63.js"),l=require("./icons-eb807ef0.js"),i=require("./skin-c97f0eea.js"),n=require("./renditions-d28715a3.js"),t=require("./index-467ad153.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray");var o=require("./generic-ccfc8514.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-fd60262d.js"),require("./util-54e01671.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(r,s){i.getPlayer(r).addClass("skin_news"),function(l,o){var r=i.getPlayer(l);r&&r.on("loadeddata",function(){var i,r,s,u,d,a,v;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==o||null===(r=o.skin_settings)||void 0===r?void 0:r.settingsToggle)&&e.addSettingsButtonV2(l,o),!(null!=o&&null!==(s=o.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(d=u.app_data)&&void 0!==d&&null!==(a=d.appcmsMain)&&void 0!==a&&null!==(v=a.features)&&void 0!==v&&v.auto_play)||null!=o&&o.liveVideo||t.addNextEpPreview(l,o)})}(r,s),function(e,l){var n,t,o,r,s,u,d,a,v,C,c,h,p,f,g,m,y,L,b=i.getPlayer(e);if(null!=l&&l.liveVideo){var B,j,w,V,E,S,x=null===(B=b.controlBar)||void 0===B||null===(j=B.getChild("TimeDivider"))||void 0===j?void 0:j.el(),M=null===(w=b.controlBar)||void 0===w||null===(V=w.getChild("CurrentTimeDisplay"))||void 0===V?void 0:V.el(),k=null===(E=b.controlBar)||void 0===E||null===(S=E.getChild("DurationDisplay"))||void 0===S?void 0:S.el();x&&(x.style.display="none"),M&&(M.style.display="none"),k&&(k.style.display="none")}var T=null===(n=b.controlBar)||void 0===n?void 0:n.getChild("ProgressControl"),q=null===(t=b.controlBar)||void 0===t||null===(o=t.getChild("SeekToLive"))||void 0===o?void 0:o.el();q&&(q.onclick=function(){if(b.paused())try{b.play()}catch(e){console.log(e)}});var A=document.createElement("div");A.className="custom-spaced-progress-bar",T&&A.append(T.el());null===(r=b.controlBar)||void 0===r||null===(s=r.el())||void 0===s||s.append(A);var Z='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n <symbol id="vjs-icon-big-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="inherit"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>\n </svg>';b.el().insertBefore(i.parseSvgString(Z),null!==(u=b.el().firstChild)&&void 0!==u?u:null);var P=(null==b||null===(d=b.controlBar)||void 0===d||null===(a=d.getChild("PlayToggle"))||void 0===a||null===(v=a.el())||void 0===v?void 0:v.firstChild)||null;if(P){P.style.height="18px",P.style.width="18px";var _=i.injectSVG(P,b.paused()?"#vjs-icon-play":"#vjs-icon-pause");b.on("pause",function(){return _.setAttributeNS(null,"href","#vjs-icon-play")}),b.on("play",function(){return _.setAttributeNS(null,"href","#vjs-icon-pause")})}var H=(null==b||null===(C=b.controlBar)||void 0===C||null===(c=C.getChild("FullscreenToggle"))||void 0===c||null===(h=c.el())||void 0===h?void 0:h.firstChild)||null;if(H){H.style.height="24px",H.style.width="24px";var N=i.injectSVG(H,"#vjs-icon-fullscreen");b.on("fullscreenchange",function(){var e=b.isFullscreen_;null==N||N.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var D=(null==b||null===(p=b.controlBar)||void 0===p||null===(f=p.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(D){var F=D.querySelector(".vjs-mute-control .vjs-icon-placeholder");F.classList.add("vjs-svg-icon"),F.style.height="24px",F.style.width="24px";var R=i.injectSVG(F,b.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");b.on("volumechange",function(e){var l=b.volume();console.log(l,b.muted()),0==l||b.muted()?R.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?R.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?R.setAttributeNS(null,"href","#vjs-icon-volume2"):R.setAttributeNS(null,"href","#vjs-icon-volume3")})}var G=(null==b||null===(g=b.controlBar)||void 0===g||null===(m=g.getChild("PictureInPictureToggle"))||void 0===m?void 0:m.el())||null;if(G){var I=null==G?void 0:G.querySelector(".vjs-icon-placeholder");I.style.height="25px",I.style.width="25px";var O=i.injectSVG(I,"#vjs-icon-pip");b.on("enterpictureinpicture",function(){O.setAttributeNS(null,"href","#vjs-icon-pip")})}var U=(null==b||null===(y=b.controlBar)||void 0===y||null===(L=y.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(U){var z=U.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");z.classList.add("vjs-svg-icon"),z.style.height="29px",z.style.width="29px";var W=i.injectSVG(z,"#vjs-icon-caps");W.setAttributeNS(null,"href","#vjs-icon-captions-off"),b.textTracks().on("change",function(e){for(var l=b.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?W.setAttributeNS(null,"href","#vjs-icon-captions"):W.setAttributeNS(null,"href","#vjs-icon-captions-off")})}b&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(b.liveTracker.on("liveedgechange",function(){Q(b)}),b.on("timeupdate",function(){Q(b)}));function J(e){var l=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),t=function(e){return String(e).padStart(2,"0")};return 0===l?"".concat(t(i),":").concat(t(n)):"".concat(t(l),":").concat(t(i),":").concat(t(n))}function K(e){var l=e.seekable();if(l&&l.length>0){var i=l.end(0);return Math.max(0,i-e.currentTime())}return 0}function Q(e){var l,i,n=e.liveTracker.atLiveEdge(),t=K(e),o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(o){var r=o.querySelector(".vjs-remaining-time-display");n?o.style.display="none":(o.style.display="flex",r&&(r.innerText=J(t)))}}}(r,s),function(i,n){var t,r,s,u,d,a,v,C,c,h,p=(null==n?void 0:n.liveVideo)||!1,f=(null==n||null===(t=n.res)||void 0===t?void 0:t.contentType)||"video",g=(null==n||null===(r=n.res)||void 0===r||null===(s=r[f])||void 0===s?void 0:s.isSSAIEnabled)||!1,m=(null==n?void 0:n.skin_settings)||{};null==m||m.slowMoBtn;var y=(null==n||null===(u=n.customData)||void 0===u?void 0:u.ads)||{};e.addBigMuteButton(i),null!=m&&m.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());null!=m&&m.rewindBtn&&(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(d=n.relatedVideos)||void 0===d||null===(a=d.content)||void 0===a?void 0:a.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(v=n.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(C=n.playlist)||void 0===C||null===(c=C.content)||void 0===c?void 0:c.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(h=n.series)&&void 0!==h&&h.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n);if(g&&p&&"TRANSMIT"==(null==y?void 0:y.liveAdSticherProvider)&&null!=y&&y.liveAdClientSideTracking)o.initializeTransmit(i,n);else if("MEDIA_TAILOR"==(null==y?void 0:y.vodAdSticherProvider)&&null!=y&&y.vodAdClientSideTracking&&g)if(p)o.setupAdvertisementMarkersForLinear(i);else{var L,b=null;if(null!=n&&null!==(L=n.series)&&void 0!==L&&L.enable){var B,j,w,V,E,S=null===(B=o.getCurrentVideo())||void 0===B||null===(j=B.video)||void 0===j||null===(w=j.gist)||void 0===w?void 0:w.id,x=o.getSeriesWatchMap(),M=(null==x?void 0:x.get(S))||{t:0,p:0},k=M.t,T=M.p;"function"==typeof(null===(V=window)||void 0===V||null===(E=V.watchHistory)||void 0===E?void 0:E.cb)&&window.watchHistory.cb({watchedTime:k}),T<95&&(b=k)}else{var q=n.watchHistoryResumeTime;n.watchedPercentage<95&&(b=q)}o.setupAdvertisementMarkers(i,b)}}(r,s),t.addTVProviderImage(r,s)};
|
package/cjs/skin-79fa9c1d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-0ed32b63.js"),l=require("./icons-eb807ef0.js"),i=require("./skin-c97f0eea.js"),n=require("./renditions-d28715a3.js"),t=require("./index-467ad153.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray");var o=require("./generic-ccfc8514.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-fd60262d.js"),require("./util-54e01671.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(r,s){i.getPlayer(r).addClass("skin_news_live"),function(l,o){var r=i.getPlayer(l);r&&r.on("loadeddata",function(){var i,r,s,d,u,a,v;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==o||null===(r=o.skin_settings)||void 0===r?void 0:r.settingsToggle)&&e.addSettingsButtonV2(l,o),!(null!=o&&null!==(s=o.series)&&void 0!==s&&s.enable||null!==(d=window)&&void 0!==d&&null!==(u=d.app_data)&&void 0!==u&&null!==(a=u.appcmsMain)&&void 0!==a&&null!==(v=a.features)&&void 0!==v&&v.auto_play)||null!=o&&o.liveVideo||t.addNextEpPreview(l,o)})}(r,s),function(e,l){var n,t,o,r,s,d,u,a,v,c,C,h,p,f,m,g,L,B,y,b,j,w,V,E,S,x,M,k,T,q,P=i.getPlayer(e);null===(n=P.controlBar)||void 0===n||n.removeChild("PlayToggle");var A=null==P||null===(t=P.controlBar)||void 0===t||null===(o=t.el())||void 0===o||null===(r=o.children)||void 0===r?void 0:r[2],Z=document.createElement("div");Z.className="vjs-play-toggle-container",Z.append(null==P||null===(s=P.controlBar)||void 0===s||null===(d=s.addChild("PlayToggle"))||void 0===d?void 0:d.el()),null==P||null===(u=P.controlBar)||void 0===u||null===(a=u.el())||void 0===a||a.insertBefore(Z,A),null==P||null===(v=P.controlBar)||void 0===v||v.removeChild("VolumePanel"),null==P||null===(c=P.controlBar)||void 0===c||c.addChild("VolumePanel",{inline:!0},1);var _=null==P||null===(C=P.controlBar)||void 0===C?void 0:C.getChild("ProgressControl");null===(h=P.controlBar)||void 0===h||h.removeChild("SeekToLive"),null===(p=P.controlBar)||void 0===p||p.addChild("SeekToLive",{inline:!1},2);var N=null===(f=P.controlBar)||void 0===f||null===(m=f.getChild("SeekToLive"))||void 0===m?void 0:m.el();N&&(N.onclick=function(){if(P.paused())try{P.play()}catch(e){console.log(e)}});var H=document.createElement("div");H.className="custom-spaced-progress-bar",_&&H.append(_.el());null===(g=P.controlBar)||void 0===g||null===(L=g.el())||void 0===L||L.append(H);var D='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n <symbol id="vjs-icon-big-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="inherit"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>\n </svg>';P.el().insertBefore(i.parseSvgString(D),null!==(B=P.el().firstChild)&&void 0!==B?B:null);var F=(null==P||null===(y=P.controlBar)||void 0===y||null===(b=y.getChild("PlayToggle"))||void 0===b||null===(j=b.el())||void 0===j?void 0:j.firstChild)||null;if(F){F.style.height="18px",F.style.width="18px";var R=i.injectSVG(F,P.paused()?"#vjs-icon-play":"#vjs-icon-pause");P.on("pause",function(){return R.setAttributeNS(null,"href","#vjs-icon-play")}),P.on("play",function(){return R.setAttributeNS(null,"href","#vjs-icon-pause")})}var G=(null==P||null===(w=P.controlBar)||void 0===w||null===(V=w.getChild("FullscreenToggle"))||void 0===V||null===(E=V.el())||void 0===E?void 0:E.firstChild)||null;if(G){G.style.height="24px",G.style.width="24px";var I=i.injectSVG(G,"#vjs-icon-fullscreen");P.on("fullscreenchange",function(){var e=P.isFullscreen_;null==I||I.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var O=(null==P||null===(S=P.controlBar)||void 0===S||null===(x=S.getChild("VolumePanel"))||void 0===x?void 0:x.el())||null;if(O){var U=O.querySelector(".vjs-mute-control .vjs-icon-placeholder");U.classList.add("vjs-svg-icon"),U.style.height="24px",U.style.width="24px";var z=i.injectSVG(U,P.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");P.on("volumechange",function(e){var l=P.volume();console.log(l,P.muted()),0==l||P.muted()?z.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?z.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?z.setAttributeNS(null,"href","#vjs-icon-volume2"):z.setAttributeNS(null,"href","#vjs-icon-volume3")})}var W=(null==P||null===(M=P.controlBar)||void 0===M||null===(k=M.getChild("PictureInPictureToggle"))||void 0===k?void 0:k.el())||null;if(W){var J=null==W?void 0:W.querySelector(".vjs-icon-placeholder");J.style.height="25px",J.style.width="25px";var K=i.injectSVG(J,"#vjs-icon-pip");P.on("enterpictureinpicture",function(){K.setAttributeNS(null,"href","#vjs-icon-pip")})}var Q=(null==P||null===(T=P.controlBar)||void 0===T||null===(q=T.getChild("SubsCapsButton"))||void 0===q?void 0:q.el())||null;if(Q){var X=Q.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");X.classList.add("vjs-svg-icon"),X.style.height="29px",X.style.width="29px";var Y=i.injectSVG(X,"#vjs-icon-caps");Y.setAttributeNS(null,"href","#vjs-icon-captions-off"),P.textTracks().on("change",function(e){for(var l=P.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?Y.setAttributeNS(null,"href","#vjs-icon-captions"):Y.setAttributeNS(null,"href","#vjs-icon-captions-off")})}P&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(P.liveTracker.on("liveedgechange",function(){le(P)}),P.on("timeupdate",function(){le(P)}));function $(e){var l=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),t=function(e){return String(e).padStart(2,"0")};return 0===l?"".concat(t(i),":").concat(t(n)):"".concat(t(l),":").concat(t(i),":").concat(t(n))}function ee(e){var l=e.seekable();if(l&&l.length>0){var i=l.end(0);return Math.max(0,i-e.currentTime())}return 0}function le(e){var l,i,n=e.liveTracker.atLiveEdge(),t=ee(e),o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(o){var r=o.querySelector(".vjs-remaining-time-display");n?o.style.display="none":(o.style.display="flex",r&&(r.innerText=$(t)))}}}(r,s),function(i,n){var t,r,s,d,u,a,v,c,C,h,p=(null==n?void 0:n.liveVideo)||!1,f=(null==n||null===(t=n.res)||void 0===t?void 0:t.contentType)||"video",m=(null==n||null===(r=n.res)||void 0===r||null===(s=r[f])||void 0===s?void 0:s.isSSAIEnabled)||!1,g=(null==n?void 0:n.skin_settings)||{};null==g||g.slowMoBtn;var L=(null==n||null===(d=n.customData)||void 0===d?void 0:d.ads)||{};e.addBigMuteButton(i),null!=g&&g.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());null!=g&&g.rewindBtn&&(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(u=n.relatedVideos)||void 0===u||null===(a=u.content)||void 0===a?void 0:a.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(v=n.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(c=n.playlist)||void 0===c||null===(C=c.content)||void 0===C?void 0:C.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(h=n.series)&&void 0!==h&&h.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n);if(m&&p&&"TRANSMIT"==(null==L?void 0:L.liveAdSticherProvider)&&null!=L&&L.liveAdClientSideTracking)o.initializeTransmit(i,n);else if("MEDIA_TAILOR"==(null==L?void 0:L.vodAdSticherProvider)&&null!=L&&L.vodAdClientSideTracking&&m)if(p)o.setupAdvertisementMarkersForLinear(i);else{var B,y=null;if(null!=n&&null!==(B=n.series)&&void 0!==B&&B.enable){var b,j,w,V,E,S=null===(b=o.getCurrentVideo())||void 0===b||null===(j=b.video)||void 0===j||null===(w=j.gist)||void 0===w?void 0:w.id,x=o.getSeriesWatchMap(),M=(null==x?void 0:x.get(S))||{t:0,p:0},k=M.t,T=M.p;"function"==typeof(null===(V=window)||void 0===V||null===(E=V.watchHistory)||void 0===E?void 0:E.cb)&&window.watchHistory.cb({watchedTime:k}),T<95&&(y=k)}else{var q=n.watchHistoryResumeTime;n.watchedPercentage<95&&(y=q)}o.setupAdvertisementMarkers(i,y)}}(r,s),t.addTVProviderImage(r,s)};
|
package/cjs/skin-ac3f9750.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./generic-c66535a6.js"),r=require("./skin-16ae23af.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-5f9611f1.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass");var i=function(i){var t=r.getPlayer(i),u=document.getElementById("".concat(i));u&&u.addEventListener("touchstart",function(){t.paused()?e.play(i):e.pause(i)})},t=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){t(e),i(e)};
|
package/cjs/skin-adc603f8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-0ed32b63.js"),l=require("./skin-c97f0eea.js"),i=require("./index-467ad153.js"),r=require("./index-5698f530.js"),o=require("./browser-3670a923.js");require("videojs-contrib-quality-menu");var n=require("video.js"),u=require("./generic-ccfc8514.js"),d=require("./icons-eb807ef0.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./renditions-d28715a3.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-fd60262d.js"),require("./util-54e01671.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@viewlift/comscore/index.js");function t(n,u){var d,t=l.getPlayer(n),a=(null==u||null===(d=u.res)||void 0===d?void 0:d.siteId)||"";t&&(t.on("loadeddata",function(){var e,d,t,s,v;!function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(n),!(null!=u&&null!==(e=u.series)&&void 0!==e&&e.enable||null!==(d=window)&&void 0!==d&&null!==(t=d.app_data)&&void 0!==t&&null!==(s=t.appcmsMain)&&void 0!==s&&null!==(v=s.features)&&void 0!==v&&v.auto_play)||null!=u&&u.liveVideo||i.addNextEpPreview(n,u),null!=u&&u.liveVideo||o.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===a||r.initiateTrickplay(n)}),t.one("play",function(){var l,i,r,o;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(n,null===(r=window)||void 0===r||null===(o=r.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}var a=function(e,i){var r,o,u,d,t,a,s,v,c,p,y,b,m=l.getPlayer(e),g=(null==i?void 0:i.theme)||{},q=n.dom.$(".vjs-play-progress"),h=n.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(r=window)||void 0===r||null===(o=r.app_data)||void 0===o||null===(u=o.appcmsMain)||void 0===u||null===(d=u.brand)||void 0===d||null===(t=d.cta)||void 0===t||null===(a=t.primary)||void 0===a?void 0:a.backgroundColor)),q&&(q.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(y=p.cta)||void 0===y||null===(b=y.primary)||void 0===b?void 0:b.backgroundColor));var f=m.getChild("BigPlayButton")||null;(null==g?void 0:g.progressBarColor)&&q&&(q.style.background=g.progressBarColor),(null==g?void 0:g.playButtonBackgroundColor)&&f&&(f.el().style.background=g.playButtonBackgroundColor),(null==g?void 0:g.playButtonColor)&&h&&(h.style.color=g.playButtonColor),(null==g?void 0:g.playButtonType)&&("square"==(null==g?void 0:g.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),t(r,o),function(r,o){var n,t,a,s,v,c,p,y,b=l.getPlayer(r),m=(null==o?void 0:o.liveVideo)||!1,g=(null==o||null===(n=o.res)||void 0===n?void 0:n.contentType)||"video",q=(null==o||null===(t=o.res)||void 0===t||null===(a=t[g])||void 0===a?void 0:a.isSSAIEnabled)||!1,h=u.getSource(null==o?void 0:o.res,r)||{};h.src;var f=(null==o?void 0:o.skin_settings)||{},k=(null==o||null===(s=o.customData)||void 0===s?void 0:s.ads)||{};if(m&&(null==o||!o.liveui)){var w,j,C=(null==b||null===(w=b.controlBar)||void 0===w||null===(j=w.getChild("LiveDisplay"))||void 0===j?void 0:j.el())||null;C&&(C.onclick=function(){try{var e;null==b||null===(e=b.liveTracker)||void 0===e||e.seekToLiveEdge()}catch(e){console.log(e,"Cannot seek to LE")}})}null!=f&&f.skipBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)&&e.addSkipButton(r,"VL_ONE",d.SkipSvgV2());(null!=f&&f.rewindBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)||1==(null==o?void 0:o.liveui))&&e.addRewindButton(r,"VL_ONE",d.RewindSvgV2());(null==o||null===(v=o.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&e.addVideoSelector(r,null==o?void 0:o.relatedVideos);null!=o&&null!==(p=o.series)&&void 0!==p&&p.enable&&e.addSeriesSelectorV2(r,o);(null==o||null===(y=o.streams)||void 0===y?void 0:y.length)>1&&e.addMulticamSelector(r,null==o?void 0:o.streams);if(i.addTVProviderImage(r,o),u.initialiseKeyboardEvents(r,o),q&&m&&"TRANSMIT"==(null==k?void 0:k.liveAdSticherProvider)&&!(null==k||!k.liveAdClientSideTracking))u.initializeTransmit(r,o);else if("MEDIA_TAILOR"==(null==k?void 0:k.vodAdSticherProvider)&&null!=k&&k.vodAdClientSideTracking&&q)if(m)u.setupAdvertisementMarkersForLinear(r);else{var S,B=null;if(null!=o&&null!==(S=o.series)&&void 0!==S&&S.enable){var T,V,P,A,M,E=null===(T=u.getCurrentVideo())||void 0===T||null===(V=T.video)||void 0===V||null===(P=V.gist)||void 0===P?void 0:P.id,R=u.getSeriesWatchMap(),_=(null==R?void 0:R.get(E))||{t:0,p:0},L=_.t,O=_.p;"function"==typeof(null===(A=window)||void 0===A||null===(M=A.watchHistory)||void 0===M?void 0:M.cb)&&window.watchHistory.cb({watchedTime:L}),O<95&&(B=L)}else{var x=o.watchHistoryResumeTime;o.watchedPercentage<95&&(B=x)}u.setupAdvertisementMarkers(r,B)}}(r,o),a(r,o)};
|
package/cjs/skin-f8d5ccde.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./skin-c97f0eea.js"),r=require("./features-0ed32b63.js"),i=require("./renditions-d28715a3.js"),n=require("./captions-80f6eb66.js");require("@babel/runtime/helpers/toConsumableArray"),require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-ccfc8514.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./localisation-56e0a999.js"),exports.initialiseSkin=function(t,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e.getPlayer(t).on("loadeddata",function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)})}(t,s),function(i){var n=e.getPlayer(i);n.controls(!1),r.addDBClickFullScreen(i)}(t)};
|
package/cjs/skin-f9bdaa28.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-0ed32b63.js"),l=require("./icons-eb807ef0.js"),i=require("./skin-c97f0eea.js"),n=require("./renditions-d28715a3.js"),t=require("./index-467ad153.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray");var o=require("./generic-ccfc8514.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-fd60262d.js"),require("./util-54e01671.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(r,s){i.getPlayer(r).addClass("skin_mini"),function(l,o){var r=i.getPlayer(l);r&&r.on("loadeddata",function(){var i,r,s,u,d,a,v;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==o||null===(r=o.skin_settings)||void 0===r?void 0:r.settingsToggle)&&e.addSettingsButtonV2(l,o),!(null!=o&&null!==(s=o.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(d=u.app_data)&&void 0!==d&&null!==(a=d.appcmsMain)&&void 0!==a&&null!==(v=a.features)&&void 0!==v&&v.auto_play)||null!=o&&o.liveVideo||t.addNextEpPreview(l,o)})}(r,s),function(e,l){var n,t,o,r,s,u,d,a,v,C,c,h,p,f,m,b,g,B,y=i.getPlayer(e);null===(n=y.controlBar)||void 0===n||n.removeChild("VolumePanel"),null===(t=y.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var L=null===(o=y.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),j=document.createElement("div");j.className="custom-spaced-progress-bar",L&&j.append(L.el());null===(r=y.controlBar)||void 0===r||null===(s=r.el())||void 0===s||s.append(j);var V='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';y.el().insertBefore(i.parseSvgString(V),null!==(u=y.el().firstChild)&&void 0!==u?u:null);var E=(null==y||null===(d=y.controlBar)||void 0===d||null===(a=d.getChild("PlayToggle"))||void 0===a||null===(v=a.el())||void 0===v?void 0:v.firstChild)||null;if(E){E.style.height="16px",E.style.width="16px";var w=i.injectSVG(E,y.paused()?"#vjs-icon-play":"#vjs-icon-pause");y.on("pause",function(){return w.setAttributeNS(null,"href","#vjs-icon-play")}),y.on("play",function(){return w.setAttributeNS(null,"href","#vjs-icon-pause")})}var x=(null==y||null===(C=y.controlBar)||void 0===C||null===(c=C.getChild("FullscreenToggle"))||void 0===c||null===(h=c.el())||void 0===h?void 0:h.firstChild)||null;if(x){x.style.height="24px",x.style.width="24px";var S=i.injectSVG(x,"#vjs-icon-fullscreen");y.on("fullscreenchange",function(){var e=y.isFullscreen_;null==S||S.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var M=(null==y||null===(p=y.controlBar)||void 0===p||null===(f=p.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(M){var q=M.querySelector(".vjs-mute-control .vjs-icon-placeholder");q.classList.add("vjs-svg-icon"),q.style.height="24px",q.style.width="24px";var k=i.injectSVG(q,y.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");y.on("volumechange",function(e){var l=y.volume();0==l||y.muted()?k.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?k.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?k.setAttributeNS(null,"href","#vjs-icon-volume2"):k.setAttributeNS(null,"href","#vjs-icon-volume3")})}var T=(null==y||null===(m=y.controlBar)||void 0===m||null===(b=m.getChild("PictureInPictureToggle"))||void 0===b?void 0:b.el())||null;if(T){var A=null==T?void 0:T.querySelector(".vjs-icon-placeholder");A.style.height="25px",A.style.width="25px";var P=i.injectSVG(A,"#vjs-icon-pip");y.on("enterpictureinpicture",function(){P.setAttributeNS(null,"href","#vjs-icon-pip")})}var Z=(null==y||null===(g=y.controlBar)||void 0===g||null===(B=g.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(Z){var _=Z.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");_.classList.add("vjs-svg-icon"),_.style.height="29px",_.style.width="29px";var N=i.injectSVG(_,"#vjs-icon-caps");N.setAttributeNS(null,"href","#vjs-icon-captions-off"),y.textTracks().on("change",function(e){for(var l=y.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?N.setAttributeNS(null,"href","#vjs-icon-captions"):N.setAttributeNS(null,"href","#vjs-icon-captions-off")})}y&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(y.liveTracker.on("liveedgechange",function(){F(y)}),y.on("timeupdate",function(){F(y)}));function H(e){var l=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),t=function(e){return String(e).padStart(2,"0")};return 0===l?"".concat(t(i),":").concat(t(n)):"".concat(t(l),":").concat(t(i),":").concat(t(n))}function D(e){var l=e.seekable();if(l&&l.length>0){var i=l.end(0);return Math.max(0,i-e.currentTime())}return 0}function F(e){var l,i,n=e.liveTracker.atLiveEdge(),t=D(e),o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(o){var r=o.querySelector(".vjs-remaining-time-display");n?o.style.display="none":(o.style.display="flex",r&&(r.innerText=H(t)))}}}(r,s),function(i,n){var t,r,s,u,d,a,v,C,c,h=(null==n||null===(t=n.res)||void 0===t||null===(r=t.video)||void 0===r?void 0:r.isSSAIEnabled)||!1,p=(null==n?void 0:n.skin_settings)||{};null==p||p.slowMoBtn;var f=(null==n||null===(s=n.customData)||void 0===s?void 0:s.ads)||{};null!=p&&p.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());null!=p&&p.rewindBtn&&(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(u=n.relatedVideos)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(a=n.streams)||void 0===a?void 0:a.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(v=n.playlist)||void 0===v||null===(C=v.content)||void 0===C?void 0:C.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(c=n.series)&&void 0!==c&&c.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n);if("MEDIA_TAILOR"==(null==f?void 0:f.vodAdSticherProvider)&&null!=f&&f.vodAdClientSideTracking&&h){var m,b=null;if(null!=n&&null!==(m=n.series)&&void 0!==m&&m.enable){var g,B,y,L=null===(g=o.getCurrentVideo())||void 0===g||null===(B=g.video)||void 0===B||null===(y=B.gist)||void 0===y?void 0:y.id,j=o.getSeriesWatchMap(),V=(null==j?void 0:j.get(L))||{t:0,p:0},E=V.t;V.p<95&&(b=E)}else{var w=n.watchHistoryResumeTime;n.watchedPercentage<95&&(b=w)}o.setupAdvertisementMarkers(i,b)}}(r,s),t.addTVProviderImage(r,s)};
|
package/cjs/util-54e01671.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/typeof"),n=require("./generic-ccfc8514.js"),t=require("./skin-c97f0eea.js"),o=!1;exports.getVideoDuration=function(e){var n=t.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onReplay=function(e,r){var i=t.getPlayer(e);i?(i.on("ended",function(){return o=!0}),i.on("timeupdate",function(){if(!i.paused()&&o){var e,t,a=null===(e=n.getCurrentVideo())||void 0===e||null===(t=e.video)||void 0===t?void 0:t.id;n.videoReplayTracker.get(a)?(n.videoReplayTracker.clear(),n.trackMap.clear(),r(),n.videoReplayTracker.set(a)):(n.videoReplayTracker.clear(),n.videoReplayTracker.set(a)),o=!1}})):r("Cannot find player with id: '".concat(e,"'"))},exports.onTimeUpdate=function(e,n){var o=t.getPlayer(e);o?o.on("timeupdate",function(){return n(o.currentTime())}):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var o=t.getPlayer(e);o?o.on("ended",function(){return n(!0)}):n("Cannot find player with id: '".concat(e,"'"))},exports.playerEvents=function(){var n=function(e,n){var o=t.getPlayer(e);if(!o)throw"Cannot find player with id: '".concat(e,"'");if("function"!=typeof n)throw"Callback function (cb) is missing or not a function";return o};return{onPlay:function(e,t){n(e,t).on("play",function(){return t()})},onPause:function(e,t){n(e,t).on("pause",function(){return t()})},onMute:function(e,t){var o=n(e,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(e,t){var o=n(e,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(e,t){var o=n(e,t);o.on("fullscreenchange",function(e){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(e,t){var o=n(e,t);o.on("volumechange",function(){var e=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:e})})},onSeeked:function(e,t){var o=n(e,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){console.log(o.textTracks());var n=o.textTracks().tracks_.filter(function(e){return("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode});n.length>0&&t({enabled:n[0]})})},onDisableSubtitles:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){var n,r;console.log(o.textTracks()),(null==o||null===(n=o.textTracks())||void 0===n||null===(r=n.tracks_)||void 0===r?void 0:r.every(function(e){return"showing"!=e.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var r=n(t,o);r.on("loadeddata",function(){var n,t,i,a,c,u=r.textTracks();"object"==e(r.dash)&&null!=r.dash&&r.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(i=t.dashjs)||void 0===i||null===(a=i.MediaPlayer)||void 0===a||null===(c=a.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(e){o(e)});for(var l=0;l<u.length;l++){var d=u[l];"metadata"===d.kind&&(d.mode="hidden",n=d)}n&&n.addEventListener("cuechange",function(){var e=n.activeCues;if(e&&e.length>0)for(var t=0;t<e.length;t++){var r=e[t];o(r)}else console.log("no active cue at this moment")})})},onError:function(e,t){var o=n(e,t);o.on("error",function(){var e,n;t({error:null==o||null===(e=o.error())||void 0===e?void 0:e.code,msg:null==o||null===(n=o.error())||void 0===n?void 0:n.message})})}}},exports.seekToTimeStamp=function(e,n,o){var r=t.getPlayer(e);r?n>=0&&n<=r.duration()?(o({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),r.currentTime(n)):o({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):o("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var o=t.getPlayer(e);if(!o)return"Cannot find player with id: '".concat(e,"'");try{return o.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(e){return"Error: ".concat(e)}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-eb807ef0.js"),r=require("./generic-ccfc8514.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-fd60262d.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-54e01671.js");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.js")}).then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";d.highlightVideo(e),r.load(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var r=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(c=r.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),d.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-eb807ef0.js"),l=require("./generic-ccfc8514.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-fd60262d.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-3670a923.js"),require("md5"),require("js-cookie"),require("./captions-80f6eb66.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-54e01671.js");var v=r.getComponent("Component"),m=function(){i(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var i=o(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return n(this,e)});function b(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-fcdf11eb.js")}).then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(d.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",d.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),d.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var s=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var i,n,o,a,s,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";d.highlightVideo_DEFAULTV2_TEMP(e),l.load(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(s=t.videos[e])||void 0===s?void 0:s.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(n,o),r.dom.appendContent(n,s),r.dom.appendContent(e,n),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as n,h as t,a5 as i,a4 as o,a6 as a}from"./generic-585e9a5b.js";import{a as e}from"./util-36d2ab03.js";import{g as c,h as s}from"./skin-4f84b841.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var v=l.playerId;e(v,function(){var e=c(v);0!==(null==e?void 0:e.currentTime())&&((f=o())>d.length-1||(a(f+1),n(v,d[f].id).then(function(n){s(f,v),t(n.response),f++,h(n)}).catch(function(n){h(n),s(f,v),f++,r=setTimeout(function(){i(v)&&m(f,v,d)},5e3)})))})},m=function t(i,o,e,c){f=i,i>e.length-1||(a(f+1),n(o,e[i].id).then(function(n){s(f,o),f++,h(n)}).catch(function(n){h(n),setTimeout(function(){s(f,o),f++,t(f,o,e)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as n,h as t,a5 as i,a4 as o,a6 as a}from"./generic-7f2d1f91.js";import{a as c}from"./util-907fe226.js";import{g as e,h as s}from"./skin-0abde216.js";var u,r=0,f=0,l=[],m=function(n){l=n||[]},h=function(m){clearTimeout(r),l=(null==m?void 0:m.content)||[],u=null==m?void 0:m.cb;var h=m.playerId;c(h,function(){var c=e(h);0!==(null==c?void 0:c.currentTime())&&((f=o())>l.length-1||(a(f+1),n(h,l[f].id).then(function(n){s(f,h),t(n.response),f++,p(n)}).catch(function(n){p(n),s(f,h),f++,r=setTimeout(function(){i(h)&&d(f,h,l)},5e3)})))})},d=function t(i,o,c,e){f=i,i>c.length-1||(a(f+1),n(o,c[i].id).then(function(n){s(f,o),f++,p(n)}).catch(function(n){p(n),setTimeout(function(){s(f,o),f++,t(f,o,c)},5e3)}))},p=function(n){u&&u(n)};export{h as a,d as s,m as u};
|
package/esm/browser-de5f6a74.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=function(){var e,t;return navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(e=window.navigator)||void 0===e||null===(t=e.userAgentData)||void 0===t?void 0:t.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},t=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},r=new RegExp(["googlebot","bingbot","yandexbot","baiduspider","duckduckbot","applebot","facebookexternalhit","twitterbot","linkedinbot","slackbot","whatsapp","telegrambot","pinterestbot","semrushbot","ahrefsbot","petalbot","bytespider","amazonbot","gptbot","chatgpt-user","claudebot","anthropic-ai","ccbot","meta-externalagent","mj12bot","dotbot","rogerbot","ia_archiver","archive.org_bot","mediapartners-google","adsbot-google","feedfetcher-google","bingpreview","embedly","crawler","spider","slurp","lighthouse","headlesschrome","phantomjs","prerender","screaming frog","w3c_validator","python-requests","curl/","wget/","go-http-client","java/","libwww-perl","scrapy","httpclient","okhttp"].join("|"),"i"),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"!=typeof navigator?navigator.userAgent:"";return!!e&&(!("undefined"==typeof navigator||!navigator.webdriver)||r.test(e))};export{t as a,e as d,a as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{C as r,e as c}from"./icons-699e8cf0.js";import{g as l,d as s,e as d}from"./captions-2b4caf69.js";import{j as p,s as m,k as u,l as v}from"./skin-4f84b841.js";import"@babel/runtime/helpers/toConsumableArray";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=i.getComponent("Component"),y=function(){n(E,h);var y,g,C=(y=E,g=f(),function(){var e,t=o(y);if(g){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function E(t){var n,a,o,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=C.call(this,t,r)).playerId=r.playerId,i.seriesData=r.sres,i.currentVideoData=r.res,i.initialiseStructure(),i.loadCSS(),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"),i}return t(E,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(r())});return i.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=l(this.playerId);null==t||t.map(function(t){return s(e.playerId,t.id)});var n=this.el(),a=i.dom.createEl("div",{className:"caption-selection-container hidden"});i.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(p(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",m(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),i.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),u(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=i.dom.createEl("div",{className:"caption-selector-head"}),a=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(c())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=i.dom.createEl("div",{className:"caption-selector-content"}),l=i.dom.createEl("div",{className:"caption-container"}),s=this.createLanguageContanier();i.dom.appendContent(l,s),i.dom.appendContent(n,a),i.dom.appendContent(n,o),i.dom.appendContent(e,n),i.dom.appendContent(e,r),i.dom.appendContent(r,l),v(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=i.dom.createEl("div",{className:"caption-language-container"}),n=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.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=i.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")),l(e.playerId).map(function(t){return s(e.playerId,t.id)})},i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(t,a);for(var c=l(this.playerId),p=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==c||null===(a=c[n])||void 0===a?void 0:a.label;var l=i.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});l.onchange=function(t){d(e.playerId,c[n].id)},l.setAttribute("type","radio"),i.dom.appendContent(o,l),i.dom.appendContent(o,r),i.dom.appendContent(t,o)},m=0;m<c.length;m++)p(m);return t}},{key:"createFontSizeContainer",value:function(){var e=i.dom.createEl("div",{className:"caption-font-container"}),t=i.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});i.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 c=document.createElement("div");c.className="fontsize - ".concat(a),c.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var l=i.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)});l.setAttribute("type","radio"),l.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)}},i.dom.appendContent(r,l),i.dom.appendContent(r,c),i.dom.appendContent(e,r)}return e}}]),E}();export{y as default};
|
package/esm/captions-89897207.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./skin-0abde216.js";var e=function(e,n){var a,s,r;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(a=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===a||null===(s=a[0])||void 0===s||null===(r=s.style)||void 0===r||r.setProperty("display","flex"));for(var l=t(e).textTracks(),i=0;i<l.length;i++){var o=l[i];"subtitles"!==o.kind&&"captions"!==o.kind||o.id!=n||(o.mode="showing")}},n=function(e,n){for(var a=t(e).textTracks(),s=0;s<a.length;s++){var r=a[s];"subtitles"!==r.kind&&"captions"!==r.kind||r.id!==n||(r.mode="hidden")}},a=function(e){var n,a=t(e);return(null==a||null===(n=a.textTracks())||void 0===n?void 0:n.tracks_.filter(function(t){return"subtitles"==t.kind||"captions"===t.kind}))||[]},s=function(e){var n=t(e);n.remoteTextTracks().tracks_.map(function(t){"subtitles"==(null==t?void 0:t.kind)||null==t||t.kind,n.removeRemoteTextTrack(t)})},r=function(e,n){var a=t(e);a.remoteTextTracks().tracks_.map(function(t){a.removeRemoteTextTrack(t)}),n.map(function(t){a.addRemoteTextTrack({src:t.url,srclang:t.srclang,label:t.label||(null==t?void 0:t.language)})})};export{r as a,n as d,e,a as g,s as r};
|
package/esm/features-ce3dd24e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{R as a,O as s}from"./generic-585e9a5b.js";import{g as c}from"./renditions-19f0b3a9.js";import{g as d,p as u}from"./skin-4f84b841.js";import{g as p}from"./localisation-0bf399a1.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=p("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=u(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=u(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-8cbda37b.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=d(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-3eceb957.js").then(function(r){var o=r.default,l=d(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-991c6b60.js").then(function(r){var o=r.seriesModule,l=d(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-bc53c149.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-106547c2.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},O=function(e,t){import("./settings-icon-d7dfe9a5.js").then(function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},E=function(e,t){import("./playlist-2ccec51c.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},I=function(e,t){import("./series-v2-5ef2d921.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},w=function(e,t){import("./multicamv2-6604d8ad.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=d(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=d(e).el(),n=0,r=d(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},x=function(e,t){import("./videoSelector-03b3ffcb.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},L=function(e,t){import("./series-v2-bf3a1b5a.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},N=function(e,t){import("./multicamv2-1279caf9.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},R=function(e,t){import("./index-7f9c8eec.js").then(function(n){var r=n.default,o=d(e);i.registerComponent("MuteButton",r),o.addChild("MuteButton",h({playerId:e},t))})};export{B as a,j as b,b as c,y as d,C as e,O as f,S as g,M as h,g as i,x as j,N as k,E as l,L as m,P as n,k as o,I as p,w as q,R as r};
|