!function(o){"use strict";etTheme.autoinit.sticky_cart=etTheme.sticky_cart=function(){if(etTheme.et_woocommerce.is_single_product&&!(o(".etheme-sticky-cart").length<1||o("form.cart").length<1)){let e=!1;o(".etheme-sticky-cart:not(.always-shown)").length&&o(window).on("scroll",function(){var t=o(this).scrollTop();o("form.cart").offset().top<t?(o(".etheme-sticky-cart:not(.always-shown)").removeClass("outside"),o("#back-top, .et-request-quote").css("bottom","85px"),o("#back-top ~ .et-request-quote").css("bottom","140px")):(o(".etheme-sticky-cart:not(.always-shown)").addClass("outside"),e&&o(".etheme_custom_add_to_cart_toggle").trigger("click"),o("#back-top").attr("style",null),o(".et-request-quote").attr("style",null))}),o(document).on("click",".etheme_custom_add_to_cart",function(){var t=0,e=(o(".header-wrapper .sticky-on").length&&o.each(o(".header-wrapper .sticky-on"),function(){t+=o(this).outerHeight()}),o("form.cart").offset().top-t);e-=30,o("html, body").animate({scrollTop:e},500)}),o("body:not(.et-preloader-hide) .etheme-sticky-cart").find(".variations_form, .grouped_form").addClass("hidden"),o(document).on("click",".etheme_custom_add_to_cart_toggle",function(){e?(o(this).parent().find("form").addClass("hidden"),o("body").removeClass("sticky-cart-form-shown")):(o(this).parent().find("form").removeClass("hidden"),o("body").addClass("sticky-cart-form-shown")),e=!e}),o(document).on("click",".etheme-sticky-cart form.cart .single_add_to_cart_button:not(.disabled)",function(){o("body").removeClass("sticky-cart-form-shown")})}}}(jQuery);
!function(s){"use strict";etTheme.autoinit.backToTop=etTheme.backToTop=function(){let o=document.querySelector("#back-top path"),n=o.getTotalLength(),t=s("#back-top");o.style.transition=o.style.WebkitTransition="none",o.style.strokeDasharray=n+" "+n,o.style.strokeDashoffset=n,o.getBoundingClientRect(),o.style.transition=o.style.WebkitTransition="stroke-dashoffset 10ms linear";function e(){var t=s(window).scrollTop(),e=s(document).height()-s(window).height();o.style.strokeDashoffset=n-t*n/e}e(),s(window).on("scroll",function(){e(),20<s(this).scrollTop()?t.addClass("backIn"):t.removeClass("backIn")}),t.on("click",function(t){return t.preventDefault(),s("html, body").animate({scrollTop:0},500),!1})}}(jQuery);