(()=>{function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var e=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,a,o;return n=e,(a=[{key:"init",value:function(){$(document).on("click",".btn-clear-cache",(function(t){t.preventDefault();var e=$(t.currentTarget);Botble.showButtonLoading(e),$httpClient.make().post(e.data("url"),{type:e.data("type")}).then((function(t){var e=t.data;return Botble.showSuccess(e.message)})).finally((function(){return Botble.hideButtonLoading(e)}))}))}}])&&t(n.prototype,a),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),e}();$((function(){(new e).init()}))})();