(()=>{el=document.querySelector('.card a[data-toggle="reload"]'),el&&el.addEventListener("click",(function(e){e.preventDefault();var a=el.closest(".card");insertEl='<div class="card-preloader"><div class="card-status"><div class="spinner-border text-success"><span class="visually-hidden">Loading...</span></div></div></div>',a.children[1].insertAdjacentHTML("beforeend",insertEl);var r=a.getElementsByClassName("card-preloader")[0];setTimeout((function(){r.remove()}),500+5*Math.random()*300)}));element=document.querySelector('.card a[data-toggle="growing-reload"]'),element&&element.addEventListener("click",(function(e){e.preventDefault();var a=element.closest(".card");insertEl='<div class="card-preloader"><div class="card-status"><div class="spinner-grow text-danger"><span class="visually-hidden">Loading...</span></div></div></div>',a.children[1].insertAdjacentHTML("beforeend",insertEl);var r=a.getElementsByClassName("card-preloader")[0];setTimeout((function(){r.remove()}),500+5*Math.random()*300)}));customLoader1=document.querySelector('.card a[data-toggle="customer-loader"]'),customLoader1&&customLoader1.addEventListener("click",(function(e){e.preventDefault();var a=customLoader1.closest(".card");insertEl='<div class="card-preloader"><div class="card-status"><img src="assets/images/logo-sm.png" alt="" class="img-fluid custom-loader"></div></div>',a.children[1].insertAdjacentHTML("beforeend",insertEl);var r=a.getElementsByClassName("card-preloader")[0];setTimeout((function(){r.remove()}),500+5*Math.random()*300)}))})();