Files
rising-web/frontend/dist/assets/ContactView-D_0d9avU.js
2026-05-26 11:53:33 +00:00

2 lines
5.5 KiB
JavaScript
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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]=[_('<option value="ai-ip" data-v-fc8551dc>AI Inference IP</option><option value="security-ip" data-v-fc8551dc>Cybersecurity IP</option><option value="comms-ip" data-v-fc8551dc>Communication IP</option><option value="custom-asic" data-v-fc8551dc>Custom ASIC</option><option value="careers" data-v-fc8551dc>Careers</option><option value="press" data-v-fc8551dc>Press</option><option value="other" data-v-fc8551dc>Other</option>',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]=_('<div class="contact-info" data-v-700c0227><h3 data-v-700c0227>Direct lines</h3><ul data-v-700c0227><li data-v-700c0227><span class="dim mono" data-v-700c0227>Email</span><a href="mailto:contact@risingcompute.in" data-v-700c0227>contact@risingcompute.in</a></li><li data-v-700c0227><span class="dim mono" data-v-700c0227>HQ</span><p data-v-700c0227>Surat, Gujarat, India</p></li><li data-v-700c0227><span class="dim mono" data-v-700c0227>Incubation</span><p data-v-700c0227>STIIC · IIST, Thiruvananthapuram</p></li><li data-v-700c0227><span class="dim mono" data-v-700c0227>Hours</span><p data-v-700c0227>MonFri · 09:3018:30 IST</p></li></ul><hr class="divider" data-v-700c0227><h3 data-v-700c0227>What to expect</h3><ol class="steps" data-v-700c0227><li data-v-700c0227>A short reply from a founder within one business day.</li><li data-v-700c0227>A 30-minute qualification call.</li><li data-v-700c0227>Datasheet + reference design under NDA.</li><li data-v-700c0227>Evaluation licence terms.</li></ol></div>',1)),t("div",null,[b(Q,{"default-interest":h(a)},null,8,["default-interest"])])])])],64))}},Z=w(L,[["__scopeId","data-v-700c0227"]]);export{Z as default};