@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
package/dist/index.js CHANGED
@@ -1,221 +1,242 @@
1
- import { ApiError as r, THEME_COOKIE_NAME as t, apiDelete as i, apiGet as s, apiPatch as a, apiPost as n, apiPut as g, apiUtils as l, arrAverage as u, arrCount as d, arrMax as c, arrMin as p, arrReverse as S, arrSum as w, arrUnique as C, bwgUtils as B, callService as m, callService_SYSCD as v, clamp as f, clearSessionStorage as h, closeAllMessages as P, closeMessage as U, closeNotification as D, commonUtils as E, configureEnvUtils as b, copyToClipboard as y, debounce as A, deleteCookie as L, destroyNotifications as M, downloadByFileKey as I, downloadFile as k, duplicates as x, encryptSha256 as R, envUtils as N, fileUtils as O, generateRandomColor as T, generateRandomString as F, generateUID as G, getAllServiceCodes as V, getClientIp as W, getCookie as q, getCrprCd as z, getCurrentDate as H, getCurrentDateString as _, getDepartmentInfo as j, getDeviceType as K, getDisplayName as Q, getDprtCd as Y, getDprtNm as J, getEmplNo as X, getEnvCode as Z, getPermissionService as $, getRoleList as ee, getServiceCode as oe, getSessionStorage as re, getUserDvsn as te, getUserId as ie, getUserInfo as se, getUserNm as ae, hasAllRoles as ne, hasAnyRole as ge, hasRole as le, hasUserInfo as ue, isArray as de, isBoolean as ce, isDesktop as pe, isDev as Se, isEmpty as we, isEmptyArray as Ce, isFunction as Be, isLocal as me, isLoggedIn as ve, isMobile as fe, isNull as he, isNullOrUndefined as Pe, isNumber as Ue, isObject as De, isProd as Ee, isSafeEmpty as be, isString as ye, isTablet as Ae, isUndefined as Le, isValidEmail as Me, isValidUrl as Ie, logServiceCodeConfig as ke, messageUtils as xe, notiBwgError as Re, notiError as Ne, notiInfo as Oe, notiSuccess as Te, notiWarning as Fe, notificationService as Ge, notificationUtils as Ve, padLeft as We, padRight as qe, random as ze, realFormat as He, removeSessionStorage as _e, round as je, serviceUtils as Ke, setClientIp as Qe, setCookie as Ye, setServiceCodeOverrides as Je, setSessionStorage as Xe, showApiError as Ze, showDuplicateError as $e, showError as eo, showInfo as oo, showLoading as ro, showRequiredError as to, showSaveError as io, showSaveSuccess as so, showSuccess as ao, showWarning as no, throttle as go, toCamelCase as lo, userUtils as uo, verifyClientIp as co } from "./utils/index.js";
2
- import { useCode as So, useCodeStore as wo, useColorStore as Co, useFavorite as Bo, useFavoriteStore as mo, useLoadingStore as vo, useMenuModel as fo, useMenuModelStore as ho, useMenuView as Po, useMenuViewStore as Uo, useOptionStore as Do, usePopupLoadingStore as Eo, usePopupState as bo, usePopupStore as yo, useUser as Ao, useUserStore as Lo } from "./stores/index.js";
3
- import { d as Io, e as ko, f as xo, B as Ro, h as No, i as Oo, j as To, k as Fo, l as Go, m as Vo, n as Wo, o as qo, a as zo, p as Ho, q as _o, r as jo, s as Ko, C as Qo, t as Yo, G as Jo, Q as Xo, u as Zo, S as $o, w as er, x as or, y as rr, z as tr, v as ir } from "./chunks/common-components-BiUtYMIt.js";
4
- import { BwgButton as ar, BwgCheck as nr, BwgCheckList as gr, BwgDatePicker as lr, BwgDownload as ur, BwgForm as dr, BwgFormItem as cr, BwgInput as pr, BwgLargeUploader as Sr, BwgMaskedInput as wr, BwgMaskedPicker as Cr, BwgMultiSelect as Br, BwgNumber as mr, BwgRadio as vr, BwgRangePicker as fr, BwgSearch as hr, BwgSelect as Pr, BwgSwitch as Ur, BwgTextArea as Dr, BwgUploader as Er } from "./components/core/index.js";
5
- import { AppWrapper as yr, BwgPortal01 as Ar, BwgPortal02 as Lr, ConfigurableContent as Mr, ConfigurableHeader as Ir, ConfigurableMenuTab as kr, ConfigurableSidebar as xr, ContentContainer as Rr, LandingContainer as Nr, LoadingContainer as Or, PopupContainer as Tr, ProtectWrapper as Fr } from "./components/layout/index.js";
6
- import { AuthProvider as Vr, CommonCodeProvider as Wr, ScreenProtectProvider as qr, SearchBoxProvider as zr, ServiceCodeProvider as Hr, useAllServiceCodes as _r, useAuth as jr, useCodeColor as Kr, useCodeList as Qr, useCodeListByOption as Yr, useCodeName as Jr, useCommonCode as Xr, useGridLookup as Zr, useLock as $r, useLogServiceCodeConfig as et, usePopup as ot, useSearchBox as rt, useServiceCode as tt, useServiceCodeValue as it } from "./provider/index.js";
1
+ import { ApiError as r, COMMON_DATE_FORMAT as a, THEME_COOKIE_NAME as t, addDays as s, addMonths as i, apiDelete as n, apiGet as g, apiPatch as l, apiPost as d, apiPut as u, apiUtils as p, arrAverage as c, arrCount as C, arrMax as S, arrMin as w, arrReverse as B, arrSum as m, arrUnique as v, bwgUtils as f, callService as h, callService_SYSCD as P, clamp as D, clearSessionStorage as A, closeAllMessages as U, closeMessage as b, closeNotification as M, commonUtils as y, configureEnvUtils as E, copyToClipboard as L, datetimeFormat as k, debounce as I, deleteCookie as x, destroyNotifications as O, diffDays as R, downloadByFileKey as N, downloadFile as T, duplicates as F, encryptSha256 as V, envUtils as G, fileUtils as W, generateRandomColor as _, generateRandomString as H, generateUID as J, getAge as q, getAllServiceCodes as z, getClientIp as Y, getCookie as j, getCrprCd as K, getCurrentDate as Q, getCurrentDateString as X, getDepartmentInfo as Z, getDeviceType as $, getDisplayName as ee, getDprtCd as oe, getDprtNm as re, getEmplNo as ae, getEnvCode as te, getHrInfo as se, getJbdtCd as ie, getJbgdCd as ne, getJbkdCd as ge, getJbpsCd as le, getLastDateByDiv as de, getPermissionService as ue, getRoleList as pe, getServiceCode as ce, getSessionStorage as Ce, getStartDateByDiv as Se, getUserDvsn as we, getUserId as Be, getUserInfo as me, getUserNm as ve, getWkplCd as fe, hasAllRoles as he, hasAnyRole as Pe, hasRole as De, hasUserInfo as Ae, isArray as Ue, isBoolean as be, isDesktop as Me, isDev as ye, isEmpty as Ee, isEmptyArray as Le, isFunction as ke, isLocal as Ie, isLoggedIn as xe, isMobile as Oe, isNull as Re, isNullOrUndefined as Ne, isNumber as Te, isObject as Fe, isProd as Ve, isSafeEmpty as Ge, isString as We, isTablet as _e, isUndefined as He, isValidDate as Je, isValidDateTime as qe, isValidEmail as ze, isValidUrl as Ye, isValidYear as je, isValidYearMonth as Ke, logServiceCodeConfig as Qe, messageUtils as Xe, notiBwgError as Ze, notiError as $e, notiInfo as eo, notiSuccess as oo, notiWarning as ro, notificationService as ao, notificationUtils as to, padLeft as so, padRight as io, random as no, realFormat as go, removeSessionStorage as lo, round as uo, serviceUtils as po, setClientIp as co, setCookie as Co, setServiceCodeOverrides as So, setSessionStorage as wo, showApiError as Bo, showDuplicateError as mo, showError as vo, showInfo as fo, showLoading as ho, showRequiredError as Po, showSaveError as Do, showSaveSuccess as Ao, showSuccess as Uo, showWarning as bo, submitGwApproval as Mo, throttle as yo, toCamelCase as Eo, uploadFilesViaSftp as Lo, userUtils as ko, verifyClientIp as Io } from "./utils/index.js";
2
+ import { useCode as Oo, useCodeStore as Ro, useColorStore as No, useFavorite as To, useFavoriteStore as Fo, useLoadingStore as Vo, useMenuModel as Go, useMenuModelStore as Wo, useMenuView as _o, useMenuViewStore as Ho, useOptionStore as Jo, usePopupLoadingStore as qo, usePopupState as zo, usePopupStore as Yo, useUser as jo, useUserStore as Ko } from "./stores/index.js";
3
+ import { j as Xo, k as Zo, l as $o, m as er, B as or, n as rr, o as ar, i as tr, f as sr, p as ir, h as nr, e as gr, q as lr, a as dr, r as ur, s as pr, t as cr, u as Cr, C as Sr, v as wr, G as Br, Q as mr, w as vr, S as fr, x as hr, y as Pr, z as Dr, A as Ar, d as Ur } from "./chunks/common-components-CFIJNFN0.js";
4
+ import { BwgButton as Mr, BwgCheck as yr, BwgCheckList as Er, BwgDatePicker as Lr, BwgDownload as kr, BwgForm as Ir, BwgFormItem as xr, BwgInput as Or, BwgLargeUploader as Rr, BwgMaskedInput as Nr, BwgMaskedPicker as Tr, BwgMultiSelect as Fr, BwgNumber as Vr, BwgRadio as Gr, BwgRangePicker as Wr, BwgSearch as _r, BwgSelect as Hr, BwgSwitch as Jr, BwgTextArea as qr, BwgUploader as zr } from "./components/core/index.js";
5
+ import { A as jr, B as Kr, a as Qr, c as Xr, d as Zr, e as $r, f as ea, C as oa, b as ra, L as aa, P as ta, g as sa } from "./chunks/layout-components-C-9ATcL9.js";
6
+ import { AuthProvider as na, CommonCodeProvider as ga, ScreenProtectProvider as la, SearchBoxProvider as da, ServiceCodeProvider as ua, useAllServiceCodes as pa, useAuth as ca, useCodeColor as Ca, useCodeList as Sa, useCodeListByOption as wa, useCodeName as Ba, useCommonCode as ma, useGridLookup as va, useLock as fa, useLogServiceCodeConfig as ha, usePopup as Pa, useSearchBox as Da, useServiceCode as Aa, useServiceCodeValue as Ua } from "./provider/index.js";
7
7
  export {
8
8
  r as ApiError,
9
- yr as AppWrapper,
10
- Vr as AuthProvider,
11
- ar as BwgButton,
12
- Io as BwgButtonGroup,
13
- nr as BwgCheck,
14
- gr as BwgCheckList,
15
- ko as BwgCmptArea,
16
- xo as BwgCol,
17
- Ro as BwgConfigProvider,
18
- lr as BwgDatePicker,
19
- No as BwgDetail,
20
- ur as BwgDownload,
21
- Oo as BwgDrawer,
22
- To as BwgEditor,
23
- dr as BwgForm,
24
- cr as BwgFormItem,
25
- Fo as BwgGrid,
26
- Go as BwgInfoArea,
27
- pr as BwgInput,
28
- Sr as BwgLargeUploader,
29
- wr as BwgMaskedInput,
30
- Cr as BwgMaskedPicker,
31
- Br as BwgMultiSelect,
32
- mr as BwgNumber,
33
- Vo as BwgPagination,
34
- Wo as BwgPopup,
35
- Ar as BwgPortal01,
36
- Lr as BwgPortal02,
37
- vr as BwgRadio,
38
- fr as BwgRangePicker,
39
- qo as BwgRow,
40
- hr as BwgSearch,
41
- Pr as BwgSelect,
42
- zo as BwgSpace,
43
- Ur as BwgSwitch,
44
- Ho as BwgTable,
45
- _o as BwgTabs,
46
- Dr as BwgTextArea,
47
- jo as BwgTitleBox,
48
- Er as BwgUploader,
49
- Ko as BwgView,
50
- Wr as CommonCodeProvider,
51
- Mr as ConfigurableContent,
52
- Ir as ConfigurableHeader,
53
- kr as ConfigurableMenuTab,
54
- xr as ConfigurableSidebar,
55
- Qo as ContentBox,
56
- Rr as ContentContainer,
57
- Yo as ContentLayOut,
58
- Jo as GlobalConfigProvider,
59
- Nr as LandingContainer,
60
- Or as LoadingContainer,
61
- Tr as PopupContainer,
62
- Fr as ProtectWrapper,
63
- Xo as QuickServiceToggle,
64
- Zo as SSOHandler,
65
- qr as ScreenProtectProvider,
66
- $o as SearchBox,
67
- zr as SearchBoxProvider,
68
- er as SearchDepartmentP01,
69
- or as SearchDepartmentP02,
70
- rr as SearchOrganizationP01,
71
- tr as SearchOrganizationP02,
72
- Hr as ServiceCodeProvider,
9
+ jr as AppWrapper,
10
+ na as AuthProvider,
11
+ Xo as ButtonAccessController,
12
+ Mr as BwgButton,
13
+ Zo as BwgButtonGroup,
14
+ yr as BwgCheck,
15
+ Er as BwgCheckList,
16
+ $o as BwgCmptArea,
17
+ er as BwgCol,
18
+ or as BwgConfigProvider,
19
+ Lr as BwgDatePicker,
20
+ rr as BwgDetail,
21
+ kr as BwgDownload,
22
+ ar as BwgDrawer,
23
+ tr as BwgEditor,
24
+ Ir as BwgForm,
25
+ xr as BwgFormItem,
26
+ sr as BwgGrid,
27
+ ir as BwgInfoArea,
28
+ Or as BwgInput,
29
+ Rr as BwgLargeUploader,
30
+ Nr as BwgMaskedInput,
31
+ Tr as BwgMaskedPicker,
32
+ Fr as BwgMultiSelect,
33
+ Vr as BwgNumber,
34
+ nr as BwgPagination,
35
+ gr as BwgPopup,
36
+ Kr as BwgPortal01,
37
+ Qr as BwgPortal02,
38
+ Gr as BwgRadio,
39
+ Wr as BwgRangePicker,
40
+ lr as BwgRow,
41
+ _r as BwgSearch,
42
+ Hr as BwgSelect,
43
+ dr as BwgSpace,
44
+ Jr as BwgSwitch,
45
+ ur as BwgTable,
46
+ pr as BwgTabs,
47
+ qr as BwgTextArea,
48
+ cr as BwgTitleBox,
49
+ zr as BwgUploader,
50
+ Cr as BwgView,
51
+ a as COMMON_DATE_FORMAT,
52
+ ga as CommonCodeProvider,
53
+ Xr as ConfigurableContent,
54
+ Zr as ConfigurableHeader,
55
+ $r as ConfigurableMenuTab,
56
+ ea as ConfigurableSidebar,
57
+ Sr as ContentBox,
58
+ oa as ContentContainer,
59
+ wr as ContentLayOut,
60
+ Br as GlobalConfigProvider,
61
+ ra as LandingContainer,
62
+ aa as LoadingContainer,
63
+ ta as PopupContainer,
64
+ sa as ProtectWrapper,
65
+ mr as QuickServiceToggle,
66
+ vr as SSOHandler,
67
+ la as ScreenProtectProvider,
68
+ fr as SearchBox,
69
+ da as SearchBoxProvider,
70
+ hr as SearchDepartmentP01,
71
+ Pr as SearchDepartmentP02,
72
+ Dr as SearchOrganizationP01,
73
+ Ar as SearchOrganizationP02,
74
+ ua as ServiceCodeProvider,
73
75
  t as THEME_COOKIE_NAME,
74
- i as apiDelete,
75
- s as apiGet,
76
- a as apiPatch,
77
- n as apiPost,
78
- g as apiPut,
79
- l as apiUtils,
80
- u as arrAverage,
81
- d as arrCount,
82
- c as arrMax,
83
- p as arrMin,
84
- S as arrReverse,
85
- w as arrSum,
86
- C as arrUnique,
87
- B as bwgUtils,
88
- m as callService,
89
- v as callService_SYSCD,
90
- f as clamp,
91
- h as clearSessionStorage,
92
- P as closeAllMessages,
93
- U as closeMessage,
94
- D as closeNotification,
95
- E as commonUtils,
96
- b as configureEnvUtils,
97
- y as copyToClipboard,
98
- ir as createBwgGridRenderer,
99
- A as debounce,
100
- L as deleteCookie,
101
- M as destroyNotifications,
102
- I as downloadByFileKey,
103
- k as downloadFile,
104
- x as duplicates,
105
- R as encryptSha256,
106
- N as envUtils,
107
- O as fileUtils,
108
- T as generateRandomColor,
109
- F as generateRandomString,
110
- G as generateUID,
111
- V as getAllServiceCodes,
112
- W as getClientIp,
113
- q as getCookie,
114
- z as getCrprCd,
115
- H as getCurrentDate,
116
- _ as getCurrentDateString,
117
- j as getDepartmentInfo,
118
- K as getDeviceType,
119
- Q as getDisplayName,
120
- Y as getDprtCd,
121
- J as getDprtNm,
122
- X as getEmplNo,
123
- Z as getEnvCode,
124
- $ as getPermissionService,
125
- ee as getRoleList,
126
- oe as getServiceCode,
127
- re as getSessionStorage,
128
- te as getUserDvsn,
129
- ie as getUserId,
130
- se as getUserInfo,
131
- ae as getUserNm,
132
- ne as hasAllRoles,
133
- ge as hasAnyRole,
134
- le as hasRole,
135
- ue as hasUserInfo,
136
- de as isArray,
137
- ce as isBoolean,
138
- pe as isDesktop,
139
- Se as isDev,
140
- we as isEmpty,
141
- Ce as isEmptyArray,
142
- Be as isFunction,
143
- me as isLocal,
144
- ve as isLoggedIn,
145
- fe as isMobile,
146
- he as isNull,
147
- Pe as isNullOrUndefined,
148
- Ue as isNumber,
149
- De as isObject,
150
- Ee as isProd,
151
- be as isSafeEmpty,
152
- ye as isString,
153
- Ae as isTablet,
154
- Le as isUndefined,
155
- Me as isValidEmail,
156
- Ie as isValidUrl,
157
- ke as logServiceCodeConfig,
158
- xe as messageUtils,
159
- Re as notiBwgError,
160
- Ne as notiError,
161
- Oe as notiInfo,
162
- Te as notiSuccess,
163
- Fe as notiWarning,
164
- Ge as notificationService,
165
- Ve as notificationUtils,
166
- We as padLeft,
167
- qe as padRight,
168
- ze as random,
169
- He as realFormat,
170
- _e as removeSessionStorage,
171
- je as round,
172
- Ke as serviceUtils,
173
- Qe as setClientIp,
174
- Ye as setCookie,
175
- Je as setServiceCodeOverrides,
176
- Xe as setSessionStorage,
177
- Ze as showApiError,
178
- $e as showDuplicateError,
179
- eo as showError,
180
- oo as showInfo,
181
- ro as showLoading,
182
- to as showRequiredError,
183
- io as showSaveError,
184
- so as showSaveSuccess,
185
- ao as showSuccess,
186
- no as showWarning,
187
- go as throttle,
188
- lo as toCamelCase,
189
- _r as useAllServiceCodes,
190
- jr as useAuth,
191
- So as useCode,
192
- Kr as useCodeColor,
193
- Qr as useCodeList,
194
- Yr as useCodeListByOption,
195
- Jr as useCodeName,
196
- wo as useCodeStore,
197
- Co as useColorStore,
198
- Xr as useCommonCode,
199
- Bo as useFavorite,
200
- mo as useFavoriteStore,
201
- Zr as useGridLookup,
202
- vo as useLoadingStore,
203
- $r as useLock,
204
- et as useLogServiceCodeConfig,
205
- fo as useMenuModel,
206
- ho as useMenuModelStore,
207
- Po as useMenuView,
208
- Uo as useMenuViewStore,
209
- Do as useOptionStore,
210
- ot as usePopup,
211
- Eo as usePopupLoadingStore,
212
- bo as usePopupState,
213
- yo as usePopupStore,
214
- rt as useSearchBox,
215
- tt as useServiceCode,
216
- it as useServiceCodeValue,
217
- Ao as useUser,
218
- Lo as useUserStore,
219
- uo as userUtils,
220
- co as verifyClientIp
76
+ s as addDays,
77
+ i as addMonths,
78
+ n as apiDelete,
79
+ g as apiGet,
80
+ l as apiPatch,
81
+ d as apiPost,
82
+ u as apiPut,
83
+ p as apiUtils,
84
+ c as arrAverage,
85
+ C as arrCount,
86
+ S as arrMax,
87
+ w as arrMin,
88
+ B as arrReverse,
89
+ m as arrSum,
90
+ v as arrUnique,
91
+ f as bwgUtils,
92
+ h as callService,
93
+ P as callService_SYSCD,
94
+ D as clamp,
95
+ A as clearSessionStorage,
96
+ U as closeAllMessages,
97
+ b as closeMessage,
98
+ M as closeNotification,
99
+ y as commonUtils,
100
+ E as configureEnvUtils,
101
+ L as copyToClipboard,
102
+ Ur as createBwgGridRenderer,
103
+ k as datetimeFormat,
104
+ I as debounce,
105
+ x as deleteCookie,
106
+ O as destroyNotifications,
107
+ R as diffDays,
108
+ N as downloadByFileKey,
109
+ T as downloadFile,
110
+ F as duplicates,
111
+ V as encryptSha256,
112
+ G as envUtils,
113
+ W as fileUtils,
114
+ _ as generateRandomColor,
115
+ H as generateRandomString,
116
+ J as generateUID,
117
+ q as getAge,
118
+ z as getAllServiceCodes,
119
+ Y as getClientIp,
120
+ j as getCookie,
121
+ K as getCrprCd,
122
+ Q as getCurrentDate,
123
+ X as getCurrentDateString,
124
+ Z as getDepartmentInfo,
125
+ $ as getDeviceType,
126
+ ee as getDisplayName,
127
+ oe as getDprtCd,
128
+ re as getDprtNm,
129
+ ae as getEmplNo,
130
+ te as getEnvCode,
131
+ se as getHrInfo,
132
+ ie as getJbdtCd,
133
+ ne as getJbgdCd,
134
+ ge as getJbkdCd,
135
+ le as getJbpsCd,
136
+ de as getLastDateByDiv,
137
+ ue as getPermissionService,
138
+ pe as getRoleList,
139
+ ce as getServiceCode,
140
+ Ce as getSessionStorage,
141
+ Se as getStartDateByDiv,
142
+ we as getUserDvsn,
143
+ Be as getUserId,
144
+ me as getUserInfo,
145
+ ve as getUserNm,
146
+ fe as getWkplCd,
147
+ he as hasAllRoles,
148
+ Pe as hasAnyRole,
149
+ De as hasRole,
150
+ Ae as hasUserInfo,
151
+ Ue as isArray,
152
+ be as isBoolean,
153
+ Me as isDesktop,
154
+ ye as isDev,
155
+ Ee as isEmpty,
156
+ Le as isEmptyArray,
157
+ ke as isFunction,
158
+ Ie as isLocal,
159
+ xe as isLoggedIn,
160
+ Oe as isMobile,
161
+ Re as isNull,
162
+ Ne as isNullOrUndefined,
163
+ Te as isNumber,
164
+ Fe as isObject,
165
+ Ve as isProd,
166
+ Ge as isSafeEmpty,
167
+ We as isString,
168
+ _e as isTablet,
169
+ He as isUndefined,
170
+ Je as isValidDate,
171
+ qe as isValidDateTime,
172
+ ze as isValidEmail,
173
+ Ye as isValidUrl,
174
+ je as isValidYear,
175
+ Ke as isValidYearMonth,
176
+ Qe as logServiceCodeConfig,
177
+ Xe as messageUtils,
178
+ Ze as notiBwgError,
179
+ $e as notiError,
180
+ eo as notiInfo,
181
+ oo as notiSuccess,
182
+ ro as notiWarning,
183
+ ao as notificationService,
184
+ to as notificationUtils,
185
+ so as padLeft,
186
+ io as padRight,
187
+ no as random,
188
+ go as realFormat,
189
+ lo as removeSessionStorage,
190
+ uo as round,
191
+ po as serviceUtils,
192
+ co as setClientIp,
193
+ Co as setCookie,
194
+ So as setServiceCodeOverrides,
195
+ wo as setSessionStorage,
196
+ Bo as showApiError,
197
+ mo as showDuplicateError,
198
+ vo as showError,
199
+ fo as showInfo,
200
+ ho as showLoading,
201
+ Po as showRequiredError,
202
+ Do as showSaveError,
203
+ Ao as showSaveSuccess,
204
+ Uo as showSuccess,
205
+ bo as showWarning,
206
+ Mo as submitGwApproval,
207
+ yo as throttle,
208
+ Eo as toCamelCase,
209
+ Lo as uploadFilesViaSftp,
210
+ pa as useAllServiceCodes,
211
+ ca as useAuth,
212
+ Oo as useCode,
213
+ Ca as useCodeColor,
214
+ Sa as useCodeList,
215
+ wa as useCodeListByOption,
216
+ Ba as useCodeName,
217
+ Ro as useCodeStore,
218
+ No as useColorStore,
219
+ ma as useCommonCode,
220
+ To as useFavorite,
221
+ Fo as useFavoriteStore,
222
+ va as useGridLookup,
223
+ Vo as useLoadingStore,
224
+ fa as useLock,
225
+ ha as useLogServiceCodeConfig,
226
+ Go as useMenuModel,
227
+ Wo as useMenuModelStore,
228
+ _o as useMenuView,
229
+ Ho as useMenuViewStore,
230
+ Jo as useOptionStore,
231
+ Pa as usePopup,
232
+ qo as usePopupLoadingStore,
233
+ zo as usePopupState,
234
+ Yo as usePopupStore,
235
+ Da as useSearchBox,
236
+ Aa as useServiceCode,
237
+ Ua as useServiceCodeValue,
238
+ jo as useUser,
239
+ Ko as useUserStore,
240
+ ko as userUtils,
241
+ Io as verifyClientIp
221
242
  };
