PageSourceSearch

https://www.mypifi.com/cdn/shop/t/88/compiled_assets/scripts.js?v=61399103800456581881788531206

js mypifi.com collected 2026-09-24 13:47:36 UTC 5,924 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__.footer)try{class LocalizationForm extends HTMLElement{constructor(){super(),this.elements={input:this.querySelector('input[name="locale_code"], input[name="country_code"]'),button:this.querySelector("button"),panel:this.querySelector("ul")},this.elements.button.addEventListener("click",this.openSelector.bind(this)),this.elements.button.addEventListener("focusout",this.closeSelector.bind(this)),this.addEventListener("keyup",this.onContainerKeyUp.bind(this)),this.querySelectorAll("a").forEach(item=>item.addEventListener("click",this.onItemClick.bind(this)))}hidePanel(){this.elements.button.setAttribute("aria-expanded","false"),this.elements.panel.setAttribute("hidden",!0)}onContainerKeyUp(event){event.code.toUpperCase()==="ESCAPE"&&(this.hidePanel(),this.elements.button.focus())}onItemClick(event){event.preventDefault(),this.elements.input.value=event.currentTarget.dataset.value,this.querySelector("form")?.submit()}openSelector(){this.elements.button.focus(),this.elements.panel.toggleAttribute("hidden"),this.elements.button.setAttribute("aria-expanded",(this.elements.button.getAttribute("aria-expanded")==="false").toString())}closeSelector(event){const shouldClose=event.relatedTarget&&event.relatedTarget.nodeName==="BUTTON";(event.relatedTarget===null||shouldClose)&&this.hidePanel()}}customElements.define("localization-form",LocalizationForm)}catch(e){console.error(e)}})(),(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.classList.remove("color-background-3"),this.header.style.transition="background var(--duration-short), transform var(--duration-default)"),this.headerIsAlwaysSticky&&scrollTop<this.header.offsetHeight&&(this.header.classList.remove("shopify-section-header-sticky"),this.header.style.transition="background var(--duration-short)",this.header.classList.contains("color-background-1")&&this.header.classList.add("color-background-3")),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||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure())}reveal(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden","color-background-3"))}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-3"))}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures&&this.disclosures.forEac
1h(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(){if(__sections__["main-cart-items"])try{class CartNote extends HTMLElement{constructor(){super(),this.addEventListener("change",debounce(event=>{const body=JSON.stringify({note:event.target.value});fetch(`${routes.cart_update_url}`,{...fetchConfig(),body})},300))}}customElements.define("cart-note",CartNote)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{class ProductModal extends ModalDialog{constructor(){super()}hide(){super.hide(),window.pauseAllMedia()}show(opener){super.show(opener),this.showActiveMedia()}showActiveMedia(){const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`);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/88/compiled_assets/scripts.js.map?v=61399103800456581881788531206

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.