{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/5458fswoYK1E3neSvNjh/JpHrnvC7zInYhmXrWRln/newsletterForm.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";export default function ContactForm(props){const[isMessageSent,setMessageSent]=useState(false);const[isMessageFailed,setMessageFailed]=useState(false);const handleSubmit=event=>{event.preventDefault();const formData=new FormData(event.target);formData.append(\"form\",\"newsletter\");fetch(\"https://hook.eu1.make.com/vnqw2bxb3k8oqftyzqrpvl2bykjgk8fr\",{method:\"POST\",body:formData}).then(response=>{if(response.ok){setMessageSent(true);event.target.reset();window.location.href=\"https://noemicarro.es/graciasastra\";}else{setMessageFailed(true);}}).catch(()=>{setMessageFailed(true);});};return /*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSubmit,style:{fontSize:\"15px\",fontFamily:\"var(--framer-font-family, Jost, Inter Placeholder, sans-serif)\",border:\"none\",borderRadius:\"100px\",outline:\"none\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",padding:\"0\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"4px\"},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"email\",style:{color:\"rgb(99, 101, 114)\",fontSize:\"14px\"},children:\"Correo electr\\xf3nico\"}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",id:\"email\",name:\"email\",required:true,style:{padding:\"12px\",fontSize:\"16px\",fontFamily:\"Jost, sans-serif\",border:\"1px solid rgb(155, 16, 29)\",borderRadius:\"100px\",backgroundColor:\"rgb(251, 246, 240)\"}})]}),/*#__PURE__*/_jsx(\"div\",{style:{},children:/*#__PURE__*/_jsxs(\"label\",{className:\"checkbox-label\",style:{color:\"rgb(99, 101, 114)\",fontSize:\"12px\",display:\"flex\",flexDirection:\"row\",alignItems:\"flex-start\",justifyContent:\"flex-start\",flexWrap:\"nowrap\",gap:\"4px\",cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",id:\"privacy\",name:\"privacy\",required:true}),\"Quiero recibir esta newsletter y me he le\\xeddo la informaci\\xf3n sobre privacidad.\"]})}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",style:{height:\"auto\",width:\"100%\",border:\"rgb(255, 255, 255)\",borderRadius:\"100px\",backgroundColor:\"rgb(155, 16, 29)\",color:\"white\",fontSize:\"16px\",padding:\"12px\",fontFamily:\"Jost\",fontWeight:600,cursor:\"pointer\",transition:\"background-color 0.3s\"},onMouseOver:e=>{e.target.style.backgroundColor=\"rgb(3, 67, 34)\";},onMouseOut:e=>{e.target.style.backgroundColor=\"rgb(155, 16, 29)\";},children:\"A la newsletter\"}),isMessageFailed&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"red\",fontSize:\"12px\",textAlign:\"center\"},children:\"Ha ocurrido un error. Por favor, int\\xe9ntalo de nuevo.\"}),isMessageSent&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"green\",fontSize:\"12px\",textAlign:\"center\"},children:\"Te has suscrito a la newsletter correctamente.\"})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ContactForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./newsletterForm.map"],
  "mappings": "gGAAoG,SAARA,EAA6BC,EAAM,CAAC,GAAK,CAACC,EAAcC,CAAc,EAAEC,EAAS,EAAK,EAAO,CAACC,EAAgBC,CAAgB,EAAEF,EAAS,EAAK,EAAib,OAAoBG,EAAM,OAAO,CAAC,SAA9bC,GAAO,CAACA,EAAM,eAAe,EAAE,IAAMC,EAAS,IAAI,SAASD,EAAM,MAAM,EAAEC,EAAS,OAAO,OAAO,YAAY,EAAE,MAAM,6DAA6D,CAAC,OAAO,OAAO,KAAKA,CAAQ,CAAC,EAAE,KAAKC,GAAU,CAAIA,EAAS,IAAIP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