!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");p.find(".elementor-section-stretched").removeClass("elementor-section-stretched");var 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);!function(e){function i(h,y){var e=h.find(".premium-adv-carousel__container"),g=e.data("settings"),b=h.find(".premium-adv-carousel__inner-container");if(g){if("infinite"===g.type){var w=e.find(".premium-adv-carousel__items"),i=g.light_box,r=g.lightbox_type;if("load"===g.renderEvent)m();else{var t=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(m(),t.unobserve(e.target))})});t.observe(h[0])}b.css("visibility","inherit"),i&&"default"===r&&h.find(".premium-adv-carousel__inner-container a[data-rel^='prettyPhoto']").prettyPhoto({theme:g.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:g.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""}),g.pauseOnHover&&c(),g.scroll?(c(),"horizontal"===g.dir&&e.find(".premium-adv-carousel__inner-container").mousewheel(function(e,i){this.scrollLeft-=30*i,e.preventDefault()})):e.find(".premium-adv-carousel__inner-container").css({overflow:"hidden"})}else{var a=h.find(".premium-adv-carousel__items"),n=h.find(".premium-adv-carousel__item-outer-wrapper"),o=h.find(".premium-adv-carousel__prev-icon").html(),s=h.find(".premium-adv-carousel__next-icon").html(),l=["mobile","mobile_extra","tablet","tablet_extra"].includes(elementorFrontend.getCurrentDeviceMode());if(h.find(".premium-adv-carousel__icons-holder").remove(),b.flipster({itemContainer:a,itemSelector:n,style:g.type,fadeIn:0,start:g.start,loop:g.loop,autoplay:g.autoPlay,scrollwheel:g.scroll,pauseOnHover:g.pauseOnHover,click:!g.loop&&g.click,keyboard:g.keyboard,touch:g.touch,spacing:g.spacing,buttons:!!g.buttons&&"custom",buttonPrev:o,buttonNext:s,onItemSwitch:function(){d()}}).css("visibility","inherit"),g.keyboard&&!l){var u=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(y.fn.focusWithoutScrolling=function(){var e=window.scrollX,i=window.scrollY;this.focus(),window.scrollTo(e,i)},b.focusWithoutScrolling(),u.unobserve(e.target))})});u.observe(b[0])}g.loop&&g.click&&h.find(".premium-adv-carousel__item-outer-wrapper").on("click.paFlipClick",function(){var e=y(this).index();b.flipster("jump",e)})}"yes"===g.light_box&&null!=g.light_box||h.find(".premium-adv-carousel__item .premium-adv-carousel__video-wrap").each(function(e,n){var o=y(n).data("type");y(n).closest(".premium-adv-carousel__item").on("click.paPlayVid"+e,function(){var e=y(this);if(d(),e.find(".premium-adv-carousel__media-wrap").css("background","#000"),e.find(".premium-adv-carousel__video-icon, .premium-adv-carousel__vid-overlay").css("visibility","hidden"),"hosted"!==o){var i=e.find(".premium-adv-carousel__iframe-wrap"),r=i.data("src");r=r.replace("&mute","&autoplay=1&mute");var t=y("<iframe/>");t.attr({src:r,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),i.html(t),t.css("visibility","visible")}else{var a=y(n).find("video");a.attr("pa-playing","true").get(0).play(),a.css("visibility","visible")}})})}function c(){e.on("mouseenter.paMediaWheel",function(){w.css("animation-play-state","paused")}).on("mouseleave.paMediaWheel",function(){w.css("animation-play-state","running")})}function d(){h.find("iframe").attr("src",""),$video=h.find("video[pa-playing='true']").each(function(){var e=y(this).get(0);e.pause(),e.currentTime=0}),h.find(".premium-adv-carousel__video-icon, .premium-adv-carousel__vid-overlay").css("visibility","visible"),h.find(".premium-adv-carousel__media-wrap").css("background","unset")}function k(){var e=0;return h.find(".premium-adv-carousel__item").each(function(){e+=y(this).outerWidth(!0)}),w.css({width:e}),e}function m(){var e=h.find(".premium-adv-carousel__item"),i=g.dir,r="horizontal"===i?b.innerWidth():b.innerHeight(),t="transform: translateX(0px)",a="transform: translateX(-50%)",n=g.reverse,o=10,s=1e3*g.speed+"ms",l="pa-scroll-"+h.data("id"),u=w.outerHeight();if("horizontal"===i){var c=k();w.css({height:u,position:"relative"}),w.find(".premium-adv-carousel__item-outer-wrapper").css("position","absolute"),"normal"===n?w.find(".premium-adv-carousel__item-outer-wrapper").css("right",0):(w.css("left","-"+c/e.length+"px"),"rtl"===document.dir&&w.css("direction","ltr"));for(var d=getComputedStyle(h[0]).getPropertyValue("--pa-wheel-spacing")||0,m="normal"===n?-1:1,p=0;c<=h.outerWidth(!0)||c-h.outerWidth(!0)<=400;)x(),c=k();gsap.set(h.find(".premium-adv-carousel__item-outer-wrapper"),{x:function(e){return p=(transformVal=p)+h.find(".premium-adv-carousel__item").eq(e).outerWidth(!0)+parseFloat(d),transformVal*m}});var f=c+h.find(".premium-adv-carousel__item").length*parseFloat(d),v=gsap.to(h.find(".premium-adv-carousel__item-outer-wrapper"),{duration:g.speed,ease:"none",x:("normal"===n?"-=":"+=")+f,modifiers:{x:gsap.utils.unitize(function(e){var i=parseFloat(e)%f,r=Math.max(i,-f);return"normal"===n?r:i})},repeat:-1});g.pauseOnHover&&h.hover(function(){v.pause()},function(){v.play()})}else{t="transform: translateY("+r+"px)",a="transform: translateY(-101%)",e.each(function(){o+=y(this).outerHeight(!0)}),w.css({height:o});var _=document.createElement("style");_.innerHTML="@keyframes "+l+" { 0%{ "+t+"} 100% {"+a+"} }",document.head.appendChild(_),w.css("animation",l+" "+s+" linear 0s infinite "+n+" none")}}function x(){var e=w.children().length,i=new DocumentFragment;w.find(".premium-adv-carousel__item-outer-wrapper:lt("+e+")").clone(!0,!0).appendTo(i),w.append(i)}}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-media-wheel.default",i)})}(jQuery);