1"use strict";(self.webpackChunkfranceinfo_package=self.webpackChunkfranceinfo_package||[]).push([[3158,8651],{2435:function(t,e,n){function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(t,e,n){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e);class s{constructor(t,e,n,i){var a,s,o,c;this.utils=t,this.config=e,this.cmp=n,this.piano=i,r(this,"CLASS_PLAYER","francetv-player-wrapper"),r(this,"NIELSEN_VENDOR_ID","estat-P2GUgJcz"),r(this,"baseConfig",{intro:!1,origin:"franceinfo",showAd:!0,autostart:!0,preload:!1,showTitle:!1,consent:{ad:"CO8PqVaO8PqVaAHABBENA9CgAAAAAAAAAAAAAAAAAAAA.YAAAAAAAAAAA",nielsen:void 0},tracking:{page:null!==(a=null===(s=window.pianoAnalyticsPageDisplay)||void 0===s?void 0:s.page)&&void 0!==a?a:"",pageType:null!==(o=null===(c=window.pianoAnalyticsPageDisplay)||void 0===c?void 0:c.page_type)&&void 0!==o?o:""}}),r(this,"dependenciesPromise",void 0),r(this,"instantiatedPlayers",{}),this.instantiatePlayers()}loadDependencies(){return new Promise(t=>{Promise.all([this.cmp.getConsentString(),this.cmp.getConsentFromVendorId(this.NIELSEN_VENDOR_ID)]).then(([t,e])=>{this.baseConfig.consent.ad=t,this.baseConfig.consent.nielsen=!0===e?"consented":void 0}).finally(()=>{this.config.getConfig().then(e=>{this.utils.loadScript(e.francetv.player).then(()=>{t(!0)})})})})}instantiatePlayers(){this.dependenciesPromise=this.loadDependencies();const t=document.querySelectorAll(`.${this.CLASS_PLAYER}`);for(const e of t)"true"===e.dataset.autoload?this.instantiatePlayerOnce(e):e.addEventListener("click",()=>{const t=document.createElement("div");for(const n of e.attributes)t.setAttribute(n.name,n.value);e.replaceWith(t),this.instantiatePlayerOnce(t)},{once:!0})}async instantiatePlayerOnce(t){const e=t.getAttribute("id");if(0===Object.keys(this.instantiatedPlayers).indexOf(e))return this.instantiatedPlayers[e];const n=this.instantiatePlayer(t);return this.instantiatedPlayers[e]=n,n}async instantiatePlayer(t,e={}){await this.dependenciesPromise;const n=window.magnetoscope,i=a(a(a({},this.baseConfig),JSON.parse(t.dataset.playerParameters||"{}")),e),r=new n(t,i);return t.id&&r.load({src:t.id}),t.classList.add(`${this.CLASS_PLAYER}--loaded`),r.on("video_start",()=>{if(void 0!==window.gtag&&window.gtag("event","conversion",{send_to:"AW-1021649860/uC82CPCpq58aEMTHlOcD"}),t.dataset.clickEventOnStart){const e=JSON.parse(t.dataset.clickEventOnStart);this.piano.sendClick(e)}}),r}}e.default=new Promise(t=>{(async()=>{const e=await n.e(9980).then(n.bind(n,2885)),i=await(await n.e(3355).then(n.bind(n,6672))).default,a=await(await n.e(6247).then(n.bind(n,4416))).default,r=await(await n.e(9292).then(n.bind(n,3703))).default,o=new s(e,i,a,r);t(o)})()})}}]);
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.