let alertPlaceholder=document.getElementById("liveAlertPlaceholder"),alertTrigger=document.getElementById("liveAlertBtn"),appendAlert=(alertPlaceholder&&alertTrigger||console.error("UI Alerts: Elements not found."),(e,t)=>{var l=document.createElement("div");l.innerHTML=[`<div class="alert alert-${t} alert-dismissible" role="alert">`,`   <div>${e}</div>`,'   <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>',"</div>"].join(""),alertPlaceholder.append(l)});alertTrigger.addEventListener("click",()=>{appendAlert("Nice, you triggered this alert message!","success")});