"));data=i;fetch("/api/form/contatti",{method:"POST",cache:"no-store",headers:{"Content-Type":"application/json"},body:JSON.stringify(data)}).then(n=>n.json()).then(function(i){document.getElementById("esitoInvioDati").style.display="block";document.getElementById("esitoInvioDati").innerHTML=i.message;document.getElementById("divAttendere").style.display="none";i.status?(dataLayer.push({event:"generate_lead"}),n(i.message)):t(i.message)}).catch(n=>{t(n.message)})});return n.then(function(){}).catch(function(){document.getElementById("form-contatti").style.display="block";document.getElementById("divAttendere").style.display="none"}),!1}