@viewlift/player-backup 2.0.268-backup → 2.0.270-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-509e6228.js → autoNextVideo-aab04ca2.js} +1 -1
- package/cjs/autoNextVideo-c18c5a9d.js +1 -0
- package/cjs/autoNextVideo-d02d40bb.js +1 -0
- package/cjs/autoNextVideo-fc3a66ed.js +1 -0
- package/cjs/bundle.css +647 -647
- package/cjs/{features-2a457d5b.js → features-06672d0e.js} +1 -1
- package/cjs/features-3cb595a6.js +1 -0
- package/cjs/features-7254ff24.js +1 -0
- package/cjs/features-e04a1906.js +1 -0
- package/cjs/generic-302fcb0f.js +1 -0
- package/cjs/generic-73c41ab8.js +1 -0
- package/cjs/generic-92ede746.js +1 -0
- package/cjs/generic-ece54fe4.js +1 -0
- package/cjs/{index-9d25f2c1.js → index-06461546.js} +1 -1
- package/cjs/index-156ebc96.js +1 -0
- package/cjs/index-3ea3d917.js +1 -0
- package/cjs/index-5f4c22e0.js +1 -0
- package/cjs/index-8fb992e3.js +1 -0
- package/cjs/index-a5284d8c.js +1 -0
- package/cjs/index-c3c5304e.js +1 -0
- package/cjs/index-e1fa72cb.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/{multicamv2-a20d415c.js → multicamv2-775af5cd.js} +1 -1
- package/cjs/multicamv2-7b610283.js +1 -0
- package/cjs/multicamv2-7c115911.js +1 -0
- package/cjs/{multicamv2-2e528142.js → multicamv2-84760599.js} +1 -1
- package/cjs/multicamv2-a1ad5eb0.js +1 -0
- package/cjs/multicamv2-cd64c23d.js +1 -0
- package/cjs/multicamv2-d8678089.js +1 -0
- package/cjs/multicamv2-dd2b304c.js +1 -0
- package/cjs/{nextEpisodeButton-2b96c8f7.js → nextEpisodeButton-55c9ca47.js} +1 -1
- package/cjs/nextEpisodeButton-8a285b57.js +1 -0
- package/cjs/nextEpisodeButton-943003ed.js +1 -0
- package/cjs/nextEpisodeButton-c0bf8d12.js +1 -0
- package/cjs/{playlist-769b630e.js → playlist-0817f929.js} +1 -1
- package/cjs/playlist-92c9c514.js +1 -0
- package/cjs/playlist-ae50e704.js +1 -0
- package/cjs/playlist-b02614d9.js +1 -0
- package/cjs/{series-8bf8c9e0.js → series-ad8bdcab.js} +1 -1
- package/cjs/series-b1d6b31a.js +1 -0
- package/cjs/series-c80c4a36.js +1 -0
- package/cjs/series-fa79e1a1.js +1 -0
- package/cjs/{series-v2-1488458a.js → series-v2-49a73d41.js} +1 -1
- package/cjs/{series-v2-61844655.js → series-v2-61a08a5d.js} +1 -1
- package/cjs/series-v2-79428f58.js +1 -0
- package/cjs/series-v2-979acedf.js +1 -0
- package/cjs/series-v2-9f2fa133.js +1 -0
- package/cjs/series-v2-b8010f7c.js +1 -0
- package/cjs/series-v2-b920c6e8.js +1 -0
- package/cjs/series-v2-bef8dcf9.js +1 -0
- package/cjs/{skin-14a3a4f1.js → skin-053c4b0e.js} +1 -1
- package/cjs/{skin-90812f3f.js → skin-1dbf6726.js} +1 -1
- package/cjs/{skin-064df3a0.js → skin-1fc9778c.js} +1 -1
- package/cjs/{skin-3a067c3a.js → skin-2b06a950.js} +1 -1
- package/cjs/{skin-b130340a.js → skin-35f8cc7b.js} +1 -1
- package/cjs/skin-3d0ecf5f.js +1 -0
- package/cjs/{skin-848294e2.js → skin-43859976.js} +1 -1
- package/cjs/{skin-abf69bec.js → skin-4a955d7a.js} +1 -1
- package/cjs/skin-58e9b426.js +1 -0
- package/cjs/skin-5bf91421.js +1 -0
- package/cjs/{skin-013181d1.js → skin-5cf349ab.js} +1 -1
- package/cjs/skin-65ada70c.js +1 -0
- package/cjs/skin-67fa7113.js +1 -0
- package/cjs/skin-6dc08f62.js +1 -0
- package/cjs/{skin-89130570.js → skin-6e633748.js} +1 -1
- package/cjs/skin-70374d63.js +1 -0
- package/cjs/skin-72444813.js +1 -0
- package/cjs/skin-78182ddc.js +1 -0
- package/cjs/skin-85e89904.js +1 -0
- package/cjs/skin-88072589.js +1 -0
- package/cjs/skin-988acd01.js +1 -0
- package/cjs/skin-9a207c46.js +1 -0
- package/cjs/skin-a100c6a0.js +1 -0
- package/cjs/skin-a20b263d.js +1 -0
- package/cjs/skin-b02f6a39.js +1 -0
- package/cjs/skin-c66c28cb.js +1 -0
- package/cjs/skin-d4a940d6.js +1 -0
- package/cjs/skin-d898389f.js +1 -0
- package/cjs/skin-d98e4f7a.js +1 -0
- package/cjs/skin-e8806c6e.js +1 -0
- package/cjs/skin-e8f2fbd4.js +1 -0
- package/cjs/skin-ec03e8e0.js +1 -0
- package/cjs/skin-ed5cb06a.js +1 -0
- package/cjs/skin-f7dd877b.js +1 -0
- package/cjs/skin-fb5aad71.js +1 -0
- package/cjs/skin-ff2aa150.js +1 -0
- package/cjs/{util-6c68bfbb.js → util-0108a17b.js} +1 -1
- package/cjs/util-4e928cc2.js +1 -0
- package/cjs/util-ac0da02b.js +1 -0
- package/cjs/util-fceffc9c.js +1 -0
- package/cjs/{videoSelector-dad7e0d5.js → videoSelector-161e6e18.js} +1 -1
- package/cjs/{videoSelector-0f7ec82d.js → videoSelector-68a44bf2.js} +1 -1
- package/cjs/videoSelector-788aefeb.js +1 -0
- package/cjs/videoSelector-98767cca.js +1 -0
- package/cjs/videoSelector-b2ed6c41.js +1 -0
- package/cjs/videoSelector-b960b6cb.js +1 -0
- package/cjs/videoSelector-cd0a328a.js +1 -0
- package/cjs/videoSelector-e0666d3f.js +1 -0
- package/esm/apis/index.d.ts +11 -0
- package/esm/assets/icons.d.ts +22 -0
- package/esm/autoNextVideo-245106dc.js +1 -0
- package/esm/autoNextVideo-4cdb3520.js +1 -0
- package/esm/autoNextVideo-7dd4dfc3.js +1 -0
- package/esm/autoNextVideo-9cfdd391.js +1 -0
- package/esm/bundle.css +647 -647
- package/esm/components/advertisement/advertisement.d.ts +1 -0
- package/esm/components/auto-next-video/autoNextVideo.d.ts +2 -0
- package/esm/components/big-mute-btn/index.d.ts +9 -0
- package/esm/components/broadcaster_image/index.d.ts +1 -0
- package/esm/components/caption-settings/caption-settings.d.ts +14 -0
- package/esm/components/dvr-seekbar/index.d.ts +14 -0
- package/esm/components/multicam/multicam.d.ts +18 -0
- package/esm/components/multicam-v2/multicamv2.d.ts +13 -0
- package/esm/components/multicam-v2_TEMP/multicamv2.d.ts +13 -0
- package/esm/components/next-ep-preview/next-ep-preview.d.ts +1 -0
- package/esm/components/next-episode/nextEpisodeButton.d.ts +13 -0
- package/esm/components/playlist-tray/playlist.d.ts +15 -0
- package/esm/components/quality-selector/index.d.ts +1 -0
- package/esm/components/resolution/resolution.d.ts +19 -0
- package/esm/components/series/series.d.ts +10 -0
- package/esm/components/series-v2/helper.d.ts +3 -0
- package/esm/components/series-v2/series-v2.d.ts +25 -0
- package/esm/components/series-v2_TEMP/helper.d.ts +1 -0
- package/esm/components/series-v2_TEMP/series-v2.d.ts +21 -0
- package/esm/components/settings-icon/settings-icon.d.ts +17 -0
- package/esm/components/timer/index.d.ts +5 -0
- package/esm/components/trickplay/helper.d.ts +13 -0
- package/esm/components/trickplay/index.d.ts +1 -0
- package/esm/components/trickplay/videojs.thumbnails.d.ts +1 -0
- package/esm/components/video-selector/videoSelector.d.ts +18 -0
- package/esm/components/video-selector_TEMP/videoSelector.d.ts +16 -0
- package/esm/components/watch-history/handleWatchHistory.d.ts +2 -0
- package/esm/contentHandler/content_types/epg.d.ts +4 -0
- package/esm/contentHandler/content_types/external.d.ts +4 -0
- package/esm/contentHandler/content_types/index.d.ts +5 -0
- package/esm/contentHandler/content_types/series.d.ts +4 -0
- package/esm/contentHandler/content_types/vod.d.ts +4 -0
- package/esm/contentHandler/firePlayer.d.ts +4 -0
- package/esm/core/captions.d.ts +10 -0
- package/esm/core/generic.d.ts +48 -0
- package/esm/core/player_instance.d.ts +6 -0
- package/esm/core/renditions.d.ts +6 -0
- package/esm/core/util.d.ts +19 -0
- package/esm/core/volume.d.ts +2 -0
- package/esm/dash/dashHandler.d.ts +1 -0
- package/esm/dash/linear_ssai.d.ts +1 -0
- package/esm/dash/sgai.d.ts +10 -0
- package/esm/{features-06330d47.js → features-3d00bfaf.js} +1 -1
- package/esm/features-51f77be4.js +1 -0
- package/esm/features-e8652545.js +1 -0
- package/esm/features-ee32a6b1.js +1 -0
- package/esm/features.d.ts +31 -0
- package/esm/generic-053ecf26.js +1 -0
- package/esm/generic-718c2043.js +1 -0
- package/esm/generic-f7b6857e.js +1 -0
- package/esm/generic-fa853318.js +1 -0
- package/esm/globalPlayerEvents.d.ts +8 -0
- package/esm/helpers/browser.d.ts +2 -0
- package/esm/helpers/currentVideoInfo.d.ts +19 -0
- package/esm/helpers/errorHandling.d.ts +2 -0
- package/esm/helpers/loader.d.ts +2 -0
- package/esm/helpers/localisation.d.ts +2 -0
- package/esm/helpers/scriptLoader.d.ts +2 -0
- package/esm/helpers/secondary-switching.d.ts +1 -0
- package/esm/helpers/skin.d.ts +20 -0
- package/esm/helpers/sourceRetriever.d.ts +11 -0
- package/esm/helpers/ssaiEventHandler.d.ts +27 -0
- package/esm/helpers/token.d.ts +10 -0
- package/esm/index-1844243e.js +1 -0
- package/esm/index-18e71208.js +1 -0
- package/esm/index-1ac2df49.js +1 -0
- package/esm/index-1eb08652.js +1 -0
- package/esm/index-37c4969a.js +1 -0
- package/esm/index-9367e9fe.js +1 -0
- package/esm/index-ac0740b3.js +1 -0
- package/esm/index-f529337e.js +1 -0
- package/esm/index.d.ts +39 -0
- package/esm/index.js +1 -1
- package/esm/{multicamv2-acd74932.js → multicamv2-328e923e.js} +1 -1
- package/esm/{multicamv2-d68842ee.js → multicamv2-4740ed50.js} +1 -1
- package/esm/multicamv2-4db4411c.js +1 -0
- package/esm/multicamv2-56795ac0.js +1 -0
- package/esm/multicamv2-9088f871.js +1 -0
- package/esm/multicamv2-af5aaae2.js +1 -0
- package/esm/multicamv2-cb120e9c.js +1 -0
- package/esm/multicamv2-d2e17a37.js +1 -0
- package/esm/{nextEpisodeButton-338de4e8.js → nextEpisodeButton-02ec2fbd.js} +1 -1
- package/esm/nextEpisodeButton-07b2ad4f.js +1 -0
- package/esm/nextEpisodeButton-2169fc07.js +1 -0
- package/esm/nextEpisodeButton-980827db.js +1 -0
- package/esm/playlist-0ee754f2.js +1 -0
- package/esm/playlist-35e41884.js +1 -0
- package/esm/playlist-5e7c09c3.js +1 -0
- package/esm/playlist-9803964f.js +1 -0
- package/esm/plugins/chromecast.d.ts +18 -0
- package/esm/plugins/comscore_dist/index.d.ts +50 -0
- package/esm/plugins/index.d.ts +2 -0
- package/esm/plugins/library.d.ts +8 -0
- package/esm/plugins/videojs-dash5.es.d.ts +51 -0
- package/esm/plugins/videojs_contrib_dash.d.ts +51 -0
- package/esm/{series-535d9397.js → series-1ac34519.js} +1 -1
- package/esm/series-8ee62012.js +1 -0
- package/esm/series-a4bbc31c.js +1 -0
- package/esm/series-d272f64a.js +1 -0
- package/esm/{series-v2-fa13b138.js → series-v2-177d5849.js} +1 -1
- package/esm/series-v2-1acb7131.js +1 -0
- package/esm/{series-v2-7de596f8.js → series-v2-2598cf78.js} +1 -1
- package/esm/series-v2-3299026d.js +1 -0
- package/esm/series-v2-4118214b.js +1 -0
- package/esm/series-v2-49a0edc1.js +1 -0
- package/esm/series-v2-7cc868a6.js +1 -0
- package/esm/series-v2-db4ffd44.js +1 -0
- package/esm/skin/carousel/skin.d.ts +1 -0
- package/esm/skin/default/events.d.ts +1 -0
- package/esm/skin/default/skin.d.ts +1 -0
- package/esm/skin/defaultV2/events.d.ts +1 -0
- package/esm/skin/defaultV2/skin.d.ts +1 -0
- package/esm/skin/index.d.ts +1 -0
- package/esm/skin/mini/events.d.ts +1 -0
- package/esm/skin/mini/skin.d.ts +1 -0
- package/esm/skin/minimalist/skin.d.ts +1 -0
- package/esm/skin/multiplayer/events.d.ts +1 -0
- package/esm/skin/multiplayer/skin.d.ts +1 -0
- package/esm/skin/news/events.d.ts +1 -0
- package/esm/skin/news/skin.d.ts +1 -0
- package/esm/skin/news_live/events.d.ts +1 -0
- package/esm/skin/news_live/skin.d.ts +1 -0
- package/esm/skin/vl_one/events.d.ts +1 -0
- package/esm/skin/vl_one/skin.d.ts +1 -0
- package/esm/{skin-fd7cd709.js → skin-0028b4f9.js} +1 -1
- package/esm/skin-0cd2c5af.js +1 -0
- package/esm/skin-101047cd.js +1 -0
- package/esm/skin-1919cffd.js +1 -0
- package/esm/{skin-479a40b3.js → skin-2b945cd5.js} +1 -1
- package/esm/skin-31a5bbbf.js +1 -0
- package/esm/skin-376f7235.js +1 -0
- package/esm/skin-3f6533f9.js +1 -0
- package/esm/{skin-f83590a2.js → skin-406a83e0.js} +1 -1
- package/esm/skin-5d70dccd.js +1 -0
- package/esm/skin-664339e7.js +1 -0
- package/esm/skin-66d8c4ba.js +1 -0
- package/esm/skin-678faffc.js +1 -0
- package/esm/skin-6df698eb.js +1 -0
- package/esm/{skin-665917ca.js → skin-7d31f534.js} +1 -1
- package/esm/skin-81d9aa36.js +1 -0
- package/esm/skin-89fcf481.js +1 -0
- package/esm/skin-96861a7b.js +1 -0
- package/esm/skin-97da3473.js +1 -0
- package/esm/skin-a8094978.js +1 -0
- package/esm/skin-b605bb54.js +1 -0
- package/esm/skin-be8f7529.js +1 -0
- package/esm/skin-c034f74d.js +1 -0
- package/esm/skin-ce94c821.js +1 -0
- package/esm/skin-cf0ff17f.js +1 -0
- package/esm/skin-d06474ec.js +1 -0
- package/esm/skin-d55ddaba.js +1 -0
- package/esm/skin-dc6a0bb2.js +1 -0
- package/esm/skin-e29aa22f.js +1 -0
- package/esm/skin-e59d91cf.js +1 -0
- package/esm/skin-e63be5f3.js +1 -0
- package/esm/skin-e9f5f527.js +1 -0
- package/esm/skin-edf70506.js +1 -0
- package/esm/skin-fa6fe4b3.js +1 -0
- package/esm/skin-fdab5e91.js +1 -0
- package/esm/skin-fe802a00.js +1 -0
- package/esm/{util-40db3943.js → util-468a93fd.js} +1 -1
- package/esm/util-9d3b1d34.js +1 -0
- package/esm/util-eb5f314c.js +1 -0
- package/esm/util-fac978d2.js +1 -0
- package/esm/utilities/analytics.d.ts +3 -0
- package/esm/utilities/beacon.d.ts +3 -0
- package/esm/utilities/comscore.d.ts +5 -0
- package/esm/utilities/controlsColor.d.ts +1 -0
- package/esm/utilities/conviva.d.ts +5 -0
- package/esm/utilities/keyboardShortcuts.d.ts +5 -0
- package/esm/utilities/replaceMacros.d.ts +1 -0
- package/esm/videoSelector-1b345e70.js +1 -0
- package/esm/videoSelector-3e58e8ce.js +1 -0
- package/esm/videoSelector-5fa20b2e.js +1 -0
- package/esm/videoSelector-842af462.js +1 -0
- package/esm/videoSelector-b9a2cbe5.js +1 -0
- package/esm/videoSelector-bf4a9044.js +1 -0
- package/esm/videoSelector-cbb097f3.js +1 -0
- package/esm/videoSelector-eda5c3b6.js +1 -0
- package/package.json +2 -2
- package/cjs/generic-b9f32717.js +0 -1
- package/cjs/index-1b56425c.js +0 -1
- package/esm/autoNextVideo-281b09dd.js +0 -1
- package/esm/generic-355cc8c6.js +0 -1
- package/esm/index-1a4369e9.js +0 -1
- package/esm/index-66169052.js +0 -1
- package/esm/playlist-d3eb7e41.js +0 -1
- package/esm/skin-02bec45a.js +0 -1
- package/esm/skin-6819b99b.js +0 -1
- package/esm/skin-68558a96.js +0 -1
- package/esm/skin-9638eb22.js +0 -1
- package/esm/skin-f9f02a42.js +0 -1
- package/esm/videoSelector-465a0eee.js +0 -1
- package/esm/videoSelector-97f0b9a4.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
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-92ede746.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-fc3a66ed.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-77c57718.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-fceffc9c.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-eb807ef0.js"),r=require("./generic-92ede746.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-fc3a66ed.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-77c57718.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-fceffc9c.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;
|
|
@@ -0,0 +1 @@
|
|
|
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-73c41ab8.js"),d=require("./skin-c97f0eea.js"),s=require("./autoNextVideo-d02d40bb.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-77c57718.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-ac0da02b.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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export namespace baseUrlManager {
|
|
2
|
+
function set(param: any): void;
|
|
3
|
+
function get(): any;
|
|
4
|
+
}
|
|
5
|
+
export function getVideoDetails(id: any, token: any, ssaiDisable?: boolean): Promise<any>;
|
|
6
|
+
export function getSeriesDetails(id: any, token: any): Promise<any>;
|
|
7
|
+
export function saveWatchHistory(params: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
|
+
export function getVideoInfo(videoId: any, token: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
+
export function getSeriesWatchHistory(data: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
10
|
+
export function getLinearChannelDetails(params: any, token: any, ssaiDisable?: boolean): Promise<any>;
|
|
11
|
+
export function getEntitlementData(id: any, token: any, url: any, locationData: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function RewindSvgV3(): string;
|
|
2
|
+
export function InfoIcon(): string;
|
|
3
|
+
export function PlaylistIcon(): string;
|
|
4
|
+
export function WidgetSelector(): string;
|
|
5
|
+
export function WidgetInactive(): string;
|
|
6
|
+
export function BroadcastIcon(): string;
|
|
7
|
+
export function SelectedStream(): string;
|
|
8
|
+
export function SkipSvg(skin: any): string;
|
|
9
|
+
export function RewindSvg(skin: any): string;
|
|
10
|
+
export function SettingsSvg(): string;
|
|
11
|
+
export function MaximizeSvg(color: any): string;
|
|
12
|
+
export function NewCaptionsSvg(): string;
|
|
13
|
+
export function EpisodesSvg(): string;
|
|
14
|
+
export function MinimizeSvg(color: any): string;
|
|
15
|
+
export function PlayNextEpisodeSvg(color: any): string;
|
|
16
|
+
export function crossIconSvg(): string;
|
|
17
|
+
export function SkipSvgV2(): string;
|
|
18
|
+
export function RewindSvgV2(): string;
|
|
19
|
+
export function SettingsSvgV2(): string;
|
|
20
|
+
export function CaptionsSvgV2(): string;
|
|
21
|
+
export function BackIcon(): string;
|
|
22
|
+
export function TickMarkIcon(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-053ecf26.js";import{a}from"./util-9d3b1d34.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;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(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,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[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,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-fa853318.js";import{a}from"./util-fac978d2.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;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(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,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[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,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-f7b6857e.js";import{a}from"./util-eb5f314c.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;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(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,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[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,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as n,h as t,Y as i,X as o,Z as e}from"./generic-718c2043.js";import{a}from"./util-468a93fd.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;a(v,function(){var a=c(v);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(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,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[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,a)},5e3)}))},h=function(n){u&&u(n)};export{l as a,m as s};
|