{"version":3,"file":"ContactForm.CfAhboGF.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/6w33nqvkrj43RCvqb5dT/J2spuIjJj7fK6f0LmDxe/ContactForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";export function ContactForm(){const[form,setForm]=useState({firstName:\"\",lastName:\"\",email:\"\",telephone:\"\",company:\"\",subject:\"\",message:\"\",agree:false});const[status,setStatus]=useState(\"\");const handleChange=e=>{const{name,value,type,checked}=e.target;setForm(prev=>({...prev,[name]:type===\"checkbox\"?checked:value}));};const handleSubmit=async e=>{e.preventDefault();if(!form.agree)return;// Convert formData to URL-encoded format\nconst formData=new URLSearchParams;formData.append(\"first_name\",form.firstName);formData.append(\"last_name\",form.lastName);formData.append(\"email\",form.email);formData.append(\"telephone\",form.telephone);formData.append(\"company\",form.company);formData.append(\"subject\",form.subject);formData.append(\"message\",form.message);try{const response=await fetch(\"https://hook.eu2.make.com/3j7lxx6txpx2edyyar7vj4wdxm27xrp4\",{method:\"POST\",body:formData});const responseBody=await response.text();console.log(\"Make response status:\",response.status,response.statusText);console.log(\"Make response body:\",responseBody);// Make webhooks typically return a 200 status for success\n// We'll rely on response.ok (status 200-299) as the success indicator\nif(response.ok){setStatus(\"SUCCESS\");setForm({firstName:\"\",lastName:\"\",email:\"\",telephone:\"\",company:\"\",subject:\"\",message:\"\",agree:false});}else{setStatus(\"ERROR\");}}catch(error){console.error(\"Make submission error:\",error);setStatus(\"ERROR\");}};return /*#__PURE__*/_jsx(\"div\",{style:styles.form,children:status===\"SUCCESS\"?/*#__PURE__*/_jsx(\"p\",{style:{color:\"green\",textAlign:\"center\"},children:\"Form submitted successfully!\"}):/*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSubmit,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.grid,children:[/*#__PURE__*/_jsx(Input,{label:\"First Name\",name:\"firstName\",placeholder:\"PRE\",value:form.firstName,onChange:handleChange,type:\"text\",required:true}),/*#__PURE__*/_jsx(Input,{label:\"Last Name\",name:\"lastName\",placeholder:\"RESERVED\",value:form.lastName,onChange:handleChange,type:\"text\",required:true}),/*#__PURE__*/_jsx(Input,{label:\"Email\",name:\"email\",placeholder:\"hello@pre-reserved.com\",value:form.email,onChange:handleChange,type:\"email\",required:true}),/*#__PURE__*/_jsx(Input,{label:\"Phone Number\",name:\"telephone\",placeholder:\"+31 6 57502400\",value:form.telephone,onChange:handleChange,type:\"tel\",required:true}),/*#__PURE__*/_jsx(Input,{label:\"Company\",name:\"company\",placeholder:\"Pre-Reserved\",value:form.company,onChange:handleChange,type:\"text\"}),/*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:20},children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:\"I am interested in\"}),/*#__PURE__*/_jsxs(\"select\",{name:\"subject\",value:form.subject,onChange:handleChange,style:styles.input,required:true,children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",disabled:true,children:\"Select an option\"}),/*#__PURE__*/_jsx(\"option\",{value:\"space-rental\",children:\"Space Rental\"}),/*#__PURE__*/_jsx(\"option\",{value:\"content-production\",children:\"Content Production\"}),/*#__PURE__*/_jsx(\"option\",{value:\"community-activation\",children:\"Community Activation\"}),/*#__PURE__*/_jsx(\"option\",{value:\"event-production\",children:\"Event Production\"}),/*#__PURE__*/_jsx(\"option\",{value:\"collaboration\",children:\"Collaboration\"}),/*#__PURE__*/_jsx(\"option\",{value:\"other\",children:\"Other\"})]})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:20},children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:\"Message\"}),/*#__PURE__*/_jsx(\"textarea\",{name:\"message\",placeholder:\"I’d love to discuss a potential event or project collaboration in Amsterdam\",value:form.message,onChange:handleChange,style:{...styles.input,height:120,resize:\"none\",lineHeight:\"1.5\"},required:true})]}),/*#__PURE__*/_jsxs(\"div\",{style:styles.checkboxRow,children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",name:\"agree\",checked:form.agree,onChange:handleChange,required:true}),/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:10,color:\"#E5E5E5\"},children:\"Agree to our general terms and conditions\"})]}),status===\"ERROR\"&&/*#__PURE__*/_jsx(\"p\",{style:{color:\"red\",marginBottom:20},children:\"Something went wrong. Please try again.\"}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",disabled:!form.agree,style:{...styles.button,opacity:form.agree?1:.5,background:status===\"SUCCESS\"?\"#00B400\":\"#666\"},children:\"Send It\"})]})});}function Input({label,name,value,placeholder,onChange,type=\"text\",required=false}){return /*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:20},children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:label}),/*#__PURE__*/_jsx(\"input\",{type:type,name:name,value:value,placeholder:placeholder,onChange:onChange,style:styles.input,required:required})]});}const styles={form:{color:\"#E5E5E5\",backgroundColor:\"#000000\",padding:40,borderRadius:12,fontFamily:\"sans-serif\",width:\"100%\",maxWidth:1100,margin:\"0 auto\"},grid:{display:\"grid\",gridTemplateColumns:\"repeat(auto-fit, minmax(300px, 1fr))\",gap:30},label:{display:\"block\",marginBottom:8,fontWeight:600,color:\"#E5E5E5\"},input:{width:\"100%\",padding:12,borderRadius:0,border:\"1px solid #444\",background:\"#1e1e1e\",color:\"#E5E5E5\",fontSize:16},checkboxRow:{display:\"flex\",alignItems:\"center\",marginBottom:30},button:{padding:\"12px 30px\",borderRadius:0,background:\"#666\",color:\"#fff\",border:\"none\",cursor:\"pointer\",fontWeight:600}};export default ContactForm;\nexport const __FramerMetadata__ = {\"exports\":{\"ContactForm\":{\"type\":\"reactComponent\",\"name\":\"ContactForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"ContactForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL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