var e=document.querySelector(`[data-mobile-menu-toggle]`),t=document.querySelector(`[data-mobile-menu]`);if(e&&t){let n=e.querySelector(`[data-menu-icon-open]`),r=e.querySelector(`[data-menu-icon-close]`);e.addEventListener(`click`,()=>{let i=!t.classList.contains(`hidden`);t.classList.toggle(`hidden`),n.classList.toggle(`hidden`),r.classList.toggle(`hidden`),e.setAttribute(`aria-expanded`,String(!i))}),t.querySelectorAll(`a`).forEach(i=>{i.addEventListener(`click`,()=>{t.classList.add(`hidden`),n.classList.remove(`hidden`),r.classList.add(`hidden`),e.setAttribute(`aria-expanded`,`false`)})})}