document.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("wpte-delete-customer"),t=document.getElementById("wpte-delete-confirm-modal"),n=t.querySelector(".wpte-confirm-modal"),c=t.querySelector(".wpte-user-delete");t.addEventListener("click",(function(o){o.target===c&&(window.location.href=e.href),(o.target===t&&!n.contains(o.target)||o.target.classList.contains("wpte-cancel"))&&t.classList.remove("open")})),e&&e.addEventListener("click",(function(e){e.preventDefault(),t.classList.add("open")}))}));