"use strict";var $=jQuery.noConflict();function woostifySectionSticky(){var s=$(".woostify-sticky-yes");0!==s.length&&s.each(function(s){var o=$(this),t=o.siblings(".elementor-section");if(!(t.hasClass("elementor-sticky--active")||t.hasClass("elementor-sticky--active")&&t.hasClass("she-header-yes"))){var e=$("body").offset().top,i=o.offset().top,a=o.offset().left,n=o.width();o.height();var c=$(window).width(),r=o.attr("data-settings"),l=(r=JSON.parse(r)).woostify_on;o.parents(".elementor-section-wrap");var d=o.html();o.attr("class");var f=r.woostify_distance,p=r.woostify_distance_tablet,y=r.woostify_distance_mobile,h=o.find(".custom-logo"),w=h.attr("src"),v=r.woostify_logo.url,m=r.woostify_menu_color,u=o.hasClass("woostify-header-transparent-yes"),b="desktop",k=i;if(c>=1025?(b="desktop",k=f.size+i):c>767&&c<1025?(b="tablet",k=p.size+i):c<=767&&(b="mobile",k=y.size+i),l.includes(b)){if(!u){var x="woostify-header--default elementor-section";o.hasClass("elementor-section-boxed")&&(x+=" elementor-section-boxed"),o.hasClass("elementor-hidden-phone")&&(x+=" elementor-hidden-phone"),o.hasClass("elementor-hidden-tablet")&&(x+=" elementor-hidden-tablet"),o.hasClass("elementor-hidden-desktop")&&(x+=" elementor-hidden-desktop"),o.after('
'+d+"
"),o.siblings(".woostify-header--default").css({visibility:"hidden",transition:"none 0s ease 0s"})}if(o.css({top:i+"px",position:"fixed",left:a+"px",width:n+"px"}),$(window).scrollTop()>k)o.css({top:e+"px"}),m&&""!==m&&o.find(".woostify-menu > li > a").css({color:m}),""!==v?h.attr("src",v):h.attr("src",w),o.addClass("woostify-sticky--active"),o.css({"background-color":r.woostify_background});else{var g=o.offset().top;o.css("top",g+"px"),k-$(window).scrollTop()>0&&o.css({top:i-$(window).scrollTop()+"px"})}$(window).scroll(function(){var s=$(window).scrollTop();k-s>=0?(o.css({top:i-s+"px"}),o.removeClass("woostify-sticky--active"),o.css({"background-color":""}),h.attr("src",w),o.find(".woostify-nav-menu-widget > .woostify-nav-menu-inner > nav > ul > li > a").css({color:""})):(o.css({top:e+"px"}),o.addClass("woostify-sticky--active"),o.css({"background-color":r.woostify_background}),m&&""!==m&&o.find(".woostify-nav-menu-widget > .woostify-nav-menu-inner > nav > ul > li > a").css({color:m}),""!==v?(h.attr("src",v),h.attr("srcset","")):h.attr("src",w))})}$(window).resize(function(){n=$(window).width(),o.css({width:n+"px"});var s=$("body").offset().top;o.css({top:s+"px"}),n>=1025?k=f.size+i:n>767&&n<1025?k=p.size+i:n<=767&&(k=y.size+i),$(window).scrollTop()>k?o.css({top:s+"px"}):k-$(window).scrollTop()>0&&o.css({top:i-$(window).scrollTop()+"px"})})}})}window.addEventListener("load",s=>{woostifySectionSticky()});