1"use strict";(self.webpackChunkfranceinfo_package=self.webpackChunkfranceinfo_package||[]).push([[6247],{4416:function(e,t,i){function n(){this.piano.sendClick({feature:"cmp_notice",click:"accepter_et_fermer",cmp_analytics:"true",cmp_targeted_advertising:"true",cmp_custom_content:"true"})}function s(){this.piano.sendClick({feature:"cmp_notice",click:"continuer_sans_accepter",cmp_analytics:"false",cmp_targeted_advertising:"false",cmp_custom_content:"false"})}function r(){this.piano.sendClick({feature:"cmp_parametrer",click:"tout_accepter",cmp_analytics:"true",cmp_targeted_advertising:"true",cmp_custom_content:"true"})}function o(){this.piano.sendClick({feature:"cmp_parametrer",click:"tout_refuser",cmp_analytics:"false",cmp_targeted_advertising:"false",cmp_custom_content:"false"})}function a(){this.piano.sendClick({feature:"cmp_partenaires",click:"enregistrer"})}async function c(){const e=(await this.getConsentFromPurposeString("choix_mesure_audience")).toString(),t=(await this.getConsentFromPurposeString("choix_personnalisation")).toString(),i=(await this.getConsentFromPurposeString("cookies")).toString();this.piano.sendClick({feature:"cmp_parametrer",click:"enregistrer",cmp_analytics:e,cmp_targeted_advertising:i,cmp_custom_content:t})}function d(){this.piano.sendPrint({feature:"cmp_notice"})}function l(){this.piano.sendPrint({feature:"cmp_parametrer"})}function u(){this.piano.sendPrint({feature:"cmp_partenaires"})}function h(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.r(t),i.d(t,{default:function(){return p}});class m{constructor(e,t,n){this.utils=e,this.config=t,this.piano=n,h(this,"PURPOSE_IDS",{choix_mesure_audience:"mesureda-LjJ4eyi4",choix_publicite_ciblee:"Gk9VwM",choix_partage_rs:"reseauxso-MfkyPMj3",choix_personnalisation:"personnali-2G8aCWAB",cookies:"cookies"}),h(this,"CONSENT_STRING_KEY","euconsent-v2"),h(this,"ITEMS_TO_KEEP",[this.CONSENT_STRING_KEY,"didomi_token","didomi_dcs"]),h(this,"ITEMS_TO_KEEP_REGEX",/^(ftvi|fi_)/i),h(this,"MUST_DELETE_USER_DATA","fi_must_delete_user_data"),h(this,"didomiPromise",void 0),h(this,"popinShownPromise",void 0),h(this,"isPopinDisplay",void 0),window.didomiEventListeners=window.didomiEventListeners||[],this.registerCookieDeletion(),this.deleteUserDatasIfNeeded(),this.registerPromises(),this.addTracking(),this.loadDidomi(),this.popinShownPromise.then(()=>{i.e(5581).then(i.bind(i,2785))})}registerPromises(){window.didomiOnReady=window.didomiOnReady||[],this.didomiPromise=new Promise(e=>{window.didomiOnReady.push(t=>{e(t)})}),this.popinShownPromise=new Promise(e=>{window.didomiEventListeners.push({event:"notice.shown",listener:()=>e(!0)}),window.didomiEventListeners.push({event:"preferences.shown",listener:()=>e(!0)})})}addTracking(){[{event:"notice.clickagree",listener:n.bind(this)},{event:"notice.clickdisagree",listener:s.bind(this)},{event:"preferences.clickagreetoall",listener:r.bind(this)},{event:"preferences.clickdisagreetoall",listener:o.bind(this)},{event:"preferences.clicksavechoices",listener:c.bind(this)},{event:"preferences.clickvendorsavechoices",listener:a.bind(this)},{event:"notice.shown",listener:d.bind(this)},{event:"preferences.shown",listener:l.bind(this)},{event:"preferences.clickviewvendors",listener:u.bind(this)}].forEach(e=>{window.didomiEventListeners.push(e)})}loadDidomi(){return this.config.getConfig().then(e=>{this.utils.loadScript(`https://sdk.privacy-center.org/${e.cmp.groupId}/loader.js?target_type=notice&target=${e.cmp.productId}`,{attributes:[{name:"id",value:"spcloader"},{name:"async",value:"true"},{name:"charset",value:"utf-8"}]})})}registerCookieDeletion(){var e=this;let t=0;const i=localStorage.getItem(this.CONSENT_STRING_KEY)||this.utils.readCookie(this.CONSENT_STRING_KEY);window.didomiEventListeners.push({event:"consent.changed",listener:async function(){const n=t>0||!!i,s=(await e.didomiPromise).getCurrentUserStatus().vendors||{},r=Object.values(s).some(e=>!1===e.enabled);n&&r&&e.triggerUserDataDeletion(),t+=1}})}triggerUserDataDeletion(){window.localStorage.setItem(this.MUST_DELETE_USER_DATA,"true"),window.location.reload()}deleteUserDatasIfNeeded(){"true"===window.localStorage.getItem(this.MUST_DELETE_USER_DATA)&&(this.cleanCookies(),this.cleanLocalStorage(),window.localStorage.removeItem(this.MUST_DELETE_USER_DATA))}cleanCookies(){const e=document.cookie.split(";").map(e=>e.split("=")[0].trim()).filter(e=>-1===this.ITEMS_TO_KEEP.indexOf(e)&&!e.match(this.ITEMS_TO_KEEP_REGEX)),t=document.location.hostname.split(".").slice(-2).join("."),i=[`.${t}`,t,window.location.hostname,""];
1e.forEach(e=>{i.forEach(t=>{this.utils.deleteCookie(e,t)})})}cleanLocalStorage(){Object.keys(window.localStorage).filter(e=>-1===this.ITEMS_TO_KEEP.indexOf(e)&&!e.match(this.ITEMS_TO_KEEP_REGEX)).forEach(e=>{window.localStorage.removeItem(e)})}onVendorStatusChange(e,t){this.didomiPromise.then(i=>{i.addVendorStatusListener(e,({enabled:e})=>{!0===e?t("accepted"):(!1===e||void 0===e)&&t()})})}async onVendorAccepted(e,t){!0!==await this.getConsentFromVendorId(e)?this.onVendorStatusChange(e,e=>{"accepted"===e&&t()}):t()}getConsentString(){return this.didomiPromise.then(e=>e.getCurrentUserStatus().consent_string)}getConsentFromPurposeString(e){return this.didomiPromise.then(t=>{var i;return null===(i=t.getCurrentUserStatus().purposes[this.PURPOSE_IDS[e]])||void 0===i?void 0:i.enabled})}getConsentFromVendorId(e){return this.didomiPromise.then(t=>{var i;return null===(i=t.getCurrentUserStatus().vendors[e])||void 0===i?void 0:i.enabled})}isPopinVisible(){return this.didomiPromise.then(e=>e.notice.isVisible())}}var p=new Promise(async e=>{const t=await i.e(9980).then(i.bind(i,2885)),n=await(await i.e(3355).then(i.bind(i,6672))).default,s=await(await i.e(9292).then(i.bind(i,3703))).default;e(new m(t,n,s))})}}]);
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.