!function(e){function i(i,u){var p=i.find(".premium-carousel-wrapper"),f=u(p).data("settings"),e=getComputedStyle(i[0]),a=i.data("id"),n=p.find(".premium-carousel-nav-progress-fill");if(!(p.find(".item-wrapper").length<1)){if(p.on("init",function(e){e.preventDefault(),setTimeout(function(){window.carouselTrigger=!0,i.trigger("paCarouselLoaded"),l("init")},500),u(this).find("item-wrapper.slick-active").each(function(){var e=u(this);e.addClass(e.data("animation"))}),u(".slick-track").addClass("translate")}),p.find(".premium-carousel-inner").slick({vertical:f.vertical,slidesToScroll:f.slidesToScroll,slidesToShow:f.slidesToShow,responsive:[{breakpoint:f.tabletBreak,settings:{slidesToShow:f.slidesTab,slidesToScroll:f.slidesTab,swipe:f.touchMove}},{breakpoint:f.mobileBreak,settings:{slidesToShow:f.slidesMob,slidesToScroll:f.slidesMob,swipe:f.touchMove}}],useTransform:!0,fade:f.fade,infinite:f.infinite,speed:f.speed,autoplay:f.autoplay,autoplaySpeed:f.autoplaySpeed,rows:0,draggable:f.draggable,rtl:f.rtl,adaptiveHeight:f.adaptiveHeight,pauseOnHover:f.pauseOnHover,centerMode:f.centerMode,centerPadding:e.getPropertyValue("--pa-carousel-center-padding")+"px",arrows:f.arrows,prevArrow:p.find(".premium-carousel-nav-arrow-prev").html(),nextArrow:p.find(".premium-carousel-nav-arrow-next").html(),dots:f.dots,variableWidth:f.variableWidth,cssEase:f.cssEase,customPaging:function(){return p.find(".premium-carousel-nav-dot").html()},carouselNavigation:f.carouselNavigation,templatesNumber:f.templatesNumber}),"progressbar"===f.carouselNavigation){var t=1/f.templatesNumber;p.find(".premium-carousel-nav-progressbar-fill").css("transform","translate3d(0px, 0px, 0px) scaleX("+t+") scaleY(1)")}if("progress"===f.carouselNavigation&&o(),i.find(".premium-carousel-hidden").removeClass("premium-carousel-hidden"),p.find(".premium-carousel-nav-arrow-prev").remove(),p.find(".premium-carousel-nav-arrow-next").remove(),f.variableWidth&&p.find(".elementor-container").css("flex-wrap","nowrap"),p.on("afterChange",function(e,i,a){var n,t,s=i.options.slidesToScroll,r=(n=i.options.slidesToShow,(t=u(window).width())>f.tabletBreak&&(n=f.slidesDesk),t<=f.tabletBreak&&(n=f.slidesTab),t<=f.mobileBreak&&(n=f.slidesMob),n),o=i.options.centerMode,l=a+r-1;if(p.find(".slick-active .elementor-invisible").each(function(e,i){var a=u(i).data("settings");if(a&&(a._animation||a.animation)){var n=a._animation_delay?a._animation_delay:0,t=a._animation||a.animation;setTimeout(function(){u(i).removeClass("elementor-invisible").addClass(t+" animated")},n)}}),1===s){if(!0==!o){var d=u(this).find("[data-slick-index='"+l+"']");"null"!=f.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(f.animation).removeClass("premium-carousel-content-hidden")}}else for(var c=s+a;0<=c;c--)d=u(this).find("[data-slick-index='"+c+"']"),"null"!=f.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(f.animation).removeClass("premium-carousel-content-hidden");if(i.$slides.length-1!=a||f.infinite||p.find(".premium-carousel-inner").slick("slickSetOption","autoplay",!1,!1),"fraction"===i.options.carouselNavigation&&p.find("#currentSlide").text((a||0)+1),"progressbar"===i.options.carouselNavigation){var m=(a+1)/i.options.templatesNumber;p.find(".premium-carousel-nav-progressbar-fill").css("transform","translate3d(0px, 0px, 0px) scaleX("+m+") scaleY(1)")}}),p.on("beforeChange",function(e,i,a){l();var n=u(this).find("[data-slick-index='"+a+"']");"null"!=f.animation&&n.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(f.animation).addClass("premium-carousel-content-hidden")}),f.vertical){var s=-1;elementorFrontend.elements.$window.on("load",function(){p.find(".slick-slide").each(function(){u(this).height()>s&&(s=u(this).height())}),p.find(".slick-slide").each(function(){u(this).height()<s&&u(this).css("margin",Math.ceil((s-u(this).height())/2)+"px 0")})})}var r={element:u("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}};r.setWidth(),r.element=u("a.carousel-arrow"),r.setWidth("horizontal"),u(document).ready(function(){f.navigation.map(function(e,i){e&&u(e).on("click",function(){var e=p.find(".premium-carousel-inner").slick("slickCurrentSlide");i!==e&&p.find(".premium-carousel-inner").slick("slickGoTo",i)})}),u(".carousel-next-"+a).on("click",function(){p.find(".premium-carousel-inner").slick("slickNext")}),u(".carousel-prev-"+a).on("click",function(){p.find(".premium-carousel-inner").slick("slickPrev")})})}function o(){n.animate({width:"+=100%"},f.autoplaySpeed,o)}function l(e){var i=p.find(".slick-slide");n.stop(!0).animate({width:0},0),"init"===e&&(i=i.not(".slick-current")),i.find(".animated").each(function(e,i){var a=u(i).data("settings");if(a&&(a._animation||a.animation)){var n=a._animation||a.animation;u(i).removeClass("animated "+n).addClass("elementor-invisible")}}),"progress"===f.carouselNavigation&&o()}}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-carousel-widget.default",i)})}(jQuery)