PageSourceSearch

https://gjcare.net/assets/controllers/base/maps/kakao_address_controller-52b042ba.js

js gjcare.net collected 2026-10-07 23:12:30 UTC 720 bytes, 24 lines download raw bytes

1import { Controller } from '@hotwired/stimulus';
2
3/**
4 * @domain 외부 연동
5 * @concern 주소 검색·우편번호 자동입력
6 * @description 다음 우편번호 검색 팝업에서 선택한 주소와 우편번호를 지정된 입력 필드에 채우는 컨트롤러
7 */
8export default class extends Controller {
9  static targets = ['placeInput', 'postcodeInput'];
10
11  handlePlaceSearch() {
12    new daum.Postcode({
13      oncomplete: this.handleOnCompleteDaumPostcode.bind(this),
14      autoClose: true,
15    }).open();
16  }
17
18  handleOnCompleteDaumPostcode(data) {
19    this.placeInputTarget.value = data.address;
20    if (this.hasPostcodeInputTarget) {
21      this.postcodeInputTarget.value = data.zonecode;
22    }
23  }
24}

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.