1function c(){let e=document.querySelector("#contactForm");e.addEventListener("submit",n=>{n.preventDefault();let s=e.closest(".form");s.classList.add("sending");let r=new FormData(e),t=new XMLHttpRequest;t.open("POST",e.getAttribute("action")),t.setRequestHeader("X-CSRF-TOKEN",e.querySelector('input[name="_token"]').value),t.onload=function(){if(t.status===200){let o=JSON.parse(t.responseText);console.log(o),o.status==="success"?(e.reset(),s.classList.remove("sending"),e.remove(),s.nextElementSibling.classList.remove("d-none")):(s.classList.remove("sending"),Object.keys(o.errors).forEach(a=>{e.querySelector('[name="'+a+'"]').classList.add("error")}))}},t.send(r)})}export{c as contactForm};
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.