{"version":3,"file":"MailchimpForm.CV86B_F4.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/mBSMh04sGM30MVxYNOQw/6YOIPyEkMuVmPKHUd8Vj/MailchimpForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto-prefer-auto\n * @framerSupportedLayoutHeight auto\n */export default function MailchimpForm(){const formRef=useRef(null);const[isLoading,setIsLoading]=useState(false);const[shouldWiggle,setShouldWiggle]=useState(false);const handleSubmit=async e=>{e.preventDefault();// Check if form is valid\nif(!formRef.current?.checkValidity()){setShouldWiggle(true);setTimeout(()=>setShouldWiggle(false),500);return;}setIsLoading(true);if(!formRef.current)return;const formData=new FormData(formRef.current);try{await fetch(\"https://lumiahealth.us21.list-manage.com/subscribe/post?u=2113bd09885b19f0c11d1a14e&id=907827e24c&f_id=003595e6f0\",{method:\"POST\",body:formData});window.location.href=\"https://lumia2.lumiahealth.com/reservation\";}catch(error){console.error(\"Form submission error:\",error);setIsLoading(false);window.location.href=\"https://lumia2.lumiahealth.com/reservation\";}};return /*#__PURE__*/_jsx(\"div\",{className:\"klaviyo-form-WrEiL4\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MailchimpForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto-prefer-auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MailchimpForm.map"],"mappings":"2HAGG,SAAwB,GAAe,CAAe,EAAO,KAAK,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAM,CAAC,EAAa,GAAiBA,EAAS,GAAM,CAC6Z,OAAoB,EAAK,MAAM,CAAC,UAAU,sBAAsB,CAAC,sBAJ1lB,IAAmC"}