@bwg-ui/core 1.1.19 → 1.1.20
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/{BwgDownload-Qhs6jJxM.js → BwgDownload-CF_Zo2oU.js} +3 -3
- package/dist/chunks/{BwgDownload-Qhs6jJxM.js.map → BwgDownload-CF_Zo2oU.js.map} +1 -1
- package/dist/chunks/{BwgDownload-Cm_XfYl_.cjs → BwgDownload-DvCaLWCL.cjs} +2 -2
- package/dist/chunks/{BwgDownload-Cm_XfYl_.cjs.map → BwgDownload-DvCaLWCL.cjs.map} +1 -1
- package/dist/chunks/{SSOHandler-C-pcl0On.cjs → SSOHandler-C7echUZs.cjs} +2 -2
- package/dist/chunks/{SSOHandler-C-pcl0On.cjs.map → SSOHandler-C7echUZs.cjs.map} +1 -1
- package/dist/chunks/{SSOHandler-B4yYaeJF.js → SSOHandler-Cr04mtMm.js} +4 -4
- package/dist/chunks/{SSOHandler-B4yYaeJF.js.map → SSOHandler-Cr04mtMm.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-CyTyFuB5.js → SearchBoxContext-C2ECWG9l.js} +2 -2
- package/dist/chunks/{SearchBoxContext-CyTyFuB5.js.map → SearchBoxContext-C2ECWG9l.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-BgAzWZQl.cjs → SearchBoxContext-aMXi2JmO.cjs} +2 -2
- package/dist/chunks/{SearchBoxContext-BgAzWZQl.cjs.map → SearchBoxContext-aMXi2JmO.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-pwafdfAs.cjs → ViewContainer-DI7hvDi-.cjs} +2 -2
- package/dist/chunks/{ViewContainer-pwafdfAs.cjs.map → ViewContainer-DI7hvDi-.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-CbO6vSvW.js → ViewContainer-DxhY26m3.js} +2 -2
- package/dist/chunks/{ViewContainer-CbO6vSvW.js.map → ViewContainer-DxhY26m3.js.map} +1 -1
- package/dist/chunks/{apiUtils-CH40MvpT.js → apiUtils-BRaXRbjE.js} +142 -116
- package/dist/chunks/apiUtils-BRaXRbjE.js.map +1 -0
- package/dist/chunks/apiUtils-DL43X2ta.cjs +3 -0
- package/dist/chunks/apiUtils-DL43X2ta.cjs.map +1 -0
- package/dist/chunks/{codeStore-DVUySb7V.cjs → codeStore-WWRT65Zk.cjs} +2 -2
- package/dist/chunks/{codeStore-DVUySb7V.cjs.map → codeStore-WWRT65Zk.cjs.map} +1 -1
- package/dist/chunks/{codeStore-CC9_8nmU.js → codeStore-kuUEfWSS.js} +2 -2
- package/dist/chunks/{codeStore-CC9_8nmU.js.map → codeStore-kuUEfWSS.js.map} +1 -1
- package/dist/chunks/core-D7JhyoYH.cjs +2 -0
- package/dist/chunks/core-D7JhyoYH.cjs.map +1 -0
- package/dist/chunks/core-DLGhqegD.js +514 -0
- package/dist/chunks/core-DLGhqegD.js.map +1 -0
- package/dist/chunks/enc-base64-96WlVdPN.js +102 -0
- package/dist/chunks/enc-base64-96WlVdPN.js.map +1 -0
- package/dist/chunks/enc-base64-b9mIy966.cjs +2 -0
- package/dist/chunks/enc-base64-b9mIy966.cjs.map +1 -0
- package/dist/chunks/{favoriteStore-DYiTW7cU.js → favoriteStore-D40XfOmq.js} +2 -2
- package/dist/chunks/{favoriteStore-DYiTW7cU.js.map → favoriteStore-D40XfOmq.js.map} +1 -1
- package/dist/chunks/{favoriteStore-Byy7k_UI.cjs → favoriteStore-DdGoghEn.cjs} +2 -2
- package/dist/chunks/{favoriteStore-Byy7k_UI.cjs.map → favoriteStore-DdGoghEn.cjs.map} +1 -1
- package/dist/chunks/{popupStore-wA4nh-mr.cjs → popupStore-DKpp0bmC.cjs} +2 -2
- package/dist/chunks/{popupStore-wA4nh-mr.cjs.map → popupStore-DKpp0bmC.cjs.map} +1 -1
- package/dist/chunks/{popupStore-C8-CPKwz.js → popupStore-axohgTV-.js} +2 -2
- package/dist/chunks/{popupStore-C8-CPKwz.js.map → popupStore-axohgTV-.js.map} +1 -1
- package/dist/chunks/sha256-BMg1y0Py.js +79 -0
- package/dist/chunks/sha256-BMg1y0Py.js.map +1 -0
- package/dist/chunks/sha256-BxdSMFca.cjs +2 -0
- package/dist/chunks/sha256-BxdSMFca.cjs.map +1 -0
- package/dist/chunks/{usePopup-6-TNfqyf.cjs → usePopup-DYnRe9Th.cjs} +2 -2
- package/dist/chunks/{usePopup-6-TNfqyf.cjs.map → usePopup-DYnRe9Th.cjs.map} +1 -1
- package/dist/chunks/{usePopup-D7c9t7AW.js → usePopup-Dftb7Bbl.js} +3 -3
- package/dist/chunks/{usePopup-D7c9t7AW.js.map → usePopup-Dftb7Bbl.js.map} +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +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 +9 -9
- 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 +6 -6
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +2 -1
- package/dist/chunks/apiUtils-CH40MvpT.js.map +0 -1
- package/dist/chunks/apiUtils-D9cBQG0u.cjs +0 -3
- package/dist/chunks/apiUtils-D9cBQG0u.cjs.map +0 -1
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
import re from "axios";
|
|
2
|
-
import
|
|
2
|
+
import E from "dayjs";
|
|
3
3
|
import { message as X, notification as $ } from "antd";
|
|
4
4
|
import { create as B } from "zustand";
|
|
5
|
-
var
|
|
5
|
+
var _r = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function ne(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
|
+
function Ir(e) {
|
|
10
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
11
|
+
var r = e.default;
|
|
12
|
+
if (typeof r == "function") {
|
|
13
|
+
var t = function n() {
|
|
14
|
+
var s = !1;
|
|
15
|
+
try {
|
|
16
|
+
s = this instanceof n;
|
|
17
|
+
} catch {
|
|
18
|
+
}
|
|
19
|
+
return s ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
20
|
+
};
|
|
21
|
+
t.prototype = r.prototype;
|
|
22
|
+
} else t = {};
|
|
23
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
|
|
24
|
+
var s = Object.getOwnPropertyDescriptor(e, n);
|
|
25
|
+
Object.defineProperty(t, n, s.get ? s : {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
get: function() {
|
|
28
|
+
return e[n];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}), t;
|
|
32
|
+
}
|
|
9
33
|
const me = {
|
|
10
34
|
// 권한 관련
|
|
11
35
|
AUTH_BTNS: "SCMSIGN00202",
|
|
@@ -22,7 +46,7 @@ const me = {
|
|
|
22
46
|
// 즐겨찾기 관리
|
|
23
47
|
};
|
|
24
48
|
let k = {};
|
|
25
|
-
function
|
|
49
|
+
function Ee(e) {
|
|
26
50
|
k = e, console.log("🔧 Provider 서비스코드 오버라이드 설정:", e);
|
|
27
51
|
}
|
|
28
52
|
function se(e) {
|
|
@@ -34,7 +58,7 @@ function he() {
|
|
|
34
58
|
e[r] = se(r);
|
|
35
59
|
return e;
|
|
36
60
|
}
|
|
37
|
-
function
|
|
61
|
+
function Le() {
|
|
38
62
|
console.log("🔧 bwg-core 서비스코드 설정:"), console.log("📋 Provider 설정 > 기본값 순서로 확인");
|
|
39
63
|
const e = he();
|
|
40
64
|
for (const [r, t] of Object.entries(e)) {
|
|
@@ -42,12 +66,12 @@ function Pe() {
|
|
|
42
66
|
console.log(` ${r}: ${t} (${n})`);
|
|
43
67
|
}
|
|
44
68
|
}
|
|
45
|
-
const
|
|
69
|
+
const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46
70
|
__proto__: null,
|
|
47
71
|
getAllServiceCodes: he,
|
|
48
72
|
getServiceCode: se,
|
|
49
|
-
logServiceCodeConfig:
|
|
50
|
-
setServiceCodeOverrides:
|
|
73
|
+
logServiceCodeConfig: Le,
|
|
74
|
+
setServiceCodeOverrides: Ee
|
|
51
75
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
52
76
|
import.meta.env.DEV;
|
|
53
77
|
function Ue(e, r) {
|
|
@@ -213,7 +237,7 @@ const Q = (e) => (r) => {
|
|
|
213
237
|
// 저장할 상태만 선택
|
|
214
238
|
}
|
|
215
239
|
)
|
|
216
|
-
), Ye = () => D.getState().user?.crprCd || null, ge = () => D.getState().user?.userId || null, pe = () => D.getState().user?.userNm || null, Fe = () => D.getState().user?.userDvsn || null,
|
|
240
|
+
), Ye = () => D.getState().user?.crprCd || null, ge = () => D.getState().user?.userId || null, pe = () => D.getState().user?.userNm || null, Fe = () => D.getState().user?.userDvsn || null, je = () => D.getState().user?.emplNo || null, ye = () => D.getState().user?.dprtCd || null, ve = () => D.getState().user?.dprtNm || null, q = () => D.getState().user?.roleList || null, Re = (e) => {
|
|
217
241
|
const r = q();
|
|
218
242
|
return r ? r.includes(e) : !1;
|
|
219
243
|
}, He = (e) => {
|
|
@@ -228,14 +252,14 @@ const Q = (e) => (r) => {
|
|
|
228
252
|
}, Ge = () => {
|
|
229
253
|
const e = ve(), r = ye();
|
|
230
254
|
return e || (r ? String(r) : null);
|
|
231
|
-
},
|
|
255
|
+
}, br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
232
256
|
__proto__: null,
|
|
233
257
|
getCrprCd: Ye,
|
|
234
258
|
getDepartmentInfo: Ge,
|
|
235
259
|
getDisplayName: We,
|
|
236
260
|
getDprtCd: ye,
|
|
237
261
|
getDprtNm: ve,
|
|
238
|
-
getEmplNo:
|
|
262
|
+
getEmplNo: je,
|
|
239
263
|
getRoleList: q,
|
|
240
264
|
getUserDvsn: Fe,
|
|
241
265
|
getUserId: ge,
|
|
@@ -243,7 +267,7 @@ const Q = (e) => (r) => {
|
|
|
243
267
|
getUserNm: pe,
|
|
244
268
|
hasAllRoles: ze,
|
|
245
269
|
hasAnyRole: He,
|
|
246
|
-
hasRole:
|
|
270
|
+
hasRole: Re,
|
|
247
271
|
hasUserInfo: qe,
|
|
248
272
|
isLoggedIn: Be
|
|
249
273
|
}, Symbol.toStringTag, { value: "Module" })), ee = {
|
|
@@ -294,7 +318,7 @@ const Je = (e) => {
|
|
|
294
318
|
}
|
|
295
319
|
e({ isLoading: !0, error: null, _lastFetchParams: a });
|
|
296
320
|
try {
|
|
297
|
-
const i = await
|
|
321
|
+
const i = await L(se("AUTH_MENU"), a), m = Je(i), d = Ze(m);
|
|
298
322
|
e({
|
|
299
323
|
flatMenuList: m,
|
|
300
324
|
// 평면 리스트 저장
|
|
@@ -483,7 +507,7 @@ var F = { exports: {} }, Qe = F.exports, ue;
|
|
|
483
507
|
function et() {
|
|
484
508
|
return ue || (ue = 1, (function(e, r) {
|
|
485
509
|
(function(t, n) {
|
|
486
|
-
e.exports = n(
|
|
510
|
+
e.exports = n(E);
|
|
487
511
|
})(Qe, (function(t) {
|
|
488
512
|
function n(i) {
|
|
489
513
|
return i && typeof i == "object" && "default" in i ? i : { default: i };
|
|
@@ -498,7 +522,7 @@ function et() {
|
|
|
498
522
|
})(F)), F.exports;
|
|
499
523
|
}
|
|
500
524
|
et();
|
|
501
|
-
var
|
|
525
|
+
var j = { exports: {} }, tt = j.exports, le;
|
|
502
526
|
function rt() {
|
|
503
527
|
return le || (le = 1, (function(e, r) {
|
|
504
528
|
(function(t, n) {
|
|
@@ -514,17 +538,17 @@ function rt() {
|
|
|
514
538
|
for (var l, o, f, M = p.$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" }], y = h.length, w = 0; w < y; w += 1) {
|
|
515
539
|
var S = h[w];
|
|
516
540
|
S.d && (l = c ? s(v).diff(p, S.d, !0) : p.diff(v, S.d, !0));
|
|
517
|
-
var
|
|
518
|
-
if (f = l > 0,
|
|
519
|
-
|
|
541
|
+
var _ = (t.rounding || Math.round)(Math.abs(l));
|
|
542
|
+
if (f = l > 0, _ <= S.r || !S.r) {
|
|
543
|
+
_ <= 1 && w > 0 && (S = h[w - 1]);
|
|
520
544
|
var I = M[S.l];
|
|
521
|
-
u && (
|
|
545
|
+
u && (_ = u("" + _)), o = typeof I == "string" ? I.replace("%d", _) : I(_, g, S.l, f);
|
|
522
546
|
break;
|
|
523
547
|
}
|
|
524
548
|
}
|
|
525
549
|
if (g) return o;
|
|
526
|
-
var
|
|
527
|
-
return typeof
|
|
550
|
+
var C = f ? M.future : M.past;
|
|
551
|
+
return typeof C == "function" ? C(o) : C.replace("%s", o);
|
|
528
552
|
}, a.to = function(v, g) {
|
|
529
553
|
return m(v, g, this, !0);
|
|
530
554
|
}, a.from = function(v, g) {
|
|
@@ -540,11 +564,11 @@ function rt() {
|
|
|
540
564
|
};
|
|
541
565
|
};
|
|
542
566
|
}));
|
|
543
|
-
})(
|
|
567
|
+
})(j)), j.exports;
|
|
544
568
|
}
|
|
545
569
|
var nt = rt();
|
|
546
570
|
const st = /* @__PURE__ */ ne(nt);
|
|
547
|
-
var
|
|
571
|
+
var R = { exports: {} }, ot = R.exports, de;
|
|
548
572
|
function at() {
|
|
549
573
|
return de || (de = 1, (function(e, r) {
|
|
550
574
|
(function(t, n) {
|
|
@@ -565,8 +589,8 @@ function at() {
|
|
|
565
589
|
var M = l[f], h = M.type, y = M.value, w = t[h];
|
|
566
590
|
w >= 0 && (o[w] = parseInt(y, 10));
|
|
567
591
|
}
|
|
568
|
-
var S = o[3],
|
|
569
|
-
return (i.utc(I).valueOf() - (
|
|
592
|
+
var S = o[3], _ = S === 24 ? 0 : S, I = o[0] + "-" + o[1] + "-" + o[2] + " " + _ + ":" + o[4] + ":" + o[5] + ":000", C = +c;
|
|
593
|
+
return (i.utc(I).valueOf() - (C -= C % 1e3)) / 6e4;
|
|
570
594
|
}, g = a.prototype;
|
|
571
595
|
g.tz = function(c, u) {
|
|
572
596
|
c === void 0 && (c = m);
|
|
@@ -591,11 +615,11 @@ function at() {
|
|
|
591
615
|
}, i.tz = function(c, u, l) {
|
|
592
616
|
var o = l && u, f = l || u || m, M = v(+i(), f);
|
|
593
617
|
if (typeof c != "string") return i(c).tz(f);
|
|
594
|
-
var h = (function(
|
|
595
|
-
var
|
|
596
|
-
if (I === U) return [
|
|
597
|
-
var J = v(
|
|
598
|
-
return U === J ? [
|
|
618
|
+
var h = (function(_, I, C) {
|
|
619
|
+
var O = _ - 60 * I * 1e3, U = v(O, C);
|
|
620
|
+
if (I === U) return [O, I];
|
|
621
|
+
var J = v(O -= 60 * (U - I) * 1e3, C);
|
|
622
|
+
return U === J ? [O, U] : [_ - 60 * Math.min(U, J) * 1e3, Math.max(U, J)];
|
|
599
623
|
})(i.utc(c, o).valueOf(), M, f), y = h[0], w = h[1], S = i(y).utcOffset(w);
|
|
600
624
|
return S.$x.$timezone = f, S;
|
|
601
625
|
}, i.tz.guess = function() {
|
|
@@ -605,7 +629,7 @@ function at() {
|
|
|
605
629
|
};
|
|
606
630
|
};
|
|
607
631
|
}));
|
|
608
|
-
})(
|
|
632
|
+
})(R)), R.exports;
|
|
609
633
|
}
|
|
610
634
|
var it = at();
|
|
611
635
|
const ct = /* @__PURE__ */ ne(it);
|
|
@@ -644,10 +668,10 @@ function lt() {
|
|
|
644
668
|
if (M(o)) return this.$u ? 0 : M(this.$offset) ? p.call(this) : this.$offset;
|
|
645
669
|
if (typeof o == "string" && (o = (function(S) {
|
|
646
670
|
S === void 0 && (S = "");
|
|
647
|
-
var
|
|
648
|
-
if (!
|
|
649
|
-
var I = ("" +
|
|
650
|
-
return
|
|
671
|
+
var _ = S.match(n);
|
|
672
|
+
if (!_) return null;
|
|
673
|
+
var I = ("" + _[0]).match(s) || ["-", 0, 0], C = I[0], O = 60 * +I[1] + +I[2];
|
|
674
|
+
return O === 0 ? 0 : C === "+" ? O : -O;
|
|
651
675
|
})(o), o === null)) return this;
|
|
652
676
|
var h = Math.abs(o) <= 16 ? 60 * o : o, y = this;
|
|
653
677
|
if (f) return y.$offset = h, y.$u = o === 0, y;
|
|
@@ -686,7 +710,7 @@ function lt() {
|
|
|
686
710
|
})(H)), H.exports;
|
|
687
711
|
}
|
|
688
712
|
var dt = lt();
|
|
689
|
-
const ft = /* @__PURE__ */ ne(dt), mt = "ui_theme", ht = (e) => typeof e == "string", gt = (e) => typeof e == "number" && !isNaN(e), pt = (e) => typeof e == "boolean", yt = (e) => typeof e == "function", vt = (e) => e !== null && typeof e == "object", Mt = (e) => Array.isArray(e), St = (e) => e === null, wt = (e) => e === void 0, Tt = (e) => e == null,
|
|
713
|
+
const ft = /* @__PURE__ */ ne(dt), mt = "ui_theme", ht = (e) => typeof e == "string", gt = (e) => typeof e == "number" && !isNaN(e), pt = (e) => typeof e == "boolean", yt = (e) => typeof e == "function", vt = (e) => e !== null && typeof e == "object", Mt = (e) => Array.isArray(e), St = (e) => e === null, wt = (e) => e === void 0, Tt = (e) => e == null, _t = (e, r) => {
|
|
690
714
|
let t = 0;
|
|
691
715
|
return (...n) => {
|
|
692
716
|
const s = Date.now();
|
|
@@ -697,7 +721,7 @@ const ft = /* @__PURE__ */ ne(dt), mt = "ui_theme", ht = (e) => typeof e == "str
|
|
|
697
721
|
return (...n) => {
|
|
698
722
|
clearTimeout(t), t = setTimeout(() => e(...n), r);
|
|
699
723
|
};
|
|
700
|
-
},
|
|
724
|
+
}, Ct = async (e) => {
|
|
701
725
|
try {
|
|
702
726
|
return await navigator.clipboard.writeText(e), !0;
|
|
703
727
|
} catch (r) {
|
|
@@ -706,21 +730,21 @@ const ft = /* @__PURE__ */ ne(dt), mt = "ui_theme", ht = (e) => typeof e == "str
|
|
|
706
730
|
}, G = () => {
|
|
707
731
|
const e = window.innerWidth;
|
|
708
732
|
return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
|
|
709
|
-
}, bt = () => G() === "mobile", xt = () => G() === "tablet", Dt = () => G() === "desktop",
|
|
733
|
+
}, bt = () => G() === "mobile", xt = () => G() === "tablet", Dt = () => G() === "desktop", Ot = () => "#" + Math.floor(Math.random() * 16777215).toString(16), K = (e) => !e || e.length === 0, Nt = (e) => [...new Set(e)], $t = (e) => {
|
|
710
734
|
if (!K(e))
|
|
711
735
|
return Math.max(...e);
|
|
712
|
-
},
|
|
736
|
+
}, Pt = (e) => {
|
|
713
737
|
if (!K(e))
|
|
714
738
|
return Math.min(...e);
|
|
715
|
-
},
|
|
739
|
+
}, Et = (e) => {
|
|
716
740
|
if (!K(e))
|
|
717
741
|
return e.reduce((r, t) => r + t, 0) / e.length;
|
|
718
|
-
},
|
|
742
|
+
}, Lt = (e) => e.reduce((r, t) => r + t, 0), Ut = (e, r) => e.filter(r).length, At = (e) => [...e].reverse(), kt = (e) => {
|
|
719
743
|
const r = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
|
|
720
744
|
return e.forEach((n) => {
|
|
721
745
|
r.has(n) ? t.add(n) : r.add(n);
|
|
722
746
|
}), Array.from(t);
|
|
723
|
-
}, Yt = (e, r) => Math.random() * (r - e) + e, Ft = (e, r, t) => Math.min(Math.max(e, r), t),
|
|
747
|
+
}, Yt = (e, r) => Math.random() * (r - e) + e, Ft = (e, r, t) => Math.min(Math.max(e, r), t), jt = (e, r = 0) => Math.round(e * Math.pow(10, r)) / Math.pow(10, r), Rt = (e, r) => {
|
|
724
748
|
try {
|
|
725
749
|
sessionStorage.setItem(e, JSON.stringify(r));
|
|
726
750
|
} catch (t) {
|
|
@@ -777,33 +801,34 @@ const ft = /* @__PURE__ */ ne(dt), mt = "ui_theme", ht = (e) => typeof e == "str
|
|
|
777
801
|
return e >= 32 ? t + we(e - 32, "0123456789abcdef") : t.substring(0, e);
|
|
778
802
|
};
|
|
779
803
|
async function tr(e) {
|
|
780
|
-
const
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
804
|
+
const [{ default: r }, { default: t }] = await Promise.all([
|
|
805
|
+
import("./sha256-BMg1y0Py.js").then((n) => n.s),
|
|
806
|
+
import("./enc-base64-96WlVdPN.js").then((n) => n.e)
|
|
807
|
+
]);
|
|
808
|
+
return r(e).toString(t);
|
|
784
809
|
}
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
const rr = () =>
|
|
810
|
+
E.extend(st);
|
|
811
|
+
E.extend(ft);
|
|
812
|
+
E.extend(ct);
|
|
813
|
+
E.locale("ko");
|
|
814
|
+
const rr = () => E(), nr = (e = "YYYY-MM-DD") => E().format(e), xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
790
815
|
__proto__: null,
|
|
791
816
|
THEME_COOKIE_NAME: mt,
|
|
792
|
-
arrAverage:
|
|
817
|
+
arrAverage: Et,
|
|
793
818
|
arrCount: Ut,
|
|
794
819
|
arrMax: $t,
|
|
795
|
-
arrMin:
|
|
820
|
+
arrMin: Pt,
|
|
796
821
|
arrReverse: At,
|
|
797
|
-
arrSum:
|
|
798
|
-
arrUnique:
|
|
822
|
+
arrSum: Lt,
|
|
823
|
+
arrUnique: Nt,
|
|
799
824
|
clamp: Ft,
|
|
800
825
|
clearSessionStorage: Bt,
|
|
801
|
-
copyToClipboard:
|
|
826
|
+
copyToClipboard: Ct,
|
|
802
827
|
debounce: It,
|
|
803
828
|
deleteCookie: Gt,
|
|
804
829
|
duplicates: kt,
|
|
805
830
|
encryptSha256: tr,
|
|
806
|
-
generateRandomColor:
|
|
831
|
+
generateRandomColor: Ot,
|
|
807
832
|
generateRandomString: we,
|
|
808
833
|
generateUID: Te,
|
|
809
834
|
getCookie: Wt,
|
|
@@ -832,12 +857,12 @@ const rr = () => L(), nr = (e = "YYYY-MM-DD") => L().format(e), br = /* @__PURE_
|
|
|
832
857
|
padRight: Qt,
|
|
833
858
|
random: Yt,
|
|
834
859
|
removeSessionStorage: zt,
|
|
835
|
-
round:
|
|
860
|
+
round: jt,
|
|
836
861
|
setCookie: qt,
|
|
837
|
-
setSessionStorage:
|
|
838
|
-
throttle:
|
|
862
|
+
setSessionStorage: Rt,
|
|
863
|
+
throttle: _t,
|
|
839
864
|
toCamelCase: Jt
|
|
840
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
865
|
+
}, Symbol.toStringTag, { value: "Module" })), P = (() => {
|
|
841
866
|
try {
|
|
842
867
|
if (import.meta.env.DEV)
|
|
843
868
|
return !0;
|
|
@@ -845,30 +870,30 @@ const rr = () => L(), nr = (e = "YYYY-MM-DD") => L().format(e), br = /* @__PURE_
|
|
|
845
870
|
}
|
|
846
871
|
return !1;
|
|
847
872
|
})();
|
|
848
|
-
let
|
|
873
|
+
let _e = [], Ie = [];
|
|
849
874
|
function sr(e) {
|
|
850
|
-
e.devHosts && (
|
|
875
|
+
e.devHosts && (_e = e.devHosts), e.prodHosts && (Ie = e.prodHosts);
|
|
851
876
|
}
|
|
852
|
-
function
|
|
877
|
+
function Ce() {
|
|
853
878
|
if (typeof window < "u" && window.location)
|
|
854
879
|
return window.location.hostname;
|
|
855
880
|
}
|
|
856
881
|
const be = (() => {
|
|
857
|
-
const e =
|
|
858
|
-
return !!(e &&
|
|
882
|
+
const e = Ce();
|
|
883
|
+
return !!(e && _e.includes(e));
|
|
859
884
|
})(), xe = (() => {
|
|
860
|
-
const e =
|
|
885
|
+
const e = Ce();
|
|
861
886
|
return !!(e && Ie.includes(e));
|
|
862
887
|
})();
|
|
863
888
|
function or() {
|
|
864
|
-
return
|
|
889
|
+
return P ? "X" : be ? "D" : xe ? "P" : "X";
|
|
865
890
|
}
|
|
866
|
-
const
|
|
891
|
+
const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
867
892
|
__proto__: null,
|
|
868
893
|
configureEnvUtils: sr,
|
|
869
894
|
getEnvCode: or,
|
|
870
895
|
isDev: be,
|
|
871
|
-
isLocal:
|
|
896
|
+
isLocal: P,
|
|
872
897
|
isProd: xe
|
|
873
898
|
}, Symbol.toStringTag, { value: "Module" })), b = {
|
|
874
899
|
duration: 4.5,
|
|
@@ -960,30 +985,30 @@ class A {
|
|
|
960
985
|
$.destroy();
|
|
961
986
|
}
|
|
962
987
|
}
|
|
963
|
-
const
|
|
964
|
-
|
|
988
|
+
const N = A.getInstance(), De = (e) => {
|
|
989
|
+
N.showBwgError(e);
|
|
965
990
|
}, ar = (e, r, t) => {
|
|
966
|
-
|
|
967
|
-
}, Ne = (e, r, t) => {
|
|
968
|
-
O.showInfo(e, r, t);
|
|
991
|
+
N.showSuccess(e, r, t);
|
|
969
992
|
}, Oe = (e, r, t) => {
|
|
970
|
-
|
|
993
|
+
N.showInfo(e, r, t);
|
|
994
|
+
}, Ne = (e, r, t) => {
|
|
995
|
+
N.showWarning(e, r, t);
|
|
971
996
|
}, ir = (e, r, t) => {
|
|
972
|
-
|
|
997
|
+
N.showError(e, r, t);
|
|
973
998
|
}, cr = () => {
|
|
974
|
-
|
|
999
|
+
N.destroy();
|
|
975
1000
|
}, ur = (e) => {
|
|
976
|
-
|
|
977
|
-
},
|
|
1001
|
+
N.close(e);
|
|
1002
|
+
}, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
978
1003
|
__proto__: null,
|
|
979
1004
|
closeNotification: ur,
|
|
980
1005
|
destroyNotifications: cr,
|
|
981
1006
|
notiBwgError: De,
|
|
982
1007
|
notiError: ir,
|
|
983
|
-
notiInfo:
|
|
1008
|
+
notiInfo: Oe,
|
|
984
1009
|
notiSuccess: ar,
|
|
985
|
-
notiWarning:
|
|
986
|
-
notificationService:
|
|
1010
|
+
notiWarning: Ne,
|
|
1011
|
+
notificationService: N
|
|
987
1012
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
988
1013
|
let x = null;
|
|
989
1014
|
const oe = async (e) => {
|
|
@@ -1053,7 +1078,7 @@ Y.interceptors.response.use(
|
|
|
1053
1078
|
), e;
|
|
1054
1079
|
},
|
|
1055
1080
|
async (e) => {
|
|
1056
|
-
if (e.config && e.config.showLoading && te.getState().hideLoading(), console.error("❌ API 응답 에러:", e),
|
|
1081
|
+
if (e.config && e.config.showLoading && te.getState().hideLoading(), console.error("❌ API 응답 에러:", e), P && console.error("🚨 Error Details:", {
|
|
1057
1082
|
message: e.message,
|
|
1058
1083
|
status: e.response?.status,
|
|
1059
1084
|
statusText: e.response?.statusText,
|
|
@@ -1086,7 +1111,7 @@ Y.interceptors.response.use(
|
|
|
1086
1111
|
return Promise.reject(e);
|
|
1087
1112
|
}
|
|
1088
1113
|
);
|
|
1089
|
-
const ae = () => Te(),
|
|
1114
|
+
const ae = () => Te(), L = async (e, r, t) => {
|
|
1090
1115
|
try {
|
|
1091
1116
|
const n = {
|
|
1092
1117
|
...z,
|
|
@@ -1121,7 +1146,7 @@ const ae = () => Te(), P = async (e, r, t) => {
|
|
|
1121
1146
|
// data: bxmEncrypt(JSON.stringify(data)),
|
|
1122
1147
|
data: r
|
|
1123
1148
|
};
|
|
1124
|
-
|
|
1149
|
+
P && console.log("__BWG_LOCAL__ 테스트 입니다. ", P), n.method === "GET" ? a.params = v || n.params : (a.data = v || n.data, n.params && (a.params = n.params));
|
|
1125
1150
|
let g;
|
|
1126
1151
|
for (let p = 0; p <= (n.retryCount || 0); p++)
|
|
1127
1152
|
try {
|
|
@@ -1150,7 +1175,7 @@ const ae = () => Te(), P = async (e, r, t) => {
|
|
|
1150
1175
|
} else
|
|
1151
1176
|
g = c;
|
|
1152
1177
|
if (c.isAxiosError && $e(c) && p < (n.retryCount || 0)) {
|
|
1153
|
-
await
|
|
1178
|
+
await Pe(n.retryDelay || 1e3);
|
|
1154
1179
|
continue;
|
|
1155
1180
|
}
|
|
1156
1181
|
break;
|
|
@@ -1162,7 +1187,7 @@ const ae = () => Te(), P = async (e, r, t) => {
|
|
|
1162
1187
|
message: p,
|
|
1163
1188
|
description: u,
|
|
1164
1189
|
duration: 5
|
|
1165
|
-
}) : l == "I" ?
|
|
1190
|
+
}) : l == "I" ? Oe(p, u, 5) : Ne(p, u, 5);
|
|
1166
1191
|
}
|
|
1167
1192
|
throw g;
|
|
1168
1193
|
}
|
|
@@ -1205,7 +1230,7 @@ const ae = () => Te(), P = async (e, r, t) => {
|
|
|
1205
1230
|
// data: bxmEncrypt(JSON.stringify(data)),
|
|
1206
1231
|
data: t
|
|
1207
1232
|
};
|
|
1208
|
-
|
|
1233
|
+
P && console.log("__BWG_LOCAL__ 테스트 입니다. ", P), s.method === "GET" ? i.params = g || s.params : (i.data = g || s.data, s.params && (i.params = s.params));
|
|
1209
1234
|
let p;
|
|
1210
1235
|
for (let c = 0; c <= (s.retryCount || 0); c++)
|
|
1211
1236
|
try {
|
|
@@ -1234,7 +1259,7 @@ const ae = () => Te(), P = async (e, r, t) => {
|
|
|
1234
1259
|
} else
|
|
1235
1260
|
p = u;
|
|
1236
1261
|
if (u.isAxiosError && $e(u) && c < (s.retryCount || 0)) {
|
|
1237
|
-
await
|
|
1262
|
+
await Pe(s.retryDelay || 1e3);
|
|
1238
1263
|
continue;
|
|
1239
1264
|
}
|
|
1240
1265
|
break;
|
|
@@ -1254,7 +1279,7 @@ const ae = () => Te(), P = async (e, r, t) => {
|
|
|
1254
1279
|
} catch (s) {
|
|
1255
1280
|
throw console.error("callService 최종 에러:", s), s;
|
|
1256
1281
|
}
|
|
1257
|
-
}, $e = (e) => !e.response || e.response.status >= 500 && e.response.status < 600,
|
|
1282
|
+
}, $e = (e) => !e.response || e.response.status >= 500 && e.response.status < 600, Pe = (e) => new Promise((r) => setTimeout(r, e)), mr = (e, r, t) => L(e, r, { ...t, method: "GET" }), hr = (e, r, t) => L(e, r, { ...t, method: "POST" }), gr = (e, r, t) => L(e, r, { ...t, method: "PUT" }), pr = (e, r, t) => L(e, r, { ...t, method: "DELETE" }), yr = (e, r, t) => L(e, r, { ...t, method: "PATCH" }), vr = async (e, r, t) => {
|
|
1258
1283
|
try {
|
|
1259
1284
|
const n = await fetch("/api/permissions", {
|
|
1260
1285
|
method: "POST",
|
|
@@ -1281,7 +1306,7 @@ const ae = () => Te(), P = async (e, r, t) => {
|
|
|
1281
1306
|
apiPatch: yr,
|
|
1282
1307
|
apiPost: hr,
|
|
1283
1308
|
apiPut: gr,
|
|
1284
|
-
callService:
|
|
1309
|
+
callService: L,
|
|
1285
1310
|
callService_SYSCD: fr,
|
|
1286
1311
|
getClientIp: lr,
|
|
1287
1312
|
getGuid: ae,
|
|
@@ -1294,20 +1319,20 @@ export {
|
|
|
1294
1319
|
T as A,
|
|
1295
1320
|
xt as B,
|
|
1296
1321
|
Dt as C,
|
|
1297
|
-
|
|
1322
|
+
Ot as D,
|
|
1298
1323
|
K as E,
|
|
1299
|
-
|
|
1324
|
+
Nt as F,
|
|
1300
1325
|
$t as G,
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1326
|
+
Pt as H,
|
|
1327
|
+
Et as I,
|
|
1328
|
+
Lt as J,
|
|
1304
1329
|
Ut as K,
|
|
1305
1330
|
At as L,
|
|
1306
1331
|
kt as M,
|
|
1307
1332
|
Yt as N,
|
|
1308
1333
|
Ft as O,
|
|
1309
|
-
|
|
1310
|
-
|
|
1334
|
+
jt as P,
|
|
1335
|
+
Rt as Q,
|
|
1311
1336
|
Ht as R,
|
|
1312
1337
|
zt as S,
|
|
1313
1338
|
mt as T,
|
|
@@ -1327,7 +1352,7 @@ export {
|
|
|
1327
1352
|
tr as a5,
|
|
1328
1353
|
rr as a6,
|
|
1329
1354
|
nr as a7,
|
|
1330
|
-
|
|
1355
|
+
P as a8,
|
|
1331
1356
|
sr as a9,
|
|
1332
1357
|
Be as aA,
|
|
1333
1358
|
W as aB,
|
|
@@ -1340,41 +1365,42 @@ export {
|
|
|
1340
1365
|
D as aI,
|
|
1341
1366
|
ke as aJ,
|
|
1342
1367
|
Nr as aK,
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1368
|
+
xr as aL,
|
|
1369
|
+
Dr as aM,
|
|
1370
|
+
Or as aN,
|
|
1371
|
+
Cr as aO,
|
|
1372
|
+
br as aP,
|
|
1348
1373
|
ne as aQ,
|
|
1349
|
-
|
|
1374
|
+
Ir as aR,
|
|
1375
|
+
_r as aS,
|
|
1350
1376
|
be as aa,
|
|
1351
1377
|
xe as ab,
|
|
1352
1378
|
or as ac,
|
|
1353
|
-
|
|
1379
|
+
N as ad,
|
|
1354
1380
|
De as ae,
|
|
1355
1381
|
ar as af,
|
|
1356
|
-
|
|
1357
|
-
|
|
1382
|
+
Oe as ag,
|
|
1383
|
+
Ne as ah,
|
|
1358
1384
|
ir as ai,
|
|
1359
1385
|
cr as aj,
|
|
1360
1386
|
ur as ak,
|
|
1361
|
-
|
|
1387
|
+
Ee as al,
|
|
1362
1388
|
se as am,
|
|
1363
1389
|
he as an,
|
|
1364
|
-
|
|
1390
|
+
Le as ao,
|
|
1365
1391
|
Ye as ap,
|
|
1366
1392
|
ge as aq,
|
|
1367
1393
|
pe as ar,
|
|
1368
1394
|
Fe as as,
|
|
1369
|
-
|
|
1395
|
+
je as at,
|
|
1370
1396
|
ye as au,
|
|
1371
1397
|
ve as av,
|
|
1372
1398
|
q as aw,
|
|
1373
|
-
|
|
1399
|
+
Re as ax,
|
|
1374
1400
|
He as ay,
|
|
1375
1401
|
ze as az,
|
|
1376
1402
|
fr as b,
|
|
1377
|
-
|
|
1403
|
+
L as c,
|
|
1378
1404
|
mr as d,
|
|
1379
1405
|
hr as e,
|
|
1380
1406
|
gr as f,
|
|
@@ -1392,11 +1418,11 @@ export {
|
|
|
1392
1418
|
wt as r,
|
|
1393
1419
|
oe as s,
|
|
1394
1420
|
Tt as t,
|
|
1395
|
-
|
|
1421
|
+
_t as u,
|
|
1396
1422
|
dr as v,
|
|
1397
1423
|
It as w,
|
|
1398
|
-
|
|
1424
|
+
Ct as x,
|
|
1399
1425
|
G as y,
|
|
1400
1426
|
bt as z
|
|
1401
1427
|
};
|
|
1402
|
-
//# sourceMappingURL=apiUtils-
|
|
1428
|
+
//# sourceMappingURL=apiUtils-BRaXRbjE.js.map
|