1if(!customElements.get("modal-dialog")){class ModalDialog extends HTMLElement{constructor(){super(),this.age_verification=this.classList.contains("age-verification-modal"),this.id=this.getAttribute("id"),this.delay=parseInt(this.dataset.delay,10)*1e3,this.popup=this.dataset.popup,this.section_id=this.dataset.sectionId,this.disabled=this.getAttribute("disabled")!=null,this.button=this.querySelector('[id^="ModalClose-"]'),this.button.addEventListener("click",this.hide.bind(this)),this.disabled||(this.addEventListener("keyup",event=>{event.code.toUpperCase()==="ESCAPE"&&this.hide()}),this.addEventListener("click",event=>{event.target.nodeName==="MODAL-DIALOG"&&this.hide()})),this.delay&&this.delay>0&&(this.getCookie()||setTimeout(()=>{this.show(),this.button.addEventListener("click",this.setCookie.bind(this))},this.delay)),this.age_verification&&(this.getCookie()||this.show(),this.button.addEventListener("click",this.setCookie.bind(this))),Shopify.designMode&&(this.moved=!0,document.addEventListener("shopify:section:select",event=>{event.detail.sectionId===this.section_id&&this.show()}),document.addEventListener("shopify:section:deselect",event=>{event.detail.sectionId===this.section_id&&this.hide()}))}connectedCallback(){this.moved||(this.moved=!0,document.body.appendChild(this))}show(opener){this.openedBy=opener,document.body.classList.add("overflow-hidden"),this.setAttribute("open",""),setTimeout(()=>{this.querySelector('[role="dialog"]').focus()},100)}hide(){document.body.classList.remove("overflow-hidden"),this.removeAttribute("open"),this.querySelectorAll(".js-youtube").forEach(video=>{video.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),this.querySelectorAll(".js-vimeo").forEach(video=>{video.contentWindow.postMessage('{"method":"pause"}',"*")}),this.querySelectorAll("video").forEach(video=>video.pause()),this.popup}getCookie(){return window.localStorage.getItem(this.id)}setCookie(){window.localStorage.setItem(this.id,JSON.stringify(new Date))}}customElements.define("modal-dialog",ModalDialog)}if(!customElements.get("modal-opener")){class ModalOpener extends HTMLElement{constructor(){super();const button=this.querySelector("button");button&&button.addEventListener("click",()=>{const modal=document.querySelector(this.getAttribute("data-modal"));modal&&modal.show(button)})}}customElements.define("modal-opener",ModalOpener)} 2//# sourceMappingURL=/cdn/shop/t/23/assets/modal-dialog.js.map?v=4767662253085216211787151884
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.