1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(()=>{let mtc_e=getCookie("mtc_e");if(typeof mtc_e==='string'&&mtc_e.length>10){let mtc_e_decoded=atob(mtc_e);if(typeof mtc_e_decoded!=='undefined'){let mtc_e_json=JSON.parse(mtc_e_decoded);if(mtc_e_json.email_md5!=null&&getCookie("_tgt5")==null)setCookie("_tgt5",mtc_e_json.email_md5,365);if(mtc_e_json.email_sha256!=null&&getCookie("_tgt2")==null)setCookie("_tgt2",mtc_e_json.email_sha256,365);let _tgtd={};_tgtd.mcg=mtc_e_json.title!=null?mtc_e_json.title:"";_tgtd.mcb=mtc_e_json.birthdate!=null?mtc_e_json.birthdate:"";const getAge=(birthDate)=>Math.floor((new Date()-new Date(birthDate).getTime())/3.15576e+10);_tgtd.mca=_tgtd.mcb!==null?getAge(_tgtd.mcb):"";_tgtd.mcz=mtc_e_json.zipcode!==null?mtc_e_json.zipcode:"";_tgtd.mcc=mtc_e_json.country!==null?mtc_e_json.country:"";if(mtc_e_json.tags&&Array.isArray(mtc_e_json.tags))mtc_e_json.tags.forEach((item,index,arr)=>{arr[index]=arr[index].replace("[interest]","");});_tgtd.mci=mtc_e_json.tags&&Array.isArray(mtc_e_json.tags)?mtc_e_json.tags.join(","):"";if(_tgtd.mcg||_tgtd.mcb||_tgtd.mca||_tgtd.mcz||_tgtd.mcc){let mtcd=encodeURIComponent("mcg="+_tgtd.mcg+";mcb="+_tgtd.mcb+";mca="+_tgtd.mca+";mcz="+_tgtd.mcz+";mcc="+_tgtd.mcc+";mci="+_tgtd.mci);setCookie("_tgtd",mtcd,365);}}}const urlParams=new URLSearchParams(window.location.search);if(urlParams.get('utm_medium')==='email'&&!(getCookie("_tgt5")!==null&&getCookie("_tgt2")!==null))setTimeout(()=>{let mtc_id=getCookie("mtc_id");if(mtc_id!==null&&mtc_id>0){const url=window.location.origin+"/api/mautic/getContact";let xhr=new XMLHttpRequest();xhr.open("GET",url,true);xhr.setRequestHeader("Content-type","application/json; charset=UTF-8");xhr.onreadystatechange=()=>{};xhr.send();}},3000);})();; 3(()=>{function isConsentGiven(){let purposes=["cookies","create_ads_profile","create_content_profile","market_research","measure_ad_performance","measure_content_performance","select_basic_ads","select_personalized_ads","select_personalized_content"];for(let purpose in purposes)if(!Didomi.getUserConsentStatusForPurpose(purposes[purpose]))return false;return true;}window.didomiOnReady=window.didomiOnReady||[];window.didomiOnReady.push(function(){try{const params=new URLSearchParams(window.location.search);if(params.get('consent')==='true'){try{params.delete('consent');const newSearch=params.toString();const newUrl=window.location.origin+window.location.pathname+(newSearch?'?'+newSearch:'')+window.location.hash;window.history.replaceState(null,document.title,newUrl);}catch(err){}Didomi.setUserAgreeToAll();return;}}catch(e){}if(!Didomi.notice.isVisible()&&!Didomi.shouldConsentBeCollected()&&!isConsentGiven())Didomi.notice.show();Didomi.on("notice.clickdisagree",function(){window.location.href='/user/register';});Didomi.on("preferences.clickdisagreetoall",function(){window.location.href='/user/register';});});})();; 4((drupalSettings)=>{const modalSettings=drupalSettings?.npmAssetInsert?.newsletterModal;function getCookie(name){const match=document.cookie.match(new RegExp(`(^|;\\s*)${name}\\s*=\\s*([^;]+)`));return match?decodeURIComponent(match.pop()):null;}function setCookieUntilNextDay(name,value){const expires=new Date();expires.setHours(24,0,0,0);document.cookie=`${name}=${encodeURIComponent(value)}; expires=${expires.toUTCString()}; path=/; SameSite=Lax`;}function shouldSkipAutoOpen(settings){const urlParams=new URLSearchParams(window.location.search);if(getCookie(settings.cookieName)||getCookie(settings.subscriberCookieName))return true;if(urlParams.get('utm_medium')==='email'&&urlParams.get('utm_source')==='list')return true;return urlParams.get('utm_campaign')==='Welcoming';}function closeModal(modal){modal.classList.add('hidden');document.documentElement.classList.remove('overflow-y-hidden');document.body.classList.remove('overflow-y-hidden');}function bindCloseAfterSubmit(modal){if(modal.dataset.newsletterSubmitBound==='true')return;const closeAfterSubmit=()=>{window.setTimeout(()=>closeModal(modal),3000);};document.addEventListener('submit',(event)=>{const form=event.target;if(form&&form.id==='mauticform_formulaireinscriptionpopin')closeAfterSubmit();});const attachFormListener=()=>{const form=modal.querySelector('#mauticform_formulaireinscriptionpopin');if(form&&!form.dataset.newsletterSubmitBound){form.addEventListener('submit',closeAfterSubmit);form.dataset.newsletterSubmitBound='true';return true;}return false;};if(!attachFormListener()){const observer=new MutationObserver(()=>{if(attachFormListener())observer.disconnect();});observer.observe(modal,{childList:true,subtree:true});}modal.dataset.newsletterSubmitBound='true';}function ensureFormLoaded(settings,modal){if(modal.dataset.newsletterFormLoaded==='true')return;const formContainer=modal.querySelector('[data-newsletter-form-container]')||modal.querySelector('.flex.justify-center.w-full.mb-2 .w-full');if(!formContainer)return;const script=document.createElement('script');script.src=settings.formScriptUrl;script.type='text/javascript';script.charset='utf-8';script.async=true;formContainer.replaceChildren(script);modal.dataset.newsletterFormLoaded='true';bindCloseAfterSubmit(modal);}function ensureModal(settings){let modal=document.getElementById('nl_register_modal');if(modal)return modal;const wrapper=document.createElement('div');wrapper.innerHTML=settings.markup.trim();modal=wrapper.firstElementChild;if(!modal)return null;document.body.appendChild(modal);if(modal.dataset.newsletterBound!=='true'){const closeButton=modal.querySelector('[data-close]');closeButton?.addEventListener('click',()=>closeModal(modal));modal.addEventListener('click',(event)=>{if(event.target===modal)closeModal(modal);});document.addEventListener('keydown',(event)=>{if(event.key==='Escape'&&!modal.classList.contains('hidden'))closeModal(modal);});modal.dataset.newsletterBound='true';}return modal;}function openModal(settings){const modal=ensureModal(settings);if(!modal)return;ensureFormLoaded(settings,modal);modal.classList.remove('hidden');document.documentElement.classList.add('overflow-y-hidden');document.body.classList.add('overflow-y-hidden');setCookieUntilNextDay(settings.cookieName,'1');}function bindTriggers(settings){document.querySelectorAll('[data-newsletter-modal-trigger]').forEach((trigger)=>{if(trigger.dataset.newsletterTriggerBound==='true')return;trigger.addEventListener('click',(event)=>{event.preventDefault();openModal(settings);});trigger.dataset.newsletterTriggerBound='true';});}function initLazyModal(settings){bindTriggers(settings);if(shouldSkipAutoOpen(settings))return;window.setTimeout(()=>
4openModal(settings),settings.autoOpenDelay||30000);}function initLegacyPopup(){const urlParams=new URLSearchParams(window.location.search);if(!getCookie('_tgt5')&&!(urlParams.get('utm_medium')==='email'&&urlParams.get('utm_source')==='list')&&urlParams.get('utm_campaign')!=='Welcoming'&&drupalSettings.popup_url){const script=document.createElement('script');script.src=drupalSettings.popup_url;script.type='text/javascript';script.charset='utf-8';script.async=true;document.body.appendChild(script);}}document.addEventListener('DOMContentLoaded',()=>{if(modalSettings?.markup&&modalSettings?.formScriptUrl){initLazyModal(modalSettings);return;}initLegacyPopup();});})(drupalSettings);;
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.