import{s as t,a1 as s}from"./index-BOOC9B8a.js";async function c(n){const{data:r,error:o}=await t.functions.invoke("send-contact-email",{body:n});if(o){if(o instanceof s){const e=await o.context.json().catch(()=>null);throw new Error(e?.error||"The form service could not accept your submission.")}throw new Error("Unable to reach the form service. Please check your connection and try again.")}if(!r?.success)throw new Error("The form service did not confirm your submission. Please try again.");return r}export{c as s};
