(()=>{"use strict";$(function(){$(document).on("submit",'[data-bb-toggle="activate-license"]',function(e){e.preventDefault();var t=$(this),o=new FormData(e.currentTarget);Botble.showLoading(t[0]),$httpClient.make().postForm(t.prop("action"),o).then(function(e){var o=e.data;if(Botble.showSuccess(o.message),localStorage.removeItem("license_check_time"),t.data("reload"))setTimeout(function(){window.location.reload()},1e3);else{var a=t.data("redirect");a&&window.location.assign(a)}}).finally(function(){Botble.hideLoading(t[0])})})})})();