1/*! Copyright (c) Safe As Milk. All rights reserved. */import ModalDialog from"modal-dialog";class FiltersDialog extends ModalDialog{#boundHandleMediaQueryChange;#initiated;constructor(){super(),this.#boundHandleMediaQueryChange=this.#handleMediaQueryChange.bind(this)}connectedCallback(){this.disableOnDesktop=this.hasAttribute("data-disable-modal-on-desktop"),this.disableOnDesktop?(this.mediaQuery=window.matchMedia("(max-width: 996px)"),this.#initiated=!1,this.mediaQuery.matches&&this.init(),this.mediaQuery.addEventListener("change",this.#boundHandleMediaQueryChange)):this.init()}disconnectedCallback(){this.#initiated&&this.destroy(),this.disableOnDesktop&&this.mediaQuery.removeEventListener("change",this.#boundHandleMediaQueryChange)}init(){this.querySelector("aside").setAttribute("role","document"),this.setAttribute("aria-hidden","true"),this.classList.add("modal","modal--filters"),this.#initiated=!0,super.init()}destroy(){this.querySelector("aside").removeAttribute("role"),this.removeAttribute("aria-hidden"),this.classList.remove("modal","modal--filters"),this.#initiated=!1,super.destroy()}async#handleMediaQueryChange(e){e.matches&&!this.#initiated?this.init():this.#initiated&&(await this.close(),this.destroy())}}customElements.define("filters-dialog",FiltersDialog); 2//# sourceMappingURL=/cdn/shop/t/183/assets/filters-dialog.js.map?v=45350520373758127911789557107
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.