1"use strict";(self.webpackChunkwebsites_base=self.webpackChunkwebsites_base||[]).push([[2004],{5113(t,e,n){n.r(e),n.d(e,{default:()=>s});const i=JSON.parse('{"$J":"8#gci@$Hnfb?2PFpIavxRyP@2Q!QT@?K","ZR":"https://api-content.prismamedia.com/graphql"}');var a=n(8256),o=function(t,e,n,i){return new(n||(n=Promise))(function(a,o){function s(t){try{d(i.next(t))}catch(t){o(t)}}function r(t){try{d(i.throw(t))}catch(t){o(t)}}function d(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,r)}d((i=i.apply(t,e||[])).next())})};class s{constructor({player:t}){this.player=t,this.data=[]}init(){return o(this,void 0,void 0,function*(){this.data=yield this.getData()})}getData(){return o(this,void 0,void 0,function*(){var t,e;const n=yield this.getDataFromContentApi();return[...null!==(e=null===(t=null==n?void 0:n.data.content)||void 0===t?void 0:t.medias)&&void 0!==e?e:[],...this.player.customPlaylist]})}getDataFromContentApi(){return o(this,void 0,void 0,function*(){const t=this.player.adsCore.playerVideoId;try{const e=a.ep,n=JSON.stringify({mediaId:t}),o=new URLSearchParams({query:e,variables:n}),s=`${i.ZR}?${o}`,r=yield window.fetch(s,{method:"GET",headers:{"content-type":"application/json","x-api-key":i.$J}}),d=yield r.json(),{data:{errors:c}}=d;if(c&&c.length>0)throw c[0].message;return d}catch(t){return console.warn("BVT::getPlaylistFromContentApi error",t),null}})}manageRebounds(){return o(this,void 0,void 0,function*(){if(this.data.length){const t=this.player.instance,{videoId:e}=yield t.getState(),n=this.data.findIndex(t=>t.publicId===e);if(-1!==n){const e=n+1;e<this.data.length&&t.loadContent({video:this.data[e].id.toString()})}}})}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.