1import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var s in n)t.o(n,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(s={getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store},o={},t.d(o,s),o);var s,o;function i(){return window.innerWidth>=992}function l(e){e&&(e.querySelectorAll(".wp-block-navigation__responsive-container, .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content, .wp-block-navigation__container").forEach(e=>{e.style.removeProperty("display"),e.style.removeProperty("visibility"),e.style.removeProperty("opacity"),e.style.removeProperty("position"),e.style.removeProperty("left"),e.style.removeProperty("top")}),e.querySelectorAll(".wp-block-navigation__responsive-container-open").forEach(e=>{e.style.display="none"}),e.querySelectorAll(".wp-block-navigation__responsive-container-close").forEach(e=>{e.style.display="none"}))}function a(e){if(!e)return;e.querySelectorAll(".wp-block-navigation__submenu-container.open").forEach(e=>{e.classList.remove("open","submenu-below-open"),e.style.display="none",e.style.visibility="hidden",e.style.opacity="0";const t=e.closest(".has-child")||e.closest(".wp-block-navigation-submenu");t&&t.classList.remove("menu-open")});const t=e.querySelector(".desktop-submenu-container");t&&(t.classList.remove("active"),t.innerHTML="")}(0,n.store)("wa-blocks/menu-burger",{actions:{toggle:()=>{const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)();if(e.isOpen){const n=t?.closest(".menu-burger"),s=n?.querySelector(".menu-burger__overlay");if(s){s.classList.add("is-closing");const t=()=>{s.classList.remove("is-closing"),e.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open"),s.removeEventListener("animationend",t)};s.addEventListener("animationend",t)}else e.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open")}else e.isOpen=!0;if(e.isOpen){document.body.style.overflow="hidden",document.body.classList.add("menu-burger-open");const{ref:e}=(0,n.getElement)(),t=e?.querySelector(".menu-burger__overlay");t&&l(t)}else document.body.style.overflow="",document.body.classList.remove("menu-burger-open")},close:()=>{const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)(),s=t?.closest(".menu-burger");s&&a(s);const o=s?.querySelector(".menu-burger__overlay");if(o){o.classList.add("is-closing");const t=()=>{o.classList.remove("is-closing"),e.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open"),o.removeEventListener("animationend",t)};o.addEventListener("animationend",t)}else e.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open")},handleKeydown:e=>{const t=(0,n.getContext)(),{ref:s}=(0,n.getElement)();if("Escape"===e.key){const e=s?.closest(".menu-burger")||s,n=e?.querySelectorAll(".wp-block-navigation__submenu-container.open");if(n&&n.length>0)a(e);else if(t.isOpen){const n=e?.querySelector(".menu-burger__overlay");if(n){n.classList.add("is-closing");const e=()=>{n.classList.remove("is-closing"),t.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open"),n.removeEventListener("animationend",e)};n.addEventListener("animationend",e)}else t.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open")}}},handleOverlayClick:e=>{if(e.target.classList.contains("menu-burger__overlay")){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)(),s=t?.closest(".menu-burger");s&&a(s);const o=t;if(o){o.classList.add("is-closing");const t=()=>{o.classList.remove("is-closing"),e.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open"),o.removeEventListener("animationend",t)};o.addEventListener("animationend",t)}else e.isOpen=!1,document.body.style.overflow="",document.body.classList.remove("menu-burger-open")}}},callbacks:{onOpen:()=>{if((0,n.getContext)().isOpen){const{ref:e}=(0,n.getElement)(),t=e?.closest(".menu-burger")||e;l(e),function(e){if(!e)return;const t=e.querySelector(".menu-burger-nav-row");if(!t)return;const n=t.querySelector(".desktop-submenu-container");n&&n.remove();const s=document.createElement("div");s.className="desktop-submenu-container",t.appendChild(s)}(t),function(e){if(!e||e._submenuInitialized)return;const t=e.dataset.submenuOpenMode||"overlay",n=e.dataset.submenuOverlayIcon||"",s=e.dataset.submenuBelowIcon||"",o=e.querySelectorAll(".wp-block-navigation-submenu, .has-child");o.forEach(l=>{const a=l.classList.contains("wpml-language-switcher-block")||l.closest(".wpml-language-switcher-block")||l.matches('[data-wpml="language-item"]'),r=l.querySelector(":scope > a")||(a?l.querySelector(":scope > .wp-block-navigation-item__content"):null),c=l.querySelector(":scope > .wp-block-navigation__submenu-container");if(!c||!r)return;l.classList.add("has-submenu-navigation"),c.classList.add("has-back-link");const m=r.textContent.trim(),u=r.getAttribute("href")||"#";if(!a&&!l.querySelector(".submenu-icon")){const e="below"===t?s:n,o=document.createElement("span");o.className="submenu-icon",o.innerHTML=e?`<img src="${e}" alt="" class="submenu-icon-img" />`:"below"===t?'<span class="submenu-chevron submenu-chevron--down">â¼</span>':'<span class="submenu-chevron submenu-chevron--right">âº</span>',r.appendChild(o)}if(!a&&"overlay"===t&&!c.querySelector(".back-link")){const e=document.createElement("li");e.className="wp-block-navigation-item back-link",e.innerHTML='\n\t\t\t\t<a class="wp-block-navigation-item__content back-link-trigger">\n\t\t\t\t\t<span class="back-link-arrow">â</span> Retour\n\t\t\t\t</a>\n\t\t\t';const t=document.createElement("li");t.className="wp-block-navigation-item duplicate-parent",t.innerHTML=`\n\t\t\t\t<a href="${u}" class="wp-block-navigation-item__content">\n\t\t\t\t\t${m}\n\t\t\t\t</a>\n\t\t\t`,c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild);const n=e.querySelector(".back-link-trigger");n&&n.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),c.classList.remove("open"),l.classList.remove("menu-open"),c.classList.add("closing");const t=()=>{c.classList.remove("closing"),c.style.display="none",c.style.visibility="hidden",c.style.opacity="0",c.removeEventListener("animationend",t)};c.addEventListener("animationend",t)})}if(!a&&"below"===t&&!c.querySelector(".duplicate-parent")){const e=document.createElement("li");e.className="wp-block-navigation-item duplicate-parent",e.innerHTML=`\n\t\t\t\t<a href="${u}" class="wp-block-navigation-item__content">\n\t\t\t\t\t${m}\n\t\t\t\t</a>\n\t\t\t`,c.insertBefore(e,c.firstChild)}r.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),"below"!==t&&o.forEach(e
1=>{if(e!==l){const t=e.querySelector(":scope > .wp-block-navigation__submenu-container");t?.classList.contains("open")&&(t.classList.remove("open"),e.classList.remove("menu-open"),t.style.display="none",t.style.visibility="hidden",t.style.opacity="0")}});const s=c.classList.toggle("open");if(l.classList.toggle("menu-open",s),s){if("below"===t){c.classList.add("submenu-below-open");let e="display: block !important; position: static !important; width: 100% !important; opacity: 1 !important; visibility: visible !important; background: inherit !important; animation: none !important; z-index: auto !important; padding-left: 1rem !important;";c.classList.contains("has-back-link")&&(e+=" padding-top: 15px !important;"),c.style.cssText=e}else i()||a?!i()&&a&&(c.style.display="block",c.style.visibility="visible",c.style.opacity="1"):(c.style.display="flex",c.style.visibility="visible",c.style.opacity="1");if(i()&&"below"!==t){const t=e.querySelector(".desktop-submenu-container");t&&(t.classList.add("active"),t.innerHTML="",Array.from(c.children).forEach(e=>{if(!e.classList.contains("back-link")){const n=e.cloneNode(!0);t.appendChild(n)}}))}}else{if("below"===t)c.classList.remove("submenu-below-open"),c.style.cssText="",c.style.display="none",c.style.visibility="hidden",c.style.opacity="0";else if(i())c.style.cssText="",c.style.display="none",c.style.visibility="hidden",c.style.opacity="0";else{c.classList.add("closing");const e=()=>{c.classList.remove("closing"),c.style.cssText="",c.style.display="none",c.style.visibility="hidden",c.style.opacity="0",c.removeEventListener("animationend",e)};c.addEventListener("animationend",e)}if(i()){const t=e.querySelector(".desktop-submenu-container");t&&(t.classList.remove("active"),t.innerHTML="")}}}),c.classList.contains("open")||(c.style.display="none",c.style.visibility="hidden",c.style.opacity="0")}),e._submenuInitialized=!0}(t)}}}});
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.