$(document).ready((function(){$(".generate-thumbnails-trigger-button").on("click",(function(t){t.preventDefault();var e=$(t.currentTarget),n=e.text();e.text(e.data("saving"));var o=e.closest("form");$httpClient.make().postForm(o.prop("action"),new FormData(o[0])).then((function(){return $("#generate-thumbnails-modal").modal("show")})).finally((function(){e.text(n)}))})),$("#generate-thumbnails-button").on("click",(function(t){t.preventDefault();var e=$(t.currentTarget);Botble.showButtonLoading(e);var n=e.closest("form");$httpClient.make().post(n.prop("action")).then((function(t){var e=t.data;return Botble.showSuccess(e.message)})).finally((function(){Botble.hideButtonLoading(e),e.closest(".modal").modal("hide")}))})),$(document).on("change",".check-all",(function(t){var e=$(t.currentTarget),n=e.attr("data-set"),o=e.prop("checked");$(n).each((function(t,e){o?$(e).prop("checked",!0):$(e).prop("checked",!1)}))}))}));