1var s=Object.defineProperty;var d=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var a=(t,e,i)=>d(t,typeof e!="symbol"?e+"":e,i);import{B as n}from"./alzchem-B8Vlwgj5.js";class o extends n{constructor(){super(...arguments);a(this,"page");a(this,"header");a(this,"headerBar");a(this,"detailButton")}run(){this.page=document.querySelector(".page"),this.header=document.querySelector(".header"),this.headerBar=document.querySelector(".header__bar"),this.detailButton=document.querySelector(".dark-site-banner__action-link"),window.addEventListener("orientationchange",this.updatePageOffset.bind(this)),window.addEventListener("resize",this.updatePageOffset.bind(this)),this.updatePageOffset(),this.detailButton&&this.detailButton.addEventListener("click",this.openOverlay.bind(this))}updatePageOffset(){window.innerWidth>=1024?this.updateDesktopView():this.updateMobileView()}updateMobileView(){if(this.headerBar&&(this.element.style.top=this.headerBar.clientHeight+"px"),this.page){const i=this.element.offsetTop+this.element.clientHeight;this.page.style.paddingTop=i+"px"}}updateDesktopView(){this.header&&(this.element.style.top=this.header.clientHeight+"px"),this.page&&(this.page.style.paddingTop="0px")}openOverlay(){this.detailButton&&this.dispatch("overlay.open",{targetId:this.detailButton.dataset.target})}}export{o as default};
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.