1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 static targets = ["url", "input"] 5 6 search() { 7 this._debounceSubmit("form_search") 8 } 9 10 search_navbar() { 11 this._debounceSubmit("form_search_2") 12 } 13 14 search_module() { 15 this._debounceSubmit("form_search_module") 16 } 17 18 // Private 19 20 _debounceSubmit(formId) { 21 clearTimeout(this.timeout) 22 this.timeout = setTimeout(() => { 23 const form = document.getElementById(formId) 24 if (form) form.requestSubmit() 25 }, 300) 26 } 27};
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.