@bwg-ui/core 1.2.7 → 1.2.9

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.
Files changed (81) hide show
  1. package/README.md +28 -0
  2. package/dist/chunks/MenuReport-CuAfCZbc.cjs +1 -0
  3. package/dist/chunks/MenuReport-iuRC_snf.js +1244 -0
  4. package/dist/chunks/{common-components-BiUtYMIt.js → common-components-CFIJNFN0.js} +6704 -7999
  5. package/dist/chunks/common-components-CioS_8Bi.cjs +183 -0
  6. package/dist/chunks/{core-CF_HWm44.cjs → core-CA7iRgyb.cjs} +1 -1
  7. package/dist/chunks/{core-Cb5dF0QU.js → core-D18HD1It.js} +1 -1
  8. package/dist/chunks/{enc-base64-Dy-3zKzn.js → enc-base64-CdWu8KMI.js} +2 -2
  9. package/dist/chunks/{enc-base64-CAxIzedh.cjs → enc-base64-DSIiAsI5.cjs} +1 -1
  10. package/dist/chunks/layout-components-C-9ATcL9.js +1616 -0
  11. package/dist/chunks/layout-components-DMR4tl9_.cjs +35 -0
  12. package/dist/chunks/{sha256-DbQnwvPn.cjs → sha256-D5iKSlK6.cjs} +1 -1
  13. package/dist/chunks/{sha256-DKma8qua.js → sha256-DQcqzuys.js} +2 -2
  14. package/dist/components/common/ButtonAccessController.d.ts +5 -0
  15. package/dist/components/common/ButtonAccessController.d.ts.map +1 -0
  16. package/dist/components/common/BwgEditor.d.ts +3 -3
  17. package/dist/components/common/BwgEditor.d.ts.map +1 -1
  18. package/dist/components/common/BwgPopup.d.ts +15 -0
  19. package/dist/components/common/BwgPopup.d.ts.map +1 -1
  20. package/dist/components/common/BwgView.d.ts +2 -23
  21. package/dist/components/common/BwgView.d.ts.map +1 -1
  22. package/dist/components/common/SearchBox.d.ts +1 -57
  23. package/dist/components/common/SearchBox.d.ts.map +1 -1
  24. package/dist/components/common/index.cjs +1 -1
  25. package/dist/components/common/index.d.ts +5 -3
  26. package/dist/components/common/index.d.ts.map +1 -1
  27. package/dist/components/common/index.js +24 -23
  28. package/dist/components/common/type.d.ts +132 -0
  29. package/dist/components/common/type.d.ts.map +1 -0
  30. package/dist/components/guide/index.cjs +1 -1
  31. package/dist/components/guide/index.js +1 -1
  32. package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
  33. package/dist/components/layout/default/LocalPopupContainer.d.ts +3 -0
  34. package/dist/components/layout/default/LocalPopupContainer.d.ts.map +1 -0
  35. package/dist/components/layout/default/PopupContainer.d.ts.map +1 -1
  36. package/dist/components/layout/index.cjs +1 -35
  37. package/dist/components/layout/index.js +13 -1558
  38. package/dist/components/popup/MenuReport.d.ts +2 -5
  39. package/dist/components/popup/MenuReport.d.ts.map +1 -1
  40. package/dist/components/popup/SearchDepartmentP01.d.ts +4 -5
  41. package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
  42. package/dist/components/popup/SearchDepartmentP02.d.ts +3 -5
  43. package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
  44. package/dist/components/popup/SearchEmployeeP01.d.ts +3 -1
  45. package/dist/components/popup/SearchEmployeeP01.d.ts.map +1 -1
  46. package/dist/components/popup/SearchEmployeeP02.d.ts +3 -1
  47. package/dist/components/popup/SearchEmployeeP02.d.ts.map +1 -1
  48. package/dist/components/popup/SearchOrganizationP01.d.ts +2 -4
  49. package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
  50. package/dist/components/popup/SearchOrganizationP02.d.ts +3 -4
  51. package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
  52. package/dist/components/popup/config/localPopupRegistry.d.ts +8 -0
  53. package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -0
  54. package/dist/components/popup/index.cjs +1 -1
  55. package/dist/components/popup/index.d.ts +2 -4
  56. package/dist/components/popup/index.d.ts.map +1 -1
  57. package/dist/components/popup/index.js +1 -1
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.js +238 -217
  60. package/dist/provider/hooks/usePopup.d.ts +2 -1
  61. package/dist/provider/hooks/usePopup.d.ts.map +1 -1
  62. package/dist/provider/index.cjs +1 -1
  63. package/dist/provider/index.js +205 -188
  64. package/dist/stores/index.cjs +2 -2
  65. package/dist/stores/index.js +265 -196
  66. package/dist/stores/popupStore.d.ts +17 -1
  67. package/dist/stores/popupStore.d.ts.map +1 -1
  68. package/dist/stores/userStore.d.ts +16 -2
  69. package/dist/stores/userStore.d.ts.map +1 -1
  70. package/dist/utils/commonUtils.d.ts +77 -6
  71. package/dist/utils/commonUtils.d.ts.map +1 -1
  72. package/dist/utils/gwUtils.d.ts +23 -0
  73. package/dist/utils/gwUtils.d.ts.map +1 -0
  74. package/dist/utils/index.cjs +1 -1
  75. package/dist/utils/index.d.ts +27 -8
  76. package/dist/utils/index.d.ts.map +1 -1
  77. package/dist/utils/index.js +770 -619
  78. package/dist/utils/userUtils.d.ts +6 -0
  79. package/dist/utils/userUtils.d.ts.map +1 -1
  80. package/package.json +4 -4
  81. package/dist/chunks/common-components-DyOLtUJx.cjs +0 -183
