PageSourceSearch

https://gjcare.net/assets/controllers/base/prompt_field_controller-71a68082.js

js gjcare.net collected 2026-10-07 23:12:42 UTC 625 bytes, 20 lines download raw bytes

1import { Controller } from '@hotwired/stimulus';
2
3/**
4 * @domain 폼 라이프사이클
5 * @concern 제출 전 prompt 입력값을 필드에 채움
6 * @description 제출 시 prompt로 입력을 받아 대상 필드에 채우고, 취소하거나 비어 있으면 제출을 막는 컨트롤러
7 */
8export default class extends Controller {
9  static targets = ['field'];
10  static values = { message: String };
11
12  fill(event) {
13    const input = window.prompt(this.messageValue);
14    if (input === null || input.trim() === '') {
15      event.preventDefault();
16      return;
17    }
18    this.fieldTarget.value = input.trim();
19  }
20}

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.