1(function(){let scrollToTopWrp=null,scrollToTopBtn=null,scrollAnimation=null,wheelHandler=null,scrollHandler=null;function showScrollToTop(){document.body.scrollTop>window.innerHeight/2||document.documentElement.scrollTop>window.innerHeight/2?scrollToTopWrp?.classList.add("active"):scrollToTopWrp?.classList.remove("active")}function scrollToTop(){const position=document.body.scrollTop||document.documentElement.scrollTop;scrollAnimation&&(clearTimeout(scrollAnimation),scrollAnimation=null),wheelHandler&&(window.removeEventListener("wheel",wheelHandler),wheelHandler=null),position&&(window.scrollBy(0,-Math.max(1,Math.floor(position/10))),scrollAnimation=setTimeout(scrollToTop,30),wheelHandler=()=>{scrollAnimation&&(clearTimeout(scrollAnimation),scrollAnimation=null),window.removeEventListener("wheel",wheelHandler),wheelHandler=null},window.addEventListener("wheel",wheelHandler))}function cleanupScrollToTop(){scrollAnimation&&(clearTimeout(scrollAnimation),scrollAnimation=null),wheelHandler&&(window.removeEventListener("wheel",wheelHandler),wheelHandler=null),scrollHandler&&(window.removeEventListener("scroll",scrollHandler),scrollHandler=null),scrollToTopBtn&&scrollToTopBtn.removeEventListener("click",onScrollToTopClick),scrollToTopWrp=null,scrollToTopBtn=null}function onScrollToTopClick(){scrollToTop()}function initScrollToTop(){cleanupScrollToTop(),scrollToTopWrp=document.querySelector(".scroll-to-top"),scrollToTopBtn=scrollToTopWrp?.querySelector(".scrollToTop"),scrollToTopWrp&&(scrollHandler=()=>{showScrollToTop()},window.addEventListener("scroll",scrollHandler),showScrollToTop(),scrollToTopBtn&&scrollToTopBtn.addEventListener("click",onScrollToTopClick))}window.cleanupScrollToTop=cleanupScrollToTop,document.addEventListener("DOMContentLoaded",initScrollToTop),document.addEventListener("shopify:section:load",initScrollToTop),document.addEventListener("shopify:section:unload",event=>{event.target.classList.contains("scroll-to-top")&&cleanupScrollToTop()})})(); 2//# sourceMappingURL=/cdn/shop/t/7/assets/scroll-to-top.js.map?v=28297235529685493951783780455
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.