PageSourceSearch

https://order.kyobobook.co.kr/assets/js/common/common-constant.js?t=202609301433

js kyobobook.co.kr collected 2026-10-01 08:45:56 UTC 1,704 bytes, 40 lines download raw bytes

1"use strict";
2
3/**
4 * order.constant — 주문/UI 전역 공용 상수·코드 홈
5 *
6 * 여러 화면에 흩어지기 쉬운 매직값(판매상품분류/구분코드, 배송책임코드 등)과
7 * 그 판정 로직을 이곳 한 곳에 모은다. 새 공용 코드값은 여기에 추가하고
8 * 사용처는 리터럴 대신 order.constant.* 를 참조한다.
9 *  - 상수: UPPER_SNAKE_CASE (예: WEVERSE_SALE_CMDT_CLST_CODE)
10 *  - 판정 함수: isXxx(code) 형태로 값 기반(코드 문자열)으로 받는다
11 *  - JsRender 템플릿에서 판정이 필요하면 common.js 의 $.views.helpers 에 래퍼를 등록해 ~isXxx() 로 노출
12 */
13order.constant = {
14
15    validationMessage : (id) => {
16
17        // 정적인 메세지 추가
18        const ValidMessage = {
19            VA_10_0003: '비밀번호를 입력해 주세요.',
20            VA_10_0016: '주문자명을 입력해 주세요.',
21            VA_10_0017: '이메일을 입력해 주세요.',
22            VA_10_0018: '일치하는 주문정보가 없습니다.',
23            VA_10_0021: '이메일 형식으로 입력해 주세요.',
24            VA_10_0023: '휴대폰 번호를 입력해 주세요.',
25            VA_10_0025: '사업자번호를 입력해 주세요.',
26            VA_10_0026: '정확한 사업자번호를 입력해 주세요.',
27            VA_10_0027: '법인명을 입력해 주세요.'
28        };
29
30        return ValidMessage[id];
31    },
32
33    // 위버스 판매상품분류코드
34    WEVERSE_SALE_CMDT_CLST_CODE : "030002",
35
36    // 위버스 상품 판정 (구 saleCmdtClstCode 30/36 → 030002 단일코드)
37    isWeverse : (code) => {
38        return code === order.constant.WEVERSE_SALE_CMDT_CLST_CODE;
39    }
40}

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.