1class ImageLightbox extends HTMLElement{constructor(){super();const lightboxTrigger=this.querySelector(".lightbox-trigger"),lightbox=this.querySelector(".lightbox"),lightboxOuterContainer=this.querySelector(".lightbox-outer-container"),lightboxCloseBtn=this.querySelector(".lightbox-close-btn");lightboxTrigger.addEventListener("click",()=>{lightbox.classList.add("active"),document.addEventListener("keydown",handleKeydown)}),lightbox.addEventListener("click",event=>{(event.target===lightbox||event.target===lightboxOuterContainer)&&(lightbox.classList.remove("active"),document.removeEventListener("keydown",handleKeydown))}),lightboxCloseBtn.addEventListener("click",()=>{lightbox.classList.remove("active"),document.removeEventListener("keydown",handleKeydown)});function handleKeydown(event){event.keyCode===27&&lightbox.classList.remove("active")}}}customElements.define("image-lightbox",ImageLightbox); 2//# sourceMappingURL=/cdn/shop/t/18/assets/component.lightbox.js.map?v=156646539613027545861788906318
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.