1import"./accordion-BVfF3-43.js";import"./modal-DOJ-DYgf.js";import"./klaro-config-C_tvvxuJ.js";import"./slider-BWwKma1E.js";import{g as T}from"./_commonjsHelpers-Cpj98o6Y.js";import{o as u}from"./on_load_async-Dd9lPJDF.js";import{C as y,A as B,r as h}from"./index-DK_IoeUh.js";import"./config_chat_zendesk-DNw_X2du.js";function b(e){let t=!1;document.addEventListener("scroll",()=>{t||(window.requestAnimationFrame(()=>{e(),t=!1}),t=!0)})}var S={exports:{}};/*! Image Map Resizer (imageMapResizer.min.js ) - v1.0.10 - 2019-04-10 2 * Desc: Resize HTML imageMap to scaled image. 3 * Copyright: (c) 2019 David J. Bradshaw - [email protected] 4 * License: MIT 5 */(function(e){(function(){function t(){function o(){var l={width:c.width/c.naturalWidth,height:c.height/c.naturalHeight},_={width:parseInt(window.getComputedStyle(c,null).getPropertyValue("padding-left"),10),height:parseInt(window.getComputedStyle(c,null).getPropertyValue("padding-top"),10)};m.forEach(function(A,C){var v=0;d[C].coords=A.split(",").map(function(q){var p=(v=1-v)==1?"width":"height";return _[p]+Math.floor(Number(q)*l[p])}).join(",")})}function a(l){return l.coords.replace(/ *, */g,",").replace(/ +/g,",")}function r(){clearTimeout(g),g=setTimeout(o,250)}function i(l){return document.querySelector('img[usemap="'+l+'"]')}var s=this,d=null,m=null,c=null,g=null;typeof s._resize!="function"?(d=s.getElementsByTagName("area"),m=Array.prototype.map.call(d,a),c=i("#"+s.name)||i(s.name),s._resize=o,c.addEventListener("load",o,!1),window.addEventListener("focus",o,!1),window.addEventListener("resize",r,!1),window.addEventListener("readystatechange",o,!1),document.addEventListener("fullscreenchange",o,!1),c.width===c.naturalWidth&&c.height===c.naturalHeight||o()):s._resize()}function n(){function o(r){r&&(function(i){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if(i.tagName.toUpperCase()!=="MAP")throw new TypeError("Expected <MAP> tag, found <"+i.tagName+">.")}(r),t.call(r),a.push(r))}var a;return function(r){switch(a=[],typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"map"),o);break;case"object":o(r);break;default:throw new TypeError("Unexpected data type ("+typeof r+").")}return a}}e.exports=n(),"jQuery"in window&&(window.jQuery.fn.imageMapResize=function(){return this.filter("map").each(t).end()})})()})(S);var k=S.exports;const N=T(k);u(()=>{document.querySelectorAll("map").forEach(e=>{const t=Number(e.dataset.imageWidth),n=Number(e.dataset.originalImageWidth),o=t/n;e.querySelectorAll("area").forEach(a=>{const i=a.getAttribute("coords").split(",").map(s=>Number(s)*o).join(",");a.setAttribute("coords",i)})}),N()});u(()=>{document.querySelectorAll(".filtre-recherche").forEach(e=>{const t=e.elements["url-prefix"].value,n=e.querySelector(".cooperative_select"),o=e.querySelector(".thematique_select");e.addEventListener("submit",a=>{a.preventDefault();const r=n.value||"toutes";let i;o&&o.value!==""?i=`${t}/${r}/${o.value}/1`:i=`${t}/${r}`,window.location.href=i})})});function x(){function e(t){window.Klaro?.getManager().consents.matomo&&window._mtm.push(t)}document.querySelectorAll("[data-gtm-event=btn-header-souscription]").forEach(t=>{t.addEventListener("click",()=>{e({event:"genericEvent",eventType:"ctaSouscriptionHeader",getCategory:"Navigation",getAction:"CTA Header",getLabel:"Souscription"})})}),document.querySelectorAll("[data-gtm-event=btn-header-ldf]").forEach(t=>{t.addEventListener("click",()=>{e({event:"genericEvent",eventType:"ctaFundraisingHeader",getCategory:"Navigation",getAction:"CTA Header",getLabel:"Levée de fonds"})})}),document.querySelectorAll("[data-gtm-event=btn-header-espace-client]").forEach(t=>{t.addEventListener("click",()=>{e({event:"genericEvent",eventType:"ctaEspaceClientHeader",getCategory:"Navigation",getAction:"CTA Header",getLabel:"Espace Client"})})}),document.querySelectorAll("[data-gtm-event=btn-header-societaire]").forEach(t=>{t.addEventListener("click",()=>{e({event:"genericEvent",eventType:"ctaEspaceSocietaireHeader",getCategory:"Navigation",getAction:"CTA Header",getLabel:"Espace Sociétaire"})})}),document.querySelectorAll("[data-gtm-event=social-network-page-links] a").forEach(t=>{t.addEventListener("click",()=>{e({event:"genericEvent",eventType:"clicSocialPage",getCategory:"Navigation",getAction:"Bouton Réseau Social",getLabel:t.dataset.networkName})})}),document.querySelectorAll(".bloc a[data-prismic-document-category]").forEach(t=>{const n=t.dataset.prismicDocumentCategory;n&&t.addEventListener("click",()=>{e({event:"genericEvent",eventType:"ctaBloc",getCategory:"Navigation",getAction:"CTA Bloc",getLabel:n})})}),document.querySelector("[data-gtm-event=btn-bloc-page-accueil-souscription]")?.addEventListener("click",()=>{e({event:"genericEvent",eventType:"ctaSouscriptionHome",getCategory:"Navigation",getAction:"CTA Home",getLabel:"Souscription"})}),document.querySelectorAll("[data-gtm-event=social-network-share-links] a").forEach(t=>{t.addEventListener("click",()=>{e({event:"genericEvent",eventType:"clicSocialShare",getCategory:"Engagement",getAction:"Partage Réseau Social",getLabel:t.dataset.networkName})})}),document.addEventListener("click",t=>{const n=t.target.closest("a[data-gtm-event=contact-form-question]");if(n){const o=n.textContent;e({event:"genericEvent",eventType:"clicQuestionContact",getCategory:"Navigation",getAction:"Question Page Contact",getLabel:o})}}),document.addEventListener("submit",t=>{const n=document.querySelector("form#contact_form");if(!n||t.target!==n)return;const o=n.querySelectorAll("select.step-select"),a=Array.from(o).map(r=>r.options[r.selectedIndex].innerHTML).join(" | ");e({event:"genericEvent",eventType:"contactFormSent",getCategory:"Engagement",getAction:"Formulaire contact",getLabel:a})})}u(()=>{window.initTrackers&&window.initTrackers(x)});function E(){return document.querySelector(".main-navbar")?.classList.contains("navbar-transparent")}u(()=>{if(document.querySelectorAll("nav.navigation-mobile .navigation-item-mobile.navigation-item-submenu").forEach(e
5=>{e.addEventListener("click",()=>{const t=e.dataset.navigationMobileLinkIndex;document.querySelector(`.js_navigation_mobile_submenu_${t}`).classList.add("active")})}),document.querySelectorAll(".js-btn-mon-espace").forEach(e=>{e.addEventListener("click",()=>{document.querySelector(".js_navigation_mobile_submenu_mon_espace").classList.add("active")})}),document.querySelectorAll("nav .corpo-arrow_menu").forEach(e=>{e.addEventListener("click",t=>{const n=e.dataset.navigationMobileCloseMenuIndex;n!=null&&(document.querySelector(`.js_navigation_mobile_submenu_${n}`).classList.remove("active"),t.stopPropagation())})}),E()){const e=Array.from(document.querySelectorAll(".js-couverture-subscription-button")),t=document.querySelector(".main-navbar .icons-mobile .js-btn-souscription-mobile"),n=document.querySelector(".main-navbar");let o=!0;const a=()=>{const r=n.getBoundingClientRect().bottom;Math.max(...e.map(s=>s.getBoundingClientRect().bottom))<=r?o||(t.classList.remove("masked"),o=!0):o&&(t.classList.add("masked"),o=!1)};b(a),window.addEventListener("resize",a),a()}});const f="scrolled",w="menu-displayed";function j(e){e.classList.add(w)}function H(e){e.classList.remove(w)}function M(){const e=document.querySelector(".navigation-item-menu.active");return e?e.dataset.navigationItemIndex:null}function L(){document.querySelectorAll(".navigation-item.active").forEach(e=>{e.classList.remove("active")}),document.querySelectorAll(".navigation-item-menu.active").forEach(e=>{e.classList.remove("active"),e.style.setProperty("bottom",0)})}function I(e,t){const n=e.dataset.navigationItemIndex;M()!==n&&(L(),e.classList.add("active"),document.querySelectorAll(`.navigation-item-menu-${n}`).forEach(o=>{o.classList.add("active"),o.style.setProperty("bottom",`-${o.clientHeight}px`)}),j(t))}u(()=>{const e=document.querySelector(".main-navbar");if(e&&(e.querySelectorAll("[data-navigation-item-index]").forEach(t=>{t.addEventListener("mouseover",()=>{I(t,e)})}),document.querySelector(".nav-wrapper").addEventListener("mouseleave",()=>{L(),H(e)}),E())){let t=!1;const n=document.querySelector(".alert-banner"),o=n&&n.clientHeight;b(()=>{const a=window.scrollY;a===0?t&&(t=!1,e.classList.remove(f)):a>0&&(t||(t=!0,e.classList.add(f))),o&&(o>a?(n.style.marginTop=`-${a}px`,n.style.display="block"):n.style.display="none")})}});class P extends y{static values={class:String};toTarget(t){t.preventDefault();const n=this.element.ownerDocument.querySelector(this.classValue);n&&n.scrollIntoView({behavior:"smooth"})}}const z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));class D extends y{static targets=["banner"];connect(){this.lastScrollTop=window.scrollY||0,this.handleScroll()}handleScroll(){const t=window.scrollY||0;t<=120?this.showBanner():t>this.lastScrollTop&&this.hideBanner(),this.lastScrollTop=t}hideBanner(){this.bannerTarget.classList.remove("vc-news-banner--visible"),this.bannerTarget.classList.add("vc-news-banner--hidden")}showBanner(){this.bannerTarget.classList.add("vc-news-banner--visible"),this.bannerTarget.classList.remove("vc-news-banner--hidden")}}const $=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),O=Object.assign({"./controllers/scroll_to_controller.js":z}),R=Object.assign({"../components/site_corpo/news_banner_component_controller.js":$});window.Stimulus=B.start();h(window.Stimulus,R);h(window.Stimulus,O); 6//# sourceMappingURL=site_corpo-awX3nw0Q.js.map
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.