/*Scroll Navigation*/(function(a){"use strict";var b=function(a,b){var c=a.find(".theplus-scroll-navigation");0<c.length&&("yes"==c.data("pagescroll")?(c.find(".theplus-scroll-navigation__item:eq(0)").addClass("highlight"),b(".theplus-scroll-navigation__item").on("click",function(a){if(a.preventDefault(),!b(this).hasClass("highlight")){var c=b(this).attr("href"),d=c.substring(1,c.length);b(this).parent().find(".highlight").removeClass("highlight"),b(this).addClass("highlight")}})):(b(".theplus-scroll-navigation__item").mPageScroll2id({highlightSelector:".theplus-scroll-navigation__item",highlightClass:"highlight",forceSingleHighlight:!0}),b(".theplus-scroll-navigation__item").on("click",function(a){a.preventDefault();var c=b(this).parent().parent("section").next().attr("id");b.mPageScroll2id("scrollTo",c)})));var d=a.find(".theplus-scroll-navigation.scroll-view"),e=a.find(".theplus-scroll-navigation__inner");0<d.length&&e&&b(window).on("scroll",function(){var a=b(this).scrollTop();d.each(function(){var c=b(this).data("scroll-view"),d=b(this).data("uid"),e=b("."+d);a>c?e.addClass("show"):e.removeClass("show")})})};a(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-scroll-navigation.default",b)})})(jQuery);