1import{e as v,r as i,c as l,o as n,a as s,f,g as r,v as u,n as g,_ as y}from"./eJiEIgem.js";const c={class:"contact-page"},b={class:"form"},h={key:0,class:"success"},w={class:"buttonWrap"},k=["disabled"],S={key:0},q={key:1},x=v({__name:"contact",setup(_){const t=i({message:"",name:"",email:""}),a=i(!1),d=i(!1);async function p(){if(!a.value){a.value=!0;try{(await fetch("https://formbold.com/s/35kxR",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t.value)})).status===200?(d.value=!0,t.value={message:"",name:"",email:""}):alert("Something went wrong. Please try again.")}catch{alert("Something went wrong. Please try again.")}finally{a.value=!1}}}return(m,e)=>(n(),l("div",c,[e[8]||(e[8]=s("h1",null,"Have questions about Flowhaus? ",-1)),e[9]||(e[9]=s("h2",null,"There are no stupid questions. We'd love to hear from you. Get in touch and we'll get back to you as soon as possible.",-1)),s("div",b,[d.value?(n(),l("div",h,e[3]||(e[3]=[s("h3",null,"Thanks for reaching out!",-1),s("p",null,"We'll get back to you as soon as possible.",-1)]))):(n(),l("form",{key:1,onSubmit:f(p,["prevent"])},[e[4]||(e[4]=s("label",{class:"tight"},"What's your question, comment, or issue?",-1)),e[5]||(e[5]=s("div",{class:"helper"},"Share all the details. The more we know, the better we can help you.",-1)),r(s("textarea",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.value.message=o),required:""},null,512),[[u,t.value.message]]),e[6]||(e[6]=s("label",null,"Name",-1)),r(s("input",{type:"text","onUpdate:modelValue":e[1]||(e[1]=o=>t.value.name=o),placeholder:"e.g. Bruce Wayne",required:""},null,512),[[u,t.value.name]]),e[7]||(e[7]=s("label",null,"Email address",-1)),r(s("input",{type:"email","onUpdate:modelValue":e[2]||(e[2]=o=>t.value.email=o),placeholder:"e.g. [email protected]",required:""},null,512),[[u,t.value.email]]),s("div",w,[s("button",{disabled:a.value,class:g({loading:a.value})},[a.value?(n(),l("span",q,"Sending...")):(n(),l("span",S,"Send Request"))],10,k)])],32))])]))}}),W=y(x,[["__scopeId","data-v-03b5d580"]]);export{W 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.