')})},setSearchSizeInput:function(){0'),t.find("p.sib-NAME-area").before(''),t.find(".form-group").each(function(){l(this).addClass("is-empty")})},handleGutenbergAlignment:function(){var t=l("body");if(t.hasClass("page-template-template-pagebuilder-full-width")||t.hasClass("page-template-template-pagebuilder-blank")||t.hasClass("page-template-template-page-sidebar"))return!1;if(0a?e&&(e=!1,t.removeClass("navbar-transparent"),t.addClass("navbar-not-transparent")):e||(e=!0,t.addClass("navbar-transparent"),t.removeClass("navbar-not-transparent")))},17))}},handleResponsiveDropdowns:function(){if(768 a .caret-wrap").on("click touchend",function(t){var e=l(this);t.preventDefault(),t.stopPropagation(),l(e).toggleClass("caret-open"),l(e).parent().siblings().toggleClass("open")})},smoothScroll:function(){l('.navbar a[href*="#"], a.btn[href*="#"]').click(function(){if("#"===l(this).attr("href"))return!1;if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var t=l(this.hash);if((t=t.length?t:l("[name="+this.hash.slice(1)+"]")).length)return l("html,body").animate({scrollTop:t.offset().top-l.utilitiesFunctions.verifyNavHeight()},1200),l(".navbar .navbar-collapse").hasClass("in")&&l(".navbar .navbar-collapse.in").removeClass("in"),l("body").hasClass("menu-open")&&(l("body").removeClass("menu-open"),l(".navbar-collapse").css("height","0"),l(".navbar-toggle").attr("aria-expanded","false")),!1}})},activeParentLink:function(){l(".navbar .dropdown > a").click(function(){return"#"===l(this).attr("href")||(location.href=this.href),!1})},highlightMenu:function(){l(window).on("scroll",function(){if(l("body").hasClass("home")&&751<=l(window).width()){var n=l(window).scrollTop(),r=l(".navbar").outerHeight(),s="no";l("#carousel-hestia-generic, section").each(function(){var t="#"+l(this).attr("id"),e=l(this).offset().top,a=l(this).outerHeight(),i=e-r,o=e+a-r;if(n+l.utilitiesFunctions.verifyNavHeight()>=i&&n+l.utilitiesFunctions.verifyNavHeight()<=o)return s="yes",l("nav .on-section").removeClass("on-section"),l('nav a[href$="'+t+'"]').parent("li").addClass("on-section"),!1;"no"===s&&l("nav .on-section").removeClass("on-section")})}})},setBodyOverflow:function(){var t=l("#main-navigation");t.on("show.bs.collapse",function(){l("body").addClass("menu-open")}),t.on("hidden.bs.collapse",function(){l("body").removeClass("menu-open")})},repositionDropdowns:function(){var n=window.innerWidth;if(n<=768)return!1;var t=l(".dropdown-menu");return 0===t.length||l.each(t,function(t,e){var a=l(e),i=a.offset().left;/webkit.*mobile/i.test(navigator.userAgent)&&(i-=window.scrollX);var o=a.outerWidth();n<=i+o&&l(e).css({right:"100%",left:"auto"})}),!1}};var e=0;l.hestiaNavBarScroll={checkNavbarScrollPoint:function(){if(0===l(".navbar-header").length)return!1;if(768<=l.utilitiesFunctions.getWidth()){if(void 0!==l(".navbar-header").offset()){var t=l(".navbar-header").offset().top;/webkit.*mobile/i.test(navigator.userAgent)&&(t-=window.scrollY),e=t+l(".navbar-header").height()}0===l(".hestia_left.header-with-topbar").length&&0===l(".full-screen-menu.header-with-topbar").length||(e=40)}else e=0!==l(".header-with-topbar").length?40:0},addScrollClass:function(){l(window).on("scroll",function(){l(document).scrollTop()>=e?l(".navbar").addClass("navbar-scroll-point"):l(".navbar").removeClass("navbar-scroll-point")})}}}(jQuery),jQuery(document).ready(function(){jQuery.material.init(),jQuery.hestia.init(),jQuery.navigation.init(),jQuery.hestiaFeatures.initAnimations(),jQuery.hestiaFeatures.initTooltips(),jQuery.hestiaNavBarScroll.checkNavbarScrollPoint(),jQuery.hestiaNavBarScroll.addScrollClass()}),jQuery(window).on("load",function(){jQuery.hestiaFeatures.initMasonry(),jQuery.hestia.sidebarToggle()}),jQuery(window).resize(function(){jQuery.hestiaFeatures.initMasonry(),jQuery.hestia.fixHeaderPadding(),jQuery.hestia.headerSpacingFrontpage(),jQuery.hestia.handleGutenbergAlignment(),jQuery.hestiaNavBarScroll.checkNavbarScrollPoint(),jQuery.navigation.repositionDropdowns()});