1import{handleFormError as e,showApiValidationErrors as t,showRequestError as n}from"./form-error-handler-DQkW-8y-.js";import{t as r}from"./axios-aKgWda1T.js";window.onSubmit=(e,t)=>{if(e.preventDefault(),e.target.checkValidity()){let n=e.target.querySelectorAll(`input.invalid`);for(let e of n)e.classList.remove(`invalid`);i(e.target,t)}else{let t=e.target.querySelectorAll(`:invalid`);for(let e of t)e.classList.add(`invalid`)}return!1};var i=(i,o)=>{let s=new FormData(i),c=i.getAttribute(`action`),l=i.querySelector(`button[type=submit]`);l.disabled=!0,s=a(s,i),r.post(c,s).then(e=>{updateFormRecaptchaResponse(i),n(i,{show:!1});let t=l.innerHTML;l.innerHTML=`Request Sent`,l.classList.add(`request-successfully`),typeof o==`function`&&o(e),setTimeout(()=>{l.disabled=!1,l.innerHTML=t,l.classList.remove(`request-successfully`)},5e3)},r=>{l.disabled=!1,updateFormRecaptchaResponse(i),r.response?.status===422&&t(i,r.response.data.errors);let a=e(r);n(i,{message:a}),typeof o==`function`&&o(null,r)})};window.addEventListener(`focusout`,e=>{e.target.setCustomValidity(``);let t=!e.target.checkValidity();e.target.classList.toggle(`invalid`,t),t||e.target.setAttribute(`title`,``)});var a=(e,t)=>{for(let n of e.entries()){let r=t.querySelector(`[name="${n[0]}"]`);r&&r.type===`checkbox`&&e.set(n[0],Number(r.checked))}return e};export{a as convertCheckboxValues};
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.