1customElements.get("remove-all")||customElements.define("remove-all",class extends HTMLElement{constructor(){super()}connectedCallback(){this.clearButton=this.querySelector(".wt-header__search__clear-button"),this.searchInput=document.querySelector("#Search-In-Template"),this.isVisibleClearButton=!1,this.changeVisibilityOfButton(),this.addEventListeners()}changeVisibilityOfButton(){this.searchInput.value.length>0&&!this.isVisibleClearButton?(this.clearButton.style.display="flex",this.isVisibleClearButton=!0):this.searchInput.value.length===0&&this.isVisibleClearButton&&(this.clearButton.style.display="none",this.isVisibleClearButton=!1)}clearInputValue(){this.searchInput.value="",this.clearButton.style.display="none",this.isVisibleClearButton=!1}addEventListeners(){this.searchInput.addEventListener("input",()=>{this.changeVisibilityOfButton()}),this.clearButton.addEventListener("click",()=>{this.clearInputValue()})}removeEventListeners(){this.searchInput.removeEventListener("input",()=>{this.changeVisibilityOfButton()}),this.clearButton.removeEventListener("click",()=>{this.clearInputValue()})}disconnectedCallback(){this.removeEventListeners()}}); 2//# sourceMappingURL=/cdn/shop/t/2/assets/remove-all.js.map?v=45688694744213424181748523367
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.