PageSourceSearch

https://cosmobase.ru/assets/controllers/search_inspection_history_…570b11130c9ab2df2d1a980207e4ea02d58cc451.js

js cosmobase.ru collected 2026-09-24 18:04:54 UTC 484 bytes, 21 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3export default class extends Controller {
4  static targets = ["form", "searchInput", "result"];
5
6  find(event) {
7    const formData = new FormData(this.formTarget);
8    const url = new URL(this.formTarget.action);
9
10    formData.forEach((value, key) => {
11      url.searchParams.append(key, value);
12    });
13
14    this.resultTarget.src = url.toString();
15  }
16
17  clearInput() {
18    this.searchInputTarget.value = "";
19    this.find();
20  }
21};

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.