PageSourceSearch

https://evaboot.com/_astro/EmailVerifierTool.astro_astro_type_script_index_0_lang.DbJZi3hT.js

js evaboot.com collected 2026-10-01 13:13:48 UTC 1,926 bytes, 1 lines download raw bytes

1import{b as f}from"./freeTools.0Cn1wnVq.js";document.addEventListener("astro:page-load",function(){const t=document.getElementById("ev-widget");if(!t)return;const g=t.querySelector("#ev-email"),a=t.querySelector("#ev-submit"),r=t.querySelector("#ev-result"),c=t.querySelector("#ev-cta"),m={VALID:"bg-success-bg-light text-success-text border border-success-border",RISKY:"bg-warning-bg text-warning-text border border-warning-border",INVALID:"bg-error-bg text-error-text border border-error-border"};function l(e,s,o){const d=e==="error"?m.INVALID:m[e];if(r.className=`mt-4 rounded-lg px-4 py-3 font-medium ${t.hasAttribute("data-large")?"text-base":"text-sm"} ${d}`,r.textContent="",o){const i=document.createElement("strong");i.textContent=s;const n=document.createElement("span");n.className="font-normal opacity-80",r.append(i,document.createElement("br"),n),n.textContent=o}else r.textContent=s}function b(){r.className="hidden",r.textContent="",c.classList.add("hidden"),c.classList.remove("animate-expand-in")}function u(e){e?a.innerHTML='<span class="loader-spinner"></span> Verifying…':a.textContent="Verify Email",a.disabled=e,a.classList.toggle("opacity-60",e),a.classList.toggle("cursor-not-allowed",e)}t.addEventListener("submit",async e=>{e.preventDefault(),b();const s=f(g.value);if("error"in s){l("error",s.error);return}u(!0);try{const o=await fetch("/api/email-verifier",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s.email})});if(o.ok){const d=await o.json(),i=(d.validity??"").toLowerCase(),n=i==="safe"?"VALID":i==="invalid"?"INVALID":"RISKY",p=n==="VALID"?"Safe to send":n==="INVALID"?"Invalid — do not send":"Riskier — send with caution";l(n,d.email,p)}else l("error","Something went wrong. Please try again.");c.classList.remove("hidden"),c.classList.add("animate-expand-in")}catch{l("error","Something went wrong. Please try again.")}finally{u(!1)}})});

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.