@@ -1,6 +1,6 @@
1
- import { useEffect as b, createContext as y, useContext as k, useRef as N, useState as w, useMemo as A, useCallback as $ } from "react";
2
- import { useCodeStore as H, usePopupStore as W } from "../stores/index.js";
3
- import { jsx as d, jsxs as T } from "react/jsx-runtime";
1
+ import { useEffect as b, createContext as P, useContext as y, useRef as A, useCallback as N, useState as w, useMemo as T } from "react";
2
+ import { usePopupStore as H, useCodeStore as W } from "../stores/index.js";
3
+ import { jsx as d, jsxs as D } from "react/jsx-runtime";
4
4
  import { Input as z } from "antd";
5
5
  import { setServiceCodeOverrides as J } from "../utils/index.js";
6
6
  const I = {
@@ -17,247 +17,283 @@ const I = {
17
17
  // 즐겨찾기 관련
18
18
  AUTH_BMRK: "SCMBMRK00101"
19
19
  // 즐겨찾기 관리
20
- }, D = y(null), ee = ({
20
+ }, M = P(null), ee = ({
21
21
  children: e,
22
- serviceCodes: t = {}
22
+ serviceCodes: o = {}
23
23
  }) => {
24
24
  b(() => {
25
- J(t);
26
- }, [t]);
27
- const n = {
28
- serviceCodes: t,
25
+ J(o);
26
+ }, [o]);
27
+ const c = {
28
+ serviceCodes: o,
29
29
  getServiceCode: (r) => {
30
- if (t[r] && t[r].trim() !== "")
31
- return console.log(`🔧 Provider 설정 사용: ${r} = ${t[r]}`), t[r];
32
- const s = I[r];
33
- return console.log(`🔧 기본값 사용: ${r} = ${s}`), s;
30
+ if (o[r] && o[r].trim() !== "")
31
+ return console.log(`🔧 Provider 설정 사용: ${r} = ${o[r]}`), o[r];
32
+ const i = I[r];
33
+ return console.log(`🔧 기본값 사용: ${r} = ${i}`), i;
34
34
  }
35
35
  };
36
- return /* @__PURE__ */ d(D.Provider, { value: n, children: e });
36
+ return /* @__PURE__ */ d(M.Provider, { value: c, children: e });
37
37
  }, O = () => {
38
- const e = k(D);
38
+ const e = y(M);
39
39
  if (!e)
40
40
  throw new Error("useServiceCode must be used within a ServiceCodeProvider");
41
41
  return e;
42
- }, te = (e) => {
43
- const { getServiceCode: t } = O();
44
- return t(e);
45
- }, oe = () => {
46
- const { getServiceCode: e } = O(), t = {};
47
- for (const o of Object.keys(I))
48
- t[o] = e(o);
49
- return t;
42
+ }, oe = (e) => {
43
+ const { getServiceCode: o } = O();
44
+ return o(e);
45
+ }, te = () => {
46
+ const { getServiceCode: e } = O(), o = {};
47
+ for (const t of Object.keys(I))
48
+ o[t] = e(t);
49
+ return o;
50
50
  }, re = () => {
51
51
  const { getServiceCode: e } = O();
52
52
  console.log("🔧 bwg-core 서비스코드 설정:"), console.log("📋 Provider 설정 > 기본값 순서로 확인");
53
- for (const t of Object.keys(I)) {
54
- const o = e(t);
55
- console.log(` ${t}: ${o}`);
53
+ for (const o of Object.keys(I)) {
54
+ const t = e(o);
55
+ console.log(` ${o}: ${t}`);
56
56
  }
57
- }, M = y(null), ne = ({ children: e }) => {
58
- const t = N(null), l = {
59
- searchBoxRef: t,
60
- getFormData: () => t.current?.getFormData() || {},
61
- setFormData: (a) => {
62
- t.current?.setFormData(a);
57
+ }, R = P(null), ne = ({ children: e }) => {
58
+ const o = A(null), l = {
59
+ searchBoxRef: o,
60
+ getFormData: () => o.current?.getFormData() || {},
61
+ setFormData: (u) => {
62
+ o.current?.setFormData(u);
63
63
  },
64
64
  resetForm: () => {
65
- t.current?.resetForm();
65
+ o.current?.resetForm();
66
66
  },
67
- validateForm: async () => await t.current?.validateForm() || {
67
+ validateForm: async () => await o.current?.validateForm() || {
68
68
  success: !1,
69
69
  error: null
70
70
  }
71
71
  };
72
- return /* @__PURE__ */ d(M.Provider, { value: l, children: e });
72
+ return /* @__PURE__ */ d(R.Provider, { value: l, children: e });
73
73
  }, se = () => {
74
- const e = k(M);
74
+ const e = y(R);
75
75
  if (!e)
76
76
  throw new Error("useSearchBox must be used within a SearchBoxProvider");
77
77
  return e;
78
- }, R = y(null), ce = () => {
79
- const e = k(R);
78
+ }, ce = () => {
79
+ const {
80
+ popups: e,
81
+ activePopupId: o,
82
+ setActivePopup: t,
83
+ closePopup: c,
84
+ openPopup: r,
85
+ openCorePopup: i
86
+ } = H(), l = N(
87
+ async (m, h, n) => {
88
+ try {
89
+ await r(m, h, n);
90
+ } catch (s) {
91
+ throw console.error("팝업 열기 실패:", s), s;
92
+ }
93
+ },
94
+ [r]
95
+ ), u = N(
96
+ (m, h) => {
97
+ try {
98
+ i(m, h);
99
+ } catch (n) {
100
+ throw console.error("로컬 팝업 열기 실패:", n), n;
101
+ }
102
+ },
103
+ [i]
104
+ );
105
+ return {
106
+ popups: e,
107
+ activePopupId: o,
108
+ setActivePopup: t,
109
+ closePopup: c,
110
+ showPopup: l,
111
+ openCorePopup: u,
112
+ isPopup: e.length > 0
113
+ };
114
+ }, U = P(null), ie = () => {
115
+ const e = y(U);
80
116
  if (!e) throw new Error("useAuth must be used within AuthProvider");
81
117
  return e;
82
- }, ie = ({ children: e }) => {
83
- const [t, o] = w(!1), [n, r] = w(!1), s = async (c) => {
84
- const i = (await c.text()).trim().toLowerCase();
118
+ }, ue = ({ children: e }) => {
119
+ const [o, t] = w(!1), [c, r] = w(!1), i = async (n) => {
120
+ const s = (await n.text()).trim().toLowerCase();
85
121
  try {
86
- const u = JSON.parse(i);
87
- if (typeof u == "object" && u && (u.ok === !0 || u.success === !0))
122
+ const a = JSON.parse(s);
123
+ if (typeof a == "object" && a && (a.ok === !0 || a.success === !0))
88
124
  return !0;
89
125
  } catch {
90
126
  }
91
- return !!["true", "ok", "1", "y"].includes(i);
92
- }, l = async (c) => {
127
+ return !!["true", "ok", "1", "y"].includes(s);
128
+ }, l = async (n) => {
93
129
  r(!0);
94
130
  try {
95
- const i = await fetch("/serviceEndpoint/sso_check.jsp", {
131
+ const s = await fetch("/serviceEndpoint/sso_check.jsp", {
96
132
  method: "POST",
97
133
  headers: { "Content-Type": "application/x-www-form-urlencoded" },
98
- body: "token=" + encodeURIComponent(c)
99
- }), u = i.ok && await s(i);
100
- return o(u), u;
134
+ body: "token=" + encodeURIComponent(n)
135
+ }), a = s.ok && await i(s);
136
+ return t(a), a;
101
137
  } catch {
102
138
  return !1;
103
139
  } finally {
104
140
  r(!1);
105
141
  }
106
- }, a = async (c) => {
142
+ }, u = async (n) => {
107
143
  r(!0);
108
144
  try {
109
- const i = await fetch("/serviceEndpoint/sso_reauth.jsp", {
145
+ const s = await fetch("/serviceEndpoint/sso_reauth.jsp", {
110
146
  method: "POST",
111
147
  headers: { "Content-Type": "application/x-www-form-urlencoded" },
112
- body: "pin=" + encodeURIComponent(c)
148
+ body: "pin=" + encodeURIComponent(n)
113
149
  });
114
- return i.ok && await s(i) ? (o(!0), !0) : !1;
150
+ return s.ok && await i(s) ? (t(!0), !0) : !1;
115
151
  } catch {
116
152
  return !1;
117
153
  } finally {
118
154
  r(!1);
119
155
  }
120
- }, f = () => {
121
- o(!1);
122
- }, p = A(
123
- () => ({ authed: t, busy: n, verifyWithToken: l, reauthWithPin: a, logout: f }),
124
- [t, n]
156
+ }, m = () => {
157
+ t(!1);
158
+ }, h = T(
159
+ () => ({ authed: o, busy: c, verifyWithToken: l, reauthWithPin: u, logout: m }),
160
+ [o, c]
125
161
  );
126
- return /* @__PURE__ */ d(R.Provider, { value: p, children: e });
127
- }, U = y(
162
+ return /* @__PURE__ */ d(U.Provider, { value: h, children: e });
163
+ }, j = P(
128
164
  void 0
129
165
  ), ae = ({
130
166
  children: e
131
167
  }) => {
132
168
  const {
133
- codeData: t,
134
- isLoading: o,
135
- error: n,
169
+ codeData: o,
170
+ isLoading: t,
171
+ error: c,
136
172
  lastUpdated: r,
137
- getCodeList: s,
173
+ getCodeList: i,
138
174
  getCodeListByOption: l,
139
- getCodeName: a,
140
- getCodeColor: f,
141
- getCodeByOption: p,
142
- getAvailableGroupCodes: c,
143
- getGridLookup: i,
144
- fetchCommonCodes: u
145
- } = H(), L = {
146
- codeData: t,
147
- isLoading: o,
148
- error: n,
175
+ getCodeName: u,
176
+ getCodeColor: m,
177
+ getCodeByOption: h,
178
+ getAvailableGroupCodes: n,
179
+ getGridLookup: s,
180
+ fetchCommonCodes: a
181
+ } = W(), L = {
182
+ codeData: o,
183
+ isLoading: t,
184
+ error: c,
149
185
  lastUpdated: r,
150
- getCodeList: s,
186
+ getCodeList: i,
151
187
  getCodeListByOption: l,
152
- getCodeName: a,
153
- getCodeColor: f,
154
- getCodeByOption: p,
155
- getAvailableGroupCodes: c,
156
- getGridLookup: i,
157
- refreshCodes: u
188
+ getCodeName: u,
189
+ getCodeColor: m,
190
+ getCodeByOption: h,
191
+ getAvailableGroupCodes: n,
192
+ getGridLookup: s,
193
+ refreshCodes: a
158
194
  };
159
- return /* @__PURE__ */ d(U.Provider, { value: L, children: e });
160
- }, P = () => {
161
- const e = k(U);
195
+ return /* @__PURE__ */ d(j.Provider, { value: L, children: e });
196
+ }, k = () => {
197
+ const e = y(j);
162
198
  if (e === void 0)
163
199
  throw new Error("useCommonCode must be used within a CommonCodeProvider");
164
200
  return e;
165
- }, ue = () => {
166
- const { getCodeList: e, isLoading: t, error: o } = P();
201
+ }, de = () => {
202
+ const { getCodeList: e, isLoading: o, error: t } = k();
167
203
  return {
168
204
  getCodeList: e,
169
- isLoading: t,
170
- error: o
205
+ isLoading: o,
206
+ error: t
171
207
  };
172
- }, de = () => {
173
- const { getCodeName: e, isLoading: t, error: o } = P();
208
+ }, le = () => {
209
+ const { getCodeName: e, isLoading: o, error: t } = k();
174
210
  return {
175
211
  getCodeName: e,
176
- isLoading: t,
177
- error: o
212
+ isLoading: o,
213
+ error: t
178
214
  };
179
- }, le = () => {
180
- const { getCodeColor: e, isLoading: t, error: o } = P();
215
+ }, pe = () => {
216
+ const { getCodeColor: e, isLoading: o, error: t } = k();
181
217
  return {
182
218
  getCodeColor: e,
183
- isLoading: t,
184
- error: o
219
+ isLoading: o,
220
+ error: t
185
221
  };
186
222
  }, me = () => {
187
- const { getCodeListByOption: e, isLoading: t, error: o } = P();
223
+ const { getCodeListByOption: e, isLoading: o, error: t } = k();
188
224
  return {
189
225
  getCodeListByOption: e,
190
- isLoading: t,
191
- error: o
226
+ isLoading: o,
227
+ error: t
192
228
  };
193
- }, pe = () => {
194
- const { getGridLookup: e, isLoading: t, error: o } = P();
229
+ }, he = () => {
230
+ const { getGridLookup: e, isLoading: o, error: t } = k();
195
231
  return {
196
232
  getGridLookup: e,
197
- isLoading: t,
198
- error: o
233
+ isLoading: o,
234
+ error: t
199
235
  };
200
- }, j = y(null), fe = () => {
201
- const e = k(j);
236
+ }, _ = P(null), fe = () => {
237
+ const e = y(_);
202
238
  if (!e)
203
239
  throw new Error("useLock must be used within ScreenProtectProvider");
204
240
  return e;
205
- }, he = ({
241
+ }, we = ({
206
242
  children: e,
207
- idleMs: t = 1e4,
208
- onUnlock: o,
209
- persistLocked: n = !0,
243
+ idleMs: o = 1e4,
244
+ onUnlock: t,
245
+ persistLocked: c = !0,
210
246
  storageKey: r = "inactivityLocked",
211
- eventTarget: s,
247
+ eventTarget: i,
212
248
  overlayScope: l = "global",
213
- overlayId: a = "lock-overlay-root",
214
- overlayPosition: f = "fixed"
249
+ overlayId: u = "lock-overlay-root",
250
+ overlayPosition: m = "fixed"
215
251
  }) => {
216
- const p = n && typeof window < "u" && window.localStorage.getItem(r) === "1", [c, i] = w(p), [u, L] = w(t), x = Number.isFinite(u) && u > 0, v = N(null), _ = () => {
252
+ const h = c && typeof window < "u" && window.localStorage.getItem(r) === "1", [n, s] = w(h), [a, L] = w(o), x = Number.isFinite(a) && a > 0, C = A(null), G = () => {
217
253
  try {
218
- n && window.localStorage.setItem(r, "1");
254
+ c && window.localStorage.setItem(r, "1");
219
255
  } catch {
220
256
  }
221
- i(!0);
222
- }, F = async (h) => {
223
- if (!(o && !await o(h))) {
257
+ s(!0);
258
+ }, F = async (f) => {
259
+ if (!(t && !await t(f))) {
224
260
  try {
225
- n && window.localStorage.removeItem(r);
261
+ c && window.localStorage.removeItem(r);
226
262
  } catch {
227
263
  }
228
- i(!1), x && E();
264
+ s(!1), x && E();
229
265
  }
230
- }, G = () => {
266
+ }, V = () => {
231
267
  try {
232
- n && window.localStorage.setItem(r, "1");
268
+ c && window.localStorage.setItem(r, "1");
233
269
  } catch {
234
270
  }
235
- i(!0);
271
+ s(!0);
236
272
  }, E = () => {
237
- x && (v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
238
- G();
239
- }, u));
273
+ x && (C.current && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
274
+ V();
275
+ }, a));
240
276
  };
241
277
  b(() => {
242
278
  if (!x) return;
243
- const h = () => {
244
- c || E();
245
- }, C = { passive: !0 }, g = [
279
+ const f = () => {
280
+ n || E();
281
+ }, v = { passive: !0 }, g = [
246
282
  "pointermove",
247
283
  "pointerdown",
248
284
  "keydown",
249
285
  "wheel",
250
286
  "touchstart"
251
- ], S = s ?? window;
252
- return g.forEach((m) => S.addEventListener(m, h, C)), E(), () => {
253
- v.current && window.clearTimeout(v.current), g.forEach((m) => S.removeEventListener(m, h));
287
+ ], S = i ?? window;
288
+ return g.forEach((p) => S.addEventListener(p, f, v)), E(), () => {
289
+ C.current && window.clearTimeout(C.current), g.forEach((p) => S.removeEventListener(p, f));
254
290
  };
255
- }, [u, c, s, x]), b(() => {
256
- if (!c) return;
257
- const h = (m) => {
258
- const B = document.getElementById(a);
259
- B && B.contains(m.target) || (m.stopPropagation(), m.preventDefault());
260
- }, C = { capture: !0 }, g = [
291
+ }, [a, n, i, x]), b(() => {
292
+ if (!n) return;
293
+ const f = (p) => {
294
+ const B = document.getElementById(u);
295
+ B && B.contains(p.target) || (p.stopPropagation(), p.preventDefault());
296
+ }, v = { capture: !0 }, g = [
261
297
  "pointerdown",
262
298
  "pointerup",
263
299
  "pointermove",
@@ -267,47 +303,47 @@ const I = {
267
303
  "keyup",
268
304
  "touchstart",
269
305
  "touchmove"
270
- ], S = l === "scoped" ? s ?? window : window;
271
- return g.forEach((m) => S.addEventListener(m, h, C)), () => g.forEach((m) => S.removeEventListener(m, h, C));
272
- }, [c, l, a, s]);
273
- const V = A(
274
- () => ({ locked: c, lock: _, unlock: F, setIdleMs: L }),
275
- [c]
306
+ ], S = l === "scoped" ? i ?? window : window;
307
+ return g.forEach((p) => S.addEventListener(p, f, v)), () => g.forEach((p) => S.removeEventListener(p, f, v));
308
+ }, [n, l, u, i]);
309
+ const $ = T(
310
+ () => ({ locked: n, lock: G, unlock: F, setIdleMs: L }),
311
+ [n]
276
312
  );
277
- return /* @__PURE__ */ T(j.Provider, { value: V, children: [
313
+ return /* @__PURE__ */ D(_.Provider, { value: $, children: [
278
314
  /* @__PURE__ */ d(
279
315
  "div",
280
316
  {
281
317
  style: { width: "100%", height: "100%" },
282
- ...c ? { inert: "" } : {},
283
- ...c ? { "aria-hidden": !0 } : {},
318
+ ...n ? { inert: "" } : {},
319
+ ...n ? { "aria-hidden": !0 } : {},
284
320
  children: e
285
321
  }
286
322
  ),
287
- c && /* @__PURE__ */ d(
323
+ n && /* @__PURE__ */ d(
288
324
  q,
289
325
  {
290
326
  onUnlock: F,
291
- overlayId: a,
292
- overlayPosition: f
327
+ overlayId: u,
328
+ overlayPosition: m
293
329
  }
294
330
  )
295
331
  ] });
296
332
  }, q = ({
297
333
  onUnlock: e,
298
- overlayId: t = "lock-overlay-root",
299
- overlayPosition: o = "fixed"
334
+ overlayId: o = "lock-overlay-root",
335
+ overlayPosition: t = "fixed"
300
336
  }) => {
301
- const [n] = w(4), [r, s] = w("");
337
+ const [c] = w(4), [r, i] = w("");
302
338
  return /* @__PURE__ */ d(
303
339
  "div",
304
340
  {
305
- id: t,
341
+ id: o,
306
342
  "aria-modal": "true",
307
343
  role: "dialog",
308
344
  "aria-label": "Locked screen",
309
345
  style: {
310
- position: o,
346
+ position: t,
311
347
  inset: 0,
312
348
  background: "rgba(12, 14, 18, 0.85)",
313
349
  backdropFilter: "blur(4px)",
@@ -315,7 +351,7 @@ const I = {
315
351
  placeItems: "center",
316
352
  zIndex: 9999
317
353
  },
318
- children: /* @__PURE__ */ T("div", { className: "lockscreen-form", style: { width: 420, maxWidth: "92vw" }, children: [
354
+ children: /* @__PURE__ */ D("div", { className: "lockscreen-form", style: { width: 420, maxWidth: "92vw" }, children: [
319
355
  /* @__PURE__ */ d("div", { className: "lock-icon-wrap", children: /* @__PURE__ */ d("span", { className: "lock-icon-box" }) }),
320
356
  /* @__PURE__ */ d("h2", { children: "잠금됨" }),
321
357
  /* @__PURE__ */ d("p", { children: "PIN 번호를 입력하세요" }),
@@ -329,11 +365,11 @@ const I = {
329
365
  {
330
366
  mask: "*",
331
367
  autoFocus: !0,
332
- length: n,
368
+ length: c,
333
369
  value: r,
334
370
  onChange: (l) => {
335
- const a = (l ?? "").replace(/\D/g, "").slice(0, n);
336
- s(a), a.length === n && e(a);
371
+ const u = (l ?? "").replace(/\D/g, "").slice(0, c);
372
+ i(u), u.length === c && e(u);
337
373
  }
338
374
  }
339
375
  )
@@ -342,44 +378,25 @@ const I = {
342
378
  ] })
343
379
  }
344
380
  );
345
- }, we = () => {
346
- const { popups: e, activePopupId: t, setActivePopup: o, closePopup: n, openPopup: r } = W(), s = $(
347
- async (l, a, f) => {
348
- try {
349
- await r(l, a, f);
350
- } catch (p) {
351
- throw console.error("팝업 열기 실패:", p), p;
352
- }
353
- },
354
- [r]
355
- );
356
- return {
357
- popups: e,
358
- activePopupId: t,
359
- setActivePopup: o,
360
- closePopup: n,
361
- showPopup: s,
362
- isPopup: e.length > 0
363
- };
364
381
  };
365
382
  export {
366
- ie as AuthProvider,
383
+ ue as AuthProvider,
367
384
  ae as CommonCodeProvider,
368
- he as ScreenProtectProvider,
385
+ we as ScreenProtectProvider,
369
386
  ne as SearchBoxProvider,
370
387
  ee as ServiceCodeProvider,
371
- oe as useAllServiceCodes,
372
- ce as useAuth,
373
- le as useCodeColor,
374
- ue as useCodeList,
388
+ te as useAllServiceCodes,
389
+ ie as useAuth,
390
+ pe as useCodeColor,
391
+ de as useCodeList,
375
392
  me as useCodeListByOption,
376
- de as useCodeName,
377
- P as useCommonCode,
378
- pe as useGridLookup,
393
+ le as useCodeName,
394
+ k as useCommonCode,
395
+ he as useGridLookup,
379
396
  fe as useLock,
380
397
  re as useLogServiceCodeConfig,
381
- we as usePopup,
398
+ ce as usePopup,
382
399
  se as useSearchBox,
383
400
  O as useServiceCode,
384
- te as useServiceCodeValue
401
+ oe as useServiceCodeValue
385
402
  };