$((function(){var t=!1;$(document).on("click",".btn-export-data",(function(e){if(e.preventDefault(),!t){var n=$(e.currentTarget),o=n.html();Botble.showButtonLoading(n),t=!0,$httpClient.make().withResponseType("blob").post(n.attr("href")).then((function(t){var e=t.data,o=document.createElement("a"),a=window.URL.createObjectURL(e);o.href=a,o.download=n.data("filename"),document.body.append(o),o.click(),o.remove(),window.URL.revokeObjectURL(a)})).finally((function(){n.html(o),Botble.hideButtonLoading(n),t=!1}))}}))}));