PageSourceSearch

https://reach.wellfound.com/assets/controllers/rejection_reason_fo…c2afdd275be2bbc3455e16193e2515955e053e7b.js

js wellfound.com collected 2026-09-24 08:32:07 UTC 596 bytes, 29 lines download raw bytes

1import { Controller } from "@hotwired/stimulus";
2
3export default class extends Controller {
4  static targets = ["reason"];
5
6  static values = {
7    modalName: String,
8  };
9
10  change() {
11    const reason = this.reasonTarget.value;
12
13    if (reason === "other") {
14      this.reasonTarget.value = "";
15      this.openOtherReasonModal();
16      return;
17    }
18
19    if (reason) {
20      this.element.requestSubmit();
21    }
22  }
23
24  openOtherReasonModal() {
25    if (!this.hasModalNameValue) return;
26
27    document.dispatchEvent(new CustomEvent("modal.open", { detail: { name: this.modalNameValue } }));
28  }
29};

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.