PageSourceSearch

https://nobullproject.com/cdn/shop/t/1087/assets/search-form.js?v=163491897654670482441788294733

js nobullproject.com collected 2026-09-24 17:18:57 UTC 1,803 bytes, 2 lines download raw bytes

1class SearchForm extends HTMLElement{constructor(){super(),this.input=this.querySelector('input[type="search"]'),this.resetButton=this.querySelector('button[type="reset"]'),this.input&&(this.input.form.addEventListener("reset",this.onFormReset.bind(this)),this.input.addEventListener("input",debounce(event=>{this.onChange(event)},300).bind(this)))}toggleResetButton(){const resetIsHidden=this.resetButton.classList.contains("hidden");this.input.value.length>0&&resetIsHidden?(this.resetButton.classList.remove("hidden"),this.querySelector("button.search__button")?.setAttribute("disabled","false")):this.input.value.length===0&&!resetIsHidden&&(this.resetButton.classList.add("hidden"),this.querySelector("button.search__button")?.removeAttribute("disabled"))}toggleHardCodedSnippets(){const searchButton=this.querySelector("button.search__button"),hasValue=this.input?.value?.length>0;searchButton&&(hasValue?searchButton.removeAttribute("disabled"):searchButton.setAttribute("disabled","true"));const parentElement=this.offsetParent?.offsetParent;if(!parentElement)return;const snippet=parentElement.querySelector(".overriding_snippet"),predictiveSearch=parentElement.querySelector(".overriding_predictive_search");snippet&&(snippet.style.display=hasValue?"none":"block"),predictiveSearch&&(predictiveSearch.style.display=hasValue?"block":"none")}onChange(){this.toggleResetButton(),this.toggleHardCodedSnippets()}shouldResetForm(){return!document.querySelector('[aria-selected="true"] a')}onFormReset(event){event.preventDefault(),this.shouldResetForm()&&(this.input.value="",this.input.focus(),this.toggleResetButton(),this.toggleHardCodedSnippets())}}customElements.define("search-form",SearchForm);
2//# sourceMappingURL=/cdn/shop/t/1087/assets/search-form.js.map?v=163491897654670482441788294733

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.