PageSourceSearch

https://www.andreaiyamah.com/cdn/shop/t/283/compiled_assets/scripts.js?v=92113415395580699621772937577

js andreaiyamah.com collected 2026-09-24 18:34:41 UTC 4,720 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(".shopify-section-header"),this.headerWrapper=document.querySelector(".header-wrapper"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always",this.headerBounds={},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()}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){let observer=new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()});this.header&&observer.observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(this.headerIsAlwaysSticky&&scrollTop>this.header.offsetHeight+1&&(this.header.classList.add("shopify-section-header-sticky","shopify-section-header-always-sticky"),this.header.style.transform="translateY(-100%)"),this.headerIsAlwaysSticky&&scrollTop>this.header.offsetHeight+2&&(this.header.classList.remove("color-background-2"),this.header.style.transition="background var(--duration-short)",this.header.style.transform="translateY(0)"),this.headerIsAlwaysSticky&&scrollTop<this.header.offsetHeight&&(this.header.classList.remove("shopify-section-header-sticky"),this.header.style.transform="translateY(0)",this.header.style.transition="background var(--duration-short)",this.header.classList.contains("color-background-1")&&this.header.classList.add("color-background-2")),scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else 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));this.currentScrollTop=scrollTop}hide(){this.headerIsAlwaysSticky||document.querySelector(".overflow-hidden-tablet")||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure())}reveal(){this.headerIsAlwaysSticky||(document.querySelector(".entering-section")?(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden")):(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden","color-background-2")))}reset(){this.headerIsAlwaysSticky||(this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate"),this.header.classList.contains("color-background-1")&&this.header.classList.add("color-background-2"))}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures&&this.disclosures.forEach(disclosure=>{disclosure.close()}),this.disclosureLists=this.header.querySelectorAll(".disclosure__list"),this.disclosureLists&&this.disclosureLists.forEach(disclosureList=>{disclosureList.setAttribute("hidden",!0)})}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){__sections__["main-cart-items"]})(),(function(){if(__sections__["main-product"])try{class ProductModal extends ModalDialog{constructor(){super(),this.isProductPage=!0}hide(){super.hide(this.isProductPage),window.pauseAllMedia()}show(opener){super.show(opener),this.showActiveMedia()}showActiveMedia(){const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`);activeMedia&&(activeMedia.classList.add("active"),activeMedia.scrollIntoView()),activeMedia?.nodeName=="DEFERRED-MEDIA"&&activeMedia?.querySelector("template")?.content?.querySelector(".js-youtube")&&activeMedia.loadContent()}}customElements.define("product-modal",ProductModal)}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/283/compiled_assets/scripts.js.map?v=92113415395580699621772937577

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.