@bwg-ui/core 1.3.6 → 1.3.8
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/CMPrgrMstrP02-CIPnCdt3.cjs +1 -0
- package/dist/chunks/CMPrgrMstrP02-jC3zDeFU.js +154 -0
- package/dist/chunks/CMSearchIntfGwP01-D4qj6J2N.cjs +1 -0
- package/dist/chunks/{CMSearchIntfGwP01-BBdPmalj.js → CMSearchIntfGwP01-DzTHXQi3.js} +31 -31
- package/dist/chunks/MenuReport-BtP1uAmq.cjs +1 -0
- package/dist/chunks/{MenuReport-CYK_Eaqa.js → MenuReport-DgMjx5Hs.js} +5 -5
- package/dist/chunks/SearchAddressP01-B25Exa9E.cjs +1 -0
- package/dist/chunks/SearchAddressP01-B_D3nrkn.js +605 -0
- package/dist/chunks/SearchDepartmentP01-D5ihO3l8.cjs +1 -0
- package/dist/chunks/SearchDepartmentP01-pUAav3Xp.js +352 -0
- package/dist/chunks/SearchDepartmentP02-B3oL1B-h.js +518 -0
- package/dist/chunks/SearchDepartmentP02-CWs8sLuu.cjs +1 -0
- package/dist/chunks/SearchHolidayP01-SuuyAk9T.js +188 -0
- package/dist/chunks/SearchHolidayP01-cJ8Wlkwr.cjs +1 -0
- package/dist/chunks/SearchOrganizationP01-3nDwrB08.cjs +1 -0
- package/dist/chunks/SearchOrganizationP01-ChwLBfVt.js +420 -0
- package/dist/chunks/SearchOrganizationP02-0Suj4DLH.cjs +1 -0
- package/dist/chunks/SearchOrganizationP02-DI0V4Bdz.js +516 -0
- package/dist/chunks/UploadMultiFileP01-Bf1qonGN.cjs +1 -0
- package/dist/chunks/UploadMultiFileP01-BgyIhfac.js +38 -0
- package/dist/chunks/{layout-components-gqu1pmfr.js → layout-components-Lyp9SZ7V.js} +1134 -1008
- package/dist/chunks/layout-components-NtKR0O6Y.cjs +38 -0
- package/dist/chunks/provider-DrmM0H4o.cjs +1 -0
- package/dist/chunks/provider-ff4RVDYo.js +711 -0
- package/dist/components/common/ButtonAccessController.d.ts +2 -3
- package/dist/components/common/ButtonAccessController.d.ts.map +1 -1
- package/dist/components/common/BwgButtonGroup.d.ts +1 -1
- package/dist/components/common/BwgButtonGroup.d.ts.map +1 -1
- package/dist/components/common/BwgCol.d.ts +1 -1
- package/dist/components/common/BwgCol.d.ts.map +1 -1
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/BwgModal.d.ts +10 -0
- package/dist/components/common/BwgModal.d.ts.map +1 -0
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +1 -0
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +4887 -28
- package/dist/components/core/BwgCmnFileItems.d.ts +47 -0
- package/dist/components/core/BwgCmnFileItems.d.ts.map +1 -0
- package/dist/components/core/BwgDeptSearch.d.ts +38 -0
- package/dist/components/core/BwgDeptSearch.d.ts.map +1 -0
- package/dist/components/core/BwgDraggerUploader.d.ts +13 -0
- package/dist/components/core/BwgDraggerUploader.d.ts.map +1 -0
- package/dist/components/core/BwgEmpSearch.d.ts +12 -4
- package/dist/components/core/BwgEmpSearch.d.ts.map +1 -1
- package/dist/components/core/BwgUploader.d.ts +6 -92
- package/dist/components/core/BwgUploader.d.ts.map +1 -1
- package/dist/components/core/BwgUploader_bak.d.ts +98 -0
- package/dist/components/core/BwgUploader_bak.d.ts.map +1 -0
- package/dist/components/core/BwgXlsxUploader.d.ts +25 -0
- package/dist/components/core/BwgXlsxUploader.d.ts.map +1 -0
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.d.ts +11 -2
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +1318 -1164
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +17 -17
- package/dist/components/layout/AppWrapper.d.ts +5 -1
- package/dist/components/layout/AppWrapper.d.ts.map +1 -1
- package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
- package/dist/components/layout/extension/ContentWrapper.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/pages/auth/AuthManagement.d.ts +8 -0
- package/dist/components/pages/auth/AuthManagement.d.ts.map +1 -0
- package/dist/components/pages/auth/AuthSelector.d.ts +28 -0
- package/dist/components/pages/auth/AuthSelector.d.ts.map +1 -0
- package/dist/components/pages/auth/RoleDashBoard.d.ts +13 -0
- package/dist/components/pages/auth/RoleDashBoard.d.ts.map +1 -0
- package/dist/components/pages/auth/RoleView.d.ts +17 -0
- package/dist/components/pages/auth/RoleView.d.ts.map +1 -0
- package/dist/components/pages/board/AdminBoard.d.ts +6 -0
- package/dist/components/pages/board/AdminBoard.d.ts.map +1 -0
- package/dist/components/pages/board/BoardComment.d.ts +8 -0
- package/dist/components/pages/board/BoardComment.d.ts.map +1 -0
- package/dist/components/pages/board/MyBoard.d.ts +6 -0
- package/dist/components/pages/board/MyBoard.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +9 -10
- package/dist/components/pages/index.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/MenuManagement.d.ts +4 -0
- package/dist/components/pages/rsrc/MenuManagement.d.ts.map +1 -0
- package/dist/components/pages/rsrc/{CMMenuPrntSelectModal.d.ts → MenuSelector.d.ts} +5 -4
- package/dist/components/pages/rsrc/MenuSelector.d.ts.map +1 -0
- package/dist/components/pages/rsrc/ProgramManagement.d.ts +4 -0
- package/dist/components/pages/rsrc/ProgramManagement.d.ts.map +1 -0
- package/dist/components/pages/rsrc/{CMMenuPrgrSelectModal.d.ts → ProgramSelector.d.ts} +5 -4
- package/dist/components/pages/rsrc/ProgramSelector.d.ts.map +1 -0
- package/dist/components/pages/syst/CommonCodeManagement.d.ts +4 -0
- package/dist/components/pages/syst/CommonCodeManagement.d.ts.map +1 -0
- package/dist/components/pages/syst/CommonCodeTester.d.ts +7 -0
- package/dist/components/pages/syst/CommonCodeTester.d.ts.map +1 -0
- package/dist/components/pages/types.d.ts +5 -1
- package/dist/components/pages/types.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
- package/dist/components/popup/UploadMultiFileP01.d.ts +14 -0
- package/dist/components/popup/UploadMultiFileP01.d.ts.map +1 -0
- package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +1 -0
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +16 -8
- package/dist/index.cjs +185 -1
- package/dist/index.js +31237 -288
- package/dist/provider/contexts/BwgViewContext.d.ts +8 -1
- package/dist/provider/contexts/BwgViewContext.d.ts.map +1 -1
- package/dist/provider/contexts/CommonCodeContext.d.ts +15 -28
- package/dist/provider/contexts/CommonCodeContext.d.ts.map +1 -1
- package/dist/provider/contexts/MenuButtonContentx.d.ts +1 -0
- package/dist/provider/contexts/MenuButtonContentx.d.ts.map +1 -0
- package/dist/provider/contexts/MenuButtonContext.d.ts +42 -0
- package/dist/provider/contexts/MenuButtonContext.d.ts.map +1 -0
- package/dist/provider/contexts/PageContentContext.d.ts +23 -0
- package/dist/provider/contexts/PageContentContext.d.ts.map +1 -0
- package/dist/provider/contexts/index.d.ts +1 -0
- package/dist/provider/contexts/index.d.ts.map +1 -1
- package/dist/provider/hooks/index.d.ts +1 -0
- package/dist/provider/hooks/index.d.ts.map +1 -1
- package/dist/provider/hooks/useFileUploader.d.ts +74 -0
- package/dist/provider/hooks/useFileUploader.d.ts.map +1 -0
- package/dist/provider/hooks/useSizeConfig.d.ts +2 -2
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +22 -19
- package/dist/stores/codeStore.d.ts +65 -128
- package/dist/stores/codeStore.d.ts.map +1 -1
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.d.ts +3 -3
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +815 -1625
- package/dist/stores/menuModelStore.d.ts +22 -7
- package/dist/stores/menuModelStore.d.ts.map +1 -1
- package/dist/stores/menuViewStore.d.ts +3 -3
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/systemStore.d.ts +50 -17
- package/dist/stores/systemStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/styles/assets/images/menus/ico1-completed.png +0 -0
- package/dist/styles/assets/images/menus/ico1-design.png +0 -0
- package/dist/styles/assets/images/menus/ico1-dev.png +0 -0
- package/dist/styles/assets/images/menus/ico2-completed.png +0 -0
- package/dist/styles/assets/images/menus/ico2-design.png +0 -0
- package/dist/styles/assets/images/menus/ico2-dev.png +0 -0
- package/dist/styles/assets/images/menus/ico3-completed.png +0 -0
- package/dist/styles/assets/images/menus/ico3-design.png +0 -0
- package/dist/styles/assets/images/menus/ico3-dev.png +0 -0
- package/dist/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/commonUtils.d.ts +1 -2
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +25 -25
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +980 -1967
- package/dist/utils/messageUtils.d.ts +36 -48
- package/dist/utils/messageUtils.d.ts.map +1 -1
- package/dist/utils/modalUtils.d.ts +68 -0
- package/dist/utils/modalUtils.d.ts.map +1 -0
- package/dist/utils/notificationUtils.d.ts +50 -41
- package/dist/utils/notificationUtils.d.ts.map +1 -1
- package/dist/utils/serviceConfig.d.ts +9 -3
- package/dist/utils/serviceConfig.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunks/CMSearchIntfGwP01-Cs78BtE7.cjs +0 -1
- package/dist/chunks/MenuReport-BCO-gXwk.cjs +0 -1
- package/dist/chunks/common-components-C61ER0qC.js +0 -52599
- package/dist/chunks/common-components-mXgJEMpT.cjs +0 -1109
- package/dist/chunks/layout-components-D7I6VhXN.cjs +0 -38
- package/dist/chunks/provider-Kxea5IoZ.js +0 -449
- package/dist/chunks/provider-r4mkv5Zs.cjs +0 -1
- package/dist/components/pages/board/CMAdminBoardM01.d.ts +0 -6
- package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +0 -1
- package/dist/components/pages/board/CMBoardS01.d.ts +0 -8
- package/dist/components/pages/board/CMBoardS01.d.ts.map +0 -1
- package/dist/components/pages/board/CMMyBoardM01.d.ts +0 -6
- package/dist/components/pages/board/CMMyBoardM01.d.ts.map +0 -1
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts +0 -3
- package/dist/components/pages/guide/BwgComponentGuideM01.d.ts.map +0 -1
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts +0 -3
- package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts.map +0 -1
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts +0 -3
- package/dist/components/pages/guide/BwgReactGuideM01.d.ts.map +0 -1
- package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts.map +0 -1
- package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts.map +0 -1
- package/dist/components/pages/syst/CMSystCodeM01.d.ts +0 -4
- package/dist/components/pages/syst/CMSystCodeM01.d.ts.map +0 -1
package/dist/utils/index.js
CHANGED
|
@@ -1,1078 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
SRCH_POPU: "SCMPOPU00101",
|
|
17
|
-
// 팝업 조회
|
|
18
|
-
// 즐겨찾기 관련
|
|
19
|
-
AUTH_BMRK: "SCMBMRK00101",
|
|
20
|
-
// 즐겨찾기 관리
|
|
21
|
-
// 시스템 코드 관련
|
|
22
|
-
SYST_CODE: "SCMSYST00101"
|
|
23
|
-
// 시스템 코드 조회
|
|
24
|
-
};
|
|
25
|
-
let fe = {};
|
|
26
|
-
function Gt(e) {
|
|
27
|
-
fe = e, console.log("🔧 Provider 서비스코드 오버라이드 설정:", e);
|
|
28
|
-
}
|
|
29
|
-
function ct(e) {
|
|
30
|
-
return fe[e] && fe[e].trim() !== "" ? fe[e] : Ve[e];
|
|
31
|
-
}
|
|
32
|
-
function ut() {
|
|
33
|
-
const e = {};
|
|
34
|
-
for (const t of Object.keys(Ve))
|
|
35
|
-
e[t] = ct(t);
|
|
36
|
-
return e;
|
|
37
|
-
}
|
|
38
|
-
function Kt() {
|
|
39
|
-
console.log("🔧 bwg-core 서비스코드 설정:"), console.log("📋 Provider 설정 > 기본값 순서로 확인");
|
|
40
|
-
const e = ut();
|
|
41
|
-
for (const [t, r] of Object.entries(e)) {
|
|
42
|
-
const n = fe[t] ? "Provider 설정" : "기본값";
|
|
43
|
-
console.log(` ${t}: ${r} (${n})`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
47
|
-
__proto__: null,
|
|
48
|
-
DEFAULT_SERVICE_CODES: Ve,
|
|
49
|
-
getAllServiceCodes: ut,
|
|
50
|
-
getServiceCode: ct,
|
|
51
|
-
logServiceCodeConfig: Kt,
|
|
52
|
-
setServiceCodeOverrides: Gt
|
|
53
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
54
|
-
var we = { exports: {} };
|
|
55
|
-
function Zt(e) {
|
|
56
|
-
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
57
|
-
}
|
|
58
|
-
var be = { exports: {} };
|
|
59
|
-
const Jt = {}, Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
60
|
-
__proto__: null,
|
|
61
|
-
default: Jt
|
|
62
|
-
}, Symbol.toStringTag, { value: "Module" })), Qt = /* @__PURE__ */ Vt(Xt);
|
|
63
|
-
var er = be.exports, Xe;
|
|
64
|
-
function ft() {
|
|
65
|
-
return Xe || (Xe = 1, (function(e, t) {
|
|
66
|
-
(function(r, n) {
|
|
67
|
-
e.exports = n();
|
|
68
|
-
})(er, function() {
|
|
69
|
-
var r = r || (function(n, u) {
|
|
70
|
-
var l;
|
|
71
|
-
if (typeof window < "u" && window.crypto && (l = window.crypto), typeof self < "u" && self.crypto && (l = self.crypto), typeof globalThis < "u" && globalThis.crypto && (l = globalThis.crypto), !l && typeof window < "u" && window.msCrypto && (l = window.msCrypto), !l && typeof He < "u" && He.crypto && (l = He.crypto), !l && typeof Zt == "function")
|
|
72
|
-
try {
|
|
73
|
-
l = Qt;
|
|
74
|
-
} catch {
|
|
75
|
-
}
|
|
76
|
-
var c = function() {
|
|
77
|
-
if (l) {
|
|
78
|
-
if (typeof l.getRandomValues == "function")
|
|
79
|
-
try {
|
|
80
|
-
return l.getRandomValues(new Uint32Array(1))[0];
|
|
81
|
-
} catch {
|
|
82
|
-
}
|
|
83
|
-
if (typeof l.randomBytes == "function")
|
|
84
|
-
try {
|
|
85
|
-
return l.randomBytes(4).readInt32LE();
|
|
86
|
-
} catch {
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
90
|
-
}, C = Object.create || /* @__PURE__ */ (function() {
|
|
91
|
-
function o() {
|
|
92
|
-
}
|
|
93
|
-
return function(i) {
|
|
94
|
-
var p;
|
|
95
|
-
return o.prototype = i, p = new o(), o.prototype = null, p;
|
|
96
|
-
};
|
|
97
|
-
})(), m = {}, v = m.lib = {}, f = v.Base = /* @__PURE__ */ (function() {
|
|
98
|
-
return {
|
|
99
|
-
/**
|
|
100
|
-
* Creates a new object that inherits from this object.
|
|
101
|
-
*
|
|
102
|
-
* @param {Object} overrides Properties to copy into the new object.
|
|
103
|
-
*
|
|
104
|
-
* @return {Object} The new object.
|
|
105
|
-
*
|
|
106
|
-
* @static
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
*
|
|
110
|
-
* var MyType = CryptoJS.lib.Base.extend({
|
|
111
|
-
* field: 'value',
|
|
112
|
-
*
|
|
113
|
-
* method: function () {
|
|
114
|
-
* }
|
|
115
|
-
* });
|
|
116
|
-
*/
|
|
117
|
-
extend: function(o) {
|
|
118
|
-
var i = C(this);
|
|
119
|
-
return o && i.mixIn(o), (!i.hasOwnProperty("init") || this.init === i.init) && (i.init = function() {
|
|
120
|
-
i.$super.init.apply(this, arguments);
|
|
121
|
-
}), i.init.prototype = i, i.$super = this, i;
|
|
122
|
-
},
|
|
123
|
-
/**
|
|
124
|
-
* Extends this object and runs the init method.
|
|
125
|
-
* Arguments to create() will be passed to init().
|
|
126
|
-
*
|
|
127
|
-
* @return {Object} The new object.
|
|
128
|
-
*
|
|
129
|
-
* @static
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
*
|
|
133
|
-
* var instance = MyType.create();
|
|
134
|
-
*/
|
|
135
|
-
create: function() {
|
|
136
|
-
var o = this.extend();
|
|
137
|
-
return o.init.apply(o, arguments), o;
|
|
138
|
-
},
|
|
139
|
-
/**
|
|
140
|
-
* Initializes a newly created object.
|
|
141
|
-
* Override this method to add some logic when your objects are created.
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
*
|
|
145
|
-
* var MyType = CryptoJS.lib.Base.extend({
|
|
146
|
-
* init: function () {
|
|
147
|
-
* // ...
|
|
148
|
-
* }
|
|
149
|
-
* });
|
|
150
|
-
*/
|
|
151
|
-
init: function() {
|
|
152
|
-
},
|
|
153
|
-
/**
|
|
154
|
-
* Copies properties into this object.
|
|
155
|
-
*
|
|
156
|
-
* @param {Object} properties The properties to mix in.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
*
|
|
160
|
-
* MyType.mixIn({
|
|
161
|
-
* field: 'value'
|
|
162
|
-
* });
|
|
163
|
-
*/
|
|
164
|
-
mixIn: function(o) {
|
|
165
|
-
for (var i in o)
|
|
166
|
-
o.hasOwnProperty(i) && (this[i] = o[i]);
|
|
167
|
-
o.hasOwnProperty("toString") && (this.toString = o.toString);
|
|
168
|
-
},
|
|
169
|
-
/**
|
|
170
|
-
* Creates a copy of this object.
|
|
171
|
-
*
|
|
172
|
-
* @return {Object} The clone.
|
|
173
|
-
*
|
|
174
|
-
* @example
|
|
175
|
-
*
|
|
176
|
-
* var clone = instance.clone();
|
|
177
|
-
*/
|
|
178
|
-
clone: function() {
|
|
179
|
-
return this.init.prototype.extend(this);
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
})(), b = v.WordArray = f.extend({
|
|
183
|
-
/**
|
|
184
|
-
* Initializes a newly created word array.
|
|
185
|
-
*
|
|
186
|
-
* @param {Array} words (Optional) An array of 32-bit words.
|
|
187
|
-
* @param {number} sigBytes (Optional) The number of significant bytes in the words.
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
*
|
|
191
|
-
* var wordArray = CryptoJS.lib.WordArray.create();
|
|
192
|
-
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
193
|
-
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
194
|
-
*/
|
|
195
|
-
init: function(o, i) {
|
|
196
|
-
o = this.words = o || [], i != u ? this.sigBytes = i : this.sigBytes = o.length * 4;
|
|
197
|
-
},
|
|
198
|
-
/**
|
|
199
|
-
* Converts this word array to a string.
|
|
200
|
-
*
|
|
201
|
-
* @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
|
|
202
|
-
*
|
|
203
|
-
* @return {string} The stringified word array.
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
*
|
|
207
|
-
* var string = wordArray + '';
|
|
208
|
-
* var string = wordArray.toString();
|
|
209
|
-
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
210
|
-
*/
|
|
211
|
-
toString: function(o) {
|
|
212
|
-
return (o || y).stringify(this);
|
|
213
|
-
},
|
|
214
|
-
/**
|
|
215
|
-
* Concatenates a word array to this word array.
|
|
216
|
-
*
|
|
217
|
-
* @param {WordArray} wordArray The word array to append.
|
|
218
|
-
*
|
|
219
|
-
* @return {WordArray} This word array.
|
|
220
|
-
*
|
|
221
|
-
* @example
|
|
222
|
-
*
|
|
223
|
-
* wordArray1.concat(wordArray2);
|
|
224
|
-
*/
|
|
225
|
-
concat: function(o) {
|
|
226
|
-
var i = this.words, p = o.words, g = this.sigBytes, S = o.sigBytes;
|
|
227
|
-
if (this.clamp(), g % 4)
|
|
228
|
-
for (var x = 0; x < S; x++) {
|
|
229
|
-
var _ = p[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
230
|
-
i[g + x >>> 2] |= _ << 24 - (g + x) % 4 * 8;
|
|
231
|
-
}
|
|
232
|
-
else
|
|
233
|
-
for (var $ = 0; $ < S; $ += 4)
|
|
234
|
-
i[g + $ >>> 2] = p[$ >>> 2];
|
|
235
|
-
return this.sigBytes += S, this;
|
|
236
|
-
},
|
|
237
|
-
/**
|
|
238
|
-
* Removes insignificant bits.
|
|
239
|
-
*
|
|
240
|
-
* @example
|
|
241
|
-
*
|
|
242
|
-
* wordArray.clamp();
|
|
243
|
-
*/
|
|
244
|
-
clamp: function() {
|
|
245
|
-
var o = this.words, i = this.sigBytes;
|
|
246
|
-
o[i >>> 2] &= 4294967295 << 32 - i % 4 * 8, o.length = n.ceil(i / 4);
|
|
247
|
-
},
|
|
248
|
-
/**
|
|
249
|
-
* Creates a copy of this word array.
|
|
250
|
-
*
|
|
251
|
-
* @return {WordArray} The clone.
|
|
252
|
-
*
|
|
253
|
-
* @example
|
|
254
|
-
*
|
|
255
|
-
* var clone = wordArray.clone();
|
|
256
|
-
*/
|
|
257
|
-
clone: function() {
|
|
258
|
-
var o = f.clone.call(this);
|
|
259
|
-
return o.words = this.words.slice(0), o;
|
|
260
|
-
},
|
|
261
|
-
/**
|
|
262
|
-
* Creates a word array filled with random bytes.
|
|
263
|
-
*
|
|
264
|
-
* @param {number} nBytes The number of random bytes to generate.
|
|
265
|
-
*
|
|
266
|
-
* @return {WordArray} The random word array.
|
|
267
|
-
*
|
|
268
|
-
* @static
|
|
269
|
-
*
|
|
270
|
-
* @example
|
|
271
|
-
*
|
|
272
|
-
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
273
|
-
*/
|
|
274
|
-
random: function(o) {
|
|
275
|
-
for (var i = [], p = 0; p < o; p += 4)
|
|
276
|
-
i.push(c());
|
|
277
|
-
return new b.init(i, o);
|
|
278
|
-
}
|
|
279
|
-
}), h = m.enc = {}, y = h.Hex = {
|
|
280
|
-
/**
|
|
281
|
-
* Converts a word array to a hex string.
|
|
282
|
-
*
|
|
283
|
-
* @param {WordArray} wordArray The word array.
|
|
284
|
-
*
|
|
285
|
-
* @return {string} The hex string.
|
|
286
|
-
*
|
|
287
|
-
* @static
|
|
288
|
-
*
|
|
289
|
-
* @example
|
|
290
|
-
*
|
|
291
|
-
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
292
|
-
*/
|
|
293
|
-
stringify: function(o) {
|
|
294
|
-
for (var i = o.words, p = o.sigBytes, g = [], S = 0; S < p; S++) {
|
|
295
|
-
var x = i[S >>> 2] >>> 24 - S % 4 * 8 & 255;
|
|
296
|
-
g.push((x >>> 4).toString(16)), g.push((x & 15).toString(16));
|
|
297
|
-
}
|
|
298
|
-
return g.join("");
|
|
299
|
-
},
|
|
300
|
-
/**
|
|
301
|
-
* Converts a hex string to a word array.
|
|
302
|
-
*
|
|
303
|
-
* @param {string} hexStr The hex string.
|
|
304
|
-
*
|
|
305
|
-
* @return {WordArray} The word array.
|
|
306
|
-
*
|
|
307
|
-
* @static
|
|
308
|
-
*
|
|
309
|
-
* @example
|
|
310
|
-
*
|
|
311
|
-
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
312
|
-
*/
|
|
313
|
-
parse: function(o) {
|
|
314
|
-
for (var i = o.length, p = [], g = 0; g < i; g += 2)
|
|
315
|
-
p[g >>> 3] |= parseInt(o.substr(g, 2), 16) << 24 - g % 8 * 4;
|
|
316
|
-
return new b.init(p, i / 2);
|
|
317
|
-
}
|
|
318
|
-
}, w = h.Latin1 = {
|
|
319
|
-
/**
|
|
320
|
-
* Converts a word array to a Latin1 string.
|
|
321
|
-
*
|
|
322
|
-
* @param {WordArray} wordArray The word array.
|
|
323
|
-
*
|
|
324
|
-
* @return {string} The Latin1 string.
|
|
325
|
-
*
|
|
326
|
-
* @static
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
*
|
|
330
|
-
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
331
|
-
*/
|
|
332
|
-
stringify: function(o) {
|
|
333
|
-
for (var i = o.words, p = o.sigBytes, g = [], S = 0; S < p; S++) {
|
|
334
|
-
var x = i[S >>> 2] >>> 24 - S % 4 * 8 & 255;
|
|
335
|
-
g.push(String.fromCharCode(x));
|
|
336
|
-
}
|
|
337
|
-
return g.join("");
|
|
338
|
-
},
|
|
339
|
-
/**
|
|
340
|
-
* Converts a Latin1 string to a word array.
|
|
341
|
-
*
|
|
342
|
-
* @param {string} latin1Str The Latin1 string.
|
|
343
|
-
*
|
|
344
|
-
* @return {WordArray} The word array.
|
|
345
|
-
*
|
|
346
|
-
* @static
|
|
347
|
-
*
|
|
348
|
-
* @example
|
|
349
|
-
*
|
|
350
|
-
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
351
|
-
*/
|
|
352
|
-
parse: function(o) {
|
|
353
|
-
for (var i = o.length, p = [], g = 0; g < i; g++)
|
|
354
|
-
p[g >>> 2] |= (o.charCodeAt(g) & 255) << 24 - g % 4 * 8;
|
|
355
|
-
return new b.init(p, i);
|
|
356
|
-
}
|
|
357
|
-
}, a = h.Utf8 = {
|
|
358
|
-
/**
|
|
359
|
-
* Converts a word array to a UTF-8 string.
|
|
360
|
-
*
|
|
361
|
-
* @param {WordArray} wordArray The word array.
|
|
362
|
-
*
|
|
363
|
-
* @return {string} The UTF-8 string.
|
|
364
|
-
*
|
|
365
|
-
* @static
|
|
366
|
-
*
|
|
367
|
-
* @example
|
|
368
|
-
*
|
|
369
|
-
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
370
|
-
*/
|
|
371
|
-
stringify: function(o) {
|
|
372
|
-
try {
|
|
373
|
-
return decodeURIComponent(escape(w.stringify(o)));
|
|
374
|
-
} catch {
|
|
375
|
-
throw new Error("Malformed UTF-8 data");
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
/**
|
|
379
|
-
* Converts a UTF-8 string to a word array.
|
|
380
|
-
*
|
|
381
|
-
* @param {string} utf8Str The UTF-8 string.
|
|
382
|
-
*
|
|
383
|
-
* @return {WordArray} The word array.
|
|
384
|
-
*
|
|
385
|
-
* @static
|
|
386
|
-
*
|
|
387
|
-
* @example
|
|
388
|
-
*
|
|
389
|
-
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
390
|
-
*/
|
|
391
|
-
parse: function(o) {
|
|
392
|
-
return w.parse(unescape(encodeURIComponent(o)));
|
|
393
|
-
}
|
|
394
|
-
}, s = v.BufferedBlockAlgorithm = f.extend({
|
|
395
|
-
/**
|
|
396
|
-
* Resets this block algorithm's data buffer to its initial state.
|
|
397
|
-
*
|
|
398
|
-
* @example
|
|
399
|
-
*
|
|
400
|
-
* bufferedBlockAlgorithm.reset();
|
|
401
|
-
*/
|
|
402
|
-
reset: function() {
|
|
403
|
-
this._data = new b.init(), this._nDataBytes = 0;
|
|
404
|
-
},
|
|
405
|
-
/**
|
|
406
|
-
* Adds new data to this block algorithm's buffer.
|
|
407
|
-
*
|
|
408
|
-
* @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
|
|
409
|
-
*
|
|
410
|
-
* @example
|
|
411
|
-
*
|
|
412
|
-
* bufferedBlockAlgorithm._append('data');
|
|
413
|
-
* bufferedBlockAlgorithm._append(wordArray);
|
|
414
|
-
*/
|
|
415
|
-
_append: function(o) {
|
|
416
|
-
typeof o == "string" && (o = a.parse(o)), this._data.concat(o), this._nDataBytes += o.sigBytes;
|
|
417
|
-
},
|
|
418
|
-
/**
|
|
419
|
-
* Processes available data blocks.
|
|
420
|
-
*
|
|
421
|
-
* This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
|
|
422
|
-
*
|
|
423
|
-
* @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
|
|
424
|
-
*
|
|
425
|
-
* @return {WordArray} The processed data.
|
|
426
|
-
*
|
|
427
|
-
* @example
|
|
428
|
-
*
|
|
429
|
-
* var processedData = bufferedBlockAlgorithm._process();
|
|
430
|
-
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
431
|
-
*/
|
|
432
|
-
_process: function(o) {
|
|
433
|
-
var i, p = this._data, g = p.words, S = p.sigBytes, x = this.blockSize, _ = x * 4, $ = S / _;
|
|
434
|
-
o ? $ = n.ceil($) : $ = n.max(($ | 0) - this._minBufferSize, 0);
|
|
435
|
-
var M = $ * x, k = n.min(M * 4, S);
|
|
436
|
-
if (M) {
|
|
437
|
-
for (var T = 0; T < M; T += x)
|
|
438
|
-
this._doProcessBlock(g, T);
|
|
439
|
-
i = g.splice(0, M), p.sigBytes -= k;
|
|
440
|
-
}
|
|
441
|
-
return new b.init(i, k);
|
|
442
|
-
},
|
|
443
|
-
/**
|
|
444
|
-
* Creates a copy of this object.
|
|
445
|
-
*
|
|
446
|
-
* @return {Object} The clone.
|
|
447
|
-
*
|
|
448
|
-
* @example
|
|
449
|
-
*
|
|
450
|
-
* var clone = bufferedBlockAlgorithm.clone();
|
|
451
|
-
*/
|
|
452
|
-
clone: function() {
|
|
453
|
-
var o = f.clone.call(this);
|
|
454
|
-
return o._data = this._data.clone(), o;
|
|
455
|
-
},
|
|
456
|
-
_minBufferSize: 0
|
|
457
|
-
});
|
|
458
|
-
v.Hasher = s.extend({
|
|
459
|
-
/**
|
|
460
|
-
* Configuration options.
|
|
461
|
-
*/
|
|
462
|
-
cfg: f.extend(),
|
|
463
|
-
/**
|
|
464
|
-
* Initializes a newly created hasher.
|
|
465
|
-
*
|
|
466
|
-
* @param {Object} cfg (Optional) The configuration options to use for this hash computation.
|
|
467
|
-
*
|
|
468
|
-
* @example
|
|
469
|
-
*
|
|
470
|
-
* var hasher = CryptoJS.algo.SHA256.create();
|
|
471
|
-
*/
|
|
472
|
-
init: function(o) {
|
|
473
|
-
this.cfg = this.cfg.extend(o), this.reset();
|
|
474
|
-
},
|
|
475
|
-
/**
|
|
476
|
-
* Resets this hasher to its initial state.
|
|
477
|
-
*
|
|
478
|
-
* @example
|
|
479
|
-
*
|
|
480
|
-
* hasher.reset();
|
|
481
|
-
*/
|
|
482
|
-
reset: function() {
|
|
483
|
-
s.reset.call(this), this._doReset();
|
|
484
|
-
},
|
|
485
|
-
/**
|
|
486
|
-
* Updates this hasher with a message.
|
|
487
|
-
*
|
|
488
|
-
* @param {WordArray|string} messageUpdate The message to append.
|
|
489
|
-
*
|
|
490
|
-
* @return {Hasher} This hasher.
|
|
491
|
-
*
|
|
492
|
-
* @example
|
|
493
|
-
*
|
|
494
|
-
* hasher.update('message');
|
|
495
|
-
* hasher.update(wordArray);
|
|
496
|
-
*/
|
|
497
|
-
update: function(o) {
|
|
498
|
-
return this._append(o), this._process(), this;
|
|
499
|
-
},
|
|
500
|
-
/**
|
|
501
|
-
* Finalizes the hash computation.
|
|
502
|
-
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
503
|
-
*
|
|
504
|
-
* @param {WordArray|string} messageUpdate (Optional) A final message update.
|
|
505
|
-
*
|
|
506
|
-
* @return {WordArray} The hash.
|
|
507
|
-
*
|
|
508
|
-
* @example
|
|
509
|
-
*
|
|
510
|
-
* var hash = hasher.finalize();
|
|
511
|
-
* var hash = hasher.finalize('message');
|
|
512
|
-
* var hash = hasher.finalize(wordArray);
|
|
513
|
-
*/
|
|
514
|
-
finalize: function(o) {
|
|
515
|
-
o && this._append(o);
|
|
516
|
-
var i = this._doFinalize();
|
|
517
|
-
return i;
|
|
518
|
-
},
|
|
519
|
-
blockSize: 16,
|
|
520
|
-
/**
|
|
521
|
-
* Creates a shortcut function to a hasher's object interface.
|
|
522
|
-
*
|
|
523
|
-
* @param {Hasher} hasher The hasher to create a helper for.
|
|
524
|
-
*
|
|
525
|
-
* @return {Function} The shortcut function.
|
|
526
|
-
*
|
|
527
|
-
* @static
|
|
528
|
-
*
|
|
529
|
-
* @example
|
|
530
|
-
*
|
|
531
|
-
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
532
|
-
*/
|
|
533
|
-
_createHelper: function(o) {
|
|
534
|
-
return function(i, p) {
|
|
535
|
-
return new o.init(p).finalize(i);
|
|
536
|
-
};
|
|
537
|
-
},
|
|
538
|
-
/**
|
|
539
|
-
* Creates a shortcut function to the HMAC's object interface.
|
|
540
|
-
*
|
|
541
|
-
* @param {Hasher} hasher The hasher to use in this HMAC helper.
|
|
542
|
-
*
|
|
543
|
-
* @return {Function} The shortcut function.
|
|
544
|
-
*
|
|
545
|
-
* @static
|
|
546
|
-
*
|
|
547
|
-
* @example
|
|
548
|
-
*
|
|
549
|
-
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
550
|
-
*/
|
|
551
|
-
_createHmacHelper: function(o) {
|
|
552
|
-
return function(i, p) {
|
|
553
|
-
return new d.HMAC.init(o, p).finalize(i);
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
var d = m.algo = {};
|
|
558
|
-
return m;
|
|
559
|
-
})(Math);
|
|
560
|
-
return r;
|
|
561
|
-
});
|
|
562
|
-
})(be)), be.exports;
|
|
563
|
-
}
|
|
564
|
-
var tr = we.exports, Qe;
|
|
565
|
-
function rr() {
|
|
566
|
-
return Qe || (Qe = 1, (function(e, t) {
|
|
567
|
-
(function(r, n) {
|
|
568
|
-
e.exports = n(/* @__PURE__ */ ft());
|
|
569
|
-
})(tr, function(r) {
|
|
570
|
-
return (function() {
|
|
571
|
-
var n = r, u = n.lib, l = u.WordArray, c = n.enc;
|
|
572
|
-
c.Base64 = {
|
|
573
|
-
/**
|
|
574
|
-
* Converts a word array to a Base64 string.
|
|
575
|
-
*
|
|
576
|
-
* @param {WordArray} wordArray The word array.
|
|
577
|
-
*
|
|
578
|
-
* @return {string} The Base64 string.
|
|
579
|
-
*
|
|
580
|
-
* @static
|
|
581
|
-
*
|
|
582
|
-
* @example
|
|
583
|
-
*
|
|
584
|
-
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
585
|
-
*/
|
|
586
|
-
stringify: function(m) {
|
|
587
|
-
var v = m.words, f = m.sigBytes, b = this._map;
|
|
588
|
-
m.clamp();
|
|
589
|
-
for (var h = [], y = 0; y < f; y += 3)
|
|
590
|
-
for (var w = v[y >>> 2] >>> 24 - y % 4 * 8 & 255, a = v[y + 1 >>> 2] >>> 24 - (y + 1) % 4 * 8 & 255, s = v[y + 2 >>> 2] >>> 24 - (y + 2) % 4 * 8 & 255, d = w << 16 | a << 8 | s, o = 0; o < 4 && y + o * 0.75 < f; o++)
|
|
591
|
-
h.push(b.charAt(d >>> 6 * (3 - o) & 63));
|
|
592
|
-
var i = b.charAt(64);
|
|
593
|
-
if (i)
|
|
594
|
-
for (; h.length % 4; )
|
|
595
|
-
h.push(i);
|
|
596
|
-
return h.join("");
|
|
597
|
-
},
|
|
598
|
-
/**
|
|
599
|
-
* Converts a Base64 string to a word array.
|
|
600
|
-
*
|
|
601
|
-
* @param {string} base64Str The Base64 string.
|
|
602
|
-
*
|
|
603
|
-
* @return {WordArray} The word array.
|
|
604
|
-
*
|
|
605
|
-
* @static
|
|
606
|
-
*
|
|
607
|
-
* @example
|
|
608
|
-
*
|
|
609
|
-
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
610
|
-
*/
|
|
611
|
-
parse: function(m) {
|
|
612
|
-
var v = m.length, f = this._map, b = this._reverseMap;
|
|
613
|
-
if (!b) {
|
|
614
|
-
b = this._reverseMap = [];
|
|
615
|
-
for (var h = 0; h < f.length; h++)
|
|
616
|
-
b[f.charCodeAt(h)] = h;
|
|
617
|
-
}
|
|
618
|
-
var y = f.charAt(64);
|
|
619
|
-
if (y) {
|
|
620
|
-
var w = m.indexOf(y);
|
|
621
|
-
w !== -1 && (v = w);
|
|
622
|
-
}
|
|
623
|
-
return C(m, v, b);
|
|
624
|
-
},
|
|
625
|
-
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
626
|
-
};
|
|
627
|
-
function C(m, v, f) {
|
|
628
|
-
for (var b = [], h = 0, y = 0; y < v; y++)
|
|
629
|
-
if (y % 4) {
|
|
630
|
-
var w = f[m.charCodeAt(y - 1)] << y % 4 * 2, a = f[m.charCodeAt(y)] >>> 6 - y % 4 * 2, s = w | a;
|
|
631
|
-
b[h >>> 2] |= s << 24 - h % 4 * 8, h++;
|
|
632
|
-
}
|
|
633
|
-
return l.create(b, h);
|
|
634
|
-
}
|
|
635
|
-
})(), r.enc.Base64;
|
|
636
|
-
});
|
|
637
|
-
})(we)), we.exports;
|
|
638
|
-
}
|
|
639
|
-
var nr = /* @__PURE__ */ rr();
|
|
640
|
-
const or = /* @__PURE__ */ oe(nr);
|
|
641
|
-
var Ce = { exports: {} }, sr = Ce.exports, et;
|
|
642
|
-
function ar() {
|
|
643
|
-
return et || (et = 1, (function(e, t) {
|
|
644
|
-
(function(r, n) {
|
|
645
|
-
e.exports = n(/* @__PURE__ */ ft());
|
|
646
|
-
})(sr, function(r) {
|
|
647
|
-
return (function(n) {
|
|
648
|
-
var u = r, l = u.lib, c = l.WordArray, C = l.Hasher, m = u.algo, v = [], f = [];
|
|
649
|
-
(function() {
|
|
650
|
-
function y(d) {
|
|
651
|
-
for (var o = n.sqrt(d), i = 2; i <= o; i++)
|
|
652
|
-
if (!(d % i))
|
|
653
|
-
return !1;
|
|
654
|
-
return !0;
|
|
655
|
-
}
|
|
656
|
-
function w(d) {
|
|
657
|
-
return (d - (d | 0)) * 4294967296 | 0;
|
|
658
|
-
}
|
|
659
|
-
for (var a = 2, s = 0; s < 64; )
|
|
660
|
-
y(a) && (s < 8 && (v[s] = w(n.pow(a, 1 / 2))), f[s] = w(n.pow(a, 1 / 3)), s++), a++;
|
|
661
|
-
})();
|
|
662
|
-
var b = [], h = m.SHA256 = C.extend({
|
|
663
|
-
_doReset: function() {
|
|
664
|
-
this._hash = new c.init(v.slice(0));
|
|
665
|
-
},
|
|
666
|
-
_doProcessBlock: function(y, w) {
|
|
667
|
-
for (var a = this._hash.words, s = a[0], d = a[1], o = a[2], i = a[3], p = a[4], g = a[5], S = a[6], x = a[7], _ = 0; _ < 64; _++) {
|
|
668
|
-
if (_ < 16)
|
|
669
|
-
b[_] = y[w + _] | 0;
|
|
670
|
-
else {
|
|
671
|
-
var $ = b[_ - 15], M = ($ << 25 | $ >>> 7) ^ ($ << 14 | $ >>> 18) ^ $ >>> 3, k = b[_ - 2], T = (k << 15 | k >>> 17) ^ (k << 13 | k >>> 19) ^ k >>> 10;
|
|
672
|
-
b[_] = M + b[_ - 7] + T + b[_ - 16];
|
|
673
|
-
}
|
|
674
|
-
var O = p & g ^ ~p & S, q = s & d ^ s & o ^ d & o, V = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22), K = (p << 26 | p >>> 6) ^ (p << 21 | p >>> 11) ^ (p << 7 | p >>> 25), X = x + K + O + f[_] + b[_], Z = V + q;
|
|
675
|
-
x = S, S = g, g = p, p = i + X | 0, i = o, o = d, d = s, s = X + Z | 0;
|
|
676
|
-
}
|
|
677
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + d | 0, a[2] = a[2] + o | 0, a[3] = a[3] + i | 0, a[4] = a[4] + p | 0, a[5] = a[5] + g | 0, a[6] = a[6] + S | 0, a[7] = a[7] + x | 0;
|
|
678
|
-
},
|
|
679
|
-
_doFinalize: function() {
|
|
680
|
-
var y = this._data, w = y.words, a = this._nDataBytes * 8, s = y.sigBytes * 8;
|
|
681
|
-
return w[s >>> 5] |= 128 << 24 - s % 32, w[(s + 64 >>> 9 << 4) + 14] = n.floor(a / 4294967296), w[(s + 64 >>> 9 << 4) + 15] = a, y.sigBytes = w.length * 4, this._process(), this._hash;
|
|
682
|
-
},
|
|
683
|
-
clone: function() {
|
|
684
|
-
var y = C.clone.call(this);
|
|
685
|
-
return y._hash = this._hash.clone(), y;
|
|
686
|
-
}
|
|
687
|
-
});
|
|
688
|
-
u.SHA256 = C._createHelper(h), u.HmacSHA256 = C._createHmacHelper(h);
|
|
689
|
-
})(Math), r.SHA256;
|
|
690
|
-
});
|
|
691
|
-
})(Ce)), Ce.exports;
|
|
692
|
-
}
|
|
693
|
-
var ir = /* @__PURE__ */ ar();
|
|
694
|
-
const cr = /* @__PURE__ */ oe(ir);
|
|
695
|
-
var Se = { exports: {} }, ur = Se.exports, tt;
|
|
696
|
-
function lr() {
|
|
697
|
-
return tt || (tt = 1, (function(e, t) {
|
|
698
|
-
(function(r, n) {
|
|
699
|
-
e.exports = n();
|
|
700
|
-
})(ur, (function() {
|
|
701
|
-
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, u = /\d/, l = /\d\d/, c = /\d\d?/, C = /\d*[^-_:/,()\s\d]+/, m = {}, v = function(s) {
|
|
702
|
-
return (s = +s) + (s > 68 ? 1900 : 2e3);
|
|
703
|
-
}, f = function(s) {
|
|
704
|
-
return function(d) {
|
|
705
|
-
this[s] = +d;
|
|
706
|
-
};
|
|
707
|
-
}, b = [/[+-]\d\d:?(\d\d)?|Z/, function(s) {
|
|
708
|
-
(this.zone || (this.zone = {})).offset = (function(d) {
|
|
709
|
-
if (!d || d === "Z") return 0;
|
|
710
|
-
var o = d.match(/([+-]|\d\d)/g), i = 60 * o[1] + (+o[2] || 0);
|
|
711
|
-
return i === 0 ? 0 : o[0] === "+" ? -i : i;
|
|
712
|
-
})(s);
|
|
713
|
-
}], h = function(s) {
|
|
714
|
-
var d = m[s];
|
|
715
|
-
return d && (d.indexOf ? d : d.s.concat(d.f));
|
|
716
|
-
}, y = function(s, d) {
|
|
717
|
-
var o, i = m.meridiem;
|
|
718
|
-
if (i) {
|
|
719
|
-
for (var p = 1; p <= 24; p += 1) if (s.indexOf(i(p, 0, d)) > -1) {
|
|
720
|
-
o = p > 12;
|
|
721
|
-
break;
|
|
722
|
-
}
|
|
723
|
-
} else o = s === (d ? "pm" : "PM");
|
|
724
|
-
return o;
|
|
725
|
-
}, w = { A: [C, function(s) {
|
|
726
|
-
this.afternoon = y(s, !1);
|
|
727
|
-
}], a: [C, function(s) {
|
|
728
|
-
this.afternoon = y(s, !0);
|
|
729
|
-
}], Q: [u, function(s) {
|
|
730
|
-
this.month = 3 * (s - 1) + 1;
|
|
731
|
-
}], S: [u, function(s) {
|
|
732
|
-
this.milliseconds = 100 * +s;
|
|
733
|
-
}], SS: [l, function(s) {
|
|
734
|
-
this.milliseconds = 10 * +s;
|
|
735
|
-
}], SSS: [/\d{3}/, function(s) {
|
|
736
|
-
this.milliseconds = +s;
|
|
737
|
-
}], s: [c, f("seconds")], ss: [c, f("seconds")], m: [c, f("minutes")], mm: [c, f("minutes")], H: [c, f("hours")], h: [c, f("hours")], HH: [c, f("hours")], hh: [c, f("hours")], D: [c, f("day")], DD: [l, f("day")], Do: [C, function(s) {
|
|
738
|
-
var d = m.ordinal, o = s.match(/\d+/);
|
|
739
|
-
if (this.day = o[0], d) for (var i = 1; i <= 31; i += 1) d(i).replace(/\[|\]/g, "") === s && (this.day = i);
|
|
740
|
-
}], w: [c, f("week")], ww: [l, f("week")], M: [c, f("month")], MM: [l, f("month")], MMM: [C, function(s) {
|
|
741
|
-
var d = h("months"), o = (h("monthsShort") || d.map((function(i) {
|
|
742
|
-
return i.slice(0, 3);
|
|
743
|
-
}))).indexOf(s) + 1;
|
|
744
|
-
if (o < 1) throw new Error();
|
|
745
|
-
this.month = o % 12 || o;
|
|
746
|
-
}], MMMM: [C, function(s) {
|
|
747
|
-
var d = h("months").indexOf(s) + 1;
|
|
748
|
-
if (d < 1) throw new Error();
|
|
749
|
-
this.month = d % 12 || d;
|
|
750
|
-
}], Y: [/[+-]?\d+/, f("year")], YY: [l, function(s) {
|
|
751
|
-
this.year = v(s);
|
|
752
|
-
}], YYYY: [/\d{4}/, f("year")], Z: b, ZZ: b };
|
|
753
|
-
function a(s) {
|
|
754
|
-
var d, o;
|
|
755
|
-
d = s, o = m && m.formats;
|
|
756
|
-
for (var i = (s = d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(M, k, T) {
|
|
757
|
-
var O = T && T.toUpperCase();
|
|
758
|
-
return k || o[T] || r[T] || o[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(q, V, K) {
|
|
759
|
-
return V || K.slice(1);
|
|
760
|
-
}));
|
|
761
|
-
}))).match(n), p = i.length, g = 0; g < p; g += 1) {
|
|
762
|
-
var S = i[g], x = w[S], _ = x && x[0], $ = x && x[1];
|
|
763
|
-
i[g] = $ ? { regex: _, parser: $ } : S.replace(/^\[|\]$/g, "");
|
|
764
|
-
}
|
|
765
|
-
return function(M) {
|
|
766
|
-
for (var k = {}, T = 0, O = 0; T < p; T += 1) {
|
|
767
|
-
var q = i[T];
|
|
768
|
-
if (typeof q == "string") O += q.length;
|
|
769
|
-
else {
|
|
770
|
-
var V = q.regex, K = q.parser, X = M.slice(O), Z = V.exec(X)[0];
|
|
771
|
-
K.call(k, Z), M = M.replace(Z, "");
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
return (function(Q) {
|
|
775
|
-
var he = Q.afternoon;
|
|
776
|
-
if (he !== void 0) {
|
|
777
|
-
var Y = Q.hours;
|
|
778
|
-
he ? Y < 12 && (Q.hours += 12) : Y === 12 && (Q.hours = 0), delete Q.afternoon;
|
|
779
|
-
}
|
|
780
|
-
})(k), k;
|
|
781
|
-
};
|
|
782
|
-
}
|
|
783
|
-
return function(s, d, o) {
|
|
784
|
-
o.p.customParseFormat = !0, s && s.parseTwoDigitYear && (v = s.parseTwoDigitYear);
|
|
785
|
-
var i = d.prototype, p = i.parse;
|
|
786
|
-
i.parse = function(g) {
|
|
787
|
-
var S = g.date, x = g.utc, _ = g.args;
|
|
788
|
-
this.$u = x;
|
|
789
|
-
var $ = _[1];
|
|
790
|
-
if (typeof $ == "string") {
|
|
791
|
-
var M = _[2] === !0, k = _[3] === !0, T = M || k, O = _[2];
|
|
792
|
-
k && (O = _[2]), m = this.$locale(), !M && O && (m = o.Ls[O]), this.$d = (function(X, Z, Q, he) {
|
|
793
|
-
try {
|
|
794
|
-
if (["x", "X"].indexOf(Z) > -1) return new Date((Z === "X" ? 1e3 : 1) * X);
|
|
795
|
-
var Y = a(Z)(X), Ue = Y.year, ge = Y.month, Ft = Y.day, Ht = Y.hours, zt = Y.minutes, jt = Y.seconds, qt = Y.milliseconds, Ze = Y.zone, Je = Y.week, Ae = /* @__PURE__ */ new Date(), Ye = Ft || (Ue || ge ? 1 : Ae.getDate()), Re = Ue || Ae.getFullYear(), ye = 0;
|
|
796
|
-
Ue && !ge || (ye = ge > 0 ? ge - 1 : Ae.getMonth());
|
|
797
|
-
var ve, Be = Ht || 0, Le = zt || 0, Pe = jt || 0, Fe = qt || 0;
|
|
798
|
-
return Ze ? new Date(Date.UTC(Re, ye, Ye, Be, Le, Pe, Fe + 60 * Ze.offset * 1e3)) : Q ? new Date(Date.UTC(Re, ye, Ye, Be, Le, Pe, Fe)) : (ve = new Date(Re, ye, Ye, Be, Le, Pe, Fe), Je && (ve = he(ve).week(Je).toDate()), ve);
|
|
799
|
-
} catch {
|
|
800
|
-
return /* @__PURE__ */ new Date("");
|
|
801
|
-
}
|
|
802
|
-
})(S, $, x, o), this.init(), O && O !== !0 && (this.$L = this.locale(O).$L), T && S != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
|
|
803
|
-
} else if ($ instanceof Array) for (var q = $.length, V = 1; V <= q; V += 1) {
|
|
804
|
-
_[1] = $[V - 1];
|
|
805
|
-
var K = o.apply(this, _);
|
|
806
|
-
if (K.isValid()) {
|
|
807
|
-
this.$d = K.$d, this.$L = K.$L, this.init();
|
|
808
|
-
break;
|
|
809
|
-
}
|
|
810
|
-
V === q && (this.$d = /* @__PURE__ */ new Date(""));
|
|
811
|
-
}
|
|
812
|
-
else p.call(this, g);
|
|
813
|
-
};
|
|
814
|
-
};
|
|
815
|
-
}));
|
|
816
|
-
})(Se)), Se.exports;
|
|
817
|
-
}
|
|
818
|
-
var fr = /* @__PURE__ */ lr();
|
|
819
|
-
const dr = /* @__PURE__ */ oe(fr);
|
|
820
|
-
var xe = { exports: {} }, pr = xe.exports, rt;
|
|
821
|
-
function mr() {
|
|
822
|
-
return rt || (rt = 1, (function(e, t) {
|
|
823
|
-
(function(r, n) {
|
|
824
|
-
e.exports = n();
|
|
825
|
-
})(pr, (function() {
|
|
826
|
-
var r = "month", n = "quarter";
|
|
827
|
-
return function(u, l) {
|
|
828
|
-
var c = l.prototype;
|
|
829
|
-
c.quarter = function(v) {
|
|
830
|
-
return this.$utils().u(v) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (v - 1));
|
|
831
|
-
};
|
|
832
|
-
var C = c.add;
|
|
833
|
-
c.add = function(v, f) {
|
|
834
|
-
return v = Number(v), this.$utils().p(f) === n ? this.add(3 * v, r) : C.bind(this)(v, f);
|
|
835
|
-
};
|
|
836
|
-
var m = c.startOf;
|
|
837
|
-
c.startOf = function(v, f) {
|
|
838
|
-
var b = this.$utils(), h = !!b.u(f) || f;
|
|
839
|
-
if (b.p(v) === n) {
|
|
840
|
-
var y = this.quarter() - 1;
|
|
841
|
-
return h ? this.month(3 * y).startOf(r).startOf("day") : this.month(3 * y + 2).endOf(r).endOf("day");
|
|
842
|
-
}
|
|
843
|
-
return m.bind(this)(v, f);
|
|
844
|
-
};
|
|
845
|
-
};
|
|
846
|
-
}));
|
|
847
|
-
})(xe)), xe.exports;
|
|
848
|
-
}
|
|
849
|
-
var hr = /* @__PURE__ */ mr();
|
|
850
|
-
const gr = /* @__PURE__ */ oe(hr);
|
|
851
|
-
var _e = { exports: {} }, yr = _e.exports, nt;
|
|
852
|
-
function vr() {
|
|
853
|
-
return nt || (nt = 1, (function(e, t) {
|
|
854
|
-
(function(r, n) {
|
|
855
|
-
e.exports = n();
|
|
856
|
-
})(yr, (function() {
|
|
857
|
-
return function(r, n, u) {
|
|
858
|
-
r = r || {};
|
|
859
|
-
var l = n.prototype, c = { 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" };
|
|
860
|
-
function C(v, f, b, h) {
|
|
861
|
-
return l.fromToBase(v, f, b, h);
|
|
862
|
-
}
|
|
863
|
-
u.en.relativeTime = c, l.fromToBase = function(v, f, b, h, y) {
|
|
864
|
-
for (var w, a, s, d = b.$locale().relativeTime || c, o = 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" }], i = o.length, p = 0; p < i; p += 1) {
|
|
865
|
-
var g = o[p];
|
|
866
|
-
g.d && (w = h ? u(v).diff(b, g.d, !0) : b.diff(v, g.d, !0));
|
|
867
|
-
var S = (r.rounding || Math.round)(Math.abs(w));
|
|
868
|
-
if (s = w > 0, S <= g.r || !g.r) {
|
|
869
|
-
S <= 1 && p > 0 && (g = o[p - 1]);
|
|
870
|
-
var x = d[g.l];
|
|
871
|
-
y && (S = y("" + S)), a = typeof x == "string" ? x.replace("%d", S) : x(S, f, g.l, s);
|
|
872
|
-
break;
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
if (f) return a;
|
|
876
|
-
var _ = s ? d.future : d.past;
|
|
877
|
-
return typeof _ == "function" ? _(a) : _.replace("%s", a);
|
|
878
|
-
}, l.to = function(v, f) {
|
|
879
|
-
return C(v, f, this, !0);
|
|
880
|
-
}, l.from = function(v, f) {
|
|
881
|
-
return C(v, f, this);
|
|
882
|
-
};
|
|
883
|
-
var m = function(v) {
|
|
884
|
-
return v.$u ? u.utc() : u();
|
|
885
|
-
};
|
|
886
|
-
l.toNow = function(v) {
|
|
887
|
-
return this.to(m(this), v);
|
|
888
|
-
}, l.fromNow = function(v) {
|
|
889
|
-
return this.from(m(this), v);
|
|
890
|
-
};
|
|
891
|
-
};
|
|
892
|
-
}));
|
|
893
|
-
})(_e)), _e.exports;
|
|
894
|
-
}
|
|
895
|
-
var wr = /* @__PURE__ */ vr();
|
|
896
|
-
const br = /* @__PURE__ */ oe(wr);
|
|
897
|
-
var $e = { exports: {} }, Cr = $e.exports, ot;
|
|
898
|
-
function Sr() {
|
|
899
|
-
return ot || (ot = 1, (function(e, t) {
|
|
900
|
-
(function(r, n) {
|
|
901
|
-
e.exports = n();
|
|
902
|
-
})(Cr, (function() {
|
|
903
|
-
var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
|
|
904
|
-
return function(u, l, c) {
|
|
905
|
-
var C, m = function(h, y, w) {
|
|
906
|
-
w === void 0 && (w = {});
|
|
907
|
-
var a = new Date(h), s = (function(d, o) {
|
|
908
|
-
o === void 0 && (o = {});
|
|
909
|
-
var i = o.timeZoneName || "short", p = d + "|" + i, g = n[p];
|
|
910
|
-
return g || (g = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: d, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i }), n[p] = g), g;
|
|
911
|
-
})(y, w);
|
|
912
|
-
return s.formatToParts(a);
|
|
913
|
-
}, v = function(h, y) {
|
|
914
|
-
for (var w = m(h, y), a = [], s = 0; s < w.length; s += 1) {
|
|
915
|
-
var d = w[s], o = d.type, i = d.value, p = r[o];
|
|
916
|
-
p >= 0 && (a[p] = parseInt(i, 10));
|
|
917
|
-
}
|
|
918
|
-
var g = a[3], S = g === 24 ? 0 : g, x = a[0] + "-" + a[1] + "-" + a[2] + " " + S + ":" + a[4] + ":" + a[5] + ":000", _ = +h;
|
|
919
|
-
return (c.utc(x).valueOf() - (_ -= _ % 1e3)) / 6e4;
|
|
920
|
-
}, f = l.prototype;
|
|
921
|
-
f.tz = function(h, y) {
|
|
922
|
-
h === void 0 && (h = C);
|
|
923
|
-
var w, a = this.utcOffset(), s = this.toDate(), d = s.toLocaleString("en-US", { timeZone: h }), o = Math.round((s - new Date(d)) / 1e3 / 60), i = 15 * -Math.round(s.getTimezoneOffset() / 15) - o;
|
|
924
|
-
if (!Number(i)) w = this.utcOffset(0, y);
|
|
925
|
-
else if (w = c(d, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(i, !0), y) {
|
|
926
|
-
var p = w.utcOffset();
|
|
927
|
-
w = w.add(a - p, "minute");
|
|
928
|
-
}
|
|
929
|
-
return w.$x.$timezone = h, w;
|
|
930
|
-
}, f.offsetName = function(h) {
|
|
931
|
-
var y = this.$x.$timezone || c.tz.guess(), w = m(this.valueOf(), y, { timeZoneName: h }).find((function(a) {
|
|
932
|
-
return a.type.toLowerCase() === "timezonename";
|
|
933
|
-
}));
|
|
934
|
-
return w && w.value;
|
|
935
|
-
};
|
|
936
|
-
var b = f.startOf;
|
|
937
|
-
f.startOf = function(h, y) {
|
|
938
|
-
if (!this.$x || !this.$x.$timezone) return b.call(this, h, y);
|
|
939
|
-
var w = c(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
940
|
-
return b.call(w, h, y).tz(this.$x.$timezone, !0);
|
|
941
|
-
}, c.tz = function(h, y, w) {
|
|
942
|
-
var a = w && y, s = w || y || C, d = v(+c(), s);
|
|
943
|
-
if (typeof h != "string") return c(h).tz(s);
|
|
944
|
-
var o = (function(S, x, _) {
|
|
945
|
-
var $ = S - 60 * x * 1e3, M = v($, _);
|
|
946
|
-
if (x === M) return [$, x];
|
|
947
|
-
var k = v($ -= 60 * (M - x) * 1e3, _);
|
|
948
|
-
return M === k ? [$, M] : [S - 60 * Math.min(M, k) * 1e3, Math.max(M, k)];
|
|
949
|
-
})(c.utc(h, a).valueOf(), d, s), i = o[0], p = o[1], g = c(i).utcOffset(p);
|
|
950
|
-
return g.$x.$timezone = s, g;
|
|
951
|
-
}, c.tz.guess = function() {
|
|
952
|
-
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
953
|
-
}, c.tz.setDefault = function(h) {
|
|
954
|
-
C = h;
|
|
955
|
-
};
|
|
956
|
-
};
|
|
957
|
-
}));
|
|
958
|
-
})($e)), $e.exports;
|
|
959
|
-
}
|
|
960
|
-
var xr = /* @__PURE__ */ Sr();
|
|
961
|
-
const _r = /* @__PURE__ */ oe(xr);
|
|
962
|
-
var Me = { exports: {} }, $r = Me.exports, st;
|
|
963
|
-
function Mr() {
|
|
964
|
-
return st || (st = 1, (function(e, t) {
|
|
965
|
-
(function(r, n) {
|
|
966
|
-
e.exports = n();
|
|
967
|
-
})($r, (function() {
|
|
968
|
-
var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, u = /([+-]|\d\d)/g;
|
|
969
|
-
return function(l, c, C) {
|
|
970
|
-
var m = c.prototype;
|
|
971
|
-
C.utc = function(a) {
|
|
972
|
-
var s = { date: a, utc: !0, args: arguments };
|
|
973
|
-
return new c(s);
|
|
974
|
-
}, m.utc = function(a) {
|
|
975
|
-
var s = C(this.toDate(), { locale: this.$L, utc: !0 });
|
|
976
|
-
return a ? s.add(this.utcOffset(), r) : s;
|
|
977
|
-
}, m.local = function() {
|
|
978
|
-
return C(this.toDate(), { locale: this.$L, utc: !1 });
|
|
979
|
-
};
|
|
980
|
-
var v = m.parse;
|
|
981
|
-
m.parse = function(a) {
|
|
982
|
-
a.utc && (this.$u = !0), this.$utils().u(a.$offset) || (this.$offset = a.$offset), v.call(this, a);
|
|
983
|
-
};
|
|
984
|
-
var f = m.init;
|
|
985
|
-
m.init = function() {
|
|
986
|
-
if (this.$u) {
|
|
987
|
-
var a = this.$d;
|
|
988
|
-
this.$y = a.getUTCFullYear(), this.$M = a.getUTCMonth(), this.$D = a.getUTCDate(), this.$W = a.getUTCDay(), this.$H = a.getUTCHours(), this.$m = a.getUTCMinutes(), this.$s = a.getUTCSeconds(), this.$ms = a.getUTCMilliseconds();
|
|
989
|
-
} else f.call(this);
|
|
990
|
-
};
|
|
991
|
-
var b = m.utcOffset;
|
|
992
|
-
m.utcOffset = function(a, s) {
|
|
993
|
-
var d = this.$utils().u;
|
|
994
|
-
if (d(a)) return this.$u ? 0 : d(this.$offset) ? b.call(this) : this.$offset;
|
|
995
|
-
if (typeof a == "string" && (a = (function(g) {
|
|
996
|
-
g === void 0 && (g = "");
|
|
997
|
-
var S = g.match(n);
|
|
998
|
-
if (!S) return null;
|
|
999
|
-
var x = ("" + S[0]).match(u) || ["-", 0, 0], _ = x[0], $ = 60 * +x[1] + +x[2];
|
|
1000
|
-
return $ === 0 ? 0 : _ === "+" ? $ : -$;
|
|
1001
|
-
})(a), a === null)) return this;
|
|
1002
|
-
var o = Math.abs(a) <= 16 ? 60 * a : a;
|
|
1003
|
-
if (o === 0) return this.utc(s);
|
|
1004
|
-
var i = this.clone();
|
|
1005
|
-
if (s) return i.$offset = o, i.$u = !1, i;
|
|
1006
|
-
var p = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1007
|
-
return (i = this.local().add(o + p, r)).$offset = o, i.$x.$localOffset = p, i;
|
|
1008
|
-
};
|
|
1009
|
-
var h = m.format;
|
|
1010
|
-
m.format = function(a) {
|
|
1011
|
-
var s = a || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
1012
|
-
return h.call(this, s);
|
|
1013
|
-
}, m.valueOf = function() {
|
|
1014
|
-
var a = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
1015
|
-
return this.$d.valueOf() - 6e4 * a;
|
|
1016
|
-
}, m.isUTC = function() {
|
|
1017
|
-
return !!this.$u;
|
|
1018
|
-
}, m.toISOString = function() {
|
|
1019
|
-
return this.toDate().toISOString();
|
|
1020
|
-
}, m.toString = function() {
|
|
1021
|
-
return this.toDate().toUTCString();
|
|
1022
|
-
};
|
|
1023
|
-
var y = m.toDate;
|
|
1024
|
-
m.toDate = function(a) {
|
|
1025
|
-
return a === "s" && this.$offset ? C(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : y.call(this);
|
|
1026
|
-
};
|
|
1027
|
-
var w = m.diff;
|
|
1028
|
-
m.diff = function(a, s, d) {
|
|
1029
|
-
if (a && this.$u === a.$u) return w.call(this, a, s, d);
|
|
1030
|
-
var o = this.local(), i = C(a).local();
|
|
1031
|
-
return w.call(o, i, s, d);
|
|
1032
|
-
};
|
|
1033
|
-
};
|
|
1034
|
-
}));
|
|
1035
|
-
})(Me)), Me.exports;
|
|
1036
|
-
}
|
|
1037
|
-
var kr = /* @__PURE__ */ Mr();
|
|
1038
|
-
const Dr = /* @__PURE__ */ oe(kr), Tr = "ui_theme", Ir = (e) => typeof e == "string", Or = (e) => typeof e == "number" && !isNaN(e), Er = (e) => typeof e == "boolean", Nr = (e) => typeof e == "function", Ur = (e) => e !== null && typeof e == "object", Ar = (e) => Array.isArray(e), Yr = (e) => e === null, Rr = (e) => e === void 0, Br = (e) => e == null, Lr = (e, t) => {
|
|
1039
|
-
let r = 0;
|
|
1
|
+
import K from "axios";
|
|
2
|
+
import Ae from "crypto-js/enc-base64";
|
|
3
|
+
import De from "crypto-js/sha256";
|
|
4
|
+
import m from "dayjs";
|
|
5
|
+
import xe from "dayjs/plugin/customParseFormat";
|
|
6
|
+
import Pe from "dayjs/plugin/quarterOfYear";
|
|
7
|
+
import Le from "dayjs/plugin/relativeTime";
|
|
8
|
+
import Re from "dayjs/plugin/timezone";
|
|
9
|
+
import $e from "dayjs/plugin/utc";
|
|
10
|
+
import { notification as C, message as S, Modal as I } from "antd";
|
|
11
|
+
import { useUserStore as i } from "../stores/index.js";
|
|
12
|
+
import { createRoot as Fe } from "react-dom/client";
|
|
13
|
+
import * as r from "@ant-design/colors";
|
|
14
|
+
const Oe = "ui_theme", Ye = (e) => typeof e == "string", je = (e) => typeof e == "number" && !isNaN(e), Ve = (e) => typeof e == "boolean", Be = (e) => typeof e == "function", Ge = (e) => e !== null && typeof e == "object", He = (e) => Array.isArray(e), Ke = (e) => e === null, ze = (e) => e === void 0, We = (e) => e == null, qe = (e, t) => {
|
|
15
|
+
let o = 0;
|
|
1040
16
|
return (...n) => {
|
|
1041
|
-
const
|
|
1042
|
-
|
|
17
|
+
const s = Date.now();
|
|
18
|
+
s - o >= t && (o = s, e(...n));
|
|
1043
19
|
};
|
|
1044
|
-
},
|
|
1045
|
-
let
|
|
20
|
+
}, Je = (e, t) => {
|
|
21
|
+
let o;
|
|
1046
22
|
return (...n) => {
|
|
1047
|
-
clearTimeout(
|
|
23
|
+
clearTimeout(o), o = setTimeout(() => e(...n), t);
|
|
1048
24
|
};
|
|
1049
|
-
},
|
|
25
|
+
}, Xe = async (e) => {
|
|
1050
26
|
try {
|
|
1051
27
|
return await navigator.clipboard.writeText(e), !0;
|
|
1052
28
|
} catch (t) {
|
|
1053
29
|
return console.error("Error copying to clipboard:", t), !1;
|
|
1054
30
|
}
|
|
1055
|
-
},
|
|
31
|
+
}, O = () => {
|
|
1056
32
|
const e = window.innerWidth;
|
|
1057
33
|
return e < 768 ? "mobile" : e < 1024 ? "tablet" : "desktop";
|
|
1058
|
-
},
|
|
34
|
+
}, Qe = () => O() === "mobile", Ze = () => O() === "tablet", et = () => O() === "desktop", tt = () => {
|
|
1059
35
|
const e = new Uint32Array(1);
|
|
1060
36
|
return crypto.getRandomValues(e), "#" + (e[0] & 16777215).toString(16).padStart(6, "0");
|
|
1061
|
-
},
|
|
1062
|
-
if (!
|
|
37
|
+
}, Y = (e) => !e || e.length === 0, ot = (e) => [...new Set(e)], rt = (e) => {
|
|
38
|
+
if (!Y(e))
|
|
1063
39
|
return Math.max(...e);
|
|
1064
|
-
},
|
|
1065
|
-
if (!
|
|
40
|
+
}, nt = (e) => {
|
|
41
|
+
if (!Y(e))
|
|
1066
42
|
return Math.min(...e);
|
|
1067
|
-
},
|
|
1068
|
-
if (!
|
|
1069
|
-
return e.reduce((t,
|
|
1070
|
-
},
|
|
1071
|
-
const t = /* @__PURE__ */ new Set(),
|
|
43
|
+
}, st = (e) => {
|
|
44
|
+
if (!Y(e))
|
|
45
|
+
return e.reduce((t, o) => t + o, 0) / e.length;
|
|
46
|
+
}, at = (e) => e.reduce((t, o) => t + o, 0), lt = (e, t) => e.filter(t).length, ct = (e) => [...e].reverse(), it = (e) => {
|
|
47
|
+
const t = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
|
|
1072
48
|
return e.forEach((n) => {
|
|
1073
|
-
t.has(n) ?
|
|
1074
|
-
}), Array.from(
|
|
1075
|
-
},
|
|
49
|
+
t.has(n) ? o.add(n) : t.add(n);
|
|
50
|
+
}), Array.from(o);
|
|
51
|
+
}, ut = (e, t) => (() => {
|
|
1076
52
|
if (typeof crypto < "u" && crypto.getRandomValues) {
|
|
1077
53
|
const n = new Uint32Array(1);
|
|
1078
54
|
return crypto.getRandomValues(n), n[0] / 4294967295;
|
|
@@ -1080,159 +56,159 @@ const Dr = /* @__PURE__ */ oe(kr), Tr = "ui_theme", Ir = (e) => typeof e == "str
|
|
|
1080
56
|
const { randomBytes: n } = require("crypto");
|
|
1081
57
|
return n(4).readUInt32BE(0) / 4294967295;
|
|
1082
58
|
}
|
|
1083
|
-
})() * (t - e) + e,
|
|
59
|
+
})() * (t - e) + e, dt = (e, t, o) => Math.min(Math.max(e, t), o), gt = (e, t = 0) => Math.round(e * Math.pow(10, t)) / Math.pow(10, t), mt = (e, t) => {
|
|
1084
60
|
try {
|
|
1085
61
|
sessionStorage.setItem(e, JSON.stringify(t));
|
|
1086
|
-
} catch (
|
|
1087
|
-
console.error("Error saving to sessionStorage:",
|
|
62
|
+
} catch (o) {
|
|
63
|
+
console.error("Error saving to sessionStorage:", o);
|
|
1088
64
|
}
|
|
1089
|
-
},
|
|
65
|
+
}, pt = (e, t) => {
|
|
1090
66
|
try {
|
|
1091
|
-
const
|
|
1092
|
-
return
|
|
1093
|
-
} catch (
|
|
1094
|
-
return console.error("Error reading from sessionStorage:",
|
|
67
|
+
const o = sessionStorage.getItem(e);
|
|
68
|
+
return o ? JSON.parse(o) : t || null;
|
|
69
|
+
} catch (o) {
|
|
70
|
+
return console.error("Error reading from sessionStorage:", o), t || null;
|
|
1095
71
|
}
|
|
1096
|
-
},
|
|
72
|
+
}, ft = (e) => {
|
|
1097
73
|
try {
|
|
1098
74
|
sessionStorage.removeItem(e);
|
|
1099
75
|
} catch (t) {
|
|
1100
76
|
console.error("Error removing from sessionStorage:", t);
|
|
1101
77
|
}
|
|
1102
|
-
},
|
|
78
|
+
}, yt = () => {
|
|
1103
79
|
try {
|
|
1104
80
|
sessionStorage.clear();
|
|
1105
81
|
} catch (e) {
|
|
1106
82
|
console.error("Error clearing sessionStorage:", e);
|
|
1107
83
|
}
|
|
1108
|
-
},
|
|
84
|
+
}, bt = (e, t, o = 30) => {
|
|
1109
85
|
const n = /* @__PURE__ */ new Date();
|
|
1110
|
-
n.setTime(n.getTime() +
|
|
1111
|
-
},
|
|
1112
|
-
const t = e + "=",
|
|
1113
|
-
for (let n = 0; n <
|
|
1114
|
-
let
|
|
1115
|
-
for (;
|
|
1116
|
-
if (
|
|
86
|
+
n.setTime(n.getTime() + o * 24 * 60 * 60 * 1e3), document.cookie = `${e}=${t};expires=${n.toUTCString()};path=/`;
|
|
87
|
+
}, ht = (e) => {
|
|
88
|
+
const t = e + "=", o = document.cookie.split(";");
|
|
89
|
+
for (let n = 0; n < o.length; n++) {
|
|
90
|
+
let s = o[n];
|
|
91
|
+
for (; s.charAt(0) === " "; ) s = s.substring(1, s.length);
|
|
92
|
+
if (s.indexOf(t) === 0) return s.substring(t.length, s.length);
|
|
1117
93
|
}
|
|
1118
94
|
return null;
|
|
1119
|
-
},
|
|
95
|
+
}, wt = (e) => {
|
|
1120
96
|
document.cookie = `${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`;
|
|
1121
|
-
},
|
|
97
|
+
}, ee = (e) => typeof e != "string" ? !e : e.trim().length === 0, Ct = (e, t) => ee(e) ? t : e || "", St = (e) => e.replace(/-([a-z])/g, (t) => t[1].toUpperCase()), kt = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), vt = (e) => {
|
|
1122
98
|
try {
|
|
1123
99
|
return new URL(e), !0;
|
|
1124
100
|
} catch {
|
|
1125
101
|
return !1;
|
|
1126
102
|
}
|
|
1127
|
-
},
|
|
103
|
+
}, Mt = (e, t, o = " ") => e.padStart(t, o), _t = (e, t, o = " ") => e.padEnd(t, o), te = (e, t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") => {
|
|
1128
104
|
if (!t || t.length === 0)
|
|
1129
105
|
throw new Error("chars must not be empty.");
|
|
1130
|
-
const
|
|
106
|
+
const o = t.length, n = [], s = () => {
|
|
1131
107
|
if (typeof crypto < "u" && crypto.getRandomValues) {
|
|
1132
|
-
const
|
|
1133
|
-
return crypto.getRandomValues(
|
|
108
|
+
const a = new Uint32Array(1);
|
|
109
|
+
return crypto.getRandomValues(a), a[0] % o;
|
|
1134
110
|
}
|
|
1135
111
|
const { randomBytes: l } = require("crypto");
|
|
1136
|
-
return l(4).readUInt32BE(0) %
|
|
112
|
+
return l(4).readUInt32BE(0) % o;
|
|
1137
113
|
};
|
|
1138
114
|
for (let l = 0; l < e; l++)
|
|
1139
|
-
n.push(t[
|
|
115
|
+
n.push(t[s()]);
|
|
1140
116
|
return n.join("");
|
|
1141
|
-
},
|
|
117
|
+
}, oe = () => {
|
|
1142
118
|
if (typeof crypto < "u" && "randomUUID" in crypto)
|
|
1143
119
|
return crypto.randomUUID();
|
|
1144
120
|
let e;
|
|
1145
121
|
if (typeof crypto < "u" && typeof crypto.getRandomValues == "function")
|
|
1146
122
|
e = new Uint8Array(16), crypto.getRandomValues(e);
|
|
1147
123
|
else {
|
|
1148
|
-
const { randomBytes:
|
|
1149
|
-
e = Uint8Array.from(
|
|
124
|
+
const { randomBytes: o } = require("crypto");
|
|
125
|
+
e = Uint8Array.from(o(16));
|
|
1150
126
|
}
|
|
1151
127
|
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
|
|
1152
|
-
const t = Array.from(e, (
|
|
128
|
+
const t = Array.from(e, (o) => o.toString(16).padStart(2, "0")).join("");
|
|
1153
129
|
return t.slice(0, 8) + "-" + t.slice(8, 12) + "-" + t.slice(12, 16) + "-" + t.slice(16, 20) + "-" + t.slice(20);
|
|
1154
|
-
},
|
|
1155
|
-
const
|
|
1156
|
-
return e >= 32 ?
|
|
130
|
+
}, z = (e = 32) => {
|
|
131
|
+
const o = oe().replace(/-/g, "");
|
|
132
|
+
return e >= 32 ? o + te(e - 32, "0123456789abcdef") : o.substring(0, e);
|
|
1157
133
|
};
|
|
1158
|
-
async function
|
|
1159
|
-
return
|
|
134
|
+
async function Nt(e) {
|
|
135
|
+
return De(e).toString(Ae);
|
|
1160
136
|
}
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
const
|
|
1168
|
-
let
|
|
1169
|
-
const
|
|
1170
|
-
|
|
1171
|
-
},
|
|
137
|
+
m.extend(Le);
|
|
138
|
+
m.extend($e);
|
|
139
|
+
m.extend(Re);
|
|
140
|
+
m.locale("ko");
|
|
141
|
+
m.extend(xe);
|
|
142
|
+
m.extend(Pe);
|
|
143
|
+
const N = "YYYYMMDD", re = () => m(), ne = (e = N) => se(re(), e), se = (e, t = N) => m(e).format(t), j = (e, t = N) => m(e, t, !0).isValid(), Tt = (e) => j(e, "YYYYMMDD"), It = (e) => j(e, "YYYY"), Ut = (e) => j(e, "YYYYMM"), Et = (e, t = "month", o = N) => m(e).startOf(t).format(o), At = (e, t = "month", o = N) => m(e).endOf(t).format(o), Dt = (e, t, o = "day", n = N) => m(e).add(t, o).format(n), xt = (e, t, o = "day") => m(e).diff(m(t), o);
|
|
144
|
+
let ae = {};
|
|
145
|
+
const Pt = (e) => {
|
|
146
|
+
ae = e;
|
|
147
|
+
}, M = () => ae, le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1172
148
|
__proto__: null,
|
|
1173
|
-
DEFAULT_FMT:
|
|
1174
|
-
THEME_COOKIE_NAME:
|
|
1175
|
-
add:
|
|
1176
|
-
arrAverage:
|
|
1177
|
-
arrCount:
|
|
1178
|
-
arrMax:
|
|
1179
|
-
arrMin:
|
|
1180
|
-
arrReverse:
|
|
1181
|
-
arrSum:
|
|
1182
|
-
arrUnique:
|
|
1183
|
-
clamp:
|
|
1184
|
-
clearSessionStorage:
|
|
1185
|
-
copyToClipboard:
|
|
1186
|
-
debounce:
|
|
1187
|
-
deleteCookie:
|
|
1188
|
-
diff:
|
|
1189
|
-
duplicates:
|
|
1190
|
-
encryptSha256:
|
|
1191
|
-
endOf:
|
|
1192
|
-
format:
|
|
1193
|
-
generateRandomColor:
|
|
1194
|
-
generateRandomString:
|
|
1195
|
-
generateUID:
|
|
1196
|
-
generateUUIDv4:
|
|
1197
|
-
getApiDeps:
|
|
1198
|
-
getCookie:
|
|
1199
|
-
getDeviceType:
|
|
1200
|
-
getSessionStorage:
|
|
1201
|
-
getTodateString:
|
|
1202
|
-
initApiDeps:
|
|
1203
|
-
isArray:
|
|
1204
|
-
isBoolean:
|
|
1205
|
-
isDesktop:
|
|
1206
|
-
isEmpty:
|
|
1207
|
-
isEmptyArray:
|
|
1208
|
-
isFunction:
|
|
1209
|
-
isMobile:
|
|
1210
|
-
isNull:
|
|
1211
|
-
isNullOrUndefined:
|
|
1212
|
-
isNumber:
|
|
1213
|
-
isObject:
|
|
1214
|
-
isSafeEmpty:
|
|
1215
|
-
isString:
|
|
1216
|
-
isTablet:
|
|
1217
|
-
isUndefined:
|
|
1218
|
-
isValid:
|
|
1219
|
-
isValidDate:
|
|
1220
|
-
isValidEmail:
|
|
1221
|
-
isValidUrl:
|
|
1222
|
-
isValidYear:
|
|
1223
|
-
isValidYearMonth:
|
|
1224
|
-
now:
|
|
1225
|
-
padLeft:
|
|
1226
|
-
padRight:
|
|
1227
|
-
random:
|
|
1228
|
-
removeSessionStorage:
|
|
1229
|
-
round:
|
|
1230
|
-
setCookie:
|
|
1231
|
-
setSessionStorage:
|
|
1232
|
-
startOf:
|
|
1233
|
-
throttle:
|
|
1234
|
-
toCamelCase:
|
|
1235
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
149
|
+
DEFAULT_FMT: N,
|
|
150
|
+
THEME_COOKIE_NAME: Oe,
|
|
151
|
+
add: Dt,
|
|
152
|
+
arrAverage: st,
|
|
153
|
+
arrCount: lt,
|
|
154
|
+
arrMax: rt,
|
|
155
|
+
arrMin: nt,
|
|
156
|
+
arrReverse: ct,
|
|
157
|
+
arrSum: at,
|
|
158
|
+
arrUnique: ot,
|
|
159
|
+
clamp: dt,
|
|
160
|
+
clearSessionStorage: yt,
|
|
161
|
+
copyToClipboard: Xe,
|
|
162
|
+
debounce: Je,
|
|
163
|
+
deleteCookie: wt,
|
|
164
|
+
diff: xt,
|
|
165
|
+
duplicates: it,
|
|
166
|
+
encryptSha256: Nt,
|
|
167
|
+
endOf: At,
|
|
168
|
+
format: se,
|
|
169
|
+
generateRandomColor: tt,
|
|
170
|
+
generateRandomString: te,
|
|
171
|
+
generateUID: z,
|
|
172
|
+
generateUUIDv4: oe,
|
|
173
|
+
getApiDeps: M,
|
|
174
|
+
getCookie: ht,
|
|
175
|
+
getDeviceType: O,
|
|
176
|
+
getSessionStorage: pt,
|
|
177
|
+
getTodateString: ne,
|
|
178
|
+
initApiDeps: Pt,
|
|
179
|
+
isArray: He,
|
|
180
|
+
isBoolean: Ve,
|
|
181
|
+
isDesktop: et,
|
|
182
|
+
isEmpty: ee,
|
|
183
|
+
isEmptyArray: Y,
|
|
184
|
+
isFunction: Be,
|
|
185
|
+
isMobile: Qe,
|
|
186
|
+
isNull: Ke,
|
|
187
|
+
isNullOrUndefined: We,
|
|
188
|
+
isNumber: je,
|
|
189
|
+
isObject: Ge,
|
|
190
|
+
isSafeEmpty: Ct,
|
|
191
|
+
isString: Ye,
|
|
192
|
+
isTablet: Ze,
|
|
193
|
+
isUndefined: ze,
|
|
194
|
+
isValid: j,
|
|
195
|
+
isValidDate: Tt,
|
|
196
|
+
isValidEmail: kt,
|
|
197
|
+
isValidUrl: vt,
|
|
198
|
+
isValidYear: It,
|
|
199
|
+
isValidYearMonth: Ut,
|
|
200
|
+
now: re,
|
|
201
|
+
padLeft: Mt,
|
|
202
|
+
padRight: _t,
|
|
203
|
+
random: ut,
|
|
204
|
+
removeSessionStorage: ft,
|
|
205
|
+
round: gt,
|
|
206
|
+
setCookie: bt,
|
|
207
|
+
setSessionStorage: mt,
|
|
208
|
+
startOf: Et,
|
|
209
|
+
throttle: qe,
|
|
210
|
+
toCamelCase: St
|
|
211
|
+
}, Symbol.toStringTag, { value: "Module" })), W = (() => {
|
|
1236
212
|
try {
|
|
1237
213
|
if (import.meta.env.DEV)
|
|
1238
214
|
return !0;
|
|
@@ -1240,200 +216,156 @@ const $n = (e) => {
|
|
|
1240
216
|
}
|
|
1241
217
|
return !1;
|
|
1242
218
|
})();
|
|
1243
|
-
let
|
|
1244
|
-
function
|
|
1245
|
-
e.devHosts && (
|
|
219
|
+
let ce = [], ie = [];
|
|
220
|
+
function Lt(e) {
|
|
221
|
+
e.devHosts && (ce = e.devHosts), e.prodHosts && (ie = e.prodHosts);
|
|
1246
222
|
}
|
|
1247
|
-
function
|
|
223
|
+
function ue() {
|
|
1248
224
|
if (typeof window < "u" && window.location)
|
|
1249
225
|
return window.location.hostname;
|
|
1250
226
|
}
|
|
1251
|
-
const
|
|
1252
|
-
const e =
|
|
1253
|
-
return !!(e &&
|
|
1254
|
-
})(),
|
|
1255
|
-
const e =
|
|
1256
|
-
return !!(e &&
|
|
227
|
+
const de = (() => {
|
|
228
|
+
const e = ue();
|
|
229
|
+
return !!(e && ce.includes(e));
|
|
230
|
+
})(), ge = (() => {
|
|
231
|
+
const e = ue();
|
|
232
|
+
return !!(e && ie.includes(e));
|
|
1257
233
|
})();
|
|
1258
|
-
function
|
|
1259
|
-
return
|
|
234
|
+
function Rt() {
|
|
235
|
+
return W ? "X" : de ? "D" : ge ? "P" : "X";
|
|
1260
236
|
}
|
|
1261
|
-
const
|
|
237
|
+
const me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1262
238
|
__proto__: null,
|
|
1263
|
-
configureEnvUtils:
|
|
1264
|
-
getEnvCode:
|
|
1265
|
-
isDev:
|
|
1266
|
-
isLocal:
|
|
1267
|
-
isProd:
|
|
1268
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
239
|
+
configureEnvUtils: Lt,
|
|
240
|
+
getEnvCode: Rt,
|
|
241
|
+
isDev: de,
|
|
242
|
+
isLocal: W,
|
|
243
|
+
isProd: ge
|
|
244
|
+
}, Symbol.toStringTag, { value: "Module" })), $t = {
|
|
245
|
+
success: "성공",
|
|
246
|
+
error: "실패",
|
|
247
|
+
warning: "경고",
|
|
248
|
+
info: "안내"
|
|
1272
249
|
};
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
message: `${t}`,
|
|
1307
|
-
description: r,
|
|
1308
|
-
duration: n || W.duration,
|
|
1309
|
-
placement: W.placement
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
/**
|
|
1313
|
-
* 정보 알림
|
|
1314
|
-
*/
|
|
1315
|
-
showInfo(t, r, n) {
|
|
1316
|
-
ee.info({
|
|
1317
|
-
message: `${t}`,
|
|
1318
|
-
description: r,
|
|
1319
|
-
duration: n || W.duration,
|
|
1320
|
-
placement: W.placement
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
/**
|
|
1324
|
-
* 경고 알림
|
|
1325
|
-
*/
|
|
1326
|
-
showWarning(t, r, n) {
|
|
1327
|
-
ee.warning({
|
|
1328
|
-
message: `${t}`,
|
|
1329
|
-
description: r,
|
|
1330
|
-
duration: n || W.duration,
|
|
1331
|
-
placement: W.placement
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
/**
|
|
1335
|
-
* 일반 에러 알림
|
|
1336
|
-
*/
|
|
1337
|
-
showError(t, r, n) {
|
|
1338
|
-
ee.error({
|
|
1339
|
-
message: `${t}`,
|
|
1340
|
-
description: r,
|
|
1341
|
-
duration: n || W.duration,
|
|
1342
|
-
placement: W.placement
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
/**
|
|
1346
|
-
* 모든 알림 닫기
|
|
1347
|
-
*/
|
|
1348
|
-
destroy() {
|
|
1349
|
-
ee.destroy();
|
|
1350
|
-
}
|
|
1351
|
-
/**
|
|
1352
|
-
* 특정 키의 알림 닫기
|
|
1353
|
-
*/
|
|
1354
|
-
close(t) {
|
|
1355
|
-
ee.destroy();
|
|
250
|
+
let h;
|
|
251
|
+
const Ft = (e) => {
|
|
252
|
+
h = {
|
|
253
|
+
...h,
|
|
254
|
+
...e
|
|
255
|
+
};
|
|
256
|
+
}, Ot = () => h, Yt = () => {
|
|
257
|
+
h = void 0;
|
|
258
|
+
}, G = (e, t, o, n) => {
|
|
259
|
+
const l = {
|
|
260
|
+
message: t || $t[e],
|
|
261
|
+
description: o || "",
|
|
262
|
+
duration: n?.duration ?? h?.duration ?? 4.5,
|
|
263
|
+
placement: n?.placement ?? h?.placement ?? "topRight",
|
|
264
|
+
className: n?.className || h?.className,
|
|
265
|
+
style: {
|
|
266
|
+
...h?.style,
|
|
267
|
+
...n?.style
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
switch (e) {
|
|
271
|
+
case "success":
|
|
272
|
+
C.success(l);
|
|
273
|
+
break;
|
|
274
|
+
case "error":
|
|
275
|
+
C.error(l);
|
|
276
|
+
break;
|
|
277
|
+
case "info":
|
|
278
|
+
C.info(l);
|
|
279
|
+
break;
|
|
280
|
+
case "warning":
|
|
281
|
+
C.warning(l);
|
|
282
|
+
break;
|
|
1356
283
|
}
|
|
1357
|
-
}
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
}
|
|
284
|
+
}, pe = (e) => {
|
|
285
|
+
const {
|
|
286
|
+
message: t,
|
|
287
|
+
description: o,
|
|
288
|
+
duration: n = 4.5,
|
|
289
|
+
placement: s = "topRight"
|
|
290
|
+
} = e;
|
|
291
|
+
C.error({
|
|
292
|
+
message: `${t}`,
|
|
293
|
+
description: o || "오류가 발생했습니다. 다시 시도해주세요.",
|
|
294
|
+
duration: n,
|
|
295
|
+
placement: s,
|
|
296
|
+
style: {
|
|
297
|
+
borderLeft: "4px solid #ff4d4f",
|
|
298
|
+
backgroundColor: "#fff2f0"
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
}, jt = () => {
|
|
302
|
+
C.destroy();
|
|
303
|
+
}, Vt = (e) => {
|
|
304
|
+
C.destroy();
|
|
305
|
+
}, fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1373
306
|
__proto__: null,
|
|
1374
|
-
closeNotification:
|
|
1375
|
-
destroyNotifications:
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
const e = D.getState().user, t = D.getState().hrInfo;
|
|
307
|
+
closeNotification: Vt,
|
|
308
|
+
destroyNotifications: jt,
|
|
309
|
+
getGlobalNotificationStyle: Ot,
|
|
310
|
+
notiBwgError: pe,
|
|
311
|
+
openNoti: G,
|
|
312
|
+
resetGlobalNotificationStyle: Yt,
|
|
313
|
+
setGlobalNotificationStyle: Ft
|
|
314
|
+
}, Symbol.toStringTag, { value: "Module" })), D = () => i.getState().user?.crprCd || null, R = () => {
|
|
315
|
+
const e = i.getState().user, t = i.getState().hrInfo;
|
|
1384
316
|
return e?.userId || t?.empNo || null;
|
|
1385
|
-
},
|
|
1386
|
-
const e =
|
|
317
|
+
}, ye = () => i.getState().user?.userNm || null, Bt = () => i.getState().user?.userDvsn || null, Gt = () => i.getState().user?.emplNo || null, $ = () => {
|
|
318
|
+
const e = i.getState().hrInfo, t = i.getState().user;
|
|
1387
319
|
return e?.deptCd || t?.dprtCd || null;
|
|
1388
|
-
},
|
|
1389
|
-
const t =
|
|
320
|
+
}, Ht = () => i.getState().hrInfo?.fullDeptCd || null, be = () => i.getState().hrInfo?.deptNm || null, Kt = () => i.getState().hrInfo?.fullDeptNm || null, V = () => i.getState().user?.roleList || null, zt = (e) => {
|
|
321
|
+
const t = V();
|
|
1390
322
|
return t ? t.includes(e) : !1;
|
|
1391
|
-
},
|
|
1392
|
-
const t =
|
|
1393
|
-
return t ? e.some((
|
|
1394
|
-
},
|
|
1395
|
-
const t =
|
|
1396
|
-
return t ? e.every((
|
|
1397
|
-
},
|
|
1398
|
-
const e =
|
|
323
|
+
}, Wt = (e) => {
|
|
324
|
+
const t = V();
|
|
325
|
+
return t ? e.some((o) => t.includes(o)) : !1;
|
|
326
|
+
}, qt = (e) => {
|
|
327
|
+
const t = V();
|
|
328
|
+
return t ? e.every((o) => t.includes(o)) : !1;
|
|
329
|
+
}, Jt = () => i.getState().isLoggedIn(), P = () => i.getState().user, Xt = () => P() !== null, Qt = () => {
|
|
330
|
+
const e = ye(), t = R();
|
|
1399
331
|
return e || t || null;
|
|
1400
|
-
},
|
|
1401
|
-
const e =
|
|
332
|
+
}, Zt = () => {
|
|
333
|
+
const e = be(), t = $();
|
|
1402
334
|
return e || (t ? String(t) : null);
|
|
1403
|
-
},
|
|
335
|
+
}, E = () => i.getState().hrInfo, eo = () => E()?.jbpsCd || null, to = () => E()?.jbgdCd || null, oo = () => E()?.jbdtCd || null, ro = () => E()?.jbkdCd || null, no = () => E()?.wkplCd || null, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1404
336
|
__proto__: null,
|
|
1405
|
-
getCrprCd:
|
|
1406
|
-
getDepartmentInfo:
|
|
1407
|
-
getDisplayName:
|
|
1408
|
-
getDprtCd:
|
|
1409
|
-
getDprtNm:
|
|
1410
|
-
getEmplNo:
|
|
1411
|
-
getFullDprtCd:
|
|
1412
|
-
getFullDprtNm:
|
|
1413
|
-
getHrInfo:
|
|
1414
|
-
getJbdtCd:
|
|
1415
|
-
getJbgdCd:
|
|
1416
|
-
getJbkdCd:
|
|
1417
|
-
getJbpsCd:
|
|
1418
|
-
getRoleList:
|
|
1419
|
-
getUserDvsn:
|
|
1420
|
-
getUserId:
|
|
1421
|
-
getUserInfo:
|
|
1422
|
-
getUserNm:
|
|
1423
|
-
getWkplCd:
|
|
1424
|
-
hasAllRoles:
|
|
1425
|
-
hasAnyRole:
|
|
1426
|
-
hasRole:
|
|
1427
|
-
hasUserInfo:
|
|
1428
|
-
isLoggedIn:
|
|
337
|
+
getCrprCd: D,
|
|
338
|
+
getDepartmentInfo: Zt,
|
|
339
|
+
getDisplayName: Qt,
|
|
340
|
+
getDprtCd: $,
|
|
341
|
+
getDprtNm: be,
|
|
342
|
+
getEmplNo: Gt,
|
|
343
|
+
getFullDprtCd: Ht,
|
|
344
|
+
getFullDprtNm: Kt,
|
|
345
|
+
getHrInfo: E,
|
|
346
|
+
getJbdtCd: oo,
|
|
347
|
+
getJbgdCd: to,
|
|
348
|
+
getJbkdCd: ro,
|
|
349
|
+
getJbpsCd: eo,
|
|
350
|
+
getRoleList: V,
|
|
351
|
+
getUserDvsn: Bt,
|
|
352
|
+
getUserId: R,
|
|
353
|
+
getUserInfo: P,
|
|
354
|
+
getUserNm: ye,
|
|
355
|
+
getWkplCd: no,
|
|
356
|
+
hasAllRoles: qt,
|
|
357
|
+
hasAnyRole: Wt,
|
|
358
|
+
hasRole: zt,
|
|
359
|
+
hasUserInfo: Xt,
|
|
360
|
+
isLoggedIn: Jt
|
|
1429
361
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1430
|
-
class
|
|
1431
|
-
constructor(t,
|
|
1432
|
-
super(t), this.name = "ApiError", this.detailMsg =
|
|
362
|
+
class _ extends Error {
|
|
363
|
+
constructor(t, o, n, s, l) {
|
|
364
|
+
super(t), this.name = "ApiError", this.detailMsg = o, this.response = n, this.msgCd = s, this.errorType = l, Error.captureStackTrace && Error.captureStackTrace(this, _);
|
|
1433
365
|
}
|
|
1434
366
|
}
|
|
1435
|
-
let
|
|
1436
|
-
const
|
|
367
|
+
let k = null;
|
|
368
|
+
const H = {
|
|
1437
369
|
method: "POST",
|
|
1438
370
|
timeout: 3e4,
|
|
1439
371
|
// 30초
|
|
@@ -1444,53 +376,53 @@ const ze = {
|
|
|
1444
376
|
showError: !0,
|
|
1445
377
|
retryCount: 0,
|
|
1446
378
|
retryDelay: 1e3
|
|
1447
|
-
},
|
|
1448
|
-
timeout:
|
|
1449
|
-
withCredentials:
|
|
379
|
+
}, F = K.create({
|
|
380
|
+
timeout: H.timeout,
|
|
381
|
+
withCredentials: H.withCredentials,
|
|
1450
382
|
headers: {
|
|
1451
383
|
"Content-Type": "application/json; charset=utf-8",
|
|
1452
384
|
Accept: "application/json; charset=utf-8",
|
|
1453
|
-
"Apm-Guid":
|
|
385
|
+
"Apm-Guid": z()
|
|
1454
386
|
}
|
|
1455
387
|
});
|
|
1456
|
-
|
|
388
|
+
F.interceptors.request.use(
|
|
1457
389
|
(e) => {
|
|
1458
|
-
const t =
|
|
390
|
+
const t = M();
|
|
1459
391
|
e.showLoading && !e.isPopup && t.showLoading?.(), e.showLoading && e.isPopup && t.showPopupLoading?.();
|
|
1460
|
-
let
|
|
392
|
+
let o = "UNKNOWN";
|
|
1461
393
|
(/* @__PURE__ */ new Date()).getTime();
|
|
1462
394
|
try {
|
|
1463
|
-
e.data && e.data.header ?
|
|
1464
|
-
} catch (
|
|
1465
|
-
console.warn("trxCd/guid 추출 실패:",
|
|
395
|
+
e.data && e.data.header ? o = e.data.header.trxCd || "UNKNOWN" : e.params && e.params.header && (o = e.params.header.trxCd || "UNKNOWN");
|
|
396
|
+
} catch (s) {
|
|
397
|
+
console.warn("trxCd/guid 추출 실패:", s);
|
|
1466
398
|
}
|
|
1467
|
-
e.trxCd =
|
|
1468
|
-
`🚀 API 요청 시작 [거래코드: ${
|
|
399
|
+
e.trxCd = o, e.requestStartTime = Date.now(), console.log(
|
|
400
|
+
`🚀 API 요청 시작 [거래코드: ${o} / 서비스요청자: ${P()?.userId}]`
|
|
1469
401
|
);
|
|
1470
402
|
const n = localStorage.getItem("accessToken");
|
|
1471
403
|
return n && (e.headers.Authorization = `Bearer ${n}`), e.headers["Content-Type"] = "application/json; charset=UTF-8", e.headers.Accept = "application/json; charset=UTF-8", e;
|
|
1472
404
|
},
|
|
1473
405
|
(e) => (console.error("❌ 요청 인터셉터 에러:", e), Promise.reject(e))
|
|
1474
406
|
);
|
|
1475
|
-
|
|
407
|
+
F.interceptors.response.use(
|
|
1476
408
|
(e) => {
|
|
1477
|
-
const t =
|
|
409
|
+
const t = M();
|
|
1478
410
|
e.config.showLoading && !e.config.isPopup && t.hideLoading?.(), e.config.isPopup && t.hidePopupLoading?.();
|
|
1479
|
-
let
|
|
1480
|
-
const
|
|
411
|
+
let o = "UNKNOWN", n = "UNKNOWN";
|
|
412
|
+
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
1481
413
|
try {
|
|
1482
|
-
e.config.trxCd && (
|
|
1483
|
-
} catch (
|
|
1484
|
-
console.warn("trxCd/guid 추출 실패:",
|
|
414
|
+
e.config.trxCd && (o = e.config.trxCd), e.config.guid ? n = e.config.guid : e.data && e.data.header && e.data.header.trxCd ? (o = e.data.header.trxCd, n = e.data.header.guid || "UNKNOWN") : e.config.data && e.config.data.header ? (o = e.config.data.header.trxCd || "UNKNOWN", n = e.config.data.header.guid || "UNKNOWN") : e.config.params && e.config.params.header && (o = e.config.params.header.trxCd || "UNKNOWN", n = e.config.params.header.guid || "UNKNOWN");
|
|
415
|
+
} catch (a) {
|
|
416
|
+
console.warn("trxCd/guid 추출 실패:", a);
|
|
1485
417
|
}
|
|
1486
418
|
let l = 0;
|
|
1487
|
-
return e.config.requestStartTime && (l =
|
|
1488
|
-
`✅ API 응답 성공 [거래코드: ${
|
|
419
|
+
return e.config.requestStartTime && (l = s - e.config.requestStartTime), console.log(
|
|
420
|
+
`✅ API 응답 성공 [거래코드: ${o} / GUID : ${n}] - (소요시간: ${l}ms)`
|
|
1489
421
|
), e;
|
|
1490
422
|
},
|
|
1491
423
|
async (e) => {
|
|
1492
|
-
const t =
|
|
1493
|
-
if (e.config && e.config.showLoading && !e.config.isPopup && t.hideLoading?.(), e.config && e.config.isPopup && t.hidePopupLoading?.(), console.error("❌ API 응답 에러:", e),
|
|
424
|
+
const t = M();
|
|
425
|
+
if (e.config && e.config.showLoading && !e.config.isPopup && t.hideLoading?.(), e.config && e.config.isPopup && t.hidePopupLoading?.(), console.error("❌ API 응답 에러:", e), W && console.error("🚨 Error Details:", {
|
|
1494
426
|
message: e.message,
|
|
1495
427
|
status: e.response?.status,
|
|
1496
428
|
statusText: e.response?.statusText,
|
|
@@ -1501,20 +433,20 @@ Te.interceptors.response.use(
|
|
|
1501
433
|
baseURL: e.config?.baseURL
|
|
1502
434
|
}
|
|
1503
435
|
}), e.response?.status === 401) {
|
|
1504
|
-
const
|
|
1505
|
-
if (
|
|
436
|
+
const o = localStorage.getItem("refreshToken");
|
|
437
|
+
if (o)
|
|
1506
438
|
try {
|
|
1507
|
-
const n = await
|
|
1508
|
-
refreshToken:
|
|
439
|
+
const n = await K.post("/auth/refresh", {
|
|
440
|
+
refreshToken: o
|
|
1509
441
|
});
|
|
1510
442
|
if (n.data.accessToken) {
|
|
1511
443
|
localStorage.setItem(
|
|
1512
444
|
"accessToken",
|
|
1513
445
|
n.data.accessToken
|
|
1514
446
|
);
|
|
1515
|
-
const
|
|
1516
|
-
if (
|
|
1517
|
-
return
|
|
447
|
+
const s = e.config;
|
|
448
|
+
if (s)
|
|
449
|
+
return s.headers.Authorization = `Bearer ${n.data.accessToken}`, F(s);
|
|
1518
450
|
}
|
|
1519
451
|
} catch {
|
|
1520
452
|
localStorage.removeItem("accessToken"), localStorage.removeItem("refreshToken"), window.location.href = "/login";
|
|
@@ -1523,20 +455,20 @@ Te.interceptors.response.use(
|
|
|
1523
455
|
return Promise.reject(e);
|
|
1524
456
|
}
|
|
1525
457
|
);
|
|
1526
|
-
const
|
|
1527
|
-
if (
|
|
458
|
+
const so = async () => {
|
|
459
|
+
if (k === null) {
|
|
1528
460
|
const e = Date.now();
|
|
1529
|
-
await
|
|
461
|
+
await we();
|
|
1530
462
|
const t = Date.now();
|
|
1531
463
|
console.log(`[INFO] IP 조회 소요시간: ${t - e}ms`);
|
|
1532
464
|
}
|
|
1533
|
-
},
|
|
1534
|
-
const l =
|
|
465
|
+
}, ao = (e, t, o, n) => {
|
|
466
|
+
const l = M().getActiveMenuId?.();
|
|
1535
467
|
return {
|
|
1536
468
|
header: {
|
|
1537
469
|
trxCd: e,
|
|
1538
|
-
userInfo:
|
|
1539
|
-
clientIp:
|
|
470
|
+
userInfo: P(),
|
|
471
|
+
clientIp: o,
|
|
1540
472
|
domainId: "DEFAULT",
|
|
1541
473
|
sysCd: n?.sysCd,
|
|
1542
474
|
appItCd: n?.appItCd,
|
|
@@ -1546,7 +478,7 @@ const Gn = async () => {
|
|
|
1546
478
|
// 추후 암호화(bxmEncrypt) 가능 지점
|
|
1547
479
|
data: t
|
|
1548
480
|
};
|
|
1549
|
-
},
|
|
481
|
+
}, lo = (e, t, o) => {
|
|
1550
482
|
const n = {
|
|
1551
483
|
method: t.method,
|
|
1552
484
|
url: e,
|
|
@@ -1558,86 +490,87 @@ const Gn = async () => {
|
|
|
1558
490
|
...t.headers || {}
|
|
1559
491
|
}
|
|
1560
492
|
};
|
|
1561
|
-
return t.method === "GET" ? (n.params =
|
|
1562
|
-
},
|
|
1563
|
-
let
|
|
1564
|
-
const n = t.retryCount || 0,
|
|
493
|
+
return t.method === "GET" ? (n.params = o || t.params, t.params && (n.params = t.params)) : (n.data = o || t.data, t.params && (n.params = t.params)), n;
|
|
494
|
+
}, co = async (e, t) => {
|
|
495
|
+
let o;
|
|
496
|
+
const n = t.retryCount || 0, s = t.retryDelay || 1e3;
|
|
1565
497
|
for (let l = 0; l <= n; l++)
|
|
1566
498
|
try {
|
|
1567
|
-
const
|
|
1568
|
-
if (
|
|
1569
|
-
return
|
|
1570
|
-
const
|
|
1571
|
-
throw new
|
|
1572
|
-
} catch (
|
|
1573
|
-
if (
|
|
1574
|
-
await
|
|
499
|
+
const a = await F(e);
|
|
500
|
+
if (a.data?.header?.resCd == 0)
|
|
501
|
+
return uo(a.data);
|
|
502
|
+
const c = a.data?.header || {}, d = c?.msgs?.basicMsg || "요청 처리 중 오류가 발생했습니다.", f = c?.msgs?.detailMsgs || d, y = c?.msgCd, g = c?.msgs?.type;
|
|
503
|
+
throw new _(d, f, a, y, g);
|
|
504
|
+
} catch (a) {
|
|
505
|
+
if (o = io(a), a?.isAxiosError && mo(a) && l < n) {
|
|
506
|
+
await po(s);
|
|
1575
507
|
continue;
|
|
1576
508
|
}
|
|
1577
509
|
break;
|
|
1578
510
|
}
|
|
1579
|
-
throw
|
|
1580
|
-
},
|
|
511
|
+
throw o ? (go(o, t), o) : new Error("알 수 없는 API 오류가 발생했습니다.");
|
|
512
|
+
}, io = (e) => {
|
|
1581
513
|
if (e?.isAxiosError && e.response) {
|
|
1582
|
-
const t = e,
|
|
1583
|
-
return new
|
|
514
|
+
const t = e, o = t.response, n = o.data, s = n?.header?.msgs?.basicMsg || t.message || "서버에서 오류가 발생했습니다.", l = n?.header?.msgs?.detailMsgs || (typeof o.data == "string" ? o.data : JSON.stringify(o.data)) || s, a = n?.header?.msgCd, c = n?.header?.msgs?.type;
|
|
515
|
+
return new _(s, l, o, a, c);
|
|
1584
516
|
}
|
|
1585
|
-
return e instanceof
|
|
1586
|
-
},
|
|
517
|
+
return e instanceof _, e;
|
|
518
|
+
}, uo = (e) => {
|
|
1587
519
|
if (!e || typeof e != "object")
|
|
1588
520
|
return {};
|
|
1589
521
|
for (const t in e)
|
|
1590
522
|
if (Object.prototype.hasOwnProperty.call(e, t) && t !== "header")
|
|
1591
523
|
return e[t];
|
|
1592
524
|
return {};
|
|
1593
|
-
},
|
|
525
|
+
}, go = (e, t) => {
|
|
1594
526
|
if (!t.showError) return;
|
|
1595
|
-
const
|
|
1596
|
-
|
|
527
|
+
const o = e instanceof _, n = o ? e.message : "요청 처리 중 오류가 발생했습니다.", s = o ? e.msgCd : "요청 처리 중 오류가 발생했습니다.", l = o ? e.detailMsg : e.message, a = o ? e.errorType : "";
|
|
528
|
+
s && s.startsWith?.("BXM") ? pe({
|
|
1597
529
|
message: n,
|
|
1598
530
|
description: l,
|
|
1599
531
|
duration: 5
|
|
1600
|
-
}) :
|
|
1601
|
-
},
|
|
1602
|
-
const
|
|
1603
|
-
sysCd: __SYS_CD__
|
|
532
|
+
}) : a === "I" ? G("info", n, l, { duration: 5 }) : G("warning", n, l, { duration: 5 });
|
|
533
|
+
}, q = async (e, t, o, n, s) => {
|
|
534
|
+
const l = M(), a = s ?? __APP_CD__, c = l.findSystemByAppCd?.(a) || {
|
|
535
|
+
sysCd: __SYS_CD__,
|
|
536
|
+
appCd: a
|
|
1604
537
|
};
|
|
1605
|
-
(!c || !c.sysCd) && console.error("해당 앱코드는 존재하지 않습니다.",
|
|
1606
|
-
const
|
|
1607
|
-
...
|
|
538
|
+
(!c || !c.sysCd) && console.error("해당 앱코드는 존재하지 않습니다.", a), await so();
|
|
539
|
+
const d = {
|
|
540
|
+
...H,
|
|
1608
541
|
...n
|
|
1609
|
-
},
|
|
542
|
+
}, f = ao(
|
|
1610
543
|
t,
|
|
1611
|
-
|
|
1612
|
-
|
|
544
|
+
o,
|
|
545
|
+
Ce() || "unknown",
|
|
1613
546
|
c
|
|
1614
|
-
),
|
|
547
|
+
), y = lo(e, d, f);
|
|
1615
548
|
try {
|
|
1616
|
-
return await
|
|
1617
|
-
} catch (
|
|
1618
|
-
throw console.error("callService 최종 에러:",
|
|
549
|
+
return await co(y, d);
|
|
550
|
+
} catch (g) {
|
|
551
|
+
throw console.error("callService 최종 에러:", g), g;
|
|
1619
552
|
}
|
|
1620
|
-
},
|
|
1621
|
-
if (
|
|
553
|
+
}, mo = (e) => !e.response || e.response.status >= 500 && e.response.status < 600, po = (e) => new Promise((t) => setTimeout(t, e)), we = async (e) => {
|
|
554
|
+
if (k === null)
|
|
1622
555
|
if (e === void 0)
|
|
1623
556
|
try {
|
|
1624
|
-
let
|
|
1625
|
-
|
|
557
|
+
let o = (await K.get("/api/ip")).data.trim();
|
|
558
|
+
o = o.replace(/\s+/g, ""), k = o;
|
|
1626
559
|
} catch (t) {
|
|
1627
|
-
console.warn("IP 가져오기 실패:", t),
|
|
560
|
+
console.warn("IP 가져오기 실패:", t), k = "unknown";
|
|
1628
561
|
}
|
|
1629
562
|
else
|
|
1630
|
-
|
|
1631
|
-
},
|
|
1632
|
-
const
|
|
1633
|
-
return !
|
|
563
|
+
k = e;
|
|
564
|
+
}, Ce = () => k, fo = async () => (console.log("IP 검증 비활성화됨 (성능 최적화)"), k || "unknown"), U = async (e, t, o) => q("/api/service", e, t, o), yo = async (e, t, o) => q("/api/service", e.trxCd, t, o, e.appCd), bo = async (e, t, o) => {
|
|
565
|
+
const s = M().findSystemByAppCd?.(e.appCd ?? __APP_CD__);
|
|
566
|
+
return !s || !s.sysCd ? (console.error("해당 앱코드는 존재하지 않습니다.", e.appCd), Promise.reject(new Error("해당 앱코드는 존재하지 않습니다 ."))) : q(
|
|
1634
567
|
"/api/service",
|
|
1635
568
|
e.trxCd,
|
|
1636
569
|
t,
|
|
1637
|
-
{ ...
|
|
570
|
+
{ ...o, headers: { ...o?.headers, sysCd: s?.sysCd } },
|
|
1638
571
|
e.appCd
|
|
1639
572
|
);
|
|
1640
|
-
},
|
|
573
|
+
}, ho = async (e, t, o) => {
|
|
1641
574
|
try {
|
|
1642
575
|
const n = await fetch("/api/permissions", {
|
|
1643
576
|
method: "POST",
|
|
@@ -1647,7 +580,7 @@ const Gn = async () => {
|
|
|
1647
580
|
body: JSON.stringify({
|
|
1648
581
|
userId: e,
|
|
1649
582
|
menuId: t,
|
|
1650
|
-
popupId:
|
|
583
|
+
popupId: o
|
|
1651
584
|
})
|
|
1652
585
|
});
|
|
1653
586
|
if (!n.ok)
|
|
@@ -1656,81 +589,113 @@ const Gn = async () => {
|
|
|
1656
589
|
} catch (n) {
|
|
1657
590
|
throw console.error("권한 확인 서비스 오류:", n), n;
|
|
1658
591
|
}
|
|
1659
|
-
},
|
|
592
|
+
}, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
593
|
+
__proto__: null,
|
|
594
|
+
ApiError: _,
|
|
595
|
+
callEndpoint: yo,
|
|
596
|
+
callService: U,
|
|
597
|
+
callServiceByAppCd: bo,
|
|
598
|
+
getClientIp: Ce,
|
|
599
|
+
getPermissionService: ho,
|
|
600
|
+
setClientIp: we,
|
|
601
|
+
verifyClientIp: fo
|
|
602
|
+
}, Symbol.toStringTag, { value: "Module" })), J = {
|
|
603
|
+
// 권한 관련
|
|
604
|
+
AUTH_BTNS: "SCMUSERAUTH02",
|
|
605
|
+
// 버튼 권한 조회
|
|
606
|
+
AUTH_MENU: "SCMUSERAUTH01",
|
|
607
|
+
// 메뉴 권한 조회
|
|
608
|
+
ROLE_LIST: "SMROLEUTIL01",
|
|
609
|
+
// 통합시스템 Role 목록 조회
|
|
610
|
+
PERMISSION_LIST: "SCMPERM00101",
|
|
611
|
+
// 권한 목록 조회
|
|
612
|
+
ROLE_PERMISSION: "SCMROLE00102",
|
|
613
|
+
// Role별 권한 조회/저장
|
|
614
|
+
// 코드 관련
|
|
615
|
+
//SRCH_CODE: 'SCMSIGN00301', // 코드 조회
|
|
616
|
+
CMCD_CODE: "SCMCMCDUTIL01",
|
|
617
|
+
// 코드 조회
|
|
618
|
+
CMCD_ATTR: "SCMCMCDUTIL02",
|
|
619
|
+
// 코드 속성 조회
|
|
620
|
+
EXTN_CODE: void 0,
|
|
621
|
+
// 외부 코드 조회
|
|
622
|
+
// 팝업 관련
|
|
623
|
+
SRCH_POPU: "SCMPOPU00101",
|
|
624
|
+
// 팝업 조회
|
|
625
|
+
// 즐겨찾기 관련
|
|
626
|
+
AUTH_BMRK: "SCMBMRK00101",
|
|
627
|
+
// 즐겨찾기 관리
|
|
628
|
+
// 시스템코드 관련
|
|
629
|
+
SYST_CODE: "SCMSYST00101",
|
|
630
|
+
// 시스템코드 조회
|
|
631
|
+
// 시스템 관련
|
|
632
|
+
SYS_INFO: "SCMSYSUTIL01"
|
|
633
|
+
// 시스템 목록 조회
|
|
634
|
+
};
|
|
635
|
+
let x = {};
|
|
636
|
+
function wo(e) {
|
|
637
|
+
x = e, console.log("🔧 Provider 서비스코드 오버라이드 설정:", e);
|
|
638
|
+
}
|
|
639
|
+
function ke(e) {
|
|
640
|
+
return x[e] && x[e].trim() !== "" ? x[e] : J[e] || "";
|
|
641
|
+
}
|
|
642
|
+
function ve() {
|
|
643
|
+
const e = {};
|
|
644
|
+
for (const t of Object.keys(J))
|
|
645
|
+
e[t] = ke(t);
|
|
646
|
+
return e;
|
|
647
|
+
}
|
|
648
|
+
function Co() {
|
|
649
|
+
console.log("🔧 bwg-core 서비스코드 설정:"), console.log("📋 Provider 설정 > 기본값 순서로 확인");
|
|
650
|
+
const e = ve();
|
|
651
|
+
for (const [t, o] of Object.entries(e)) {
|
|
652
|
+
const n = x[t] ? "Provider 설정" : "기본값";
|
|
653
|
+
console.log(` ${t}: ${o} (${n})`);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1660
657
|
__proto__: null,
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
}, Symbol.toStringTag, { value: "Module" })), io = (e, t, r = "text/plain") => {
|
|
1670
|
-
const n = new Blob([e], { type: r }), u = URL.createObjectURL(n), l = document.createElement("a");
|
|
1671
|
-
l.href = u, l.download = t, document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(u);
|
|
658
|
+
DEFAULT_SERVICE_CODES: J,
|
|
659
|
+
getAllServiceCodes: ve,
|
|
660
|
+
getServiceCode: ke,
|
|
661
|
+
logServiceCodeConfig: Co,
|
|
662
|
+
setServiceCodeOverrides: wo
|
|
663
|
+
}, Symbol.toStringTag, { value: "Module" })), So = (e, t, o = "text/plain") => {
|
|
664
|
+
const n = new Blob([e], { type: o }), s = URL.createObjectURL(n), l = document.createElement("a");
|
|
665
|
+
l.href = s, l.download = t, document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(s);
|
|
1672
666
|
};
|
|
1673
|
-
async function
|
|
667
|
+
async function ko(e) {
|
|
1674
668
|
try {
|
|
1675
|
-
return await
|
|
1676
|
-
crprCd:
|
|
669
|
+
return await U("SCMFILE00101", {
|
|
670
|
+
crprCd: P()?.crprCd,
|
|
1677
671
|
sysCd: __SYS_CD__,
|
|
1678
672
|
fileKey: e
|
|
1679
|
-
}).then((
|
|
673
|
+
}).then((o) => {
|
|
1680
674
|
let n;
|
|
1681
|
-
if (
|
|
675
|
+
if (o.sub && (n = o.sub[0]), console.log(o), console.log(n), !n.lgclFileNm)
|
|
1682
676
|
throw console.error("논리파일명이 없습니다."), new Error("논리 파일명 누락");
|
|
1683
677
|
if (!n.filePath)
|
|
1684
678
|
throw console.error("파일 경로가 없습니다."), new Error("파일 경로 누락");
|
|
1685
|
-
const
|
|
679
|
+
const s = `api/download?filePath=${encodeURIComponent(
|
|
1686
680
|
n.filePath
|
|
1687
681
|
)}&logicalName=${encodeURIComponent(n.lgclFileNm)}`;
|
|
1688
|
-
return window.open(
|
|
682
|
+
return window.open(s, "_blank"), { success: !0, message: "파일 다운로드 요청 성공" };
|
|
1689
683
|
});
|
|
1690
684
|
} catch (t) {
|
|
1691
685
|
throw console.error("downloadByFileKey 함수 실행 중 오류 발생:", t), t;
|
|
1692
686
|
}
|
|
1693
687
|
}
|
|
1694
|
-
const
|
|
688
|
+
const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1695
689
|
__proto__: null,
|
|
1696
|
-
downloadByFileKey:
|
|
1697
|
-
downloadFile:
|
|
1698
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
1699
|
-
var ie = {}, at;
|
|
1700
|
-
function uo() {
|
|
1701
|
-
if (at) return ie;
|
|
1702
|
-
at = 1;
|
|
1703
|
-
var e = Wt;
|
|
1704
|
-
if (process.env.NODE_ENV === "production")
|
|
1705
|
-
ie.createRoot = e.createRoot, ie.hydrateRoot = e.hydrateRoot;
|
|
1706
|
-
else {
|
|
1707
|
-
var t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1708
|
-
ie.createRoot = function(r, n) {
|
|
1709
|
-
t.usingClientEntryPoint = !0;
|
|
1710
|
-
try {
|
|
1711
|
-
return e.createRoot(r, n);
|
|
1712
|
-
} finally {
|
|
1713
|
-
t.usingClientEntryPoint = !1;
|
|
1714
|
-
}
|
|
1715
|
-
}, ie.hydrateRoot = function(r, n, u) {
|
|
1716
|
-
t.usingClientEntryPoint = !0;
|
|
1717
|
-
try {
|
|
1718
|
-
return e.hydrateRoot(r, n, u);
|
|
1719
|
-
} finally {
|
|
1720
|
-
t.usingClientEntryPoint = !1;
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
|
-
}
|
|
1724
|
-
return ie;
|
|
1725
|
-
}
|
|
1726
|
-
var lo = /* @__PURE__ */ uo();
|
|
1727
|
-
const fo = (e) => ({
|
|
690
|
+
downloadByFileKey: ko,
|
|
691
|
+
downloadFile: So
|
|
692
|
+
}, Symbol.toStringTag, { value: "Module" })), vo = (e) => ({
|
|
1728
693
|
initContent(t) {
|
|
1729
|
-
this._root =
|
|
694
|
+
this._root = Fe(t);
|
|
1730
695
|
},
|
|
1731
|
-
render(t,
|
|
696
|
+
render(t, o, n, s) {
|
|
1732
697
|
const l = this._root;
|
|
1733
|
-
l && e(t,
|
|
698
|
+
l && e(t, o, n, s, l);
|
|
1734
699
|
},
|
|
1735
700
|
clearContent(t) {
|
|
1736
701
|
},
|
|
@@ -1740,77 +705,150 @@ const fo = (e) => ({
|
|
|
1740
705
|
click() {
|
|
1741
706
|
return {};
|
|
1742
707
|
}
|
|
1743
|
-
}),
|
|
1744
|
-
|
|
1745
|
-
},
|
|
1746
|
-
|
|
1747
|
-
},
|
|
1748
|
-
|
|
1749
|
-
},
|
|
1750
|
-
|
|
1751
|
-
},
|
|
708
|
+
}), Mo = (e) => i.getState().getGridLayouts(e), _o = (e, t, o) => i.getState().getGridLayout(e, t, o), No = (e, t, o, n) => {
|
|
709
|
+
i.getState().saveGridLayout(e, t, o, n);
|
|
710
|
+
}, To = (e, t, o) => {
|
|
711
|
+
i.getState().removeGridLayout(e, t, o);
|
|
712
|
+
}, Io = (e) => {
|
|
713
|
+
i.getState().clearGridLayouts(e);
|
|
714
|
+
}, Uo = () => {
|
|
715
|
+
i.getState().clearAllGridLayouts();
|
|
716
|
+
}, Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1752
717
|
__proto__: null,
|
|
1753
|
-
clearAllGridLayouts:
|
|
1754
|
-
clearGridLayouts:
|
|
1755
|
-
createBwgGridRenderer:
|
|
1756
|
-
getGridLayout:
|
|
1757
|
-
getGridLayouts:
|
|
1758
|
-
removeGridLayout:
|
|
1759
|
-
saveGridLayout:
|
|
1760
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
718
|
+
clearAllGridLayouts: Uo,
|
|
719
|
+
clearGridLayouts: Io,
|
|
720
|
+
createBwgGridRenderer: vo,
|
|
721
|
+
getGridLayout: _o,
|
|
722
|
+
getGridLayouts: Mo,
|
|
723
|
+
removeGridLayout: To,
|
|
724
|
+
saveGridLayout: No
|
|
725
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
726
|
+
let v;
|
|
727
|
+
const Eo = (e) => {
|
|
728
|
+
v = {
|
|
729
|
+
...v,
|
|
730
|
+
...e
|
|
731
|
+
};
|
|
732
|
+
}, Ao = () => v, Do = () => {
|
|
733
|
+
v = void 0;
|
|
734
|
+
}, xo = (e, t, o) => {
|
|
735
|
+
const n = {
|
|
736
|
+
duration: o?.duration ?? v?.duration ?? (e === "error" ? 5 : e === "warning" ? 4 : 3),
|
|
737
|
+
className: o?.className || v?.className,
|
|
738
|
+
style: {
|
|
739
|
+
...v?.style,
|
|
740
|
+
...o?.style
|
|
741
|
+
}
|
|
742
|
+
}, s = {
|
|
743
|
+
content: t || "",
|
|
744
|
+
duration: n.duration,
|
|
745
|
+
className: n.className,
|
|
746
|
+
style: n.style
|
|
747
|
+
};
|
|
748
|
+
switch (e) {
|
|
749
|
+
case "success":
|
|
750
|
+
S.success(s);
|
|
751
|
+
break;
|
|
752
|
+
case "error":
|
|
753
|
+
S.error(s);
|
|
754
|
+
break;
|
|
755
|
+
case "warning":
|
|
756
|
+
S.warning(s);
|
|
757
|
+
break;
|
|
758
|
+
case "info":
|
|
759
|
+
S.info(s);
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
}, Po = (e = "처리중...") => S.loading({
|
|
1781
763
|
content: e,
|
|
1782
764
|
duration: 0
|
|
1783
765
|
// 수동으로 닫을 때까지 유지
|
|
1784
|
-
}),
|
|
1785
|
-
|
|
1786
|
-
},
|
|
1787
|
-
|
|
1788
|
-
},
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
},
|
|
1798
|
-
|
|
1799
|
-
|
|
766
|
+
}), Lo = (e) => {
|
|
767
|
+
S.destroy(e);
|
|
768
|
+
}, Ro = () => {
|
|
769
|
+
S.destroy();
|
|
770
|
+
}, Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
771
|
+
__proto__: null,
|
|
772
|
+
closeAllMessages: Ro,
|
|
773
|
+
closeMessage: Lo,
|
|
774
|
+
getGlobalMessageStyle: Ao,
|
|
775
|
+
openMessage: xo,
|
|
776
|
+
resetGlobalMessageStyle: Do,
|
|
777
|
+
setGlobalMessageStyle: Eo,
|
|
778
|
+
showLoading: Po
|
|
779
|
+
}, Symbol.toStringTag, { value: "Module" })), $o = {
|
|
780
|
+
success: "성공",
|
|
781
|
+
error: "실패",
|
|
782
|
+
warning: "경고",
|
|
783
|
+
info: "안내",
|
|
784
|
+
confirm: "확인"
|
|
785
|
+
}, w = {
|
|
786
|
+
okText: "확인",
|
|
787
|
+
cancelText: "취소",
|
|
788
|
+
width: 520,
|
|
789
|
+
centered: !0,
|
|
790
|
+
maskClosable: !1,
|
|
791
|
+
closable: !0,
|
|
792
|
+
autoFocusButton: "ok"
|
|
793
|
+
};
|
|
794
|
+
let u;
|
|
795
|
+
const Fo = (e) => {
|
|
796
|
+
u = {
|
|
797
|
+
...u,
|
|
798
|
+
...e,
|
|
799
|
+
styles: {
|
|
800
|
+
...u?.styles,
|
|
801
|
+
...e.styles
|
|
802
|
+
}
|
|
803
|
+
};
|
|
804
|
+
}, Oo = () => u, Yo = () => {
|
|
805
|
+
u = void 0;
|
|
806
|
+
}, jo = (e) => u ? {
|
|
807
|
+
...e,
|
|
808
|
+
className: e?.className || u.className,
|
|
809
|
+
wrapClassName: e?.wrapClassName || u.wrapClassName,
|
|
810
|
+
styles: {
|
|
811
|
+
...u.styles,
|
|
812
|
+
...e?.styles
|
|
813
|
+
},
|
|
814
|
+
okText: e?.okText || u.okText || w.okText,
|
|
815
|
+
cancelText: e?.cancelText || u.cancelText || w.cancelText,
|
|
816
|
+
width: e?.width || u.width || w.width,
|
|
817
|
+
centered: e?.centered ?? u.centered ?? w.centered,
|
|
818
|
+
maskClosable: e?.maskClosable ?? u.maskClosable ?? w.maskClosable,
|
|
819
|
+
closable: e?.closable ?? u.closable ?? w.closable,
|
|
820
|
+
autoFocusButton: e?.autoFocusButton ?? u.autoFocusButton ?? w.autoFocusButton,
|
|
821
|
+
onOk: e?.onOk,
|
|
822
|
+
onCancel: e?.onCancel,
|
|
823
|
+
icon: e?.icon
|
|
824
|
+
} : e || {}, Vo = (e, t, o, n) => {
|
|
825
|
+
const s = t || $o[e], l = jo(n), a = {
|
|
826
|
+
title: s,
|
|
827
|
+
content: o || "",
|
|
828
|
+
...l
|
|
829
|
+
};
|
|
830
|
+
switch (e) {
|
|
831
|
+
case "success":
|
|
832
|
+
return I.success(a);
|
|
833
|
+
case "info":
|
|
834
|
+
return I.info(a);
|
|
835
|
+
case "error":
|
|
836
|
+
return I.error(a);
|
|
837
|
+
case "warning":
|
|
838
|
+
return I.warning(a);
|
|
839
|
+
case "confirm":
|
|
840
|
+
return I.confirm(a);
|
|
841
|
+
}
|
|
842
|
+
}, Bo = () => {
|
|
843
|
+
I.destroyAll();
|
|
844
|
+
}, Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1800
845
|
__proto__: null,
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
showLoading: Co,
|
|
1808
|
-
showRequiredError: Do,
|
|
1809
|
-
showSaveError: Mo,
|
|
1810
|
-
showSaveSuccess: $o,
|
|
1811
|
-
showSuccess: Bt,
|
|
1812
|
-
showWarning: wo
|
|
1813
|
-
}, Symbol.toStringTag, { value: "Module" })), To = {
|
|
846
|
+
destroyModals: Bo,
|
|
847
|
+
getGlobalModalStyle: Oo,
|
|
848
|
+
openModal: Vo,
|
|
849
|
+
resetGlobalModalStyle: Yo,
|
|
850
|
+
setGlobalModalStyle: Fo
|
|
851
|
+
}, Symbol.toStringTag, { value: "Module" })), Go = {
|
|
1814
852
|
/*************************************************************************************************************************************************
|
|
1815
853
|
* RealGrid2 use
|
|
1816
854
|
*************************************************************************************************************************************************/
|
|
@@ -2110,7 +1148,7 @@ const fo = (e) => ({
|
|
|
2110
1148
|
bg_gray01: {
|
|
2111
1149
|
background: "#cdcdcd"
|
|
2112
1150
|
}
|
|
2113
|
-
},
|
|
1151
|
+
}, Ho = async (e) => {
|
|
2114
1152
|
if (e.map((t) => {
|
|
2115
1153
|
t.status = "uploading", t.percent = 10, console.log(t);
|
|
2116
1154
|
}), !e || !Array.isArray(e) || e.length === 0) {
|
|
@@ -2129,45 +1167,45 @@ const fo = (e) => ({
|
|
|
2129
1167
|
//-------------------------------------------
|
|
2130
1168
|
remoteDir: "/home/krxuser/bkrx/files/testForGW",
|
|
2131
1169
|
useOriginalName: "true"
|
|
2132
|
-
},
|
|
2133
|
-
const
|
|
2134
|
-
Object.entries(t).forEach(([
|
|
2135
|
-
|
|
1170
|
+
}, o = e.map(async (a, c) => {
|
|
1171
|
+
const d = new FormData();
|
|
1172
|
+
Object.entries(t).forEach(([g, b]) => {
|
|
1173
|
+
d.append(g, b);
|
|
2136
1174
|
});
|
|
2137
|
-
const
|
|
2138
|
-
|
|
2139
|
-
const
|
|
1175
|
+
const f = a.originFileObj;
|
|
1176
|
+
d.append("file", f);
|
|
1177
|
+
const y = await fetch("/api/gw-sftp", {
|
|
2140
1178
|
method: "POST",
|
|
2141
|
-
body:
|
|
1179
|
+
body: d
|
|
2142
1180
|
});
|
|
2143
|
-
return
|
|
2144
|
-
(
|
|
2145
|
-
...
|
|
1181
|
+
return y.ok ? (console.log(e), e.map(
|
|
1182
|
+
(g) => g === a ? {
|
|
1183
|
+
...g,
|
|
2146
1184
|
status: "success",
|
|
2147
1185
|
percent: 100
|
|
2148
|
-
} :
|
|
2149
|
-
)) :
|
|
2150
|
-
}), n = await Promise.all(
|
|
2151
|
-
if (
|
|
2152
|
-
return alert(`${
|
|
1186
|
+
} : g
|
|
1187
|
+
)) : a.status = "done", { index: c, response: y, fileName: f.name };
|
|
1188
|
+
}), n = await Promise.all(o), s = n.filter((a) => a.response.ok).length, l = n.length - s;
|
|
1189
|
+
if (s === n.length)
|
|
1190
|
+
return alert(`${s}개 파일 업로드가 완료되었습니다.`), {
|
|
2153
1191
|
result: "success",
|
|
2154
|
-
message: `${
|
|
2155
|
-
successCount:
|
|
1192
|
+
message: `${s}개 파일 업로드가 완료되었습니다.`,
|
|
1193
|
+
successCount: s,
|
|
2156
1194
|
failCount: l
|
|
2157
1195
|
};
|
|
2158
|
-
if (
|
|
2159
|
-
const
|
|
2160
|
-
return alert(
|
|
1196
|
+
if (s > 0) {
|
|
1197
|
+
const a = `${s}개 성공, ${l}개 실패`;
|
|
1198
|
+
return alert(a), {
|
|
2161
1199
|
result: "partial",
|
|
2162
|
-
message:
|
|
2163
|
-
successCount:
|
|
1200
|
+
message: a,
|
|
1201
|
+
successCount: s,
|
|
2164
1202
|
failCount: l
|
|
2165
1203
|
};
|
|
2166
1204
|
}
|
|
2167
1205
|
return alert("모든 파일 업로드에 실패했습니다."), {
|
|
2168
1206
|
result: "error",
|
|
2169
1207
|
message: "모든 파일 업로드에 실패했습니다.",
|
|
2170
|
-
successCount:
|
|
1208
|
+
successCount: s,
|
|
2171
1209
|
failCount: l
|
|
2172
1210
|
};
|
|
2173
1211
|
} catch {
|
|
@@ -2176,133 +1214,107 @@ const fo = (e) => ({
|
|
|
2176
1214
|
message: "파일 업로드 중 오류가 발생했습니다."
|
|
2177
1215
|
};
|
|
2178
1216
|
}
|
|
2179
|
-
},
|
|
1217
|
+
}, ar = async (e, t, o) => {
|
|
2180
1218
|
const {
|
|
2181
1219
|
trxCd: n = "SCMINTF00102",
|
|
2182
|
-
openDraft:
|
|
1220
|
+
openDraft: s = !0,
|
|
2183
1221
|
fetchFilesTrxCd: l = "SCMFILE00101"
|
|
2184
|
-
} =
|
|
2185
|
-
if (
|
|
2186
|
-
const
|
|
2187
|
-
crprCd:
|
|
1222
|
+
} = o || {}, a = e ?? {}, c = a.aprvKey || z(), d = a.docTitle || "제목없음";
|
|
1223
|
+
if (a.aprvKey) {
|
|
1224
|
+
const b = await U("SCMINTF00101", {
|
|
1225
|
+
crprCd: D(),
|
|
2188
1226
|
sysCd: __SYS_CD__,
|
|
2189
|
-
aprvKey:
|
|
1227
|
+
aprvKey: c
|
|
2190
1228
|
});
|
|
2191
|
-
if (Array.isArray(
|
|
2192
|
-
return console.log("이미 승인된 기안입니다."),
|
|
1229
|
+
if (Array.isArray(b?.sub) && b.sub.length >= 1)
|
|
1230
|
+
return console.log("이미 승인된 기안입니다."), s && Z(c), { skipped: !0, alreadyDrafted: !0, draftedRes: b };
|
|
2193
1231
|
}
|
|
2194
|
-
let
|
|
1232
|
+
let f;
|
|
2195
1233
|
if (t) {
|
|
2196
|
-
const
|
|
2197
|
-
crprCd:
|
|
1234
|
+
const b = await U(l, {
|
|
1235
|
+
crprCd: D(),
|
|
2198
1236
|
sysCd: __SYS_CD__,
|
|
2199
1237
|
fileGrpKey: t
|
|
2200
|
-
}),
|
|
2201
|
-
filePath:
|
|
2202
|
-
lgclFileNm:
|
|
1238
|
+
}), A = Array.isArray(b?.sub) ? b.sub.filter((p) => p?.filePath && p?.lgclFileNm).map((p) => ({
|
|
1239
|
+
filePath: p.filePath,
|
|
1240
|
+
lgclFileNm: p.lgclFileNm
|
|
2203
1241
|
})) : [];
|
|
2204
|
-
console.log("@@ files",
|
|
2205
|
-
const
|
|
2206
|
-
const
|
|
2207
|
-
|
|
2208
|
-
)}&logicalName=${encodeURIComponent(
|
|
2209
|
-
if (!
|
|
2210
|
-
throw new Error(`다운로드 실패: ${
|
|
2211
|
-
const
|
|
2212
|
-
return { originFileObj: new File([
|
|
2213
|
-
type:
|
|
2214
|
-
}), name:
|
|
2215
|
-
}),
|
|
2216
|
-
if (
|
|
2217
|
-
const
|
|
2218
|
-
if (!
|
|
2219
|
-
throw new Error(
|
|
2220
|
-
|
|
1242
|
+
console.log("@@ files", A);
|
|
1243
|
+
const B = A.map(async ({ filePath: p, lgclFileNm: L }) => {
|
|
1244
|
+
const Ee = `/api/download?filePath=${encodeURIComponent(
|
|
1245
|
+
p
|
|
1246
|
+
)}&logicalName=${encodeURIComponent(L)}`, X = await fetch(Ee, { method: "GET" });
|
|
1247
|
+
if (!X.ok)
|
|
1248
|
+
throw new Error(`다운로드 실패: ${L}`);
|
|
1249
|
+
const Q = await X.blob();
|
|
1250
|
+
return { originFileObj: new File([Q], L, {
|
|
1251
|
+
type: Q.type || "application/octet-stream"
|
|
1252
|
+
}), name: L, status: "ready" };
|
|
1253
|
+
}), T = await Promise.all(B);
|
|
1254
|
+
if (A.length) {
|
|
1255
|
+
const p = await Ho(T);
|
|
1256
|
+
if (!p || p.result !== "success")
|
|
1257
|
+
throw new Error(p?.message || "파일 업로드 실패");
|
|
1258
|
+
f = T;
|
|
2221
1259
|
}
|
|
2222
1260
|
}
|
|
2223
|
-
console.warn("@@ payloadData",
|
|
2224
|
-
const
|
|
2225
|
-
...
|
|
2226
|
-
crprCd:
|
|
2227
|
-
aprvKey:
|
|
1261
|
+
console.warn("@@ payloadData", a), console.log(a);
|
|
1262
|
+
const y = {
|
|
1263
|
+
...a,
|
|
1264
|
+
crprCd: D(),
|
|
1265
|
+
aprvKey: c,
|
|
2228
1266
|
sysCd: __SYS_CD__,
|
|
2229
|
-
draftDt:
|
|
2230
|
-
docTitle:
|
|
1267
|
+
draftDt: ne("YYYYMMDD"),
|
|
1268
|
+
docTitle: d,
|
|
2231
1269
|
/** 연계값 추후 수정필요 */
|
|
2232
|
-
emplNo:
|
|
2233
|
-
dprtNo:
|
|
1270
|
+
emplNo: a.emplNo || R(),
|
|
1271
|
+
dprtNo: a.dprtNo || $(),
|
|
2234
1272
|
formId: "2023000022",
|
|
2235
1273
|
/**
|
|
2236
1274
|
* 해당 그룹웨어 연계데이터는 추후 추가수정 필요
|
|
2237
1275
|
* +) 기안연계가 DB로 넣는것 외에 soap를 통한 파라미터 전달 & SAP방식 등등 여러개로 나눠진다고함..
|
|
2238
1276
|
* 해당 내용들은 공통화하기 힘들어 json & rest 방식으로 연계만 공통화 할듯함.
|
|
2239
1277
|
*/
|
|
2240
|
-
fileInfoList:
|
|
1278
|
+
fileInfoList: f,
|
|
2241
1279
|
// 그룹웨어 파일연계 (fileGrpKey 기반 다운로드 파일)
|
|
2242
1280
|
connInfo: {
|
|
2243
1281
|
formId: "2023000022",
|
|
2244
1282
|
//양식키
|
|
2245
|
-
bodyXml:
|
|
2246
|
-
title:
|
|
2247
|
-
deptCd:
|
|
2248
|
-
userId:
|
|
2249
|
-
status:
|
|
1283
|
+
bodyXml: a.bodyXml || "<div>test</div>",
|
|
1284
|
+
title: d,
|
|
1285
|
+
deptCd: a.dprtNo || $(),
|
|
1286
|
+
userId: a.emplNo || R(),
|
|
1287
|
+
status: a.status || "INT"
|
|
2250
1288
|
}
|
|
2251
1289
|
// 그룹웨어 기안연계
|
|
2252
|
-
},
|
|
2253
|
-
return
|
|
2254
|
-
},
|
|
1290
|
+
}, g = await U(n, y);
|
|
1291
|
+
return s && y?.aprvKey && Z(c), { response: g, aprvKey: c };
|
|
1292
|
+
}, Z = async (e, t) => {
|
|
2255
1293
|
if (!e)
|
|
2256
1294
|
return console.warn("openGwDraftByAprvKey: aprvKey가 필요합니다."), { opened: !1, reason: "missing_aprvKey" };
|
|
2257
1295
|
const {
|
|
2258
|
-
draftUrlBase:
|
|
1296
|
+
draftUrlBase: o = "https://kgwd.krx.co.kr/ezConn/ezApprGate.do",
|
|
2259
1297
|
windowFeatures: n = "width=1000,height=600",
|
|
2260
|
-
requireExisting:
|
|
2261
|
-
} = t || {}, l = await
|
|
2262
|
-
crprCd:
|
|
1298
|
+
requireExisting: s = !1
|
|
1299
|
+
} = t || {}, l = await U("SCMINTF00101", {
|
|
1300
|
+
crprCd: D(),
|
|
2263
1301
|
sysCd: __SYS_CD__,
|
|
2264
1302
|
aprvKey: e
|
|
2265
|
-
}),
|
|
2266
|
-
if (
|
|
2267
|
-
return console.warn("openGwDraftByAprvKey: 기안 조회 결과 없음"), alert("기안 대상이 존재하지 않습니다."), { opened: !1, hasExisting:
|
|
2268
|
-
const
|
|
2269
|
-
console.log("@@ data",
|
|
2270
|
-
const
|
|
2271
|
-
console.log("@@ deptCd",
|
|
2272
|
-
const
|
|
2273
|
-
console.log("@@ params",
|
|
2274
|
-
const
|
|
2275
|
-
|
|
2276
|
-
(
|
|
2277
|
-
).join(""),
|
|
2278
|
-
return console.log("@@ url",
|
|
2279
|
-
},
|
|
2280
|
-
E.primary = E[5];
|
|
2281
|
-
const R = ["#fff2e8", "#ffd8bf", "#ffbb96", "#ff9c6e", "#ff7a45", "#fa541c", "#d4380d", "#ad2102", "#871400", "#610b00"];
|
|
2282
|
-
R.primary = R[5];
|
|
2283
|
-
const B = ["#fff7e6", "#ffe7ba", "#ffd591", "#ffc069", "#ffa940", "#fa8c16", "#d46b08", "#ad4e00", "#873800", "#612500"];
|
|
2284
|
-
B.primary = B[5];
|
|
2285
|
-
const N = ["#fffbe6", "#fff1b8", "#ffe58f", "#ffd666", "#ffc53d", "#faad14", "#d48806", "#ad6800", "#874d00", "#613400"];
|
|
2286
|
-
N.primary = N[5];
|
|
2287
|
-
const L = ["#feffe6", "#ffffb8", "#fffb8f", "#fff566", "#ffec3d", "#fadb14", "#d4b106", "#ad8b00", "#876800", "#614700"];
|
|
2288
|
-
L.primary = L[5];
|
|
2289
|
-
const P = ["#fcffe6", "#f4ffb8", "#eaff8f", "#d3f261", "#bae637", "#a0d911", "#7cb305", "#5b8c00", "#3f6600", "#254000"];
|
|
2290
|
-
P.primary = P[5];
|
|
2291
|
-
const U = ["#f6ffed", "#d9f7be", "#b7eb8f", "#95de64", "#73d13d", "#52c41a", "#389e0d", "#237804", "#135200", "#092b00"];
|
|
2292
|
-
U.primary = U[5];
|
|
2293
|
-
const F = ["#e6fffb", "#b5f5ec", "#87e8de", "#5cdbd3", "#36cfc9", "#13c2c2", "#08979c", "#006d75", "#00474f", "#002329"];
|
|
2294
|
-
F.primary = F[5];
|
|
2295
|
-
const A = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
|
2296
|
-
A.primary = A[5];
|
|
2297
|
-
const H = ["#f0f5ff", "#d6e4ff", "#adc6ff", "#85a5ff", "#597ef7", "#2f54eb", "#1d39c4", "#10239e", "#061178", "#030852"];
|
|
2298
|
-
H.primary = H[5];
|
|
2299
|
-
const z = ["#f9f0ff", "#efdbff", "#d3adf7", "#b37feb", "#9254de", "#722ed1", "#531dab", "#391085", "#22075e", "#120338"];
|
|
2300
|
-
z.primary = z[5];
|
|
2301
|
-
const j = ["#fff0f6", "#ffd6e7", "#ffadd2", "#ff85c0", "#f759ab", "#eb2f96", "#c41d7f", "#9e1068", "#780650", "#520339"];
|
|
2302
|
-
j.primary = j[5];
|
|
2303
|
-
const je = ["#a6a6a6", "#999999", "#8c8c8c", "#808080", "#737373", "#666666", "#404040", "#1a1a1a", "#000000", "#000000"];
|
|
2304
|
-
je.primary = je[5];
|
|
2305
|
-
const G = je, Oo = {
|
|
1303
|
+
}), a = Array.isArray(l?.sub) && l.sub.length >= 1;
|
|
1304
|
+
if (s && !a)
|
|
1305
|
+
return console.warn("openGwDraftByAprvKey: 기안 조회 결과 없음"), alert("기안 대상이 존재하지 않습니다."), { opened: !1, hasExisting: a };
|
|
1306
|
+
const c = l.sub[0];
|
|
1307
|
+
console.log("@@ data", c);
|
|
1308
|
+
const d = c?.dprtNo, f = c?.emplNo, y = c?.aprvKey, g = c?.formId;
|
|
1309
|
+
console.log("@@ deptCd", d), console.log("@@ userId", f), console.log("@@ keyId", y), console.log("@@ formId", g);
|
|
1310
|
+
const b = `${g}:${d}:${f}:${y}:SAMP`;
|
|
1311
|
+
console.log("@@ params", b);
|
|
1312
|
+
const A = new TextEncoder().encode(b), B = Array.from(
|
|
1313
|
+
A,
|
|
1314
|
+
(p) => String.fromCharCode(p)
|
|
1315
|
+
).join(""), T = `${o}?connkey=${btoa(B)}`;
|
|
1316
|
+
return console.log("@@ url", T), window.open(T, "_blank", n), { opened: !0, hasExisting: a, url: T };
|
|
1317
|
+
}, Ko = {
|
|
2306
1318
|
site: {
|
|
2307
1319
|
purple01: "var(--bwg-purple-1)",
|
|
2308
1320
|
purple02: "var(--bwg-purple-2)",
|
|
@@ -2331,308 +1343,309 @@ const G = je, Oo = {
|
|
|
2331
1343
|
yellow05: "var(--bwg-yellow-5)"
|
|
2332
1344
|
},
|
|
2333
1345
|
default: {
|
|
2334
|
-
red01:
|
|
2335
|
-
red02:
|
|
2336
|
-
red03:
|
|
2337
|
-
red04:
|
|
2338
|
-
red05:
|
|
2339
|
-
red06:
|
|
2340
|
-
red07:
|
|
2341
|
-
red08:
|
|
2342
|
-
red09:
|
|
2343
|
-
red10:
|
|
2344
|
-
volcano01:
|
|
2345
|
-
volcano02:
|
|
2346
|
-
volcano03:
|
|
2347
|
-
volcano04:
|
|
2348
|
-
volcano05:
|
|
2349
|
-
volcano06:
|
|
2350
|
-
volcano07:
|
|
2351
|
-
volcano08:
|
|
2352
|
-
volcano09:
|
|
2353
|
-
volcano10:
|
|
2354
|
-
orange01:
|
|
2355
|
-
orange02:
|
|
2356
|
-
orange03:
|
|
2357
|
-
orange04:
|
|
2358
|
-
orange05:
|
|
2359
|
-
orange06:
|
|
2360
|
-
orange07:
|
|
2361
|
-
orange08:
|
|
2362
|
-
orange09:
|
|
2363
|
-
orange10:
|
|
2364
|
-
lime01:
|
|
2365
|
-
lime02:
|
|
2366
|
-
lime03:
|
|
2367
|
-
lime04:
|
|
2368
|
-
lime05:
|
|
2369
|
-
lime06:
|
|
2370
|
-
lime07:
|
|
2371
|
-
lime08:
|
|
2372
|
-
lime09:
|
|
2373
|
-
lime10:
|
|
2374
|
-
gold01:
|
|
2375
|
-
gold02:
|
|
2376
|
-
gold03:
|
|
2377
|
-
gold04:
|
|
2378
|
-
gold05:
|
|
2379
|
-
gold06:
|
|
2380
|
-
gold07:
|
|
2381
|
-
gold08:
|
|
2382
|
-
gold09:
|
|
2383
|
-
gold10:
|
|
2384
|
-
yellow01:
|
|
2385
|
-
yellow02:
|
|
2386
|
-
yellow03:
|
|
2387
|
-
yellow04:
|
|
2388
|
-
yellow05:
|
|
2389
|
-
yellow06:
|
|
2390
|
-
yellow07:
|
|
2391
|
-
yellow08:
|
|
2392
|
-
yellow09:
|
|
2393
|
-
yellow10:
|
|
2394
|
-
green01:
|
|
2395
|
-
green02:
|
|
2396
|
-
green03:
|
|
2397
|
-
green04:
|
|
2398
|
-
green05:
|
|
2399
|
-
green06:
|
|
2400
|
-
green07:
|
|
2401
|
-
green08:
|
|
2402
|
-
green09:
|
|
2403
|
-
green10:
|
|
2404
|
-
cyan01:
|
|
2405
|
-
cyan02:
|
|
2406
|
-
cyan03:
|
|
2407
|
-
cyan04:
|
|
2408
|
-
cyan05:
|
|
2409
|
-
cyan06:
|
|
2410
|
-
cyan07:
|
|
2411
|
-
cyan08:
|
|
2412
|
-
cyan09:
|
|
2413
|
-
cyan10:
|
|
2414
|
-
blue01:
|
|
2415
|
-
blue02:
|
|
2416
|
-
blue03:
|
|
2417
|
-
blue04:
|
|
2418
|
-
blue05:
|
|
2419
|
-
blue06:
|
|
2420
|
-
blue07:
|
|
2421
|
-
blue08:
|
|
2422
|
-
blue09:
|
|
2423
|
-
blue10:
|
|
2424
|
-
geekblue01:
|
|
2425
|
-
geekblue02:
|
|
2426
|
-
geekblue03:
|
|
2427
|
-
geekblue04:
|
|
2428
|
-
geekblue05:
|
|
2429
|
-
geekblue06:
|
|
2430
|
-
geekblue07:
|
|
2431
|
-
geekblue08:
|
|
2432
|
-
geekblue09:
|
|
2433
|
-
geekblue10:
|
|
2434
|
-
purple01:
|
|
2435
|
-
purple02:
|
|
2436
|
-
purple03:
|
|
2437
|
-
purple04:
|
|
2438
|
-
purple05:
|
|
2439
|
-
purple06:
|
|
2440
|
-
purple07:
|
|
2441
|
-
purple08:
|
|
2442
|
-
purple09:
|
|
2443
|
-
purple10:
|
|
2444
|
-
magenta01:
|
|
2445
|
-
magenta02:
|
|
2446
|
-
magenta03:
|
|
2447
|
-
magenta04:
|
|
2448
|
-
magenta05:
|
|
2449
|
-
magenta06:
|
|
2450
|
-
magenta07:
|
|
2451
|
-
magenta08:
|
|
2452
|
-
magenta09:
|
|
2453
|
-
magenta10:
|
|
2454
|
-
gray01:
|
|
2455
|
-
gray02:
|
|
2456
|
-
gray03:
|
|
2457
|
-
gray04:
|
|
2458
|
-
gray05:
|
|
2459
|
-
gray06:
|
|
2460
|
-
gray07:
|
|
2461
|
-
gray08:
|
|
2462
|
-
gray09:
|
|
2463
|
-
gray10:
|
|
1346
|
+
red01: r.red[0],
|
|
1347
|
+
red02: r.red[1],
|
|
1348
|
+
red03: r.red[2],
|
|
1349
|
+
red04: r.red[3],
|
|
1350
|
+
red05: r.red[4],
|
|
1351
|
+
red06: r.red[5],
|
|
1352
|
+
red07: r.red[6],
|
|
1353
|
+
red08: r.red[7],
|
|
1354
|
+
red09: r.red[8],
|
|
1355
|
+
red10: r.red[9],
|
|
1356
|
+
volcano01: r.volcano[0],
|
|
1357
|
+
volcano02: r.volcano[1],
|
|
1358
|
+
volcano03: r.volcano[2],
|
|
1359
|
+
volcano04: r.volcano[3],
|
|
1360
|
+
volcano05: r.volcano[4],
|
|
1361
|
+
volcano06: r.volcano[5],
|
|
1362
|
+
volcano07: r.volcano[6],
|
|
1363
|
+
volcano08: r.volcano[7],
|
|
1364
|
+
volcano09: r.volcano[8],
|
|
1365
|
+
volcano10: r.volcano[9],
|
|
1366
|
+
orange01: r.orange[0],
|
|
1367
|
+
orange02: r.orange[1],
|
|
1368
|
+
orange03: r.orange[2],
|
|
1369
|
+
orange04: r.orange[3],
|
|
1370
|
+
orange05: r.orange[4],
|
|
1371
|
+
orange06: r.orange[5],
|
|
1372
|
+
orange07: r.orange[6],
|
|
1373
|
+
orange08: r.orange[7],
|
|
1374
|
+
orange09: r.orange[8],
|
|
1375
|
+
orange10: r.orange[9],
|
|
1376
|
+
lime01: r.lime[0],
|
|
1377
|
+
lime02: r.lime[1],
|
|
1378
|
+
lime03: r.lime[2],
|
|
1379
|
+
lime04: r.lime[3],
|
|
1380
|
+
lime05: r.lime[4],
|
|
1381
|
+
lime06: r.lime[5],
|
|
1382
|
+
lime07: r.lime[6],
|
|
1383
|
+
lime08: r.lime[7],
|
|
1384
|
+
lime09: r.lime[8],
|
|
1385
|
+
lime10: r.lime[9],
|
|
1386
|
+
gold01: r.gold[0],
|
|
1387
|
+
gold02: r.gold[1],
|
|
1388
|
+
gold03: r.gold[2],
|
|
1389
|
+
gold04: r.gold[3],
|
|
1390
|
+
gold05: r.gold[4],
|
|
1391
|
+
gold06: r.gold[5],
|
|
1392
|
+
gold07: r.gold[6],
|
|
1393
|
+
gold08: r.gold[7],
|
|
1394
|
+
gold09: r.gold[8],
|
|
1395
|
+
gold10: r.gold[9],
|
|
1396
|
+
yellow01: r.yellow[0],
|
|
1397
|
+
yellow02: r.yellow[1],
|
|
1398
|
+
yellow03: r.yellow[2],
|
|
1399
|
+
yellow04: r.yellow[3],
|
|
1400
|
+
yellow05: r.yellow[4],
|
|
1401
|
+
yellow06: r.yellow[5],
|
|
1402
|
+
yellow07: r.yellow[6],
|
|
1403
|
+
yellow08: r.yellow[7],
|
|
1404
|
+
yellow09: r.yellow[8],
|
|
1405
|
+
yellow10: r.yellow[9],
|
|
1406
|
+
green01: r.green[0],
|
|
1407
|
+
green02: r.green[1],
|
|
1408
|
+
green03: r.green[2],
|
|
1409
|
+
green04: r.green[3],
|
|
1410
|
+
green05: r.green[4],
|
|
1411
|
+
green06: r.green[5],
|
|
1412
|
+
green07: r.green[6],
|
|
1413
|
+
green08: r.green[7],
|
|
1414
|
+
green09: r.green[8],
|
|
1415
|
+
green10: r.green[9],
|
|
1416
|
+
cyan01: r.cyan[0],
|
|
1417
|
+
cyan02: r.cyan[1],
|
|
1418
|
+
cyan03: r.cyan[2],
|
|
1419
|
+
cyan04: r.cyan[3],
|
|
1420
|
+
cyan05: r.cyan[4],
|
|
1421
|
+
cyan06: r.cyan[5],
|
|
1422
|
+
cyan07: r.cyan[6],
|
|
1423
|
+
cyan08: r.cyan[7],
|
|
1424
|
+
cyan09: r.cyan[8],
|
|
1425
|
+
cyan10: r.cyan[9],
|
|
1426
|
+
blue01: r.blue[0],
|
|
1427
|
+
blue02: r.blue[1],
|
|
1428
|
+
blue03: r.blue[2],
|
|
1429
|
+
blue04: r.blue[3],
|
|
1430
|
+
blue05: r.blue[4],
|
|
1431
|
+
blue06: r.blue[5],
|
|
1432
|
+
blue07: r.blue[6],
|
|
1433
|
+
blue08: r.blue[7],
|
|
1434
|
+
blue09: r.blue[8],
|
|
1435
|
+
blue10: r.blue[9],
|
|
1436
|
+
geekblue01: r.geekblue[0],
|
|
1437
|
+
geekblue02: r.geekblue[1],
|
|
1438
|
+
geekblue03: r.geekblue[2],
|
|
1439
|
+
geekblue04: r.geekblue[3],
|
|
1440
|
+
geekblue05: r.geekblue[4],
|
|
1441
|
+
geekblue06: r.geekblue[5],
|
|
1442
|
+
geekblue07: r.geekblue[6],
|
|
1443
|
+
geekblue08: r.geekblue[7],
|
|
1444
|
+
geekblue09: r.geekblue[8],
|
|
1445
|
+
geekblue10: r.geekblue[9],
|
|
1446
|
+
purple01: r.purple[0],
|
|
1447
|
+
purple02: r.purple[1],
|
|
1448
|
+
purple03: r.purple[2],
|
|
1449
|
+
purple04: r.purple[3],
|
|
1450
|
+
purple05: r.purple[4],
|
|
1451
|
+
purple06: r.purple[5],
|
|
1452
|
+
purple07: r.purple[6],
|
|
1453
|
+
purple08: r.purple[7],
|
|
1454
|
+
purple09: r.purple[8],
|
|
1455
|
+
purple10: r.purple[9],
|
|
1456
|
+
magenta01: r.magenta[0],
|
|
1457
|
+
magenta02: r.magenta[1],
|
|
1458
|
+
magenta03: r.magenta[2],
|
|
1459
|
+
magenta04: r.magenta[3],
|
|
1460
|
+
magenta05: r.magenta[4],
|
|
1461
|
+
magenta06: r.magenta[5],
|
|
1462
|
+
magenta07: r.magenta[6],
|
|
1463
|
+
magenta08: r.magenta[7],
|
|
1464
|
+
magenta09: r.magenta[8],
|
|
1465
|
+
magenta10: r.magenta[9],
|
|
1466
|
+
gray01: r.gray[0],
|
|
1467
|
+
gray02: r.gray[1],
|
|
1468
|
+
gray03: r.gray[2],
|
|
1469
|
+
gray04: r.gray[3],
|
|
1470
|
+
gray05: r.gray[4],
|
|
1471
|
+
gray06: r.gray[5],
|
|
1472
|
+
gray07: r.gray[6],
|
|
1473
|
+
gray08: r.gray[7],
|
|
1474
|
+
gray09: r.gray[8],
|
|
1475
|
+
gray10: r.gray[9]
|
|
2464
1476
|
},
|
|
2465
1477
|
status: {
|
|
2466
|
-
error:
|
|
2467
|
-
warning:
|
|
2468
|
-
success:
|
|
2469
|
-
info:
|
|
1478
|
+
error: r.red[5],
|
|
1479
|
+
warning: r.gold[5],
|
|
1480
|
+
success: r.green[5],
|
|
1481
|
+
info: r.blue[5]
|
|
2470
1482
|
}
|
|
2471
|
-
},
|
|
1483
|
+
}, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2472
1484
|
__proto__: null,
|
|
2473
|
-
colorFormat:
|
|
2474
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2475
|
-
...
|
|
2476
|
-
...
|
|
2477
|
-
|
|
2478
|
-
...
|
|
2479
|
-
...
|
|
2480
|
-
...
|
|
2481
|
-
...
|
|
2482
|
-
...
|
|
2483
|
-
...
|
|
2484
|
-
|
|
2485
|
-
|
|
1485
|
+
colorFormat: Ko
|
|
1486
|
+
}, Symbol.toStringTag, { value: "Module" })), lr = Se, cr = le, ir = me, ur = _e, dr = Ne, gr = Te, mr = Ie, pr = fe, fr = Me, yr = he, br = Ue, hr = {
|
|
1487
|
+
...Se,
|
|
1488
|
+
...le,
|
|
1489
|
+
...me,
|
|
1490
|
+
..._e,
|
|
1491
|
+
...Ne,
|
|
1492
|
+
...Te,
|
|
1493
|
+
...Ie,
|
|
1494
|
+
...fe,
|
|
1495
|
+
...Me,
|
|
1496
|
+
...he,
|
|
1497
|
+
realFormat: Go,
|
|
1498
|
+
...Ue
|
|
2486
1499
|
};
|
|
2487
1500
|
export {
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
ke as
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
1501
|
+
_ as ApiError,
|
|
1502
|
+
N as DEFAULT_FMT,
|
|
1503
|
+
J as DEFAULT_SERVICE_CODES,
|
|
1504
|
+
Oe as THEME_COOKIE_NAME,
|
|
1505
|
+
Dt as add,
|
|
1506
|
+
lr as apiUtils,
|
|
1507
|
+
st as arrAverage,
|
|
1508
|
+
lt as arrCount,
|
|
1509
|
+
rt as arrMax,
|
|
1510
|
+
nt as arrMin,
|
|
1511
|
+
ct as arrReverse,
|
|
1512
|
+
at as arrSum,
|
|
1513
|
+
ot as arrUnique,
|
|
1514
|
+
hr as bwgUtils,
|
|
1515
|
+
yo as callEndpoint,
|
|
1516
|
+
U as callService,
|
|
1517
|
+
bo as callServiceByAppCd,
|
|
1518
|
+
dt as clamp,
|
|
1519
|
+
Uo as clearAllGridLayouts,
|
|
1520
|
+
Io as clearGridLayouts,
|
|
1521
|
+
yt as clearSessionStorage,
|
|
1522
|
+
Ro as closeAllMessages,
|
|
1523
|
+
Lo as closeMessage,
|
|
1524
|
+
Vt as closeNotification,
|
|
1525
|
+
Ko as colorFormat,
|
|
1526
|
+
br as colorUtils,
|
|
1527
|
+
cr as commonUtils,
|
|
1528
|
+
Lt as configureEnvUtils,
|
|
1529
|
+
Xe as copyToClipboard,
|
|
1530
|
+
vo as createBwgGridRenderer,
|
|
1531
|
+
Je as debounce,
|
|
1532
|
+
hr as default,
|
|
1533
|
+
wt as deleteCookie,
|
|
1534
|
+
Bo as destroyModals,
|
|
1535
|
+
jt as destroyNotifications,
|
|
1536
|
+
xt as diff,
|
|
1537
|
+
ko as downloadByFileKey,
|
|
1538
|
+
So as downloadFile,
|
|
1539
|
+
it as duplicates,
|
|
1540
|
+
Nt as encryptSha256,
|
|
1541
|
+
At as endOf,
|
|
1542
|
+
ir as envUtils,
|
|
1543
|
+
ur as fileUtils,
|
|
1544
|
+
se as format,
|
|
1545
|
+
tt as generateRandomColor,
|
|
1546
|
+
te as generateRandomString,
|
|
1547
|
+
z as generateUID,
|
|
1548
|
+
oe as generateUUIDv4,
|
|
1549
|
+
ve as getAllServiceCodes,
|
|
1550
|
+
M as getApiDeps,
|
|
1551
|
+
Ce as getClientIp,
|
|
1552
|
+
ht as getCookie,
|
|
1553
|
+
D as getCrprCd,
|
|
1554
|
+
Zt as getDepartmentInfo,
|
|
1555
|
+
O as getDeviceType,
|
|
1556
|
+
Qt as getDisplayName,
|
|
1557
|
+
$ as getDprtCd,
|
|
1558
|
+
be as getDprtNm,
|
|
1559
|
+
Gt as getEmplNo,
|
|
1560
|
+
Rt as getEnvCode,
|
|
1561
|
+
Ht as getFullDprtCd,
|
|
1562
|
+
Kt as getFullDprtNm,
|
|
1563
|
+
Ao as getGlobalMessageStyle,
|
|
1564
|
+
Oo as getGlobalModalStyle,
|
|
1565
|
+
Ot as getGlobalNotificationStyle,
|
|
1566
|
+
_o as getGridLayout,
|
|
1567
|
+
Mo as getGridLayouts,
|
|
1568
|
+
E as getHrInfo,
|
|
1569
|
+
oo as getJbdtCd,
|
|
1570
|
+
to as getJbgdCd,
|
|
1571
|
+
ro as getJbkdCd,
|
|
1572
|
+
eo as getJbpsCd,
|
|
1573
|
+
ho as getPermissionService,
|
|
1574
|
+
V as getRoleList,
|
|
1575
|
+
ke as getServiceCode,
|
|
1576
|
+
pt as getSessionStorage,
|
|
1577
|
+
ne as getTodateString,
|
|
1578
|
+
Bt as getUserDvsn,
|
|
1579
|
+
R as getUserId,
|
|
1580
|
+
P as getUserInfo,
|
|
1581
|
+
ye as getUserNm,
|
|
1582
|
+
no as getWkplCd,
|
|
1583
|
+
dr as gridUtils,
|
|
1584
|
+
qt as hasAllRoles,
|
|
1585
|
+
Wt as hasAnyRole,
|
|
1586
|
+
zt as hasRole,
|
|
1587
|
+
Xt as hasUserInfo,
|
|
1588
|
+
Pt as initApiDeps,
|
|
1589
|
+
He as isArray,
|
|
1590
|
+
Ve as isBoolean,
|
|
1591
|
+
et as isDesktop,
|
|
1592
|
+
de as isDev,
|
|
1593
|
+
ee as isEmpty,
|
|
1594
|
+
Y as isEmptyArray,
|
|
1595
|
+
Be as isFunction,
|
|
1596
|
+
W as isLocal,
|
|
1597
|
+
Jt as isLoggedIn,
|
|
1598
|
+
Qe as isMobile,
|
|
1599
|
+
Ke as isNull,
|
|
1600
|
+
We as isNullOrUndefined,
|
|
1601
|
+
je as isNumber,
|
|
1602
|
+
Ge as isObject,
|
|
1603
|
+
ge as isProd,
|
|
1604
|
+
Ct as isSafeEmpty,
|
|
1605
|
+
Ye as isString,
|
|
1606
|
+
Ze as isTablet,
|
|
1607
|
+
ze as isUndefined,
|
|
1608
|
+
j as isValid,
|
|
1609
|
+
Tt as isValidDate,
|
|
1610
|
+
kt as isValidEmail,
|
|
1611
|
+
vt as isValidUrl,
|
|
1612
|
+
It as isValidYear,
|
|
1613
|
+
Ut as isValidYearMonth,
|
|
1614
|
+
Co as logServiceCodeConfig,
|
|
1615
|
+
gr as messageUtils,
|
|
1616
|
+
mr as modalUtils,
|
|
1617
|
+
pe as notiBwgError,
|
|
1618
|
+
pr as notificationUtils,
|
|
1619
|
+
re as now,
|
|
1620
|
+
Z as openGwDraftByAprvKey,
|
|
1621
|
+
xo as openMessage,
|
|
1622
|
+
Vo as openModal,
|
|
1623
|
+
G as openNoti,
|
|
1624
|
+
Mt as padLeft,
|
|
1625
|
+
_t as padRight,
|
|
1626
|
+
ut as random,
|
|
1627
|
+
Go as realFormat,
|
|
1628
|
+
To as removeGridLayout,
|
|
1629
|
+
ft as removeSessionStorage,
|
|
1630
|
+
Do as resetGlobalMessageStyle,
|
|
1631
|
+
Yo as resetGlobalModalStyle,
|
|
1632
|
+
Yt as resetGlobalNotificationStyle,
|
|
1633
|
+
gt as round,
|
|
1634
|
+
No as saveGridLayout,
|
|
1635
|
+
fr as serviceUtils,
|
|
1636
|
+
we as setClientIp,
|
|
1637
|
+
bt as setCookie,
|
|
1638
|
+
Eo as setGlobalMessageStyle,
|
|
1639
|
+
Fo as setGlobalModalStyle,
|
|
1640
|
+
Ft as setGlobalNotificationStyle,
|
|
1641
|
+
wo as setServiceCodeOverrides,
|
|
1642
|
+
mt as setSessionStorage,
|
|
1643
|
+
Po as showLoading,
|
|
1644
|
+
Et as startOf,
|
|
1645
|
+
ar as submitGwApproval,
|
|
1646
|
+
qe as throttle,
|
|
1647
|
+
St as toCamelCase,
|
|
1648
|
+
Ho as uploadFilesViaSftp,
|
|
1649
|
+
yr as userUtils,
|
|
1650
|
+
fo as verifyClientIp
|
|
2638
1651
|
};
|