@bwg-ui/core 1.1.17 → 1.1.18
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/{BwgLargeUploader-CBwGaHh6.js → BwgLargeUploader-D6plJv5D.js} +123 -123
- package/dist/chunks/BwgLargeUploader-D6plJv5D.js.map +1 -0
- package/dist/chunks/BwgLargeUploader-LMj6KXhK.cjs +3 -0
- package/dist/chunks/BwgLargeUploader-LMj6KXhK.cjs.map +1 -0
- package/dist/chunks/{SSOHandler-DoidypM2.cjs → SSOHandler-DXnV_f_M.cjs} +29 -29
- package/dist/chunks/{SSOHandler-DoidypM2.cjs.map → SSOHandler-DXnV_f_M.cjs.map} +1 -1
- package/dist/chunks/{SSOHandler-BfRH51hZ.js → SSOHandler-yNjxYbHn.js} +53 -54
- package/dist/chunks/{SSOHandler-BfRH51hZ.js.map → SSOHandler-yNjxYbHn.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-CjdCL1e9.js → SearchBoxContext-CO1AyqH4.js} +5 -5
- package/dist/chunks/{SearchBoxContext-CjdCL1e9.js.map → SearchBoxContext-CO1AyqH4.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-CNoEc4uu.cjs → SearchBoxContext-Cinu3U4b.cjs} +2 -2
- package/dist/chunks/{SearchBoxContext-CNoEc4uu.cjs.map → SearchBoxContext-Cinu3U4b.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-DUjKBgcl.cjs → ViewContainer-BH7t9T4d.cjs} +3 -3
- package/dist/chunks/{ViewContainer-DUjKBgcl.cjs.map → ViewContainer-BH7t9T4d.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-Du3IzFYo.js → ViewContainer-CMbN_tYW.js} +121 -81
- package/dist/chunks/{ViewContainer-Du3IzFYo.js.map → ViewContainer-CMbN_tYW.js.map} +1 -1
- package/dist/chunks/{apiUtils-IzgDPO-1.js → apiUtils-BJRcT3Tm.js} +431 -393
- package/dist/chunks/apiUtils-BJRcT3Tm.js.map +1 -0
- package/dist/chunks/apiUtils-DEnQeWNI.cjs +3 -0
- package/dist/chunks/apiUtils-DEnQeWNI.cjs.map +1 -0
- package/dist/chunks/{codeStore-Dsjc4uXs.js → codeStore-C0f5xZ_m.js} +2 -2
- package/dist/chunks/{codeStore-Dsjc4uXs.js.map → codeStore-C0f5xZ_m.js.map} +1 -1
- package/dist/chunks/{codeStore-HfLmmkAL.cjs → codeStore-DTtOQhfW.cjs} +2 -2
- package/dist/chunks/{codeStore-HfLmmkAL.cjs.map → codeStore-DTtOQhfW.cjs.map} +1 -1
- package/dist/chunks/{favoriteStore-C0o6Sj55.js → favoriteStore-Drhx0843.js} +2 -3
- package/dist/chunks/{favoriteStore-C0o6Sj55.js.map → favoriteStore-Drhx0843.js.map} +1 -1
- package/dist/chunks/favoriteStore-Dyp89Kew.cjs +2 -0
- package/dist/chunks/{favoriteStore-DOz2rAJu.cjs.map → favoriteStore-Dyp89Kew.cjs.map} +1 -1
- package/dist/chunks/{popupStore-D6b6b5-T.js → popupStore-D1rxKTyJ.js} +5 -5
- package/dist/chunks/{popupStore-D6b6b5-T.js.map → popupStore-D1rxKTyJ.js.map} +1 -1
- package/dist/chunks/{popupStore-Cm5utmtA.cjs → popupStore-DGMxbQ--.cjs} +2 -2
- package/dist/chunks/{popupStore-Cm5utmtA.cjs.map → popupStore-DGMxbQ--.cjs.map} +1 -1
- package/dist/chunks/{usePopup-Dm-UyUbV.js → usePopup-C1h8V04_.js} +3 -3
- package/dist/chunks/{usePopup-Dm-UyUbV.js.map → usePopup-C1h8V04_.js.map} +1 -1
- package/dist/chunks/{usePopup-BG24CocH.cjs → usePopup-CdpFYf3m.cjs} +2 -2
- package/dist/chunks/{usePopup-BG24CocH.cjs.map → usePopup-CdpFYf3m.cjs.map} +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/BwgDatePicker.d.ts +2 -2
- package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
- package/dist/components/core/BwgRangePicker.d.ts +2 -2
- package/dist/components/core/BwgRangePicker.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/components/layout/ViewContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +127 -128
- package/dist/index.js.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +9 -9
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +104 -106
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/BwgLargeUploader-CBwGaHh6.js.map +0 -1
- package/dist/chunks/BwgLargeUploader-CVdp_rxx.cjs +0 -3
- package/dist/chunks/BwgLargeUploader-CVdp_rxx.cjs.map +0 -1
- package/dist/chunks/apiUtils-DlsnkCO4.cjs +0 -3
- package/dist/chunks/apiUtils-DlsnkCO4.cjs.map +0 -1
- package/dist/chunks/apiUtils-IzgDPO-1.js.map +0 -1
- package/dist/chunks/envUtils-C4Yv5Nfg.cjs +0 -2
- package/dist/chunks/envUtils-C4Yv5Nfg.cjs.map +0 -1
- package/dist/chunks/envUtils-Ck_DT0s_.js +0 -43
- package/dist/chunks/envUtils-Ck_DT0s_.js.map +0 -1
- package/dist/chunks/favoriteStore-DOz2rAJu.cjs +0 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import te from "axios";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { message as G, notification as O } from "antd";
|
|
2
|
+
import U from "dayjs";
|
|
3
|
+
import { message as K, notification as O } from "antd";
|
|
5
4
|
import { create as z } from "zustand";
|
|
6
|
-
var
|
|
5
|
+
var Ir = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
6
|
function re(e) {
|
|
8
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
8
|
}
|
|
@@ -23,7 +22,7 @@ const de = {
|
|
|
23
22
|
// 즐겨찾기 관리
|
|
24
23
|
};
|
|
25
24
|
let A = {};
|
|
26
|
-
function
|
|
25
|
+
function $e(e) {
|
|
27
26
|
A = e, console.log("🔧 Provider 서비스코드 오버라이드 설정:", e);
|
|
28
27
|
}
|
|
29
28
|
function ne(e) {
|
|
@@ -35,7 +34,7 @@ function fe() {
|
|
|
35
34
|
e[r] = ne(r);
|
|
36
35
|
return e;
|
|
37
36
|
}
|
|
38
|
-
function
|
|
37
|
+
function Oe() {
|
|
39
38
|
console.log("🔧 bwg-core 서비스코드 설정:"), console.log("📋 Provider 설정 > 기본값 순서로 확인");
|
|
40
39
|
const e = fe();
|
|
41
40
|
for (const [r, t] of Object.entries(e)) {
|
|
@@ -43,15 +42,15 @@ function _e() {
|
|
|
43
42
|
console.log(` ${r}: ${t} (${n})`);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
const
|
|
45
|
+
const br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
47
46
|
__proto__: null,
|
|
48
47
|
getAllServiceCodes: fe,
|
|
49
48
|
getServiceCode: ne,
|
|
50
|
-
logServiceCodeConfig:
|
|
51
|
-
setServiceCodeOverrides:
|
|
49
|
+
logServiceCodeConfig: Oe,
|
|
50
|
+
setServiceCodeOverrides: $e
|
|
52
51
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
53
52
|
import.meta.env.DEV;
|
|
54
|
-
function
|
|
53
|
+
function Ue(e, r) {
|
|
55
54
|
let t;
|
|
56
55
|
try {
|
|
57
56
|
t = e();
|
|
@@ -61,19 +60,19 @@ function xe(e, r) {
|
|
|
61
60
|
return {
|
|
62
61
|
getItem: (a) => {
|
|
63
62
|
var o;
|
|
64
|
-
const i = (
|
|
63
|
+
const i = (u) => u === null ? null : JSON.parse(u, void 0), m = (o = t.getItem(a)) != null ? o : null;
|
|
65
64
|
return m instanceof Promise ? m.then(i) : i(m);
|
|
66
65
|
},
|
|
67
66
|
setItem: (a, o) => t.setItem(a, JSON.stringify(o, void 0)),
|
|
68
67
|
removeItem: (a) => t.removeItem(a)
|
|
69
68
|
};
|
|
70
69
|
}
|
|
71
|
-
const
|
|
70
|
+
const Z = (e) => (r) => {
|
|
72
71
|
try {
|
|
73
72
|
const t = e(r);
|
|
74
73
|
return t instanceof Promise ? t : {
|
|
75
74
|
then(n) {
|
|
76
|
-
return
|
|
75
|
+
return Z(n)(t);
|
|
77
76
|
},
|
|
78
77
|
catch(n) {
|
|
79
78
|
return this;
|
|
@@ -85,13 +84,13 @@ const X = (e) => (r) => {
|
|
|
85
84
|
return this;
|
|
86
85
|
},
|
|
87
86
|
catch(n) {
|
|
88
|
-
return
|
|
87
|
+
return Z(n)(t);
|
|
89
88
|
}
|
|
90
89
|
};
|
|
91
90
|
}
|
|
92
|
-
},
|
|
91
|
+
}, Le = (e, r) => (t, n, a) => {
|
|
93
92
|
let o = {
|
|
94
|
-
storage:
|
|
93
|
+
storage: Ue(() => localStorage),
|
|
95
94
|
partialize: (s) => s,
|
|
96
95
|
version: 0,
|
|
97
96
|
merge: (s, d) => ({
|
|
@@ -100,7 +99,7 @@ const X = (e) => (r) => {
|
|
|
100
99
|
}),
|
|
101
100
|
...r
|
|
102
101
|
}, i = !1;
|
|
103
|
-
const m = /* @__PURE__ */ new Set(),
|
|
102
|
+
const m = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
|
104
103
|
let p = o.storage;
|
|
105
104
|
if (!p)
|
|
106
105
|
return e(
|
|
@@ -120,22 +119,22 @@ const X = (e) => (r) => {
|
|
|
120
119
|
});
|
|
121
120
|
}, S = a.setState;
|
|
122
121
|
a.setState = (s, d) => (S(s, d), g());
|
|
123
|
-
const
|
|
122
|
+
const c = e(
|
|
124
123
|
(...s) => (t(...s), g()),
|
|
125
124
|
n,
|
|
126
125
|
a
|
|
127
126
|
);
|
|
128
|
-
a.getInitialState = () =>
|
|
127
|
+
a.getInitialState = () => c;
|
|
129
128
|
let f;
|
|
130
129
|
const l = () => {
|
|
131
130
|
var s, d;
|
|
132
131
|
if (!p) return;
|
|
133
132
|
i = !1, m.forEach((h) => {
|
|
134
133
|
var v;
|
|
135
|
-
return h((v = n()) != null ? v :
|
|
134
|
+
return h((v = n()) != null ? v : c);
|
|
136
135
|
});
|
|
137
|
-
const y = ((d = o.onRehydrateStorage) == null ? void 0 : d.call(o, (s = n()) != null ? s :
|
|
138
|
-
return
|
|
136
|
+
const y = ((d = o.onRehydrateStorage) == null ? void 0 : d.call(o, (s = n()) != null ? s : c)) || void 0;
|
|
137
|
+
return Z(p.getItem.bind(p))(o.name).then((h) => {
|
|
139
138
|
if (h)
|
|
140
139
|
if (typeof h.version == "number" && h.version !== o.version) {
|
|
141
140
|
if (o.migrate) {
|
|
@@ -156,11 +155,11 @@ const X = (e) => (r) => {
|
|
|
156
155
|
const [T, M] = h;
|
|
157
156
|
if (f = o.merge(
|
|
158
157
|
M,
|
|
159
|
-
(v = n()) != null ? v :
|
|
158
|
+
(v = n()) != null ? v : c
|
|
160
159
|
), t(f, !0), T)
|
|
161
160
|
return g();
|
|
162
161
|
}).then(() => {
|
|
163
|
-
y?.(f, void 0), f = n(), i = !0,
|
|
162
|
+
y?.(f, void 0), f = n(), i = !0, u.forEach((h) => h(f));
|
|
164
163
|
}).catch((h) => {
|
|
165
164
|
y?.(void 0, h);
|
|
166
165
|
});
|
|
@@ -181,12 +180,12 @@ const X = (e) => (r) => {
|
|
|
181
180
|
onHydrate: (s) => (m.add(s), () => {
|
|
182
181
|
m.delete(s);
|
|
183
182
|
}),
|
|
184
|
-
onFinishHydration: (s) => (
|
|
185
|
-
|
|
183
|
+
onFinishHydration: (s) => (u.add(s), () => {
|
|
184
|
+
u.delete(s);
|
|
186
185
|
})
|
|
187
|
-
}, o.skipHydration || l(), f ||
|
|
188
|
-
},
|
|
189
|
-
|
|
186
|
+
}, o.skipHydration || l(), f || c;
|
|
187
|
+
}, Pe = Le, C = z()(
|
|
188
|
+
Pe(
|
|
190
189
|
(e, r) => ({
|
|
191
190
|
user: null,
|
|
192
191
|
isLoggedIn: !1,
|
|
@@ -214,52 +213,85 @@ const X = (e) => (r) => {
|
|
|
214
213
|
// 저장할 상태만 선택
|
|
215
214
|
}
|
|
216
215
|
)
|
|
217
|
-
),
|
|
216
|
+
), Ee = () => C.getState().user?.crprCd || null, me = () => C.getState().user?.userId || null, he = () => C.getState().user?.userNm || null, Ae = () => C.getState().user?.userDvsn || null, ke = () => C.getState().user?.emplNo || null, ge = () => C.getState().user?.dprtCd || null, pe = () => C.getState().user?.dprtNm || null, B = () => C.getState().user?.roleList || null, Ye = (e) => {
|
|
218
217
|
const r = B();
|
|
219
218
|
return r ? r.includes(e) : !1;
|
|
220
|
-
},
|
|
219
|
+
}, Fe = (e) => {
|
|
221
220
|
const r = B();
|
|
222
221
|
return r ? e.some((t) => r.includes(t)) : !1;
|
|
223
|
-
},
|
|
222
|
+
}, Re = (e) => {
|
|
224
223
|
const r = B();
|
|
225
224
|
return r ? e.every((t) => r.includes(t)) : !1;
|
|
226
|
-
},
|
|
225
|
+
}, je = () => C.getState().isLoggedIn, se = () => C.getState().user, He = () => se() !== null, ze = () => {
|
|
227
226
|
const e = he(), r = me();
|
|
228
227
|
return e || r || null;
|
|
229
|
-
},
|
|
228
|
+
}, Be = () => {
|
|
230
229
|
const e = pe(), r = ge();
|
|
231
230
|
return e || (r ? String(r) : null);
|
|
232
|
-
},
|
|
231
|
+
}, wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
233
232
|
__proto__: null,
|
|
234
|
-
getCrprCd:
|
|
235
|
-
getDepartmentInfo:
|
|
236
|
-
getDisplayName:
|
|
233
|
+
getCrprCd: Ee,
|
|
234
|
+
getDepartmentInfo: Be,
|
|
235
|
+
getDisplayName: ze,
|
|
237
236
|
getDprtCd: ge,
|
|
238
237
|
getDprtNm: pe,
|
|
239
|
-
getEmplNo:
|
|
238
|
+
getEmplNo: ke,
|
|
240
239
|
getRoleList: B,
|
|
241
|
-
getUserDvsn:
|
|
240
|
+
getUserDvsn: Ae,
|
|
242
241
|
getUserId: me,
|
|
243
242
|
getUserInfo: se,
|
|
244
243
|
getUserNm: he,
|
|
245
|
-
hasAllRoles:
|
|
246
|
-
hasAnyRole:
|
|
247
|
-
hasRole:
|
|
248
|
-
hasUserInfo:
|
|
249
|
-
isLoggedIn:
|
|
244
|
+
hasAllRoles: Re,
|
|
245
|
+
hasAnyRole: Fe,
|
|
246
|
+
hasRole: Ye,
|
|
247
|
+
hasUserInfo: He,
|
|
248
|
+
isLoggedIn: je
|
|
249
|
+
}, Symbol.toStringTag, { value: "Module" })), k = (() => {
|
|
250
|
+
try {
|
|
251
|
+
if (import.meta.env.DEV)
|
|
252
|
+
return !0;
|
|
253
|
+
} catch {
|
|
254
|
+
}
|
|
255
|
+
return !1;
|
|
256
|
+
})();
|
|
257
|
+
let ve = [], ye = [];
|
|
258
|
+
function qe(e) {
|
|
259
|
+
e.devHosts && (ve = e.devHosts), e.prodHosts && (ye = e.prodHosts);
|
|
260
|
+
}
|
|
261
|
+
function Me() {
|
|
262
|
+
if (typeof window < "u" && window.location)
|
|
263
|
+
return window.location.hostname;
|
|
264
|
+
}
|
|
265
|
+
const Se = (() => {
|
|
266
|
+
const e = Me();
|
|
267
|
+
return !!(e && ve.includes(e));
|
|
268
|
+
})(), Te = (() => {
|
|
269
|
+
const e = Me();
|
|
270
|
+
return !!(e && ye.includes(e));
|
|
271
|
+
})();
|
|
272
|
+
function We() {
|
|
273
|
+
return k ? "X" : Se ? "D" : Te ? "P" : "X";
|
|
274
|
+
}
|
|
275
|
+
const _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
276
|
+
__proto__: null,
|
|
277
|
+
configureEnvUtils: qe,
|
|
278
|
+
getEnvCode: We,
|
|
279
|
+
isDev: Se,
|
|
280
|
+
isLocal: k,
|
|
281
|
+
isProd: Te
|
|
250
282
|
}, Symbol.toStringTag, { value: "Module" })), V = {
|
|
251
283
|
DEFAULT_PRNT_GBCD: 1
|
|
252
|
-
},
|
|
253
|
-
let
|
|
254
|
-
const
|
|
284
|
+
}, Ge = (e) => e && typeof e == "object" && typeof e.menuId == "string" && typeof e.menuNm == "string" && typeof e.crprCd == "string", oe = (e) => Array.isArray(e) && e.every(Ge);
|
|
285
|
+
let J = [], ae = [];
|
|
286
|
+
const Ke = (e) => {
|
|
255
287
|
if (e && typeof e == "object") {
|
|
256
288
|
const r = e;
|
|
257
289
|
if (r.menus && oe(r.menus)) return r.menus;
|
|
258
290
|
if (oe(e)) return e;
|
|
259
291
|
}
|
|
260
292
|
return console.warn("⚠️ 메뉴 응답이 비어있거나 예상과 다릅니다."), [];
|
|
261
|
-
},
|
|
262
|
-
if (
|
|
293
|
+
}, Je = (e, r) => !!r && e.crprCd === r.crprCd && e.userId === r.userId && (e.prntGbcd ?? V.DEFAULT_PRNT_GBCD) === (r.prntGbcd ?? V.DEFAULT_PRNT_GBCD), Xe = (e) => {
|
|
294
|
+
if (J.length === e.length && J.every(
|
|
263
295
|
(o, i) => o.menuId === e[i]?.menuId && o.menuPrntId === e[i]?.menuPrntId
|
|
264
296
|
))
|
|
265
297
|
return ae;
|
|
@@ -273,8 +305,8 @@ const je = (e) => {
|
|
|
273
305
|
...i,
|
|
274
306
|
children: i.children && i.children.length ? n(i.children) : void 0
|
|
275
307
|
})), a = n(t);
|
|
276
|
-
return
|
|
277
|
-
},
|
|
308
|
+
return J = [...e], ae = a, a;
|
|
309
|
+
}, Ze = z((e, r) => ({
|
|
278
310
|
// 📊 초기 상태값
|
|
279
311
|
menuList: [],
|
|
280
312
|
flatMenuList: [],
|
|
@@ -289,17 +321,17 @@ const je = (e) => {
|
|
|
289
321
|
userId: n,
|
|
290
322
|
prntGbcd: a ?? V.DEFAULT_PRNT_GBCD
|
|
291
323
|
};
|
|
292
|
-
if (
|
|
324
|
+
if (Je(o, r()._lastFetchParams)) {
|
|
293
325
|
console.log("✅ 중복 fetch 차단", o);
|
|
294
326
|
return;
|
|
295
327
|
}
|
|
296
328
|
e({ isLoading: !0, error: null, _lastFetchParams: o });
|
|
297
329
|
try {
|
|
298
|
-
const i = await
|
|
330
|
+
const i = await L(ne("AUTH_MENU"), o), m = Ke(i), u = Xe(m);
|
|
299
331
|
e({
|
|
300
332
|
flatMenuList: m,
|
|
301
333
|
// 평면 리스트 저장
|
|
302
|
-
menuList:
|
|
334
|
+
menuList: u,
|
|
303
335
|
// 트리 구조 저장
|
|
304
336
|
isLoading: !1,
|
|
305
337
|
error: null
|
|
@@ -324,34 +356,34 @@ const je = (e) => {
|
|
|
324
356
|
const { flatMenuList: n } = r();
|
|
325
357
|
return n.find((a) => a.menuId === t) ?? null;
|
|
326
358
|
}
|
|
327
|
-
})),
|
|
359
|
+
})), X = {
|
|
328
360
|
MAX_TABS: 15
|
|
329
|
-
},
|
|
361
|
+
}, Ve = z((e, r) => ({
|
|
330
362
|
// 📊 초기 상태값
|
|
331
363
|
activeMenuId: null,
|
|
332
364
|
activeMenuItem: null,
|
|
333
365
|
activeDetailItem: null,
|
|
334
366
|
tabs: [],
|
|
335
367
|
sidebarCollapsed: !1,
|
|
336
|
-
maxTabs:
|
|
368
|
+
maxTabs: X.MAX_TABS,
|
|
337
369
|
tabProtectFlag: {},
|
|
338
370
|
tabParams: {},
|
|
339
371
|
componentLabelMap: {},
|
|
340
372
|
// 🔧 탭 추가 (메뉴 아이템 객체로)
|
|
341
373
|
// 사이드바에서 메뉴 클릭 시 호출되는 메인 함수
|
|
342
374
|
openTabFromMenu: (t, n) => {
|
|
343
|
-
const { tabs: a, activeMenuId: o } = r(), i = a.find((
|
|
375
|
+
const { tabs: a, activeMenuId: o } = r(), i = a.find((u) => u.key === t.menuId), m = a.find((u) => u.key === t.menuId);
|
|
344
376
|
if (i)
|
|
345
|
-
m != null ? (e({ activeMenuId: t.menuId, activeMenuItem: t }), r().setTabParams(t.menuId, n || {}), t?.prsnInfoYn === "Y" && r().setProtectFlagForKey(t.menuId)) :
|
|
377
|
+
m != null ? (e({ activeMenuId: t.menuId, activeMenuItem: t }), r().setTabParams(t.menuId, n || {}), t?.prsnInfoYn === "Y" && r().setProtectFlagForKey(t.menuId)) : K.warning("유효하지 않은 메뉴정보입니다.");
|
|
346
378
|
else {
|
|
347
|
-
if (a.length >
|
|
348
|
-
console.warn("❌ 최대 탭 개수를 초과했습니다."),
|
|
349
|
-
`최대 ${
|
|
379
|
+
if (a.length > X.MAX_TABS) {
|
|
380
|
+
console.warn("❌ 최대 탭 개수를 초과했습니다."), K.warning(
|
|
381
|
+
`최대 ${X.MAX_TABS}개의 탭만 열 수 있습니다.
|
|
350
382
|
기존 탭을 닫고 다시 시도해주세요.`
|
|
351
383
|
);
|
|
352
384
|
return;
|
|
353
385
|
}
|
|
354
|
-
const
|
|
386
|
+
const u = {
|
|
355
387
|
key: t.menuId,
|
|
356
388
|
label: t.menuNm,
|
|
357
389
|
gubun: "M",
|
|
@@ -359,7 +391,7 @@ const je = (e) => {
|
|
|
359
391
|
closable: !0
|
|
360
392
|
};
|
|
361
393
|
e({
|
|
362
|
-
tabs: [...a,
|
|
394
|
+
tabs: [...a, u],
|
|
363
395
|
// 탭 목록에 추가
|
|
364
396
|
activeMenuId: t.menuId,
|
|
365
397
|
// 새 탭을 활성화
|
|
@@ -371,15 +403,15 @@ const je = (e) => {
|
|
|
371
403
|
// 🔧 탭 추가 (메뉴 ID로)
|
|
372
404
|
// URL 파라미터로 메뉴 열기 시 사용 (예: ?menuId=CM000301)
|
|
373
405
|
openTabByMenuId: (t, n) => {
|
|
374
|
-
const a =
|
|
375
|
-
a ? r().openTabFromMenu(a, n) :
|
|
406
|
+
const a = Ze.getState().findMenuById(t);
|
|
407
|
+
a ? r().openTabFromMenu(a, n) : K.warning("메뉴 ID를 찾을 수 없습니다.");
|
|
376
408
|
},
|
|
377
409
|
openDetailView: (t, n, a) => {
|
|
378
410
|
const { tabs: o, activeMenuId: i } = r();
|
|
379
|
-
if (o.find((
|
|
411
|
+
if (o.find((u) => u.key === t.viewId))
|
|
380
412
|
r().focusTab(t.viewId);
|
|
381
413
|
else {
|
|
382
|
-
const
|
|
414
|
+
const u = {
|
|
383
415
|
key: t.viewId,
|
|
384
416
|
label: t.viewLabel,
|
|
385
417
|
gubun: "C",
|
|
@@ -391,7 +423,7 @@ const je = (e) => {
|
|
|
391
423
|
closable: !0
|
|
392
424
|
};
|
|
393
425
|
e({
|
|
394
|
-
tabs: [...o,
|
|
426
|
+
tabs: [...o, u],
|
|
395
427
|
// 탭 목록에 추가
|
|
396
428
|
activeMenuId: t.viewId,
|
|
397
429
|
// 새 탭을 활성화
|
|
@@ -407,7 +439,7 @@ const je = (e) => {
|
|
|
407
439
|
const o = n.filter((m) => m.key !== t);
|
|
408
440
|
let i = a;
|
|
409
441
|
if (a === t) {
|
|
410
|
-
const m = n.findIndex((
|
|
442
|
+
const m = n.findIndex((u) => u.key === t);
|
|
411
443
|
i = o.length ? o[Math.min(m, o.length - 1)]?.key ?? null : null;
|
|
412
444
|
}
|
|
413
445
|
e({
|
|
@@ -462,7 +494,7 @@ const je = (e) => {
|
|
|
462
494
|
// 탭 파라미터 설정
|
|
463
495
|
setTabParams: (t, n) => e((a) => {
|
|
464
496
|
const o = a.tabParams[t] || {}, i = { ...n || {} };
|
|
465
|
-
return Object.keys(o).length === Object.keys(i).length && Object.keys(i).every((
|
|
497
|
+
return Object.keys(o).length === Object.keys(i).length && Object.keys(i).every((u) => o[u] === i[u]) ? a : {
|
|
466
498
|
tabParams: { ...a.tabParams, [t]: i }
|
|
467
499
|
};
|
|
468
500
|
}),
|
|
@@ -480,12 +512,12 @@ const je = (e) => {
|
|
|
480
512
|
return { requestCount: t, loading: t > 0 };
|
|
481
513
|
})
|
|
482
514
|
}));
|
|
483
|
-
var
|
|
484
|
-
function
|
|
515
|
+
var Y = { exports: {} }, Qe = Y.exports, ie;
|
|
516
|
+
function et() {
|
|
485
517
|
return ie || (ie = 1, (function(e, r) {
|
|
486
518
|
(function(t, n) {
|
|
487
|
-
e.exports = n(
|
|
488
|
-
})(
|
|
519
|
+
e.exports = n(U);
|
|
520
|
+
})(Qe, (function(t) {
|
|
489
521
|
function n(i) {
|
|
490
522
|
return i && typeof i == "object" && "default" in i ? i : { default: i };
|
|
491
523
|
}
|
|
@@ -496,25 +528,25 @@ function Ge() {
|
|
|
496
528
|
}, relativeTime: { future: "%s 후", past: "%s 전", s: "몇 초", m: "1분", mm: "%d분", h: "한 시간", hh: "%d시간", d: "하루", dd: "%d일", M: "한 달", MM: "%d달", y: "일 년", yy: "%d년" } };
|
|
497
529
|
return a.default.locale(o, null, !0), o;
|
|
498
530
|
}));
|
|
499
|
-
})(
|
|
531
|
+
})(Y)), Y.exports;
|
|
500
532
|
}
|
|
501
|
-
|
|
502
|
-
var
|
|
503
|
-
function
|
|
504
|
-
return
|
|
533
|
+
et();
|
|
534
|
+
var F = { exports: {} }, tt = F.exports, ue;
|
|
535
|
+
function rt() {
|
|
536
|
+
return ue || (ue = 1, (function(e, r) {
|
|
505
537
|
(function(t, n) {
|
|
506
538
|
e.exports = n();
|
|
507
|
-
})(
|
|
539
|
+
})(tt, (function() {
|
|
508
540
|
return function(t, n, a) {
|
|
509
541
|
t = t || {};
|
|
510
542
|
var o = n.prototype, i = { 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" };
|
|
511
|
-
function m(p, g, S,
|
|
512
|
-
return o.fromToBase(p, g, S,
|
|
543
|
+
function m(p, g, S, c) {
|
|
544
|
+
return o.fromToBase(p, g, S, c);
|
|
513
545
|
}
|
|
514
|
-
a.en.relativeTime = i, o.fromToBase = function(p, g, S,
|
|
546
|
+
a.en.relativeTime = i, o.fromToBase = function(p, g, S, c, f) {
|
|
515
547
|
for (var l, s, d, y = S.$locale().relativeTime || i, h = t.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" }], v = h.length, T = 0; T < v; T += 1) {
|
|
516
548
|
var M = h[T];
|
|
517
|
-
M.d && (l =
|
|
549
|
+
M.d && (l = c ? a(p).diff(S, M.d, !0) : S.diff(p, M.d, !0));
|
|
518
550
|
var I = (t.rounding || Math.round)(Math.abs(l));
|
|
519
551
|
if (d = l > 0, I <= M.r || !M.r) {
|
|
520
552
|
I <= 1 && T > 0 && (M = h[T - 1]);
|
|
@@ -531,116 +563,116 @@ function Je() {
|
|
|
531
563
|
}, o.from = function(p, g) {
|
|
532
564
|
return m(p, g, this);
|
|
533
565
|
};
|
|
534
|
-
var
|
|
566
|
+
var u = function(p) {
|
|
535
567
|
return p.$u ? a.utc() : a();
|
|
536
568
|
};
|
|
537
569
|
o.toNow = function(p) {
|
|
538
|
-
return this.to(
|
|
570
|
+
return this.to(u(this), p);
|
|
539
571
|
}, o.fromNow = function(p) {
|
|
540
|
-
return this.from(
|
|
572
|
+
return this.from(u(this), p);
|
|
541
573
|
};
|
|
542
574
|
};
|
|
543
575
|
}));
|
|
544
|
-
})(
|
|
576
|
+
})(F)), F.exports;
|
|
545
577
|
}
|
|
546
|
-
var
|
|
547
|
-
const
|
|
548
|
-
var
|
|
549
|
-
function
|
|
550
|
-
return
|
|
578
|
+
var nt = rt();
|
|
579
|
+
const st = /* @__PURE__ */ re(nt);
|
|
580
|
+
var R = { exports: {} }, ot = R.exports, ce;
|
|
581
|
+
function at() {
|
|
582
|
+
return ce || (ce = 1, (function(e, r) {
|
|
551
583
|
(function(t, n) {
|
|
552
584
|
e.exports = n();
|
|
553
|
-
})(
|
|
585
|
+
})(ot, (function() {
|
|
554
586
|
var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
|
|
555
587
|
return function(a, o, i) {
|
|
556
|
-
var m,
|
|
588
|
+
var m, u = function(c, f, l) {
|
|
557
589
|
l === void 0 && (l = {});
|
|
558
|
-
var s = new Date(
|
|
590
|
+
var s = new Date(c), d = (function(y, h) {
|
|
559
591
|
h === void 0 && (h = {});
|
|
560
592
|
var v = h.timeZoneName || "short", T = y + "|" + v, M = n[T];
|
|
561
593
|
return M || (M = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: y, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: v }), n[T] = M), M;
|
|
562
594
|
})(f, l);
|
|
563
595
|
return d.formatToParts(s);
|
|
564
|
-
}, p = function(
|
|
565
|
-
for (var l = c
|
|
596
|
+
}, p = function(c, f) {
|
|
597
|
+
for (var l = u(c, f), s = [], d = 0; d < l.length; d += 1) {
|
|
566
598
|
var y = l[d], h = y.type, v = y.value, T = t[h];
|
|
567
599
|
T >= 0 && (s[T] = parseInt(v, 10));
|
|
568
600
|
}
|
|
569
|
-
var M = s[3], I = M === 24 ? 0 : M, b = s[0] + "-" + s[1] + "-" + s[2] + " " + I + ":" + s[4] + ":" + s[5] + ":000", w = +
|
|
601
|
+
var M = s[3], I = M === 24 ? 0 : M, b = s[0] + "-" + s[1] + "-" + s[2] + " " + I + ":" + s[4] + ":" + s[5] + ":000", w = +c;
|
|
570
602
|
return (i.utc(b).valueOf() - (w -= w % 1e3)) / 6e4;
|
|
571
603
|
}, g = o.prototype;
|
|
572
|
-
g.tz = function(
|
|
573
|
-
|
|
574
|
-
var l, s = this.utcOffset(), d = this.toDate(), y = d.toLocaleString("en-US", { timeZone:
|
|
604
|
+
g.tz = function(c, f) {
|
|
605
|
+
c === void 0 && (c = m);
|
|
606
|
+
var l, s = this.utcOffset(), d = this.toDate(), y = d.toLocaleString("en-US", { timeZone: c }), h = Math.round((d - new Date(y)) / 1e3 / 60), v = 15 * -Math.round(d.getTimezoneOffset() / 15) - h;
|
|
575
607
|
if (!Number(v)) l = this.utcOffset(0, f);
|
|
576
608
|
else if (l = i(y, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(v, !0), f) {
|
|
577
609
|
var T = l.utcOffset();
|
|
578
610
|
l = l.add(s - T, "minute");
|
|
579
611
|
}
|
|
580
|
-
return l.$x.$timezone =
|
|
581
|
-
}, g.offsetName = function(
|
|
582
|
-
var f = this.$x.$timezone || i.tz.guess(), l =
|
|
612
|
+
return l.$x.$timezone = c, l;
|
|
613
|
+
}, g.offsetName = function(c) {
|
|
614
|
+
var f = this.$x.$timezone || i.tz.guess(), l = u(this.valueOf(), f, { timeZoneName: c }).find((function(s) {
|
|
583
615
|
return s.type.toLowerCase() === "timezonename";
|
|
584
616
|
}));
|
|
585
617
|
return l && l.value;
|
|
586
618
|
};
|
|
587
619
|
var S = g.startOf;
|
|
588
|
-
g.startOf = function(
|
|
589
|
-
if (!this.$x || !this.$x.$timezone) return S.call(this,
|
|
620
|
+
g.startOf = function(c, f) {
|
|
621
|
+
if (!this.$x || !this.$x.$timezone) return S.call(this, c, f);
|
|
590
622
|
var l = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
591
|
-
return S.call(l,
|
|
592
|
-
}, i.tz = function(
|
|
623
|
+
return S.call(l, c, f).tz(this.$x.$timezone, !0);
|
|
624
|
+
}, i.tz = function(c, f, l) {
|
|
593
625
|
var s = l && f, d = l || f || m, y = p(+i(), d);
|
|
594
|
-
if (typeof
|
|
626
|
+
if (typeof c != "string") return i(c).tz(d);
|
|
595
627
|
var h = (function(I, b, w) {
|
|
596
628
|
var D = I - 60 * b * 1e3, P = p(D, w);
|
|
597
629
|
if (b === P) return [D, b];
|
|
598
|
-
var
|
|
599
|
-
return P ===
|
|
600
|
-
})(i.utc(
|
|
630
|
+
var G = p(D -= 60 * (P - b) * 1e3, w);
|
|
631
|
+
return P === G ? [D, P] : [I - 60 * Math.min(P, G) * 1e3, Math.max(P, G)];
|
|
632
|
+
})(i.utc(c, s).valueOf(), y, d), v = h[0], T = h[1], M = i(v).utcOffset(T);
|
|
601
633
|
return M.$x.$timezone = d, M;
|
|
602
634
|
}, i.tz.guess = function() {
|
|
603
635
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
604
|
-
}, i.tz.setDefault = function(
|
|
605
|
-
m =
|
|
636
|
+
}, i.tz.setDefault = function(c) {
|
|
637
|
+
m = c;
|
|
606
638
|
};
|
|
607
639
|
};
|
|
608
640
|
}));
|
|
609
|
-
})(
|
|
641
|
+
})(R)), R.exports;
|
|
610
642
|
}
|
|
611
|
-
var
|
|
612
|
-
const
|
|
613
|
-
var
|
|
614
|
-
function
|
|
643
|
+
var it = at();
|
|
644
|
+
const ut = /* @__PURE__ */ re(it);
|
|
645
|
+
var j = { exports: {} }, ct = j.exports, le;
|
|
646
|
+
function lt() {
|
|
615
647
|
return le || (le = 1, (function(e, r) {
|
|
616
648
|
(function(t, n) {
|
|
617
649
|
e.exports = n();
|
|
618
|
-
})(
|
|
650
|
+
})(ct, (function() {
|
|
619
651
|
var t = "minute", n = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
|
|
620
652
|
return function(o, i, m) {
|
|
621
|
-
var
|
|
653
|
+
var u = i.prototype;
|
|
622
654
|
m.utc = function(s) {
|
|
623
655
|
var d = { date: s, utc: !0, args: arguments };
|
|
624
656
|
return new i(d);
|
|
625
|
-
},
|
|
657
|
+
}, u.utc = function(s) {
|
|
626
658
|
var d = m(this.toDate(), { locale: this.$L, utc: !0 });
|
|
627
659
|
return s ? d.add(this.utcOffset(), t) : d;
|
|
628
|
-
},
|
|
660
|
+
}, u.local = function() {
|
|
629
661
|
return m(this.toDate(), { locale: this.$L, utc: !1 });
|
|
630
662
|
};
|
|
631
|
-
var p =
|
|
632
|
-
|
|
663
|
+
var p = u.parse;
|
|
664
|
+
u.parse = function(s) {
|
|
633
665
|
s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), p.call(this, s);
|
|
634
666
|
};
|
|
635
|
-
var g =
|
|
636
|
-
|
|
667
|
+
var g = u.init;
|
|
668
|
+
u.init = function() {
|
|
637
669
|
if (this.$u) {
|
|
638
670
|
var s = this.$d;
|
|
639
671
|
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();
|
|
640
672
|
} else g.call(this);
|
|
641
673
|
};
|
|
642
|
-
var S =
|
|
643
|
-
|
|
674
|
+
var S = u.utcOffset;
|
|
675
|
+
u.utcOffset = function(s, d) {
|
|
644
676
|
var y = this.$utils().u;
|
|
645
677
|
if (y(s)) return this.$u ? 0 : y(this.$offset) ? S.call(this) : this.$offset;
|
|
646
678
|
if (typeof s == "string" && (s = (function(M) {
|
|
@@ -657,98 +689,98 @@ function nt() {
|
|
|
657
689
|
var T = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
658
690
|
return (v = this.local().add(h + T, t)).$offset = h, v.$x.$localOffset = T, v;
|
|
659
691
|
};
|
|
660
|
-
var
|
|
661
|
-
|
|
692
|
+
var c = u.format;
|
|
693
|
+
u.format = function(s) {
|
|
662
694
|
var d = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
663
|
-
return
|
|
664
|
-
},
|
|
695
|
+
return c.call(this, d);
|
|
696
|
+
}, u.valueOf = function() {
|
|
665
697
|
var s = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
666
698
|
return this.$d.valueOf() - 6e4 * s;
|
|
667
|
-
},
|
|
699
|
+
}, u.isUTC = function() {
|
|
668
700
|
return !!this.$u;
|
|
669
|
-
},
|
|
701
|
+
}, u.toISOString = function() {
|
|
670
702
|
return this.toDate().toISOString();
|
|
671
|
-
},
|
|
703
|
+
}, u.toString = function() {
|
|
672
704
|
return this.toDate().toUTCString();
|
|
673
705
|
};
|
|
674
|
-
var f =
|
|
675
|
-
|
|
706
|
+
var f = u.toDate;
|
|
707
|
+
u.toDate = function(s) {
|
|
676
708
|
return s === "s" && this.$offset ? m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : f.call(this);
|
|
677
709
|
};
|
|
678
|
-
var l =
|
|
679
|
-
|
|
710
|
+
var l = u.diff;
|
|
711
|
+
u.diff = function(s, d, y) {
|
|
680
712
|
if (s && this.$u === s.$u) return l.call(this, s, d, y);
|
|
681
713
|
var h = this.local(), v = m(s).local();
|
|
682
714
|
return l.call(h, v, d, y);
|
|
683
715
|
};
|
|
684
716
|
};
|
|
685
717
|
}));
|
|
686
|
-
})(
|
|
718
|
+
})(j)), j.exports;
|
|
687
719
|
}
|
|
688
|
-
var
|
|
689
|
-
const
|
|
720
|
+
var dt = lt();
|
|
721
|
+
const ft = /* @__PURE__ */ re(dt), mt = "ui_theme", ht = (e) => typeof e == "string", gt = (e) => typeof e == "number" && !isNaN(e), pt = (e) => typeof e == "boolean", vt = (e) => typeof e == "function", yt = (e) => e !== null && typeof e == "object", Mt = (e) => Array.isArray(e), St = (e) => e === null, Tt = (e) => e === void 0, It = (e) => e == null, bt = (e, r) => {
|
|
690
722
|
let t = 0;
|
|
691
723
|
return (...n) => {
|
|
692
724
|
const a = Date.now();
|
|
693
725
|
a - t >= r && (t = a, e(...n));
|
|
694
726
|
};
|
|
695
|
-
},
|
|
727
|
+
}, wt = (e, r) => {
|
|
696
728
|
let t;
|
|
697
729
|
return (...n) => {
|
|
698
730
|
clearTimeout(t), t = setTimeout(() => e(...n), r);
|
|
699
731
|
};
|
|
700
|
-
},
|
|
732
|
+
}, _t = async (e) => {
|
|
701
733
|
try {
|
|
702
734
|
return await navigator.clipboard.writeText(e), !0;
|
|
703
735
|
} catch (r) {
|
|
704
736
|
return console.error("Error copying to clipboard:", r), !1;
|
|
705
737
|
}
|
|
706
|
-
},
|
|
738
|
+
}, q = () => {
|
|
707
739
|
const e = window.innerWidth;
|
|
708
740
|
return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
|
|
709
|
-
},
|
|
710
|
-
if (!
|
|
741
|
+
}, Ct = () => q() === "mobile", xt = () => q() === "tablet", Dt = () => q() === "desktop", Nt = () => "#" + Math.floor(Math.random() * 16777215).toString(16), W = (e) => !e || e.length === 0, $t = (e) => [...new Set(e)], Ot = (e) => {
|
|
742
|
+
if (!W(e))
|
|
711
743
|
return Math.max(...e);
|
|
712
|
-
},
|
|
713
|
-
if (!
|
|
744
|
+
}, Ut = (e) => {
|
|
745
|
+
if (!W(e))
|
|
714
746
|
return Math.min(...e);
|
|
715
|
-
},
|
|
716
|
-
if (!
|
|
747
|
+
}, Lt = (e) => {
|
|
748
|
+
if (!W(e))
|
|
717
749
|
return e.reduce((r, t) => r + t, 0) / e.length;
|
|
718
|
-
},
|
|
750
|
+
}, Pt = (e) => e.reduce((r, t) => r + t, 0), Et = (e, r) => e.filter(r).length, At = (e) => [...e].reverse(), kt = (e) => {
|
|
719
751
|
const r = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
|
|
720
752
|
return e.forEach((n) => {
|
|
721
753
|
r.has(n) ? t.add(n) : r.add(n);
|
|
722
754
|
}), Array.from(t);
|
|
723
|
-
},
|
|
755
|
+
}, Yt = (e, r) => Math.random() * (r - e) + e, Ft = (e, r, t) => Math.min(Math.max(e, r), t), Rt = (e, r = 0) => Math.round(e * Math.pow(10, r)) / Math.pow(10, r), jt = (e, r) => {
|
|
724
756
|
try {
|
|
725
757
|
sessionStorage.setItem(e, JSON.stringify(r));
|
|
726
758
|
} catch (t) {
|
|
727
759
|
console.error("Error saving to sessionStorage:", t);
|
|
728
760
|
}
|
|
729
|
-
},
|
|
761
|
+
}, Ht = (e, r) => {
|
|
730
762
|
try {
|
|
731
763
|
const t = sessionStorage.getItem(e);
|
|
732
764
|
return t ? JSON.parse(t) : r || null;
|
|
733
765
|
} catch (t) {
|
|
734
766
|
return console.error("Error reading from sessionStorage:", t), r || null;
|
|
735
767
|
}
|
|
736
|
-
},
|
|
768
|
+
}, zt = (e) => {
|
|
737
769
|
try {
|
|
738
770
|
sessionStorage.removeItem(e);
|
|
739
771
|
} catch (r) {
|
|
740
772
|
console.error("Error removing from sessionStorage:", r);
|
|
741
773
|
}
|
|
742
|
-
},
|
|
774
|
+
}, Bt = () => {
|
|
743
775
|
try {
|
|
744
776
|
sessionStorage.clear();
|
|
745
777
|
} catch (e) {
|
|
746
778
|
console.error("Error clearing sessionStorage:", e);
|
|
747
779
|
}
|
|
748
|
-
},
|
|
780
|
+
}, qt = (e, r, t = 30) => {
|
|
749
781
|
const n = /* @__PURE__ */ new Date();
|
|
750
782
|
n.setTime(n.getTime() + t * 24 * 60 * 60 * 1e3), document.cookie = `${e}=${r};expires=${n.toUTCString()};path=/`;
|
|
751
|
-
},
|
|
783
|
+
}, Wt = (e) => {
|
|
752
784
|
const r = e + "=", t = document.cookie.split(";");
|
|
753
785
|
for (let n = 0; n < t.length; n++) {
|
|
754
786
|
let a = t[n];
|
|
@@ -756,88 +788,88 @@ const ot = /* @__PURE__ */ re(st), at = "ui_theme", it = (e) => typeof e == "str
|
|
|
756
788
|
if (a.indexOf(r) === 0) return a.substring(r.length, a.length);
|
|
757
789
|
}
|
|
758
790
|
return null;
|
|
759
|
-
},
|
|
791
|
+
}, Gt = (e) => {
|
|
760
792
|
document.cookie = `${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`;
|
|
761
|
-
},
|
|
793
|
+
}, Ie = (e) => typeof e != "string" ? !e : e.trim().length === 0, Kt = (e, r) => Ie(e) ? r : e || "", Jt = (e) => e.replace(/-([a-z])/g, (r) => r[1].toUpperCase()), Xt = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), Zt = (e) => {
|
|
762
794
|
try {
|
|
763
795
|
return new URL(e), !0;
|
|
764
796
|
} catch {
|
|
765
797
|
return !1;
|
|
766
798
|
}
|
|
767
|
-
},
|
|
799
|
+
}, Vt = (e, r, t = " ") => e.padStart(r, t), Qt = (e, r, t = " ") => e.padEnd(r, t), be = (e, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") => {
|
|
768
800
|
let t = "";
|
|
769
801
|
for (let n = 0; n < e; n++)
|
|
770
802
|
t += r.charAt(Math.floor(Math.random() * r.length));
|
|
771
803
|
return t;
|
|
772
|
-
},
|
|
804
|
+
}, er = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
773
805
|
const r = Math.random() * 16 | 0;
|
|
774
806
|
return (e === "x" ? r : r & 3 | 8).toString(16);
|
|
775
|
-
}),
|
|
776
|
-
const t =
|
|
777
|
-
return e >= 32 ? t +
|
|
807
|
+
}), we = (e = 32) => {
|
|
808
|
+
const t = er().replace(/-/g, "");
|
|
809
|
+
return e >= 32 ? t + be(e - 32, "0123456789abcdef") : t.substring(0, e);
|
|
778
810
|
};
|
|
779
|
-
async function
|
|
811
|
+
async function tr(e) {
|
|
780
812
|
const r = new TextEncoder().encode(e), t = await crypto.subtle.digest("SHA-256", r);
|
|
781
813
|
let n = "";
|
|
782
814
|
for (const a of new Uint8Array(t)) n += String.fromCharCode(a);
|
|
783
815
|
return btoa(n);
|
|
784
816
|
}
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
const
|
|
817
|
+
U.extend(st);
|
|
818
|
+
U.extend(ft);
|
|
819
|
+
U.extend(ut);
|
|
820
|
+
U.locale("ko");
|
|
821
|
+
const rr = () => U(), nr = (e = "YYYY-MM-DD") => U().format(e), Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
790
822
|
__proto__: null,
|
|
791
|
-
THEME_COOKIE_NAME:
|
|
792
|
-
arrAverage:
|
|
793
|
-
arrCount:
|
|
794
|
-
arrMax:
|
|
795
|
-
arrMin:
|
|
796
|
-
arrReverse:
|
|
797
|
-
arrSum:
|
|
798
|
-
arrUnique:
|
|
799
|
-
clamp:
|
|
800
|
-
clearSessionStorage:
|
|
801
|
-
copyToClipboard:
|
|
802
|
-
debounce:
|
|
803
|
-
deleteCookie:
|
|
804
|
-
duplicates:
|
|
805
|
-
encryptSha256:
|
|
806
|
-
generateRandomColor:
|
|
807
|
-
generateRandomString:
|
|
808
|
-
generateUID:
|
|
809
|
-
getCookie:
|
|
810
|
-
getCurrentDate:
|
|
811
|
-
getCurrentDateString:
|
|
812
|
-
getDeviceType:
|
|
813
|
-
getSessionStorage:
|
|
814
|
-
isArray:
|
|
815
|
-
isBoolean:
|
|
816
|
-
isDesktop:
|
|
817
|
-
isEmpty:
|
|
818
|
-
isEmptyArray:
|
|
819
|
-
isFunction:
|
|
820
|
-
isMobile:
|
|
821
|
-
isNull:
|
|
822
|
-
isNullOrUndefined:
|
|
823
|
-
isNumber:
|
|
824
|
-
isObject:
|
|
825
|
-
isSafeEmpty:
|
|
826
|
-
isString:
|
|
827
|
-
isTablet:
|
|
828
|
-
isUndefined:
|
|
829
|
-
isValidEmail:
|
|
830
|
-
isValidUrl:
|
|
831
|
-
padLeft:
|
|
832
|
-
padRight:
|
|
833
|
-
random:
|
|
834
|
-
removeSessionStorage:
|
|
835
|
-
round:
|
|
836
|
-
setCookie:
|
|
837
|
-
setSessionStorage:
|
|
838
|
-
throttle:
|
|
839
|
-
toCamelCase:
|
|
840
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
823
|
+
THEME_COOKIE_NAME: mt,
|
|
824
|
+
arrAverage: Lt,
|
|
825
|
+
arrCount: Et,
|
|
826
|
+
arrMax: Ot,
|
|
827
|
+
arrMin: Ut,
|
|
828
|
+
arrReverse: At,
|
|
829
|
+
arrSum: Pt,
|
|
830
|
+
arrUnique: $t,
|
|
831
|
+
clamp: Ft,
|
|
832
|
+
clearSessionStorage: Bt,
|
|
833
|
+
copyToClipboard: _t,
|
|
834
|
+
debounce: wt,
|
|
835
|
+
deleteCookie: Gt,
|
|
836
|
+
duplicates: kt,
|
|
837
|
+
encryptSha256: tr,
|
|
838
|
+
generateRandomColor: Nt,
|
|
839
|
+
generateRandomString: be,
|
|
840
|
+
generateUID: we,
|
|
841
|
+
getCookie: Wt,
|
|
842
|
+
getCurrentDate: rr,
|
|
843
|
+
getCurrentDateString: nr,
|
|
844
|
+
getDeviceType: q,
|
|
845
|
+
getSessionStorage: Ht,
|
|
846
|
+
isArray: Mt,
|
|
847
|
+
isBoolean: pt,
|
|
848
|
+
isDesktop: Dt,
|
|
849
|
+
isEmpty: Ie,
|
|
850
|
+
isEmptyArray: W,
|
|
851
|
+
isFunction: vt,
|
|
852
|
+
isMobile: Ct,
|
|
853
|
+
isNull: St,
|
|
854
|
+
isNullOrUndefined: It,
|
|
855
|
+
isNumber: gt,
|
|
856
|
+
isObject: yt,
|
|
857
|
+
isSafeEmpty: Kt,
|
|
858
|
+
isString: ht,
|
|
859
|
+
isTablet: xt,
|
|
860
|
+
isUndefined: Tt,
|
|
861
|
+
isValidEmail: Xt,
|
|
862
|
+
isValidUrl: Zt,
|
|
863
|
+
padLeft: Vt,
|
|
864
|
+
padRight: Qt,
|
|
865
|
+
random: Yt,
|
|
866
|
+
removeSessionStorage: zt,
|
|
867
|
+
round: Rt,
|
|
868
|
+
setCookie: qt,
|
|
869
|
+
setSessionStorage: jt,
|
|
870
|
+
throttle: bt,
|
|
871
|
+
toCamelCase: Jt
|
|
872
|
+
}, Symbol.toStringTag, { value: "Module" })), _ = {
|
|
841
873
|
duration: 4.5,
|
|
842
874
|
// 4.5초
|
|
843
875
|
placement: "topRight"
|
|
@@ -856,8 +888,8 @@ class E {
|
|
|
856
888
|
const {
|
|
857
889
|
message: t,
|
|
858
890
|
description: n,
|
|
859
|
-
duration: a =
|
|
860
|
-
placement: o =
|
|
891
|
+
duration: a = _.duration,
|
|
892
|
+
placement: o = _.placement
|
|
861
893
|
} = r;
|
|
862
894
|
O.error({
|
|
863
895
|
message: `${t}`,
|
|
@@ -877,8 +909,8 @@ class E {
|
|
|
877
909
|
O.success({
|
|
878
910
|
message: `${r}`,
|
|
879
911
|
description: t,
|
|
880
|
-
duration: n ||
|
|
881
|
-
placement:
|
|
912
|
+
duration: n || _.duration,
|
|
913
|
+
placement: _.placement
|
|
882
914
|
});
|
|
883
915
|
}
|
|
884
916
|
/**
|
|
@@ -888,8 +920,8 @@ class E {
|
|
|
888
920
|
O.info({
|
|
889
921
|
message: `${r}`,
|
|
890
922
|
description: t,
|
|
891
|
-
duration: n ||
|
|
892
|
-
placement:
|
|
923
|
+
duration: n || _.duration,
|
|
924
|
+
placement: _.placement
|
|
893
925
|
});
|
|
894
926
|
}
|
|
895
927
|
/**
|
|
@@ -899,8 +931,8 @@ class E {
|
|
|
899
931
|
O.warning({
|
|
900
932
|
message: `${r}`,
|
|
901
933
|
description: t,
|
|
902
|
-
duration: n ||
|
|
903
|
-
placement:
|
|
934
|
+
duration: n || _.duration,
|
|
935
|
+
placement: _.placement
|
|
904
936
|
});
|
|
905
937
|
}
|
|
906
938
|
/**
|
|
@@ -910,8 +942,8 @@ class E {
|
|
|
910
942
|
O.error({
|
|
911
943
|
message: `${r}`,
|
|
912
944
|
description: t,
|
|
913
|
-
duration: n ||
|
|
914
|
-
placement:
|
|
945
|
+
duration: n || _.duration,
|
|
946
|
+
placement: _.placement
|
|
915
947
|
});
|
|
916
948
|
}
|
|
917
949
|
/**
|
|
@@ -927,33 +959,33 @@ class E {
|
|
|
927
959
|
O.destroy();
|
|
928
960
|
}
|
|
929
961
|
}
|
|
930
|
-
const $ = E.getInstance(),
|
|
962
|
+
const $ = E.getInstance(), _e = (e) => {
|
|
931
963
|
$.showBwgError(e);
|
|
932
|
-
},
|
|
964
|
+
}, sr = (e, r, t) => {
|
|
933
965
|
$.showSuccess(e, r, t);
|
|
934
|
-
},
|
|
966
|
+
}, Ce = (e, r, t) => {
|
|
935
967
|
$.showInfo(e, r, t);
|
|
936
|
-
},
|
|
968
|
+
}, xe = (e, r, t) => {
|
|
937
969
|
$.showWarning(e, r, t);
|
|
938
|
-
},
|
|
970
|
+
}, or = (e, r, t) => {
|
|
939
971
|
$.showError(e, r, t);
|
|
940
|
-
},
|
|
972
|
+
}, ar = () => {
|
|
941
973
|
$.destroy();
|
|
942
|
-
},
|
|
974
|
+
}, ir = (e) => {
|
|
943
975
|
$.close(e);
|
|
944
|
-
},
|
|
976
|
+
}, xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
945
977
|
__proto__: null,
|
|
946
|
-
closeNotification:
|
|
947
|
-
destroyNotifications:
|
|
948
|
-
notiBwgError:
|
|
949
|
-
notiError:
|
|
950
|
-
notiInfo:
|
|
951
|
-
notiSuccess:
|
|
952
|
-
notiWarning:
|
|
978
|
+
closeNotification: ir,
|
|
979
|
+
destroyNotifications: ar,
|
|
980
|
+
notiBwgError: _e,
|
|
981
|
+
notiError: or,
|
|
982
|
+
notiInfo: Ce,
|
|
983
|
+
notiSuccess: sr,
|
|
984
|
+
notiWarning: xe,
|
|
953
985
|
notificationService: $
|
|
954
986
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
955
987
|
let N = null;
|
|
956
|
-
const
|
|
988
|
+
const De = async (e) => {
|
|
957
989
|
if (N === null)
|
|
958
990
|
if (e === void 0)
|
|
959
991
|
try {
|
|
@@ -964,7 +996,7 @@ const be = async (e) => {
|
|
|
964
996
|
}
|
|
965
997
|
else
|
|
966
998
|
N = e;
|
|
967
|
-
},
|
|
999
|
+
}, ur = () => N, cr = async () => (console.log("IP 검증 비활성화됨 (성능 최적화)"), N || "unknown");
|
|
968
1000
|
class x extends Error {
|
|
969
1001
|
constructor(r, t, n, a, o) {
|
|
970
1002
|
super(r), this.name = "ApiError", this.detailMsg = t, this.response = n, this.msgCd = a, this.errorType = o, Error.captureStackTrace && Error.captureStackTrace(this, x);
|
|
@@ -980,7 +1012,7 @@ const ee = {
|
|
|
980
1012
|
showError: !0,
|
|
981
1013
|
retryCount: 0,
|
|
982
1014
|
retryDelay: 1e3
|
|
983
|
-
},
|
|
1015
|
+
}, H = te.create({
|
|
984
1016
|
timeout: ee.timeout,
|
|
985
1017
|
withCredentials: ee.withCredentials,
|
|
986
1018
|
headers: {
|
|
@@ -988,7 +1020,7 @@ const ee = {
|
|
|
988
1020
|
Accept: "application/json; charset=utf-8"
|
|
989
1021
|
}
|
|
990
1022
|
});
|
|
991
|
-
|
|
1023
|
+
H.interceptors.request.use(
|
|
992
1024
|
(e) => {
|
|
993
1025
|
e.showLoading && Q.getState().showLoading();
|
|
994
1026
|
let r = "UNKNOWN", t = "UNKNOWN";
|
|
@@ -1004,7 +1036,7 @@ j.interceptors.request.use(
|
|
|
1004
1036
|
},
|
|
1005
1037
|
(e) => (console.error("❌ 요청 인터셉터 에러:", e), Promise.reject(e))
|
|
1006
1038
|
);
|
|
1007
|
-
|
|
1039
|
+
H.interceptors.response.use(
|
|
1008
1040
|
(e) => {
|
|
1009
1041
|
e.config.showLoading && Q.getState().hideLoading();
|
|
1010
1042
|
let r = "UNKNOWN", t = "UNKNOWN";
|
|
@@ -1020,7 +1052,7 @@ j.interceptors.response.use(
|
|
|
1020
1052
|
), e;
|
|
1021
1053
|
},
|
|
1022
1054
|
async (e) => {
|
|
1023
|
-
if (e.config && e.config.showLoading && Q.getState().hideLoading(), console.error("❌ API 응답 에러:", e),
|
|
1055
|
+
if (e.config && e.config.showLoading && Q.getState().hideLoading(), console.error("❌ API 응답 에러:", e), k && console.error("🚨 Error Details:", {
|
|
1024
1056
|
message: e.message,
|
|
1025
1057
|
status: e.response?.status,
|
|
1026
1058
|
statusText: e.response?.statusText,
|
|
@@ -1044,7 +1076,7 @@ j.interceptors.response.use(
|
|
|
1044
1076
|
);
|
|
1045
1077
|
const n = e.config;
|
|
1046
1078
|
if (n)
|
|
1047
|
-
return n.headers.Authorization = `Bearer ${t.data.accessToken}`,
|
|
1079
|
+
return n.headers.Authorization = `Bearer ${t.data.accessToken}`, H(n);
|
|
1048
1080
|
}
|
|
1049
1081
|
} catch {
|
|
1050
1082
|
localStorage.removeItem("accessToken"), localStorage.removeItem("refreshToken"), window.location.href = "/login";
|
|
@@ -1053,17 +1085,17 @@ j.interceptors.response.use(
|
|
|
1053
1085
|
return Promise.reject(e);
|
|
1054
1086
|
}
|
|
1055
1087
|
);
|
|
1056
|
-
const
|
|
1088
|
+
const Ne = () => we(), L = async (e, r, t) => {
|
|
1057
1089
|
try {
|
|
1058
1090
|
const n = {
|
|
1059
1091
|
...ee,
|
|
1060
1092
|
...t
|
|
1061
|
-
}, { activeMenuId: a } =
|
|
1093
|
+
}, { activeMenuId: a } = Ve.getState();
|
|
1062
1094
|
if (N === null) {
|
|
1063
1095
|
const S = Date.now();
|
|
1064
|
-
await
|
|
1065
|
-
const
|
|
1066
|
-
console.log(`[INFO] IP 조회 소요시간: ${
|
|
1096
|
+
await De();
|
|
1097
|
+
const c = Date.now();
|
|
1098
|
+
console.log(`[INFO] IP 조회 소요시간: ${c - S}ms`);
|
|
1067
1099
|
}
|
|
1068
1100
|
const o = {
|
|
1069
1101
|
method: n.method,
|
|
@@ -1073,38 +1105,38 @@ const we = () => Me(), U = async (e, r, t) => {
|
|
|
1073
1105
|
showLoading: n.showLoading
|
|
1074
1106
|
};
|
|
1075
1107
|
n.headers && (o.headers = n.headers);
|
|
1076
|
-
const i = N || "unknown", m = __APP_CD__,
|
|
1108
|
+
const i = N || "unknown", m = __APP_CD__, u = __SYS_CD__, p = {
|
|
1077
1109
|
header: {
|
|
1078
1110
|
trxCd: e,
|
|
1079
|
-
guid:
|
|
1111
|
+
guid: Ne(),
|
|
1080
1112
|
userInfo: se(),
|
|
1081
1113
|
clientIp: i,
|
|
1082
1114
|
// 클라이언트 IP 추가 (서버에서 재확인 권장)
|
|
1083
1115
|
domainId: "DEFAULT",
|
|
1084
1116
|
appCd: m,
|
|
1085
|
-
sysCd:
|
|
1117
|
+
sysCd: u,
|
|
1086
1118
|
screenId: a
|
|
1087
1119
|
},
|
|
1088
1120
|
// data: bxmEncrypt(JSON.stringify(data)),
|
|
1089
1121
|
data: r
|
|
1090
1122
|
};
|
|
1091
|
-
|
|
1123
|
+
k && console.log("__BWG_LOCAL__ 테스트 입니다. ", k), n.method === "GET" ? o.params = p || n.params : (o.data = p || n.data, n.params && (o.params = n.params));
|
|
1092
1124
|
let g;
|
|
1093
1125
|
for (let S = 0; S <= (n.retryCount || 0); S++)
|
|
1094
1126
|
try {
|
|
1095
|
-
const
|
|
1096
|
-
if (
|
|
1097
|
-
for (const f in
|
|
1127
|
+
const c = await H(o);
|
|
1128
|
+
if (c.data.header?.resCd == 0) {
|
|
1129
|
+
for (const f in c.data)
|
|
1098
1130
|
if (f !== "header")
|
|
1099
|
-
return
|
|
1131
|
+
return c.data[f];
|
|
1100
1132
|
return {};
|
|
1101
1133
|
} else {
|
|
1102
|
-
const f =
|
|
1103
|
-
throw new x(l, s,
|
|
1134
|
+
const f = c.data.header, l = f?.msgs?.basicMsg || "요청 처리 중 오류가 발생했습니다.", s = f?.msgs?.detailMsgs || l, d = f?.msgCd, y = f?.msgs?.type;
|
|
1135
|
+
throw new x(l, s, c, d, y);
|
|
1104
1136
|
}
|
|
1105
|
-
} catch (
|
|
1106
|
-
if (
|
|
1107
|
-
const f =
|
|
1137
|
+
} catch (c) {
|
|
1138
|
+
if (c.isAxiosError && c.response) {
|
|
1139
|
+
const f = c, l = f.response, s = l.data, d = s?.header?.msgs?.basicMsg || f.message || // 실패 시 Axios 에러 메시지 사용
|
|
1108
1140
|
"서버에서 오류가 발생했습니다.", y = s?.header?.msgs?.detailMsgs || // 상세 메시지로 응답 본문 제공 (문자열이 아니면 JSON으로 변환)
|
|
1109
1141
|
(typeof l.data == "string" ? l.data : JSON.stringify(l.data)) || d, h = s?.header?.msgCd, v = s?.header?.msgs?.type;
|
|
1110
1142
|
g = new x(
|
|
@@ -1115,21 +1147,21 @@ const we = () => Me(), U = async (e, r, t) => {
|
|
|
1115
1147
|
v
|
|
1116
1148
|
);
|
|
1117
1149
|
} else
|
|
1118
|
-
g =
|
|
1119
|
-
if (
|
|
1120
|
-
await
|
|
1150
|
+
g = c;
|
|
1151
|
+
if (c.isAxiosError && lr(c) && S < (n.retryCount || 0)) {
|
|
1152
|
+
await dr(n.retryDelay || 1e3);
|
|
1121
1153
|
continue;
|
|
1122
1154
|
}
|
|
1123
1155
|
break;
|
|
1124
1156
|
}
|
|
1125
1157
|
if (g) {
|
|
1126
1158
|
if (n.showError) {
|
|
1127
|
-
const S = g instanceof x ? g.message : "요청 처리 중 오류가 발생했습니다.",
|
|
1128
|
-
|
|
1159
|
+
const S = g instanceof x ? g.message : "요청 처리 중 오류가 발생했습니다.", c = g instanceof x ? g.msgCd : "요청 처리 중 오류가 발생했습니다.", f = g instanceof x ? g.detailMsg : g.message, l = g instanceof x ? g.errorType : "";
|
|
1160
|
+
c?.startsWith("BXM") ? _e({
|
|
1129
1161
|
message: S,
|
|
1130
1162
|
description: f,
|
|
1131
1163
|
duration: 5
|
|
1132
|
-
}) : l == "I" ?
|
|
1164
|
+
}) : l == "I" ? Ce(S, f, 5) : xe(S, f, 5);
|
|
1133
1165
|
}
|
|
1134
1166
|
throw g;
|
|
1135
1167
|
}
|
|
@@ -1137,7 +1169,7 @@ const we = () => Me(), U = async (e, r, t) => {
|
|
|
1137
1169
|
} catch (n) {
|
|
1138
1170
|
throw console.error("callService 최종 에러:", n), n;
|
|
1139
1171
|
}
|
|
1140
|
-
},
|
|
1172
|
+
}, lr = (e) => !e.response || e.response.status >= 500 && e.response.status < 600, dr = (e) => new Promise((r) => setTimeout(r, e)), fr = (e, r, t) => L(e, r, { ...t, method: "GET" }), mr = (e, r, t) => L(e, r, { ...t, method: "POST" }), hr = (e, r, t) => L(e, r, { ...t, method: "PUT" }), gr = (e, r, t) => L(e, r, { ...t, method: "DELETE" }), pr = (e, r, t) => L(e, r, { ...t, method: "PATCH" }), vr = async (e, r, t) => {
|
|
1141
1173
|
try {
|
|
1142
1174
|
const n = await fetch("/api/permissions", {
|
|
1143
1175
|
method: "POST",
|
|
@@ -1156,122 +1188,128 @@ const we = () => Me(), U = async (e, r, t) => {
|
|
|
1156
1188
|
} catch (n) {
|
|
1157
1189
|
throw console.error("권한 확인 서비스 오류:", n), n;
|
|
1158
1190
|
}
|
|
1159
|
-
},
|
|
1191
|
+
}, Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1160
1192
|
__proto__: null,
|
|
1161
1193
|
ApiError: x,
|
|
1162
|
-
apiDelete:
|
|
1163
|
-
apiGet:
|
|
1164
|
-
apiPatch:
|
|
1165
|
-
apiPost:
|
|
1166
|
-
apiPut:
|
|
1167
|
-
callService:
|
|
1168
|
-
getClientIp:
|
|
1169
|
-
getGuid:
|
|
1170
|
-
getPermissionService:
|
|
1171
|
-
setClientIp:
|
|
1172
|
-
verifyClientIp:
|
|
1194
|
+
apiDelete: gr,
|
|
1195
|
+
apiGet: fr,
|
|
1196
|
+
apiPatch: pr,
|
|
1197
|
+
apiPost: mr,
|
|
1198
|
+
apiPut: hr,
|
|
1199
|
+
callService: L,
|
|
1200
|
+
getClientIp: ur,
|
|
1201
|
+
getGuid: Ne,
|
|
1202
|
+
getPermissionService: vr,
|
|
1203
|
+
setClientIp: De,
|
|
1204
|
+
verifyClientIp: cr
|
|
1173
1205
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1174
1206
|
export {
|
|
1175
|
-
|
|
1207
|
+
Zt as $,
|
|
1176
1208
|
x as A,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1209
|
+
Dt as B,
|
|
1210
|
+
Nt as C,
|
|
1211
|
+
W as D,
|
|
1212
|
+
$t as E,
|
|
1213
|
+
Ot as F,
|
|
1214
|
+
Ut as G,
|
|
1215
|
+
Lt as H,
|
|
1216
|
+
Pt as I,
|
|
1217
|
+
Et as J,
|
|
1218
|
+
At as K,
|
|
1219
|
+
kt as L,
|
|
1220
|
+
Yt as M,
|
|
1221
|
+
Ft as N,
|
|
1222
|
+
Rt as O,
|
|
1223
|
+
jt as P,
|
|
1224
|
+
Ht as Q,
|
|
1225
|
+
zt as R,
|
|
1226
|
+
Bt as S,
|
|
1227
|
+
mt as T,
|
|
1228
|
+
qt as U,
|
|
1229
|
+
Wt as V,
|
|
1230
|
+
Gt as W,
|
|
1231
|
+
Ie as X,
|
|
1232
|
+
Kt as Y,
|
|
1233
|
+
Jt as Z,
|
|
1234
|
+
Xt as _,
|
|
1235
|
+
Ne as a,
|
|
1236
|
+
Vt as a0,
|
|
1237
|
+
Qt as a1,
|
|
1238
|
+
be as a2,
|
|
1239
|
+
we as a3,
|
|
1240
|
+
tr as a4,
|
|
1241
|
+
rr as a5,
|
|
1242
|
+
nr as a6,
|
|
1243
|
+
k as a7,
|
|
1244
|
+
qe as a8,
|
|
1245
|
+
Se as a9,
|
|
1246
|
+
se as aA,
|
|
1247
|
+
He as aB,
|
|
1248
|
+
ze as aC,
|
|
1249
|
+
Be as aD,
|
|
1250
|
+
Q as aE,
|
|
1251
|
+
Ze as aF,
|
|
1252
|
+
Ve as aG,
|
|
1253
|
+
C as aH,
|
|
1254
|
+
Pe as aI,
|
|
1255
|
+
Dr as aJ,
|
|
1256
|
+
Cr as aK,
|
|
1257
|
+
_r as aL,
|
|
1258
|
+
xr as aM,
|
|
1259
|
+
br as aN,
|
|
1260
|
+
wr as aO,
|
|
1261
|
+
re as aP,
|
|
1262
|
+
Ir as aQ,
|
|
1225
1263
|
Te as aa,
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1264
|
+
We as ab,
|
|
1265
|
+
$ as ac,
|
|
1266
|
+
_e as ad,
|
|
1267
|
+
sr as ae,
|
|
1230
1268
|
Ce as af,
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1269
|
+
xe as ag,
|
|
1270
|
+
or as ah,
|
|
1271
|
+
ar as ai,
|
|
1272
|
+
ir as aj,
|
|
1273
|
+
$e as ak,
|
|
1274
|
+
ne as al,
|
|
1275
|
+
fe as am,
|
|
1276
|
+
Oe as an,
|
|
1277
|
+
Ee as ao,
|
|
1278
|
+
me as ap,
|
|
1279
|
+
he as aq,
|
|
1280
|
+
Ae as ar,
|
|
1281
|
+
ke as as,
|
|
1282
|
+
ge as at,
|
|
1283
|
+
pe as au,
|
|
1284
|
+
B as av,
|
|
1285
|
+
Ye as aw,
|
|
1286
|
+
Fe as ax,
|
|
1287
|
+
Re as ay,
|
|
1288
|
+
je as az,
|
|
1289
|
+
fr as b,
|
|
1290
|
+
L as c,
|
|
1291
|
+
mr as d,
|
|
1292
|
+
hr as e,
|
|
1293
|
+
gr as f,
|
|
1294
|
+
ur as g,
|
|
1295
|
+
pr as h,
|
|
1296
|
+
vr as i,
|
|
1297
|
+
ht as j,
|
|
1298
|
+
gt as k,
|
|
1299
|
+
pt as l,
|
|
1300
|
+
vt as m,
|
|
1301
|
+
yt as n,
|
|
1302
|
+
Mt as o,
|
|
1303
|
+
St as p,
|
|
1304
|
+
Tt as q,
|
|
1305
|
+
It as r,
|
|
1306
|
+
De as s,
|
|
1307
|
+
bt as t,
|
|
1308
|
+
wt as u,
|
|
1309
|
+
cr as v,
|
|
1310
|
+
_t as w,
|
|
1311
|
+
q as x,
|
|
1312
|
+
Ct as y,
|
|
1313
|
+
xt as z
|
|
1276
1314
|
};
|
|
1277
|
-
//# sourceMappingURL=apiUtils-
|
|
1315
|
+
//# sourceMappingURL=apiUtils-BJRcT3Tm.js.map
|