1/* global bootstrap */
2window.addEventListener("DOMContentLoaded",function(){
3    const toastElements = [].slice.call(document.querySelectorAll('.toast'));
4    toastElements.map(function (toastElement) {
5        let toast = new bootstrap.Toast(toastElement);
6        toast.show();
7        if(toastElement.dataset.bsAutohide==="false"){
8            toastElement.querySelector("button").focus();
9        }
10    });
11});
12