import{_ as w,r as C,j as n,f as i,F as I,b as t,s as r,p as d,t as u,e as m,v as k,g as _,h as g,x as V,k as f,a as x,i as b,u as h,m as T}from"./index-igTJW-fG.js";import{S as q}from"./SectionHero-CZI787yI.js";const A={class:"form-row"},N={class:"field"},P={key:0,class:"form-error"},U={class:"field"},F={key:0,class:"form-error"},D={class:"form-row"},M={class:"field"},j={class:"field"},B={class:"form-row"},W={class:"field"},E={class:"field"},H={class:"field"},O={key:0,class:"form-error"},$={key:0,class:"form-error"},G=["disabled"],R={key:1,class:"form-success"},z={__name:"ContactForm",props:{defaultInterest:{type:String,default:"other"}},setup(v){const a=C({name:"",email:"",company:"",role:"",country:"",interest:v.defaultInterest,message:"",referrer:typeof document<"u"?document.referrer:""}),l=f("idle"),s=f({}),c=f("");async function S(){l.value="loading",s.value={},c.value="";try{await x.submitContact(a),l.value="success"}catch(p){l.value="error",p.response?.data&&typeof p.response.data=="object"?(s.value=p.response.data,c.value="Please check the fields below."):c.value="Something went wrong. Please try again."}}return(p,e)=>(n(),i("form",{class:"contact-form",onSubmit:V(S,["prevent"]),novalidate:""},[l.value!=="success"?(n(),i(I,{key:0},[t("div",A,[t("div",N,[e[7]||(e[7]=t("label",{for:"cf-name"},"Name",-1)),r(t("input",{id:"cf-name","onUpdate:modelValue":e[0]||(e[0]=o=>a.name=o),type:"text",required:"",autocomplete:"name"},null,512),[[d,a.name]]),s.value.name?(n(),i("span",P,u(s.value.name[0]),1)):m("",!0)]),t("div",U,[e[8]||(e[8]=t("label",{for:"cf-email"},"Work email",-1)),r(t("input",{id:"cf-email","onUpdate:modelValue":e[1]||(e[1]=o=>a.email=o),type:"email",required:"",autocomplete:"email"},null,512),[[d,a.email]]),s.value.email?(n(),i("span",F,u(s.value.email[0]),1)):m("",!0)])]),t("div",D,[t("div",M,[e[9]||(e[9]=t("label",{for:"cf-company"},"Company",-1)),r(t("input",{id:"cf-company","onUpdate:modelValue":e[2]||(e[2]=o=>a.company=o),type:"text",autocomplete:"organization"},null,512),[[d,a.company]])]),t("div",j,[e[10]||(e[10]=t("label",{for:"cf-role"},"Role",-1)),r(t("input",{id:"cf-role","onUpdate:modelValue":e[3]||(e[3]=o=>a.role=o),type:"text"},null,512),[[d,a.role]])])]),t("div",B,[t("div",W,[e[11]||(e[11]=t("label",{for:"cf-country"},"Country",-1)),r(t("input",{id:"cf-country","onUpdate:modelValue":e[4]||(e[4]=o=>a.country=o),type:"text",autocomplete:"country-name"},null,512),[[d,a.country]])]),t("div",E,[e[13]||(e[13]=t("label",{for:"cf-interest"},"Interest",-1)),r(t("select",{id:"cf-interest","onUpdate:modelValue":e[5]||(e[5]=o=>a.interest=o)},[...e[12]||(e[12]=[_('',7)])],512),[[k,a.interest]])])]),t("div",H,[e[14]||(e[14]=t("label",{for:"cf-message"},"What are you looking for?",-1)),r(t("textarea",{id:"cf-message","onUpdate:modelValue":e[6]||(e[6]=o=>a.message=o),required:"",placeholder:"A few lines about the project, target node / FPGA, and timeline."},null,512),[[d,a.message]]),s.value.message?(n(),i("span",O,u(s.value.message[0]),1)):m("",!0)]),c.value?(n(),i("p",$,u(c.value),1)):m("",!0),t("button",{type:"submit",class:"btn btn--primary btn--full",disabled:l.value==="loading"},u(l.value==="loading"?"Sending…":"Send enquiry"),9,G),e[15]||(e[15]=t("p",{class:"dim contact-form__legal"}," We typically reply within one business day. By submitting, you agree to be contacted about your enquiry. ",-1))],64)):(n(),i("div",R,[e[18]||(e[18]=t("h3",null,"Thanks — message received.",-1)),t("p",null,[e[16]||(e[16]=g("One of the founders will follow up at ",-1)),t("strong",null,u(a.email),1),e[17]||(e[17]=g(" within one business day.",-1))])]))],32))}},Q=w(z,[["__scopeId","data-v-fc8551dc"]]),J={class:"section"},K={class:"container contact-grid"},L={__name:"ContactView",setup(v){const y=T(),a=String(y.query.interest||"other");return(l,s)=>(n(),i(I,null,[b(q,{eyebrow:"Talk to us",title:"Start an evaluation.",subtitle:"Conversations land with an engineer, not a sales rep. One business-day reply."}),t("section",J,[t("div",K,[s[0]||(s[0]=_('
Surat, Gujarat, India
STIIC · IIST, Thiruvananthapuram
Mon–Fri · 09:30–18:30 IST