1import{$ as c,It as _,R as m,S as y,_t as a,at as v,f as e,h as p,lt as l,m as g,y as b}from"./BToLwQTB.js";import{i as f,o as N}from"./DWxJjiq4.js";import{r as S}from"./8O1mLOAD.js";import{t as k}from"./K9rsuiWd.js";var w={id:"contact-page",class:"contact-us section"},T={class:"container"},x={class:"row"},C={class:"col-lg-6 offset-lg-3"},M={class:"row justify-content-center"},U={class:"col-lg-12"},V={class:"fill-form"},q={key:0,class:"alert alert-success",role:"alert"},D={key:1,class:"alert alert-danger",role:"alert"},E={class:"row"},O={class:"col-lg-6"},I={class:"col-lg-6"},P={class:"col-12 py-3"},R=["disabled"],B="https://formspree.io/f/mqkvgrkr",F=y({__name:"contact",setup(j){const o=l(""),r=l(""),i=l(""),u=l(!1),s=l("idle"),d=l("");S({title:"Contact Us",description:"Get in touch with us for any inquiries or support.",ogTitle:"Contact Us - EmailShot",ogDescription:"Reach out to us for assistance or feedback."});const h=async()=>{u.value=!0,s.value="idle",d.value="";try{(await fetch(B,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:o.value,email:r.value,message:i.value})})).ok?(s.value="success",o.value="",r.value="",i.value=""):(s.value="error",d.value="Failed to send message. Please try again.")}catch{s.value="error",d.value="An error occurred. Please check your connection and try again."}finally{u.value=!1}};return(A,t)=>(m(),p("div",w,[e("div",T,[e("div",x,[t[6]||(t[6]=e("div",{class:"col-lg-6 offset-lg-3"},[e("div",{class:"section-heading text-center"},[e("h1",null,"Contact Us"),e("h4",null,[b("Get In Touch With Us "),e("em",null,"Now")]),e("div",{class:"line"})])],-1)),e("div",C,[e("form",{id:"contact",onSubmit:N(h,["prevent"])},[e("div",M,[e("div",U,[e("div",V,[a(s)==="success"?(m(),p("div",q," â Your message has been sent! We'll get back to you shortly. ")):g("",!0),a(s)==="error"?(m(),p("div",D,_(a(d)),1)):g("",!0),e("div",E,[e("div",O,[e("fieldset",null,[t[3]||(t[3]=e("legend",null,"Name",-1)),c(e("input",{id:"name","onUpdate:modelValue":t[0]||(t[0]=n=>v(o)?o.value=n:null),type:"text",name:"name",placeholder:"Name",autocomplete:"name",required:""},null,512),[[f,a(o)]])]),e("fieldset",null,[t[4]||(t[4]=e("legend",null,"Email",-1)),c(e("input",{id:"email","onUpdate:modelValue":t[1]||(t[1]=n=>v(r)?r.value=n:null),type:"email",name:"email",placeholder:"Your Email",autocomplete:"email",required:""},null,512),[[f,a(r)]])])]),e("div",I,[e("fieldset",null,[t[5]||(t[5]=e("legend",null,"Description",-1)),c(e("textarea",{id:"message","onUpdate:modelValue":t[2]||(t[2]=n=>v(i)?i.value=n:null),name:"message",class:"form-control",placeholder:"Message",required:""},null,512),[[f,a(i)]])])]),e("div",P,[e("fieldset",null,[e("button",{type:"submit",class:"main-button btn btn-primary",disabled:a(u)},_(a(u)?"Sending...":"Send Message Now"),9,R)])])])])])])],32)])])])]))}}),$=k(F,[["__scopeId","data-v-9920d4f2"]]);export{$ 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.