!function(e){var t=function(e,t){var i=e.find(".aae--filterable-posts .posts-filter li"),o=e.find(".aae--filterable-posts .wcf-post");i.on("click",(function(){var e=t(this).data("filter");t(this).addClass("mixitup-control-active").siblings().removeClass("mixitup-control-active"),function(e){var i=Flip.getState(o.toArray());o.each((function(){var i=t(this);"all"===e||i.hasClass(e)?i.show():i.hide()})),Flip.from(i,{duration:.5,ease:"power1.inOut",stagger:.1})}(e)})),e.find(".popup-enabled").length>0&&o.each((function(){t(this).off("click").on("click",(function(i){i.preventDefault(),e.find(".aae--filterable-posts").addClass("popup-opened");var o=e.attr("data-id"),a=t('[class*="page-id-"]');if(a.length){var n=a.attr("class").split(/\s+/).find((function(e){return e.startsWith("page-id-")}));if(n){var p=n.split("page-id-")[1],s='\n                            <div class="aae-post-popup-content">'.concat(t(this).html(),"</div>\n                            "),l=t(".wcf--popup-video-wrapper");l.addClass("elementor elementor-"+p),l.find(".wcf--popup-video").addClass("post-details-popup elementor-element elementor-element-"+o),l.find(".aae-popup-content-container").html(s),window.VideoAnimation=gsap.timeline({defaults:{ease:"power2.inOut"}}).to("body > .wcf--popup-video-wrapper",{scaleY:.01,x:1,opacity:1,visibility:"visible",duration:.4}).to("body > .wcf--popup-video-wrapper",{scaleY:1,duration:.6}).to("body > .wcf--popup-video-wrapper .wcf--popup-video",{scaleY:1,opacity:1,visibility:"visible",duration:.6},"-=0.4")}}}))}))};e(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/wcf--posts-filter.default",t)}))}(jQuery);