const alertPlaceholder=document.getElementById("liveAlertPlaceholder"),appendAlert=(e,t)=>{const l=document.createElement("div");l.innerHTML=['<div class="alert alert-label-primary 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=document.getElementById("liveAlertBtn");alertTrigger&&alertTrigger.addEventListener("click",(()=>{appendAlert("Nice, you triggered this alert message!")}));