@bwg-ui/core 1.3.2 → 1.3.3
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/{CMSearchIntfGwP01-Bx5cpkhH.js → CMSearchIntfGwP01-Co6lrDf9.js} +9 -9
- package/dist/chunks/CMSearchIntfGwP01-Do_ZDjmX.cjs +1 -0
- package/dist/chunks/{MenuReport-DxJIaW8D.js → MenuReport-BTtoDFz-.js} +146 -141
- package/dist/chunks/MenuReport-Bn5NyNel.cjs +1 -0
- package/dist/chunks/{common-components-dzN5Nuq0.js → common-components-0IMhPxxg.js} +11521 -10978
- package/dist/chunks/common-components-Csd3OioX.cjs +1109 -0
- package/dist/chunks/core-components-CX6NGtTh.cjs +1 -0
- package/dist/chunks/core-components-Ckwf4Rd7.js +1969 -0
- package/dist/chunks/layout-components-BMLp8YAy.cjs +38 -0
- package/dist/chunks/{layout-components-B25FFvXj.js → layout-components-DphZY34c.js} +942 -741
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/BwgEmpSearch.d.ts +28 -0
- package/dist/components/core/BwgEmpSearch.d.ts.map +1 -0
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +22 -1846
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +13 -13
- package/dist/components/layout/AppWrapper.d.ts +2 -1
- package/dist/components/layout/AppWrapper.d.ts.map +1 -1
- package/dist/components/layout/BwgCoreLogin.d.ts +1 -2
- package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
- package/dist/components/layout/BwgSessionNotice.d.ts +15 -0
- package/dist/components/layout/BwgSessionNotice.d.ts.map +1 -0
- package/dist/components/layout/BwgSsoLogin.d.ts +19 -0
- package/dist/components/layout/BwgSsoLogin.d.ts.map +1 -0
- package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +16 -14
- package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +1 -1
- package/dist/components/pages/board/CMMyBoardM01.d.ts.map +1 -1
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +160 -157
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.d.ts +2 -1
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +368 -335
- package/dist/stores/loginStore.d.ts +55 -10
- package/dist/stores/loginStore.d.ts.map +1 -1
- package/dist/stores/userStore.d.ts +1 -2
- package/dist/stores/userStore.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/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +455 -454
- package/package.json +1 -1
- package/dist/chunks/CMSearchIntfGwP01-Uhl4uqiV.cjs +0 -1
- package/dist/chunks/MenuReport-CPwq8w-z.cjs +0 -1
- package/dist/chunks/common-components-Dd_AsKs7.cjs +0 -1109
- package/dist/chunks/layout-components-Cz7Zets7.cjs +0 -35
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { o as
|
|
3
|
-
import { Routes as
|
|
4
|
-
import { G as
|
|
5
|
-
import { Spin as
|
|
6
|
-
import { lazy as W, useEffect as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import { UndoOutlined as
|
|
10
|
-
import { getTodateString as
|
|
11
|
-
import { useSensors as
|
|
12
|
-
import { restrictToHorizontalAxis as
|
|
13
|
-
import { arrayMove as
|
|
14
|
-
const
|
|
15
|
-
() => import("./MenuReport-
|
|
16
|
-
), Bt = W(
|
|
17
|
-
() => import("./common-components-dzN5Nuq0.js").then((n) => n.$)
|
|
18
|
-
), Ot = W(
|
|
19
|
-
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a0)
|
|
20
|
-
), Et = W(
|
|
21
|
-
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a1)
|
|
22
|
-
), Rt = W(
|
|
23
|
-
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a2)
|
|
24
|
-
), Dt = W(
|
|
25
|
-
() => import("./common-components-dzN5Nuq0.js").then((n) => n.a4)
|
|
26
|
-
), zt = W(
|
|
27
|
-
() => import("./CMSearchIntfGwP01-Bx5cpkhH.js")
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import { o as $e, C as We, S as Ce, n as Fe, m as Ge } from "./provider-VCa8UGvF.js";
|
|
3
|
+
import { Routes as Le, Route as Y, Navigate as _e, useNavigate as ve, useLocation as je } from "react-router-dom";
|
|
4
|
+
import { G as He, B as Ve, Q as Ke } from "./common-components-0IMhPxxg.js";
|
|
5
|
+
import { Spin as Q, Layout as X, Button as B, Divider as he, Flex as ie, Slider as me, Switch as Ue, Modal as Ze, Popover as Ye, Avatar as qe, Dropdown as Qe, Tabs as Xe, Tooltip as te, AutoComplete as Je, Input as fe, Segmented as et, ConfigProvider as tt, Menu as be, Result as Me, Space as q, Typography as xe, Empty as pe, Breadcrumb as nt, Form as Z, Checkbox as rt, Card as Be } from "antd";
|
|
6
|
+
import { lazy as W, useEffect as E, useRef as J, useCallback as z, useMemo as _, useState as $, createElement as Oe, memo as we, cloneElement as ot, Component as it, Suspense as le } from "react";
|
|
7
|
+
import { useUserStore as Ee, useLogout as st, useMenuViewStore as O, useMenuModelStore as ce, useFavoriteStore as at, usePopupStore as ke, useLogin as lt, useSystemStore as se, useSsoLogin as ct } from "../stores/index.js";
|
|
8
|
+
import * as ae from "@ant-design/icons";
|
|
9
|
+
import { UndoOutlined as oe, UserOutlined as dt, CloseOutlined as ne, PushpinOutlined as ut, ReloadOutlined as de, RestOutlined as ht, PushpinTwoTone as mt, StepBackwardOutlined as pt, LeftOutlined as gt, RightOutlined as ft, StepForwardOutlined as bt, MenuUnfoldOutlined as yt, MenuFoldOutlined as Ct, ExclamationCircleOutlined as vt, WarningOutlined as xt, StarOutlined as wt, FolderOpenOutlined as kt, ExclamationCircleTwoTone as Ie, CheckCircleTwoTone as De, LoginOutlined as It } from "@ant-design/icons";
|
|
10
|
+
import { getTodateString as Ne, colorFormat as Nt, getUserId as Se } from "../utils/index.js";
|
|
11
|
+
import { useSensors as St, useSensor as Pt, PointerSensor as Tt, DndContext as Lt, closestCenter as Mt } from "@dnd-kit/core";
|
|
12
|
+
import { restrictToHorizontalAxis as Bt } from "@dnd-kit/modifiers";
|
|
13
|
+
import { arrayMove as Ot, SortableContext as Et, horizontalListSortingStrategy as Dt, useSortable as Rt } from "@dnd-kit/sortable";
|
|
14
|
+
const zt = W(
|
|
15
|
+
() => import("./MenuReport-BTtoDFz-.js")
|
|
28
16
|
), At = W(
|
|
29
|
-
() => import("./common-components-
|
|
17
|
+
() => import("./common-components-0IMhPxxg.js").then((n) => n.$)
|
|
18
|
+
), $t = W(
|
|
19
|
+
() => import("./common-components-0IMhPxxg.js").then((n) => n.a0)
|
|
30
20
|
), Wt = W(
|
|
31
|
-
() => import("./common-components-
|
|
32
|
-
),
|
|
21
|
+
() => import("./common-components-0IMhPxxg.js").then((n) => n.a1)
|
|
22
|
+
), Ft = W(
|
|
23
|
+
() => import("./common-components-0IMhPxxg.js").then((n) => n.a2)
|
|
24
|
+
), Gt = W(
|
|
25
|
+
() => import("./common-components-0IMhPxxg.js").then((n) => n.a4)
|
|
26
|
+
), _t = W(
|
|
27
|
+
() => import("./CMSearchIntfGwP01-Co6lrDf9.js")
|
|
28
|
+
), jt = W(
|
|
29
|
+
() => import("./common-components-0IMhPxxg.js").then((n) => n.a5)
|
|
30
|
+
), Ht = W(
|
|
31
|
+
() => import("./common-components-0IMhPxxg.js").then((n) => n.a3)
|
|
32
|
+
), Vt = {
|
|
33
33
|
// 게시판/문의
|
|
34
34
|
CORE_REPORT: {
|
|
35
|
-
component:
|
|
35
|
+
component: zt,
|
|
36
36
|
defaultConfig: {
|
|
37
37
|
title: "게시판/문의",
|
|
38
38
|
width: 1200,
|
|
@@ -41,7 +41,7 @@ const Lt = W(
|
|
|
41
41
|
},
|
|
42
42
|
// 조직/부서 검색류
|
|
43
43
|
CORE_DEPARTMENT_01: {
|
|
44
|
-
component:
|
|
44
|
+
component: At,
|
|
45
45
|
defaultConfig: {
|
|
46
46
|
title: "부서 검색",
|
|
47
47
|
width: 620,
|
|
@@ -49,7 +49,7 @@ const Lt = W(
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
CORE_DEPARTMENT_02: {
|
|
52
|
-
component:
|
|
52
|
+
component: $t,
|
|
53
53
|
defaultConfig: {
|
|
54
54
|
title: "부서 검색",
|
|
55
55
|
width: 620,
|
|
@@ -57,7 +57,7 @@ const Lt = W(
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
CORE_ORGANIZATION_01: {
|
|
60
|
-
component:
|
|
60
|
+
component: Wt,
|
|
61
61
|
defaultConfig: {
|
|
62
62
|
title: "조직 검색",
|
|
63
63
|
width: 620,
|
|
@@ -65,7 +65,7 @@ const Lt = W(
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
CORE_ORGANIZATION_02: {
|
|
68
|
-
component:
|
|
68
|
+
component: Ft,
|
|
69
69
|
defaultConfig: {
|
|
70
70
|
title: "조직 검색",
|
|
71
71
|
width: 1e3,
|
|
@@ -73,7 +73,7 @@ const Lt = W(
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
CORE_PRGR_02: {
|
|
76
|
-
component:
|
|
76
|
+
component: Gt,
|
|
77
77
|
defaultConfig: {
|
|
78
78
|
title: "프로그램 검색",
|
|
79
79
|
width: 700,
|
|
@@ -81,7 +81,7 @@ const Lt = W(
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
CORE_GW_DRAFTS: {
|
|
84
|
-
component:
|
|
84
|
+
component: _t,
|
|
85
85
|
defaultConfig: {
|
|
86
86
|
title: "기안 목록",
|
|
87
87
|
width: 1e3,
|
|
@@ -89,7 +89,7 @@ const Lt = W(
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
CORE_ADDRESS_01: {
|
|
92
|
-
component:
|
|
92
|
+
component: jt,
|
|
93
93
|
defaultConfig: {
|
|
94
94
|
title: "주소 검색",
|
|
95
95
|
width: 750,
|
|
@@ -97,18 +97,18 @@ const Lt = W(
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
CORE_HOLIDAY_01: {
|
|
100
|
-
component:
|
|
100
|
+
component: Ht,
|
|
101
101
|
defaultConfig: {
|
|
102
102
|
title: "휴일 검색",
|
|
103
103
|
width: 750,
|
|
104
104
|
height: 800
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
},
|
|
108
|
-
function
|
|
109
|
-
if (typeof document > "u" || document.getElementById(
|
|
107
|
+
}, Pe = "bwg-dot-line-wave-v4";
|
|
108
|
+
function Kt() {
|
|
109
|
+
if (typeof document > "u" || document.getElementById(Pe)) return;
|
|
110
110
|
const n = document.createElement("style");
|
|
111
|
-
n.id =
|
|
111
|
+
n.id = Pe, n.textContent = `
|
|
112
112
|
.bwg-dotline {
|
|
113
113
|
display: inline-flex;
|
|
114
114
|
align-items: center;
|
|
@@ -144,53 +144,53 @@ function Ft() {
|
|
|
144
144
|
}
|
|
145
145
|
`, document.head.appendChild(n);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Ut = ({
|
|
148
148
|
colors: n = ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
149
149
|
count: t,
|
|
150
150
|
size: r = 12,
|
|
151
151
|
gap: o = 10,
|
|
152
|
-
amp:
|
|
153
|
-
speedMs:
|
|
154
|
-
direction:
|
|
152
|
+
amp: s = 16,
|
|
153
|
+
speedMs: a = 900,
|
|
154
|
+
direction: g = "ltr",
|
|
155
155
|
phase: c = 0.7
|
|
156
156
|
}) => {
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
E(() => {
|
|
158
|
+
Kt();
|
|
159
159
|
}, []);
|
|
160
|
-
const u = t ?? n.length,
|
|
160
|
+
const u = t ?? n.length, y = Array.from({ length: u }), h = {
|
|
161
161
|
"--bwg-size": `${r}px`,
|
|
162
162
|
"--bwg-gap": `${o}px`,
|
|
163
|
-
"--bwg-amp": `${
|
|
164
|
-
"--bwg-speed": `${
|
|
165
|
-
},
|
|
163
|
+
"--bwg-amp": `${s}px`,
|
|
164
|
+
"--bwg-speed": `${a}ms`
|
|
165
|
+
}, k = a / u * c;
|
|
166
166
|
return /* @__PURE__ */ e(
|
|
167
167
|
"span",
|
|
168
168
|
{
|
|
169
169
|
className: "bwg-dotline",
|
|
170
170
|
role: "img",
|
|
171
171
|
"aria-label": "loading",
|
|
172
|
-
style:
|
|
173
|
-
children:
|
|
172
|
+
style: h,
|
|
173
|
+
children: y.map((d, p) => /* @__PURE__ */ e(
|
|
174
174
|
"span",
|
|
175
175
|
{
|
|
176
176
|
className: "dot",
|
|
177
177
|
style: {
|
|
178
|
-
backgroundColor: n[
|
|
179
|
-
animationDelay:
|
|
178
|
+
backgroundColor: n[p % n.length],
|
|
179
|
+
animationDelay: g === "ltr" ? `${p * k}ms` : `${(u - 1 - p) * k}ms`
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
p
|
|
183
183
|
))
|
|
184
184
|
}
|
|
185
185
|
);
|
|
186
|
-
},
|
|
186
|
+
}, On = ({
|
|
187
187
|
spin: n = null,
|
|
188
188
|
text: t = "인증중...",
|
|
189
189
|
dimStyle: r = "dark"
|
|
190
190
|
}) => {
|
|
191
191
|
if (!(n ?? !0)) return null;
|
|
192
|
-
const
|
|
193
|
-
return /* @__PURE__ */
|
|
192
|
+
const a = r === "dark";
|
|
193
|
+
return /* @__PURE__ */ l(
|
|
194
194
|
"div",
|
|
195
195
|
{
|
|
196
196
|
className: "loading-overlay",
|
|
@@ -203,8 +203,8 @@ const _t = ({
|
|
|
203
203
|
alignItems: "center",
|
|
204
204
|
gap: 8,
|
|
205
205
|
padding: "8px 12px",
|
|
206
|
-
background:
|
|
207
|
-
color:
|
|
206
|
+
background: a ? "rgba(0, 0, 0, 0.6)" : "rgba(255, 255, 255, 0.85)",
|
|
207
|
+
color: a ? "#fff" : "#333",
|
|
208
208
|
backdropFilter: "blur(4px)",
|
|
209
209
|
zIndex: 1e4
|
|
210
210
|
},
|
|
@@ -213,10 +213,10 @@ const _t = ({
|
|
|
213
213
|
role: "status",
|
|
214
214
|
children: [
|
|
215
215
|
/* @__PURE__ */ e(
|
|
216
|
-
|
|
216
|
+
Q,
|
|
217
217
|
{
|
|
218
218
|
indicator: /* @__PURE__ */ e(
|
|
219
|
-
|
|
219
|
+
Ut,
|
|
220
220
|
{
|
|
221
221
|
colors: ["#DAD3FF", "#B3A6FF", "#9380FF", "#816BFA"],
|
|
222
222
|
size: 12,
|
|
@@ -233,18 +233,20 @@ const _t = ({
|
|
|
233
233
|
]
|
|
234
234
|
}
|
|
235
235
|
);
|
|
236
|
-
},
|
|
236
|
+
}, En = ({
|
|
237
237
|
routes: n,
|
|
238
238
|
useCommonProvider: t = !0,
|
|
239
239
|
useServiceProvider: r = !0
|
|
240
240
|
}) => {
|
|
241
|
-
let
|
|
242
|
-
/* @__PURE__ */ e(
|
|
243
|
-
/* @__PURE__ */ e(
|
|
244
|
-
/* @__PURE__ */ e(
|
|
241
|
+
let s = /* @__PURE__ */ l(Le, { children: [
|
|
242
|
+
/* @__PURE__ */ e(Y, { path: "/", element: /* @__PURE__ */ e(_e, { to: "/login" }) }),
|
|
243
|
+
/* @__PURE__ */ e(Y, { path: "/ssoLogin", element: n.ssoLogin }),
|
|
244
|
+
/* @__PURE__ */ e(Y, { path: "/login", element: n.login }),
|
|
245
|
+
/* @__PURE__ */ e(Y, { path: "/main/*", element: n.main }),
|
|
246
|
+
/* @__PURE__ */ e(Y, { path: "/sessionNotice", element: n.sessionNotice })
|
|
245
247
|
] });
|
|
246
|
-
return r && (
|
|
247
|
-
}, { Content:
|
|
248
|
+
return r && (s = /* @__PURE__ */ e($e, { children: s })), t && (s = /* @__PURE__ */ e(We, { children: s })), /* @__PURE__ */ e(He, { children: s });
|
|
249
|
+
}, { Content: Zt } = X, Re = ({
|
|
248
250
|
config: n = {},
|
|
249
251
|
children: t
|
|
250
252
|
}) => {
|
|
@@ -260,11 +262,11 @@ const _t = ({
|
|
|
260
262
|
...n
|
|
261
263
|
};
|
|
262
264
|
return /* @__PURE__ */ e(
|
|
263
|
-
|
|
265
|
+
Zt,
|
|
264
266
|
{
|
|
265
267
|
className: r.wrapper.className,
|
|
266
268
|
style: r.wrapper.style,
|
|
267
|
-
children: /* @__PURE__ */ e(
|
|
269
|
+
children: /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(
|
|
268
270
|
"div",
|
|
269
271
|
{
|
|
270
272
|
className: r.body.className,
|
|
@@ -274,7 +276,7 @@ const _t = ({
|
|
|
274
276
|
) })
|
|
275
277
|
}
|
|
276
278
|
);
|
|
277
|
-
},
|
|
279
|
+
}, Yt = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.9998%2019.9993V20.9993C11.9998%2021.3932%2012.0774%2021.7833%2012.2282%2022.1473C12.3789%2022.5112%2012.5999%2022.8419%2012.8785%2023.1205C13.157%2023.399%2013.4877%2023.62%2013.8517%2023.7708C14.2156%2023.9215%2014.6057%2023.9991%2014.9997%2023.9991C15.3936%2023.9991%2015.7837%2023.9215%2016.1477%2023.7708C16.5116%2023.62%2016.8423%2023.399%2017.1209%2023.1205C17.3994%2022.8419%2017.6204%2022.5112%2017.7712%2022.1473C17.9219%2021.7833%2017.9995%2021.3932%2017.9995%2020.9993V19.9993M20.9994%2011.9997C20.9994%2014.9996%2022.9993%2019.9993%2022.9993%2019.9993H7.00006C7.00006%2019.9993%208.99996%2015.9995%208.99996%2011.9997C8.99996%208.73187%2011.7318%206%2014.9997%206C18.2675%206%2020.9994%208.73187%2020.9994%2011.9997Z'%20stroke='%23485299'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", qt = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_93_4488)'%3e%3cpath%20d='M18%207H21C22.1046%207%2023%207.89543%2023%209V21C23%2022.1046%2022.1046%2023%2021%2023H18M11%2011L7%2015M7%2015L11%2019M7%2015L19%2015'%20stroke='%23485299'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_93_4488'%3e%3crect%20width='30'%20height='30'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Qt = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%206H16C16.5523%206%2017%206.44772%2017%207V7.56879C17%207.99659%2017.2871%208.36825%2017.6822%208.53228C18.0775%208.69638%2018.5377%208.63384%2018.8403%208.33123L19.2426%207.92891C19.6331%207.53838%2020.2663%207.53838%2020.6568%207.92891L22.071%209.34312C22.4616%209.73365%2022.4615%2010.3668%2022.071%2010.7573L21.6688%2011.1596C21.3661%2011.4622%2021.3036%2011.9225%2021.4677%2012.3177C21.6317%2012.7129%2022.0034%2013%2022.4313%2013L23%2013C23.5523%2013%2024%2013.4477%2024%2014V16C24%2016.5523%2023.5523%2017%2023%2017H22.4312C22.0034%2017%2021.6318%2017.2871%2021.4677%2017.6822C21.3036%2018.0775%2021.3661%2018.5377%2021.6688%2018.8403L22.071%2019.2426C22.4616%2019.6331%2022.4616%2020.2663%2022.071%2020.6568L20.6568%2022.071C20.2663%2022.4616%2019.6331%2022.4616%2019.2426%2022.071L18.8403%2021.6688C18.5377%2021.3661%2018.0775%2021.3036%2017.6822%2021.4677C17.2871%2021.6318%2017%2022.0034%2017%2022.4312V23C17%2023.5523%2016.5523%2024%2016%2024H14C13.4477%2024%2013%2023.5523%2013%2023V22.4313C13%2022.0034%2012.7129%2021.6317%2012.3177%2021.4677C11.9225%2021.3036%2011.4622%2021.3661%2011.1596%2021.6688L10.7573%2022.071C10.3668%2022.4616%209.73363%2022.4616%209.34311%2022.071L7.92889%2020.6568C7.53837%2020.2663%207.53837%2019.6331%207.92889%2019.2426L8.33123%2018.8403C8.63384%2018.5377%208.69638%2018.0775%208.53228%2017.6822C8.36825%2017.2871%207.99659%2017%207.56879%2017H7C6.44772%2017%206%2016.5523%206%2016V14C6%2013.4477%206.44772%2013%207%2013L7.56877%2013C7.99658%2013%208.36825%2012.7129%208.53229%2012.3178C8.6964%2011.9225%208.63386%2011.4623%208.33123%2011.1597L7.92891%2010.7573C7.53838%2010.3668%207.53838%209.73365%207.92891%209.34313L9.34312%207.92891C9.73365%207.53839%2010.3668%207.53839%2010.7573%207.92891L11.1597%208.33123C11.4623%208.63386%2011.9225%208.6964%2012.3178%208.53229C12.7129%208.36825%2013%207.99658%2013%207.56876V7C13%206.44772%2013.4477%206%2014%206Z'%20stroke='%23485299'%20stroke-width='1.5'/%3e%3cpath%20d='M17%2015C17%2016.1046%2016.1046%2017%2015%2017C13.8954%2017%2013%2016.1046%2013%2015C13%2013.8954%2013.8954%2013%2015%2013C16.1046%2013%2017%2013.8954%2017%2015Z'%20stroke='%23485299'%20stroke-width='1.5'/%3e%3c/svg%3e", { Header: Xt } = X, { confirm: Jt } = Ze, F = {
|
|
278
280
|
light: {
|
|
279
281
|
headerBg: "#ffffff",
|
|
280
282
|
headerText: "#000000",
|
|
@@ -327,11 +329,11 @@ const _t = ({
|
|
|
327
329
|
buttonDefaultBorder: "#dddddd",
|
|
328
330
|
buttonPermissionBorder: "#bdb1ff"
|
|
329
331
|
}
|
|
330
|
-
},
|
|
332
|
+
}, ge = {
|
|
331
333
|
0: "작게",
|
|
332
334
|
1: "보통",
|
|
333
335
|
2: "크게"
|
|
334
|
-
},
|
|
336
|
+
}, ze = ({ config: n = {}, children: t }) => {
|
|
335
337
|
const r = {
|
|
336
338
|
gap: 14,
|
|
337
339
|
minWidth: 200,
|
|
@@ -364,65 +366,65 @@ const _t = ({
|
|
|
364
366
|
...n.logo
|
|
365
367
|
},
|
|
366
368
|
right: r
|
|
367
|
-
},
|
|
369
|
+
}, s = ve(), a = J(null), g = st(() => s("/login", { replace: !0 })), {
|
|
368
370
|
componentSize: c,
|
|
369
371
|
setComponentSize: u,
|
|
370
|
-
gridSize:
|
|
371
|
-
setGridSize:
|
|
372
|
-
spacingSize:
|
|
373
|
-
setSpacingSize:
|
|
374
|
-
enableProtectWrapper:
|
|
375
|
-
setEnableProtectWrapper:
|
|
376
|
-
theme:
|
|
377
|
-
setTheme:
|
|
378
|
-
clearAllGridLayouts:
|
|
379
|
-
} =
|
|
372
|
+
gridSize: y,
|
|
373
|
+
setGridSize: h,
|
|
374
|
+
spacingSize: k,
|
|
375
|
+
setSpacingSize: d,
|
|
376
|
+
enableProtectWrapper: p,
|
|
377
|
+
setEnableProtectWrapper: I,
|
|
378
|
+
theme: b,
|
|
379
|
+
setTheme: m,
|
|
380
|
+
clearAllGridLayouts: v
|
|
381
|
+
} = Ee(), T = 1, D = 2, R = 2, w = (f, P) => {
|
|
380
382
|
try {
|
|
381
|
-
if (!/^[a-zA-Z0-9-]+$/.test(
|
|
382
|
-
document.documentElement.style.setProperty(
|
|
383
|
-
} catch (
|
|
384
|
-
console.error("CSS variable setting failed:",
|
|
383
|
+
if (!/^[a-zA-Z0-9-]+$/.test(f) || !/^[#a-zA-Z0-9()\s,.-]+$/.test(P)) return;
|
|
384
|
+
document.documentElement.style.setProperty(f, P);
|
|
385
|
+
} catch (N) {
|
|
386
|
+
console.error("CSS variable setting failed:", N);
|
|
385
387
|
}
|
|
386
|
-
},
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
const
|
|
390
|
-
|
|
388
|
+
}, G = (f) => {
|
|
389
|
+
if (!F[f]) return;
|
|
390
|
+
m(f);
|
|
391
|
+
const P = { ...F[f] };
|
|
392
|
+
w("--header-bg", P.headerBg), w("--header-text", P.headerText), w("--sidebar-bg", P.sidebarBg), w("--sidebar-text", P.sidebarText), w("--button-primary", P.buttonPrimary), w("--button-primary-hover", P.buttonPrimaryHover), w("--button-primary-active", P.buttonPrimaryActive), w("--button-default", P.buttonDefault), w("--button-default-hover", P.buttonDefaultHover), w("--button-default-border", P.buttonDefaultBorder), w(
|
|
391
393
|
"--button-permission-border",
|
|
392
|
-
|
|
393
|
-
),
|
|
394
|
+
P.buttonPermissionBorder
|
|
395
|
+
), a.current && a.current.setAttribute("data-theme", f), document.documentElement.setAttribute("data-theme", f);
|
|
394
396
|
};
|
|
395
|
-
|
|
396
|
-
if (
|
|
397
|
-
const
|
|
398
|
-
|
|
397
|
+
E(() => {
|
|
398
|
+
if (b && F[b]) {
|
|
399
|
+
const f = { ...F[b] };
|
|
400
|
+
w("--header-bg", f.headerBg), w("--header-text", f.headerText), w("--sidebar-bg", f.sidebarBg), w("--sidebar-text", f.sidebarText), w("--button-primary", f.buttonPrimary), w("--button-primary-hover", f.buttonPrimaryHover), w(
|
|
399
401
|
"--button-primary-active",
|
|
400
|
-
|
|
401
|
-
),
|
|
402
|
+
f.buttonPrimaryActive
|
|
403
|
+
), w("--button-default", f.buttonDefault), w("--button-default-hover", f.buttonDefaultHover), w(
|
|
402
404
|
"--button-default-border",
|
|
403
|
-
|
|
404
|
-
),
|
|
405
|
+
f.buttonDefaultBorder
|
|
406
|
+
), w(
|
|
405
407
|
"--button-permission-border",
|
|
406
|
-
|
|
407
|
-
),
|
|
408
|
+
f.buttonPermissionBorder
|
|
409
|
+
), a.current && a.current.setAttribute("data-theme", b), document.documentElement.setAttribute("data-theme", b);
|
|
408
410
|
} else
|
|
409
|
-
|
|
410
|
-
}, [
|
|
411
|
-
const
|
|
412
|
-
|
|
411
|
+
G("modern");
|
|
412
|
+
}, [b]);
|
|
413
|
+
const K = () => {
|
|
414
|
+
g();
|
|
413
415
|
};
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
+
Ne ? Ne("HH:mm:ss") : (/* @__PURE__ */ new Date()).toLocaleTimeString("ko-KR");
|
|
417
|
+
const U = F[b]?.headerBg || "#f3f4ff", ee = /* @__PURE__ */ l(
|
|
416
418
|
"div",
|
|
417
419
|
{
|
|
418
420
|
style: {
|
|
419
421
|
padding: "16px",
|
|
420
|
-
backgroundColor:
|
|
422
|
+
backgroundColor: U,
|
|
421
423
|
borderRadius: "8px",
|
|
422
424
|
minWidth: "320px"
|
|
423
425
|
},
|
|
424
426
|
children: [
|
|
425
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ l("div", { style: { marginBottom: "16px" }, children: [
|
|
426
428
|
/* @__PURE__ */ e(
|
|
427
429
|
"div",
|
|
428
430
|
{
|
|
@@ -430,7 +432,7 @@ const _t = ({
|
|
|
430
432
|
children: "테마 선택"
|
|
431
433
|
}
|
|
432
434
|
),
|
|
433
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ l(
|
|
434
436
|
"div",
|
|
435
437
|
{
|
|
436
438
|
style: {
|
|
@@ -443,43 +445,43 @@ const _t = ({
|
|
|
443
445
|
/* @__PURE__ */ e(
|
|
444
446
|
B,
|
|
445
447
|
{
|
|
446
|
-
type:
|
|
448
|
+
type: b === "modern" ? "primary" : "default",
|
|
447
449
|
size: "small",
|
|
448
|
-
onClick: () =>
|
|
450
|
+
onClick: () => G("modern"),
|
|
449
451
|
style: {
|
|
450
452
|
width: "100%",
|
|
451
|
-
backgroundColor:
|
|
452
|
-
color:
|
|
453
|
-
borderColor:
|
|
453
|
+
backgroundColor: b === "modern" ? F.modern.headerBg : void 0,
|
|
454
|
+
color: b === "modern" ? F.modern.headerText : void 0,
|
|
455
|
+
borderColor: b === "modern" ? F.modern.headerBg : void 0
|
|
454
456
|
},
|
|
455
457
|
children: "모던"
|
|
456
458
|
},
|
|
457
459
|
"modern"
|
|
458
460
|
),
|
|
459
|
-
Object.entries(
|
|
461
|
+
Object.entries(F).filter(([f]) => f !== "modern").map(([f, P]) => /* @__PURE__ */ e(
|
|
460
462
|
B,
|
|
461
463
|
{
|
|
462
|
-
type:
|
|
464
|
+
type: b === f ? "primary" : "default",
|
|
463
465
|
size: "small",
|
|
464
|
-
onClick: () =>
|
|
466
|
+
onClick: () => G(f),
|
|
465
467
|
style: {
|
|
466
468
|
width: "100%",
|
|
467
|
-
backgroundColor:
|
|
468
|
-
color:
|
|
469
|
-
borderColor:
|
|
469
|
+
backgroundColor: b === f ? P.headerBg : void 0,
|
|
470
|
+
color: b === f ? P.headerText : void 0,
|
|
471
|
+
borderColor: b === f ? P.headerBg : void 0
|
|
470
472
|
},
|
|
471
|
-
children:
|
|
473
|
+
children: f
|
|
472
474
|
},
|
|
473
|
-
|
|
475
|
+
f
|
|
474
476
|
))
|
|
475
477
|
]
|
|
476
478
|
}
|
|
477
479
|
)
|
|
478
480
|
] }),
|
|
479
|
-
/* @__PURE__ */ e(
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
|
|
481
|
+
/* @__PURE__ */ e(he, { style: { margin: "16px 0" } }),
|
|
482
|
+
/* @__PURE__ */ l("div", { style: { marginBottom: "16px" }, children: [
|
|
483
|
+
/* @__PURE__ */ l(
|
|
484
|
+
ie,
|
|
483
485
|
{
|
|
484
486
|
justify: "space-between",
|
|
485
487
|
align: "center",
|
|
@@ -491,7 +493,7 @@ const _t = ({
|
|
|
491
493
|
{
|
|
492
494
|
type: "text",
|
|
493
495
|
size: "small",
|
|
494
|
-
icon: /* @__PURE__ */ e(
|
|
496
|
+
icon: /* @__PURE__ */ e(oe, {}),
|
|
495
497
|
onClick: () => u(T),
|
|
496
498
|
disabled: c === T,
|
|
497
499
|
style: { padding: "0 4px" }
|
|
@@ -501,20 +503,20 @@ const _t = ({
|
|
|
501
503
|
}
|
|
502
504
|
),
|
|
503
505
|
/* @__PURE__ */ e(
|
|
504
|
-
|
|
506
|
+
me,
|
|
505
507
|
{
|
|
506
|
-
marks:
|
|
508
|
+
marks: ge,
|
|
507
509
|
value: c,
|
|
508
510
|
min: 0,
|
|
509
511
|
max: 2,
|
|
510
512
|
step: 1,
|
|
511
|
-
onChange: (
|
|
513
|
+
onChange: (f) => u(f)
|
|
512
514
|
}
|
|
513
515
|
)
|
|
514
516
|
] }),
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
|
|
517
|
+
/* @__PURE__ */ l("div", { style: { marginBottom: "16px" }, children: [
|
|
518
|
+
/* @__PURE__ */ l(
|
|
519
|
+
ie,
|
|
518
520
|
{
|
|
519
521
|
justify: "space-between",
|
|
520
522
|
align: "center",
|
|
@@ -526,9 +528,9 @@ const _t = ({
|
|
|
526
528
|
{
|
|
527
529
|
type: "text",
|
|
528
530
|
size: "small",
|
|
529
|
-
icon: /* @__PURE__ */ e(
|
|
530
|
-
onClick: () =>
|
|
531
|
-
disabled:
|
|
531
|
+
icon: /* @__PURE__ */ e(oe, {}),
|
|
532
|
+
onClick: () => h(D),
|
|
533
|
+
disabled: y === D,
|
|
532
534
|
style: { padding: "0 4px" }
|
|
533
535
|
}
|
|
534
536
|
)
|
|
@@ -536,20 +538,20 @@ const _t = ({
|
|
|
536
538
|
}
|
|
537
539
|
),
|
|
538
540
|
/* @__PURE__ */ e(
|
|
539
|
-
|
|
541
|
+
me,
|
|
540
542
|
{
|
|
541
|
-
marks:
|
|
542
|
-
value:
|
|
543
|
+
marks: ge,
|
|
544
|
+
value: y,
|
|
543
545
|
min: 0,
|
|
544
546
|
max: 2,
|
|
545
547
|
step: 1,
|
|
546
|
-
onChange: (
|
|
548
|
+
onChange: (f) => h(f)
|
|
547
549
|
}
|
|
548
550
|
)
|
|
549
551
|
] }),
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
|
|
552
|
+
/* @__PURE__ */ l("div", { style: { marginBottom: "16px" }, children: [
|
|
553
|
+
/* @__PURE__ */ l(
|
|
554
|
+
ie,
|
|
553
555
|
{
|
|
554
556
|
justify: "space-between",
|
|
555
557
|
align: "center",
|
|
@@ -561,9 +563,9 @@ const _t = ({
|
|
|
561
563
|
{
|
|
562
564
|
type: "text",
|
|
563
565
|
size: "small",
|
|
564
|
-
icon: /* @__PURE__ */ e(
|
|
565
|
-
onClick: () =>
|
|
566
|
-
disabled:
|
|
566
|
+
icon: /* @__PURE__ */ e(oe, {}),
|
|
567
|
+
onClick: () => d(R),
|
|
568
|
+
disabled: k === R,
|
|
567
569
|
style: { padding: "0 4px" }
|
|
568
570
|
}
|
|
569
571
|
)
|
|
@@ -571,19 +573,19 @@ const _t = ({
|
|
|
571
573
|
}
|
|
572
574
|
),
|
|
573
575
|
/* @__PURE__ */ e(
|
|
574
|
-
|
|
576
|
+
me,
|
|
575
577
|
{
|
|
576
|
-
marks:
|
|
577
|
-
value:
|
|
578
|
+
marks: ge,
|
|
579
|
+
value: k,
|
|
578
580
|
min: 0,
|
|
579
581
|
max: 2,
|
|
580
582
|
step: 1,
|
|
581
|
-
onChange: (
|
|
583
|
+
onChange: (f) => d(f)
|
|
582
584
|
}
|
|
583
585
|
)
|
|
584
586
|
] }),
|
|
585
|
-
/* @__PURE__ */ e(
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ e(he, { style: { margin: "16px 0" } }),
|
|
588
|
+
/* @__PURE__ */ l(
|
|
587
589
|
"div",
|
|
588
590
|
{
|
|
589
591
|
style: {
|
|
@@ -595,29 +597,29 @@ const _t = ({
|
|
|
595
597
|
children: [
|
|
596
598
|
/* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500 }, children: "화면 보호 활성화" }),
|
|
597
599
|
/* @__PURE__ */ e(
|
|
598
|
-
|
|
600
|
+
Ue,
|
|
599
601
|
{
|
|
600
|
-
checked:
|
|
601
|
-
onChange:
|
|
602
|
+
checked: p,
|
|
603
|
+
onChange: I
|
|
602
604
|
}
|
|
603
605
|
)
|
|
604
606
|
]
|
|
605
607
|
}
|
|
606
608
|
),
|
|
607
|
-
/* @__PURE__ */ e(
|
|
609
|
+
/* @__PURE__ */ e(he, { style: { margin: "16px 0" } }),
|
|
608
610
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
609
611
|
B,
|
|
610
612
|
{
|
|
611
613
|
type: "default",
|
|
612
614
|
danger: !0,
|
|
613
615
|
size: "small",
|
|
614
|
-
icon: /* @__PURE__ */ e(
|
|
616
|
+
icon: /* @__PURE__ */ e(oe, {}),
|
|
615
617
|
onClick: () => {
|
|
616
|
-
|
|
618
|
+
Jt({
|
|
617
619
|
title: "전체 그리드 레이아웃 초기화",
|
|
618
620
|
content: "임의 변경한 그리드 레이아웃 변경사항을 초기화하시겠습니까? 기존 열려있는 화면들은 다시 열어야 적용됩니다.",
|
|
619
621
|
onOk() {
|
|
620
|
-
|
|
622
|
+
v();
|
|
621
623
|
}
|
|
622
624
|
});
|
|
623
625
|
},
|
|
@@ -629,8 +631,8 @@ const _t = ({
|
|
|
629
631
|
]
|
|
630
632
|
}
|
|
631
633
|
);
|
|
632
|
-
return /* @__PURE__ */
|
|
633
|
-
|
|
634
|
+
return /* @__PURE__ */ l(
|
|
635
|
+
Xt,
|
|
634
636
|
{
|
|
635
637
|
className: o.wrapper.className,
|
|
636
638
|
style: { ...o.wrapper.style },
|
|
@@ -656,7 +658,7 @@ const _t = ({
|
|
|
656
658
|
children: t
|
|
657
659
|
}
|
|
658
660
|
),
|
|
659
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ l(
|
|
660
662
|
"div",
|
|
661
663
|
{
|
|
662
664
|
className: "header-right",
|
|
@@ -665,29 +667,29 @@ const _t = ({
|
|
|
665
667
|
minWidth: o.right?.minWidth
|
|
666
668
|
},
|
|
667
669
|
children: [
|
|
668
|
-
o.right?.items?.map((
|
|
670
|
+
o.right?.items?.map((f, P) => /* @__PURE__ */ e("div", { children: f }, P)),
|
|
669
671
|
o.right?.alarm?.visible && /* @__PURE__ */ e(
|
|
670
672
|
B,
|
|
671
673
|
{
|
|
672
674
|
type: "text",
|
|
673
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
675
|
+
icon: /* @__PURE__ */ e("img", { src: Yt, alt: "알림" }),
|
|
674
676
|
className: "alarm-btn",
|
|
675
677
|
onClick: o.right?.alarm?.onClick
|
|
676
678
|
}
|
|
677
679
|
),
|
|
678
680
|
o.right?.theme?.visible && /* @__PURE__ */ e(
|
|
679
|
-
|
|
681
|
+
Ye,
|
|
680
682
|
{
|
|
681
|
-
content:
|
|
683
|
+
content: ee,
|
|
682
684
|
title: "개인 설정",
|
|
683
685
|
trigger: "click",
|
|
684
686
|
placement: "bottomRight",
|
|
685
|
-
onOpenChange: (
|
|
687
|
+
onOpenChange: (f) => o.right?.theme?.onOpenChange?.(f),
|
|
686
688
|
children: /* @__PURE__ */ e(
|
|
687
689
|
B,
|
|
688
690
|
{
|
|
689
691
|
type: "text",
|
|
690
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
692
|
+
icon: /* @__PURE__ */ e("img", { src: Qt, alt: "개인설정" }),
|
|
691
693
|
className: "theme-btn",
|
|
692
694
|
onClick: o.right?.theme?.onClick
|
|
693
695
|
}
|
|
@@ -698,15 +700,15 @@ const _t = ({
|
|
|
698
700
|
B,
|
|
699
701
|
{
|
|
700
702
|
type: "text",
|
|
701
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
702
|
-
onClick: o.right?.logout?.onClick ||
|
|
703
|
+
icon: /* @__PURE__ */ e("img", { src: qt, alt: "로그아웃" }),
|
|
704
|
+
onClick: o.right?.logout?.onClick || K,
|
|
703
705
|
className: "logout-btn"
|
|
704
706
|
}
|
|
705
707
|
),
|
|
706
708
|
o.right?.avatar?.visible && /* @__PURE__ */ e(
|
|
707
|
-
|
|
709
|
+
qe,
|
|
708
710
|
{
|
|
709
|
-
icon: /* @__PURE__ */ e(
|
|
711
|
+
icon: /* @__PURE__ */ e(dt, {}),
|
|
710
712
|
className: "avatar",
|
|
711
713
|
style: {
|
|
712
714
|
width: o.right?.avatar?.width,
|
|
@@ -721,7 +723,7 @@ const _t = ({
|
|
|
721
723
|
]
|
|
722
724
|
}
|
|
723
725
|
);
|
|
724
|
-
},
|
|
726
|
+
}, ye = /* @__PURE__ */ Object.freeze({
|
|
725
727
|
Translate: {
|
|
726
728
|
toString(n) {
|
|
727
729
|
if (!n)
|
|
@@ -747,7 +749,7 @@ const _t = ({
|
|
|
747
749
|
Transform: {
|
|
748
750
|
toString(n) {
|
|
749
751
|
if (n)
|
|
750
|
-
return [
|
|
752
|
+
return [ye.Translate.toString(n), ye.Scale.toString(n)].join(" ");
|
|
751
753
|
}
|
|
752
754
|
},
|
|
753
755
|
Transition: {
|
|
@@ -760,62 +762,62 @@ const _t = ({
|
|
|
760
762
|
return t + " " + r + "ms " + o;
|
|
761
763
|
}
|
|
762
764
|
}
|
|
763
|
-
}),
|
|
765
|
+
}), en = we(
|
|
764
766
|
({ className: n, ...t }) => {
|
|
765
|
-
const r =
|
|
767
|
+
const r = J(null), {
|
|
766
768
|
attributes: o,
|
|
767
|
-
listeners:
|
|
768
|
-
transform:
|
|
769
|
-
transition:
|
|
769
|
+
listeners: s,
|
|
770
|
+
transform: a,
|
|
771
|
+
transition: g,
|
|
770
772
|
isDragging: c,
|
|
771
773
|
setNodeRef: u
|
|
772
|
-
} =
|
|
773
|
-
|
|
774
|
-
const
|
|
775
|
-
if (
|
|
774
|
+
} = Rt({ id: t["data-node-key"] }), [y, h] = $();
|
|
775
|
+
E(() => {
|
|
776
|
+
const v = r.current;
|
|
777
|
+
if (v)
|
|
776
778
|
if (c) {
|
|
777
|
-
const T = Math.round(
|
|
778
|
-
|
|
779
|
+
const T = Math.round(v.getBoundingClientRect().width);
|
|
780
|
+
h(T);
|
|
779
781
|
} else
|
|
780
|
-
|
|
782
|
+
h(void 0);
|
|
781
783
|
}, [c]);
|
|
782
|
-
const
|
|
784
|
+
const k = {
|
|
783
785
|
...t.style,
|
|
784
|
-
transform:
|
|
785
|
-
transition:
|
|
786
|
+
transform: a ? ye.Transform.toString(a) : void 0,
|
|
787
|
+
transition: g ?? "transform 0.16s ease",
|
|
786
788
|
cursor: "grab",
|
|
787
789
|
userSelect: "none",
|
|
788
790
|
willChange: "transform",
|
|
789
791
|
// ✅ 드래그 중 픽셀 폭 고정 (flex 재계산 억제)
|
|
790
|
-
width:
|
|
791
|
-
minWidth:
|
|
792
|
-
maxWidth:
|
|
793
|
-
flex:
|
|
794
|
-
},
|
|
795
|
-
return
|
|
796
|
-
ref: (
|
|
797
|
-
r.current !==
|
|
792
|
+
width: y ?? void 0,
|
|
793
|
+
minWidth: y ?? void 0,
|
|
794
|
+
maxWidth: y ?? void 0,
|
|
795
|
+
flex: y !== void 0 ? "0 0 auto" : void 0
|
|
796
|
+
}, d = t.children, p = d.props?.className || "", m = t["data-gubun"] === "C" ? p ? `${p} tab-special` : "tab-special" : p;
|
|
797
|
+
return ot(d, {
|
|
798
|
+
ref: (v) => {
|
|
799
|
+
r.current !== v && (r.current = v), u(v);
|
|
798
800
|
},
|
|
799
|
-
className:
|
|
800
|
-
style:
|
|
801
|
+
className: m,
|
|
802
|
+
style: k,
|
|
801
803
|
...o,
|
|
802
|
-
...
|
|
804
|
+
...s
|
|
803
805
|
});
|
|
804
806
|
}
|
|
805
|
-
),
|
|
807
|
+
), tn = we(function({
|
|
806
808
|
config: t,
|
|
807
809
|
isFirst: r,
|
|
808
810
|
isLast: o,
|
|
809
|
-
canCloseAll:
|
|
810
|
-
onFirst:
|
|
811
|
-
onPrev:
|
|
811
|
+
canCloseAll: s,
|
|
812
|
+
onFirst: a,
|
|
813
|
+
onPrev: g,
|
|
812
814
|
onNext: c,
|
|
813
815
|
onLast: u,
|
|
814
|
-
onCloseAll:
|
|
816
|
+
onCloseAll: y
|
|
815
817
|
}) {
|
|
816
|
-
return /* @__PURE__ */
|
|
818
|
+
return /* @__PURE__ */ l("div", { className: t.wrapper?.className, style: t.wrapper?.style, children: [
|
|
817
819
|
/* @__PURE__ */ e(
|
|
818
|
-
|
|
820
|
+
te,
|
|
819
821
|
{
|
|
820
822
|
title: "첫 번째 탭",
|
|
821
823
|
className: t.tooltip?.className,
|
|
@@ -826,15 +828,15 @@ const _t = ({
|
|
|
826
828
|
className: t.buttons?.className,
|
|
827
829
|
style: t.buttons?.style,
|
|
828
830
|
size: "small",
|
|
829
|
-
icon: /* @__PURE__ */ e(
|
|
830
|
-
onClick:
|
|
831
|
+
icon: /* @__PURE__ */ e(pt, {}),
|
|
832
|
+
onClick: a,
|
|
831
833
|
disabled: r
|
|
832
834
|
}
|
|
833
835
|
)
|
|
834
836
|
}
|
|
835
837
|
),
|
|
836
838
|
/* @__PURE__ */ e(
|
|
837
|
-
|
|
839
|
+
te,
|
|
838
840
|
{
|
|
839
841
|
title: "이전 탭",
|
|
840
842
|
className: t.tooltip?.className,
|
|
@@ -845,15 +847,15 @@ const _t = ({
|
|
|
845
847
|
className: t.buttons?.className,
|
|
846
848
|
style: t.buttons?.style,
|
|
847
849
|
size: "small",
|
|
848
|
-
icon: /* @__PURE__ */ e(
|
|
849
|
-
onClick:
|
|
850
|
+
icon: /* @__PURE__ */ e(gt, {}),
|
|
851
|
+
onClick: g,
|
|
850
852
|
disabled: r
|
|
851
853
|
}
|
|
852
854
|
)
|
|
853
855
|
}
|
|
854
856
|
),
|
|
855
857
|
/* @__PURE__ */ e(
|
|
856
|
-
|
|
858
|
+
te,
|
|
857
859
|
{
|
|
858
860
|
title: "다음 탭",
|
|
859
861
|
className: t.tooltip?.className,
|
|
@@ -864,7 +866,7 @@ const _t = ({
|
|
|
864
866
|
className: t.buttons?.className,
|
|
865
867
|
style: t.buttons?.style,
|
|
866
868
|
size: "small",
|
|
867
|
-
icon: /* @__PURE__ */ e(
|
|
869
|
+
icon: /* @__PURE__ */ e(ft, {}),
|
|
868
870
|
onClick: c,
|
|
869
871
|
disabled: o
|
|
870
872
|
}
|
|
@@ -872,7 +874,7 @@ const _t = ({
|
|
|
872
874
|
}
|
|
873
875
|
),
|
|
874
876
|
/* @__PURE__ */ e(
|
|
875
|
-
|
|
877
|
+
te,
|
|
876
878
|
{
|
|
877
879
|
title: "마지막 탭",
|
|
878
880
|
className: t.tooltip?.className,
|
|
@@ -883,7 +885,7 @@ const _t = ({
|
|
|
883
885
|
className: t.buttons?.className,
|
|
884
886
|
style: t.buttons?.style,
|
|
885
887
|
size: "small",
|
|
886
|
-
icon: /* @__PURE__ */ e(
|
|
888
|
+
icon: /* @__PURE__ */ e(bt, {}),
|
|
887
889
|
onClick: u,
|
|
888
890
|
disabled: o
|
|
889
891
|
}
|
|
@@ -891,7 +893,7 @@ const _t = ({
|
|
|
891
893
|
}
|
|
892
894
|
),
|
|
893
895
|
/* @__PURE__ */ e(
|
|
894
|
-
|
|
896
|
+
te,
|
|
895
897
|
{
|
|
896
898
|
title: "모든 탭 닫기",
|
|
897
899
|
className: t.tooltip?.className,
|
|
@@ -902,15 +904,15 @@ const _t = ({
|
|
|
902
904
|
className: t.buttons?.className,
|
|
903
905
|
style: t.buttons?.style,
|
|
904
906
|
size: "small",
|
|
905
|
-
icon: /* @__PURE__ */ e(
|
|
906
|
-
onClick:
|
|
907
|
-
disabled: !
|
|
907
|
+
icon: /* @__PURE__ */ e(ne, {}),
|
|
908
|
+
onClick: y,
|
|
909
|
+
disabled: !s
|
|
908
910
|
}
|
|
909
911
|
)
|
|
910
912
|
}
|
|
911
913
|
)
|
|
912
914
|
] });
|
|
913
|
-
}),
|
|
915
|
+
}), nn = ({
|
|
914
916
|
config: n = {}
|
|
915
917
|
}) => {
|
|
916
918
|
const t = {
|
|
@@ -938,59 +940,59 @@ const _t = ({
|
|
|
938
940
|
...n?.nav
|
|
939
941
|
},
|
|
940
942
|
...n
|
|
941
|
-
}, r = O((
|
|
942
|
-
O((
|
|
943
|
-
const
|
|
944
|
-
|
|
945
|
-
),
|
|
946
|
-
i
|
|
947
|
-
},
|
|
948
|
-
|
|
949
|
-
},
|
|
950
|
-
r.length > 0 &&
|
|
951
|
-
},
|
|
943
|
+
}, r = O((i) => i.tabs), o = O((i) => i.activeMenuId), s = O((i) => i.pinnedTabs), a = O((i) => i.focusTab), g = O((i) => i.closeTab), c = O((i) => i.reorderTabs), u = O((i) => i.togglePinTab), y = O((i) => i.refreshTab), h = O((i) => i.closeOtherTabs), k = O((i) => i.closeRightTabs);
|
|
944
|
+
O((i) => i.closeAllTabs);
|
|
945
|
+
const d = St(
|
|
946
|
+
Pt(Tt, { activationConstraint: { distance: 6 } })
|
|
947
|
+
), p = (i) => {
|
|
948
|
+
a(i);
|
|
949
|
+
}, I = (i, x) => {
|
|
950
|
+
x === "remove" && typeof i == "string" && g(i);
|
|
951
|
+
}, b = () => {
|
|
952
|
+
r.length > 0 && a(r[0].key);
|
|
953
|
+
}, m = () => {
|
|
952
954
|
if (!o || r.length <= 1) return;
|
|
953
|
-
const
|
|
954
|
-
|
|
955
|
-
},
|
|
955
|
+
const i = r.findIndex((x) => x.key === o);
|
|
956
|
+
i > 0 && a(r[i - 1].key);
|
|
957
|
+
}, v = () => {
|
|
956
958
|
if (!o || r.length <= 1) return;
|
|
957
|
-
const
|
|
958
|
-
|
|
959
|
+
const i = r.findIndex((x) => x.key === o);
|
|
960
|
+
i < r.length - 1 && a(r[i + 1].key);
|
|
959
961
|
}, T = () => {
|
|
960
|
-
r.length > 0 &&
|
|
961
|
-
},
|
|
962
|
-
r.forEach((
|
|
963
|
-
|
|
962
|
+
r.length > 0 && a(r[r.length - 1].key);
|
|
963
|
+
}, D = () => {
|
|
964
|
+
r.forEach((i) => {
|
|
965
|
+
s.has(i.key) || g(i.key);
|
|
964
966
|
});
|
|
965
|
-
}, R =
|
|
966
|
-
|
|
967
|
-
}, []),
|
|
968
|
-
(
|
|
969
|
-
const
|
|
967
|
+
}, R = z((i) => (x) => {
|
|
968
|
+
x.preventDefault(), x.stopPropagation();
|
|
969
|
+
}, []), w = z(
|
|
970
|
+
(i) => {
|
|
971
|
+
const x = s.has(i), L = r.findIndex((re) => re.key === i), M = L >= 0 && L < r.length - 1, j = r.length > 1;
|
|
970
972
|
return [
|
|
971
973
|
{
|
|
972
974
|
key: "close",
|
|
973
975
|
label: "닫기",
|
|
974
|
-
icon: /* @__PURE__ */ e(
|
|
976
|
+
icon: /* @__PURE__ */ e(ne, {}),
|
|
975
977
|
onClick: () => {
|
|
976
|
-
|
|
978
|
+
x || g(i);
|
|
977
979
|
},
|
|
978
|
-
disabled:
|
|
980
|
+
disabled: x
|
|
979
981
|
},
|
|
980
982
|
{
|
|
981
983
|
key: "pin",
|
|
982
|
-
label:
|
|
983
|
-
icon: /* @__PURE__ */ e(
|
|
984
|
+
label: x ? "고정 해제" : "고정",
|
|
985
|
+
icon: /* @__PURE__ */ e(ut, {}),
|
|
984
986
|
onClick: () => {
|
|
985
|
-
u(
|
|
987
|
+
u(i);
|
|
986
988
|
}
|
|
987
989
|
},
|
|
988
990
|
{
|
|
989
991
|
key: "refresh",
|
|
990
992
|
label: "새로고침",
|
|
991
|
-
icon: /* @__PURE__ */ e(
|
|
993
|
+
icon: /* @__PURE__ */ e(de, {}),
|
|
992
994
|
onClick: () => {
|
|
993
|
-
|
|
995
|
+
y(i);
|
|
994
996
|
}
|
|
995
997
|
},
|
|
996
998
|
{
|
|
@@ -999,27 +1001,27 @@ const _t = ({
|
|
|
999
1001
|
{
|
|
1000
1002
|
key: "closeOthers",
|
|
1001
1003
|
label: "다른 탭 닫기",
|
|
1002
|
-
icon: /* @__PURE__ */ e(
|
|
1004
|
+
icon: /* @__PURE__ */ e(ne, {}),
|
|
1003
1005
|
onClick: () => {
|
|
1004
|
-
|
|
1006
|
+
h(i);
|
|
1005
1007
|
},
|
|
1006
|
-
disabled: !
|
|
1008
|
+
disabled: !j
|
|
1007
1009
|
},
|
|
1008
1010
|
{
|
|
1009
1011
|
key: "closeRight",
|
|
1010
1012
|
label: "우측 탭 닫기",
|
|
1011
|
-
icon: /* @__PURE__ */ e(
|
|
1013
|
+
icon: /* @__PURE__ */ e(ne, {}),
|
|
1012
1014
|
onClick: () => {
|
|
1013
|
-
|
|
1015
|
+
k(i);
|
|
1014
1016
|
},
|
|
1015
|
-
disabled: !
|
|
1017
|
+
disabled: !M
|
|
1016
1018
|
},
|
|
1017
1019
|
{
|
|
1018
1020
|
key: "closeAll",
|
|
1019
1021
|
label: "전체 닫기",
|
|
1020
|
-
icon: /* @__PURE__ */ e(
|
|
1022
|
+
icon: /* @__PURE__ */ e(ht, {}),
|
|
1021
1023
|
onClick: () => {
|
|
1022
|
-
|
|
1024
|
+
D();
|
|
1023
1025
|
},
|
|
1024
1026
|
disabled: r.length === 0
|
|
1025
1027
|
}
|
|
@@ -1027,84 +1029,84 @@ const _t = ({
|
|
|
1027
1029
|
},
|
|
1028
1030
|
[
|
|
1029
1031
|
r,
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
+
s,
|
|
1033
|
+
g,
|
|
1032
1034
|
u,
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1035
|
+
y,
|
|
1036
|
+
h,
|
|
1037
|
+
k
|
|
1036
1038
|
]
|
|
1037
|
-
),
|
|
1038
|
-
() => r.map((
|
|
1039
|
-
const
|
|
1039
|
+
), G = o ? r.findIndex((i) => i.key === o) : -1, K = G === 0, U = G === r.length - 1, ee = _(
|
|
1040
|
+
() => r.map((i) => {
|
|
1041
|
+
const x = s.has(i.key);
|
|
1040
1042
|
return {
|
|
1041
|
-
key:
|
|
1042
|
-
label: /* @__PURE__ */
|
|
1043
|
-
|
|
1044
|
-
|
|
1043
|
+
key: i.key,
|
|
1044
|
+
label: /* @__PURE__ */ l("span", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
1045
|
+
x && /* @__PURE__ */ e(
|
|
1046
|
+
mt,
|
|
1045
1047
|
{
|
|
1046
|
-
twoToneColor:
|
|
1048
|
+
twoToneColor: Nt.default.yellow05,
|
|
1047
1049
|
style: { fontSize: "12px" }
|
|
1048
1050
|
}
|
|
1049
1051
|
),
|
|
1050
|
-
|
|
1052
|
+
i.label
|
|
1051
1053
|
] }),
|
|
1052
|
-
closable: !
|
|
1054
|
+
closable: !x,
|
|
1053
1055
|
// 고정된 탭은 닫을 수 없음
|
|
1054
1056
|
children: null
|
|
1055
1057
|
// 컨텐츠는 Main 쪽에서 렌더 → 여기선 헤더만 필요
|
|
1056
1058
|
};
|
|
1057
1059
|
}),
|
|
1058
|
-
[r,
|
|
1059
|
-
), [
|
|
1060
|
-
|
|
1061
|
-
}, []),
|
|
1062
|
-
({ active:
|
|
1063
|
-
if (!
|
|
1064
|
-
const
|
|
1065
|
-
if (
|
|
1066
|
-
const
|
|
1067
|
-
c?.(
|
|
1060
|
+
[r, s]
|
|
1061
|
+
), [f, P] = $(null), N = z(({ active: i }) => {
|
|
1062
|
+
P(null);
|
|
1063
|
+
}, []), S = z(
|
|
1064
|
+
({ active: i, over: x }) => {
|
|
1065
|
+
if (!x || i.id === x.id) return;
|
|
1066
|
+
const L = r.findIndex((H) => H.key === i.id), M = r.findIndex((H) => H.key === x.id);
|
|
1067
|
+
if (L < 0 || M < 0 || L === M) return;
|
|
1068
|
+
const j = r.map((H) => H.key), re = Ot(j, L, M);
|
|
1069
|
+
c?.(re);
|
|
1068
1070
|
},
|
|
1069
1071
|
[r, c]
|
|
1070
|
-
),
|
|
1071
|
-
(
|
|
1072
|
-
|
|
1072
|
+
), C = z(
|
|
1073
|
+
(i, x) => /* @__PURE__ */ e(
|
|
1074
|
+
Lt,
|
|
1073
1075
|
{
|
|
1074
|
-
sensors:
|
|
1075
|
-
onDragStart:
|
|
1076
|
-
onDragEnd:
|
|
1077
|
-
collisionDetection:
|
|
1078
|
-
modifiers: [
|
|
1076
|
+
sensors: d,
|
|
1077
|
+
onDragStart: N,
|
|
1078
|
+
onDragEnd: S,
|
|
1079
|
+
collisionDetection: Mt,
|
|
1080
|
+
modifiers: [Bt],
|
|
1079
1081
|
children: /* @__PURE__ */ e(
|
|
1080
|
-
|
|
1082
|
+
Et,
|
|
1081
1083
|
{
|
|
1082
|
-
items: r.map((
|
|
1083
|
-
strategy:
|
|
1084
|
-
children: /* @__PURE__ */ e(
|
|
1085
|
-
const
|
|
1084
|
+
items: r.map((L) => L.key),
|
|
1085
|
+
strategy: Dt,
|
|
1086
|
+
children: /* @__PURE__ */ e(x, { ...i, children: (L) => {
|
|
1087
|
+
const M = L.key, j = f === M, H = r.find((ue) => ue.key === M)?.gubun;
|
|
1086
1088
|
return /* @__PURE__ */ e(
|
|
1087
|
-
|
|
1089
|
+
Qe,
|
|
1088
1090
|
{
|
|
1089
|
-
menu: { items:
|
|
1091
|
+
menu: { items: w(M) },
|
|
1090
1092
|
trigger: ["contextMenu"],
|
|
1091
|
-
open:
|
|
1092
|
-
onOpenChange: (
|
|
1093
|
-
|
|
1093
|
+
open: j,
|
|
1094
|
+
onOpenChange: (ue) => {
|
|
1095
|
+
P(ue ? M : null);
|
|
1094
1096
|
},
|
|
1095
1097
|
children: /* @__PURE__ */ e(
|
|
1096
1098
|
"span",
|
|
1097
1099
|
{
|
|
1098
|
-
onContextMenu: R(
|
|
1100
|
+
onContextMenu: R(M),
|
|
1099
1101
|
style: { display: "inline-block", width: "100%" },
|
|
1100
|
-
children: /* @__PURE__ */
|
|
1101
|
-
|
|
1102
|
+
children: /* @__PURE__ */ Oe(
|
|
1103
|
+
en,
|
|
1102
1104
|
{
|
|
1103
|
-
...
|
|
1104
|
-
key:
|
|
1105
|
+
...L.props,
|
|
1106
|
+
key: L.key,
|
|
1105
1107
|
"data-gubun": H
|
|
1106
1108
|
},
|
|
1107
|
-
|
|
1109
|
+
L
|
|
1108
1110
|
)
|
|
1109
1111
|
}
|
|
1110
1112
|
)
|
|
@@ -1116,12 +1118,12 @@ const _t = ({
|
|
|
1116
1118
|
}
|
|
1117
1119
|
),
|
|
1118
1120
|
[
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1121
|
+
d,
|
|
1122
|
+
N,
|
|
1123
|
+
S,
|
|
1122
1124
|
r,
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
+
f,
|
|
1126
|
+
w,
|
|
1125
1127
|
R
|
|
1126
1128
|
]
|
|
1127
1129
|
);
|
|
@@ -1134,36 +1136,36 @@ const _t = ({
|
|
|
1134
1136
|
display: r.length === 0 ? "none" : "block"
|
|
1135
1137
|
},
|
|
1136
1138
|
children: /* @__PURE__ */ e(
|
|
1137
|
-
|
|
1139
|
+
Xe,
|
|
1138
1140
|
{
|
|
1139
1141
|
type: "editable-card",
|
|
1140
1142
|
activeKey: o || void 0,
|
|
1141
|
-
onChange:
|
|
1142
|
-
onEdit:
|
|
1143
|
+
onChange: p,
|
|
1144
|
+
onEdit: I,
|
|
1143
1145
|
className: t.tabs.className,
|
|
1144
1146
|
style: t.tabs.style,
|
|
1145
1147
|
hideAdd: !0,
|
|
1146
|
-
items:
|
|
1148
|
+
items: ee,
|
|
1147
1149
|
tabBarExtraContent: /* @__PURE__ */ e(
|
|
1148
|
-
|
|
1150
|
+
tn,
|
|
1149
1151
|
{
|
|
1150
1152
|
config: t?.nav,
|
|
1151
|
-
isFirst: !!
|
|
1152
|
-
isLast: !!
|
|
1153
|
+
isFirst: !!K,
|
|
1154
|
+
isLast: !!U,
|
|
1153
1155
|
canCloseAll: r.length > 0,
|
|
1154
|
-
onFirst:
|
|
1155
|
-
onPrev:
|
|
1156
|
-
onNext:
|
|
1156
|
+
onFirst: b,
|
|
1157
|
+
onPrev: m,
|
|
1158
|
+
onNext: v,
|
|
1157
1159
|
onLast: T,
|
|
1158
|
-
onCloseAll:
|
|
1160
|
+
onCloseAll: D
|
|
1159
1161
|
}
|
|
1160
1162
|
),
|
|
1161
|
-
renderTabBar:
|
|
1163
|
+
renderTabBar: C
|
|
1162
1164
|
}
|
|
1163
1165
|
)
|
|
1164
1166
|
}
|
|
1165
1167
|
);
|
|
1166
|
-
}, { Sider:
|
|
1168
|
+
}, { Sider: rn } = X, on = ({
|
|
1167
1169
|
config: n = {}
|
|
1168
1170
|
}) => {
|
|
1169
1171
|
const t = {
|
|
@@ -1205,15 +1207,15 @@ const _t = ({
|
|
|
1205
1207
|
...n?.style
|
|
1206
1208
|
},
|
|
1207
1209
|
...n
|
|
1208
|
-
}, [r, o] =
|
|
1210
|
+
}, [r, o] = $(""), [s, a] = $(
|
|
1209
1211
|
"category"
|
|
1210
|
-
), [
|
|
1211
|
-
const
|
|
1212
|
-
if (
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
value:
|
|
1216
|
-
label: /* @__PURE__ */
|
|
1212
|
+
), [g, c] = $([]), { activeMenuId: u, sidebarCollapsed: y, openTabFromMenu: h, toggleSidebar: k } = O(), { menuList: d, isLoading: p, error: I, findMenuById: b, flatMenuList: m } = ce(), { nodes: v, treeNodes: T, loadFavoritesIfNeeded: D } = at(), R = _(() => {
|
|
1213
|
+
const N = [], S = (C, i = 0) => {
|
|
1214
|
+
if (C.menuGbCd === t.menuGubunCode.program && C.scrnPath) {
|
|
1215
|
+
const x = " ".repeat(i), L = C.menuNo || "";
|
|
1216
|
+
N.push({
|
|
1217
|
+
value: C.menuId,
|
|
1218
|
+
label: /* @__PURE__ */ l(
|
|
1217
1219
|
"div",
|
|
1218
1220
|
{
|
|
1219
1221
|
style: {
|
|
@@ -1222,9 +1224,9 @@ const _t = ({
|
|
|
1222
1224
|
alignItems: "center"
|
|
1223
1225
|
},
|
|
1224
1226
|
children: [
|
|
1225
|
-
/* @__PURE__ */
|
|
1226
|
-
|
|
1227
|
-
|
|
1227
|
+
/* @__PURE__ */ l("span", { children: [
|
|
1228
|
+
x,
|
|
1229
|
+
C.menuNm
|
|
1228
1230
|
] }),
|
|
1229
1231
|
/* @__PURE__ */ e(
|
|
1230
1232
|
"span",
|
|
@@ -1237,65 +1239,65 @@ const _t = ({
|
|
|
1237
1239
|
borderRadius: "3px",
|
|
1238
1240
|
marginLeft: "8px"
|
|
1239
1241
|
},
|
|
1240
|
-
children:
|
|
1242
|
+
children: L
|
|
1241
1243
|
}
|
|
1242
1244
|
)
|
|
1243
1245
|
]
|
|
1244
1246
|
}
|
|
1245
1247
|
),
|
|
1246
|
-
menuItem:
|
|
1248
|
+
menuItem: C
|
|
1247
1249
|
});
|
|
1248
1250
|
}
|
|
1249
|
-
|
|
1251
|
+
C.children && C.children.length > 0 && C.children.forEach((x) => S(x, i + 1));
|
|
1250
1252
|
};
|
|
1251
|
-
return
|
|
1252
|
-
}, [
|
|
1253
|
-
const
|
|
1254
|
-
return
|
|
1255
|
-
}) : [], [R, r]),
|
|
1256
|
-
if (!
|
|
1257
|
-
console.warn("Invalid menu selection value:",
|
|
1253
|
+
return d.forEach((C) => S(C)), N;
|
|
1254
|
+
}, [d]), w = _(() => r.trim() ? R.filter((N) => {
|
|
1255
|
+
const S = N.menuItem.menuNm.toLowerCase(), C = String(N.menuItem.menuNo || "미지정").toLowerCase(), i = r.toLowerCase();
|
|
1256
|
+
return S.includes(i) || C.includes(i);
|
|
1257
|
+
}) : [], [R, r]), G = (N) => {
|
|
1258
|
+
if (!N || typeof N != "string") {
|
|
1259
|
+
console.warn("Invalid menu selection value:", N);
|
|
1258
1260
|
return;
|
|
1259
1261
|
}
|
|
1260
|
-
if (!/^[a-zA-Z0-9_-]+$/.test(
|
|
1261
|
-
console.warn("Invalid menu ID format:",
|
|
1262
|
+
if (!/^[a-zA-Z0-9_-]+$/.test(N)) {
|
|
1263
|
+
console.warn("Invalid menu ID format:", N);
|
|
1262
1264
|
return;
|
|
1263
1265
|
}
|
|
1264
|
-
const
|
|
1265
|
-
(
|
|
1266
|
+
const S = R.find(
|
|
1267
|
+
(C) => C.value === N
|
|
1266
1268
|
);
|
|
1267
|
-
if (
|
|
1268
|
-
const { menuItem:
|
|
1269
|
-
if (!
|
|
1270
|
-
console.warn("Invalid menu item:",
|
|
1269
|
+
if (S) {
|
|
1270
|
+
const { menuItem: C } = S;
|
|
1271
|
+
if (!C || !C.menuId || !C.menuNm) {
|
|
1272
|
+
console.warn("Invalid menu item:", C);
|
|
1271
1273
|
return;
|
|
1272
1274
|
}
|
|
1273
|
-
|
|
1275
|
+
C.menuGbCd === t.menuGubunCode.program && C.scrnPath ? (console.log(
|
|
1274
1276
|
"✅ 검색으로 프로그램 메뉴 선택 - 탭 추가 및 setCurrentProgram 호출"
|
|
1275
1277
|
), console.log(
|
|
1276
1278
|
"메뉴명:",
|
|
1277
|
-
|
|
1279
|
+
C.menuNm,
|
|
1278
1280
|
"경로:",
|
|
1279
|
-
|
|
1281
|
+
C.scrnPath,
|
|
1280
1282
|
"scrnId:",
|
|
1281
|
-
|
|
1282
|
-
),
|
|
1283
|
+
C.scrnId
|
|
1284
|
+
), h(C)) : (C.menuGbCd === t.menuGubunCode.mainMenu || C.menuGbCd === t.menuGubunCode.subMenu) && (console.log("❌ 검색으로 메인/서브 메뉴 선택 - 이벤트 무시"), console.log("메뉴명:", C.menuNm, "menuGbCd:", C.menuGbCd)), o("");
|
|
1283
1285
|
}
|
|
1284
|
-
},
|
|
1285
|
-
(
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1286
|
+
}, K = z(
|
|
1287
|
+
(N) => {
|
|
1288
|
+
const S = b(N);
|
|
1289
|
+
S?.menuGbCd === t.menuGubunCode.program && (console.log(
|
|
1288
1290
|
"메뉴명:",
|
|
1289
|
-
|
|
1291
|
+
S.menuNm,
|
|
1290
1292
|
"경로:",
|
|
1291
|
-
|
|
1293
|
+
S.scrnPath,
|
|
1292
1294
|
"scrnId:",
|
|
1293
|
-
|
|
1294
|
-
),
|
|
1295
|
+
S.scrnId
|
|
1296
|
+
), h(S));
|
|
1295
1297
|
},
|
|
1296
|
-
[
|
|
1297
|
-
),
|
|
1298
|
-
key:
|
|
1298
|
+
[b, h, t.menuGubunCode.program]
|
|
1299
|
+
), U = z((N) => N.map((S) => ({
|
|
1300
|
+
key: S.menuId,
|
|
1299
1301
|
label: /* @__PURE__ */ e(
|
|
1300
1302
|
"div",
|
|
1301
1303
|
{
|
|
@@ -1304,24 +1306,24 @@ const _t = ({
|
|
|
1304
1306
|
justifyContent: "space-between",
|
|
1305
1307
|
alignItems: "center"
|
|
1306
1308
|
},
|
|
1307
|
-
onDoubleClick: (
|
|
1308
|
-
|
|
1309
|
+
onDoubleClick: (i) => {
|
|
1310
|
+
i.preventDefault(), i.stopPropagation();
|
|
1309
1311
|
},
|
|
1310
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
1312
|
+
children: /* @__PURE__ */ e("span", { children: S.menuNm })
|
|
1311
1313
|
}
|
|
1312
1314
|
),
|
|
1313
|
-
icon:
|
|
1314
|
-
children:
|
|
1315
|
-
})), []),
|
|
1316
|
-
if (
|
|
1317
|
-
const
|
|
1318
|
-
if (
|
|
1319
|
-
return /* @__PURE__ */ e(
|
|
1315
|
+
icon: ee(S.iconCd, S.menuGbCd),
|
|
1316
|
+
children: S.children && S.children.length > 0 ? U(S.children) : void 0
|
|
1317
|
+
})), []), ee = (N, S) => {
|
|
1318
|
+
if (N) {
|
|
1319
|
+
const C = ae[N];
|
|
1320
|
+
if (C)
|
|
1321
|
+
return /* @__PURE__ */ e(C, {});
|
|
1320
1322
|
}
|
|
1321
|
-
if (
|
|
1322
|
-
switch (
|
|
1323
|
+
if (S)
|
|
1324
|
+
switch (S) {
|
|
1323
1325
|
case t.menuGubunCode.mainMenu:
|
|
1324
|
-
return /* @__PURE__ */ e(
|
|
1326
|
+
return /* @__PURE__ */ e(ae.HomeOutlined, {});
|
|
1325
1327
|
case t.menuGubunCode.subMenu:
|
|
1326
1328
|
return null;
|
|
1327
1329
|
case t.menuGubunCode.program:
|
|
@@ -1330,66 +1332,66 @@ const _t = ({
|
|
|
1330
1332
|
return null;
|
|
1331
1333
|
}
|
|
1332
1334
|
return null;
|
|
1333
|
-
},
|
|
1334
|
-
(
|
|
1335
|
-
if (
|
|
1336
|
-
const
|
|
1337
|
-
if (
|
|
1338
|
-
return typeof
|
|
1339
|
-
},
|
|
1340
|
-
if (
|
|
1341
|
-
const
|
|
1335
|
+
}, f = z(
|
|
1336
|
+
(N) => {
|
|
1337
|
+
if (d.length === 0) return [];
|
|
1338
|
+
const S = (i) => {
|
|
1339
|
+
if (i)
|
|
1340
|
+
return typeof i == "string" ? v[i] : i;
|
|
1341
|
+
}, C = (i) => {
|
|
1342
|
+
if (i.type === "M") {
|
|
1343
|
+
const x = i, L = b(x.menuId) || void 0, M = !!L, j = M ? `${L?.menuNm ?? x.menuNm ?? x.menuId}` : `${x.menuNm ?? x.menuId} (삭제됨)`;
|
|
1342
1344
|
return {
|
|
1343
|
-
key:
|
|
1344
|
-
label:
|
|
1345
|
-
icon:
|
|
1345
|
+
key: x.menuId,
|
|
1346
|
+
label: j,
|
|
1347
|
+
icon: M ? void 0 : /* @__PURE__ */ e(xt, { style: { color: "#faad14" } })
|
|
1346
1348
|
};
|
|
1347
1349
|
} else {
|
|
1348
|
-
const
|
|
1350
|
+
const x = i, L = (x.children ?? []).map(S).filter(Boolean).map(C);
|
|
1349
1351
|
return {
|
|
1350
|
-
key:
|
|
1351
|
-
label:
|
|
1352
|
-
icon:
|
|
1353
|
-
children:
|
|
1352
|
+
key: x.bkmkId,
|
|
1353
|
+
label: x.bkmkNm ?? x.bkmkId,
|
|
1354
|
+
icon: x.prntBkmkId === "-" ? /* @__PURE__ */ e(wt, {}) : /* @__PURE__ */ e(kt, {}),
|
|
1355
|
+
children: L
|
|
1354
1356
|
// 빈 배열이면 자동으로 말아줌
|
|
1355
1357
|
};
|
|
1356
1358
|
}
|
|
1357
1359
|
};
|
|
1358
|
-
return
|
|
1360
|
+
return N.map(C);
|
|
1359
1361
|
},
|
|
1360
|
-
[
|
|
1361
|
-
),
|
|
1362
|
-
() =>
|
|
1363
|
-
[
|
|
1362
|
+
[b, v, d]
|
|
1363
|
+
), P = _(
|
|
1364
|
+
() => f(T),
|
|
1365
|
+
[f, T, v]
|
|
1364
1366
|
);
|
|
1365
|
-
return
|
|
1366
|
-
|
|
1367
|
-
}, [
|
|
1368
|
-
|
|
1369
|
-
}, [
|
|
1370
|
-
if (!u ||
|
|
1371
|
-
const
|
|
1372
|
-
const
|
|
1373
|
-
let
|
|
1374
|
-
for (;
|
|
1375
|
-
const
|
|
1376
|
-
if (!
|
|
1377
|
-
if (
|
|
1378
|
-
|
|
1367
|
+
return E(() => {
|
|
1368
|
+
Se() && D(Se());
|
|
1369
|
+
}, [D]), E(() => {
|
|
1370
|
+
s === "category" && o("");
|
|
1371
|
+
}, [s]), E(() => {
|
|
1372
|
+
if (!u || s !== "category") return;
|
|
1373
|
+
const S = ((C) => {
|
|
1374
|
+
const i = [], x = new Map(m.map((M) => [M.menuId, M]));
|
|
1375
|
+
let L = C;
|
|
1376
|
+
for (; L; ) {
|
|
1377
|
+
const M = x.get(L);
|
|
1378
|
+
if (!M) break;
|
|
1379
|
+
if (M.menuPrntId && M.menuPrntId !== "-" && M.menuPrntId !== "")
|
|
1380
|
+
i.push(M.menuPrntId), L = M.menuPrntId;
|
|
1379
1381
|
else
|
|
1380
1382
|
break;
|
|
1381
1383
|
}
|
|
1382
|
-
return
|
|
1384
|
+
return i;
|
|
1383
1385
|
})(u);
|
|
1384
|
-
|
|
1385
|
-
const
|
|
1386
|
-
return Array.from(
|
|
1386
|
+
S.length > 0 && c((C) => {
|
|
1387
|
+
const i = /* @__PURE__ */ new Set([...C, ...S]);
|
|
1388
|
+
return Array.from(i);
|
|
1387
1389
|
});
|
|
1388
|
-
}, [u,
|
|
1389
|
-
|
|
1390
|
+
}, [u, s, m]), /* @__PURE__ */ l(
|
|
1391
|
+
rn,
|
|
1390
1392
|
{
|
|
1391
1393
|
className: t.className.wrapper,
|
|
1392
|
-
collapsed: t.collapsed ||
|
|
1394
|
+
collapsed: t.collapsed || y,
|
|
1393
1395
|
trigger: null,
|
|
1394
1396
|
width: t.width || 230,
|
|
1395
1397
|
children: [
|
|
@@ -1417,7 +1419,7 @@ const _t = ({
|
|
|
1417
1419
|
B,
|
|
1418
1420
|
{
|
|
1419
1421
|
type: "text",
|
|
1420
|
-
icon: t.collapsed ||
|
|
1422
|
+
icon: t.collapsed || y ? /* @__PURE__ */ e(yt, {}) : /* @__PURE__ */ e(Ct, {}),
|
|
1421
1423
|
style: {
|
|
1422
1424
|
fontSize: "12px",
|
|
1423
1425
|
color: "#787878",
|
|
@@ -1429,28 +1431,28 @@ const _t = ({
|
|
|
1429
1431
|
justifyContent: "center",
|
|
1430
1432
|
borderRadius: "0 10px 10px 0"
|
|
1431
1433
|
},
|
|
1432
|
-
onClick:
|
|
1434
|
+
onClick: k
|
|
1433
1435
|
}
|
|
1434
1436
|
)
|
|
1435
1437
|
}
|
|
1436
1438
|
),
|
|
1437
|
-
!(t.collapsed ||
|
|
1439
|
+
!(t.collapsed || y) && /* @__PURE__ */ e(
|
|
1438
1440
|
"div",
|
|
1439
1441
|
{
|
|
1440
1442
|
style: {
|
|
1441
1443
|
padding: 10
|
|
1442
1444
|
},
|
|
1443
1445
|
children: /* @__PURE__ */ e(
|
|
1444
|
-
|
|
1446
|
+
Je,
|
|
1445
1447
|
{
|
|
1446
1448
|
value: r,
|
|
1447
|
-
options:
|
|
1448
|
-
onSelect:
|
|
1449
|
+
options: w,
|
|
1450
|
+
onSelect: G,
|
|
1449
1451
|
onSearch: o,
|
|
1450
1452
|
style: { width: "100%" },
|
|
1451
1453
|
allowClear: !0,
|
|
1452
1454
|
children: /* @__PURE__ */ e(
|
|
1453
|
-
|
|
1455
|
+
fe,
|
|
1454
1456
|
{
|
|
1455
1457
|
className: t.className.search,
|
|
1456
1458
|
placeholder: t.style.search.placeholder,
|
|
@@ -1484,7 +1486,7 @@ const _t = ({
|
|
|
1484
1486
|
)
|
|
1485
1487
|
}
|
|
1486
1488
|
),
|
|
1487
|
-
!(t.collapsed ||
|
|
1489
|
+
!(t.collapsed || y) && /* @__PURE__ */ e(
|
|
1488
1490
|
"div",
|
|
1489
1491
|
{
|
|
1490
1492
|
style: {
|
|
@@ -1493,18 +1495,18 @@ const _t = ({
|
|
|
1493
1495
|
marginBottom: "10px"
|
|
1494
1496
|
},
|
|
1495
1497
|
children: /* @__PURE__ */ e(
|
|
1496
|
-
|
|
1498
|
+
et,
|
|
1497
1499
|
{
|
|
1498
1500
|
className: t.className.segmented.wrapper,
|
|
1499
1501
|
options: [
|
|
1500
1502
|
{
|
|
1501
|
-
label: /* @__PURE__ */
|
|
1503
|
+
label: /* @__PURE__ */ l(A, { children: [
|
|
1502
1504
|
/* @__PURE__ */ e(
|
|
1503
1505
|
"span",
|
|
1504
1506
|
{
|
|
1505
1507
|
className: t.className.segmented.item,
|
|
1506
1508
|
style: { display: "flex", alignItems: "center" },
|
|
1507
|
-
children: /* @__PURE__ */
|
|
1509
|
+
children: /* @__PURE__ */ l(
|
|
1508
1510
|
"svg",
|
|
1509
1511
|
{
|
|
1510
1512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1553,7 +1555,7 @@ const _t = ({
|
|
|
1553
1555
|
value: "category"
|
|
1554
1556
|
},
|
|
1555
1557
|
{
|
|
1556
|
-
label: /* @__PURE__ */
|
|
1558
|
+
label: /* @__PURE__ */ l(A, { children: [
|
|
1557
1559
|
/* @__PURE__ */ e(
|
|
1558
1560
|
"span",
|
|
1559
1561
|
{
|
|
@@ -1585,9 +1587,9 @@ const _t = ({
|
|
|
1585
1587
|
value: "favorite"
|
|
1586
1588
|
}
|
|
1587
1589
|
],
|
|
1588
|
-
value:
|
|
1589
|
-
onChange: (
|
|
1590
|
-
|
|
1590
|
+
value: s,
|
|
1591
|
+
onChange: (N) => {
|
|
1592
|
+
a(N);
|
|
1591
1593
|
},
|
|
1592
1594
|
style: {
|
|
1593
1595
|
width: "100%"
|
|
@@ -1597,8 +1599,8 @@ const _t = ({
|
|
|
1597
1599
|
)
|
|
1598
1600
|
}
|
|
1599
1601
|
),
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
|
|
1602
|
+
/* @__PURE__ */ l("div", { className: t.className.sider.content, children: [
|
|
1603
|
+
p && /* @__PURE__ */ l(
|
|
1602
1604
|
"div",
|
|
1603
1605
|
{
|
|
1604
1606
|
className: t.className.sider.loading,
|
|
@@ -1610,7 +1612,7 @@ const _t = ({
|
|
|
1610
1612
|
},
|
|
1611
1613
|
children: [
|
|
1612
1614
|
/* @__PURE__ */ e(
|
|
1613
|
-
|
|
1615
|
+
tt,
|
|
1614
1616
|
{
|
|
1615
1617
|
theme: {
|
|
1616
1618
|
components: {
|
|
@@ -1619,7 +1621,7 @@ const _t = ({
|
|
|
1619
1621
|
}
|
|
1620
1622
|
}
|
|
1621
1623
|
},
|
|
1622
|
-
children: /* @__PURE__ */ e(
|
|
1624
|
+
children: /* @__PURE__ */ e(Q, { size: "default" })
|
|
1623
1625
|
}
|
|
1624
1626
|
),
|
|
1625
1627
|
/* @__PURE__ */ e(
|
|
@@ -1633,16 +1635,16 @@ const _t = ({
|
|
|
1633
1635
|
]
|
|
1634
1636
|
}
|
|
1635
1637
|
),
|
|
1636
|
-
|
|
1638
|
+
I && /* @__PURE__ */ l("div", { className: t.className.sider.error, children: [
|
|
1637
1639
|
/* @__PURE__ */ e(
|
|
1638
|
-
|
|
1640
|
+
vt,
|
|
1639
1641
|
{
|
|
1640
1642
|
className: t.className.sider.errorIcon
|
|
1641
1643
|
}
|
|
1642
1644
|
),
|
|
1643
1645
|
/* @__PURE__ */ e("div", { className: t.className.sider.errorText, children: "메뉴 로드 실패" })
|
|
1644
1646
|
] }),
|
|
1645
|
-
!
|
|
1647
|
+
!p && !I && s === "category" && d.length === 0 && /* @__PURE__ */ e(
|
|
1646
1648
|
"div",
|
|
1647
1649
|
{
|
|
1648
1650
|
style: {
|
|
@@ -1654,7 +1656,7 @@ const _t = ({
|
|
|
1654
1656
|
children: "메뉴가 없습니다"
|
|
1655
1657
|
}
|
|
1656
1658
|
),
|
|
1657
|
-
!
|
|
1659
|
+
!p && !I && s === "favorite" && P.length === 0 && /* @__PURE__ */ e(
|
|
1658
1660
|
"div",
|
|
1659
1661
|
{
|
|
1660
1662
|
style: {
|
|
@@ -1666,28 +1668,28 @@ const _t = ({
|
|
|
1666
1668
|
children: "즐겨찾기된 메뉴가 없습니다"
|
|
1667
1669
|
}
|
|
1668
1670
|
),
|
|
1669
|
-
!
|
|
1670
|
-
|
|
1671
|
+
!p && !I && s === "category" && d.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1672
|
+
be,
|
|
1671
1673
|
{
|
|
1672
1674
|
theme: "light",
|
|
1673
1675
|
mode: "inline",
|
|
1674
|
-
items:
|
|
1676
|
+
items: U(d),
|
|
1675
1677
|
className: t.className.sider.menu,
|
|
1676
1678
|
selectedKeys: [u || ""],
|
|
1677
|
-
openKeys:
|
|
1679
|
+
openKeys: g,
|
|
1678
1680
|
onOpenChange: c,
|
|
1679
|
-
onClick: (
|
|
1681
|
+
onClick: (N) => K(N.key)
|
|
1680
1682
|
}
|
|
1681
1683
|
) }),
|
|
1682
|
-
!
|
|
1683
|
-
|
|
1684
|
+
!p && !I && s === "favorite" && P.length > 0 && /* @__PURE__ */ e("div", { className: t.className.sider.menuContainer, children: /* @__PURE__ */ e(
|
|
1685
|
+
be,
|
|
1684
1686
|
{
|
|
1685
1687
|
theme: "light",
|
|
1686
1688
|
mode: "inline",
|
|
1687
|
-
items:
|
|
1689
|
+
items: P,
|
|
1688
1690
|
className: t.className.sider.menu,
|
|
1689
1691
|
selectedKeys: [u || ""],
|
|
1690
|
-
onClick: (
|
|
1692
|
+
onClick: (N) => K(N.key)
|
|
1691
1693
|
}
|
|
1692
1694
|
) })
|
|
1693
1695
|
] })
|
|
@@ -1695,7 +1697,7 @@ const _t = ({
|
|
|
1695
1697
|
}
|
|
1696
1698
|
);
|
|
1697
1699
|
};
|
|
1698
|
-
class
|
|
1700
|
+
class sn extends it {
|
|
1699
1701
|
constructor(t) {
|
|
1700
1702
|
super(t), this.resetError = () => {
|
|
1701
1703
|
this.setState({ hasError: !1, error: void 0, errorInfo: void 0 });
|
|
@@ -1711,7 +1713,7 @@ class Jt extends Je {
|
|
|
1711
1713
|
});
|
|
1712
1714
|
}
|
|
1713
1715
|
render() {
|
|
1714
|
-
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */
|
|
1716
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ l(
|
|
1715
1717
|
"div",
|
|
1716
1718
|
{
|
|
1717
1719
|
style: {
|
|
@@ -1725,7 +1727,7 @@ class Jt extends Je {
|
|
|
1725
1727
|
},
|
|
1726
1728
|
children: [
|
|
1727
1729
|
/* @__PURE__ */ e(
|
|
1728
|
-
|
|
1730
|
+
Me,
|
|
1729
1731
|
{
|
|
1730
1732
|
status: "error",
|
|
1731
1733
|
title: "컴포넌트 로딩 중 오류가 발생했습니다",
|
|
@@ -1735,7 +1737,7 @@ class Jt extends Je {
|
|
|
1735
1737
|
B,
|
|
1736
1738
|
{
|
|
1737
1739
|
type: "primary",
|
|
1738
|
-
icon: /* @__PURE__ */ e(
|
|
1740
|
+
icon: /* @__PURE__ */ e(de, {}),
|
|
1739
1741
|
onClick: this.resetError,
|
|
1740
1742
|
style: { marginRight: 8 },
|
|
1741
1743
|
children: "다시 시도"
|
|
@@ -1745,7 +1747,7 @@ class Jt extends Je {
|
|
|
1745
1747
|
]
|
|
1746
1748
|
}
|
|
1747
1749
|
),
|
|
1748
|
-
this.state.error && /* @__PURE__ */
|
|
1750
|
+
this.state.error && /* @__PURE__ */ l(
|
|
1749
1751
|
"details",
|
|
1750
1752
|
{
|
|
1751
1753
|
style: {
|
|
@@ -1780,13 +1782,13 @@ class Jt extends Je {
|
|
|
1780
1782
|
) : this.props.children;
|
|
1781
1783
|
}
|
|
1782
1784
|
}
|
|
1783
|
-
const
|
|
1785
|
+
const an = ({
|
|
1784
1786
|
isActive: n,
|
|
1785
1787
|
instance: t,
|
|
1786
1788
|
params: r
|
|
1787
1789
|
}) => {
|
|
1788
|
-
const { activeMenuId: o, closeTab:
|
|
1789
|
-
o &&
|
|
1790
|
+
const { activeMenuId: o, closeTab: s } = O(), a = () => {
|
|
1791
|
+
o && s(o);
|
|
1790
1792
|
};
|
|
1791
1793
|
return t ? /* @__PURE__ */ e(
|
|
1792
1794
|
"div",
|
|
@@ -1802,7 +1804,7 @@ const en = ({
|
|
|
1802
1804
|
transition: "opacity 0.2s ease-in-out",
|
|
1803
1805
|
pointerEvents: n ? "auto" : "none"
|
|
1804
1806
|
},
|
|
1805
|
-
children: /* @__PURE__ */ e(
|
|
1807
|
+
children: /* @__PURE__ */ e(sn, { children: /* @__PURE__ */ e(le, { fallback: null, children: t && Oe(t, { params: r }) }) })
|
|
1806
1808
|
}
|
|
1807
1809
|
) : /* @__PURE__ */ e(
|
|
1808
1810
|
"div",
|
|
@@ -1833,20 +1835,20 @@ const en = ({
|
|
|
1833
1835
|
padding: 24
|
|
1834
1836
|
},
|
|
1835
1837
|
children: /* @__PURE__ */ e(
|
|
1836
|
-
|
|
1838
|
+
Me,
|
|
1837
1839
|
{
|
|
1838
|
-
icon: /* @__PURE__ */ e(
|
|
1840
|
+
icon: /* @__PURE__ */ e(Ie, { twoToneColor: "#69b1ff" }),
|
|
1839
1841
|
status: "warning",
|
|
1840
1842
|
title: "등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",
|
|
1841
|
-
subTitle: /* @__PURE__ */ e(
|
|
1842
|
-
extra: /* @__PURE__ */ e(
|
|
1843
|
+
subTitle: /* @__PURE__ */ e(xe.Text, { type: "secondary", children: "자세한 내용은 관리자에게 문의바랍니다." }),
|
|
1844
|
+
extra: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(B, { icon: /* @__PURE__ */ e(ne, {}), onClick: a, children: "탭 닫기" }) })
|
|
1843
1845
|
}
|
|
1844
1846
|
)
|
|
1845
1847
|
}
|
|
1846
1848
|
)
|
|
1847
1849
|
}
|
|
1848
1850
|
);
|
|
1849
|
-
},
|
|
1851
|
+
}, ln = we(an), cn = ({
|
|
1850
1852
|
menuGubunCode: n = {
|
|
1851
1853
|
mainMenu: "MAIN",
|
|
1852
1854
|
subMenu: "SUB",
|
|
@@ -1856,87 +1858,87 @@ const en = ({
|
|
|
1856
1858
|
style: r,
|
|
1857
1859
|
routeMap: o
|
|
1858
1860
|
}) => {
|
|
1859
|
-
const { menuList:
|
|
1860
|
-
(
|
|
1861
|
-
if (
|
|
1862
|
-
const
|
|
1863
|
-
if (
|
|
1864
|
-
return /* @__PURE__ */ e(
|
|
1861
|
+
const { menuList: s, findMenuById: a, flatMenuList: g } = ce(), { activeMenuId: c } = O(), u = ve(), [y, h] = $([]), k = z(
|
|
1862
|
+
(b, m) => {
|
|
1863
|
+
if (b) {
|
|
1864
|
+
const v = ae[b];
|
|
1865
|
+
if (v)
|
|
1866
|
+
return /* @__PURE__ */ e(v, {});
|
|
1865
1867
|
}
|
|
1866
|
-
if (
|
|
1867
|
-
switch (
|
|
1868
|
+
if (m)
|
|
1869
|
+
switch (m) {
|
|
1868
1870
|
case n.mainMenu:
|
|
1869
|
-
return /* @__PURE__ */ e(
|
|
1871
|
+
return /* @__PURE__ */ e(ae.HomeOutlined, {});
|
|
1870
1872
|
default:
|
|
1871
1873
|
return null;
|
|
1872
1874
|
}
|
|
1873
1875
|
return null;
|
|
1874
1876
|
},
|
|
1875
1877
|
[n]
|
|
1876
|
-
),
|
|
1877
|
-
(
|
|
1878
|
-
const
|
|
1878
|
+
), d = z(
|
|
1879
|
+
(b) => b.map((m) => {
|
|
1880
|
+
const v = m.children && m.children.length === 1 && m.children[0].menuGbCd === n.program;
|
|
1879
1881
|
return {
|
|
1880
|
-
key:
|
|
1881
|
-
label:
|
|
1882
|
-
icon:
|
|
1882
|
+
key: m.menuId,
|
|
1883
|
+
label: m.menuNm,
|
|
1884
|
+
icon: k(m.iconCd, m.menuGbCd),
|
|
1883
1885
|
// children이 1개이고 program이면 드롭다운 없음, 2개 이상이면 드롭다운 표시
|
|
1884
|
-
children:
|
|
1886
|
+
children: m.children && m.children.length > 0 && !v ? d(m.children) : void 0
|
|
1885
1887
|
};
|
|
1886
1888
|
}),
|
|
1887
|
-
[
|
|
1888
|
-
),
|
|
1889
|
-
(
|
|
1890
|
-
const
|
|
1891
|
-
if (
|
|
1892
|
-
if (
|
|
1893
|
-
const
|
|
1894
|
-
let T = o?.[
|
|
1889
|
+
[k, n]
|
|
1890
|
+
), p = _(() => d(s), [s, d]), I = z(
|
|
1891
|
+
(b) => {
|
|
1892
|
+
const m = a(b.key);
|
|
1893
|
+
if (m) {
|
|
1894
|
+
if (m.children && m.children.length === 1 && m.children[0].menuGbCd === n.program) {
|
|
1895
|
+
const v = m.children[0];
|
|
1896
|
+
let T = o?.[v.menuId] || v.scrnPath || "/";
|
|
1895
1897
|
T === "/" ? T = "/main" : T.startsWith("/main") || (T = T.startsWith("/") ? `/main${T}` : `/main/${T}`), u(T);
|
|
1896
1898
|
return;
|
|
1897
1899
|
}
|
|
1898
|
-
if (
|
|
1899
|
-
let
|
|
1900
|
-
|
|
1900
|
+
if (m.menuGbCd === n.program && m.scrnPath) {
|
|
1901
|
+
let v = o?.[m.menuId] || m.scrnPath || "/";
|
|
1902
|
+
v === "/" ? v = "/main" : v.startsWith("/main") || (v = v.startsWith("/") ? `/main${v}` : `/main/${v}`), u(v);
|
|
1901
1903
|
return;
|
|
1902
1904
|
}
|
|
1903
1905
|
}
|
|
1904
1906
|
},
|
|
1905
|
-
[
|
|
1907
|
+
[a, n, u, o]
|
|
1906
1908
|
);
|
|
1907
|
-
return
|
|
1909
|
+
return E(() => {
|
|
1908
1910
|
if (!c || t !== "vertical") return;
|
|
1909
|
-
const
|
|
1910
|
-
const T = [],
|
|
1911
|
-
let R =
|
|
1911
|
+
const m = ((v) => {
|
|
1912
|
+
const T = [], D = new Map(g.map((w) => [w.menuId, w]));
|
|
1913
|
+
let R = v;
|
|
1912
1914
|
for (; R; ) {
|
|
1913
|
-
const
|
|
1914
|
-
if (!
|
|
1915
|
-
if (
|
|
1916
|
-
T.push(
|
|
1915
|
+
const w = D.get(R);
|
|
1916
|
+
if (!w) break;
|
|
1917
|
+
if (w.menuPrntId && w.menuPrntId !== "-" && w.menuPrntId !== "")
|
|
1918
|
+
T.push(w.menuPrntId), R = w.menuPrntId;
|
|
1917
1919
|
else
|
|
1918
1920
|
break;
|
|
1919
1921
|
}
|
|
1920
1922
|
return T;
|
|
1921
1923
|
})(c);
|
|
1922
|
-
|
|
1923
|
-
const T = /* @__PURE__ */ new Set([...
|
|
1924
|
+
m.length > 0 && h((v) => {
|
|
1925
|
+
const T = /* @__PURE__ */ new Set([...v, ...m]);
|
|
1924
1926
|
return Array.from(T);
|
|
1925
1927
|
});
|
|
1926
|
-
}, [c, t,
|
|
1927
|
-
|
|
1928
|
+
}, [c, t, g]), /* @__PURE__ */ e(
|
|
1929
|
+
be,
|
|
1928
1930
|
{
|
|
1929
1931
|
mode: t,
|
|
1930
1932
|
theme: "light",
|
|
1931
|
-
items:
|
|
1933
|
+
items: p,
|
|
1932
1934
|
selectedKeys: [c || ""],
|
|
1933
|
-
openKeys: t === "vertical" ?
|
|
1934
|
-
onOpenChange: t === "vertical" ?
|
|
1935
|
-
onClick:
|
|
1935
|
+
openKeys: t === "vertical" ? y : void 0,
|
|
1936
|
+
onOpenChange: t === "vertical" ? h : void 0,
|
|
1937
|
+
onClick: I,
|
|
1936
1938
|
style: r
|
|
1937
1939
|
}
|
|
1938
1940
|
);
|
|
1939
|
-
},
|
|
1941
|
+
}, dn = () => /* @__PURE__ */ l(A, { children: [
|
|
1940
1942
|
/* @__PURE__ */ e(
|
|
1941
1943
|
"link",
|
|
1942
1944
|
{
|
|
@@ -1946,62 +1948,62 @@ const en = ({
|
|
|
1946
1948
|
}
|
|
1947
1949
|
),
|
|
1948
1950
|
/* @__PURE__ */ e("div", { className: "LandingContainer-wrap", children: /* @__PURE__ */ e("div", { className: "inner", children: /* @__PURE__ */ e("div", { className: "content" }) }) })
|
|
1949
|
-
] }),
|
|
1951
|
+
] }), un = (n, t) => {
|
|
1950
1952
|
console.log("createPopupViewLoader 호출 - popupUrl:", n);
|
|
1951
|
-
const o = ((
|
|
1952
|
-
if (
|
|
1953
|
-
const c =
|
|
1954
|
-
return console.log(`팝업 URL 변환: ${
|
|
1953
|
+
const o = ((s) => {
|
|
1954
|
+
if (s.startsWith("/src/pages/views/popup/")) {
|
|
1955
|
+
const c = s + ".tsx";
|
|
1956
|
+
return console.log(`팝업 URL 변환: ${s} -> ${c}`), c;
|
|
1955
1957
|
}
|
|
1956
|
-
const
|
|
1957
|
-
return console.log(`팝업 URL 변환: ${
|
|
1958
|
+
const g = `/src/pages/views/popup/${s.startsWith("/") ? s.substring(1) : s}.tsx`;
|
|
1959
|
+
return console.log(`팝업 URL 변환: ${s} -> ${g}`), g;
|
|
1958
1960
|
})(n);
|
|
1959
1961
|
return !o || !t?.glob || !t.glob[o] ? (console.warn(`팝업 뷰를 찾을 수 없습니다: ${n} (${o})`), console.warn("사용 가능한 팝업 뷰들:", Object.keys(t?.glob || {})), null) : t.glob[o];
|
|
1960
|
-
},
|
|
1961
|
-
const [r, o] =
|
|
1962
|
-
console.log("PopupArea - handleClose:", n.popupId),
|
|
1962
|
+
}, hn = ({ popup: n, modules: t }) => {
|
|
1963
|
+
const [r, o] = $(null), [s, a] = $(!1), [g, c] = $(null), u = () => {
|
|
1964
|
+
console.log("PopupArea - handleClose:", n.popupId), ke.getState().closePopup(n.popupId);
|
|
1963
1965
|
};
|
|
1964
|
-
return
|
|
1966
|
+
return E(() => {
|
|
1965
1967
|
(async () => {
|
|
1966
|
-
console.log("팝업 뷰 로드 시작:", n.popupUrl),
|
|
1968
|
+
console.log("팝업 뷰 로드 시작:", n.popupUrl), a(!0), c(null);
|
|
1967
1969
|
try {
|
|
1968
|
-
const
|
|
1969
|
-
if (!
|
|
1970
|
-
const
|
|
1971
|
-
console.error(
|
|
1970
|
+
const h = un(n.popupUrl, t);
|
|
1971
|
+
if (!h) {
|
|
1972
|
+
const p = `팝업 뷰를 찾을 수 없습니다: ${n.popupUrl}`;
|
|
1973
|
+
console.error(p), c(p), a(!1);
|
|
1972
1974
|
return;
|
|
1973
1975
|
}
|
|
1974
1976
|
console.log("팝업 뷰 모듈 로드 중...");
|
|
1975
|
-
const
|
|
1976
|
-
console.log("팝업 뷰 모듈 로드 완료:",
|
|
1977
|
-
const
|
|
1978
|
-
if (console.log("팝업 뷰 컴포넌트:",
|
|
1977
|
+
const k = await h();
|
|
1978
|
+
console.log("팝업 뷰 모듈 로드 완료:", k);
|
|
1979
|
+
const d = k.default;
|
|
1980
|
+
if (console.log("팝업 뷰 컴포넌트:", d), !d)
|
|
1979
1981
|
throw new Error("팝업 뷰 컴포넌트를 찾을 수 없습니다");
|
|
1980
|
-
o(() =>
|
|
1981
|
-
} catch (
|
|
1982
|
-
console.error("팝업 뷰 로드 실패:",
|
|
1982
|
+
o(() => d), console.log("팝업 뷰 설정 완료");
|
|
1983
|
+
} catch (h) {
|
|
1984
|
+
console.error("팝업 뷰 로드 실패:", h), c(h instanceof Error ? h.message : "팝업 뷰 로드 실패");
|
|
1983
1985
|
} finally {
|
|
1984
|
-
|
|
1986
|
+
a(!1);
|
|
1985
1987
|
}
|
|
1986
1988
|
})();
|
|
1987
|
-
}, [n.popupUrl]),
|
|
1988
|
-
/* @__PURE__ */ e(
|
|
1989
|
+
}, [n.popupUrl]), s ? /* @__PURE__ */ l("div", { className: "popup-loading", children: [
|
|
1990
|
+
/* @__PURE__ */ e(Q, { size: "large" }),
|
|
1989
1991
|
/* @__PURE__ */ e("p", { children: "팝업을 로드하는 중..." })
|
|
1990
|
-
] }) :
|
|
1991
|
-
/* @__PURE__ */ e(
|
|
1992
|
+
] }) : g ? /* @__PURE__ */ l("div", { className: "popup-error", children: [
|
|
1993
|
+
/* @__PURE__ */ e(pe, { description: g, image: pe.PRESENTED_IMAGE_SIMPLE }),
|
|
1992
1994
|
/* @__PURE__ */ e(
|
|
1993
1995
|
B,
|
|
1994
1996
|
{
|
|
1995
|
-
icon: /* @__PURE__ */ e(
|
|
1997
|
+
icon: /* @__PURE__ */ e(de, {}),
|
|
1996
1998
|
onClick: () => window.location.reload(),
|
|
1997
1999
|
children: "다시 시도"
|
|
1998
2000
|
}
|
|
1999
2001
|
)
|
|
2000
2002
|
] }) : r ? /* @__PURE__ */ e(
|
|
2001
|
-
|
|
2003
|
+
le,
|
|
2002
2004
|
{
|
|
2003
|
-
fallback: /* @__PURE__ */
|
|
2004
|
-
/* @__PURE__ */ e(
|
|
2005
|
+
fallback: /* @__PURE__ */ l("div", { className: "popup-loading", children: [
|
|
2006
|
+
/* @__PURE__ */ e(Q, { size: "large" }),
|
|
2005
2007
|
/* @__PURE__ */ e("p", { children: "컴포넌트를 로드하는 중..." })
|
|
2006
2008
|
] }),
|
|
2007
2009
|
children: /* @__PURE__ */ e(
|
|
@@ -2016,14 +2018,14 @@ const en = ({
|
|
|
2016
2018
|
}
|
|
2017
2019
|
)
|
|
2018
2020
|
}
|
|
2019
|
-
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(
|
|
2020
|
-
},
|
|
2021
|
-
const { popups: t } =
|
|
2022
|
-
return t.length === 0 ? null : /* @__PURE__ */ e(
|
|
2021
|
+
) : /* @__PURE__ */ e("div", { className: "popup-empty", children: /* @__PURE__ */ e(pe, { description: "팝업 내용을 불러올 수 없습니다." }) });
|
|
2022
|
+
}, mn = ({ modules: n }) => {
|
|
2023
|
+
const { popups: t } = ke();
|
|
2024
|
+
return t.length === 0 ? null : /* @__PURE__ */ e(A, { children: t.map((r) => {
|
|
2023
2025
|
if (r.isLocal || r.popupCode.startsWith("CORE_"))
|
|
2024
2026
|
return null;
|
|
2025
|
-
const o = r.config || {},
|
|
2026
|
-
key: u.btnId || `btn_${
|
|
2027
|
+
const o = r.config || {}, s = o.width || r.width || 800, a = o.height || r.height || 600, g = o.title || r.popupTitle, c = r.buttonList?.map((u, y) => ({
|
|
2028
|
+
key: u.btnId || `btn_${y}`,
|
|
2027
2029
|
text: u.btnNm,
|
|
2028
2030
|
type: u.btnId === "CLOSE" ? "default" : "primary",
|
|
2029
2031
|
disabled: u.enblYn !== "Y",
|
|
@@ -2032,54 +2034,54 @@ const en = ({
|
|
|
2032
2034
|
return console.log("팝업 렌더링:", {
|
|
2033
2035
|
popupId: r.popupId,
|
|
2034
2036
|
popupCode: r.popupCode,
|
|
2035
|
-
title:
|
|
2036
|
-
width:
|
|
2037
|
-
height:
|
|
2037
|
+
title: g,
|
|
2038
|
+
width: s,
|
|
2039
|
+
height: a,
|
|
2038
2040
|
buttons: c
|
|
2039
|
-
}), /* @__PURE__ */ e(
|
|
2041
|
+
}), /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(hn, { popup: r, modules: n }) }, r.popupId) }, `sbp-${r.popupId}`);
|
|
2040
2042
|
}) });
|
|
2041
|
-
},
|
|
2042
|
-
const { popups: n, closePopup: t } =
|
|
2043
|
-
return /* @__PURE__ */ e(
|
|
2043
|
+
}, Ae = () => {
|
|
2044
|
+
const { popups: n, closePopup: t } = ke();
|
|
2045
|
+
return /* @__PURE__ */ e(A, { children: n.map((r) => {
|
|
2044
2046
|
if (!(r.isLocal || r.popupCode.startsWith("CORE_"))) return null;
|
|
2045
|
-
const o =
|
|
2047
|
+
const o = Vt[r.popupCode];
|
|
2046
2048
|
if (!o) return null;
|
|
2047
|
-
const
|
|
2048
|
-
return /* @__PURE__ */ e(
|
|
2049
|
+
const s = o.component;
|
|
2050
|
+
return /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ e(le, { fallback: null, children: /* @__PURE__ */ e(s, { popup: r, onClose: () => t(r.popupId) }) }, r.popupId) }, `sbp-${r.popupId}`);
|
|
2049
2051
|
}) });
|
|
2050
|
-
},
|
|
2052
|
+
}, pn = (n) => ({
|
|
2051
2053
|
position: "absolute",
|
|
2052
2054
|
inset: 0,
|
|
2053
2055
|
visibility: n ? "visible" : "hidden",
|
|
2054
2056
|
opacity: n ? 1 : 0,
|
|
2055
2057
|
transition: "opacity 0.2s ease-in-out",
|
|
2056
2058
|
pointerEvents: n ? "auto" : "none"
|
|
2057
|
-
}),
|
|
2058
|
-
const { lock: t } =
|
|
2059
|
-
return
|
|
2059
|
+
}), gn = ({ once: n = !0 }) => {
|
|
2060
|
+
const { lock: t } = Ge(), r = J(!1);
|
|
2061
|
+
return E(() => {
|
|
2060
2062
|
n && r.current || (r.current = !0, t());
|
|
2061
2063
|
}, [n, t]), null;
|
|
2062
|
-
},
|
|
2063
|
-
const
|
|
2064
|
-
|
|
2065
|
-
}, []),
|
|
2066
|
-
return /* @__PURE__ */ e("div", { ref: u, style:
|
|
2067
|
-
|
|
2064
|
+
}, fn = ({ isActive: n, flagged: t, tabKey: r, onUnlock: o, children: s }) => {
|
|
2065
|
+
const a = J(null), [g, c] = $(!1), u = z((h) => {
|
|
2066
|
+
a.current = h, c(!!h);
|
|
2067
|
+
}, []), y = pn(n);
|
|
2068
|
+
return /* @__PURE__ */ e("div", { ref: u, style: y, children: g ? /* @__PURE__ */ l(
|
|
2069
|
+
Fe,
|
|
2068
2070
|
{
|
|
2069
2071
|
idleMs: Number.POSITIVE_INFINITY,
|
|
2070
2072
|
persistLocked: !1,
|
|
2071
2073
|
overlayScope: "scoped",
|
|
2072
2074
|
overlayPosition: "absolute",
|
|
2073
|
-
eventTarget:
|
|
2075
|
+
eventTarget: a.current,
|
|
2074
2076
|
overlayId: `tab-overlay-${r}`,
|
|
2075
2077
|
onUnlock: async () => (o(), !0),
|
|
2076
2078
|
children: [
|
|
2077
|
-
n && t ? /* @__PURE__ */ e(
|
|
2078
|
-
|
|
2079
|
+
n && t ? /* @__PURE__ */ e(gn, { once: !0 }) : null,
|
|
2080
|
+
s
|
|
2079
2081
|
]
|
|
2080
2082
|
}
|
|
2081
|
-
) :
|
|
2082
|
-
},
|
|
2083
|
+
) : s });
|
|
2084
|
+
}, Dn = ({
|
|
2083
2085
|
config: n = {},
|
|
2084
2086
|
modules: t = {
|
|
2085
2087
|
view: {
|
|
@@ -2090,45 +2092,45 @@ const en = ({
|
|
|
2090
2092
|
}
|
|
2091
2093
|
}
|
|
2092
2094
|
}) => {
|
|
2093
|
-
const r =
|
|
2095
|
+
const r = J(
|
|
2094
2096
|
/* @__PURE__ */ new Map()
|
|
2095
2097
|
), {
|
|
2096
2098
|
tabs: o,
|
|
2097
|
-
tabParams:
|
|
2098
|
-
activeMenuId:
|
|
2099
|
-
tabProtectFlag:
|
|
2099
|
+
tabParams: s,
|
|
2100
|
+
activeMenuId: a,
|
|
2101
|
+
tabProtectFlag: g,
|
|
2100
2102
|
refreshTabKey: c,
|
|
2101
2103
|
clearProtectFlagForKey: u
|
|
2102
|
-
} = O(), { enableProtectWrapper:
|
|
2103
|
-
(
|
|
2104
|
-
const
|
|
2105
|
-
if (
|
|
2106
|
-
const
|
|
2107
|
-
let
|
|
2108
|
-
if (!
|
|
2109
|
-
const
|
|
2110
|
-
|
|
2104
|
+
} = O(), { enableProtectWrapper: y } = Ee(), h = z(
|
|
2105
|
+
(d) => {
|
|
2106
|
+
const p = r.current.get(d.key);
|
|
2107
|
+
if (p) return p;
|
|
2108
|
+
const I = d.gubun === "M" ? `${t.view.path}${d.menuItem?.scrnPath}.tsx` : `${t.view.path}${d.componentItem?.scrnPath}.tsx`;
|
|
2109
|
+
let b = t.view?.glob?.[I];
|
|
2110
|
+
if (!b && typeof import.meta < "u" && typeof import.meta.glob == "function" && (b = (/* @__PURE__ */ Object.assign({}))[I]), b) {
|
|
2111
|
+
const m = W(
|
|
2112
|
+
b
|
|
2111
2113
|
);
|
|
2112
|
-
return r.current.set(
|
|
2114
|
+
return r.current.set(d.key, m), m;
|
|
2113
2115
|
}
|
|
2114
2116
|
return null;
|
|
2115
2117
|
},
|
|
2116
2118
|
[t.view?.glob]
|
|
2117
|
-
),
|
|
2118
|
-
return
|
|
2119
|
-
const
|
|
2120
|
-
Object.keys(
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2123
|
-
}),
|
|
2124
|
-
}, [c]), /* @__PURE__ */
|
|
2125
|
-
/* @__PURE__ */ e(
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */ e(
|
|
2128
|
-
/* @__PURE__ */
|
|
2129
|
-
/* @__PURE__ */ e(
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */
|
|
2119
|
+
), k = J({});
|
|
2120
|
+
return E(() => {
|
|
2121
|
+
const d = k.current, p = c;
|
|
2122
|
+
Object.keys(p).forEach((I) => {
|
|
2123
|
+
const b = d[I], m = p[I];
|
|
2124
|
+
b !== m && r.current.delete(I);
|
|
2125
|
+
}), k.current = { ...p };
|
|
2126
|
+
}, [c]), /* @__PURE__ */ l(X, { className: "main-layout", children: [
|
|
2127
|
+
/* @__PURE__ */ e(ze, { config: n?.header }),
|
|
2128
|
+
/* @__PURE__ */ l(X, { children: [
|
|
2129
|
+
/* @__PURE__ */ e(on, { config: n?.sidebar }),
|
|
2130
|
+
/* @__PURE__ */ l("div", { className: "content-container", children: [
|
|
2131
|
+
/* @__PURE__ */ e(nn, { config: n?.menuTab }),
|
|
2132
|
+
/* @__PURE__ */ l(Re, { config: n?.content, children: [
|
|
2133
|
+
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ l(
|
|
2132
2134
|
"div",
|
|
2133
2135
|
{
|
|
2134
2136
|
style: {
|
|
@@ -2137,40 +2139,40 @@ const en = ({
|
|
|
2137
2139
|
height: "100%"
|
|
2138
2140
|
},
|
|
2139
2141
|
children: [
|
|
2140
|
-
o.map((
|
|
2141
|
-
const
|
|
2142
|
-
|
|
2142
|
+
o.map((d) => {
|
|
2143
|
+
const p = h(d), I = a === d.key, b = !!g?.[d.key], m = s[d.key] || {}, v = c[d.key], T = v !== void 0 ? `${d.key}-${v}` : d.key, D = /* @__PURE__ */ e(
|
|
2144
|
+
ln,
|
|
2143
2145
|
{
|
|
2144
|
-
isActive:
|
|
2145
|
-
instance:
|
|
2146
|
-
params:
|
|
2146
|
+
isActive: I,
|
|
2147
|
+
instance: p || void 0,
|
|
2148
|
+
params: m
|
|
2147
2149
|
},
|
|
2148
2150
|
T
|
|
2149
2151
|
);
|
|
2150
|
-
return /* @__PURE__ */ e(
|
|
2151
|
-
|
|
2152
|
+
return /* @__PURE__ */ e(Ce, { children: y ? /* @__PURE__ */ e(
|
|
2153
|
+
fn,
|
|
2152
2154
|
{
|
|
2153
|
-
isActive:
|
|
2154
|
-
flagged:
|
|
2155
|
-
tabKey:
|
|
2156
|
-
onUnlock: () => u(
|
|
2157
|
-
children:
|
|
2155
|
+
isActive: I,
|
|
2156
|
+
flagged: b,
|
|
2157
|
+
tabKey: d.key,
|
|
2158
|
+
onUnlock: () => u(d.key),
|
|
2159
|
+
children: D
|
|
2158
2160
|
},
|
|
2159
|
-
|
|
2160
|
-
) :
|
|
2161
|
+
d.key
|
|
2162
|
+
) : D }, `sbp-${d.key}`);
|
|
2161
2163
|
}),
|
|
2162
|
-
(!
|
|
2164
|
+
(!a || o.length === 0) && /* @__PURE__ */ e(dn, {})
|
|
2163
2165
|
]
|
|
2164
2166
|
}
|
|
2165
2167
|
) }),
|
|
2166
|
-
/* @__PURE__ */ e(
|
|
2167
|
-
/* @__PURE__ */ e(
|
|
2168
|
+
/* @__PURE__ */ e(Ae, {}),
|
|
2169
|
+
/* @__PURE__ */ e(mn, { modules: t?.popup })
|
|
2168
2170
|
] })
|
|
2169
2171
|
] })
|
|
2170
2172
|
] }),
|
|
2171
|
-
(n?.quickService?.visible ?? !0) && /* @__PURE__ */ e(
|
|
2173
|
+
(n?.quickService?.visible ?? !0) && /* @__PURE__ */ e(Ke, {})
|
|
2172
2174
|
] });
|
|
2173
|
-
},
|
|
2175
|
+
}, bn = ({
|
|
2174
2176
|
children: n,
|
|
2175
2177
|
menuGubunCode: t = {
|
|
2176
2178
|
mainMenu: "CMPRGRM",
|
|
@@ -2180,55 +2182,55 @@ const en = ({
|
|
|
2180
2182
|
routeMap: r,
|
|
2181
2183
|
routes: o
|
|
2182
2184
|
}) => {
|
|
2183
|
-
const
|
|
2184
|
-
const
|
|
2185
|
+
const s = je(), a = ve(), { flatMenuList: g, findMenuById: c } = ce(), u = _(() => {
|
|
2186
|
+
const h = s.pathname, k = h.replace(/^\/main/, "") || "/";
|
|
2185
2187
|
if (r) {
|
|
2186
|
-
const
|
|
2187
|
-
(
|
|
2188
|
+
const d = Object.keys(r).find(
|
|
2189
|
+
(I) => r[I] === h
|
|
2188
2190
|
);
|
|
2189
|
-
if (
|
|
2190
|
-
return c(
|
|
2191
|
-
const
|
|
2192
|
-
if (
|
|
2193
|
-
return c(
|
|
2191
|
+
if (d)
|
|
2192
|
+
return c(d);
|
|
2193
|
+
const p = Object.keys(r).find((I) => (r[I].replace(/^\/main/, "") || "/") === k);
|
|
2194
|
+
if (p)
|
|
2195
|
+
return c(p);
|
|
2194
2196
|
}
|
|
2195
|
-
return
|
|
2196
|
-
(
|
|
2197
|
+
return g.find(
|
|
2198
|
+
(d) => d.menuGbCd === t.program && d.scrnPath && (d.scrnPath === k || d.scrnPath === h || h.endsWith(d.scrnPath) || k === d.scrnPath)
|
|
2197
2199
|
);
|
|
2198
2200
|
}, [
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
+
s.pathname,
|
|
2202
|
+
g,
|
|
2201
2203
|
t.program,
|
|
2202
2204
|
r,
|
|
2203
2205
|
c
|
|
2204
|
-
]),
|
|
2206
|
+
]), y = _(() => {
|
|
2205
2207
|
if (!u)
|
|
2206
2208
|
return [];
|
|
2207
|
-
const
|
|
2208
|
-
if (!
|
|
2209
|
+
const h = [], k = (p) => {
|
|
2210
|
+
if (!p || !p.menuPrntId || p.menuPrntId === "-")
|
|
2209
2211
|
return [];
|
|
2210
|
-
const
|
|
2211
|
-
return
|
|
2212
|
+
const I = c(p.menuPrntId);
|
|
2213
|
+
return I ? [...k(I), I] : [];
|
|
2212
2214
|
};
|
|
2213
|
-
return
|
|
2214
|
-
if (
|
|
2215
|
-
let
|
|
2216
|
-
if (r &&
|
|
2217
|
-
const
|
|
2218
|
-
(
|
|
2215
|
+
return k(u).forEach((p) => {
|
|
2216
|
+
if (p.menuGbCd === t.mainMenu || p.menuGbCd === t.subMenu) {
|
|
2217
|
+
let I;
|
|
2218
|
+
if (r && p.menuId && (I = r[p.menuId]), !I && o && p.scrnPath) {
|
|
2219
|
+
const b = p.scrnPath.startsWith("/") ? p.scrnPath : `/${p.scrnPath}`, m = Object.keys(o).find(
|
|
2220
|
+
(v) => v === b || v === `/main${b}`
|
|
2219
2221
|
);
|
|
2220
|
-
|
|
2222
|
+
m && (I = m.startsWith("/main") ? m : `/main${m.startsWith("/") ? m : `/${m}`}`);
|
|
2221
2223
|
}
|
|
2222
|
-
|
|
2223
|
-
title:
|
|
2224
|
-
onClick:
|
|
2224
|
+
h.push({
|
|
2225
|
+
title: p.menuNm,
|
|
2226
|
+
onClick: I ? () => a(I) : void 0
|
|
2225
2227
|
});
|
|
2226
2228
|
}
|
|
2227
|
-
}),
|
|
2229
|
+
}), h.push({
|
|
2228
2230
|
title: u.menuNm
|
|
2229
|
-
}),
|
|
2230
|
-
}, [u, t,
|
|
2231
|
-
return /* @__PURE__ */
|
|
2231
|
+
}), h;
|
|
2232
|
+
}, [u, t, a, c]);
|
|
2233
|
+
return /* @__PURE__ */ l(
|
|
2232
2234
|
"div",
|
|
2233
2235
|
{
|
|
2234
2236
|
style: {
|
|
@@ -2237,10 +2239,10 @@ const en = ({
|
|
|
2237
2239
|
},
|
|
2238
2240
|
children: [
|
|
2239
2241
|
/* @__PURE__ */ e(
|
|
2240
|
-
|
|
2242
|
+
nt,
|
|
2241
2243
|
{
|
|
2242
2244
|
separator: ">",
|
|
2243
|
-
items:
|
|
2245
|
+
items: y,
|
|
2244
2246
|
style: { marginBottom: "16px" }
|
|
2245
2247
|
}
|
|
2246
2248
|
),
|
|
@@ -2248,30 +2250,30 @@ const en = ({
|
|
|
2248
2250
|
]
|
|
2249
2251
|
}
|
|
2250
2252
|
);
|
|
2251
|
-
},
|
|
2252
|
-
const t = n?.header?.menu, r = t?.visible !== !1, o = t?.routes,
|
|
2253
|
+
}, Rn = ({ config: n = {} }) => {
|
|
2254
|
+
const t = n?.header?.menu, r = t?.visible !== !1, o = t?.routes, s = _(() => {
|
|
2253
2255
|
if (!o) return;
|
|
2254
|
-
const
|
|
2255
|
-
return
|
|
2256
|
+
const a = {}, { flatMenuList: g } = ce.getState();
|
|
2257
|
+
return g.forEach((c) => {
|
|
2256
2258
|
if (c.menuGbCd === t?.menuGubunCode?.program && c.scrnPath) {
|
|
2257
|
-
const u = c.scrnPath.startsWith("/") ? c.scrnPath : `/${c.scrnPath}`,
|
|
2258
|
-
const
|
|
2259
|
-
return
|
|
2259
|
+
const u = c.scrnPath.startsWith("/") ? c.scrnPath : `/${c.scrnPath}`, y = Object.keys(o).find((h) => {
|
|
2260
|
+
const k = h === "/" ? "/" : h.startsWith("/") ? h : `/${h}`;
|
|
2261
|
+
return k === u || k === `/main${u}` || u === k.replace(/^\/main/, "");
|
|
2260
2262
|
});
|
|
2261
|
-
if (
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2263
|
+
if (y) {
|
|
2264
|
+
const h = y === "/" ? "/main" : y.startsWith("/main") ? y : `/main${y.startsWith("/") ? y : `/${y}`}`;
|
|
2265
|
+
a[c.menuId] = h;
|
|
2264
2266
|
}
|
|
2265
2267
|
}
|
|
2266
|
-
}),
|
|
2268
|
+
}), a;
|
|
2267
2269
|
}, [o, t?.menuGubunCode?.program]);
|
|
2268
|
-
return /* @__PURE__ */
|
|
2269
|
-
/* @__PURE__ */ e(
|
|
2270
|
-
|
|
2270
|
+
return /* @__PURE__ */ l(X, { className: "main-layout", children: [
|
|
2271
|
+
/* @__PURE__ */ e(ze, { config: n?.header, children: r && /* @__PURE__ */ e(
|
|
2272
|
+
cn,
|
|
2271
2273
|
{
|
|
2272
2274
|
menuGubunCode: t?.menuGubunCode,
|
|
2273
2275
|
mode: t?.style?.mode || "horizontal",
|
|
2274
|
-
routeMap:
|
|
2276
|
+
routeMap: s,
|
|
2275
2277
|
style: {
|
|
2276
2278
|
border: "none",
|
|
2277
2279
|
backgroundColor: "transparent",
|
|
@@ -2281,7 +2283,7 @@ const en = ({
|
|
|
2281
2283
|
}
|
|
2282
2284
|
}
|
|
2283
2285
|
) }),
|
|
2284
|
-
/* @__PURE__ */ e("div", { className: "content-container", children: /* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ e("div", { className: "content-container", children: /* @__PURE__ */ l(Re, { config: n?.content, children: [
|
|
2285
2287
|
/* @__PURE__ */ e("div", { className: "view-container", children: /* @__PURE__ */ e(
|
|
2286
2288
|
"div",
|
|
2287
2289
|
{
|
|
@@ -2290,65 +2292,64 @@ const en = ({
|
|
|
2290
2292
|
width: "100%",
|
|
2291
2293
|
height: "100%"
|
|
2292
2294
|
},
|
|
2293
|
-
children: /* @__PURE__ */ e(
|
|
2294
|
-
const c =
|
|
2295
|
+
children: /* @__PURE__ */ e(le, { fallback: /* @__PURE__ */ e("div", { children: "Loading..." }), children: /* @__PURE__ */ e(Le, { children: Object.entries(o || {}).map(([a, g]) => {
|
|
2296
|
+
const c = a === "/" ? "" : a.replace(/^\/main/, "").replace(/^\//, "") || "";
|
|
2295
2297
|
return /* @__PURE__ */ e(
|
|
2296
|
-
|
|
2298
|
+
Y,
|
|
2297
2299
|
{
|
|
2298
2300
|
path: c,
|
|
2299
2301
|
element: /* @__PURE__ */ e(
|
|
2300
|
-
|
|
2302
|
+
bn,
|
|
2301
2303
|
{
|
|
2302
2304
|
menuGubunCode: t?.menuGubunCode,
|
|
2303
|
-
routeMap:
|
|
2305
|
+
routeMap: s,
|
|
2304
2306
|
routes: o,
|
|
2305
|
-
children: /* @__PURE__ */ e(
|
|
2307
|
+
children: /* @__PURE__ */ e(g, {})
|
|
2306
2308
|
}
|
|
2307
2309
|
)
|
|
2308
2310
|
},
|
|
2309
|
-
|
|
2311
|
+
a
|
|
2310
2312
|
);
|
|
2311
2313
|
}) }) })
|
|
2312
2314
|
}
|
|
2313
2315
|
) }),
|
|
2314
|
-
/* @__PURE__ */ e(
|
|
2316
|
+
/* @__PURE__ */ e(Ae, {})
|
|
2315
2317
|
] }) })
|
|
2316
2318
|
] });
|
|
2317
2319
|
};
|
|
2318
|
-
function
|
|
2320
|
+
function zn({
|
|
2319
2321
|
config: n,
|
|
2320
|
-
ui: t
|
|
2321
|
-
navigate: r
|
|
2322
|
+
ui: t
|
|
2322
2323
|
}) {
|
|
2323
|
-
const { loading:
|
|
2324
|
-
return
|
|
2325
|
-
|
|
2326
|
-
}, []), /* @__PURE__ */ e(
|
|
2324
|
+
const { loading: r, capsOn: o, prefills: s, onKeyDown: a, doLogin: g } = lt(n), c = (u) => g(u);
|
|
2325
|
+
return E(() => {
|
|
2326
|
+
se.getState().systemMap.length === 0 && se.getState().fetchSystemMap();
|
|
2327
|
+
}, []), /* @__PURE__ */ e(A, { children: t({ onSubmit: c, loading: r, capsOn: o, onKeyDown: a, prefills: s }) });
|
|
2327
2328
|
}
|
|
2328
|
-
function
|
|
2329
|
+
function An({
|
|
2329
2330
|
onSubmit: n,
|
|
2330
2331
|
loading: t,
|
|
2331
2332
|
capsOn: r,
|
|
2332
2333
|
onKeyDown: o,
|
|
2333
|
-
prefills:
|
|
2334
|
-
labels:
|
|
2334
|
+
prefills: s,
|
|
2335
|
+
labels: a = {
|
|
2335
2336
|
id: "ID 혹은 사번",
|
|
2336
2337
|
pw: "비밀번호",
|
|
2337
2338
|
remember: "Remember me",
|
|
2338
2339
|
login: "로그인"
|
|
2339
2340
|
},
|
|
2340
|
-
header:
|
|
2341
|
+
header: g,
|
|
2341
2342
|
footer: c
|
|
2342
2343
|
}) {
|
|
2343
|
-
const [u] =
|
|
2344
|
-
return
|
|
2345
|
-
|
|
2346
|
-
}, [
|
|
2347
|
-
|
|
2344
|
+
const [u] = Z.useForm();
|
|
2345
|
+
return E(() => {
|
|
2346
|
+
s && (s.id || s.pswr) && u.setFieldsValue({ id: s.id, pswr: s.pswr });
|
|
2347
|
+
}, [s, u]), /* @__PURE__ */ e("div", { className: "login-main", children: /* @__PURE__ */ l("div", { className: "login_wrap", children: [
|
|
2348
|
+
g || /* @__PURE__ */ e("div", { className: "logo_box" }),
|
|
2348
2349
|
/* @__PURE__ */ e("div", { className: "login_title" }),
|
|
2349
|
-
/* @__PURE__ */ e(
|
|
2350
|
+
/* @__PURE__ */ e(Z, { form: u, onFinish: n, className: "login-form", children: /* @__PURE__ */ l(ie, { vertical: !0, children: [
|
|
2350
2351
|
/* @__PURE__ */ e(
|
|
2351
|
-
|
|
2352
|
+
Z.Item,
|
|
2352
2353
|
{
|
|
2353
2354
|
name: "id",
|
|
2354
2355
|
rules: [
|
|
@@ -2358,47 +2359,247 @@ function Mn({
|
|
|
2358
2359
|
message: "아이디는 공백이 들어갈 수 없습니다."
|
|
2359
2360
|
}
|
|
2360
2361
|
],
|
|
2361
|
-
children: /* @__PURE__ */ e(
|
|
2362
|
+
children: /* @__PURE__ */ e(fe, { allowClear: !0, placeholder: a.id, onKeyDown: o })
|
|
2362
2363
|
}
|
|
2363
2364
|
),
|
|
2364
2365
|
/* @__PURE__ */ e(
|
|
2365
|
-
|
|
2366
|
+
Z.Item,
|
|
2366
2367
|
{
|
|
2367
2368
|
name: "pswr",
|
|
2368
2369
|
rules: [{ required: !0, message: "비밀번호를 입력하세요." }],
|
|
2369
2370
|
children: /* @__PURE__ */ e(
|
|
2370
|
-
|
|
2371
|
+
fe.Password,
|
|
2371
2372
|
{
|
|
2372
2373
|
allowClear: !0,
|
|
2373
|
-
placeholder:
|
|
2374
|
+
placeholder: a.pw,
|
|
2374
2375
|
onKeyDown: o
|
|
2375
2376
|
}
|
|
2376
2377
|
)
|
|
2377
2378
|
}
|
|
2378
2379
|
),
|
|
2379
|
-
/* @__PURE__ */ e(
|
|
2380
|
+
/* @__PURE__ */ e(Z.Item, { name: "remember", valuePropName: "checked", children: /* @__PURE__ */ e(rt, { children: a.remember }) }),
|
|
2380
2381
|
/* @__PURE__ */ e("div", { className: r ? "caps-lock caps-lock-on" : "caps-lock", children: r ? "Caps Lock On" : "Caps Lock Off" }),
|
|
2381
|
-
/* @__PURE__ */ e(
|
|
2382
|
+
/* @__PURE__ */ e(Z.Item, { children: /* @__PURE__ */ e(B, { type: "primary", htmlType: "submit", loading: t, block: !0, children: a.login }) })
|
|
2382
2383
|
] }) }),
|
|
2383
2384
|
c
|
|
2384
2385
|
] }) });
|
|
2385
2386
|
}
|
|
2387
|
+
const { Text: V, Title: yn } = xe;
|
|
2388
|
+
function $n({
|
|
2389
|
+
loginConfig: n,
|
|
2390
|
+
loginParams: t,
|
|
2391
|
+
mainLogo: r,
|
|
2392
|
+
systemLogo: o,
|
|
2393
|
+
onGoLogin: s,
|
|
2394
|
+
onGoMain: a
|
|
2395
|
+
}) {
|
|
2396
|
+
const { loginStatus: g, doSsoLogin: c } = ct(n);
|
|
2397
|
+
E(() => {
|
|
2398
|
+
u();
|
|
2399
|
+
}, [t.userId]);
|
|
2400
|
+
const u = () => c(t), y = ({
|
|
2401
|
+
children: k
|
|
2402
|
+
}) => /* @__PURE__ */ l(
|
|
2403
|
+
yn,
|
|
2404
|
+
{
|
|
2405
|
+
level: 4,
|
|
2406
|
+
style: {
|
|
2407
|
+
marginBottom: 8,
|
|
2408
|
+
display: "flex",
|
|
2409
|
+
alignItems: "center",
|
|
2410
|
+
justifyContent: "center"
|
|
2411
|
+
},
|
|
2412
|
+
children: [
|
|
2413
|
+
o && o,
|
|
2414
|
+
" ",
|
|
2415
|
+
k
|
|
2416
|
+
]
|
|
2417
|
+
}
|
|
2418
|
+
), h = () => g === "LOADING" ? /* @__PURE__ */ l(A, { children: [
|
|
2419
|
+
/* @__PURE__ */ e(Q, { size: "large", style: { margin: "10px 0" } }),
|
|
2420
|
+
/* @__PURE__ */ l("div", { children: [
|
|
2421
|
+
/* @__PURE__ */ e(y, { children: "로그인 중입니다." }),
|
|
2422
|
+
/* @__PURE__ */ l(V, { children: [
|
|
2423
|
+
"인증 정보를 확인하는 중입니다.",
|
|
2424
|
+
/* @__PURE__ */ e("br", {}),
|
|
2425
|
+
"브라우저 창을 닫지 말아 주세요."
|
|
2426
|
+
] })
|
|
2427
|
+
] }),
|
|
2428
|
+
/* @__PURE__ */ e(V, { type: "secondary", style: { fontSize: 12 }, children: "인증이 완료되면 자동으로 다음 화면으로 이동합니다." }),
|
|
2429
|
+
/* @__PURE__ */ e(B, { style: { marginTop: 8 }, onClick: s, children: "로그인 화면" })
|
|
2430
|
+
] }) : g === "SUCCESS" ? /* @__PURE__ */ l(A, { children: [
|
|
2431
|
+
/* @__PURE__ */ e("div", { style: { fontSize: 48 }, children: /* @__PURE__ */ e(De, { twoToneColor: "#52c41a" }) }),
|
|
2432
|
+
/* @__PURE__ */ l("div", { children: [
|
|
2433
|
+
/* @__PURE__ */ e(y, { children: "로그인에 성공했습니다." }),
|
|
2434
|
+
/* @__PURE__ */ e(V, { children: "잠시만 기다려 주세요." })
|
|
2435
|
+
] }),
|
|
2436
|
+
/* @__PURE__ */ e(V, { type: "secondary", style: { fontSize: 12 }, children: "잠시 후 자동으로 다음 화면으로 이동합니다." }),
|
|
2437
|
+
/* @__PURE__ */ e(q, { style: { marginTop: 8, justifyContent: "center" }, children: /* @__PURE__ */ e(B, { type: "primary", onClick: a, children: "바로 이동하기" }) })
|
|
2438
|
+
] }) : g === "FAIL" ? /* @__PURE__ */ l(A, { children: [
|
|
2439
|
+
/* @__PURE__ */ e("div", { style: { fontSize: 48 }, children: /* @__PURE__ */ e(Ie, { twoToneColor: "#ff4d4f" }) }),
|
|
2440
|
+
/* @__PURE__ */ l("div", { children: [
|
|
2441
|
+
/* @__PURE__ */ e(y, { children: "로그인에 실패했습니다." }),
|
|
2442
|
+
/* @__PURE__ */ l(V, { children: [
|
|
2443
|
+
"인증 과정에서 오류가 발생했습니다.",
|
|
2444
|
+
/* @__PURE__ */ e("br", {}),
|
|
2445
|
+
"다시 시도해 주세요."
|
|
2446
|
+
] })
|
|
2447
|
+
] }),
|
|
2448
|
+
/* @__PURE__ */ e(V, { type: "secondary", style: { fontSize: 12 }, children: "문제가 지속되면 관리자에게 문의해 주세요." }),
|
|
2449
|
+
/* @__PURE__ */ l(q, { style: { marginTop: 8, justifyContent: "center" }, children: [
|
|
2450
|
+
/* @__PURE__ */ e(
|
|
2451
|
+
B,
|
|
2452
|
+
{
|
|
2453
|
+
type: "primary",
|
|
2454
|
+
onClick: u,
|
|
2455
|
+
icon: /* @__PURE__ */ e(de, {}),
|
|
2456
|
+
children: "다시 시도"
|
|
2457
|
+
}
|
|
2458
|
+
),
|
|
2459
|
+
/* @__PURE__ */ e(B, { onClick: s, icon: /* @__PURE__ */ e(It, {}), children: "로그인 화면" })
|
|
2460
|
+
] })
|
|
2461
|
+
] }) : /* @__PURE__ */ l(A, { children: [
|
|
2462
|
+
/* @__PURE__ */ e(Q, { size: "large", style: { margin: "10px 0" } }),
|
|
2463
|
+
/* @__PURE__ */ e(V, { children: "로그인 상태를 확인하는 중입니다." })
|
|
2464
|
+
] });
|
|
2465
|
+
return E(() => {
|
|
2466
|
+
se.getState().systemMap.length === 0 && se.getState().fetchSystemMap();
|
|
2467
|
+
}, []), /* @__PURE__ */ e(
|
|
2468
|
+
"div",
|
|
2469
|
+
{
|
|
2470
|
+
style: {
|
|
2471
|
+
minHeight: "100vh",
|
|
2472
|
+
display: "flex",
|
|
2473
|
+
alignItems: "center",
|
|
2474
|
+
justifyContent: "center",
|
|
2475
|
+
background: "#f5f5f5"
|
|
2476
|
+
},
|
|
2477
|
+
children: /* @__PURE__ */ e(
|
|
2478
|
+
Be,
|
|
2479
|
+
{
|
|
2480
|
+
style: {
|
|
2481
|
+
width: 420,
|
|
2482
|
+
padding: "32px 32px 28px",
|
|
2483
|
+
textAlign: "center",
|
|
2484
|
+
borderRadius: 16,
|
|
2485
|
+
boxShadow: "0 8px 24px rgba(0,0,0,0.06)"
|
|
2486
|
+
},
|
|
2487
|
+
children: /* @__PURE__ */ l(q, { direction: "vertical", size: 16, style: { width: "100%" }, children: [
|
|
2488
|
+
/* @__PURE__ */ e("div", { children: r && r }),
|
|
2489
|
+
h()
|
|
2490
|
+
] })
|
|
2491
|
+
}
|
|
2492
|
+
)
|
|
2493
|
+
}
|
|
2494
|
+
);
|
|
2495
|
+
}
|
|
2496
|
+
const { Text: Te, Title: Cn } = xe;
|
|
2497
|
+
function Wn({
|
|
2498
|
+
mode: n,
|
|
2499
|
+
mainLogo: t,
|
|
2500
|
+
systemLogo: r,
|
|
2501
|
+
newUserId: o,
|
|
2502
|
+
onContinue: s,
|
|
2503
|
+
onGoLogin: a
|
|
2504
|
+
}) {
|
|
2505
|
+
const g = ({
|
|
2506
|
+
children: h
|
|
2507
|
+
}) => /* @__PURE__ */ l(
|
|
2508
|
+
Cn,
|
|
2509
|
+
{
|
|
2510
|
+
level: 4,
|
|
2511
|
+
style: {
|
|
2512
|
+
marginBottom: 8,
|
|
2513
|
+
display: "flex",
|
|
2514
|
+
alignItems: "center",
|
|
2515
|
+
justifyContent: "center",
|
|
2516
|
+
gap: 6
|
|
2517
|
+
},
|
|
2518
|
+
children: [
|
|
2519
|
+
r && r,
|
|
2520
|
+
" ",
|
|
2521
|
+
h
|
|
2522
|
+
]
|
|
2523
|
+
}
|
|
2524
|
+
), { title: c, desc: u, subDesc: y } = n === "SESSION_CHANGED" ? {
|
|
2525
|
+
title: "세션이 변경되었습니다.",
|
|
2526
|
+
desc: `이 브라우저에서 다른 계정으로 다시 로그인되었습니다.
|
|
2527
|
+
현재 창에서는 이전 계정을 더 이상 사용할 수 없습니다.`,
|
|
2528
|
+
subDesc: o ? `새로 로그인된 계정: ${o}` : "새로 로그인된 계정으로 계속 진행하거나, 로그인 화면으로 이동해 주세요."
|
|
2529
|
+
} : {
|
|
2530
|
+
title: "세션이 만료되었습니다.",
|
|
2531
|
+
desc: `일정 시간 동안 사용하지 않아 로그인이 해제되었습니다.
|
|
2532
|
+
보안을 위해 다시 로그인해 주세요.`,
|
|
2533
|
+
subDesc: "계속 이용하시려면 로그인 화면으로 이동해 주세요."
|
|
2534
|
+
};
|
|
2535
|
+
return /* @__PURE__ */ e(
|
|
2536
|
+
"div",
|
|
2537
|
+
{
|
|
2538
|
+
style: {
|
|
2539
|
+
minHeight: "100vh",
|
|
2540
|
+
display: "flex",
|
|
2541
|
+
alignItems: "center",
|
|
2542
|
+
justifyContent: "center",
|
|
2543
|
+
background: "#f5f5f5"
|
|
2544
|
+
},
|
|
2545
|
+
children: /* @__PURE__ */ e(
|
|
2546
|
+
Be,
|
|
2547
|
+
{
|
|
2548
|
+
style: {
|
|
2549
|
+
width: 450,
|
|
2550
|
+
padding: "32px 32px 28px",
|
|
2551
|
+
textAlign: "center",
|
|
2552
|
+
borderRadius: 16,
|
|
2553
|
+
boxShadow: "0 8px 24px rgba(0,0,0,0.06)"
|
|
2554
|
+
},
|
|
2555
|
+
children: /* @__PURE__ */ l(q, { direction: "vertical", size: 16, style: { width: "100%" }, children: [
|
|
2556
|
+
/* @__PURE__ */ e("div", { children: t && t }),
|
|
2557
|
+
/* @__PURE__ */ e("div", { style: { fontSize: 48 }, children: /* @__PURE__ */ e(Ie, { twoToneColor: "#faad14" }) }),
|
|
2558
|
+
/* @__PURE__ */ l("div", { children: [
|
|
2559
|
+
/* @__PURE__ */ e(g, { children: c }),
|
|
2560
|
+
/* @__PURE__ */ e(Te, { children: u.split(`
|
|
2561
|
+
`).map((h, k) => /* @__PURE__ */ l("span", { children: [
|
|
2562
|
+
h,
|
|
2563
|
+
/* @__PURE__ */ e("br", {})
|
|
2564
|
+
] }, k)) })
|
|
2565
|
+
] }),
|
|
2566
|
+
/* @__PURE__ */ e(Te, { type: "secondary", style: { fontSize: 12 }, children: y }),
|
|
2567
|
+
/* @__PURE__ */ e(q, { style: { marginTop: 8, justifyContent: "center" }, children: s && o && /* @__PURE__ */ l(
|
|
2568
|
+
B,
|
|
2569
|
+
{
|
|
2570
|
+
type: "primary",
|
|
2571
|
+
icon: /* @__PURE__ */ e(De, {}),
|
|
2572
|
+
onClick: s,
|
|
2573
|
+
children: [
|
|
2574
|
+
o,
|
|
2575
|
+
" 계정으로 계속 사용"
|
|
2576
|
+
]
|
|
2577
|
+
}
|
|
2578
|
+
) })
|
|
2579
|
+
] })
|
|
2580
|
+
}
|
|
2581
|
+
)
|
|
2582
|
+
}
|
|
2583
|
+
);
|
|
2584
|
+
}
|
|
2386
2585
|
export {
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2586
|
+
En as A,
|
|
2587
|
+
Dn as B,
|
|
2588
|
+
ln as C,
|
|
2589
|
+
An as D,
|
|
2590
|
+
cn as H,
|
|
2591
|
+
On as L,
|
|
2592
|
+
mn as P,
|
|
2593
|
+
Rn as a,
|
|
2594
|
+
zn as b,
|
|
2595
|
+
$n as c,
|
|
2596
|
+
Wn as d,
|
|
2597
|
+
dn as e,
|
|
2598
|
+
Re as f,
|
|
2599
|
+
ze as g,
|
|
2600
|
+
nn as h,
|
|
2601
|
+
on as i,
|
|
2602
|
+
bn as j,
|
|
2603
|
+
fn as k,
|
|
2604
|
+
Vt as l
|
|
2404
2605
|
};
|