1class NativeDialog{constructor(element){this.element=element,this.element.addEventListener("close",this.close.bind(this)),this.setupOpenListener(),this.element.addEventListener("click",function(event){var rect=element.getBoundingClientRect(),isInDialog=rect.top<=event.clientY&&event.clientY<=rect.top+rect.height&&rect.left<=event.clientX&&event.clientX<=rect.left+rect.width;isInDialog||element.close()})}open(){this.disableScroll()}close(){this.enableScroll()}disableScroll(){this.originalOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden"}enableScroll(){document.documentElement.style.overflow=this.originalOverflow}setupOpenListener(){this.observer=new MutationObserver(()=>{this.element.open&&this.open()}),this.observer.observe(this.element,{attributeFilter:["open"]})}}document.querySelectorAll("dialog").forEach(modalEl=>new NativeDialog(modalEl)); 2//# sourceMappingURL=/cdn/shop/t/280/assets/dialog.js.map?v=73660424426456388391714499794
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.