!function(e){function t(t,a){var i=t.find(".pa-txt-sc__effect-min-mask .pa-txt-sc__main-item.pa-txt-sc__item-text");if(t.hasClass("premium-mask-yes")||i.length){if("premium-addon-title.default"===t.data("widget_type")){var e=".premium-title-header";t.find(e).find(".premium-title-icon, .premium-title-img").addClass("premium-mask-span")}else if("premium-textual-showcase.default"===t.data("widget_type"))e=".pa-txt-sc__effect-min-mask";else e=".premium-dual-header-first-header";t.find(e).find("span:not(.premium-title-style7-stripe-wrap):not(.premium-title-img):not(.pa-txt-sc__hov-item)").each(function(e,t){var i="";a(this).text().split(" ").forEach(function(e){""!==e&&(i+=' <span class="premium-mask-span">'+e+"</span>")}),a(this).text("").append(i)});var n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(i.length?a(i).addClass("premium-mask-active"):a(t).addClass("premium-mask-active"),n.unobserve(e.target))})});n.observe(t[0])}}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-dual-header.default",t)})}(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);