(()=>{"use strict";$(document).ready((function(){$(document).on("click",".btn-payout-button",(function(o){o.preventDefault(),o.stopPropagation();var t=$(o.currentTarget);t.addClass("button-loading"),$.ajax({type:"POST",url:t.prop("href"),success:function(o){o.error?Botble.showError(o.message):(Botble.showSuccess(o.message),t.closest(".widget.meta-boxes").remove(),window.location.reload()),t.removeClass("button-loading")},error:function(o){t.removeClass("button-loading"),Botble.handleError(o)}})}));var o;o=$("#payout-transaction-detail"),$.ajax({type:"GET",url:o.data("url"),success:function(t){t.error?o.html(""):o.html(t.data.html)},error:function(o){console.log(o)}})}))})();