PageSourceSearch

https://lukacosmetics.com/cdn/shop/t/55/compiled_assets/scripts.js?v=143550232918742308621752255548

js lukacosmetics.com collected 2026-09-28 09:28:55 UTC 4,052 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 HeaderWrapper extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".shopify-section-header"),this.exitTimer=null,this.onEnterHandler=this.onEnter.bind(this),this.onLeaveHandler=this.onLeave.bind(this),this.addEventListener("mouseenter",this.onEnterHandler),this.addEventListener("mouseleave",this.onLeaveHandler)}disconnectedCallback(){this.removeEventListener("mouseenter",this.onEnterHandler),this.removeEventListener("mouseleave",this.onLeaveHandler)}onEnter(){this.preventClose=!0,this.header.classList.add("is-active"),clearTimeout(this.exitTimer)}onLeave(){this.exitTimer=setTimeout(()=>{this.header.classList.remove("is-active")},400)}}customElements.define("header-wrapper",HeaderWrapper);class StickyHeader extends HeaderWrapper{constructor(){super()}connectedCallback(){super.connectedCallback(),this.headerBounds={},this.currentScrollTop=0,this.preventReveal=!1,this.scrollUpActive=!1,this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,window.addEventListener("scroll",this.onScrollHandler,!1),this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),this.createObserver()}disconnectedCallback(){super.connectedCallback(),this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{if(this.headerBounds=entries[0].intersectionRect,this.headerBounds.top===0&&this.headerBounds.bottom===0){const scrollTop=window.pageYOffset||document.documentElement.scrollTop,boundingClientRect=entries[0].boundingClientRect;this.headerBounds={top:scrollTop+boundingClientRect.top,bottom:scrollTop+boundingClientRect.bottom}}this.dataset.scrollUp!==void 0&&(this.scrollUpActive=!0),observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(theme.config.mqlSmall||this.scrollUpActive)scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom?requestAnimationFrame(this.hide.bind(this)):scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?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&&requestAnimationFrame(this.reset.bind(this));else if(scrollTop>this.headerBounds.bottom){if(this.sticky())return;requestAnimationFrame(this.hide.bind(this)),setTimeout(()=>{requestAnimationFrame(this.reveal.bind(this))},300)}else scrollTop<=this.headerBounds.top&&requestAnimationFrame(this.reset.bind(this));this.currentScrollTop=scrollTop}hide(){this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),document.body.classList.add("shopify-body-section-header-hidden","shopify-body-section-header-sticky")}reveal(){this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"),document.body.classList.add("shopify-body-section-header-sticky"),document.body.classList.remove("shopify-body-section-header-hidden")}reset(){this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}sticky(){return this.header.classList.contains("shopify-section-header-sticky")&&!this.header.classList.contains("shopify-section-header-hidden")&&document.body.classList.contains("shopify-body-section-header-sticky")&&!document.body.classList.contains("shopify-body-section-header-hidden")}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/55/compiled_assets/scripts.js.map?v=143550232918742308621752255548

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.