!function(e,n){"use strict";var i={init:function(){var t={"wfp-fundraising-listing.default":i.Listing};e.each(t,(function(e,i){n.hooks.addAction("frontend/element_ready/"+e,i)}))},Listing:function(n){n.find(".wfp-campaign-filter-nav-item").on("click",(function(){var n=e(this).data("slug"),i=e(this).parents(".list-campaign-body").find(".single-campaign-blog");e(this).addClass("active").siblings().removeClass("active"),i.each((function(){e(this).hasClass(n)?e(this).fadeIn():e(this).hide()}))}));let i=n.find(".wfp-campaign-carousel"),t=i.data("responsive-settings");if(!t)return!1;let a=i.data("autoplay"),s=i.data("loop"),r=i.data("speed"),o=i.data("space-between"),d=t.wfp_fundraising_content__column_grid,l=t.wfp_fundraising_content__column_grid_mobile?t.wfp_fundraising_content__column_grid_mobile:d,f=t.wfp_fundraising_content__column_grid_tablet?t.wfp_fundraising_content__column_grid_tablet:d;new Swiper(i,{navigation:{nextEl:n.find(".wfp_fundrising-navigation-next"),prevEl:n.find(".wfp_fundrising-navigation-prev")},pagination:{el:n.find(".wfp_fundrising-swiper-pagination"),type:"bullets",clickable:!0},centeredSlides:!0,autoplay:a&&a,loop:s&&Boolean(s),speed:r&&Number(r),slidesPerView:Number(l),spaceBetween:o&&Number(o),breakpointsInverse:!0,breakpoints:{640:{slidesPerView:Number(l),spaceBetween:o&&Number(o)},768:{slidesPerView:Number(f),spaceBetween:o&&Number(o)},1024:{slidesPerView:Number(d),spaceBetween:o&&Number(o)}}})}};e(window).on("elementor/frontend/init",i.init)}(jQuery,window.elementorFrontend);