$(document).ready(function(){$(document).on("click",".verify-member-email-button",function(e){e.preventDefault(),$("#confirm-verify-member-email-button").data("action",$(e.currentTarget).prop("href")),$("#verify-member-email-modal").modal("show")}),$(document).on("click","#confirm-verify-member-email-button",function(e){e.preventDefault();var o=$(e.currentTarget);o.addClass("button-loading"),$.ajax({type:"POST",cache:!1,url:o.data("action"),success:function(e){e.error?Botble.showError(e.message):(Botble.showSuccess(e.message),setTimeout(function(){window.location.reload()},2e3)),o.removeClass("button-loading"),o.closest(".modal").modal("hide")},error:function(e){Botble.handleError(e),o.removeClass("button-loading")}})})});