@viewlift/player-backup 2.0.288-backup → 2.0.290-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-19386762.js +1 -0
- package/cjs/browser-3670a923.js +1 -0
- package/cjs/bundle.css +726 -726
- package/cjs/features-2cdc4e39.js +1 -0
- package/cjs/generic-5b90c727.js +1 -0
- package/cjs/index-004fc85d.js +1 -0
- package/cjs/index-81c8f4a1.js +1 -0
- package/cjs/index-955b603e.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-1bdf2c52.js +1 -0
- package/cjs/multicamv2-56120328.js +1 -0
- package/cjs/nextEpisodeButton-290b490f.js +1 -0
- package/cjs/playlist-7b61a3c6.js +1 -0
- package/cjs/resolution-c33a67fb.js +1 -0
- package/cjs/series-20fe0127.js +1 -0
- package/cjs/series-v2-4d05ebf8.js +1 -0
- package/cjs/series-v2-5ccc7a93.js +1 -0
- package/cjs/settings-icon-1efd3e23.js +1 -0
- package/cjs/skin-00029c75.js +1 -0
- package/cjs/skin-12b4d86a.js +1 -0
- package/cjs/skin-1f5cd68e.js +1 -0
- package/cjs/skin-41b0c02d.js +1 -0
- package/cjs/skin-9d79794a.js +1 -0
- package/cjs/skin-ac3c64df.js +1 -0
- package/cjs/skin-ba07e8dc.js +1 -0
- package/cjs/skin-c08b2d3f.js +1 -0
- package/cjs/skin-c72adb59.js +1 -0
- package/cjs/videoSelector-95e64eba.js +1 -0
- package/cjs/videoSelector-ab05bccb.js +1 -0
- package/esm/autoNextVideo-379bbdc2.js +1 -0
- package/esm/browser-de5f6a74.js +1 -0
- package/esm/bundle.css +726 -726
- package/esm/components/watch-history/handleWatchHistory.d.ts +1 -0
- package/esm/features-dbc6b07e.js +1 -0
- package/esm/generic-b3643a73.js +1 -0
- package/esm/helpers/apiErrorTracker.d.ts +1 -0
- package/esm/helpers/browser.d.ts +1 -0
- package/esm/helpers/browser.test.d.ts +1 -0
- package/esm/index-8566dca0.js +1 -0
- package/esm/index-ac572236.js +1 -0
- package/esm/index-ae4cf675.js +1 -0
- package/esm/index.js +1 -1
- package/esm/multicamv2-a84ce8b3.js +1 -0
- package/esm/multicamv2-de90d28f.js +1 -0
- package/esm/nextEpisodeButton-bffd417f.js +1 -0
- package/esm/playlist-100ecdfe.js +1 -0
- package/esm/resolution-46076e4a.js +1 -0
- package/esm/series-8ef8fdfa.js +1 -0
- package/esm/series-v2-551f67e8.js +1 -0
- package/esm/series-v2-76f5001b.js +1 -0
- package/esm/settings-icon-60394554.js +1 -0
- package/esm/skin-1c1aa7a5.js +1 -0
- package/esm/skin-41718675.js +1 -0
- package/esm/skin-4280c73d.js +1 -0
- package/esm/skin-80e062bd.js +1 -0
- package/esm/skin-a6c3353b.js +1 -0
- package/esm/skin-dddf388c.js +1 -0
- package/esm/skin-e4073063.js +1 -0
- package/esm/skin-f9ec12e3.js +1 -0
- package/esm/skin-fdbbacca.js +1 -0
- package/esm/videoSelector-13ae5477.js +1 -0
- package/esm/videoSelector-93246044.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e,t=require("./generic-5b90c727.js"),n=require("./index-004fc85d.js"),o=require("./skin-e0cf4554.js"),i=0,r=0,u=new Set(["NOT_AIRED","VIDEO_NOT_AVAILABLE","CONTENT_NOT_AVAILABLE"]),l=function(e){return(null==e?void 0:e.response)||e},s=function(e,t){return e&&null!=t&&t.gist&&(e.response=e.response||{},e.response.video=e.response.video||{},e.response.video.gist=t.gist),e},d=function(e){var t,n,o=l(e),i=null==o||null===(t=o.response)||void 0===t?void 0:t.data;return 403===(null==o||null===(n=o.response)||void 0===n?void 0:n.status)||(!!(null!=i&&i.scheduleStartDate&&Number(i.scheduleStartDate)>Date.now())||!(null==i||!i.errorCode||!u.has(i.errorCode)))},a=function(e,t){clearTimeout(i);var r=l(t);n.handleCountdownTimer(e,r,null);var u=o.getPlayer(e);u&&!u.paused()&&u.pause()},c=function(e,n,i){var r=i[e];if(function(e){var t,n=null==e||null===(t=e.gist)||void 0===t?void 0:t.scheduleStartDate;return n&&Number(n)>Date.now()}(r))return Promise.reject(function(e){var t,n,o;return{response:{data:{errorMessage:null!=e&&null!==(t=e.gist)&&void 0!==t&&t.scheduleStartDate?"Coming soon":"Content not available",scheduleStartDate:null==e||null===(n=e.gist)||void 0===n?void 0:n.scheduleStartDate,scheduleEndDate:null==e||null===(o=e.gist)||void 0===o?void 0:o.scheduleEndDate,gist:null==e?void 0:e.gist}}}}(r));if(!o.getPlayer(n)){var u={status:!1,msg:"Player not initialised for next episode load",response:{playerId:n,episode:r}};return console.error("[autoNextVideo] player not found before trying next episode load",u),Promise.reject(u)}return t.load(n,r.id)},h=[],v=function e(n,i,u,l){r=n,n>u.length-1||(t.setVideoIdx(r+1),c(n,i,u).then(function(e){o.highlightVideo(r,i),r++,g(e)}).catch(function(t){g(s(t,u[n])),d(t)?a(i,t):setTimeout(function(){o.highlightVideo(r,i),r++,e(r,i,u)},5e3)}))},g=function(t){e&&e(t)};exports.autoPlayNext=function(u){clearTimeout(i),h=(null==u?void 0:u.content)||[],e=null==u?void 0:u.cb;var l=u.playerId;n.onVideoEnded(l,function(){var e=o.getPlayer(l);0!==(null==e?void 0:e.currentTime())&&((r=t.getVideoIdx())>h.length-1||(t.setVideoIdx(r+1),c(r,l,h).then(function(e){o.highlightVideo(r,l),t.setCurrentVideo(e.response),r++,g(e)}).catch(function(e){g(s(e,h[idx])),o.highlightVideo(r,l),d(e)?a(l,e):(r++,i=setTimeout(function(){t.isPaused(l)&&v(r,l,h)},5e3))})))})},exports.switchToNext=v,exports.updateContent=function(e){h=e||[]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=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");exports.detectBrowser=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"},exports.isBotUserAgent=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"!=typeof navigator?navigator.userAgent:"";return!!t&&(!("undefined"==typeof navigator||!navigator.webdriver)||e.test(t))},exports.isMobile=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};
|