PageSourceSearch

https://gls.ai/assets/controllers/validation_rule_controller-1bfc9…63fafab61f698db30003fa5f50abdf36edb83331.js

js gls.ai collected 2026-10-05 14:59:18 UTC 668 bytes, 26 lines download raw bytes

1import { Controller } from '@hotwired/stimulus';
2
3export default class extends Controller {
4  static classes = ['success', 'fail'];
5  static targets = ['successIcon', 'failIcon'];
6
7  connect() {
8    this.fail();
9  }
10
11  success() {
12    this.successIconTarget.classList.remove('hidden');
13    this.failIconTarget.classList.add('hidden');
14
15    this.element.classList.remove(this.failClass);
16    this.element.classList.add(this.successClass);
17  }
18
19  fail() {
20    this.successIconTarget.classList.add('hidden');
21    this.failIconTarget.classList.remove('hidden');
22
23    this.element.classList.remove(this.successClass);
24    this.element.classList.add(this.failClass);
25  }
26};

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.