!function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=435)}({435:function(e,t){!function(e){"use strict";var t,a=window.AFTHRAMPES_JS||{};a.setLoadPostDefaults=function(){},a.getPostsOnClick=function(){e(".bs_blockspare_loadmore").each((function(){e(this).on("click",(function(n){var o=e(this);t=o.attr("data-page");var r=o.attr("data-layout"),s=o.attr("block-name"),l=e(this).parent().find(".blockspare-posts-block-latest-post-wrap"),i=e(this).attr("blockspare-att"),u=e(this).attr("max-paged");n.preventDefault();var d=JSON.parse(i);a.renderPostsAjax(o,d,u,l,s,r)}))}))},a.renderPostsAjax=function(a,n,o,r,s,l){e.ajax({type:"GET",url:blocsparePagination.ajaxurl,data:{action:"bs_load_more",nonce:blocsparePagination.nonce,postData:n,bspage:t,blockName:s,maxnumpages:o,layoutClass:l},dataType:"json",beforeSend:function(){a.find(".ajax-loader").addClass("ajax-loader-enabled")},success:function(t){if(t.success){a.attr("data-page",t.data.current_page);var n=t.data.content.join(""),o=e(n);r.append(o),!!t.data.more_post||a.find(".load-btn").hide(),a.find(".ajax-loader").removeClass("ajax-loader-enabled")}else a.find(".load-btn").show(),a.find(".ajax-loader").removeClass("ajax-loader-enabled")}})},e(document).ready((function(){a.setLoadPostDefaults(),a.getPostsOnClick()}))}(jQuery)}});