1class ModalDialog extends HTMLElement{constructor(){super(),this.addEventListener("click",event2=>{event2.target.nodeName==="MODAL-DIALOG"&&this.hide(),event2.target.closest('[id^="ModalClose-"]')&&this.hide()}),this.addEventListener("keyup",()=>{event.code?.toUpperCase()==="ESCAPE"&&this.hide()})}show(opener){const trapFocus=async()=>{(await import(window?._importmap?.imports?.helper||"helper")).trapFocus(this,this.querySelector('[role="dialog"]'))};this.openedBy=opener,this.setAttribute("open",""),this.querySelectorAll("deferred-media").forEach(async el=>{await customElements.whenDefined(el.tagName.toLowerCase()),el.loadContent()}),trapFocus()}hide(){this.removeAttribute("open"),import(window?._importmap?.imports?.helper||"helper").then(helper=>{helper.removeTrapFocus(this.openedBy),helper.pauseAllMedia()})}}export{ModalDialog}; 2//# sourceMappingURL=/cdn/shop/t/38/assets/modal-dialog.js.map?v=171034667274604625611787239738
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.