!function(e){var n=function(e,n){var t=n(n(".wcf__slider",e)[0]),o=n(n(".slider-wrapper",e)[0]).data("settings")||{};o.handleElementorBreakpoints=!0,o.hasOwnProperty("pagination")&&(o.pagination.renderCustom=function(e,n,t){return"0"+n+' <span class="paginate-fill" style="--width:'+100/t*n+'%"></span> 0'+t});var i=n(n(".wcf-post-gallery-active",e)[0]),r=i;i.length?new elementorFrontend.utils.swiper(r,{loop:!1,spaceBetween:0,slidesPerView:1,freeMode:!0,watchSlidesProgress:!0}).then((function(e){return e})).then((function(e){console.log(o),o.slideToClickedSlide=!0,new elementorFrontend.utils.swiper(t,o).then((function(e){return e})).then((function(n){n.controller.control=e,e.controller.control=n}))})):("panorama"==(null==o?void 0:o.effect)&&(o.modules=[EffectPanorama]),new elementorFrontend.utils.swiper(t,o).then((function(e){return e})));var a=e.find(".popup-enabled"),l=e.find(".wcf--posts-slider .slide_item");a.length>0&&l.each((function(){n(this).off("click").on("click",(function(t){t.preventDefault(),e.find(".wcf--posts-slider").addClass("popup-opened");var o=e.attr("data-id"),i=n('[class*="page-id-"]');if(i.length){var r=i.attr("class").split(/\s+/).find((function(e){return e.startsWith("page-id-")}));if(r){var a=r.split("page-id-")[1],l='\n                            <div class="aae-post-popup-content">'.concat(n(this).html(),"</div>\n                            "),p=n(".wcf--popup-video-wrapper");p.addClass("elementor elementor-"+a),p.find(".wcf--popup-video").addClass("post-details-popup elementor-element elementor-element-"+o),p.find(".aae-popup-content-container").html(l),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-slider.default",n)}))}(jQuery);