1class DetailsModal extends HTMLElement{constructor(){super(),this.detailsEl=this.querySelector("details"),this.toggle=this.querySelector("summary"),this.modal=this.querySelector(".modal"),this.detailsEl.addEventListener("click",this.handleClick.bind(this))}handleClick(evt){this.hasTransition===void 0&&(this.hasTransition=window.getComputedStyle(this.modal).transitionDuration!=="0s"),this.detailsEl.open?(evt.target===this.modal||evt.target===this.toggle)&&(evt.preventDefault(),this.close()):evt.target===this.toggle&&(evt.preventDefault(),this.open())}handleTransitionEnd(evt){evt.target===this.modal&&this.detailsEl.classList.contains("is-closing")&&(this.detailsEl.classList.remove("is-closing"),this.detailsEl.open=!1,document.body.classList.remove("overflow-hidden"),this.detailsEl.removeEventListener("transitionend",this.transitionendHandler))}open(){document.body.classList.add("overflow-hidden"),this.detailsEl.open=!0,trapFocus(this.detailsEl),this.keyupHandler=evt=>evt.key==="Escape"&&this.close(),this.detailsEl.addEventListener("keyup",this.keyupHandler),this.hasTransition&&(this.transitionendHandler=this.transitionendHandler||this.handleTransitionEnd.bind(this),this.detailsEl.addEventListener("transitionend",this.transitionendHandler))}close(){this.hasTransition?this.detailsEl.classList.add("is-closing"):(this.detailsEl.open=!1,document.body.classList.remove("overflow-hidden")),removeTrapFocus(),this.detailsEl.removeEventListener("keyup",this.keyupHandler)}}customElements.define("details-modal",DetailsModal); 2//# sourceMappingURL=/cdn/shop/t/5/assets/details-modal.js.map?v=145869666890219779111723543933
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.