1const r=(o,d)=>{const l=o.querySelector(".js-open-dialog"),n=o.querySelector(".js-close-dialog"),e=o.querySelector(".js-dialog"),c=s=>{s.target===e&&t()},i=()=>{e.showModal(),e.addEventListener("click",c),document.body.classList.add("lock-scroll")},t=()=>{document.body.classList.remove("lock-scroll"),e.close(),e.removeEventListener("click",c)};document.addEventListener("keydown",s=>{s.key==="Escape"&&(document.body.classList.remove("lock-scroll"),e.removeEventListener(c))}),l.addEventListener("click",i),n.addEventListener("click",t)};export{r as default};
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.