@@ -1,4 +1,4 @@
1
- import { PopupConfig } from '../../stores/popupStore';
1
+ import { CorePopupConfig, PopupConfig } from '../../stores/popupStore';
2
2
  /**
3
3
  * 팝업 데이터와 이벤트를 관리하는 훅
4
4
  */
@@ -8,6 +8,7 @@ export declare const usePopup: () => {
8
8
  setActivePopup: (popupId: string) => void;
9
9
  closePopup: (popupId: string) => void;
10
10
  showPopup: (popupCode: string, popParams?: any, config?: PopupConfig) => Promise<void>;
11
+ openCorePopup: (localCode: string, config?: CorePopupConfig) => void;
11
12
  isPopup: boolean;
12
13
  };
13
14
  //# sourceMappingURL=usePopup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePopup.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/usePopup.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;2BAMC,MAAM,cAAc,GAAG,WAAW,WAAW;;CAmBlE,CAAC"}
1
+ {"version":3,"file":"usePopup.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/usePopup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3F;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;2BAYC,MAAM,cAAc,GAAG,WAAW,WAAW;+BAanD,MAAM,WAAW,eAAe;;CAoB/C,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),O=require("../stores/index.cjs"),l=require("react/jsx-runtime"),M=require("antd"),U=require("../utils/index.cjs"),E={AUTH_BTNS:"SCMSIGN00202",AUTH_MENU:"SCMSIGN00201",SRCH_CODE:"SCMSIGN00301",SRCH_POPU:"SCMPOPU00101",AUTH_BMRK:"SCMBMRK00101"},B=n.createContext(null),_=({children:e,serviceCodes:t={}})=>{n.useEffect(()=>{U.setServiceCodeOverrides(t)},[t]);const s={serviceCodes:t,getServiceCode:r=>{if(t[r]&&t[r].trim()!=="")return console.log(`🔧 Provider 설정 사용: ${r} = ${t[r]}`),t[r];const c=E[r];return console.log(`🔧 기본값 사용: ${r} = ${c}`),c}};return l.jsx(B.Provider,{value:s,children:e})},y=()=>{const e=n.useContext(B);if(!e)throw new Error("useServiceCode must be used within a ServiceCodeProvider");return e},G=e=>{const{getServiceCode:t}=y();return t(e)},V=()=>{const{getServiceCode:e}=y(),t={};for(const o of Object.keys(E))t[o]=e(o);return t},$=()=>{const{getServiceCode:e}=y();console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");for(const t of Object.keys(E)){const o=e(t);console.log(` ${t}: ${o}`)}},A=n.createContext(null),q=({children:e})=>{const t=n.useRef(null),C={searchBoxRef:t,getFormData:()=>t.current?.getFormData()||{},setFormData:a=>{t.current?.setFormData(a)},resetForm:()=>{t.current?.resetForm()},validateForm:async()=>await t.current?.validateForm()||{success:!1,error:null}};return l.jsx(A.Provider,{value:C,children:e})},H=()=>{const e=n.useContext(A);if(!e)throw new Error("useSearchBox must be used within a SearchBoxProvider");return e},I=n.createContext(null),W=()=>{const e=n.useContext(I);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},z=({children:e})=>{const[t,o]=n.useState(!1),[s,r]=n.useState(!1),c=async i=>{const u=(await i.text()).trim().toLowerCase();try{const d=JSON.parse(u);if(typeof d=="object"&&d&&(d.ok===!0||d.success===!0))return!0}catch{}return!!["true","ok","1","y"].includes(u)},C=async i=>{r(!0);try{const u=await fetch("/serviceEndpoint/sso_check.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"token="+encodeURIComponent(i)}),d=u.ok&&await c(u);return o(d),d}catch{return!1}finally{r(!1)}},a=async i=>{r(!0);try{const u=await fetch("/serviceEndpoint/sso_reauth.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"pin="+encodeURIComponent(i)});return u.ok&&await c(u)?(o(!0),!0):!1}catch{return!1}finally{r(!1)}},m=()=>{o(!1)},h=n.useMemo(()=>({authed:t,busy:s,verifyWithToken:C,reauthWithPin:a,logout:m}),[t,s]);return l.jsx(I.Provider,{value:h,children:e})},F=n.createContext(void 0),J=({children:e})=>{const{codeData:t,isLoading:o,error:s,lastUpdated:r,getCodeList:c,getCodeListByOption:C,getCodeName:a,getCodeColor:m,getCodeByOption:h,getAvailableGroupCodes:i,getGridLookup:u,fetchCommonCodes:d}=O.useCodeStore(),k={codeData:t,isLoading:o,error:s,lastUpdated:r,getCodeList:c,getCodeListByOption:C,getCodeName:a,getCodeColor:m,getCodeByOption:h,getAvailableGroupCodes:i,getGridLookup:u,refreshCodes:d};return l.jsx(F.Provider,{value:k,children:e})},f=()=>{const e=n.useContext(F);if(e===void 0)throw new Error("useCommonCode must be used within a CommonCodeProvider");return e},Q=()=>{const{getCodeList:e,isLoading:t,error:o}=f();return{getCodeList:e,isLoading:t,error:o}},X=()=>{const{getCodeName:e,isLoading:t,error:o}=f();return{getCodeName:e,isLoading:t,error:o}},Y=()=>{const{getCodeColor:e,isLoading:t,error:o}=f();return{getCodeColor:e,isLoading:t,error:o}},Z=()=>{const{getCodeListByOption:e,isLoading:t,error:o}=f();return{getCodeListByOption:e,isLoading:t,error:o}},K=()=>{const{getGridLookup:e,isLoading:t,error:o}=f();return{getGridLookup:e,isLoading:t,error:o}},N=n.createContext(null),ee=()=>{const e=n.useContext(N);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},te=({children:e,idleMs:t=1e4,onUnlock:o,persistLocked:s=!0,storageKey:r="inactivityLocked",eventTarget:c,overlayScope:C="global",overlayId:a="lock-overlay-root",overlayPosition:m="fixed"})=>{const h=s&&typeof window<"u"&&window.localStorage.getItem(r)==="1",[i,u]=n.useState(h),[d,k]=n.useState(t),P=Number.isFinite(d)&&d>0,w=n.useRef(null),T=()=>{try{s&&window.localStorage.setItem(r,"1")}catch{}u(!0)},b=async v=>{if(!(o&&!await o(v))){try{s&&window.localStorage.removeItem(r)}catch{}u(!1),P&&L()}},R=()=>{try{s&&window.localStorage.setItem(r,"1")}catch{}u(!0)},L=()=>{P&&(w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{R()},d))};n.useEffect(()=>{if(!P)return;const v=()=>{i||L()},x={passive:!0},S=["pointermove","pointerdown","keydown","wheel","touchstart"],g=c??window;return S.forEach(p=>g.addEventListener(p,v,x)),L(),()=>{w.current&&window.clearTimeout(w.current),S.forEach(p=>g.removeEventListener(p,v))}},[d,i,c,P]),n.useEffect(()=>{if(!i)return;const v=p=>{const j=document.getElementById(a);j&&j.contains(p.target)||(p.stopPropagation(),p.preventDefault())},x={capture:!0},S=["pointerdown","pointerup","pointermove","click","wheel","keydown","keyup","touchstart","touchmove"],g=C==="scoped"?c??window:window;return S.forEach(p=>g.addEventListener(p,v,x)),()=>S.forEach(p=>g.removeEventListener(p,v,x))},[i,C,a,c]);const D=n.useMemo(()=>({locked:i,lock:T,unlock:b,setIdleMs:k}),[i]);return l.jsxs(N.Provider,{value:D,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...i?{inert:""}:{},...i?{"aria-hidden":!0}:{},children:e}),i&&l.jsx(oe,{onUnlock:b,overlayId:a,overlayPosition:m})]})},oe=({onUnlock:e,overlayId:t="lock-overlay-root",overlayPosition:o="fixed"})=>{const[s]=n.useState(4),[r,c]=n.useState("");return l.jsx("div",{id:t,"aria-modal":"true",role:"dialog","aria-label":"Locked screen",style:{position:o,inset:0,background:"rgba(12, 14, 18, 0.85)",backdropFilter:"blur(4px)",display:"grid",placeItems:"center",zIndex:9999},children:l.jsxs("div",{className:"lockscreen-form",style:{width:420,maxWidth:"92vw"},children:[l.jsx("div",{className:"lock-icon-wrap",children:l.jsx("span",{className:"lock-icon-box"})}),l.jsx("h2",{children:"잠금됨"}),l.jsx("p",{children:"PIN 번호를 입력하세요"}),l.jsx("div",{className:"lock-ipt-wrap",style:{display:"flex",justifyContent:"center"},children:l.jsx(M.Input.OTP,{mask:"*",autoFocus:!0,length:s,value:r,onChange:C=>{const a=(C??"").replace(/\D/g,"").slice(0,s);c(a),a.length===s&&e(a)}})})]})})},re=()=>{const{popups:e,activePopupId:t,setActivePopup:o,closePopup:s,openPopup:r}=O.usePopupStore(),c=n.useCallback(async(C,a,m)=>{try{await r(C,a,m)}catch(h){throw console.error("팝업 열기 실패:",h),h}},[r]);return{popups:e,activePopupId:t,setActivePopup:o,closePopup:s,showPopup:c,isPopup:e.length>0}};exports.AuthProvider=z;exports.CommonCodeProvider=J;exports.ScreenProtectProvider=te;exports.SearchBoxProvider=q;exports.ServiceCodeProvider=_;exports.useAllServiceCodes=V;exports.useAuth=W;exports.useCodeColor=Y;exports.useCodeList=Q;exports.useCodeListByOption=Z;exports.useCodeName=X;exports.useCommonCode=f;exports.useGridLookup=K;exports.useLock=ee;exports.useLogServiceCodeConfig=$;exports.usePopup=re;exports.useSearchBox=H;exports.useServiceCode=y;exports.useServiceCodeValue=G;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),O=require("../stores/index.cjs"),l=require("react/jsx-runtime"),M=require("antd"),U=require("../utils/index.cjs"),b={AUTH_BTNS:"SCMSIGN00202",AUTH_MENU:"SCMSIGN00201",SRCH_CODE:"SCMSIGN00301",SRCH_POPU:"SCMPOPU00101",AUTH_BMRK:"SCMBMRK00101"},B=n.createContext(null),_=({children:e,serviceCodes:t={}})=>{n.useEffect(()=>{U.setServiceCodeOverrides(t)},[t]);const i={serviceCodes:t,getServiceCode:r=>{if(t[r]&&t[r].trim()!=="")return console.log(`🔧 Provider 설정 사용: ${r} = ${t[r]}`),t[r];const u=b[r];return console.log(`🔧 기본값 사용: ${r} = ${u}`),u}};return l.jsx(B.Provider,{value:i,children:e})},y=()=>{const e=n.useContext(B);if(!e)throw new Error("useServiceCode must be used within a ServiceCodeProvider");return e},G=e=>{const{getServiceCode:t}=y();return t(e)},V=()=>{const{getServiceCode:e}=y(),t={};for(const o of Object.keys(b))t[o]=e(o);return t},$=()=>{const{getServiceCode:e}=y();console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");for(const t of Object.keys(b)){const o=e(t);console.log(` ${t}: ${o}`)}},A=n.createContext(null),q=({children:e})=>{const t=n.useRef(null),C={searchBoxRef:t,getFormData:()=>t.current?.getFormData()||{},setFormData:a=>{t.current?.setFormData(a)},resetForm:()=>{t.current?.resetForm()},validateForm:async()=>await t.current?.validateForm()||{success:!1,error:null}};return l.jsx(A.Provider,{value:C,children:e})},H=()=>{const e=n.useContext(A);if(!e)throw new Error("useSearchBox must be used within a SearchBoxProvider");return e},W=()=>{const{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,openPopup:r,openCorePopup:u}=O.usePopupStore(),C=n.useCallback(async(h,m,s)=>{try{await r(h,m,s)}catch(c){throw console.error("팝업 열기 실패:",c),c}},[r]),a=n.useCallback((h,m)=>{try{u(h,m)}catch(s){throw console.error("로컬 팝업 열기 실패:",s),s}},[u]);return{popups:e,activePopupId:t,setActivePopup:o,closePopup:i,showPopup:C,openCorePopup:a,isPopup:e.length>0}},I=n.createContext(null),z=()=>{const e=n.useContext(I);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},J=({children:e})=>{const[t,o]=n.useState(!1),[i,r]=n.useState(!1),u=async s=>{const c=(await s.text()).trim().toLowerCase();try{const d=JSON.parse(c);if(typeof d=="object"&&d&&(d.ok===!0||d.success===!0))return!0}catch{}return!!["true","ok","1","y"].includes(c)},C=async s=>{r(!0);try{const c=await fetch("/serviceEndpoint/sso_check.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"token="+encodeURIComponent(s)}),d=c.ok&&await u(c);return o(d),d}catch{return!1}finally{r(!1)}},a=async s=>{r(!0);try{const c=await fetch("/serviceEndpoint/sso_reauth.jsp",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"pin="+encodeURIComponent(s)});return c.ok&&await u(c)?(o(!0),!0):!1}catch{return!1}finally{r(!1)}},h=()=>{o(!1)},m=n.useMemo(()=>({authed:t,busy:i,verifyWithToken:C,reauthWithPin:a,logout:h}),[t,i]);return l.jsx(I.Provider,{value:m,children:e})},F=n.createContext(void 0),Q=({children:e})=>{const{codeData:t,isLoading:o,error:i,lastUpdated:r,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:s,getGridLookup:c,fetchCommonCodes:d}=O.useCodeStore(),k={codeData:t,isLoading:o,error:i,lastUpdated:r,getCodeList:u,getCodeListByOption:C,getCodeName:a,getCodeColor:h,getCodeByOption:m,getAvailableGroupCodes:s,getGridLookup:c,refreshCodes:d};return l.jsx(F.Provider,{value:k,children:e})},f=()=>{const e=n.useContext(F);if(e===void 0)throw new Error("useCommonCode must be used within a CommonCodeProvider");return e},X=()=>{const{getCodeList:e,isLoading:t,error:o}=f();return{getCodeList:e,isLoading:t,error:o}},Y=()=>{const{getCodeName:e,isLoading:t,error:o}=f();return{getCodeName:e,isLoading:t,error:o}},Z=()=>{const{getCodeColor:e,isLoading:t,error:o}=f();return{getCodeColor:e,isLoading:t,error:o}},K=()=>{const{getCodeListByOption:e,isLoading:t,error:o}=f();return{getCodeListByOption:e,isLoading:t,error:o}},ee=()=>{const{getGridLookup:e,isLoading:t,error:o}=f();return{getGridLookup:e,isLoading:t,error:o}},N=n.createContext(null),te=()=>{const e=n.useContext(N);if(!e)throw new Error("useLock must be used within ScreenProtectProvider");return e},oe=({children:e,idleMs:t=1e4,onUnlock:o,persistLocked:i=!0,storageKey:r="inactivityLocked",eventTarget:u,overlayScope:C="global",overlayId:a="lock-overlay-root",overlayPosition:h="fixed"})=>{const m=i&&typeof window<"u"&&window.localStorage.getItem(r)==="1",[s,c]=n.useState(m),[d,k]=n.useState(t),P=Number.isFinite(d)&&d>0,w=n.useRef(null),T=()=>{try{i&&window.localStorage.setItem(r,"1")}catch{}c(!0)},E=async v=>{if(!(o&&!await o(v))){try{i&&window.localStorage.removeItem(r)}catch{}c(!1),P&&L()}},R=()=>{try{i&&window.localStorage.setItem(r,"1")}catch{}c(!0)},L=()=>{P&&(w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{R()},d))};n.useEffect(()=>{if(!P)return;const v=()=>{s||L()},x={passive:!0},S=["pointermove","pointerdown","keydown","wheel","touchstart"],g=u??window;return S.forEach(p=>g.addEventListener(p,v,x)),L(),()=>{w.current&&window.clearTimeout(w.current),S.forEach(p=>g.removeEventListener(p,v))}},[d,s,u,P]),n.useEffect(()=>{if(!s)return;const v=p=>{const j=document.getElementById(a);j&&j.contains(p.target)||(p.stopPropagation(),p.preventDefault())},x={capture:!0},S=["pointerdown","pointerup","pointermove","click","wheel","keydown","keyup","touchstart","touchmove"],g=C==="scoped"?u??window:window;return S.forEach(p=>g.addEventListener(p,v,x)),()=>S.forEach(p=>g.removeEventListener(p,v,x))},[s,C,a,u]);const D=n.useMemo(()=>({locked:s,lock:T,unlock:E,setIdleMs:k}),[s]);return l.jsxs(N.Provider,{value:D,children:[l.jsx("div",{style:{width:"100%",height:"100%"},...s?{inert:""}:{},...s?{"aria-hidden":!0}:{},children:e}),s&&l.jsx(re,{onUnlock:E,overlayId:a,overlayPosition:h})]})},re=({onUnlock:e,overlayId:t="lock-overlay-root",overlayPosition:o="fixed"})=>{const[i]=n.useState(4),[r,u]=n.useState("");return l.jsx("div",{id:t,"aria-modal":"true",role:"dialog","aria-label":"Locked screen",style:{position:o,inset:0,background:"rgba(12, 14, 18, 0.85)",backdropFilter:"blur(4px)",display:"grid",placeItems:"center",zIndex:9999},children:l.jsxs("div",{className:"lockscreen-form",style:{width:420,maxWidth:"92vw"},children:[l.jsx("div",{className:"lock-icon-wrap",children:l.jsx("span",{className:"lock-icon-box"})}),l.jsx("h2",{children:"잠금됨"}),l.jsx("p",{children:"PIN 번호를 입력하세요"}),l.jsx("div",{className:"lock-ipt-wrap",style:{display:"flex",justifyContent:"center"},children:l.jsx(M.Input.OTP,{mask:"*",autoFocus:!0,length:i,value:r,onChange:C=>{const a=(C??"").replace(/\D/g,"").slice(0,i);u(a),a.length===i&&e(a)}})})]})})};exports.AuthProvider=J;exports.CommonCodeProvider=Q;exports.ScreenProtectProvider=oe;exports.SearchBoxProvider=q;exports.ServiceCodeProvider=_;exports.useAllServiceCodes=V;exports.useAuth=z;exports.useCodeColor=Z;exports.useCodeList=X;exports.useCodeListByOption=K;exports.useCodeName=Y;exports.useCommonCode=f;exports.useGridLookup=ee;exports.useLock=te;exports.useLogServiceCodeConfig=$;exports.usePopup=W;exports.useSearchBox=H;exports.useServiceCode=y;exports.useServiceCodeValue=G;