PageSourceSearch

https://r5living.com/cdn/shop/t/36/compiled_assets/scripts.js?v=151114560085820756391785762386

js r5living.com collected 2026-10-07 03:32:28 UTC 4,390 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always"||this.getAttribute("data-sticky-type")==="reduce-logo-size",this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.header.classList.add("scrolled-past-header"),this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure(),this.closeSearchModal())}reveal(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"))}reset(){this.headerIsAlwaysSticky||this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("header-menu"),this.disclosures.forEach(disclosure=>disclosure.close())}closeSearchModal(){this.searchModal=this.searchModal||this.header.querySelector("details-modal"),this.searchModal.close(!1)}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{(()=>{const syncQtyVisibility=buyRow=>{const qty=buyRow&&buyRow.querySelector(".product-form__quantity");buyRow&&buyRow.classList.toggle("is-qty-hidden",!qty||qty.offsetParent===null)},place=scope=>{const atc=scope.querySelector(".product-form__buttons"),buyRow=atc&&atc.closest(".buy-row");syncQtyVisibility(buyRow);const seal=scope.querySelector(".sealsubs-target-element");if(!seal||!atc||!atc.parentNode)return!1;atc.previousElementSibling!==seal&&atc.parentNode.insertBefore(seal,atc);const hasContent=seal.offsetHeight>0;return buyRow&&buyRow.classList.toggle("is-stacked",hasContent),hasContent},watch=scope=>{place(scope);let scheduled=!1;const run=()=>{scheduled=!1,place(scope)},obs=new MutationObserver(()=>{scheduled||(scheduled=!0,requestAnimationFrame(run))}),timer=setTimeout(stop,1e4);function stop(){clearTimeout(timer),obs.disconnect()}obs.observe(scope,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden"]})};document.querySelectorAll("product-info").forEach(watch)})()}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/36/compiled_assets/scripts.js.map?v=151114560085820756391785762386

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.