var toastTrigger=document.getElementById("liveToastBtn"),toastLiveExample=document.getElementById("liveToast");function initToast(t,e){const o=document.getElementById(t),a=document.getElementById(e);o&&a&&o.addEventListener("click",(()=>{new bootstrap.Toast(a,{autohide:!0,delay:4e3}).show()}))}toastTrigger&&toastTrigger.addEventListener("click",(function(){new bootstrap.Toast(toastLiveExample).show()})),initToast("toastBtn1","toast1"),initToast("toastBtn2","toast2"),initToast("toastBtn3","toast3"),initToast("toastBtn4","toast4"),initToast("toastBtn5","toast5"),initToast("customtoastBtn1","customtoast1"),initToast("customtoastBtn2","customtoast2");var toastTrigger2=document.getElementById("borderedToast1Btn"),toastLiveExample2=document.getElementById("borderedToast1");toastTrigger2&&toastTrigger2.addEventListener("click",(function(){new bootstrap.Toast(toastLiveExample2).show()}));var toastTrigger3=document.getElementById("borderedToast2Btn"),toastLiveExample3=document.getElementById("borderedToast2");toastTrigger3&&toastTrigger3.addEventListener("click",(function(){new bootstrap.Toast(toastLiveExample3).show()}));var toastTrigger4=document.getElementById("borderedTost3Btn"),toastLiveExample4=document.getElementById("borderedTost3");toastTrigger4&&toastTrigger4.addEventListener("click",(function(){new bootstrap.Toast(toastLiveExample4).show()}));var toastTrigger5=document.getElementById("borderedToast4Btn"),toastLiveExample5=document.getElementById("borderedToast4");toastTrigger5&&toastTrigger5.addEventListener("click",(function(){new bootstrap.Toast(toastLiveExample5).show()})),toastPlacement=document.getElementById("toastPlacement"),toastPlacement&&document.getElementById("selectToastPlacement").addEventListener("change",(function(){toastPlacement.dataset.originalClass||(toastPlacement.dataset.originalClass=toastPlacement.className),toastPlacement.className=toastPlacement.dataset.originalClass+" "+this.value})),document.querySelectorAll(".bd-example .toast").forEach((function(t){new bootstrap.Toast(t,{autohide:!1}).show()}));