@bwg-ui/core 1.1.25 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/common-components-CniOkOzu.js +15776 -0
- package/dist/chunks/common-components-DrcQahsO.cjs +183 -0
- package/dist/chunks/{core-Dl0PdDdT.js → core-CEDyqniq.js} +1 -2
- package/dist/chunks/core-lmAmbqvY.cjs +1 -0
- package/dist/chunks/{enc-base64-D7t4BoUA.js → enc-base64-CF2tIkYl.js} +4 -5
- package/dist/chunks/enc-base64-Dxq399hI.cjs +1 -0
- package/dist/chunks/{sha256-C2-s1oZe.js → sha256-DYurgXCU.js} +12 -13
- package/dist/chunks/sha256-H5WWQnKT.cjs +1 -0
- package/dist/components/common/BwgPagination.d.ts +1 -1
- package/dist/components/common/BwgPagination.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -2
- package/dist/components/common/index.d.ts +3 -1
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +16 -17
- package/dist/components/core/BwgFormItem.d.ts +2 -2
- package/dist/components/core/BwgFormItem.d.ts.map +1 -1
- package/dist/components/core/BwgInput.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -2
- package/dist/components/core/index.js +1218 -23
- package/dist/components/guide/index.cjs +1 -2
- package/dist/components/guide/index.js +3 -4
- package/dist/components/layout/index.cjs +35 -2
- package/dist/components/layout/index.js +350 -10
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +211 -222
- package/dist/provider/index.cjs +1 -2
- package/dist/provider/index.js +384 -25
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +1394 -24
- package/dist/utils/index.cjs +1 -2
- package/dist/utils/index.js +1369 -200
- package/package.json +2 -3
- package/dist/chunks/AuthContext-CXng9fj0.cjs +0 -2
- package/dist/chunks/AuthContext-CXng9fj0.cjs.map +0 -1
- package/dist/chunks/AuthContext-DrEpBrpB.js +0 -57
- package/dist/chunks/AuthContext-DrEpBrpB.js.map +0 -1
- package/dist/chunks/BwgSpace-CnLM4qcg.js +0 -27
- package/dist/chunks/BwgSpace-CnLM4qcg.js.map +0 -1
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs +0 -2
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-DOlc57wi.cjs +0 -2
- package/dist/chunks/BwgSwitch-DOlc57wi.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-D_scwi9_.js +0 -269
- package/dist/chunks/BwgSwitch-D_scwi9_.js.map +0 -1
- package/dist/chunks/BwgUploader-CkXwkcUL.cjs +0 -3
- package/dist/chunks/BwgUploader-CkXwkcUL.cjs.map +0 -1
- package/dist/chunks/BwgUploader-DBFF9BPF.js +0 -3250
- package/dist/chunks/BwgUploader-DBFF9BPF.js.map +0 -1
- package/dist/chunks/LoadingOverlay-DAZJF5wg.js +0 -19
- package/dist/chunks/LoadingOverlay-DAZJF5wg.js.map +0 -1
- package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs +0 -2
- package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs.map +0 -1
- package/dist/chunks/SSOHandler-BY6LXMLc.cjs +0 -237
- package/dist/chunks/SSOHandler-BY6LXMLc.cjs.map +0 -1
- package/dist/chunks/SSOHandler-CxvxEBaH.js +0 -28654
- package/dist/chunks/SSOHandler-CxvxEBaH.js.map +0 -1
- package/dist/chunks/ScreenProtectContext-3my4PHFa.js +0 -154
- package/dist/chunks/ScreenProtectContext-3my4PHFa.js.map +0 -1
- package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs +0 -2
- package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs +0 -2
- package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-gWM7FHIw.js +0 -86
- package/dist/chunks/SearchBoxContext-gWM7FHIw.js.map +0 -1
- package/dist/chunks/ViewContainer-Bhq22_B3.cjs +0 -36
- package/dist/chunks/ViewContainer-Bhq22_B3.cjs.map +0 -1
- package/dist/chunks/ViewContainer-D9SKBnrn.js +0 -338
- package/dist/chunks/ViewContainer-D9SKBnrn.js.map +0 -1
- package/dist/chunks/apiUtils-BZ6s0_NI.cjs +0 -3
- package/dist/chunks/apiUtils-BZ6s0_NI.cjs.map +0 -1
- package/dist/chunks/apiUtils-DSwE62oG.js +0 -1450
- package/dist/chunks/apiUtils-DSwE62oG.js.map +0 -1
- package/dist/chunks/codeStore-il4-kZPe.cjs +0 -2
- package/dist/chunks/codeStore-il4-kZPe.cjs.map +0 -1
- package/dist/chunks/codeStore-vPj4Y0TK.js +0 -450
- package/dist/chunks/codeStore-vPj4Y0TK.js.map +0 -1
- package/dist/chunks/core-BHejg5iS.cjs +0 -2
- package/dist/chunks/core-BHejg5iS.cjs.map +0 -1
- package/dist/chunks/core-Dl0PdDdT.js.map +0 -1
- package/dist/chunks/enc-base64-BkBtNBQV.cjs +0 -2
- package/dist/chunks/enc-base64-BkBtNBQV.cjs.map +0 -1
- package/dist/chunks/enc-base64-D7t4BoUA.js.map +0 -1
- package/dist/chunks/favoriteStore-Bh1FuZm9.js +0 -439
- package/dist/chunks/favoriteStore-Bh1FuZm9.js.map +0 -1
- package/dist/chunks/favoriteStore-CcKg_nEH.cjs +0 -2
- package/dist/chunks/favoriteStore-CcKg_nEH.cjs.map +0 -1
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs +0 -31
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs.map +0 -1
- package/dist/chunks/jsx-runtime-Dpn_P65e.js +0 -634
- package/dist/chunks/jsx-runtime-Dpn_P65e.js.map +0 -1
- package/dist/chunks/popupStore-BRRmB4zH.js +0 -92
- package/dist/chunks/popupStore-BRRmB4zH.js.map +0 -1
- package/dist/chunks/popupStore-DUApUBF2.cjs +0 -2
- package/dist/chunks/popupStore-DUApUBF2.cjs.map +0 -1
- package/dist/chunks/realFormat-Cha7OTd9.cjs +0 -2
- package/dist/chunks/realFormat-Cha7OTd9.cjs.map +0 -1
- package/dist/chunks/realFormat-DRGLFabQ.js +0 -305
- package/dist/chunks/realFormat-DRGLFabQ.js.map +0 -1
- package/dist/chunks/sha256-C2-s1oZe.js.map +0 -1
- package/dist/chunks/sha256-DiIRoCQ8.cjs +0 -2
- package/dist/chunks/sha256-DiIRoCQ8.cjs.map +0 -1
- package/dist/chunks/usePopup-D2JEuDrO.cjs +0 -2
- package/dist/chunks/usePopup-D2JEuDrO.cjs.map +0 -1
- package/dist/chunks/usePopup-DarKTbRC.js +0 -109
- package/dist/chunks/usePopup-DarKTbRC.js.map +0 -1
- package/dist/components/common/index.cjs.map +0 -1
- package/dist/components/common/index.js.map +0 -1
- package/dist/components/core/index.cjs.map +0 -1
- package/dist/components/core/index.js.map +0 -1
- package/dist/components/guide/index.cjs.map +0 -1
- package/dist/components/guide/index.js.map +0 -1
- package/dist/components/layout/index.cjs.map +0 -1
- package/dist/components/layout/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/provider/index.cjs.map +0 -1
- package/dist/provider/index.js.map +0 -1
- package/dist/stores/index.cjs.map +0 -1
- package/dist/stores/index.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
package/dist/utils/index.js
CHANGED
|
@@ -1,219 +1,1388 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import X from "axios";
|
|
2
|
+
import L from "dayjs";
|
|
3
|
+
import { g as Q } from "../chunks/common-components-CniOkOzu.js";
|
|
4
|
+
import { notification as U, message as _ } from "antd";
|
|
5
|
+
import { useUserStore as O, useMenuViewStore as ie, useLoadingStore as Z, usePopupLoadingStore as J } from "../stores/index.js";
|
|
6
|
+
const ce = {
|
|
7
|
+
// 권한 관련
|
|
8
|
+
AUTH_BTNS: "SCMSIGN00202",
|
|
9
|
+
// 버튼 권한 조회
|
|
10
|
+
AUTH_MENU: "SCMSIGN00201",
|
|
11
|
+
// 메뉴 권한 조회
|
|
12
|
+
SRCH_CODE: "SCMSIGN00301",
|
|
13
|
+
// 코드 조회
|
|
14
|
+
// 팝업 관련
|
|
15
|
+
SRCH_POPU: "SCMPOPU00101",
|
|
16
|
+
// 팝업 조회
|
|
17
|
+
// 즐겨찾기 관련
|
|
18
|
+
AUTH_BMRK: "SCMBMRK00101"
|
|
19
|
+
// 즐겨찾기 관리
|
|
8
20
|
};
|
|
9
|
-
|
|
21
|
+
let F = {};
|
|
22
|
+
function Ie(e) {
|
|
23
|
+
F = e, console.log("🔧 Provider 서비스코드 오버라이드 설정:", e);
|
|
24
|
+
}
|
|
25
|
+
function ue(e) {
|
|
26
|
+
return F[e] && F[e].trim() !== "" ? F[e] : ce[e];
|
|
27
|
+
}
|
|
28
|
+
function le() {
|
|
29
|
+
const e = {};
|
|
30
|
+
for (const t of Object.keys(ce))
|
|
31
|
+
e[t] = ue(t);
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
function Pe() {
|
|
35
|
+
console.log("🔧 bwg-core 서비스코드 설정:"), console.log("📋 Provider 설정 > 기본값 순서로 확인");
|
|
36
|
+
const e = le();
|
|
37
|
+
for (const [t, r] of Object.entries(e)) {
|
|
38
|
+
const o = F[t] ? "Provider 설정" : "기본값";
|
|
39
|
+
console.log(` ${t}: ${r} (${o})`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
|
+
__proto__: null,
|
|
44
|
+
getAllServiceCodes: le,
|
|
45
|
+
getServiceCode: ue,
|
|
46
|
+
logServiceCodeConfig: Pe,
|
|
47
|
+
setServiceCodeOverrides: Ie
|
|
48
|
+
}, Symbol.toStringTag, { value: "Module" })), Le = () => O.getState().user?.crprCd || null, me = () => O.getState().user?.userId || null, fe = () => O.getState().user?.userNm || null, Ae = () => O.getState().user?.userDvsn || null, Fe = () => O.getState().user?.emplNo || null, he = () => O.getState().user?.dprtCd || null, ge = () => O.getState().user?.dprtNm || null, W = () => O.getState().user?.roleList || null, Re = (e) => {
|
|
49
|
+
const t = W();
|
|
50
|
+
return t ? t.includes(e) : !1;
|
|
51
|
+
}, Ye = (e) => {
|
|
52
|
+
const t = W();
|
|
53
|
+
return t ? e.some((r) => t.includes(r)) : !1;
|
|
54
|
+
}, ze = (e) => {
|
|
55
|
+
const t = W();
|
|
56
|
+
return t ? e.every((r) => t.includes(r)) : !1;
|
|
57
|
+
}, He = () => O.getState().isLoggedIn, A = () => O.getState().user, je = () => A() !== null, Ve = () => {
|
|
58
|
+
const e = fe(), t = me();
|
|
59
|
+
return e || t || null;
|
|
60
|
+
}, Be = () => {
|
|
61
|
+
const e = ge(), t = he();
|
|
62
|
+
return e || (t ? String(t) : null);
|
|
63
|
+
}, pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64
|
+
__proto__: null,
|
|
65
|
+
getCrprCd: Le,
|
|
66
|
+
getDepartmentInfo: Be,
|
|
67
|
+
getDisplayName: Ve,
|
|
68
|
+
getDprtCd: he,
|
|
69
|
+
getDprtNm: ge,
|
|
70
|
+
getEmplNo: Fe,
|
|
71
|
+
getRoleList: W,
|
|
72
|
+
getUserDvsn: Ae,
|
|
73
|
+
getUserId: me,
|
|
74
|
+
getUserInfo: A,
|
|
75
|
+
getUserNm: fe,
|
|
76
|
+
hasAllRoles: ze,
|
|
77
|
+
hasAnyRole: Ye,
|
|
78
|
+
hasRole: Re,
|
|
79
|
+
hasUserInfo: je,
|
|
80
|
+
isLoggedIn: He
|
|
81
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
82
|
+
var H = { exports: {} }, We = H.exports, se;
|
|
83
|
+
function qe() {
|
|
84
|
+
return se || (se = 1, (function(e, t) {
|
|
85
|
+
(function(r, o) {
|
|
86
|
+
e.exports = o();
|
|
87
|
+
})(We, (function() {
|
|
88
|
+
return function(r, o, a) {
|
|
89
|
+
r = r || {};
|
|
90
|
+
var m = o.prototype, p = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
91
|
+
function x(y, d, l, i) {
|
|
92
|
+
return m.fromToBase(y, d, l, i);
|
|
93
|
+
}
|
|
94
|
+
a.en.relativeTime = p, m.fromToBase = function(y, d, l, i, c) {
|
|
95
|
+
for (var n, s, u, f = l.$locale().relativeTime || p, g = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], w = g.length, v = 0; v < w; v += 1) {
|
|
96
|
+
var S = g[v];
|
|
97
|
+
S.d && (n = i ? a(y).diff(l, S.d, !0) : l.diff(y, S.d, !0));
|
|
98
|
+
var C = (r.rounding || Math.round)(Math.abs(n));
|
|
99
|
+
if (u = n > 0, C <= S.r || !S.r) {
|
|
100
|
+
C <= 1 && v > 0 && (S = g[v - 1]);
|
|
101
|
+
var M = f[S.l];
|
|
102
|
+
c && (C = c("" + C)), s = typeof M == "string" ? M.replace("%d", C) : M(C, d, S.l, u);
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (d) return s;
|
|
107
|
+
var b = u ? f.future : f.past;
|
|
108
|
+
return typeof b == "function" ? b(s) : b.replace("%s", s);
|
|
109
|
+
}, m.to = function(y, d) {
|
|
110
|
+
return x(y, d, this, !0);
|
|
111
|
+
}, m.from = function(y, d) {
|
|
112
|
+
return x(y, d, this);
|
|
113
|
+
};
|
|
114
|
+
var h = function(y) {
|
|
115
|
+
return y.$u ? a.utc() : a();
|
|
116
|
+
};
|
|
117
|
+
m.toNow = function(y) {
|
|
118
|
+
return this.to(h(this), y);
|
|
119
|
+
}, m.fromNow = function(y) {
|
|
120
|
+
return this.from(h(this), y);
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}));
|
|
124
|
+
})(H)), H.exports;
|
|
125
|
+
}
|
|
126
|
+
var Ke = /* @__PURE__ */ qe();
|
|
127
|
+
const Ge = /* @__PURE__ */ Q(Ke);
|
|
128
|
+
var j = { exports: {} }, Ze = j.exports, ne;
|
|
129
|
+
function Je() {
|
|
130
|
+
return ne || (ne = 1, (function(e, t) {
|
|
131
|
+
(function(r, o) {
|
|
132
|
+
e.exports = o();
|
|
133
|
+
})(Ze, (function() {
|
|
134
|
+
var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
|
|
135
|
+
return function(a, m, p) {
|
|
136
|
+
var x, h = function(i, c, n) {
|
|
137
|
+
n === void 0 && (n = {});
|
|
138
|
+
var s = new Date(i), u = (function(f, g) {
|
|
139
|
+
g === void 0 && (g = {});
|
|
140
|
+
var w = g.timeZoneName || "short", v = f + "|" + w, S = o[v];
|
|
141
|
+
return S || (S = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: f, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: w }), o[v] = S), S;
|
|
142
|
+
})(c, n);
|
|
143
|
+
return u.formatToParts(s);
|
|
144
|
+
}, y = function(i, c) {
|
|
145
|
+
for (var n = h(i, c), s = [], u = 0; u < n.length; u += 1) {
|
|
146
|
+
var f = n[u], g = f.type, w = f.value, v = r[g];
|
|
147
|
+
v >= 0 && (s[v] = parseInt(w, 10));
|
|
148
|
+
}
|
|
149
|
+
var S = s[3], C = S === 24 ? 0 : S, M = s[0] + "-" + s[1] + "-" + s[2] + " " + C + ":" + s[4] + ":" + s[5] + ":000", b = +i;
|
|
150
|
+
return (p.utc(M).valueOf() - (b -= b % 1e3)) / 6e4;
|
|
151
|
+
}, d = m.prototype;
|
|
152
|
+
d.tz = function(i, c) {
|
|
153
|
+
i === void 0 && (i = x);
|
|
154
|
+
var n, s = this.utcOffset(), u = this.toDate(), f = u.toLocaleString("en-US", { timeZone: i }), g = Math.round((u - new Date(f)) / 1e3 / 60), w = 15 * -Math.round(u.getTimezoneOffset() / 15) - g;
|
|
155
|
+
if (!Number(w)) n = this.utcOffset(0, c);
|
|
156
|
+
else if (n = p(f, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(w, !0), c) {
|
|
157
|
+
var v = n.utcOffset();
|
|
158
|
+
n = n.add(s - v, "minute");
|
|
159
|
+
}
|
|
160
|
+
return n.$x.$timezone = i, n;
|
|
161
|
+
}, d.offsetName = function(i) {
|
|
162
|
+
var c = this.$x.$timezone || p.tz.guess(), n = h(this.valueOf(), c, { timeZoneName: i }).find((function(s) {
|
|
163
|
+
return s.type.toLowerCase() === "timezonename";
|
|
164
|
+
}));
|
|
165
|
+
return n && n.value;
|
|
166
|
+
};
|
|
167
|
+
var l = d.startOf;
|
|
168
|
+
d.startOf = function(i, c) {
|
|
169
|
+
if (!this.$x || !this.$x.$timezone) return l.call(this, i, c);
|
|
170
|
+
var n = p(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
171
|
+
return l.call(n, i, c).tz(this.$x.$timezone, !0);
|
|
172
|
+
}, p.tz = function(i, c, n) {
|
|
173
|
+
var s = n && c, u = n || c || x, f = y(+p(), u);
|
|
174
|
+
if (typeof i != "string") return p(i).tz(u);
|
|
175
|
+
var g = (function(C, M, b) {
|
|
176
|
+
var N = C - 60 * M * 1e3, I = y(N, b);
|
|
177
|
+
if (M === I) return [N, M];
|
|
178
|
+
var G = y(N -= 60 * (I - M) * 1e3, b);
|
|
179
|
+
return I === G ? [N, I] : [C - 60 * Math.min(I, G) * 1e3, Math.max(I, G)];
|
|
180
|
+
})(p.utc(i, s).valueOf(), f, u), w = g[0], v = g[1], S = p(w).utcOffset(v);
|
|
181
|
+
return S.$x.$timezone = u, S;
|
|
182
|
+
}, p.tz.guess = function() {
|
|
183
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
184
|
+
}, p.tz.setDefault = function(i) {
|
|
185
|
+
x = i;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
}));
|
|
189
|
+
})(j)), j.exports;
|
|
190
|
+
}
|
|
191
|
+
var Xe = /* @__PURE__ */ Je();
|
|
192
|
+
const Qe = /* @__PURE__ */ Q(Xe);
|
|
193
|
+
var V = { exports: {} }, et = V.exports, ae;
|
|
194
|
+
function tt() {
|
|
195
|
+
return ae || (ae = 1, (function(e, t) {
|
|
196
|
+
(function(r, o) {
|
|
197
|
+
e.exports = o();
|
|
198
|
+
})(et, (function() {
|
|
199
|
+
var r = "minute", o = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
|
|
200
|
+
return function(m, p, x) {
|
|
201
|
+
var h = p.prototype;
|
|
202
|
+
x.utc = function(s) {
|
|
203
|
+
var u = { date: s, utc: !0, args: arguments };
|
|
204
|
+
return new p(u);
|
|
205
|
+
}, h.utc = function(s) {
|
|
206
|
+
var u = x(this.toDate(), { locale: this.$L, utc: !0 });
|
|
207
|
+
return s ? u.add(this.utcOffset(), r) : u;
|
|
208
|
+
}, h.local = function() {
|
|
209
|
+
return x(this.toDate(), { locale: this.$L, utc: !1 });
|
|
210
|
+
};
|
|
211
|
+
var y = h.parse;
|
|
212
|
+
h.parse = function(s) {
|
|
213
|
+
s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), y.call(this, s);
|
|
214
|
+
};
|
|
215
|
+
var d = h.init;
|
|
216
|
+
h.init = function() {
|
|
217
|
+
if (this.$u) {
|
|
218
|
+
var s = this.$d;
|
|
219
|
+
this.$y = s.getUTCFullYear(), this.$M = s.getUTCMonth(), this.$D = s.getUTCDate(), this.$W = s.getUTCDay(), this.$H = s.getUTCHours(), this.$m = s.getUTCMinutes(), this.$s = s.getUTCSeconds(), this.$ms = s.getUTCMilliseconds();
|
|
220
|
+
} else d.call(this);
|
|
221
|
+
};
|
|
222
|
+
var l = h.utcOffset;
|
|
223
|
+
h.utcOffset = function(s, u) {
|
|
224
|
+
var f = this.$utils().u;
|
|
225
|
+
if (f(s)) return this.$u ? 0 : f(this.$offset) ? l.call(this) : this.$offset;
|
|
226
|
+
if (typeof s == "string" && (s = (function(S) {
|
|
227
|
+
S === void 0 && (S = "");
|
|
228
|
+
var C = S.match(o);
|
|
229
|
+
if (!C) return null;
|
|
230
|
+
var M = ("" + C[0]).match(a) || ["-", 0, 0], b = M[0], N = 60 * +M[1] + +M[2];
|
|
231
|
+
return N === 0 ? 0 : b === "+" ? N : -N;
|
|
232
|
+
})(s), s === null)) return this;
|
|
233
|
+
var g = Math.abs(s) <= 16 ? 60 * s : s;
|
|
234
|
+
if (g === 0) return this.utc(u);
|
|
235
|
+
var w = this.clone();
|
|
236
|
+
if (u) return w.$offset = g, w.$u = !1, w;
|
|
237
|
+
var v = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
238
|
+
return (w = this.local().add(g + v, r)).$offset = g, w.$x.$localOffset = v, w;
|
|
239
|
+
};
|
|
240
|
+
var i = h.format;
|
|
241
|
+
h.format = function(s) {
|
|
242
|
+
var u = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
243
|
+
return i.call(this, u);
|
|
244
|
+
}, h.valueOf = function() {
|
|
245
|
+
var s = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
246
|
+
return this.$d.valueOf() - 6e4 * s;
|
|
247
|
+
}, h.isUTC = function() {
|
|
248
|
+
return !!this.$u;
|
|
249
|
+
}, h.toISOString = function() {
|
|
250
|
+
return this.toDate().toISOString();
|
|
251
|
+
}, h.toString = function() {
|
|
252
|
+
return this.toDate().toUTCString();
|
|
253
|
+
};
|
|
254
|
+
var c = h.toDate;
|
|
255
|
+
h.toDate = function(s) {
|
|
256
|
+
return s === "s" && this.$offset ? x(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : c.call(this);
|
|
257
|
+
};
|
|
258
|
+
var n = h.diff;
|
|
259
|
+
h.diff = function(s, u, f) {
|
|
260
|
+
if (s && this.$u === s.$u) return n.call(this, s, u, f);
|
|
261
|
+
var g = this.local(), w = x(s).local();
|
|
262
|
+
return n.call(g, w, u, f);
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
}));
|
|
266
|
+
})(V)), V.exports;
|
|
267
|
+
}
|
|
268
|
+
var rt = /* @__PURE__ */ tt();
|
|
269
|
+
const ot = /* @__PURE__ */ Q(rt), st = "ui_theme", nt = (e) => typeof e == "string", at = (e) => typeof e == "number" && !isNaN(e), it = (e) => typeof e == "boolean", ct = (e) => typeof e == "function", ut = (e) => e !== null && typeof e == "object", lt = (e) => Array.isArray(e), dt = (e) => e === null, mt = (e) => e === void 0, ft = (e) => e == null, ht = (e, t) => {
|
|
270
|
+
let r = 0;
|
|
271
|
+
return (...o) => {
|
|
272
|
+
const a = Date.now();
|
|
273
|
+
a - r >= t && (r = a, e(...o));
|
|
274
|
+
};
|
|
275
|
+
}, gt = (e, t) => {
|
|
276
|
+
let r;
|
|
277
|
+
return (...o) => {
|
|
278
|
+
clearTimeout(r), r = setTimeout(() => e(...o), t);
|
|
279
|
+
};
|
|
280
|
+
}, pt = async (e) => {
|
|
281
|
+
try {
|
|
282
|
+
return await navigator.clipboard.writeText(e), !0;
|
|
283
|
+
} catch (t) {
|
|
284
|
+
return console.error("Error copying to clipboard:", t), !1;
|
|
285
|
+
}
|
|
286
|
+
}, q = () => {
|
|
287
|
+
const e = window.innerWidth;
|
|
288
|
+
return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
|
|
289
|
+
}, yt = () => q() === "mobile", wt = () => q() === "tablet", St = () => q() === "desktop", vt = () => "#" + Math.floor(Math.random() * 16777215).toString(16), K = (e) => !e || e.length === 0, xt = (e) => [...new Set(e)], $t = (e) => {
|
|
290
|
+
if (!K(e))
|
|
291
|
+
return Math.max(...e);
|
|
292
|
+
}, Ct = (e) => {
|
|
293
|
+
if (!K(e))
|
|
294
|
+
return Math.min(...e);
|
|
295
|
+
}, Mt = (e) => {
|
|
296
|
+
if (!K(e))
|
|
297
|
+
return e.reduce((t, r) => t + r, 0) / e.length;
|
|
298
|
+
}, bt = (e) => e.reduce((t, r) => t + r, 0), Tt = (e, t) => e.filter(t).length, kt = (e) => [...e].reverse(), Ot = (e) => {
|
|
299
|
+
const t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
300
|
+
return e.forEach((o) => {
|
|
301
|
+
t.has(o) ? r.add(o) : t.add(o);
|
|
302
|
+
}), Array.from(r);
|
|
303
|
+
}, Nt = (e, t) => Math.random() * (t - e) + e, Dt = (e, t, r) => Math.min(Math.max(e, t), r), Ut = (e, t = 0) => Math.round(e * Math.pow(10, t)) / Math.pow(10, t), _t = (e, t) => {
|
|
304
|
+
try {
|
|
305
|
+
sessionStorage.setItem(e, JSON.stringify(t));
|
|
306
|
+
} catch (r) {
|
|
307
|
+
console.error("Error saving to sessionStorage:", r);
|
|
308
|
+
}
|
|
309
|
+
}, Et = (e, t) => {
|
|
310
|
+
try {
|
|
311
|
+
const r = sessionStorage.getItem(e);
|
|
312
|
+
return r ? JSON.parse(r) : t || null;
|
|
313
|
+
} catch (r) {
|
|
314
|
+
return console.error("Error reading from sessionStorage:", r), t || null;
|
|
315
|
+
}
|
|
316
|
+
}, It = (e) => {
|
|
10
317
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
318
|
+
sessionStorage.removeItem(e);
|
|
319
|
+
} catch (t) {
|
|
320
|
+
console.error("Error removing from sessionStorage:", t);
|
|
321
|
+
}
|
|
322
|
+
}, Pt = () => {
|
|
323
|
+
try {
|
|
324
|
+
sessionStorage.clear();
|
|
325
|
+
} catch (e) {
|
|
326
|
+
console.error("Error clearing sessionStorage:", e);
|
|
327
|
+
}
|
|
328
|
+
}, Lt = (e, t, r = 30) => {
|
|
329
|
+
const o = /* @__PURE__ */ new Date();
|
|
330
|
+
o.setTime(o.getTime() + r * 24 * 60 * 60 * 1e3), document.cookie = `${e}=${t};expires=${o.toUTCString()};path=/`;
|
|
331
|
+
}, At = (e) => {
|
|
332
|
+
const t = e + "=", r = document.cookie.split(";");
|
|
333
|
+
for (let o = 0; o < r.length; o++) {
|
|
334
|
+
let a = r[o];
|
|
335
|
+
for (; a.charAt(0) === " "; ) a = a.substring(1, a.length);
|
|
336
|
+
if (a.indexOf(t) === 0) return a.substring(t.length, a.length);
|
|
337
|
+
}
|
|
338
|
+
return null;
|
|
339
|
+
}, Ft = (e) => {
|
|
340
|
+
document.cookie = `${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`;
|
|
341
|
+
}, ye = (e) => typeof e != "string" ? !e : e.trim().length === 0, Rt = (e, t) => ye(e) ? t : e || "", Yt = (e) => e.replace(/-([a-z])/g, (t) => t[1].toUpperCase()), zt = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), Ht = (e) => {
|
|
342
|
+
try {
|
|
343
|
+
return new URL(e), !0;
|
|
344
|
+
} catch {
|
|
345
|
+
return !1;
|
|
346
|
+
}
|
|
347
|
+
}, jt = (e, t, r = " ") => e.padStart(t, r), Vt = (e, t, r = " ") => e.padEnd(t, r), we = (e, t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") => {
|
|
348
|
+
let r = "";
|
|
349
|
+
for (let o = 0; o < e; o++)
|
|
350
|
+
r += t.charAt(Math.floor(Math.random() * t.length));
|
|
351
|
+
return r;
|
|
352
|
+
}, Bt = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
353
|
+
const t = Math.random() * 16 | 0;
|
|
354
|
+
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
355
|
+
}), Se = (e = 32) => {
|
|
356
|
+
const r = Bt().replace(/-/g, "");
|
|
357
|
+
return e >= 32 ? r + we(e - 32, "0123456789abcdef") : r.substring(0, e);
|
|
358
|
+
};
|
|
359
|
+
async function Wt(e) {
|
|
360
|
+
const [{ default: t }, { default: r }] = await Promise.all([
|
|
361
|
+
import("../chunks/sha256-DYurgXCU.js").then((o) => o.s),
|
|
362
|
+
import("../chunks/enc-base64-CF2tIkYl.js").then((o) => o.e)
|
|
363
|
+
]);
|
|
364
|
+
return t(e).toString(r);
|
|
365
|
+
}
|
|
366
|
+
L.extend(Ge);
|
|
367
|
+
L.extend(ot);
|
|
368
|
+
L.extend(Qe);
|
|
369
|
+
L.locale("ko");
|
|
370
|
+
const qt = () => L(), Kt = (e = "YYYY-MM-DD") => L().format(e), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
371
|
+
__proto__: null,
|
|
372
|
+
THEME_COOKIE_NAME: st,
|
|
373
|
+
arrAverage: Mt,
|
|
374
|
+
arrCount: Tt,
|
|
375
|
+
arrMax: $t,
|
|
376
|
+
arrMin: Ct,
|
|
377
|
+
arrReverse: kt,
|
|
378
|
+
arrSum: bt,
|
|
379
|
+
arrUnique: xt,
|
|
380
|
+
clamp: Dt,
|
|
381
|
+
clearSessionStorage: Pt,
|
|
382
|
+
copyToClipboard: pt,
|
|
383
|
+
debounce: gt,
|
|
384
|
+
deleteCookie: Ft,
|
|
385
|
+
duplicates: Ot,
|
|
386
|
+
encryptSha256: Wt,
|
|
387
|
+
generateRandomColor: vt,
|
|
388
|
+
generateRandomString: we,
|
|
389
|
+
generateUID: Se,
|
|
390
|
+
getCookie: At,
|
|
391
|
+
getCurrentDate: qt,
|
|
392
|
+
getCurrentDateString: Kt,
|
|
393
|
+
getDeviceType: q,
|
|
394
|
+
getSessionStorage: Et,
|
|
395
|
+
isArray: lt,
|
|
396
|
+
isBoolean: it,
|
|
397
|
+
isDesktop: St,
|
|
398
|
+
isEmpty: ye,
|
|
399
|
+
isEmptyArray: K,
|
|
400
|
+
isFunction: ct,
|
|
401
|
+
isMobile: yt,
|
|
402
|
+
isNull: dt,
|
|
403
|
+
isNullOrUndefined: ft,
|
|
404
|
+
isNumber: at,
|
|
405
|
+
isObject: ut,
|
|
406
|
+
isSafeEmpty: Rt,
|
|
407
|
+
isString: nt,
|
|
408
|
+
isTablet: wt,
|
|
409
|
+
isUndefined: mt,
|
|
410
|
+
isValidEmail: zt,
|
|
411
|
+
isValidUrl: Ht,
|
|
412
|
+
padLeft: jt,
|
|
413
|
+
padRight: Vt,
|
|
414
|
+
random: Nt,
|
|
415
|
+
removeSessionStorage: It,
|
|
416
|
+
round: Ut,
|
|
417
|
+
setCookie: Lt,
|
|
418
|
+
setSessionStorage: _t,
|
|
419
|
+
throttle: ht,
|
|
420
|
+
toCamelCase: Yt
|
|
421
|
+
}, Symbol.toStringTag, { value: "Module" })), R = (() => {
|
|
422
|
+
try {
|
|
423
|
+
if (import.meta.env.DEV)
|
|
424
|
+
return !0;
|
|
425
|
+
} catch {
|
|
426
|
+
}
|
|
427
|
+
return !1;
|
|
428
|
+
})();
|
|
429
|
+
let xe = [], $e = [];
|
|
430
|
+
function Gt(e) {
|
|
431
|
+
e.devHosts && (xe = e.devHosts), e.prodHosts && ($e = e.prodHosts);
|
|
432
|
+
}
|
|
433
|
+
function Ce() {
|
|
434
|
+
if (typeof window < "u" && window.location)
|
|
435
|
+
return window.location.hostname;
|
|
436
|
+
}
|
|
437
|
+
const Me = (() => {
|
|
438
|
+
const e = Ce();
|
|
439
|
+
return !!(e && xe.includes(e));
|
|
440
|
+
})(), be = (() => {
|
|
441
|
+
const e = Ce();
|
|
442
|
+
return !!(e && $e.includes(e));
|
|
443
|
+
})();
|
|
444
|
+
function Zt() {
|
|
445
|
+
return R ? "X" : Me ? "D" : be ? "P" : "X";
|
|
446
|
+
}
|
|
447
|
+
const Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
448
|
+
__proto__: null,
|
|
449
|
+
configureEnvUtils: Gt,
|
|
450
|
+
getEnvCode: Zt,
|
|
451
|
+
isDev: Me,
|
|
452
|
+
isLocal: R,
|
|
453
|
+
isProd: be
|
|
454
|
+
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
455
|
+
duration: 4.5,
|
|
456
|
+
// 4.5초
|
|
457
|
+
placement: "topRight"
|
|
458
|
+
};
|
|
459
|
+
class P {
|
|
460
|
+
constructor() {
|
|
461
|
+
}
|
|
462
|
+
static getInstance() {
|
|
463
|
+
return P.instance || (P.instance = new P()), P.instance;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* BwgError 전용 에러 알림
|
|
467
|
+
* @param props - 에러 메시지 설정
|
|
468
|
+
*/
|
|
469
|
+
showBwgError(t) {
|
|
470
|
+
const {
|
|
471
|
+
message: r,
|
|
472
|
+
description: o,
|
|
473
|
+
duration: a = T.duration,
|
|
474
|
+
placement: m = T.placement
|
|
475
|
+
} = t;
|
|
476
|
+
U.error({
|
|
477
|
+
message: `${r}`,
|
|
478
|
+
description: o || "오류가 발생했습니다. 다시 시도해주세요.",
|
|
479
|
+
duration: a,
|
|
480
|
+
placement: m,
|
|
481
|
+
style: {
|
|
482
|
+
borderLeft: "4px solid #ff4d4f",
|
|
483
|
+
backgroundColor: "#fff2f0"
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* 성공 알림
|
|
489
|
+
*/
|
|
490
|
+
showSuccess(t, r, o) {
|
|
491
|
+
U.success({
|
|
492
|
+
message: `${t}`,
|
|
493
|
+
description: r,
|
|
494
|
+
duration: o || T.duration,
|
|
495
|
+
placement: T.placement
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* 정보 알림
|
|
500
|
+
*/
|
|
501
|
+
showInfo(t, r, o) {
|
|
502
|
+
U.info({
|
|
503
|
+
message: `${t}`,
|
|
504
|
+
description: r,
|
|
505
|
+
duration: o || T.duration,
|
|
506
|
+
placement: T.placement
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* 경고 알림
|
|
511
|
+
*/
|
|
512
|
+
showWarning(t, r, o) {
|
|
513
|
+
U.warning({
|
|
514
|
+
message: `${t}`,
|
|
515
|
+
description: r,
|
|
516
|
+
duration: o || T.duration,
|
|
517
|
+
placement: T.placement
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* 일반 에러 알림
|
|
522
|
+
*/
|
|
523
|
+
showError(t, r, o) {
|
|
524
|
+
U.error({
|
|
525
|
+
message: `${t}`,
|
|
526
|
+
description: r,
|
|
527
|
+
duration: o || T.duration,
|
|
528
|
+
placement: T.placement
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* 모든 알림 닫기
|
|
533
|
+
*/
|
|
534
|
+
destroy() {
|
|
535
|
+
U.destroy();
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* 특정 키의 알림 닫기
|
|
539
|
+
*/
|
|
540
|
+
close(t) {
|
|
541
|
+
U.destroy();
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
const D = P.getInstance(), ee = (e) => {
|
|
545
|
+
D.showBwgError(e);
|
|
546
|
+
}, Jt = (e, t, r) => {
|
|
547
|
+
D.showSuccess(e, t, r);
|
|
548
|
+
}, te = (e, t, r) => {
|
|
549
|
+
D.showInfo(e, t, r);
|
|
550
|
+
}, re = (e, t, r) => {
|
|
551
|
+
D.showWarning(e, t, r);
|
|
552
|
+
}, Xt = (e, t, r) => {
|
|
553
|
+
D.showError(e, t, r);
|
|
554
|
+
}, Qt = () => {
|
|
555
|
+
D.destroy();
|
|
556
|
+
}, er = (e) => {
|
|
557
|
+
D.close(e);
|
|
558
|
+
}, ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
559
|
+
__proto__: null,
|
|
560
|
+
closeNotification: er,
|
|
561
|
+
destroyNotifications: Qt,
|
|
562
|
+
notiBwgError: ee,
|
|
563
|
+
notiError: Xt,
|
|
564
|
+
notiInfo: te,
|
|
565
|
+
notiSuccess: Jt,
|
|
566
|
+
notiWarning: re,
|
|
567
|
+
notificationService: D
|
|
568
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
569
|
+
let k = null;
|
|
570
|
+
const oe = async (e) => {
|
|
571
|
+
if (k === null)
|
|
572
|
+
if (e === void 0)
|
|
573
|
+
try {
|
|
574
|
+
let r = (await X.get("/api/ip")).data.trim();
|
|
575
|
+
r = r.replace(/\s+/g, ""), k = r;
|
|
576
|
+
} catch (t) {
|
|
577
|
+
console.warn("IP 가져오기 실패:", t), k = "unknown";
|
|
578
|
+
}
|
|
579
|
+
else
|
|
580
|
+
k = e;
|
|
581
|
+
}, tr = () => k, rr = async () => (console.log("IP 검증 비활성화됨 (성능 최적화)"), k || "unknown");
|
|
582
|
+
class $ extends Error {
|
|
583
|
+
constructor(t, r, o, a, m) {
|
|
584
|
+
super(t), this.name = "ApiError", this.detailMsg = r, this.response = o, this.msgCd = a, this.errorType = m, Error.captureStackTrace && Error.captureStackTrace(this, $);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
const B = {
|
|
588
|
+
method: "POST",
|
|
589
|
+
timeout: 3e4,
|
|
590
|
+
// 30초
|
|
591
|
+
withCredentials: !0,
|
|
592
|
+
// 쿠키 포함
|
|
593
|
+
showLoading: !0,
|
|
594
|
+
isPopup: !1,
|
|
595
|
+
showError: !0,
|
|
596
|
+
retryCount: 0,
|
|
597
|
+
retryDelay: 1e3
|
|
598
|
+
}, Y = X.create({
|
|
599
|
+
timeout: B.timeout,
|
|
600
|
+
withCredentials: B.withCredentials,
|
|
601
|
+
headers: {
|
|
602
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
603
|
+
Accept: "application/json; charset=utf-8",
|
|
604
|
+
"Apm-Guid": Se()
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
Y.interceptors.request.use(
|
|
608
|
+
(e) => {
|
|
609
|
+
e.showLoading && !e.isPopup && Z.getState().showLoading(), e.showLoading && e.isPopup && J.getState().showLoading();
|
|
610
|
+
let t = "UNKNOWN";
|
|
611
|
+
(/* @__PURE__ */ new Date()).getTime();
|
|
612
|
+
try {
|
|
613
|
+
e.data && e.data.header ? t = e.data.header.trxCd || "UNKNOWN" : e.params && e.params.header && (t = e.params.header.trxCd || "UNKNOWN");
|
|
614
|
+
} catch (o) {
|
|
615
|
+
console.warn("trxCd/guid 추출 실패:", o);
|
|
616
|
+
}
|
|
617
|
+
e.trxCd = t, e.requestStartTime = Date.now(), console.log(
|
|
618
|
+
`🚀 API 요청 시작 [거래코드: ${t} / 서비스요청자: ${A()?.userId}]`
|
|
619
|
+
);
|
|
620
|
+
const r = localStorage.getItem("accessToken");
|
|
621
|
+
return r && (e.headers.Authorization = `Bearer ${r}`), e.headers["Content-Type"] = "application/json; charset=UTF-8", e.headers.Accept = "application/json; charset=UTF-8", e;
|
|
622
|
+
},
|
|
623
|
+
(e) => (console.error("❌ 요청 인터셉터 에러:", e), Promise.reject(e))
|
|
624
|
+
);
|
|
625
|
+
Y.interceptors.response.use(
|
|
626
|
+
(e) => {
|
|
627
|
+
e.config.showLoading && !e.config.isPopup && Z.getState().hideLoading(), e.config.isPopup && J.getState().hideLoading();
|
|
628
|
+
let t = "UNKNOWN", r = "UNKNOWN";
|
|
629
|
+
const o = (/* @__PURE__ */ new Date()).getTime();
|
|
630
|
+
try {
|
|
631
|
+
e.config.trxCd && (t = e.config.trxCd), e.config.guid ? r = e.config.guid : e.data && e.data.header && e.data.header.trxCd ? (t = e.data.header.trxCd, r = e.data.header.guid || "UNKNOWN") : e.config.data && e.config.data.header ? (t = e.config.data.header.trxCd || "UNKNOWN", r = e.config.data.header.guid || "UNKNOWN") : e.config.params && e.config.params.header && (t = e.config.params.header.trxCd || "UNKNOWN", r = e.config.params.header.guid || "UNKNOWN");
|
|
632
|
+
} catch (m) {
|
|
633
|
+
console.warn("trxCd/guid 추출 실패:", m);
|
|
634
|
+
}
|
|
635
|
+
let a = 0;
|
|
636
|
+
return e.config.requestStartTime && (a = o - e.config.requestStartTime), console.log(
|
|
637
|
+
`✅ API 응답 성공 [거래코드: ${t} / GUID : ${r}] - (소요시간: ${a}ms)`
|
|
638
|
+
), e;
|
|
639
|
+
},
|
|
640
|
+
async (e) => {
|
|
641
|
+
if (e.config && e.config.showLoading && !e.config.isPopup && Z.getState().hideLoading(), e.config && e.config.isPopup && J.getState().hideLoading(), console.error("❌ API 응답 에러:", e), R && console.error("🚨 Error Details:", {
|
|
642
|
+
message: e.message,
|
|
643
|
+
status: e.response?.status,
|
|
644
|
+
statusText: e.response?.statusText,
|
|
645
|
+
data: e.response?.data,
|
|
646
|
+
config: {
|
|
647
|
+
url: e.config?.url,
|
|
648
|
+
method: e.config?.method,
|
|
649
|
+
baseURL: e.config?.baseURL
|
|
650
|
+
}
|
|
651
|
+
}), e.response?.status === 401) {
|
|
652
|
+
const t = localStorage.getItem("refreshToken");
|
|
653
|
+
if (t)
|
|
654
|
+
try {
|
|
655
|
+
const r = await X.post("/auth/refresh", {
|
|
656
|
+
refreshToken: t
|
|
657
|
+
});
|
|
658
|
+
if (r.data.accessToken) {
|
|
659
|
+
localStorage.setItem(
|
|
660
|
+
"accessToken",
|
|
661
|
+
r.data.accessToken
|
|
662
|
+
);
|
|
663
|
+
const o = e.config;
|
|
664
|
+
if (o)
|
|
665
|
+
return o.headers.Authorization = `Bearer ${r.data.accessToken}`, Y(o);
|
|
666
|
+
}
|
|
667
|
+
} catch {
|
|
668
|
+
localStorage.removeItem("accessToken"), localStorage.removeItem("refreshToken"), window.location.href = "/login";
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
return Promise.reject(e);
|
|
672
|
+
}
|
|
673
|
+
);
|
|
674
|
+
const E = async (e, t, r) => {
|
|
675
|
+
try {
|
|
676
|
+
const o = {
|
|
677
|
+
...B,
|
|
678
|
+
...r
|
|
679
|
+
}, { activeMenuId: a } = ie.getState();
|
|
680
|
+
if (k === null) {
|
|
681
|
+
const l = Date.now();
|
|
682
|
+
await oe();
|
|
683
|
+
const i = Date.now();
|
|
684
|
+
console.log(`[INFO] IP 조회 소요시간: ${i - l}ms`);
|
|
685
|
+
}
|
|
686
|
+
const m = {
|
|
687
|
+
method: o.method,
|
|
688
|
+
url: "/api/service",
|
|
689
|
+
timeout: o.timeout,
|
|
690
|
+
withCredentials: o.withCredentials,
|
|
691
|
+
showLoading: o.showLoading,
|
|
692
|
+
isPopup: o.isPopup
|
|
693
|
+
};
|
|
694
|
+
o.headers && (m.headers = o.headers);
|
|
695
|
+
const p = k || "unknown", x = __APP_CD__, h = __SYS_CD__, y = {
|
|
696
|
+
header: {
|
|
697
|
+
trxCd: e,
|
|
698
|
+
userInfo: A(),
|
|
699
|
+
clientIp: p,
|
|
700
|
+
// 클라이언트 IP 추가 (서버에서 재확인 권장)
|
|
701
|
+
domainId: "DEFAULT",
|
|
702
|
+
appCd: x,
|
|
703
|
+
sysCd: h,
|
|
704
|
+
screenId: a
|
|
705
|
+
},
|
|
706
|
+
// data: bxmEncrypt(JSON.stringify(data)),
|
|
707
|
+
data: t
|
|
708
|
+
};
|
|
709
|
+
o.method === "GET" ? m.params = y || o.params : (m.data = y || o.data, o.params && (m.params = o.params));
|
|
710
|
+
let d;
|
|
711
|
+
for (let l = 0; l <= (o.retryCount || 0); l++)
|
|
712
|
+
try {
|
|
713
|
+
const i = await Y(m);
|
|
714
|
+
if (i.data.header?.resCd == 0) {
|
|
715
|
+
for (const c in i.data)
|
|
716
|
+
if (c !== "header")
|
|
717
|
+
return i.data[c];
|
|
718
|
+
return {};
|
|
719
|
+
} else {
|
|
720
|
+
const c = i.data.header, n = c?.msgs?.basicMsg || "요청 처리 중 오류가 발생했습니다.", s = c?.msgs?.detailMsgs || n, u = c?.msgCd, f = c?.msgs?.type;
|
|
721
|
+
throw new $(n, s, i, u, f);
|
|
722
|
+
}
|
|
723
|
+
} catch (i) {
|
|
724
|
+
if (i.isAxiosError && i.response) {
|
|
725
|
+
const c = i, n = c.response, s = n.data, u = s?.header?.msgs?.basicMsg || c.message || // 실패 시 Axios 에러 메시지 사용
|
|
726
|
+
"서버에서 오류가 발생했습니다.", f = s?.header?.msgs?.detailMsgs || // 상세 메시지로 응답 본문 제공 (문자열이 아니면 JSON으로 변환)
|
|
727
|
+
(typeof n.data == "string" ? n.data : JSON.stringify(n.data)) || u, g = s?.header?.msgCd, w = s?.header?.msgs?.type;
|
|
728
|
+
d = new $(
|
|
729
|
+
u,
|
|
730
|
+
f,
|
|
731
|
+
n,
|
|
732
|
+
g,
|
|
733
|
+
w
|
|
734
|
+
);
|
|
735
|
+
} else
|
|
736
|
+
d = i;
|
|
737
|
+
if (i.isAxiosError && Oe(i) && l < (o.retryCount || 0)) {
|
|
738
|
+
await Ne(o.retryDelay || 1e3);
|
|
739
|
+
continue;
|
|
740
|
+
}
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
if (d) {
|
|
744
|
+
if (o.showError) {
|
|
745
|
+
const l = d instanceof $ ? d.message : "요청 처리 중 오류가 발생했습니다.", i = d instanceof $ ? d.msgCd : "요청 처리 중 오류가 발생했습니다.", c = d instanceof $ ? d.detailMsg : d.message, n = d instanceof $ ? d.errorType : "";
|
|
746
|
+
i?.startsWith("BXM") ? ee({
|
|
747
|
+
message: l,
|
|
748
|
+
description: c,
|
|
749
|
+
duration: 5
|
|
750
|
+
}) : n == "I" ? te(l, c, 5) : re(l, c, 5);
|
|
751
|
+
}
|
|
752
|
+
throw d;
|
|
753
|
+
}
|
|
754
|
+
throw new Error("알 수 없는 API 오류가 발생했습니다.");
|
|
755
|
+
} catch (o) {
|
|
756
|
+
throw console.error("callService 최종 에러:", o), o;
|
|
757
|
+
}
|
|
758
|
+
}, or = async (e, t, r, o) => {
|
|
759
|
+
try {
|
|
760
|
+
const a = {
|
|
761
|
+
...B,
|
|
762
|
+
...o
|
|
763
|
+
}, { activeMenuId: m } = ie.getState();
|
|
764
|
+
if (k === null) {
|
|
765
|
+
const i = Date.now();
|
|
766
|
+
await oe();
|
|
767
|
+
const c = Date.now();
|
|
768
|
+
console.log(`[INFO] IP 조회 소요시간: ${c - i}ms`);
|
|
769
|
+
}
|
|
770
|
+
const p = {
|
|
771
|
+
method: a.method,
|
|
772
|
+
url: "/api/" + e + "/service",
|
|
773
|
+
timeout: a.timeout,
|
|
774
|
+
withCredentials: a.withCredentials,
|
|
775
|
+
showLoading: a.showLoading,
|
|
776
|
+
isPopup: a.isPopup
|
|
777
|
+
};
|
|
778
|
+
a.headers && (p.headers = a.headers);
|
|
779
|
+
const x = k || "unknown", h = __APP_CD__, y = __SYS_CD__, d = {
|
|
780
|
+
header: {
|
|
781
|
+
trxCd: t,
|
|
782
|
+
userInfo: A(),
|
|
783
|
+
clientIp: x,
|
|
784
|
+
// 클라이언트 IP 추가 (서버에서 재확인 권장)
|
|
785
|
+
domainId: "DEFAULT",
|
|
786
|
+
appCd: h,
|
|
787
|
+
sysCd: y,
|
|
788
|
+
screenId: m
|
|
789
|
+
},
|
|
790
|
+
// data: bxmEncrypt(JSON.stringify(data)),
|
|
791
|
+
data: r
|
|
792
|
+
};
|
|
793
|
+
R && console.log("__BWG_LOCAL__ 테스트 입니다. ", R), a.method === "GET" ? p.params = d || a.params : (p.data = d || a.data, a.params && (p.params = a.params));
|
|
794
|
+
let l;
|
|
795
|
+
for (let i = 0; i <= (a.retryCount || 0); i++)
|
|
796
|
+
try {
|
|
797
|
+
const c = await Y(p);
|
|
798
|
+
if (c.data.header?.resCd == 0) {
|
|
799
|
+
for (const n in c.data)
|
|
800
|
+
if (n !== "header")
|
|
801
|
+
return c.data[n];
|
|
802
|
+
return {};
|
|
803
|
+
} else {
|
|
804
|
+
const n = c.data.header, s = n?.msgs?.basicMsg || "요청 처리 중 오류가 발생했습니다.", u = n?.msgs?.detailMsgs || s, f = n?.msgCd, g = n?.msgs?.type;
|
|
805
|
+
throw new $(s, u, c, f, g);
|
|
806
|
+
}
|
|
807
|
+
} catch (c) {
|
|
808
|
+
if (c.isAxiosError && c.response) {
|
|
809
|
+
const n = c, s = n.response, u = s.data, f = u?.header?.msgs?.basicMsg || n.message || // 실패 시 Axios 에러 메시지 사용
|
|
810
|
+
"서버에서 오류가 발생했습니다.", g = u?.header?.msgs?.detailMsgs || // 상세 메시지로 응답 본문 제공 (문자열이 아니면 JSON으로 변환)
|
|
811
|
+
(typeof s.data == "string" ? s.data : JSON.stringify(s.data)) || f, w = u?.header?.msgCd, v = u?.header?.msgs?.type;
|
|
812
|
+
l = new $(
|
|
813
|
+
f,
|
|
814
|
+
g,
|
|
815
|
+
s,
|
|
816
|
+
w,
|
|
817
|
+
v
|
|
818
|
+
);
|
|
819
|
+
} else
|
|
820
|
+
l = c;
|
|
821
|
+
if (c.isAxiosError && Oe(c) && i < (a.retryCount || 0)) {
|
|
822
|
+
await Ne(a.retryDelay || 1e3);
|
|
823
|
+
continue;
|
|
824
|
+
}
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
if (l) {
|
|
828
|
+
if (a.showError) {
|
|
829
|
+
const i = l instanceof $ ? l.message : "요청 처리 중 오류가 발생했습니다.", c = l instanceof $ ? l.msgCd : "요청 처리 중 오류가 발생했습니다.", n = l instanceof $ ? l.detailMsg : l.message, s = l instanceof $ ? l.errorType : "";
|
|
830
|
+
c?.startsWith("BXM") ? ee({
|
|
831
|
+
message: i,
|
|
832
|
+
description: n,
|
|
833
|
+
duration: 5
|
|
834
|
+
}) : s == "I" ? te(i, n, 5) : re(i, n, 5);
|
|
835
|
+
}
|
|
836
|
+
throw l;
|
|
837
|
+
}
|
|
838
|
+
throw new Error("알 수 없는 API 오류가 발생했습니다.");
|
|
839
|
+
} catch (a) {
|
|
840
|
+
throw console.error("callService 최종 에러:", a), a;
|
|
841
|
+
}
|
|
842
|
+
}, Oe = (e) => !e.response || e.response.status >= 500 && e.response.status < 600, Ne = (e) => new Promise((t) => setTimeout(t, e)), sr = (e, t, r) => E(e, t, { ...r, method: "GET" }), nr = (e, t, r) => E(e, t, { ...r, method: "POST" }), ar = (e, t, r) => E(e, t, { ...r, method: "PUT" }), ir = (e, t, r) => E(e, t, { ...r, method: "DELETE" }), cr = (e, t, r) => E(e, t, { ...r, method: "PATCH" }), ur = async (e, t, r) => {
|
|
843
|
+
try {
|
|
844
|
+
const o = await fetch("/api/permissions", {
|
|
845
|
+
method: "POST",
|
|
846
|
+
headers: {
|
|
847
|
+
"Content-Type": "application/json"
|
|
848
|
+
},
|
|
849
|
+
body: JSON.stringify({
|
|
850
|
+
userId: e,
|
|
851
|
+
menuId: t,
|
|
852
|
+
popupId: r
|
|
853
|
+
})
|
|
854
|
+
});
|
|
855
|
+
if (!o.ok)
|
|
856
|
+
throw new Error(`권한 확인 실패: ${o.status}`);
|
|
857
|
+
return await o.json();
|
|
858
|
+
} catch (o) {
|
|
859
|
+
throw console.error("권한 확인 서비스 오류:", o), o;
|
|
860
|
+
}
|
|
861
|
+
}, De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
862
|
+
__proto__: null,
|
|
863
|
+
ApiError: $,
|
|
864
|
+
apiDelete: ir,
|
|
865
|
+
apiGet: sr,
|
|
866
|
+
apiPatch: cr,
|
|
867
|
+
apiPost: nr,
|
|
868
|
+
apiPut: ar,
|
|
869
|
+
callService: E,
|
|
870
|
+
callService_SYSCD: or,
|
|
871
|
+
getClientIp: tr,
|
|
872
|
+
getPermissionService: ur,
|
|
873
|
+
setClientIp: oe,
|
|
874
|
+
verifyClientIp: rr
|
|
875
|
+
}, Symbol.toStringTag, { value: "Module" })), lr = (e, t, r = "text/plain") => {
|
|
876
|
+
const o = new Blob([e], { type: r }), a = URL.createObjectURL(o), m = document.createElement("a");
|
|
877
|
+
m.href = a, m.download = t, document.body.appendChild(m), m.click(), document.body.removeChild(m), URL.revokeObjectURL(a);
|
|
878
|
+
};
|
|
879
|
+
async function dr(e) {
|
|
880
|
+
try {
|
|
881
|
+
return await E("SCMFILE00101", {
|
|
882
|
+
crprCd: A()?.crprCd,
|
|
13
883
|
sysCd: __SYS_CD__,
|
|
14
|
-
fileKey:
|
|
15
|
-
}).then((
|
|
16
|
-
let
|
|
17
|
-
if (
|
|
884
|
+
fileKey: e
|
|
885
|
+
}).then((r) => {
|
|
886
|
+
let o;
|
|
887
|
+
if (r.sub && (o = r.sub[0]), console.log(r), console.log(o), !o.lgclFileNm)
|
|
18
888
|
throw console.error("논리파일명이 없습니다."), new Error("논리 파일명 누락");
|
|
19
|
-
if (!
|
|
889
|
+
if (!o.filePath)
|
|
20
890
|
throw console.error("파일 경로가 없습니다."), new Error("파일 경로 누락");
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
)}&logicalName=${encodeURIComponent(
|
|
24
|
-
return window.open(
|
|
891
|
+
const a = `api/download?filePath=${encodeURIComponent(
|
|
892
|
+
o.filePath
|
|
893
|
+
)}&logicalName=${encodeURIComponent(o.lgclFileNm)}`;
|
|
894
|
+
return window.open(a, "_blank"), { success: !0, message: "파일 다운로드 요청 성공" };
|
|
25
895
|
});
|
|
26
|
-
} catch (
|
|
27
|
-
throw console.error("downloadByFileKey 함수 실행 중 오류 발생:",
|
|
896
|
+
} catch (t) {
|
|
897
|
+
throw console.error("downloadByFileKey 함수 실행 중 오류 발생:", t), t;
|
|
28
898
|
}
|
|
29
899
|
}
|
|
30
|
-
const
|
|
900
|
+
const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31
901
|
__proto__: null,
|
|
32
|
-
downloadByFileKey:
|
|
33
|
-
downloadFile:
|
|
34
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
35
|
-
|
|
36
|
-
content:
|
|
37
|
-
duration:
|
|
902
|
+
downloadByFileKey: dr,
|
|
903
|
+
downloadFile: lr
|
|
904
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = (e, t = 3) => {
|
|
905
|
+
_.success({
|
|
906
|
+
content: e,
|
|
907
|
+
duration: t
|
|
38
908
|
});
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
content:
|
|
42
|
-
duration:
|
|
909
|
+
}, z = (e, t = 5) => {
|
|
910
|
+
_.error({
|
|
911
|
+
content: e,
|
|
912
|
+
duration: t
|
|
43
913
|
});
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
content:
|
|
47
|
-
duration:
|
|
914
|
+
}, mr = (e, t = 4) => {
|
|
915
|
+
_.warning({
|
|
916
|
+
content: e,
|
|
917
|
+
duration: t
|
|
48
918
|
});
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
content:
|
|
52
|
-
duration:
|
|
919
|
+
}, fr = (e, t = 3) => {
|
|
920
|
+
_.info({
|
|
921
|
+
content: e,
|
|
922
|
+
duration: t
|
|
53
923
|
});
|
|
54
|
-
},
|
|
55
|
-
content:
|
|
924
|
+
}, hr = (e = "처리중...") => _.loading({
|
|
925
|
+
content: e,
|
|
56
926
|
duration: 0
|
|
57
927
|
// 수동으로 닫을 때까지 유지
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
},
|
|
928
|
+
}), gr = (e) => {
|
|
929
|
+
_.destroy(e);
|
|
930
|
+
}, pr = () => {
|
|
931
|
+
_.destroy();
|
|
932
|
+
}, yr = (e, t = "처리 중 오류가 발생했습니다.") => {
|
|
933
|
+
const r = e?.response?.data?.message || e?.message || t;
|
|
934
|
+
z(r);
|
|
935
|
+
}, wr = (e = "저장") => {
|
|
936
|
+
_e(`${e}이 완료되었습니다.`);
|
|
937
|
+
}, Sr = (e = "저장") => {
|
|
938
|
+
z(`${e} 중 오류가 발생했습니다.`);
|
|
939
|
+
}, vr = (e) => {
|
|
940
|
+
z(`이미 사용중인 ${e}입니다.`);
|
|
941
|
+
}, xr = (e) => {
|
|
942
|
+
z(`${e}을(를) 입력해주세요.`);
|
|
943
|
+
}, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
74
944
|
__proto__: null,
|
|
75
|
-
closeAllMessages:
|
|
76
|
-
closeMessage:
|
|
77
|
-
showApiError:
|
|
78
|
-
showDuplicateError:
|
|
79
|
-
showError:
|
|
80
|
-
showInfo:
|
|
81
|
-
showLoading:
|
|
82
|
-
showRequiredError:
|
|
83
|
-
showSaveError:
|
|
84
|
-
showSaveSuccess:
|
|
85
|
-
showSuccess:
|
|
86
|
-
showWarning:
|
|
87
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
945
|
+
closeAllMessages: pr,
|
|
946
|
+
closeMessage: gr,
|
|
947
|
+
showApiError: yr,
|
|
948
|
+
showDuplicateError: vr,
|
|
949
|
+
showError: z,
|
|
950
|
+
showInfo: fr,
|
|
951
|
+
showLoading: hr,
|
|
952
|
+
showRequiredError: xr,
|
|
953
|
+
showSaveError: Sr,
|
|
954
|
+
showSaveSuccess: wr,
|
|
955
|
+
showSuccess: _e,
|
|
956
|
+
showWarning: mr
|
|
957
|
+
}, Symbol.toStringTag, { value: "Module" })), $r = {
|
|
958
|
+
/*************************************************************************************************************************************************
|
|
959
|
+
* RealGrid2 use
|
|
960
|
+
*************************************************************************************************************************************************/
|
|
961
|
+
// Ex) styleName : realFormat.left, Description : 정렬
|
|
962
|
+
left: "left",
|
|
963
|
+
near: "left",
|
|
964
|
+
right: "right",
|
|
965
|
+
far: "right",
|
|
966
|
+
center: "center",
|
|
967
|
+
number: "#,##0",
|
|
968
|
+
//정수형
|
|
969
|
+
number2: "#,##0.00",
|
|
970
|
+
// 뒷자리'0'은 고정을 의미, 고정 소수점2자리까지 입력
|
|
971
|
+
number3: "#,##0.##",
|
|
972
|
+
// 뒷자리'#'은 가변형을 의미, 가변 소수점2자리까지 입력
|
|
973
|
+
number4: "#,##0.000",
|
|
974
|
+
number5: "#,##0.#####",
|
|
975
|
+
editNumber: {
|
|
976
|
+
// Ex) editor : realFormat.editNumber, Description : 정수만 입력
|
|
977
|
+
type: "number",
|
|
978
|
+
editFormat: "#,##0"
|
|
979
|
+
},
|
|
980
|
+
editNumber2: {
|
|
981
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'0'은 고정을 의미, 고정 소수점2자리까지 입력
|
|
982
|
+
type: "number",
|
|
983
|
+
editFormat: "#,##0.00"
|
|
984
|
+
},
|
|
985
|
+
editNumber3: {
|
|
986
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'#'은 가변형을 의미, 가변 소수점2자리까지 입력
|
|
987
|
+
type: "number",
|
|
988
|
+
editFormat: "#,##0.##"
|
|
989
|
+
},
|
|
990
|
+
editNumber4: {
|
|
991
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'0'은 고정을 의미, 고정 소수점3자리까지 입력
|
|
992
|
+
type: "number",
|
|
993
|
+
editFormat: "#,##0.000"
|
|
994
|
+
},
|
|
995
|
+
editNumber5: {
|
|
996
|
+
// Ex) editor : realFormat.editNumber, Description : 뒷자리'#'은 가변형을 의미, 가변 소수점3자리까지 입력
|
|
997
|
+
type: "number",
|
|
998
|
+
editFormat: "#,##0.###"
|
|
999
|
+
},
|
|
1000
|
+
editYmd: {
|
|
1001
|
+
// Ex) editor : realFormat.editYmd, Description : 년월일 달력
|
|
1002
|
+
type: "date",
|
|
1003
|
+
datetimeFormat: "yyyyMMdd",
|
|
1004
|
+
autoclose: !0,
|
|
1005
|
+
maxDate: "99991231",
|
|
1006
|
+
minDate: "19000101",
|
|
1007
|
+
showButtons: !1,
|
|
1008
|
+
mask: {
|
|
1009
|
+
editMask: "9999-99-99"
|
|
1010
|
+
// LDH 추가(21.08.26, 하이픈 추가하여 복사붙여넣기 하여도 원하는 날짜가 복사되도록
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
editYm: {
|
|
1014
|
+
// Ex) editor : realFormat.editYm, Description : 년월 달력
|
|
1015
|
+
type: "btdate",
|
|
1016
|
+
datetimeFormat: "yyyyMM",
|
|
1017
|
+
btOptions: {
|
|
1018
|
+
startView: 1,
|
|
1019
|
+
// 최초 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
1020
|
+
minViewMode: 1,
|
|
1021
|
+
// 최종 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
1022
|
+
todayBtn: "linked",
|
|
1023
|
+
language: "ko",
|
|
1024
|
+
todayHighlight: !0,
|
|
1025
|
+
// today 기능
|
|
1026
|
+
autoclose: !0,
|
|
1027
|
+
mask: {
|
|
1028
|
+
editMask: "9999-99"
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
editYy: {
|
|
1033
|
+
// Ex) editor : realFormat.editYy, Description : 년 달력
|
|
1034
|
+
type: "btdate",
|
|
1035
|
+
datetimeFormat: "yyyy",
|
|
1036
|
+
btOptions: {
|
|
1037
|
+
startView: 2,
|
|
1038
|
+
// 최초 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
1039
|
+
minViewMode: 2,
|
|
1040
|
+
// 최종 선택 모드 지정 0 : 일자 , 1:월, 2:년도
|
|
1041
|
+
todayBtn: "linked",
|
|
1042
|
+
language: "ko",
|
|
1043
|
+
todayHighlight: !0,
|
|
1044
|
+
autoclose: !0
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
formatYmd: "([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",
|
|
1048
|
+
// Ex) textFormat : realFormat.formatYmd
|
|
1049
|
+
formatYm: "([0-9]{4})([0-9]{2});$1-$2",
|
|
1050
|
+
// Ex) textFormat : realFormat.formatYm
|
|
1051
|
+
formatYy: "([0-9]{4});$1",
|
|
1052
|
+
// Ex) textFormat : realFormat.formatYy
|
|
1053
|
+
lookup: {
|
|
1054
|
+
// Ex) editor : realFormat.lookup, Description : 콤보박스 dropDown
|
|
1055
|
+
type: "dropdown",
|
|
1056
|
+
domainOnly: !0
|
|
1057
|
+
},
|
|
1058
|
+
lookupReadOnly: {
|
|
1059
|
+
// Ex) editor : realFormat.lookup, Description : 콤보박스 dropDown
|
|
1060
|
+
type: "dropdown",
|
|
1061
|
+
readOnly: !0
|
|
1062
|
+
},
|
|
1063
|
+
maskCard: {
|
|
1064
|
+
// Ex) editor : realFormat.maskCard
|
|
1065
|
+
type: "text",
|
|
1066
|
+
mask: "0000-0000-0000-0000"
|
|
1067
|
+
},
|
|
1068
|
+
formatMaskCard: "([0-9]{4})([0-9]{4})([0-9]{4})([0-9]{4});$1-$2-$3-$4",
|
|
1069
|
+
// Ex) textFormat : realFormat.formatMaskCard
|
|
1070
|
+
maskBsnsNo: {
|
|
1071
|
+
// Ex) editor : realFormat.maskBsnsNo
|
|
1072
|
+
type: "text",
|
|
1073
|
+
mask: "000-00-00000"
|
|
1074
|
+
},
|
|
1075
|
+
formatMaskBsnsNo: "([0-9]{3})([0-9]{2})([0-9]{5});$1-$2-$3",
|
|
1076
|
+
// Ex) textFormat : realFormat.formatMaskBsnsNo
|
|
1077
|
+
maskRsdn: {
|
|
1078
|
+
// Ex) editor : realFormat.maskRsdn, Description : 필드 입력 시, 공백불가
|
|
1079
|
+
type: "text",
|
|
1080
|
+
mask: "000000-0000000"
|
|
1081
|
+
},
|
|
1082
|
+
formatMaskRsdn: "([0-9]{6})([0-9]{7});$1-$2",
|
|
1083
|
+
// Ex) textFormat : realFormat.formatMaskRsdn
|
|
1084
|
+
formatMaskRsdn2: "([0-9]{6})([0-9])([0-9]{6});$1-$2******",
|
|
1085
|
+
// Ex) textFormat : realFormat.formatMaskRsdn
|
|
1086
|
+
maskRsdn2: {
|
|
1087
|
+
// Ex) editor : realFormat.maskRsdn2, Description : 필드 입력 시, 공백허용
|
|
1088
|
+
type: "text",
|
|
1089
|
+
mask: "999999-9999999"
|
|
1090
|
+
},
|
|
1091
|
+
maskYmd: {
|
|
1092
|
+
// Ex) editor : realFormat.maskYmd
|
|
1093
|
+
type: "text",
|
|
1094
|
+
mask: "0000-00-00"
|
|
1095
|
+
},
|
|
1096
|
+
formatMaskYmd: "([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",
|
|
1097
|
+
// Ex) textFormat : realFormat.formatMaskYmd
|
|
1098
|
+
maskYm: {
|
|
1099
|
+
// Ex) editor : realFormat.maskYm
|
|
1100
|
+
type: "text",
|
|
1101
|
+
mask: "0000-00"
|
|
1102
|
+
},
|
|
1103
|
+
formatMaskYm: "([0-9]{4})([0-9]{2});$1-$2",
|
|
1104
|
+
// Ex) textFormat : realFormat.formatMaskYm
|
|
1105
|
+
maskYmdHms: {
|
|
1106
|
+
// Ex) textFormat : realFormat.maskYmdHms, Description : 년월일 시분초
|
|
1107
|
+
type: "text",
|
|
1108
|
+
mask: "0000-00-00 00:00:00"
|
|
1109
|
+
},
|
|
1110
|
+
formatYmdHms: "([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2});$1-$2-$3 $4:$5:$6",
|
|
1111
|
+
// Ex) textFormat : realFormat.formatYmdHms
|
|
1112
|
+
maskHm: {
|
|
1113
|
+
// Ex) textFormat : realFormat.maskHm, Description : 시분
|
|
1114
|
+
type: "text",
|
|
1115
|
+
mask: "00:00"
|
|
1116
|
+
},
|
|
1117
|
+
formatHm: "([0-9]{2})([0-9]{2});$1:$2",
|
|
1118
|
+
// Ex) textFormat : realFormat.formatHm
|
|
1119
|
+
maskHms: {
|
|
1120
|
+
// Ex) textFormat : realFormat.maskHms, Description : 시분초
|
|
1121
|
+
type: "text",
|
|
1122
|
+
mask: "00:00:00"
|
|
1123
|
+
},
|
|
1124
|
+
formatHms: "([0-9]{2})([0-9]{2})([0-9]{2});$1:$2:$3",
|
|
1125
|
+
// Ex) textFormat : realFormat.formatHms
|
|
1126
|
+
checkY: {
|
|
1127
|
+
// Ex) renderer : realFormat.checkY , Description : 체크박스
|
|
1128
|
+
type: "check",
|
|
1129
|
+
trueValues: "Y",
|
|
1130
|
+
falseValues: "N"
|
|
1131
|
+
},
|
|
1132
|
+
checkN: {
|
|
1133
|
+
// Ex) renderer : realFormat.checkN
|
|
1134
|
+
type: "check",
|
|
1135
|
+
trueValues: "N",
|
|
1136
|
+
falseValues: "Y"
|
|
1137
|
+
},
|
|
1138
|
+
check1: {
|
|
1139
|
+
// Ex) renderer : realFormat.check1
|
|
1140
|
+
type: "check",
|
|
1141
|
+
trueValues: "1",
|
|
1142
|
+
falseValues: "0"
|
|
1143
|
+
},
|
|
1144
|
+
checkTrue: {
|
|
1145
|
+
// Ex) renderer : realFormat.checkTrue
|
|
1146
|
+
type: "check",
|
|
1147
|
+
trueValues: "true",
|
|
1148
|
+
falseValues: "false"
|
|
1149
|
+
},
|
|
1150
|
+
checkT: {
|
|
1151
|
+
// Ex) renderer : realFormat.checkT
|
|
1152
|
+
type: "check",
|
|
1153
|
+
trueValues: "T",
|
|
1154
|
+
falseValues: "F"
|
|
1155
|
+
},
|
|
1156
|
+
checkYdisabled: {
|
|
1157
|
+
// Ex) renderer : realFormat.checkYdisabled , Description : 수정불가
|
|
1158
|
+
type: "check",
|
|
1159
|
+
editable: !1,
|
|
1160
|
+
trueValues: "Y",
|
|
1161
|
+
falseValues: "N"
|
|
1162
|
+
},
|
|
1163
|
+
checkNdisabled: {
|
|
1164
|
+
// Ex) renderer : realFormat.checkNdisabled , Description : 수정불가
|
|
1165
|
+
type: "check",
|
|
1166
|
+
editable: !1,
|
|
1167
|
+
trueValues: "N",
|
|
1168
|
+
falseValues: "Y"
|
|
1169
|
+
},
|
|
1170
|
+
check1disabled: {
|
|
1171
|
+
// Ex) renderer : realFormat.check1disabled , Description : 수정불가
|
|
1172
|
+
type: "check",
|
|
1173
|
+
editable: !1,
|
|
1174
|
+
trueValues: "1",
|
|
1175
|
+
falseValues: "0"
|
|
1176
|
+
},
|
|
1177
|
+
count: {
|
|
1178
|
+
// Ex) footer : realFormat.count, Description : 기본 footer Format
|
|
1179
|
+
suffix: " 건",
|
|
1180
|
+
expression: "count"
|
|
1181
|
+
},
|
|
1182
|
+
count2: {
|
|
1183
|
+
// Ex) footer : realFormat.count2
|
|
1184
|
+
prefix: "총 ",
|
|
1185
|
+
suffix: " 건",
|
|
1186
|
+
expression: "count"
|
|
1187
|
+
},
|
|
1188
|
+
datacount: {
|
|
1189
|
+
// Ex) footer : realFormat.datacount, Description : 값이 지정되어 잇는 데이터 개수 (null 이 아닌)
|
|
1190
|
+
suffix: " 건",
|
|
1191
|
+
expression: "datacount"
|
|
1192
|
+
},
|
|
1193
|
+
sum: {
|
|
1194
|
+
// Ex) renderer : realFormat.sum
|
|
1195
|
+
numberFormat: "#,##0",
|
|
1196
|
+
expression: "sum"
|
|
1197
|
+
},
|
|
1198
|
+
sum2: {
|
|
1199
|
+
// Ex) renderer : realFormat.sum2
|
|
1200
|
+
numberFormat: "#,##0.##",
|
|
1201
|
+
expression: "sum"
|
|
1202
|
+
},
|
|
1203
|
+
sum3: {
|
|
1204
|
+
// Ex) renderer : realFormat.sum2
|
|
1205
|
+
numberFormat: "#,##0.00",
|
|
1206
|
+
expression: "sum"
|
|
1207
|
+
},
|
|
1208
|
+
avg: {
|
|
1209
|
+
// Ex) renderer : realFormat.avg
|
|
1210
|
+
numberFormat: "#,##0",
|
|
1211
|
+
expression: "avg"
|
|
1212
|
+
},
|
|
1213
|
+
avg2: {
|
|
1214
|
+
// Ex) renderer : realFormat.avg2
|
|
1215
|
+
numberFormat: "#,##0.##",
|
|
1216
|
+
expression: "avg"
|
|
1217
|
+
},
|
|
1218
|
+
avg4: {
|
|
1219
|
+
// Ex) renderer : realFormat.avg4
|
|
1220
|
+
numberFormat: "#,##0.####",
|
|
1221
|
+
expression: "avg"
|
|
1222
|
+
},
|
|
1223
|
+
min: {
|
|
1224
|
+
// Ex) renderer : realFormat.min
|
|
1225
|
+
expression: "min"
|
|
1226
|
+
},
|
|
1227
|
+
max: {
|
|
1228
|
+
// Ex) renderer : realFormat.max
|
|
1229
|
+
expression: "max"
|
|
1230
|
+
},
|
|
1231
|
+
/*************************************************************************************************************************************************
|
|
1232
|
+
* RealGrid2 deprecated
|
|
1233
|
+
*************************************************************************************************************************************************/
|
|
1234
|
+
date: {
|
|
1235
|
+
type: "date",
|
|
1236
|
+
mask: {
|
|
1237
|
+
editMask: "9999-99-99",
|
|
1238
|
+
placeHolder: "____-__-__",
|
|
1239
|
+
includedFormat: !0
|
|
1240
|
+
},
|
|
1241
|
+
datetimeFormat: "yyyy-MM-dd",
|
|
1242
|
+
textAlignment: "center",
|
|
1243
|
+
yearNavigation: !0
|
|
1244
|
+
},
|
|
1245
|
+
dateStyle: {
|
|
1246
|
+
datetimeFormat: "yyyy-MM-dd",
|
|
1247
|
+
textAlignment: "center"
|
|
1248
|
+
},
|
|
1249
|
+
maskDateFull: {
|
|
1250
|
+
type: "text",
|
|
1251
|
+
mask: "0000-00-00 00:00:00",
|
|
1252
|
+
textAlignment: "center"
|
|
1253
|
+
},
|
|
1254
|
+
bg_gray01: {
|
|
1255
|
+
background: "#cdcdcd"
|
|
1256
|
+
}
|
|
1257
|
+
}, Or = De, Nr = ve, Dr = Te, Ur = Ue, _r = Ee, Er = ke, Ir = de, Pr = pe, Lr = {
|
|
1258
|
+
...De,
|
|
1259
|
+
...ve,
|
|
1260
|
+
...Te,
|
|
1261
|
+
...Ue,
|
|
1262
|
+
...Ee,
|
|
1263
|
+
...ke,
|
|
1264
|
+
...de,
|
|
1265
|
+
...pe,
|
|
1266
|
+
realFormat: $r
|
|
97
1267
|
};
|
|
98
1268
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
1269
|
+
$ as ApiError,
|
|
1270
|
+
st as THEME_COOKIE_NAME,
|
|
1271
|
+
ir as apiDelete,
|
|
1272
|
+
sr as apiGet,
|
|
1273
|
+
cr as apiPatch,
|
|
1274
|
+
nr as apiPost,
|
|
1275
|
+
ar as apiPut,
|
|
1276
|
+
Or as apiUtils,
|
|
1277
|
+
Mt as arrAverage,
|
|
1278
|
+
Tt as arrCount,
|
|
1279
|
+
$t as arrMax,
|
|
1280
|
+
Ct as arrMin,
|
|
1281
|
+
kt as arrReverse,
|
|
1282
|
+
bt as arrSum,
|
|
1283
|
+
xt as arrUnique,
|
|
1284
|
+
Lr as bwgUtils,
|
|
1285
|
+
E as callService,
|
|
1286
|
+
or as callService_SYSCD,
|
|
1287
|
+
Dt as clamp,
|
|
1288
|
+
Pt as clearSessionStorage,
|
|
1289
|
+
pr as closeAllMessages,
|
|
1290
|
+
gr as closeMessage,
|
|
1291
|
+
er as closeNotification,
|
|
1292
|
+
Nr as commonUtils,
|
|
1293
|
+
Gt as configureEnvUtils,
|
|
1294
|
+
pt as copyToClipboard,
|
|
1295
|
+
gt as debounce,
|
|
1296
|
+
Lr as default,
|
|
1297
|
+
Ft as deleteCookie,
|
|
1298
|
+
Qt as destroyNotifications,
|
|
1299
|
+
dr as downloadByFileKey,
|
|
1300
|
+
lr as downloadFile,
|
|
1301
|
+
Ot as duplicates,
|
|
1302
|
+
Wt as encryptSha256,
|
|
1303
|
+
Dr as envUtils,
|
|
1304
|
+
Ur as fileUtils,
|
|
1305
|
+
vt as generateRandomColor,
|
|
1306
|
+
we as generateRandomString,
|
|
1307
|
+
Se as generateUID,
|
|
1308
|
+
le as getAllServiceCodes,
|
|
1309
|
+
tr as getClientIp,
|
|
1310
|
+
At as getCookie,
|
|
1311
|
+
Le as getCrprCd,
|
|
1312
|
+
qt as getCurrentDate,
|
|
1313
|
+
Kt as getCurrentDateString,
|
|
1314
|
+
Be as getDepartmentInfo,
|
|
1315
|
+
q as getDeviceType,
|
|
1316
|
+
Ve as getDisplayName,
|
|
1317
|
+
he as getDprtCd,
|
|
1318
|
+
ge as getDprtNm,
|
|
1319
|
+
Fe as getEmplNo,
|
|
1320
|
+
Zt as getEnvCode,
|
|
1321
|
+
ur as getPermissionService,
|
|
1322
|
+
W as getRoleList,
|
|
1323
|
+
ue as getServiceCode,
|
|
1324
|
+
Et as getSessionStorage,
|
|
1325
|
+
Ae as getUserDvsn,
|
|
1326
|
+
me as getUserId,
|
|
1327
|
+
A as getUserInfo,
|
|
1328
|
+
fe as getUserNm,
|
|
1329
|
+
ze as hasAllRoles,
|
|
1330
|
+
Ye as hasAnyRole,
|
|
1331
|
+
Re as hasRole,
|
|
1332
|
+
je as hasUserInfo,
|
|
1333
|
+
lt as isArray,
|
|
1334
|
+
it as isBoolean,
|
|
1335
|
+
St as isDesktop,
|
|
1336
|
+
Me as isDev,
|
|
1337
|
+
ye as isEmpty,
|
|
1338
|
+
K as isEmptyArray,
|
|
1339
|
+
ct as isFunction,
|
|
1340
|
+
R as isLocal,
|
|
1341
|
+
He as isLoggedIn,
|
|
1342
|
+
yt as isMobile,
|
|
1343
|
+
dt as isNull,
|
|
1344
|
+
ft as isNullOrUndefined,
|
|
1345
|
+
at as isNumber,
|
|
1346
|
+
ut as isObject,
|
|
1347
|
+
be as isProd,
|
|
1348
|
+
Rt as isSafeEmpty,
|
|
1349
|
+
nt as isString,
|
|
1350
|
+
wt as isTablet,
|
|
1351
|
+
mt as isUndefined,
|
|
1352
|
+
zt as isValidEmail,
|
|
1353
|
+
Ht as isValidUrl,
|
|
1354
|
+
Pe as logServiceCodeConfig,
|
|
1355
|
+
_r as messageUtils,
|
|
1356
|
+
ee as notiBwgError,
|
|
1357
|
+
Xt as notiError,
|
|
1358
|
+
te as notiInfo,
|
|
1359
|
+
Jt as notiSuccess,
|
|
1360
|
+
re as notiWarning,
|
|
1361
|
+
D as notificationService,
|
|
1362
|
+
Er as notificationUtils,
|
|
1363
|
+
jt as padLeft,
|
|
1364
|
+
Vt as padRight,
|
|
1365
|
+
Nt as random,
|
|
1366
|
+
$r as realFormat,
|
|
1367
|
+
It as removeSessionStorage,
|
|
1368
|
+
Ut as round,
|
|
1369
|
+
Ir as serviceUtils,
|
|
1370
|
+
oe as setClientIp,
|
|
1371
|
+
Lt as setCookie,
|
|
1372
|
+
Ie as setServiceCodeOverrides,
|
|
1373
|
+
_t as setSessionStorage,
|
|
1374
|
+
yr as showApiError,
|
|
1375
|
+
vr as showDuplicateError,
|
|
1376
|
+
z as showError,
|
|
1377
|
+
fr as showInfo,
|
|
1378
|
+
hr as showLoading,
|
|
1379
|
+
xr as showRequiredError,
|
|
1380
|
+
Sr as showSaveError,
|
|
1381
|
+
wr as showSaveSuccess,
|
|
1382
|
+
_e as showSuccess,
|
|
1383
|
+
mr as showWarning,
|
|
1384
|
+
ht as throttle,
|
|
1385
|
+
Yt as toCamelCase,
|
|
1386
|
+
Pr as userUtils,
|
|
1387
|
+
rr as verifyClientIp
|
|
218
1388
|
};
|
|
219
|
-
//# sourceMappingURL=index.js.map
|