!function(e,t){"use strict";ElementsKit_Helper.registerWidget("elementskit-blog-posts.default",(function(i){var n=i.find(".ekit-blog-post-pagination-container"),a=i.data("id"),o={items:"#post-items--"+a,nagivation:"#post-nagivation--"+a,masonry:"#post-masonry--"+a};if(i.on("click",".ekit-blog-post-pagination-container a.page-numbers",(function(t){t.preventDefault();var a=e(this).attr("href");e.ajax({url:a}).done((function(t){var a=e(t),s=a.find(o.items).html(),l=a.find(o.nagivation).html();"loadmore"==n.data("ekit-blog-post-style")?i.find(o.items).append(s):i.find(o.items).html(s),i.find(o.nagivation).html(l),e(s).imagesLoaded((function(){var t=e(o.items);t.data("masonry")?(t.masonry("reloadItems"),t.masonry("layout")):t.masonry({itemSelector:".post-item",columnWidth:".post-item",percentPosition:!0,transitionDuration:0})}))}))})),"yes"===i.find(o.items).data("enable")){let e=i.find(`.${t.config.swiperClass}`).data("settings");const n={spaceBetween:e.spaceBetween,slidesPerView:e.slidesPerView,slidesPerGroup:e.slidesPerGroup,loop:!0,speed:e.speed,breakpoints:e.breakPoints};!0===e.navigation&&(n.navigation={nextEl:i.find(".ekit-blog-carousel-button-next").get(0),prevEl:i.find(".ekit-blog-carousel-button-prev").get(0)}),!0===e.pagination&&(n.pagination={el:i.find(".ekit-blog-carousel-pagination").get(0),clickable:!0}),!0===e.autoplay&&(n.autoplay={delay:e.autoplayDelay});let a=i.find(`.${t.config.swiperClass}`);ElementsKit_Helper.swiper(a,n).then((function(e){}))}}))}(jQuery,window.elementorFrontend);