const o="aura-scroll-disabled",l="aura-modal--active",i=()=>{d("open"),d("close")},d=t=>{document.querySelectorAll(`[data-${t}-modal]`).forEach(e=>{e.addEventListener("click",c=>{c.preventDefault();const s=e.getAttribute(`data-${t}-modal`);t==="open"?n(s):t==="close"&&r(s)})})},n=t=>{const a=document.querySelector(`[data-modal=${t}]`);a&&(document.body.classList.add(o,`aura-g-${a.dataset.modal}-modal-active`),a.classList.add(l),a.classList.remove(o))},r=t=>{const a=document.querySelector(`[data-modal=${t}]`);a&&(document.body.classList.remove(o,`aura-g-${a.dataset.modal}-modal-active`),a.classList.remove(l),a.classList.add(o))};export{i as m,n as o};
