document.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".suspend-user"),t=(t&&(t.onclick=function(){Swal.fire({title:"Are you sure?",text:"You won't be able to revert user!",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, Suspend user!",customClass:{confirmButton:"btn btn-primary me-2 waves-effect waves-light",cancelButton:"btn btn-label-secondary waves-effect waves-light"},buttonsStyling:!1}).then(function(e){e.value?Swal.fire({icon:"success",title:"Suspended!",text:"User has been suspended.",customClass:{confirmButton:"btn btn-success waves-effect waves-light"}}):e.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Cancelled Suspension :)",icon:"error",customClass:{confirmButton:"btn btn-success waves-effect waves-light"}})})}),document.querySelectorAll(".cancel-subscription"));t&&t.forEach(e=>{e.onclick=function(){Swal.fire({text:"Are you sure you would like to cancel your subscription?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes",customClass:{confirmButton:"btn btn-primary me-2 waves-effect waves-light",cancelButton:"btn btn-label-secondary waves-effect waves-light"},buttonsStyling:!1}).then(function(e){e.value?Swal.fire({icon:"success",title:"Unsubscribed!",text:"Your subscription cancelled successfully.",customClass:{confirmButton:"btn btn-success waves-effect waves-light"}}):e.dismiss===Swal.DismissReason.cancel&&Swal.fire({title:"Cancelled",text:"Unsubscription Cancelled!!",icon:"error",customClass:{confirmButton:"btn btn-success waves-effect waves-light"}})})}})});