`;case'info':return``;case'warning':return``;case'error':return``;default:return'';}}const alertDiv=document.createElement('div');alertDiv.className=`alert ${data.status}`;alertDiv.innerHTML=`
${getIcon(data.status)}
${data.message}
`;alertContainer.appendChild(alertDiv);alertDiv.scrollIntoView({behavior:'smooth'});if(data.status==='success'){form.reset();grecaptcha.reset();}const closeButton=alertDiv.querySelector('.close');closeButton.addEventListener('click',function(){alertDiv.remove();});}catch(error){}}).catch(error=>{});});}});