@bwg-ui/core 1.3.7 → 1.3.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 (183) hide show
  1. package/dist/chunks/CMPrgrMstrP02-CIPnCdt3.cjs +1 -0
  2. package/dist/chunks/CMPrgrMstrP02-jC3zDeFU.js +154 -0
  3. package/dist/chunks/CMSearchIntfGwP01-D4qj6J2N.cjs +1 -0
  4. package/dist/chunks/{CMSearchIntfGwP01-DCHZJn2H.js → CMSearchIntfGwP01-DzTHXQi3.js} +31 -31
  5. package/dist/chunks/MenuReport-BtP1uAmq.cjs +1 -0
  6. package/dist/chunks/{MenuReport-IBdoU2S3.js → MenuReport-DgMjx5Hs.js} +5 -5
  7. package/dist/chunks/SearchAddressP01-B25Exa9E.cjs +1 -0
  8. package/dist/chunks/SearchAddressP01-B_D3nrkn.js +605 -0
  9. package/dist/chunks/SearchDepartmentP01-D5ihO3l8.cjs +1 -0
  10. package/dist/chunks/SearchDepartmentP01-pUAav3Xp.js +352 -0
  11. package/dist/chunks/SearchDepartmentP02-B3oL1B-h.js +518 -0
  12. package/dist/chunks/SearchDepartmentP02-CWs8sLuu.cjs +1 -0
  13. package/dist/chunks/SearchHolidayP01-SuuyAk9T.js +188 -0
  14. package/dist/chunks/SearchHolidayP01-cJ8Wlkwr.cjs +1 -0
  15. package/dist/chunks/SearchOrganizationP01-3nDwrB08.cjs +1 -0
  16. package/dist/chunks/SearchOrganizationP01-ChwLBfVt.js +420 -0
  17. package/dist/chunks/SearchOrganizationP02-0Suj4DLH.cjs +1 -0
  18. package/dist/chunks/SearchOrganizationP02-DI0V4Bdz.js +516 -0
  19. package/dist/chunks/UploadMultiFileP01-CffgcIXm.cjs +1 -0
  20. package/dist/chunks/UploadMultiFileP01-Cy2LeYfy.js +38 -0
  21. package/dist/chunks/{layout-components-DnuV2Psp.js → layout-components-Cpzy8mH1.js} +1053 -951
  22. package/dist/chunks/layout-components-y9YpQQbx.cjs +38 -0
  23. package/dist/chunks/provider-DrmM0H4o.cjs +1 -0
  24. package/dist/chunks/provider-ff4RVDYo.js +711 -0
  25. package/dist/components/common/ButtonAccessController.d.ts +2 -3
  26. package/dist/components/common/ButtonAccessController.d.ts.map +1 -1
  27. package/dist/components/common/BwgButtonGroup.d.ts +1 -1
  28. package/dist/components/common/BwgButtonGroup.d.ts.map +1 -1
  29. package/dist/components/common/BwgCol.d.ts +1 -1
  30. package/dist/components/common/BwgCol.d.ts.map +1 -1
  31. package/dist/components/common/BwgGrid.d.ts.map +1 -1
  32. package/dist/components/common/BwgModal.d.ts +10 -0
  33. package/dist/components/common/BwgModal.d.ts.map +1 -0
  34. package/dist/components/common/BwgView.d.ts.map +1 -1
  35. package/dist/components/common/index.cjs +1 -1
  36. package/dist/components/common/index.d.ts +2 -1
  37. package/dist/components/common/index.d.ts.map +1 -1
  38. package/dist/components/common/index.js +4887 -28
  39. package/dist/components/core/BwgCmnFileItems.d.ts +47 -0
  40. package/dist/components/core/BwgCmnFileItems.d.ts.map +1 -0
  41. package/dist/components/core/BwgDeptSearch.d.ts +38 -0
  42. package/dist/components/core/BwgDeptSearch.d.ts.map +1 -0
  43. package/dist/components/core/BwgDraggerUploader.d.ts +13 -0
  44. package/dist/components/core/BwgDraggerUploader.d.ts.map +1 -0
  45. package/dist/components/core/BwgEmpSearch.d.ts +12 -4
  46. package/dist/components/core/BwgEmpSearch.d.ts.map +1 -1
  47. package/dist/components/core/BwgUploader.d.ts +6 -92
  48. package/dist/components/core/BwgUploader.d.ts.map +1 -1
  49. package/dist/components/core/BwgUploader_bak.d.ts +98 -0
  50. package/dist/components/core/BwgUploader_bak.d.ts.map +1 -0
  51. package/dist/components/core/BwgXlsxUploader.d.ts +25 -0
  52. package/dist/components/core/BwgXlsxUploader.d.ts.map +1 -0
  53. package/dist/components/core/index.cjs +1 -1
  54. package/dist/components/core/index.d.ts +11 -2
  55. package/dist/components/core/index.d.ts.map +1 -1
  56. package/dist/components/core/index.js +1318 -1164
  57. package/dist/components/guide/index.cjs +1 -1
  58. package/dist/components/guide/index.js +17 -17
  59. package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
  60. package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
  61. package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
  62. package/dist/components/layout/index.cjs +1 -1
  63. package/dist/components/layout/index.js +1 -1
  64. package/dist/components/pages/auth/AuthManagement.d.ts +8 -0
  65. package/dist/components/pages/auth/AuthManagement.d.ts.map +1 -0
  66. package/dist/components/pages/auth/AuthSelector.d.ts +28 -0
  67. package/dist/components/pages/auth/AuthSelector.d.ts.map +1 -0
  68. package/dist/components/pages/auth/RoleAuthMapper.d.ts +8 -0
  69. package/dist/components/pages/auth/RoleAuthMapper.d.ts.map +1 -0
  70. package/dist/components/pages/auth/RoleDashBoard.d.ts +13 -0
  71. package/dist/components/pages/auth/RoleDashBoard.d.ts.map +1 -0
  72. package/dist/components/pages/auth/RoleView.d.ts +17 -0
  73. package/dist/components/pages/auth/RoleView.d.ts.map +1 -0
  74. package/dist/components/pages/board/AdminBoard.d.ts +6 -0
  75. package/dist/components/pages/board/AdminBoard.d.ts.map +1 -0
  76. package/dist/components/pages/board/BoardComment.d.ts +8 -0
  77. package/dist/components/pages/board/BoardComment.d.ts.map +1 -0
  78. package/dist/components/pages/board/MyBoard.d.ts +6 -0
  79. package/dist/components/pages/board/MyBoard.d.ts.map +1 -0
  80. package/dist/components/pages/index.d.ts +10 -10
  81. package/dist/components/pages/index.d.ts.map +1 -1
  82. package/dist/components/pages/rsrc/MenuManagement.d.ts +4 -0
  83. package/dist/components/pages/rsrc/MenuManagement.d.ts.map +1 -0
  84. package/dist/components/pages/rsrc/{CMMenuPrntSelectModal.d.ts → MenuSelector.d.ts} +5 -4
  85. package/dist/components/pages/rsrc/MenuSelector.d.ts.map +1 -0
  86. package/dist/components/pages/rsrc/ProgramManagement.d.ts +4 -0
  87. package/dist/components/pages/rsrc/ProgramManagement.d.ts.map +1 -0
  88. package/dist/components/pages/rsrc/{CMMenuPrgrSelectModal.d.ts → ProgramSelector.d.ts} +5 -4
  89. package/dist/components/pages/rsrc/ProgramSelector.d.ts.map +1 -0
  90. package/dist/components/pages/syst/CommonCodeManagement.d.ts +4 -0
  91. package/dist/components/pages/syst/CommonCodeManagement.d.ts.map +1 -0
  92. package/dist/components/pages/syst/CommonCodeTester.d.ts +7 -0
  93. package/dist/components/pages/syst/CommonCodeTester.d.ts.map +1 -0
  94. package/dist/components/pages/types.d.ts +5 -1
  95. package/dist/components/pages/types.d.ts.map +1 -1
  96. package/dist/components/popup/SearchDepartmentP01.d.ts +1 -1
  97. package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
  98. package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
  99. package/dist/components/popup/UploadMultiFileP01.d.ts +14 -0
  100. package/dist/components/popup/UploadMultiFileP01.d.ts.map +1 -0
  101. package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -1
  102. package/dist/components/popup/index.cjs +1 -1
  103. package/dist/components/popup/index.d.ts +1 -0
  104. package/dist/components/popup/index.d.ts.map +1 -1
  105. package/dist/components/popup/index.js +16 -8
  106. package/dist/index.cjs +186 -1
  107. package/dist/index.js +32378 -290
  108. package/dist/provider/contexts/BwgViewContext.d.ts +8 -1
  109. package/dist/provider/contexts/BwgViewContext.d.ts.map +1 -1
  110. package/dist/provider/contexts/CommonCodeContext.d.ts +15 -28
  111. package/dist/provider/contexts/CommonCodeContext.d.ts.map +1 -1
  112. package/dist/provider/contexts/MenuButtonContentx.d.ts +1 -0
  113. package/dist/provider/contexts/MenuButtonContentx.d.ts.map +1 -0
  114. package/dist/provider/contexts/MenuButtonContext.d.ts +42 -0
  115. package/dist/provider/contexts/MenuButtonContext.d.ts.map +1 -0
  116. package/dist/provider/hooks/index.d.ts +1 -0
  117. package/dist/provider/hooks/index.d.ts.map +1 -1
  118. package/dist/provider/hooks/useFileUploader.d.ts +74 -0
  119. package/dist/provider/hooks/useFileUploader.d.ts.map +1 -0
  120. package/dist/provider/hooks/useSizeConfig.d.ts +2 -2
  121. package/dist/provider/index.cjs +1 -1
  122. package/dist/provider/index.d.ts +1 -0
  123. package/dist/provider/index.d.ts.map +1 -1
  124. package/dist/provider/index.js +8 -7
  125. package/dist/stores/codeStore.d.ts +65 -128
  126. package/dist/stores/codeStore.d.ts.map +1 -1
  127. package/dist/stores/index.cjs +2 -2
  128. package/dist/stores/index.d.ts +3 -3
  129. package/dist/stores/index.d.ts.map +1 -1
  130. package/dist/stores/index.js +815 -1625
  131. package/dist/stores/menuModelStore.d.ts +22 -7
  132. package/dist/stores/menuModelStore.d.ts.map +1 -1
  133. package/dist/stores/menuViewStore.d.ts +3 -3
  134. package/dist/stores/menuViewStore.d.ts.map +1 -1
  135. package/dist/stores/systemStore.d.ts +50 -17
  136. package/dist/stores/systemStore.d.ts.map +1 -1
  137. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  138. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  139. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  140. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  141. package/dist/styles/assets/images/menus/ico1-completed.png +0 -0
  142. package/dist/styles/assets/images/menus/ico1-design.png +0 -0
  143. package/dist/styles/assets/images/menus/ico1-dev.png +0 -0
  144. package/dist/styles/assets/images/menus/ico2-completed.png +0 -0
  145. package/dist/styles/assets/images/menus/ico2-design.png +0 -0
  146. package/dist/styles/assets/images/menus/ico2-dev.png +0 -0
  147. package/dist/styles/assets/images/menus/ico3-completed.png +0 -0
  148. package/dist/styles/assets/images/menus/ico3-design.png +0 -0
  149. package/dist/styles/assets/images/menus/ico3-dev.png +0 -0
  150. package/dist/utils/apiUtils.d.ts.map +1 -1
  151. package/dist/utils/colorFormat.d.ts.map +1 -1
  152. package/dist/utils/commonUtils.d.ts +1 -2
  153. package/dist/utils/commonUtils.d.ts.map +1 -1
  154. package/dist/utils/index.cjs +1 -1
  155. package/dist/utils/index.d.ts +9 -3
  156. package/dist/utils/index.d.ts.map +1 -1
  157. package/dist/utils/index.js +1118 -1962
  158. package/dist/utils/serviceConfig.d.ts +9 -3
  159. package/dist/utils/serviceConfig.d.ts.map +1 -1
  160. package/package.json +4 -4
  161. package/dist/chunks/CMSearchIntfGwP01-0t3umcc_.cjs +0 -1
  162. package/dist/chunks/MenuReport-C70mGz2g.cjs +0 -1
  163. package/dist/chunks/common-components-DNgQR-Ge.cjs +0 -1109
  164. package/dist/chunks/common-components-DeYL3J6X.js +0 -52604
  165. package/dist/chunks/layout-components-Bf9IsLUS.cjs +0 -38
  166. package/dist/chunks/provider-Bi5OYngn.cjs +0 -1
  167. package/dist/chunks/provider-Bx4VpaFf.js +0 -465
  168. package/dist/components/pages/board/CMAdminBoardM01.d.ts +0 -6
  169. package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +0 -1
  170. package/dist/components/pages/board/CMBoardS01.d.ts +0 -8
  171. package/dist/components/pages/board/CMBoardS01.d.ts.map +0 -1
  172. package/dist/components/pages/board/CMMyBoardM01.d.ts +0 -6
  173. package/dist/components/pages/board/CMMyBoardM01.d.ts.map +0 -1
  174. package/dist/components/pages/guide/BwgComponentGuideM01.d.ts +0 -3
  175. package/dist/components/pages/guide/BwgComponentGuideM01.d.ts.map +0 -1
  176. package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts +0 -3
  177. package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts.map +0 -1
  178. package/dist/components/pages/guide/BwgReactGuideM01.d.ts +0 -3
  179. package/dist/components/pages/guide/BwgReactGuideM01.d.ts.map +0 -1
  180. package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts.map +0 -1
  181. package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts.map +0 -1
  182. package/dist/components/pages/syst/CMSystCodeM01.d.ts +0 -4
  183. package/dist/components/pages/syst/CMSystCodeM01.d.ts.map +0 -1
@@ -9,7 +9,7 @@ export interface ButtonPermissionResponse {
9
9
  btnSq: number;
10
10
  iconType?: string;
11
11
  iconVal?: string;
12
- enblYn: string;
12
+ enblYn?: string;
13
13
  }
14
14
  export interface BwgButtonGroupProps {
15
15
  grpId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"BwgButtonGroup.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgButtonGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,aAAa,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAM9E,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;AAGD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE;QACT,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KACvD,CAAC;IACF,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvE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B,CA6M3C,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -9,7 +9,7 @@ import { ReactNode } from 'react';
9
9
  interface BwgColProps extends ColProps {
10
10
  className?: string;
11
11
  style?: React.CSSProperties;
12
- children: ReactNode;
12
+ children?: ReactNode;
13
13
  }
14
14
  /**
15
15
  * BwgCol 컴포넌트는 Col 컴포넌트를 래핑하여 클래스 이름을 추가합니다.
@@ -1 +1 @@
1
- {"version":3,"file":"BwgCol.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgCol.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;;;GAKG;AACH,UAAU,WAAY,SAAQ,QAAQ;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,MAAM,GAAI,0CAA0C,WAAW,4CAMpE,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"BwgCol.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgCol.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;;;GAKG;AACH,UAAU,WAAY,SAAQ,QAAQ;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,MAAM,GAAI,0CAA0C,WAAW,4CAWpE,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BwgGrid.d.ts","sourceRoot":"","s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CAAC;AAEF,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,GACb,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ModalProps } from 'antd';
3
+ export interface BwgModalProps extends ModalProps {
4
+ children?: ReactNode;
5
+ title?: string;
6
+ buttons?: ReactNode;
7
+ }
8
+ declare const BwgModal: FC<BwgModalProps>;
9
+ export default BwgModal;
10
+ //# sourceMappingURL=BwgModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BwgModal.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAmBlC,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAsL/B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BwgView.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgView.tsx"],"names":[],"mappings":"AAsCA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAkB,MAAM,QAAQ,CAAC;AAqBlE;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,qGAshBZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"BwgView.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgView.tsx"],"names":[],"mappings":"AA8CA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAkB,MAAM,QAAQ,CAAC;AAqBlE;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,qGAuoBZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/common-components-DNgQR-Ge.cjs"),o=require("../../utils/index.cjs");exports.ButtonAccessController=e.ButtonAccessController;exports.BwgButtonGroup=e.BwgButtonGroup;exports.BwgCmptArea=e.BwgCmptArea;exports.BwgCol=e.BwgCol;exports.BwgConfigProvider=e.BwgConfigProvider;exports.BwgDetail=e.BwgDetail;exports.BwgDrawer=e.BwgDrawer;exports.BwgEditor=e.BwgEditor;exports.BwgGrid=e.BwgGrid;exports.BwgInfoArea=e.BwgInfoArea;exports.BwgPagination=e.BwgPagination;exports.BwgPopup=e.BwgPopup;exports.BwgRow=e.BwgRow;exports.BwgSpace=e.BwgSpace;exports.BwgTable=e.BwgTable;exports.BwgTabs=e.BwgTabs;exports.BwgTitleBox=e.BwgTitleBox;exports.BwgView=e.BwgView;exports.ContentBox=e.ContentBox;exports.ContentLayOut=e.ContentLayOut;exports.GlobalConfigProvider=e.GlobalConfigProvider;exports.QuickServiceToggle=e.QuickServiceToggle;exports.SSOHandler=e.SSOHandler;exports.SearchBox=e.SearchBox;exports.createBwgGridRenderer=o.createBwgGridRenderer;exports.realFormat=o.realFormat;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),W=require("@ant-design/icons"),o=require("antd"),r=require("react"),ee=require("../../chunks/provider-DrmM0H4o.cjs"),ue=require("../core/index.cjs"),Le=require("antd/locale/ko_KR"),te=require("../../stores/index.cjs"),Ye=require("dompurify"),ze=require("quill"),Ze=require("react-quill"),Re=require("quill-image-resize-module-react"),Y=require("../../utils/index.cjs"),X=require("realgrid"),Fe=require("realgrid-react"),He=require("react-rnd"),Xe=require("antd/es/typography/Paragraph"),Je=require("../../chunks/layout-components-y9YpQQbx.cjs"),Pe=require("react-router-dom");function et(l){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const u in l)if(u!=="default"){const i=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(n,u,i.get?i:{enumerable:!0,get:()=>l[u]})}}return n.default=l,Object.freeze(n)}const ye=et(W),tt=({checkAuth:l=!1,buttons:n,gap:u=8})=>{const i=ee.useBwgView(),a=ee.useMenuButton(),g=r.useMemo(()=>!(!l||i?.appCd==="CM"),[l,i?.appCd]),p=r.useMemo(()=>{if(!g||!l||!a?.getButtonPermissions)return new Set;const C=l.grpId.toUpperCase(),j=a.getButtonPermissions(C),S=new Set;return j.forEach(A=>{const d=String(A?.btnId||"").trim();d&&S.add(d)}),S},[g,l,a?.getButtonPermissions]),F=r.useMemo(()=>!n||n.length===0?null:n.filter(C=>C?.visible!==!1).map(C=>{const j=!!C.disabled,S=g?!p.has(C.id):!1,A=j||S,d=e.jsx(ue.BwgButton,{type:C.type,disabled:A,loading:C.loading,className:C.className||"bwg-btn",style:C.style,icon:C.icon,onClick:C.onClick,children:C.label},C.id);if(S){const B=e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(W.ExclamationCircleFilled,{style:{color:"#faad14",fontSize:16}}),e.jsx("span",{style:{fontWeight:600},children:`'${C.label}' 버튼에 대한 사용 권한이 없습니다.`})]}),M=e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingLeft:24},children:e.jsx("span",{style:{fontSize:12},children:"관리자에게 문의하세요."})});return e.jsx(o.Popover,{title:B,content:M,placement:"bottom",styles:{body:{backgroundColor:"#fffbe6"}},children:e.jsx("span",{children:d})},C.id)}return d}),[n,g,p,l]);return e.jsx(o.Flex,{gap:u,children:F})},Me=r.memo(tt),rt=({grpId:l,menuId:n,btnEvent:u,layout:i="horizontal",size:a="middle",style:g,className:p,onButtonClick:F})=>{ee.useBwgView();const C=ee.useMenuButton(),[j,S]=r.useState({}),A=r.useMemo(()=>{if(!C?.getButtonPermissions)return[];const x=l.toUpperCase();return C.getButtonPermissions(x).map(s=>({grpId:s.grpId,btnId:s.btnId,btnNm:s.btnNm,btnSq:s.btnSq,iconType:s.iconType,iconVal:s.iconVal}))},[C,l]),d=C?.isLoadingPermissions??!1,B=C?.permissionsError??null,M=async(x,V)=>{S(s=>({...s,[x]:{loading:!0}}));try{const s=u?.[x];s?await s():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${x}`),F&&F(x,V,l)}catch(s){console.error("버튼 이벤트 실행 실패:",s),o.message.error("작업 중 오류가 발생했습니다.")}finally{S(s=>({...s,[x]:{loading:!1}}))}},I=x=>{const V=j[x.btnId]||{loading:!1};return e.jsxs(o.Button,{size:a,loading:V.loading,onClick:()=>M(x.btnId,x.btnNm),className:"bwg-btn",style:{...x.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[x.iconVal&&e.jsxs(e.Fragment,{children:[x.iconType==="ANTD"&&ye[x.iconVal]&&r.createElement(ye[x.iconVal],{style:{fontSize:"14px"}}),x.iconType!=="ANTD"&&e.jsx("span",{className:x.iconVal,style:{fontSize:"14px"}})]}),x.btnNm]},x.btnId)};return d?e.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${p||""}`,style:g,children:e.jsx(o.Space,{direction:i==="vertical"?"vertical":"horizontal",size:a,children:e.jsx(o.Button,{loading:!0,size:a,children:"권한 조회 중..."})})}):B?e.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${p||""}`,style:g,children:e.jsx(o.Alert,{message:"권한 오류",description:B,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):A.length===0?e.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${p||""}`,style:g,children:e.jsx(o.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):e.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${p||""}`,style:g,children:e.jsx(o.Flex,{gap:3,children:A.map(I)})})},ot=({content:l,layout:n="flex",gap:u=16,minWidth:i=120,maxWidth:a=300,style:g,className:p})=>{if(!(Array.isArray(l)&&l.length>0&&Array.isArray(l[0])))return e.jsx("div",{style:g,className:p,children:l});const C=l.filter(B=>B&&B.length>0),j=r.useMemo(()=>{const B=C[0];if(!B||B.length===0)return{totalCols:0,baseWidth:0};let M=0;const I=[];B.forEach(V=>{const s=V,v=s?.props?.["data-colspan"]?parseInt(String(s.props["data-colspan"])):1;M+=v,I.push(v)});const x=M>0?100/M:0;return{totalCols:M,baseWidth:x,componentWidths:I}},[C]),S=(B,M,I)=>{const x=B,V=x?.props?.["data-colspan"]?parseInt(String(x.props["data-colspan"])):1;switch(n){case"equal":return 100/I;case"auto":return 100/I;case"grid":return 100/j.totalCols*V;case"flex":default:const s=j.baseWidth*V;return Math.max(i,Math.min(a,s))}},A=B=>{if(!B||typeof B!="object")return B;const M=B;if(!M.props)return B;const x={...M.props.style||{},width:"100%"};return r.cloneElement(M,{...M.props,style:x})},d=(B,M)=>{if(!B||B.length===0)return null;const I=B.length;return n==="grid"?e.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${j.totalCols}, 1fr)`,gap:`${u}px`,width:"100%"},children:B.map((x,V)=>{const s=x?.props?.["data-colspan"]?parseInt(String(x.props["data-colspan"])):1,v=A(x);return e.jsx("div",{style:{gridColumn:`span ${s}`,minWidth:`${i}px`},className:"form-component-wrapper",children:v},`row-${M}-col-${V}`)})},`row-${M}`):e.jsx(o.Flex,{gap:u,className:"erp-cmm-form",wrap:n==="auto"?"wrap":"nowrap",style:{width:"100%"},children:B.map((x,V)=>{const s=S(x,V,I),v=A(x),b=n==="flex"?{width:`${s}px`,minWidth:`${i}px`,maxWidth:`${a}px`,flexShrink:0}:{width:`${s}%`,minWidth:`${i}px`};return e.jsx("div",{style:b,className:"form-component-wrapper",children:v},`row-${M}-col-${V}`)})},`row-${M}`)};return e.jsx(o.Flex,{gap:"small",vertical:!0,style:g,className:p,children:C.map((B,M)=>d(B,M+1))})},nt=({children:l,className:n,style:u,...i})=>{const a={minHeight:l?void 0:"1px",...u};return e.jsx(o.Col,{...i,className:`bwg-col ${n||""}`.trim(),style:a,children:l||e.jsx("span",{style:{display:"block"}})})},Ie=({children:l,customTheme:n,customComponentSize:u="middle",layout:i="comfortable",getPopupContainer:a})=>{const p=(()=>{const C={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'"Noto Sans KR", sans-serif',fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:o.theme.defaultAlgorithm};switch(i){case"compact":return{...C,token:{...C.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...C,token:{...C.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...C,token:{...C.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),F={...p,...n,token:{...p.token,...n?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)",buttonSolidCheckedBg:"var(--button-solid)",buttonSolidCheckedHoverBg:"var(--button-solid-hover)",buttonSolidCheckedActiveBg:"var(--button-solid-hover)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},Switch:{colorPrimary:"var(--switch-primary)",colorPrimaryHover:"var(--switch-primary)"},Tabs:{inkBarColor:"var(--primary-color)",itemSelectedColor:"var(--primary-color)",itemHoverColor:"var(--button-solid-hover)",itemActiveColor:"var(--button-solid-hover)",itemColor:"var(--text-primary)",horizontalItemGutter:0,horizontalItemPadding:"11px 24px"},Button:{borderColorDisabled:"var(--border-color)",defaultShadow:"none",dangerShadow:"none",iconGap:4},...n?.components??{}}};return e.jsx(o.ConfigProvider,{locale:Le,theme:F,componentSize:u,space:{size:u},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:a,children:l})},it=({children:l})=>{const{activeDetailItem:n,openTabByMenuId:u}=te.useMenuViewStore();te.useMenuModelStore();const{componentSize:i}=te.useUserStore(),a=r.useCallback(()=>{console.log("handleMenuClick",n);const p=n?.prntInfo?.menuId;p&&u(p,void 0,{skipRefreshModal:!0})},[n?.prntInfo?.menuId,u]),g=r.useMemo(()=>({0:"12px",1:"14px",2:"16px"})[i],[i]);return e.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:e.jsx("div",{className:"bwgview-content",children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[e.jsx(o.Breadcrumb,{style:{marginBottom:10,fontSize:g},separator:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M6.66675 11.3333L10.0001 7.99996L6.66675 4.66663",stroke:"#9A9A9A","stroke-linecap":"round","stroke-linejoin":"round"})}),items:[{title:n?.prntInfo?.menuId?e.jsx("span",{onClick:a,style:{fontSize:g,cursor:"pointer",color:"#1890ff",textDecoration:"none"},onMouseEnter:p=>{p.currentTarget.style.textDecoration="underline"},onMouseLeave:p=>{p.currentTarget.style.textDecoration="none"},children:n.prntInfo.menuNm}):e.jsx("span",{style:{fontSize:g},children:n?.prntInfo?.menuNm})},{title:e.jsx("span",{style:{fontSize:g,color:"#666"},children:n?.viewLabel})}]}),l]})})})},st=5,at=0,Ce=({title:l,icons:n,tooltip:u,iconVisible:i=!0,paddingBottom:a,marginBottom:g,children:p})=>{const F=ye.AppstoreTwoTone,{componentSize:C}=te.useUserStore(),j=r.useMemo(()=>({0:5,1:4,2:3})[C],[C]);r.useMemo(()=>n?.type==="antd"&&n.icon&&ye[n.icon]||F,[n?.type,n?.icon]);const S=(B,M)=>(B??M).toString().padStart(2,"0"),A=`pb${S(a,at)}`,d=`mb${S(g,st)}`;return e.jsx(o.Flex,{vertical:!0,style:{width:"100%"},children:e.jsxs("div",{className:`bwg-title-box ${A} ${d}`,style:{display:"flex",justifyContent:"space-between"},children:[e.jsx("div",{className:"bwg-title-box-left",children:e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(o.Typography.Title,{level:j,children:e.jsx("span",{children:l})}),u&&e.jsx(o.Tooltip,{title:u.title,placement:u.placement,children:e.jsx(ye.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),e.jsx("div",{className:"bwg-title-box-right",children:e.jsx(o.Flex,{gap:6,children:p})})]})})},{Panel:Te}=o.Collapse,Ae=r.forwardRef(({reqRows:l,subRows:n,border:u=!1,labelDisplay:i,header:a},g)=>{const[p]=o.Form.useForm(),[F,C]=r.useState("1"),[j,S]=r.useState(void 0),{componentSize:A}=te.useUserStore(),d=r.useMemo(()=>{const I={0:12,1:14,2:16},x={0:"small",1:"middle",2:"large"};return{fontSize:I[A],componentSize:x[A]}},[A]),B=()=>i?{flex:i.md||i.lg||i.sm||"100px"}:{flex:"100px"};r.useEffect(()=>{j&&p.setFieldsValue(j)},[j,p]),r.useImperativeHandle(g,()=>({getFormData:()=>p.getFieldsValue(),setFormData:I=>{p.setFieldsValue(I)},setDefaultValue:I=>{S(I),p.setFieldsValue(I)},resetForm:()=>{j?p.setFieldsValue(j):p.resetFields()},validateForm:async()=>{try{return{success:!0,data:await p.validateFields()}}catch(I){return{success:!1,error:I}}}}));const M=()=>{C(I=>I.includes("subRows")?I.filter(x=>x!=="subRows"):[...I,"subRows"])};return e.jsxs("div",{style:u?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[a&&e.jsx(Ce,{title:a.title,children:a.buttons}),e.jsx(o.ConfigProvider,{componentSize:d.componentSize,theme:{token:{fontSize:d.fontSize},components:{Collapse:{}}},children:e.jsx(o.Form,{form:p,layout:"inline",initialValues:j,style:{width:"100%",fontSize:`${d.fontSize}px`},labelCol:B(),labelAlign:"left",children:e.jsxs("div",{style:{position:"relative",width:"100%"},children:[n&&e.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:F.includes("subRows")?e.jsx(o.Tooltip,{title:"접기",children:e.jsx("span",{className:"search-collapsed-arrow",onClick:M,children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:e.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):e.jsx(o.Tooltip,{title:"펼치기",children:e.jsx("span",{className:"search-collapsed-arrow",onClick:M,children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:e.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),e.jsxs(o.Collapse,{activeKey:["reqRows",...F.includes("subRows")?["subRows"]:[]],onChange:C,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[l&&e.jsx(Te,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:l},"reqRows"),n&&e.jsx(Te,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:n},"subRows")]})]})})})]})}),lt=({children:l,showSearchBox:n,showCloseButton:u=!0,showEyesButton:i=!1,shotSettingButton:a=!0,styles:g,...p})=>{const[F,C]=r.useState(!0),[j,S]=r.useState(()=>{const V=p.placement;return V==="left"||V==="right"||V==="top"||V==="bottom"?V:"bottom"}),[A,d]=r.useState(!1),M=(V=>{const s={wrapper:{...p.width&&{width:p.width},...p.height&&{height:p.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(V){case"bottom":return{...s,wrapper:{...s.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...s.header,borderRadius:"30px 30px 0 0"}};case"top":return{...s,wrapper:{...s.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...s.header}};case"left":return{...s,wrapper:{...s.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...s.header,borderRadius:"0 30px 0 0"}};case"right":return{...s,wrapper:{...s.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...s.header,borderRadius:"30px 0 0 0"}};default:return s}})(j),I={wrapper:{...M?.wrapper,...g?.wrapper},content:{...M?.content,...g?.content},header:{...M?.header,...g?.header}},x=()=>{const V=[];if(a){const s=[{key:"top",label:"상단",icon:e.jsx(W.CaretUpOutlined,{})},{key:"right",label:"우측",icon:e.jsx(W.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:e.jsx(W.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:e.jsx(W.CaretLeftOutlined,{})}],v=e.jsx(o.Space.Compact,{children:s.map(b=>e.jsx(o.Button,{type:j===b.key?"primary":"default",size:"small",onClick:()=>{S(b.key),d(!1)},icon:b.icon},b.key))});V.push(e.jsx(o.Popover,{content:v,trigger:"click",placement:"left",open:A,onOpenChange:d,children:e.jsx(o.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:e.jsx(o.Button,{icon:e.jsx(W.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return i&&V.push(e.jsx(o.Tooltip,{placement:"bottom",title:F?"배경 보기":"배경 숨기기",zIndex:2100,children:e.jsx(o.Button,{icon:e.jsx(W.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>C(!F)})},"eyes")),p.extra&&V.push(e.jsx("div",{style:{margin:"0 8px"},children:p.extra},"extra")),u&&V.push(e.jsx(o.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:e.jsx(o.Button,{icon:e.jsx(W.CloseOutlined,{}),onClick:p.onClose,type:"text",size:"middle"})},"close")),V};return e.jsx(o.Drawer,{className:"main-drawer",footer:!0,...p,placement:j,styles:I,maskClosable:!1,closable:!1,mask:F,extra:e.jsx(o.Space,{size:"small",align:"center",children:x()}),afterOpenChange:V=>{V||(C(!0),S(p.placement)),p.afterOpenChange?.(V)},destroyOnHidden:!0,children:n?e.jsxs(he,{type:"vertical",children:[e.jsxs(o.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[e.jsx("div",{children:n.title}),e.jsx(o.Flex,{gap:2,children:n.extra})]}),e.jsx(Ae,{...n.searchBox}),e.jsx(o.Divider,{}),l]}):l})},je=({width:l="100%",height:n="100%",boxAlign:u,display:i="show",overflow:a,style:g,className:p,border:F=!0,children:C,ref:j})=>e.jsx("div",{style:{width:l,height:n,display:i==="show"?"":i,overflowX:a?.x,overflowY:a?.y,...g},className:`bwgview-content-box ${u?`content-box-${u}`:""} ${p||""} ${F?"":"none-box-st"}`,ref:j,children:C}),_e=Re?.default??Re;try{ze.register("modules/imageResize",_e)}catch(l){console.warn("quill-image-resize-module-react 로드 실패:",l)}const ve=l=>Ye.sanitize(l??"",{ALLOWED_TAGS:["p","br","div","span","strong","b","em","i","u","s","blockquote","pre","code","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img"],ALLOWED_ATTR:["style","class","href","target","rel","src","alt","width","height","data-*","align"],ALLOWED_URI_REGEXP:/^(?:(?:https?|data|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),be=r.forwardRef(({border:l=!0,editorProps:n,value:u,defaultValue:i,onChange:a,onBlur:g,disabled:p,placeholder:F},C)=>{const{isEditing:j=!0,title:S,containerHeight:A="100%"}=n||{},d=r.useRef(null),B=r.useMemo(()=>{const b={toolbar:j?[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],["link","image"],["clean"]]:!1};return _e?{...b,imageResize:{parchment:ze.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:b},[j]),M=r.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),I=u!==void 0,[x,V]=r.useState(i??""),s=I?u:x,v=r.useCallback((b,z,N,U)=>{const w=ve(b??"");I||V(w),a?.(w,z,N,U)},[I,a]);return r.useImperativeHandle(C,()=>({getHTML:()=>s??"",getText:()=>d.current?.getEditor()?.getText()??"",insertHTML:b=>{const z=d.current?.getEditor();if(!z)return;const N=z.getSelection(!0),U=ve(b??"");z.clipboard.dangerouslyPasteHTML(N?N.index:z.getLength(),U)},insertImage:(b,z)=>{const N=d.current?.getEditor();if(!N)return;const U=N.getSelection(!0),w=typeof b=="string"?b:"";N.insertEmbed(U?U.index:N.getLength(),"image",w,"user")},getQuill:()=>d.current?.getEditor?.()??null})),e.jsx(je,{border:l,style:{opacity:p?.6:1,pointerEvents:p?"none":"auto",height:typeof A=="number"?`${A}px`:A,minHeight:0},children:e.jsxs("div",{className:"bwg-editor-wrap",style:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},children:[S&&e.jsx(Ce,{...S,paddingBottom:10}),e.jsx(Ze,{ref:d,theme:j?"snow":"bubble",readOnly:!j,value:s,onChange:v,onBlur:g,modules:B,formats:M,style:{width:"100%",display:"flex",flexDirection:"column",minHeight:0,flex:"1"},placeholder:F},j?"snow":"bubble")]})})}),dt=(l,n,u,i)=>ve(l??""),ct=({itemProps:l,...n})=>{const{rules:u,shouldUpdate:i,dependencies:a,noStyle:g,...p}=l;return e.jsx(o.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:dt,normalize:F=>F??"",rules:u,shouldUpdate:i,dependencies:a,noStyle:g,...p,children:e.jsx(be,{...n})})},ut=l=>{const{itemProps:n,onChange:u,editorProps:i,...a}=l,g=o.Form.useFormInstance();if(n?.name!=null){const p=n.name;return e.jsxs(e.Fragment,{children:[e.jsx(o.Form.Item,{hidden:!0,name:p,rules:n.rules,normalize:F=>F??"",children:e.jsx("input",{type:"hidden"})}),e.jsx(be,{...a,editorProps:i,value:g.getFieldValue(p)??"",onChange:(F,C,j,S)=>{const A=ve(F??"");g.setFieldValue(p,A),u?.(A,C,j,S)},onBlur:()=>{g.validateFields([p]).catch(()=>{})}})]})}return e.jsx(be,{...l})},ht=Object.assign(ut,{FormItem:ct,Core:be}),Ve=r.forwardRef(({currentPage:l,totalPages:n,pageSize:u=10,totalData:i,onPageChange:a,pageSizeOptions:g=[10,20,50,100],gridRef:p,mode:F="client",onServerPageChange:C},j)=>{const[S,A]=r.useState(u),[d,B]=r.useState(1),[M,I]=r.useState(u),[x,V]=r.useState(0);r.useEffect(()=>{A(u)},[u]),r.useEffect(()=>{A(u)},[]),r.useImperativeHandle(j,()=>({currentPage:d,pageSize:M,totalData:x,totalPages:Math.ceil(x/M),setPage:k=>{B(k),C?.(k,M)},setPageSize:k=>{I(k),B(1),C?.(1,k)},setTotalData:k=>{V(k)},reset:()=>{B(1),I(u),V(0)}}),[d,M,x,C,u]);const s=F==="client",v=s?(l||0)+1:d,b=s?(n||0)>0:x>0,N=s?b?Math.ceil((i||0)/S):0:Math.ceil(x/M),U=s?b&&i||0:x,w=Math.min(v,N||1),R=`${S}-${N}-${w}`,E=k=>{s?a?.(k-1):(B(k),C?.(k,M))},Q=k=>{if(s){A(k);try{p?.current?.gridView?(p.current.gridView.setPaging(!0,k),p.current.gridView.setPage(0)):a?.(0)}catch(L){console.warn("페이지 사이즈 변경 중 오류:",L),a?.(0)}}else I(k),B(1),C?.(1,k)};return e.jsxs("div",{className:"bwg-pagination-container",style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #dddddd",position:"relative"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontSize:"12px",color:"#333333"},children:"페이지당"}),e.jsx("select",{value:s?S:M,onChange:k=>Q(Number(k.target.value)),disabled:!b,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"6px",fontSize:"12px",color:"#333333",opacity:b?1:.5},children:g.map(k=>e.jsxs("option",{value:k,children:[k,"개"]},k))}),e.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:b?1:.5},children:["/ 총 ",U,"개"]})]}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:e.jsxs(o.ConfigProvider,{theme:{components:{Button:{defaultBorderColor:"#e8e8e8",defaultHoverBorderColor:"var(--primary-color)",defaultHoverColor:"var(--text-primary)",contentFontSize:13,defaultColor:"var(--text-primary)",paddingInline:0}}},children:[e.jsxs(o.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[e.jsx(o.Button,{onClick:()=>E(1),disabled:!b||w===1,style:{width:"26px",height:"26px",border:0,background:!b||w===1?"#f1f1f1":"white",cursor:!b||w===1?"not-allowed":"pointer",opacity:b?1:.5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[e.jsx("path",{d:"M12 17L7 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M17 17L12 12L17 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})}),e.jsx(o.Button,{onClick:()=>E(w-1),disabled:!b||w===1,style:{width:"26px",height:"26px",border:0,background:!b||w===1?"#f1f1f1":"white",cursor:!b||w===1?"not-allowed":"pointer",opacity:b?1:.5},icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M14 17L9 12L14 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:6},children:(()=>{if(!b||N===0)return e.jsx(o.Button,{disabled:!0,style:{width:"26px",height:"26px"},children:"1"});const k=5;let L=1,q=Math.min(k,N);w>3&&N>k&&(L=Math.max(1,w-2),q=Math.min(N,L+k-1),q===N&&(L=Math.max(1,q-k+1)));const Z=[];for(let O=L;O<=q;O++)Z.push(e.jsx(o.Button,{onClick:()=>E(O),style:{width:"26px",height:"26px",background:w===O?"var(--primary-color)":"#ffffff",color:w===O?"#ffffff":"#333333",cursor:"pointer"},children:O},O));return Z})()},R),e.jsxs(o.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[e.jsx(o.Button,{onClick:()=>E(w+1),disabled:!b||w>=N,style:{width:"26px",height:"26px",border:0,background:!b||w>=N?"#f1f1f1":"white",cursor:!b||w>=N?"not-allowed":"pointer",opacity:b?1:.5},icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M10 17L15 12L10 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),e.jsx(o.Button,{onClick:()=>E(N),disabled:!b||w>=N,style:{width:"26px",height:"26px",border:0,background:!b||w>=N?"#f1f1f1":"white",cursor:!b||w>=N?"not-allowed":"pointer",opacity:b?1:.5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[e.jsx("path",{d:"M12 17L17 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M7 17L12 12L7 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})]})]})})]})});Ve.displayName="BwgPagination";const pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC";let Be=null;const ft=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"},{label:"레이아웃 초기화",tag:"initLayout"}],mt=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(들여쓰기 표시)",tag:"showIndentExcel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"},{label:"레이아웃 초기화",tag:"initLayout"}],xt=({children:l})=>{const[n,u]=r.useState(!1),[i,a]=r.useState(null);return n?e.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:e.jsx(o.Alert,{message:"리얼그리드 로드 실패",description:e.jsxs("div",{children:[e.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),e.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",i?.message||"알 수 없는 오류"]}),e.jsx(o.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{u(!1),a(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):e.jsx(wt,{onError:g=>{console.error("BwgGrid 에러:",g),a(g),u(!0)},children:l})};class wt extends r.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(n){return{hasError:!0}}componentDidCatch(n,u){this.props.onError(n)}render(){return this.state.hasError?null:this.props.children}}const yt=r.forwardRef(({type:l="nrml",gridDivStyle:n,gridDivClassName:u,gridColumns:i,gridOptions:a,gridEvents:g,bindRef:p,gridContext:F,renderers:C,gridInitCallback:j,gridId:S},A)=>{const d=r.useRef(null),B=r.useRef(new Map),M=r.useRef(null),{gridSize:I}=te.useUserStore(),x=ee.useGridSizeConfig(),s=ee.useBwgView()?.menuId||"",v=r.useRef(`${s||"NO_MENU"}__${S||"NO_GRID"}__${Y.generateUID(16)}`),b=(t,h,m,f)=>{let c=[],y=[];const T="treeNode";for(let _ in t){let H=t[_];c[H[m]]=t[_];let K=c[H[h]];if(K==null||K=="-"){y.push(H);continue}K[T]==null&&(K[T]=[]),K[T].push(H)}return y},z=r.useCallback(t=>{const h=f=>{const c=[];return f.forEach(y=>{y.children&&y.children.length>0?c.push(...h(y.children)):c.push(y)}),c};return h(t).map(f=>({fieldName:f.fieldName,dataType:f.dataType||"text"}))},[]),N=r.useCallback(t=>{const h=f=>{const c=[];return f.forEach(y=>{y.children&&y.children.length>0?c.push(...h(y.children)):c.push(y)}),c};return h(t).map(f=>({...f,header:{...f.header,template:f.required?`<img src='${gt}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:f.editable?`<img src='${pt}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:f.header?.text??""},text:f.header?.text||""},styleName:f.dataType==="number"?"right":f.styleName||"center"}))},[]);r.useImperativeHandle(A,()=>({addAllData(t,h){const m=d.current?.gridView.getCurrent().dataRow;if(d.current?.dataProvider instanceof X.LocalDataProvider){d.current.dataProvider.clearRows();try{d.current?.gridView.showLoading(),d.current.dataProvider.setRows(t)}catch(f){console.error("fillJsonData 오류:",f)}finally{d.current?.gridView.closeLoading()}}if(d.current?.dataProvider instanceof X.LocalTreeDataProvider){if(d.current.dataProvider.clearRows(),h?.treeOption?.dataField==null||h?.treeOption?.parentField==null)return;const f={rows:"treeNode"};try{d.current?.gridView.showLoading();let c=b(t,h.treeOption?.parentField,h.treeOption?.dataField);d.current.dataProvider.fillJsonData({treeNode:c},f),h.treeOption.isExpand&&d.current.gridView?.expandAll()}catch(c){console.error("fillJsonData 오류:",c)}finally{d.current?.gridView.closeLoading()}}h?.isCurrent?d.current?.gridView.setCurrent({dataRow:m}):d.current?.gridView.setCurrent({dataRow:0})},isUpdate:()=>{const t=d.current?.dataProvider?.getAllStateRows();if(!t)return!1;const h=(t.created?.length??0)>0,m=(t.updated?.length??0)>0,f=(t.deleted?.length??0)>0;return h||m||f},getGridInstance:()=>d.current,getCurrentRow:()=>d.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>d.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(t){d.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!t?.indenting,header:"default",footer:"default",sheetName:"",fileName:t?.fileName||"sample.xlsx",...t})},getGridSaveData:()=>{const t=d.current?.dataProvider?.getAllStateRows();if(t===void 0)return[{}];let h=[];if(t.created!==void 0&&t.created.length>0)for(const m in t.created){let f=d.current?.dataProvider?.getJsonRow(t.created[m]);f={...f,iudFlag:"I"},h.push(f)}if(t.updated!==void 0&&t.updated.length>0)for(const m in t.updated){let f=d.current?.dataProvider?.getJsonRow(t.updated[m]);f={...f,iudFlag:"U"},h.push(f)}if(t.deleted!==void 0&&t.deleted.length>0)for(const m in t.deleted){let f=d.current?.dataProvider?.getJsonRow(t.deleted[m]);f={...f,iudFlag:"D"},h.push(f)}return h},deleteGridData:()=>{const t=d.current?.gridView,h=d.current?.dataProvider;if(!t||!h)return;const m=t.getCheckedItems();if(!m||m.length===0)return;let f=m.map(c=>{const y=t.getDataRow(c);if(y<0)return null;const T=h.getRowState(y);return{item:c,rowIdx:y,currentState:T}}).filter(c=>c!==null);f=f.sort((c,y)=>y.rowIdx-c.rowIdx),f.forEach(({item:c,rowIdx:y,currentState:T})=>{if(T===X.RowState.DELETED){const _=B.current.get(c)??X.RowState.NONE;h.setRowState(y,_),B.current.delete(c)}else T===X.RowState.CREATED?h.removeRow(y):T===X.RowState.CREATE_AND_DELETED?h.setRowState(y,X.RowState.CREATED):(B.current.set(c,T??X.RowState.NONE),h.setRowState(y,X.RowState.DELETED))}),t.checkAll(!1)},_oriRowState:[{}],dp:l=="tree"?d.current?.dataProvider:d.current?.dataProvider??null,vw:l=="tree"?d.current?.gridView:d.current?.gridView??null}));const U=r.useCallback((t,h,m)=>{if(p!==void 0&&m>=0){let f=t.getDataSource().getJsonRow(m);p?.current?.setFieldsValue(f)}else p!==void 0&&m<0&&p?.current?.resetFields();t.setCurrent({dataRow:0}),g?.onCurrentRowChanged&&g?.onCurrentRowChanged(t,h,m)},[p,g]),w=r.useCallback((t,h,m)=>{const f=h.fieldName??"";p?.current?.getFieldInstance(f)&&p?.current.setFieldValue(f,m),g?.onEditChange&&g?.onEditChange(t,h,m)},[p,g]),R=r.useCallback((t,h,m)=>{const f=t.getOrgFieldName(m),c=t.getValue(h,m);p?.current?.setFieldValue(f,c)},[p]),E=r.useCallback((t,h,m)=>{console.log("@@ handleItemChecked",h,m),t.setCurrent({dataRow:h}),g?.onItemChecked&&g?.onItemChecked(t,h,m)},[g]),Q=r.useCallback((t,h,m,f)=>{const c=t.getColumn(f).name??"",y=t.getValue(h,f);p?.current?.getFieldInstance(c)&&p?.current.setFieldValue(c,y),g?.onCellEdited&&g?.onCellEdited(t,h,m,f)},[p,g]),k=r.useCallback((t,h,m,f)=>{if(typeof h.dataRow=="number"&&h.dataRow!=-1){var c=t.getDataSource().getRowState(h.dataRow);if(c=="deleted"||c=="createAndDeleted")return!1}return g?.onShowEditor!=null&&g?.onShowEditor(t,h,m,f),!0},[p,g]),L=r.useCallback(t=>{if(!d.current)return;const h=d.current.gridView,m=h.getDataSource();if(a?.container?.page){const f=h.getPage(),c=h.getPageCount(),y=m.getRowCount();P({currentPage:f,totalPages:c,totalData:y})}},[a?.container?.page]),q=r.useCallback(()=>{if(!d.current)return;const t=d.current.gridView,h=t.getDataSource();__SYS_CD__;const m=["onKeyDown"],f=["onRowInserted"];Object.keys(g??{}).map(c=>{m.includes(c)?t[c+"Add"]=g?.[c]:t[c]=g?.[c],f.includes(c)?h[c+"Add"]=g?.[c]:h[c]=g?.[c]}),h instanceof X.LocalDataProvider&&(h.onRowInserted=(c,y)=>{y<0||(setTimeout(function(){t?.setCurrent({dataRow:y})},1),c.onRowInsertedAdd!==void 0&&c.onRowInsertedAdd(c,y))}),t.onKeyDown=function(c,y){if(y.code=="Space"){let T=c.getSelectedItems(!0);for(const _ in T)c.isCheckable(T[_])&&(c.isCheckedItem(T[_])?c.checkItem(T[_],!1,!1):c.checkItem(T[_],!0,!1))}return c.onKeyDownAdd!==void 0&&c.onKeyDownAdd(c,y),!0},d.current.gridView.onCurrentRowChanged=U,d.current.gridView.onEditChange=w,d.current.gridView.getDataSource().onValueChanged=R,d.current.gridView.onItemChecked=E,d.current.gridView.onCellEdited=Q,d.current.gridView.onShowEditor=k,d.current.gridView.onDataLoadComplated=L,d.current.gridView.onLayoutPropertyChanged=function(c,y,T,_,H){const K=y?.column||"알 수 없음";console.log("🔵 [BwgGrid] 레이아웃 속성 변경 감지:",{columnName:K,property:T,oldValue:_,newValue:H,layout:y}),T==="visible"&&console.log(`📌 컬럼 "${K}" ${H?"표시":"숨김"}`),(T==="order"||T==="index")&&console.log(`📌 컬럼 "${K}" 위치 변경: ${_} → ${H}`),g?.onLayoutPropertyChanged&&g.onLayoutPropertyChanged(c,y,T,_,H)}},[U,w,R,Q,k,L,S,s]),Z=r.useCallback(t=>{if(!t)return;const h=S,m=s,f=__SYS_CD__;try{t.gridView.setSortingOptions({enabled:!0}),t.gridView.sortMode=X.SortMode.EXPLICIT,t.gridView.editorOptions.viewGridInside=!0,t.gridView instanceof X.TreeView&&t.gridView.setTreeOptions({expandWhenSetData:X.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:X.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),t.dataProvider.setOptions({deleteCreated:!0,softDeleting:!0});const c=()=>a?.display?.rowHeight!==void 0?a.display.rowHeight:{0:25,1:30,2:43}[I];t.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:a?.display?.minRowHeight||25,maxRowHeight:a?.display?.maxRowHeight||100,rowHeight:c(),rowChangeDelay:a?.display?.rowChangeDelay||0,selectionStyle:a?.display?.selectionStyle||X.SelectionStyle.ROWS,fitStyle:a?.display?.fitStyle||X.GridFitStyle.FILL,useAlternateRowStyle:a?.display?.useAlternateRowStyle||!1}),t.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:a?.edit?.editable||!1,validateOnEdited:a?.edit?.validateOnEdited||!1}),t.gridView.setCopyOptions({singleMode:a?.copy?.singleMode||!1}),t.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),t.gridView.header.height=a?.header?.height||43,t.gridView.header.styleName=a?.header?.styleName||"bwgGridHeader",a?.container?.radio?t.gridView.setCheckBar({exclusive:a?.container?.radio||!1}):t.gridView.setCheckBar({visible:a?.container?.check||!1,showAll:a?.container?.checkAll||!1}),t.gridView.setStateBar({visible:a?.container?.state||!1}),t.gridView.rowIndicator.visible=a?.container?.indicator||!1,t.gridView instanceof X.GridView&&(t.gridView.groupPanel.visible=a?.container?.panel||!1),t.gridView.setFooters({visible:a?.container?.footer||!1}),t.gridView.setHeader({visible:a?.container?.header||!0,showTooltip:a?.container?.headerShowTooltip||!1}),t.gridView.formatOptions.numberFormat="#,##0"}catch(c){console.log("그리드 옵션 설정 중 오류:",c)}try{t.gridView instanceof X.TreeView?t.gridView.setContextMenu(mt):t.gridView.setContextMenu(ft),t.gridView.onContextMenuItemClicked=function(c,y,T){if(!(!T||!T.column)){if(y.tag=="excel")re(c,{isTitle:!1},F?.excel);else if(y.tag=="showIndentExcel")re(c,{isTitle:!1,treeBlank:!0},F?.excel);else if(y.tag=="withTitleExcel")re(c,{isTitle:!0,treeBlank:!1},F?.excel);else if(y.tag=="filter")J(c,y);else if(y.tag=="fixedCol"){let H=(c.layoutByColumn(T.column)||c.layoutByName(T.column))?.root?.vindex+1;H>0&&c.setFixedOptions({colCount:H})}else if(y.tag=="fixedRow")c.setFixedOptions({rowCount:(T.itemIndex||0)+1});else if(y.tag=="fixedCancel")c.setFixedOptions({colCount:0,rowCount:0});else if(y.tag=="hide")c.layoutByName(T.column).visible=!1,c._hideCols||(c._hideCols=[]),c._hideCols[c._hideCols.length]=T.column;else if(y.tag=="hideClear"){if(c._hideCols&&c._hideCols.length>0){for(var _=0;_<c._hideCols.length;_++)c.layoutByName(c._hideCols[_]).visible=!0;c._hideCols=[]}}else if(y.tag=="initLayout"){if(h&&m)try{Y.removeGridLayout(f,m,h)}catch(H){console.warn("[BwgGrid] 레이아웃 삭제 실패:",H)}if(i){c.setColumns(i);const H=i.filter(K=>K.visible!==!1).map(K=>K.fieldName||K.name);H.length>0&&c.setColumnLayout(H)}}}}}catch(c){console.log("컨텍스트 설정 중 오류:",c)}},[a,I,S,s]),O=t=>{if(!(!C||C.length===0))try{C.forEach(h=>{const{name:m,renderer:f}=h;if(m&&f){const c=typeof f=="function"?new f:f;t.gridView.registerCustomRenderer(m,c)}})}catch(h){console.error("커스텀 렌더러 초기화 중 오류:",h)}},oe=t=>{t.onPageChanged=(h,m)=>{P(f=>({...f,currentPage:m}))},t.onPageCountChanged=(h,m)=>{P(f=>({...f,totalPages:m}))}},ae=t=>{d.current?.gridView&&d.current.gridView.setPage(t)},D=t=>{if(a?.layout?.colspan&&a.layout.colspan.length>0&&a?.layout?.colspan.forEach(h=>{const m=t.gridView.layoutByColumn(h.fieldName);if(m){const f=h.span;m.spanCallback=function(c,y,T){return f}}}),i&&i.length>0&&i.some(m=>m.children&&m.children.length>0))try{(()=>{const f=JSON.parse(JSON.stringify(i)),c=[],y=T=>{const _=[];return T.children.map(H=>{if(H.children&&H.children.length>0){const K=y(H),se=H.header?.text||H.fieldName,ge=t.gridView.getColumnProperty(H.fieldName,"header");delete H.children,delete H.header;let Qe={name:H.fieldName,header:{text:ge?.text||se,template:ge?.template,values:ge?.values,visible:ge?.visible??!0},items:K,...H};_.push(Qe)}else _.push(H.fieldName)}),_};f.map(T=>{if(T.children&&T.children.length>0){const _=y(T),H=T.header?.text||T.fieldName,K=T.header?.visible??!0,se=t.gridView.getColumnProperty(T.fieldName,"header");delete T.children,delete T.header;const ge={name:T.fieldName,header:{text:se?.text||H,template:se?.template,values:se?.values,visible:se?.visible||K},items:_,...T};c.push(ge)}else c.push(T.fieldName)}),console.log("Final Layout!!",c),t.gridView.setColumnLayout(c)})()}catch(m){console.error("컬럼 레이아웃 설정 오류:",m)}},G=()=>{if(d.current){if(l==="nrml"){const t=d.current;if(Z(t),O(t),i&&i.length>0){const h=z(i),m=N(i);t.gridView.getDataSource().setFields(h),t.gridView.setColumns(m)}if(D(t),a?.container?.page){const h=a?.pagingOption?.pageSize||10;t.gridView.setPaging(!0,h),oe(t.gridView)}}else{const t=d.current;if(Z(t),O(t),i&&i.length>0){const h=z(i),m=N(i);t.gridView.getDataSource().setFields(h),t.gridView.setColumns(m)}D(d.current)}setTimeout(()=>{if(j){const t=typeof A=="object"&&A!==null?A.current:null;j(t)}},0)}},re=(t,h,m)=>{const f=t.getDataSource();let c=m?.footer==null?"default":m.footer;f.getRowCount()<1&&(c="hidden");let y={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!h?.treeBlank,footer:c,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:m?.fileName||"sample.xlsx"};f instanceof X.LocalTreeDataProvider&&(y.indenting=!!h?.treeBlank),m?.isCellMerge==!0&&(y.separateRows=!1),Y.isEmpty(m?.sheetName)==!1&&(y.sheetName=m?.sheetName),h?.isTitle&&(y.documentTitle={message:Y.isSafeEmpty(m?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Y.isEmpty(m?.subTitle)==!1&&(y.documentSubtitle={message:m?.subTitle,visible:!0,styleName:"center",height:20}),Y.isEmpty(m?.tailTitle)==!1&&(y.documentTail={message:m?.tailTitle,visible:!0,styleName:"documentStyle"})),t.exportGrid(y)},J=(t,h)=>{const m=t.getDataSource(),f=m.getOrgFieldNames();if(h.checked)for(var c=0;c<f.length;c++){let T=[],_=m.getDistinctValues(f[c])??[];if(_.length==0)continue;let H=t.columnByName(f[c]);for(var y=0;y<_.length;y++){if(_[y]==null)continue;let K=H.values!=null&&H.values.indexOf(_[y])!=-1?H?.labels?.[H.values.indexOf(_[y])]:_[y];Y.isEmpty(K)&&(Y.isEmpty(_[y])?K=" ":K=_[y]);let se="";_[y]==null?se="value="+_[y]:se="value='"+_[y]+"'",T.push({name:K,criteria:se})}t.setColumnFilters(f[c],T)}else for(var c=0;c<f.length;c++)t.clearColumnFilters(f[c]),t.activateAllColumnFilters(f[c],!1),t.clearColumnFilters(f[c])};r.useEffect(()=>{if(!d.current?.gridView)return;const t=()=>({0:25,1:30,2:43})[I],h=()=>({0:12,1:13,2:14})[I];d.current.gridView.setDisplayOptions({rowHeight:t()}),M.current&&M.current.style.setProperty("--bwg-grid-font-size",`${h()}px`)},[I,a?.display?.rowHeight]),r.useEffect(()=>{if(d.current&&d.current.gridView)if(l==="nrml"){const t=d.current;Z(t)}else{const t=d.current;Z(t)}},[l,a,Z]),r.useEffect(()=>{!d.current||!i||i.length===0||G()},[i]),r.useEffect(()=>{d.current&&q()},[g,q]),r.useEffect(()=>{if(!(!S||!s||!d.current?.gridView||!i||i.length===0))try{const t=Y.getGridLayout(__SYS_CD__,s,S);if(t){const h=Array.isArray(t)?t:t.layout||t;h&&(d.current.gridView.setColumnLayout(h),console.log(`[BwgGrid] 저장된 레이아웃 로드 완료: ${__SYS_CD__}/${s}/${S}`))}}catch(t){console.warn("[BwgGrid] 레이아웃 로드 실패:",t)}},[S,s]),r.useEffect(()=>{const t=h=>{const m=h.ctrlKey||h.metaKey;Be===v.current&&(m&&(h.key==="f"||h.key==="F")&&(h.preventDefault(),le(f=>f&&!1),me(""),de(f=>!f)),m&&(h.key==="g"||h.key==="G")&&(h.preventDefault(),de(f=>f&&!1),le(f=>!f)))};return window.addEventListener("keydown",t,{capture:!0}),()=>{window.removeEventListener("keydown",t,!0)}},[]);const[ne,de]=r.useState(!1),[fe,me]=r.useState(""),ke=r.useRef(null),[xe,le]=r.useState(!1),[pe,P]=r.useState({currentPage:0,totalPages:0,totalData:0});r.useEffect(()=>{P({currentPage:0,totalPages:0,totalData:0})},[]),r.useEffect(()=>{ne&&setTimeout(()=>{ke.current?.focus?.()},0)},[ne]),r.useEffect(()=>()=>{if(d.current)try{const t=d.current;t.gridView&&(t.gridView.onDataLoadComplated=void 0,t.gridView.onCurrentRowChanged=void 0,t.gridView.onCellClicked=void 0,t.gridView.onCellDblClicked=void 0,t.gridView.onEditRowChanged=void 0,t.gridView.onItemChecked=void 0,t.gridView.onItemAllChecked=void 0,t.gridView.onColumnCheckedChanged=void 0,t.gridView.onCellButtonClicked=void 0,t.gridView.onEditChange=void 0,t.gridView.onCellEdited=void 0,t.gridView.onKeyUp=void 0,t.gridView.onKeyDown=void 0,t.gridView.onWheel=void 0,t.gridView.onValidateColumn=void 0,t.gridView.onValidateRow=void 0,t.gridView.onValidationFail=void 0,t.gridView.onRowInserting=void 0,t.gridView.onCellItemClicked=void 0,t.gridView.onShowEditor=void 0,t.gridView.onLayoutPropertyChanged=void 0,t.gridView.getDataSource()&&(t.gridView.getDataSource().clearRows(),t.gridView.getDataSource().setFields([])),t.gridView.getDataSource().clearRows())}catch(t){console.warn("⚠️ BwgGrid cleanup error:",t)}},[]);const $=r.useCallback(()=>{const t=fe;console.log("@@ handleSearchEnter:",t);const h=d.current?.gridView;if(!h)return;if(h.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(h.commit(),Y.isEmpty(t))return;const m=h.getCurrent().itemIndex??-1;if(m<0)return;const f={value:t,startIndex:m+1,wrap:!0,caseSensitive:!1,partialMatch:!0},c=h.searchCell(f);h.setCurrent(c)},[fe]),ie=r.useCallback(t=>{t.key==="Escape"&&(t.preventDefault(),de(!1))},[]),ce=r.useCallback(()=>{me(""),de(!ne)},[ne]),Se=r.useCallback(()=>{le(!xe)},[xe]),qe=r.useCallback(t=>{t.key==="Escape"&&(t.preventDefault(),le(!1))},[]),Ue=r.useCallback(()=>{if(!S||!s||!d.current?.gridView){console.warn("[BwgGrid] 레이아웃 저장 실패: gridId 또는 menuId가 없습니다.");return}try{const h=d.current.gridView.saveColumnLayout();h&&(Y.saveGridLayout(__SYS_CD__,s,S,h),le(!1))}catch(t){console.warn("[BwgGrid] 레이아웃 저장 실패:",t)}},[S,s]),We=r.useCallback(()=>{if(!S||!s||!d.current?.gridView){console.warn("[BwgGrid] 레이아웃 초기화 실패: gridId 또는 menuId가 없습니다.");return}try{if(Y.removeGridLayout(__SYS_CD__,s,S),i){const t=N(i);d.current.gridView.setColumns(t);const h=i.filter(m=>m.visible!==!1).map(m=>m.fieldName||m.name);h.length>0&&d.current.gridView.setColumnLayout(h)}console.log(`[BwgGrid] 레이아웃 초기화 완료: ${__SYS_CD__}/${s}/${S}`),le(!1)}catch(t){console.warn("[BwgGrid] 레이아웃 초기화 실패:",t)}},[S,s,i,N]),we={searchEnter:$,handleCloseKeyword:ie,handleSearch:ce,handleLayoutManager:Se,handleCloseLayoutManager:qe,handleSaveLayout:Ue,handleResetLayout:We},Ne=r.useMemo(()=>({0:12,1:13,2:14})[I],[I]),Ke=r.useMemo(()=>({...n,position:"relative",width:n?.width||"100%",height:n?.height||"100%","--bwg-grid-font-size":`${Ne}px`}),[n,Ne]);return e.jsxs(xt,{children:[e.jsxs("div",{ref:M,style:Ke,className:u,onClick:()=>{Be=v.current},onFocusCapture:()=>{Be=v.current},children:[ne&&e.jsx("div",{className:"grid-search-box",style:{"--search-button-size":`${x.buttonSize}px`,"--search-button-font-size":`${x.fontSize}px`,"--search-box-width":`${x.width}px`},children:e.jsx(o.ConfigProvider,{componentSize:x.componentSize,theme:{token:{fontSize:x.fontSize}},children:e.jsxs(o.Flex,{gap:3,children:[e.jsx(o.Input,{ref:ke,value:fe,name:"srchField",autoComplete:"off",placeholder:"검색어를 입력하세요.",onKeyUp:t=>we.handleCloseKeyword(t),onChange:t=>me(t.target.value),onPressEnter:()=>we.searchEnter()}),e.jsx(o.Button,{variant:"solid",icon:e.jsx(W.CloseOutlined,{}),onClick:()=>de(!1)})]})})}),xe&&e.jsx("div",{className:"grid-layout-manager-box",style:{"--search-button-size":`${x.buttonSize}px`,"--search-button-font-size":`${x.fontSize}px`,"--search-box-width":`${x.width}px`},onKeyUp:t=>we.handleCloseLayoutManager(t),children:e.jsx(o.ConfigProvider,{componentSize:x.componentSize,theme:{token:{fontSize:x.fontSize}},children:e.jsxs(o.Flex,{vertical:!0,gap:10,children:[e.jsxs(o.Flex,{gap:6,style:{width:"100%",position:"relative"},children:[e.jsx(o.Button,{className:"bwg-btn",icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M11.25 15V11.25H6.75V15M13.5 15H4.5C3.67157 15 3 14.3284 3 13.5V4.5C3 3.67157 3.67157 3 4.5 3H10.6287C11.0265 3 11.408 3.15804 11.6893 3.43934L14.5607 6.31066C14.842 6.59197 15 6.9735 15 7.37132V13.5C15 14.3284 14.3284 15 13.5 15Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:we.handleSaveLayout,disabled:!S||!s,children:"레이아웃 저장"}),e.jsx(o.Button,{className:"bwg-btn",icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsx("g",{"clip-path":"url(#clip0_1427_1188)",children:e.jsx("path",{d:"M14.7003 11.34C14.2603 12.58 13.4403 13.64 12.3503 14.36C11.2603 15.09 9.96032 15.44 8.66032 15.36C7.35032 15.28 6.11032 14.79 5.11032 13.94C4.11032 13.09 3.41032 11.95 3.12032 10.67C2.83032 9.39 2.96032 8.06 3.50032 6.86C4.04032 5.66 4.94032 4.68 6.09032 4.04C7.24032 3.41 8.56032 3.16 9.85032 3.35C12.0403 3.66 13.4903 5.24 15.0503 6.65M15.0403 2.63V6.65H11.0103",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1427_1188",children:e.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),onClick:we.handleResetLayout,disabled:!S||!s,children:"레이아웃 초기화"}),e.jsx("div",{style:{position:"absolute",right:0},children:e.jsx(o.Button,{type:"text",icon:e.jsx(W.CloseOutlined,{}),style:{width:30,height:30},onClick:()=>le(!1)})})]}),(!S||!s)&&e.jsx(o.Alert,{message:"그리드 설정정보가 완료되지 않았습니다. 관리자에게 문의하십시오",type:"warning",showIcon:!0,style:{fontSize:x.fontSize,border:0,background:Y.colorFormat.site.yellow01,color:"var(--text-primary)",padding:"4px 10px",borderRadius:4}})]})})}),l==="nrml"?e.jsx(Fe.RealGridReact,{ref:d,autoGenerateField:!0,onInitialized:G}):e.jsx(Fe.RealTreeReact,{ref:d,autoGenerateField:!1,onInitialized:G})]}),a?.container?.page&&e.jsx(Ve,{currentPage:pe.currentPage,totalPages:pe.totalPages,pageSize:a?.pagingOption?.pageSize,totalData:pe.totalData,onPageChange:ae,pageSizeOptions:a?.pagingOption?.pageSizeOptions,gridRef:d})]})}),Ct=yt,kt=r.memo(({title:l,border:n,children:u,titleChildren:i})=>{const a=r.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return e.jsxs(he,{type:"vertical",children:[e.jsx(Ce,{title:l,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:i}),e.jsx(je,{border:!1,children:e.jsx(o.ConfigProvider,{theme:a,children:u})})]})}),he=({type:l="horizontal",layoutAlign:n="left",verticalAlign:u,className:i,style:a,children:g})=>e.jsx("div",{style:a,className:`bwgview-content-layout ${l=="horizontal"?"hz-layout":"vt-layout"} layout-${n} ${u&&`vertical-${u}`} ${i||""}`,children:g}),De=(l,n)=>{const u=window.innerWidth,i=window.innerHeight,a=Math.min(Math.max(l.x,0),Math.max(0,u-n.width)),g=Math.min(Math.max(l.y,0),Math.max(0,i-n.height));return{x:Math.round(a),y:Math.round(g)}},vt=({children:l,open:n,onCancel:u,maskClosable:i=!1,keyboard:a=!1,width:g=520,height:p=400,title:F,buttons:C,zIndex:j=1e3,...S})=>{const A=r.useRef(null),d=typeof g=="number"?g:520,B=typeof p=="number"?p:400,[M,I]=r.useState(d),[x,V]=r.useState(B),s=r.useMemo(()=>{const R=Math.max(0,(window.innerWidth-d)/2),E=Math.max(0,(window.innerHeight-B)/2);return{x:Math.round(R),y:Math.round(E)}},[d,B]),[v,b]=r.useState(s);r.useEffect(()=>{typeof g=="number"&&I(g),typeof p=="number"&&V(p)},[g,p]);const z=(R,E)=>{const Q=De({x:E.x,y:E.y},{width:M,height:x});b(Q)},N=(R,E,Q,k,L)=>{const q={width:Math.round(parseInt(Q.style.width,10)),height:Math.round(parseInt(Q.style.height,10))},Z=De(L,q);I(q.width),V(q.height),b(Z)},U=()=>A.current??document.body;if(r.useEffect(()=>{if(!n||!a)return;const R=E=>{E.key==="Escape"&&(E.stopPropagation(),E.preventDefault(),u?.(E))};return window.addEventListener("keydown",R,!0),()=>{window.removeEventListener("keydown",R,!0)}},[n,a,u]),!n)return null;const w=R=>{R.key==="Escape"&&a&&(R.stopPropagation(),R.preventDefault(),u?.(R))};return e.jsxs("div",{style:{position:"fixed",inset:0,zIndex:j},onKeyDown:w,tabIndex:-1,children:[e.jsx("div",{onClick:i?R=>u?.(R):void 0,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.45)",zIndex:0}}),e.jsxs(He.Rnd,{className:"bwg-modal",size:{width:M,height:x},position:v,bounds:"window",minWidth:400,minHeight:300,onDragStop:z,onResizeStop:N,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:8,boxShadow:"0 4px 12px rgba(0,0,0,0.15)",overflow:"visible",position:"absolute",zIndex:1},children:[e.jsx("div",{className:"bwg-modal-content",style:{overflow:"hidden",borderRadius:8,height:"100%"},children:e.jsx(Ie,{getPopupContainer:U,children:e.jsx(he,{style:{height:"100%"},children:e.jsxs(je,{className:"w100",children:[e.jsx("div",{className:"drag-handle",children:e.jsx(Ce,{title:F||"",icons:{type:"antd"},children:e.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[C,e.jsx(ue.BwgButton,{type:"default",className:"bwg-btn",onClick:R=>{R.stopPropagation(),u?.(R)},children:"닫기"})]})})}),e.jsx("div",{className:"rnd-cancel",style:{height:"calc(100% - 60px)",overflow:"auto"},children:l})]})})})}),e.jsx("div",{ref:A,className:"bwg-modal-portal-root",style:{position:"relative"}})]})]})},Ee=(l,n)=>{const u=window.innerWidth,i=window.innerHeight,a=Math.min(Math.max(l.x,0),Math.max(0,u-n.width)),g=Math.min(Math.max(l.y,0),Math.max(0,i-n.height));return{x:Math.round(a),y:Math.round(g)}},bt=({buttons:l,onClose:n})=>{const u=(l||[]).filter(i=>i?.visible!==!1);return u.length===0?e.jsx(o.Button,{type:"default",className:"bwg-btn popup-btn",onClick:n,children:"닫기"}):e.jsxs("div",{style:{display:"flex",gap:6},children:[u.map(i=>e.jsx(o.Button,{type:i.type,disabled:!!i.disabled,loading:i.loading,className:i.className||"bwg-btn popup-btn",style:i.style,icon:i.icon,onClick:i.onClick,children:i.label},i.id)),e.jsx(o.Button,{type:"default",className:"bwg-btn popup-btn",onClick:n,children:"닫기"})]})},jt=({popup:l,popupEvent:n,onClose:u,children:i,buttons:a})=>{const g=r.useRef(null),p=l?.popupTitle||"팝업",F=l?.width||800,C=l?.height||600,[j,S]=r.useState(F),[A,d]=r.useState(C),B=r.useMemo(()=>{const b=Math.max(0,(window.innerWidth-F)/2),z=Math.max(0,(window.innerHeight-C)/2);return{x:Math.round(b),y:Math.round(z)}},[F,C]),[M,I]=r.useState(B),x=(b,z)=>{const N=Ee({x:z.x,y:z.y},{width:j,height:A});I(N)},V=(b,z,N,U,w)=>{const R={width:Math.round(parseInt(N.style.width,10)),height:Math.round(parseInt(N.style.height,10))},E=Ee(w,R);S(R.width),d(R.height),I(E)},s=()=>g.current??document.body,v=typeof l?.zIndex=="number"?l.zIndex:3e3;return e.jsxs("div",{style:{position:"fixed",inset:0,zIndex:v},children:[e.jsx("div",{onClick:u,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),e.jsxs(He.Rnd,{className:"bwg-popup",size:{width:j,height:A},position:M,bounds:"window",minWidth:400,minHeight:300,onDragStop:x,onResizeStop:V,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:20,boxShadow:"0 4px 15px rgba(0,0,0,0.25)",overflow:"visible",position:"absolute",zIndex:1},children:[e.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:e.jsx(Ie,{getPopupContainer:s,children:e.jsx(he,{type:"vertical",children:e.jsx(o.Card,{className:"popup-drag-container",title:e.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:p}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:e.jsx(bt,{buttons:a,onClose:()=>l?.close?.()||u?.()}),children:e.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:e.jsx(ee.SearchBoxProvider,{children:i})})})})})}),e.jsx("div",{ref:g,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},St=({children:l,className:n,style:u,marginBottom:i=8,gutter:a=[16,8],...g})=>e.jsx(o.Row,{...g,gutter:a,className:`bwg-row ${n}`,style:{marginBottom:`${i}px`,...u},children:l}),Bt=({children:l})=>e.jsx("div",{style:{height:"100%",padding:"20px 30px 26px"},children:e.jsx("div",{style:{width:"100%",height:"100%",border:"1px solid #ddd",borderRadius:"15px",background:"#fff"},children:l})}),Mt=({rowKey:l="id",columns:n,dataSource:u,loading:i=!1,rowSelection:a,size:g="middle",pagination:p=!1,...F})=>e.jsx(o.Table,{rowKey:l,columns:n,dataSource:u,loading:i,rowSelection:a,size:g,pagination:p,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...F}),It=l=>{const{type:n="card",animated:u=!0,...i}=l;return e.jsx(o.Tabs,{type:n,animated:u,...i})},$e=(l,n,u=null)=>{for(let i=0;i<l.length;i++){const a=l[i];if(a.key===n)return{node:a,ctx:{parent:u,index:i,siblings:l}};if(a.children?.length){const g=$e(a.children,n,a);if(g.node)return g}}return{node:null,ctx:null}},Oe=(l,n)=>{if(!l.children)return!1;for(const u of l.children)if(u.key===n||Oe(u,n))return!0;return!1};function At({open:l,onClose:n}){const{nodes:u,rootIds:i,addFolder:a,editFolder:g,removeFolder:p,removeMenu:F,moveNode:C}=te.useFavoriteStore(),j=r.useRef(null),[S,A]=r.useState([]),[d,B]=r.useState([]),[M,I]=r.useState(""),[x,V]=r.useState("ADD"),[s,v]=r.useState(!1),[b,z]=r.useState("");r.useEffect(()=>{l&&B(i)},[l]),r.useEffect(()=>{const w=N(u,i);A(w)},[u]),r.useEffect(()=>{s&&b&&(j.current.setFieldValue("prntBkmkId",b),j.current.setFieldValue("prntBkmkNm",u[b]?.bkmkNm??"-")),s&&x==="EDIT"&&(j.current.setFieldValue("bkmkId",b),j.current.setFieldValue("bkmkNm",u[b]?.bkmkNm)),!s&&x=="ADD"&&B(w=>[...w,b]),!s&&j.current&&(z("-"),j.current.resetFields())},[s,x,b,u]);const N=(w,R)=>{const E=(Q,k="-")=>{const L=w[Q];if(!L)return null;const q={key:L.bkmkId,type:L.type,title:L.type==="F"?L.bkmkNm:L.menuNm?`${L.menuNm} (${L.menuId})`:L.menuId,parentId:k,sortOrdr:L.sortOrdr??0};if(L.type==="F"){const O=(L.children??[]).map(oe=>E(oe,L.bkmkId)).filter(Boolean);return{...q,children:O}}return q};return R.map(Q=>E(Q,"-")).filter(Boolean)},U=()=>{if(V("ADD"),!M){z("-"),v(!0);return}const w=u[M];if(!w){z("-"),v(!0);return}w.type==="F"?z(w.bkmkId):z(w.prntBkmkId),v(!0)};return e.jsxs(o.ConfigProvider,{theme:{components:{Modal:{wireframe:!0},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:[e.jsxs(o.Modal,{open:l,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:12,paddingBottom:12}},title:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:e.jsx(o.Typography.Text,{style:{fontSize:18},children:"북마크 관리"})}),onCancel:n,children:[e.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[e.jsx(o.Button,{type:"primary",variant:"solid",className:"bwg-btn",icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsxs("g",{"clip-path":"url(#clip0_1298_1781)",children:[e.jsx("path",{d:"M9.3002 14.26H13.5702C14.4002 14.26 15.0702 13.59 15.0702 12.76V7.45999C15.0702 6.89999 14.6102 6.43999 14.0502 6.43999H8.8302L7.7102 3.48999H4.1702C3.6402 3.48999 3.2002 3.92999 3.2002 4.45999V8.10999",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M8.18018 4.58997H14.0502C14.6102 4.58997 15.0702 5.04997 15.0702 5.60997V8.25997",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M5.43018 9.52002V14.52",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M7.93018 12.01H2.93018",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1298_1781",children:e.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),style:{padding:"0 10px",boxShadow:"none"},onClick:U,children:"새 폴더"}),e.jsx("div",{children:e.jsxs(o.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:[e.jsx(o.Tooltip,{title:"펼치기",children:e.jsx(o.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const w=Object.values(u).filter(R=>R.type==="F").map(R=>R.bkmkId);B(w)}})}),e.jsx(o.Tooltip,{title:"접기",children:e.jsx(o.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28,marginLeft:5},onClick:()=>B([])})})]})})]}),e.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #e0e0e0",borderRadius:8,padding:10},children:[S.length==0&&e.jsx(o.Empty,{description:e.jsxs(o.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",e.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),e.jsx(o.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:w,dropPosition:R})=>{const E=w.type==="F";return R===0?E:!0},onDrop:w=>{const{dragNode:R,node:E,dropPosition:Q,dropToGap:k}=w;if(R.key===E.key||Oe(R,E.key))return;let L,q;if(k){const O=$e(S,E.key).ctx,oe=O.index;L=O.parent?O.parent.key:"-",q=Q>0?oe+1:oe}else{if(E.type!=="F")return;const O=E.children||[];L=E.key,q=O.length}const Z=Y.getUserId();if(R.type==="F")C({bkmkId:R.key,newPrntBkmkId:L,sortOrdr:q,userId:Z}).catch(()=>{o.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(L==="-"){o.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}C({bkmkId:R.key,newPrntBkmkId:L,sortOrdr:q,userId:Z}).catch(()=>{o.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}k===!1&&B(O=>Array.from(new Set([...O,E.key])))},showLine:!0,treeData:S,selectedKeys:[M],expandedKeys:d,onExpand:B,onSelect:w=>I(w[0]),titleRender:w=>e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("span",{children:[w.type==="F"?"📁":"📄"," ",w.title,w.isNew?e.jsx(o.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),e.jsxs("span",{style:{display:"inline-flex",gap:8},children:[w.type==="F"&&e.jsxs(e.Fragment,{children:[e.jsx(W.PlusOutlined,{style:{opacity:.8},onClick:()=>{V("ADD"),z(w.key),v(!0)}}),e.jsx(W.EditOutlined,{style:{opacity:.8},onClick:()=>{V("EDIT"),z(w.key),v(!0)}})]}),e.jsx(W.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{w.type==="F"?o.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>p(w.key)}):o.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>F(w.key)})}})]})]})})]})]}),e.jsx(o.ConfigProvider,{theme:{components:{Modal:{titleColor:x==="ADD"?"var(--primary-color)":"#ff6767",headerBg:x==="ADD"?"var(--drawer-header-bg)":"#fff0f0",titleFontSize:18},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:e.jsx(o.Modal,{title:e.jsx(e.Fragment,{children:e.jsxs(o.Typography.Text,{style:{fontSize:16,display:"flex",alignItems:"center",gap:6},children:[x==="ADD"?e.jsx("span",{className:"bookmark-folder-modal-icon ico-new-folder"}):e.jsx("span",{className:"bookmark-folder-modal-icon ico-edit-folder"}),"폴더",x==="ADD"?" 추가":"명 수정"]})}),open:s,okText:"저장",onOk:()=>{const w=j.current.getFieldValue("bkmkNm"),R=Y.getUserId();if(x==="ADD"){const E=__SYS_CD__??"KH",Q=j.current.getFieldValue("prntBkmkId");a(w,Q,E,R).then(()=>{v(!1)})}else{const E=j.current.getFieldValue("bkmkId");g(E,R,w).then(()=>{v(!1)})}},centered:!0,width:400,onCancel:()=>v(!1),okButtonProps:{className:"bwg-btn"},cancelButtonProps:{className:"bwg-btn"},styles:{body:{padding:20}},children:e.jsxs(ue.BwgForm,{ref:j,style:{padding:0},children:[e.jsx(ue.BwgInput,{itemProps:{name:x==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),e.jsx(ue.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:b==="-"||x==="EDIT"},inputProps:{disabled:!0}}),e.jsx(ue.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function Vt({triggerIcon:l}){const[n,u]=r.useState(!1),[i,a]=r.useState(""),[g,p]=r.useState(null),[F,C]=r.useState([]),[j,S]=r.useState([]),[A,d]=r.useState(!1),[B,M]=r.useState(!1),[I,x]=r.useState(!1),[V,s]=r.useState(null);te.useFavoriteStore(D=>D.treeNodes);const{nodes:v,getPrntBkmkIdByMenuId:b,getNodeByMenuId:z,isMenuBookmarked:N,removeMenuByMenuId:U,addMenuToFolder:w,convertToAntTreeData:R}=te.useFavoriteStore(),E=te.useFavoriteStore(D=>D.rootIds),Q=r.useMemo(()=>R(v,E,i,!0),[v,E,i]),k=te.useMenuViewStore(D=>D.activeMenuItem??{menuId:"",menuNm:""}),L=r.useMemo(()=>{if(!k?.menuId)return"";const D=z(k.menuId);if(!D)return"";if(D.fullPath)return D.fullPath;const G=re=>{const J=v[re];if(!J)return"";if(J.prntBkmkId==="-")return`${J.bkmkNm||k?.menuNm}`;const ne=G(J.prntBkmkId);return ne?`${ne} > ${J.bkmkNm||k?.menuNm}`:J.bkmkNm||k?.menuNm};return console.log("bookmarkNode ::::: ",D),console.log(G(D.bkmkId)),G(D.bkmkId)},[k?.menuId,z,v]);r.useEffect(()=>{n&&k?.menuId&&N(k.menuId)?S([b(k.menuId)]):n&&k?.menuId&&!N(k.menuId)?S(E):(S([]),C([]),s(null),x(!1))},[n,k?.menuId,N,b]),r.useEffect(()=>{if(!I||!k?.menuId)return;const D=b(k.menuId);!D||!v[D]||(a(""),C([D]),s(D))},[I,k?.menuId,v,b]);const q=(D,G)=>{w(D,G).then(re=>{console.log("AddMenuToFolder ::::: ",re),re||S(J=>J.includes(D)?J:[...J,D])})},Z=D=>{U(D)},O=async D=>{k?.menuId&&(await U(k.menuId),await w(D,k),x(!1),s(null),S(G=>G.includes(D)?G:[...G,D]))},oe=()=>e.jsxs("div",{className:"bookmark-popover-wrap",style:{width:360},children:[e.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:e.jsxs(o.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[e.jsxs(o.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[e.jsx(o.Button,{type:"text",icon:e.jsx(W.ArrowLeftOutlined,{}),onClick:()=>x(!1),style:{width:26,height:26}}),"폴더 변경"]}),k&&e.jsxs(o.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",e.jsx("b",{children:k.menuNm})," ",e.jsxs("span",{style:{color:"#939393"},children:["(",k.menuId,")"]})]})]})}),ae(),e.jsxs("div",{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee",display:"flex",justifyContent:"flex-end",gap:8},children:[e.jsx(o.Button,{type:"default",className:"bwg-btn",onClick:()=>{x(!1),s(null)},children:"취소"}),e.jsx(o.Button,{type:"primary",className:"bwg-btn",disabled:!V,onClick:()=>V&&O(String(V)),children:"이동"})]})]}),ae=()=>e.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:"15px 20px 20px"},children:[e.jsxs(o.Space,{style:{width:"100%",marginBottom:12,display:"flex",justifyContent:"space-between",columnGap:10},children:[e.jsx(o.Input,{placeholder:"검색(폴더명)",prefix:e.jsx(W.SearchOutlined,{}),allowClear:!0,value:i,onChange:D=>a(D.target.value),style:{width:"250px",height:28}}),e.jsx(o.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5},children:[e.jsx(o.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const D=Object.values(v).filter(G=>G.type==="F").map(G=>G.bkmkId);S(D)},title:"모두 확장"}),e.jsx(o.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>S([]),title:"모두 축소"})]})})]}),Q.length===0?e.jsx(o.Empty,{description:e.jsxs(o.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",e.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:o.Empty.PRESENTED_IMAGE_SIMPLE}):e.jsx(o.Tree,{blockNode:!0,showLine:!0,treeData:Q,selectedKeys:F,expandedKeys:j,onExpand:S,onSelect:D=>{C(D),s(D[0])},autoExpandParent:!0,titleRender:D=>{const G=String(D.key),re=g===G;return e.jsxs("div",{onMouseEnter:()=>p(G),onMouseLeave:()=>p(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsx("div",{children:D.title}),!N(k?.menuId)&&k&&re&&e.jsx(o.ConfigProvider,{theme:{components:{Button:{defaultColor:"rgba(0,0,0,0.5)",defaultHoverColor:"rgba(0,0,0,0.8)"}}},children:e.jsx(o.Button,{size:"small",type:"link",onClick:J=>{J.stopPropagation(),q(G,k)},style:{color:"rgba(0,0,0,0.5)"},children:"+ 현재화면 추가"})})]})}})]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Popover,{open:n&&!A,onOpenChange:u,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,boxShadow:"0 12px 32px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.2)",background:"#ffffff",zIndex:1e3}},content:I?oe():e.jsxs("div",{style:{width:360},children:[e.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:e.jsxs(o.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[e.jsxs(o.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[e.jsx("span",{className:`bookmark-title-icon ${N(k?.menuId)?"saved":"add"}`}),"북마크"," ",N(k?.menuId)?"저장됨":"추가"]}),k&&e.jsxs(o.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",e.jsx("b",{children:k.menuNm})," ",e.jsxs("span",{style:{color:"#939393"},children:["(",k.menuId,")"]})]})]})}),N(k?.menuId)?e.jsxs("div",{style:{padding:"10px 12px",margin:"15px 20px",borderRadius:8,backgroundColor:"#f7f6fB"},children:[e.jsx(o.Typography.Text,{type:"secondary",style:{fontSize:13},children:"저장 위치"}),e.jsx("div",{style:{marginTop:4},children:`📁 > ${L}`||"알 수 없음"})]}):ae(),e.jsxs(he,{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee"},layoutAlign:"right",children:[k&&!N(k.menuId)?e.jsx(o.Button,{style:{padding:"0 10px"},type:"primary",className:"bwg-btn",icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M3 9H15M9 3V15",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>{const D=String(F[0]);let G="-";D&&v[D]&&(G=v[D].type=="M"?v[D].prntBkmkId:D),q(G,k)},children:"추가"}):e.jsxs(he,{layoutAlign:"between",children:[e.jsx(o.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsxs("g",{"clip-path":"url(#clip0_1289_1745)",children:[e.jsx("path",{d:"M13.9198 6.57H8.69982L7.57982 3.62H4.03982C3.50982 3.62 3.06982 4.06 3.06982 4.59V12.89C3.06982 13.72 3.73982 14.39 4.56982 14.39H13.4398C14.2698 14.39 14.9398 13.72 14.9398 12.89V7.59C14.9398 7.03 14.4798 6.57 13.9198 6.57Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M8.0498 4.72H13.9198C14.4798 4.72 14.9398 5.18 14.9398 5.74V8.39",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1289_1745",children:e.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),onClick:()=>x(!0),children:"폴더 변경"}),e.jsx(o.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},color:"danger",variant:"solid",icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M7.5 7.5V12M10.5 7.5V12M13.5 4.5V13.5C13.5 14.3284 12.8284 15 12 15H6C5.17157 15 4.5 14.3284 4.5 13.5V4.5M3 4.5H15M11.25 4.5V3.75C11.25 2.92157 10.5784 2.25 9.75 2.25H8.25C7.42157 2.25 6.75 2.92157 6.75 3.75V4.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>Z(k.menuId),children:"삭제"})]}),e.jsx(o.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px",marginLeft:5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsx("path",{d:"M8.25 2.25H9.75C10.1642 2.25 10.5 2.58579 10.5 3V3.42659C10.5 3.74744 10.7153 4.02619 11.0117 4.14921C11.3081 4.27229 11.6532 4.22538 11.8802 3.99842L12.182 3.69668C12.4748 3.40379 12.9497 3.40379 13.2426 3.69668L14.3033 4.75734C14.5962 5.05023 14.5962 5.52511 14.3033 5.818L14.0016 6.1197C13.7746 6.34667 13.7277 6.69185 13.8508 6.98831C13.9738 7.28465 14.2526 7.5 14.5734 7.5L15 7.5C15.4142 7.5 15.75 7.83579 15.75 8.25V9.75C15.75 10.1642 15.4142 10.5 15 10.5H14.5734C14.2526 10.5 13.9738 10.7153 13.8508 11.0117C13.7277 11.3081 13.7746 11.6533 14.0016 11.8803L14.3033 12.182C14.5962 12.4749 14.5962 12.9497 14.3033 13.2426L13.2426 14.3033C12.9497 14.5962 12.4749 14.5962 12.182 14.3033L11.8803 14.0016C11.6533 13.7746 11.3081 13.7277 11.0117 13.8508C10.7153 13.9738 10.5 14.2526 10.5 14.5734V15C10.5 15.4142 10.1642 15.75 9.75 15.75H8.25C7.83579 15.75 7.5 15.4142 7.5 15V14.5734C7.5 14.2526 7.28465 13.9738 6.98831 13.8508C6.69185 13.7277 6.34667 13.7746 6.1197 14.0016L5.81799 14.3033C5.5251 14.5962 5.05022 14.5962 4.75733 14.3033L3.69667 13.2426C3.40378 12.9497 3.40378 12.4749 3.69667 12.182L3.99842 11.8802C4.22538 11.6532 4.27229 11.3081 4.14921 11.0117C4.02619 10.7153 3.74744 10.5 3.42659 10.5H3C2.58579 10.5 2.25 10.1642 2.25 9.75V8.25C2.25 7.83579 2.58579 7.5 3 7.5L3.42657 7.5C3.74743 7.5 4.02619 7.28466 4.14922 6.98832C4.2723 6.69188 4.22539 6.34671 3.99842 6.11975L3.69668 5.818C3.40379 5.52511 3.40379 5.05024 3.69668 4.75734L4.75734 3.69668C5.05023 3.40379 5.52511 3.40379 5.818 3.69668L6.11974 3.99842C6.34671 4.22539 6.69187 4.2723 6.98832 4.14922C7.28466 4.02619 7.5 3.74743 7.5 3.42657V3C7.5 2.58579 7.83579 2.25 8.25 2.25Z",stroke:"currentColor"}),e.jsx("path",{d:"M10.5 9C10.5 9.82843 9.82843 10.5 9 10.5C8.17157 10.5 7.5 9.82843 7.5 9C7.5 8.17157 8.17157 7.5 9 7.5C9.82843 7.5 10.5 8.17157 10.5 9Z",stroke:"currentColor"})]}),onClick:()=>{M(n),d(!0)},children:"관리"})]})]}),children:e.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:l})}),e.jsx(At,{open:A,onClose:()=>{d(!1),B&&u(!0)}})]})}const Nt=l=>{const{searchBoxRef:n}=ee.useSearchBox();return e.jsx(Ae,{ref:n,...l})},Ge=r.forwardRef(({children:l,searchBox:n,title:u,preRenderEvents:i=[],postRenderEvents:a=[],loading:g=!1,error:p=null,grantEvent:F={},customEvent:C={},buttons:j},S)=>{const{user:A,spacingSize:d}=te.useUserStore(),{activeMenuId:B}=te.useMenuViewStore(),M=ee.useBwgView(),{loadFavoritesIfNeeded:I,isMenuBookmarked:x}=te.useFavoriteStore(),{loading:V}=te.useLoadingStore(),s=M?.menuId,v=M?.menuItem||null,{resetForm:b,setDefaultValue:z,searchBoxRef:N}=ee.useSearchBox(),U=ee.useSizeConfig();r.useImperativeHandle(S,()=>({menuId:s}),[s]);const[w,R]=r.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),{openCorePopup:E}=ee.usePopup(),Q=async()=>{if(i.length===0){R(P=>({...P,preRenderComplete:!0}));return}try{for(const P of i)await P();R(P=>({...P,preRenderComplete:!0}))}catch(P){R($=>({...$,error:P instanceof Error?P.message:"사전 렌더링 실패",preRenderComplete:!0}))}},k=async()=>{if(a.length===0){R(P=>({...P,postRenderComplete:!0}));return}try{for(const P of a)await P();R(P=>({...P,postRenderComplete:!0}))}catch(P){R($=>({...$,error:P instanceof Error?P.message:"사후 렌더링 실패",postRenderComplete:!0}))}};r.useEffect(()=>{if(w.isInitialized)return;(async()=>{try{await Q(),R($=>({...$,isInitialized:!0,loading:!1}))}catch($){console.error("BwgView 초기화 실패:",$),R(ie=>({...ie,isInitialized:!0,loading:!1}))}})()},[]),r.useEffect(()=>{A?.userId&&I(A.userId)},[I,A?.userId]);const L=r.useMemo(()=>B===s,[B,s]),q=ee.useServiceCodeValue("AUTH_BTNS"),[Z,O]=r.useState({}),[oe,ae]=r.useState(!1),[D,G]=r.useState(null),re=r.useCallback(async()=>{if(!L||!s||!q){O({}),ae(!1);return}if(v?.appCd==="CM"){O({}),ae(!1);return}try{ae(!0),G(null);const P=await Y.callService(q,{crprCd:A?.crprCd,userId:A?.userId,menuId:s,sysCd:__SYS_CD__},{});if(P?.data&&Array.isArray(P.data)){const $={};P.data.forEach(ie=>{const ce=ie.grpId?.toUpperCase()||"DEFAULT";$[ce]||($[ce]=[]),$[ce].push(ie)}),Object.keys($).forEach(ie=>{$[ie].sort((ce,Se)=>ce.btnSq-Se.btnSq)}),O($)}else O({})}catch(P){console.error("버튼 권한 조회 실패:",P),G("버튼 권한을 조회하는 중 오류가 발생했습니다."),O({})}finally{ae(!1)}},[L,s,q,A?.crprCd,A?.userId,v?.appCd]),J=r.useCallback(P=>{if(v?.appCd==="CM")return[];const $=P.toUpperCase();return Z[$]||[]},[Z,v?.appCd]);r.useEffect(()=>{re()},[re]);const ne=r.useMemo(()=>L&&s?{menuId:s,grpId:"CUSTOM"}:!1,[L,s]),de=r.useMemo(()=>L&&s?{menuId:s,grpId:"DEFAULT"}:!1,[L,s]);r.useEffect(()=>{w.isInitialized&&w.preRenderComplete&&!w.isReady&&setTimeout(async()=>{await k(),R($=>({...$,isReady:!0}))},100)},[w.isInitialized,w.preRenderComplete,w.isReady]),r.useEffect(()=>{p&&R(P=>({...P,error:p}))},[p]),r.useEffect(()=>{n&&n.defaultValue&&N?.current&&z(n.defaultValue)},[n,N,z]),r.useEffect(()=>{if(!n)return;const P=$=>{$.ctrlKey&&($.key==="d"||$.key==="D")&&($.preventDefault(),$.stopPropagation(),b()),$.ctrlKey&&$.key==="s"&&($.preventDefault(),$.stopPropagation(),j?.grant?.find(ie=>ie.id==="search")?.onClick?.())};return window.addEventListener("keydown",P),()=>{window.removeEventListener("keydown",P)}},[n,b]);const fe=()=>e.jsxs("div",{className:"bwgview-header-container",children:[e.jsxs("div",{className:"bwgview-header",children:[e.jsx("div",{className:"bwgview-header-left",children:pe.LEFT}),e.jsx("div",{className:"bwgview-header-right",children:pe.RIGHT})]}),n&&e.jsx(Nt,{reqRows:n.reqRows,subRows:n.subRows,border:n.border,labelDisplay:n.labelDisplay,header:n.header})]});if(r.useEffect(()=>{},[A,v]),w.error||p)return e.jsx("div",{style:{padding:"24px"},children:e.jsx(o.Alert,{message:"오류 발생",description:w.error||p,type:"error",showIcon:!0})});const me=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:e.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),ke=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:e.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),xe=P=>e.jsx(W,{component:me,...P}),le=P=>e.jsx(W,{component:ke,...P}),pe={LEFT:e.jsx("div",{className:"bwgview-header-left",children:e.jsxs(o.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[e.jsxs(o.Space,{children:[v&&e.jsx(Vt,{triggerIcon:x(v.menuId)?e.jsx(xe,{className:"bookmark-icon",style:{color:"#faad14"}}):e.jsx(le,{className:"bookmark-icon"})}),e.jsxs(o.Space.Compact,{style:{alignItems:"center"},children:[e.jsx("span",{className:"pageMenuNm",children:(()=>{let P="";return u?.useMenuTitle&&v?P=v.menuNm:u?.text?P=u.text:v&&(P=v.menuPrntId==="CM00"?v.menuNm.substring(v.menuNm.indexOf(" ")+1):v.menuNm),u?.prefix&&(P=`${u.prefix} ${P}`),u?.suffix&&(P=`${P} ${u.suffix}`),P})()}),v?.menuNo&&e.jsx(o.Tag,{className:"page-num-tag",children:v?.menuNo}),e.jsx(o.Tooltip,{title:"도움말",color:"geekblue",children:e.jsx(o.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:e.jsx(W.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),e.jsx(o.Tooltip,{title:"게시판",color:"geekblue",children:e.jsx(o.Button,{variant:"text",type:"text",onClick:()=>E("CORE_REPORT"),icon:e.jsx(W.BugFilled,{style:{color:"#1890ff"}})})})]})]}),v?.prgrId&&Y.isLocal&&e.jsx(o.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:e.jsx(Xe,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:v?.prgrId})})]})}),RIGHT:e.jsx("div",{className:"bwgview-header-right",children:e.jsx(o.ConfigProvider,{theme:{components:{Space:{padding:8},Divider:{verticalMarginInline:0}}},children:e.jsxs(o.Space,{children:[j?.custom&&j.custom.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(o.Flex,{gap:8,children:e.jsx(Me,{checkAuth:ne,buttons:j.custom,gap:8})}),e.jsx(o.Divider,{type:"vertical"})]}),e.jsx(o.Flex,{gap:8,className:"permission-buttons",children:e.jsx(Me,{checkAuth:de,buttons:j?.grant||[],gap:8})}),n&&e.jsxs(e.Fragment,{children:[e.jsx(o.Divider,{type:"vertical"}),e.jsx(o.Tooltip,{placement:"bottom",color:Y.colorFormat.default.gray05,title:e.jsxs(e.Fragment,{children:["검색영역 초기화",e.jsx("br",{}),"단축키 : ",e.jsx(o.Tag,{children:"Ctrl"})," + ",e.jsx(o.Tag,{children:"D"})]}),children:e.jsx(ue.BwgButton,{icon:e.jsx(W.ClearOutlined,{style:{color:Y.colorFormat.site.purple05}}),onClick:()=>{b()}})})]})]})})})};return e.jsx(ee.MenuButtonProvider,{buttonPermissions:Z,isLoadingPermissions:oe,permissionsError:D,refreshPermissions:re,getButtonPermissions:J,children:e.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column",gap:d===0?8:d===1?14:20,padding:d===0?"8px 12px":d===1?"14px 20px":"20px 30px 26px"},children:[fe(),e.jsx("div",{className:"bwgview-content",children:e.jsxs("div",{className:"bwgview-content",children:[e.jsx(o.ConfigProvider,{componentSize:U.componentSize,theme:{token:{fontSize:U.fontSize}},children:e.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",fontSize:`${U.fontSize}px`},children:l})}),(w.loading||g||V)&&e.jsx(Je.LoadingContainer,{dimStyle:"light",text:V?"처리 중...":"화면 로드 중..."})]})})]})})});Ge.displayName="BwgView";const Rt=({children:l,customTheme:n,customComponentSize:u="middle"})=>{const i={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,padding:16,margin:16,borderRadius:6,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:o.theme.defaultAlgorithm},a={...i,...n,token:{...i.token,...n?.token}};return e.jsx(o.ConfigProvider,{locale:Le,theme:a,componentSize:u,space:{size:u},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:l})},Ft="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9289)'%3e%3cpath%20d='M27.3705%2010.9919C28.5405%2010.9919%2029.489%2010.0434%2029.489%208.87338C29.489%207.70337%2028.5405%206.75488%2027.3705%206.75488C26.2004%206.75488%2025.252%207.70337%2025.252%208.87338C25.252%2010.0434%2026.2004%2010.9919%2027.3705%2010.9919Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.3053%2017.2998V32.3098H24.4248V17.2998'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M27.3701%2032.31V23.3135'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2305%2022.1925V17.642V15.6945C22.2305%2014.3075%2023.3515%2013.1865%2024.7385%2013.1865H29.9825C31.3695%2013.1865%2032.4905%2014.3075%2032.4905%2015.6945V17.642V22.1925'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.2519%2021.4229H18.6199C19.1044%2021.4229%2019.5034%2021.8219%2019.5034%2022.3064V24.4154H16.3779V22.3064C16.3779%2021.8219%2016.7769%2021.4229%2017.2614%2021.4229H17.2519Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.8339%2024.4062H15.0294C14.6254%2024.4062%2014.2979%2024.7338%2014.2979%2025.1377V31.6832C14.2979%2032.0872%2014.6254%2032.4147%2015.0294%2032.4147H20.8339C21.2378%2032.4147%2021.5654%2032.0872%2021.5654%2031.6832V25.1377C21.5654%2024.7338%2021.2378%2024.4062%2020.8339%2024.4062Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.8252%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.0391%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.71875%2014.1642H8.53075C9.03425%2014.1642%209.49025%2013.8602%209.68025%2013.4042L10.3263%2011.8652'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.4991%205.54803L12.2266%2011.8655H17.5371L19.8836%205.51953L17.4991%205.54803Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2017%2016.4639H6.57421C5.97571%2016.4639%205.49121%2015.9794%205.49121%2015.3809C5.49121%2013.4334%207.06821%2011.8564%209.01571%2011.8564H20.3492'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.56738%2032.4805H32.2909'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9289'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Pt="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9314)'%3e%3cpath%20d='M15.1807%2019.3994L18.7717%2029.7164'%20stroke='%23FF8CC3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2010.7443%2014.7724%2013.2618%2022.0209'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2016.2448%2012.8534%2018.7718%2020.1019'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8257%2016.71C22.2202%2012.112%2017.1947%209.67999%2012.5967%2011.276C7.99871%2012.8815%205.56671%2017.907%207.16271%2022.505L7.67571%2023.968L7.88471%2023.892C7.93221%2022.7235%208.67321%2021.6405%209.85121%2021.232C11.0292%2020.8235%2012.2737%2021.2035%2013.0432%2022.0965L13.4422%2021.954C13.4897%2020.7855%2014.2307%2019.7025%2015.4087%2019.294C16.5867%2018.8855%2017.8312%2019.2655%2018.6007%2020.1585L18.9997%2020.016C19.0472%2018.8475%2019.7882%2017.7645%2020.9662%2017.356C22.1442%2016.9475%2023.3887%2017.3275%2024.1582%2018.2205L24.3577%2018.154L23.8447%2016.691L23.8257%2016.71Z'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.37%2015.4193C23.636%2015.4858%2023.9115%2015.5238%2024.1965%2015.5238C26.068%2015.5238%2027.5785%2014.0038%2027.5785%2012.1418C27.5785%2010.2798%2026.0585%208.75977%2024.1965%208.75977C22.3345%208.75977%2020.8145%2010.2798%2020.8145%2012.1418'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24.2061%206.12784V5.00684'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.8641%207.79018L19.1611%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5381%2016.4736L29.2411%2017.1766'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.21%2012.1318H31.331'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5469%207.79018L29.2404%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29.3355%2029.8213H14.2305'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.2302%2029.8213L10.3447%2025.2803'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8527%2028.4531L7.76074%2032.9941'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8447%2029.8213L27.4072%2032.9943'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9314'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Tt="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9273)'%3e%3cpath%20d='M25.9254%2020.8996C27.5151%2020.8996%2028.8039%2019.6108%2028.8039%2018.0211C28.8039%2016.4313%2027.5151%2015.1426%2025.9254%2015.1426C24.3356%2015.1426%2023.0469%2016.4313%2023.0469%2018.0211C23.0469%2019.6108%2024.3356%2020.8996%2025.9254%2020.8996Z'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M31.4825%2032.4711V25.9066C31.4825%2024.5671%2030.485%2023.4746%2029.2595%2023.4746H22.6C21.3745%2023.4746%2020.377%2024.5671%2020.377%2025.9066'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M25.2696%2026.7334H14.2686L16.5106%2032.6234H27.5021L25.2696%2026.7334Z'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.5617%2018.8385C6.1462%2017.4135%205.2627%2015.447%205.2627%2013.2715C5.2627%208.91095%208.7967%205.37695%2013.1572%205.37695C17.5177%205.37695%2021.0517%208.91095%2021.0517%2013.2715C21.0517%2015.124%2020.4152%2016.815%2019.3512%2018.164C18.0497%2019.8075%2016.1117%2020.919%2013.9172%2021.128'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%2013.2715L16.0167%2015.5705'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%208.62598V13.2715'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.35963%2016.1973L7.84663%2019.1328L4.91113%2018.6293'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.91113%2032.623H33.0881'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9273'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Dt=({children:l})=>{const[n,u]=r.useState({x:0,y:0}),[i,a]=r.useState(!1),[g,p]=r.useState({x:0,y:0}),[F,C]=r.useState(!1),[j,S]=r.useState(!0),A=r.useRef(null),d=[{id:"overtime",title:"시간 외 근무신청",icon:e.jsx("img",{src:Tt,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:e.jsx("img",{src:Ft,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:e.jsx("img",{src:Pt,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:e.jsx(W.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:e.jsx(W.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:e.jsx(W.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];r.useEffect(()=>{const s=()=>{const v=window.innerHeight,z=Math.max(64,(v-300)/3);u({x:0,y:z});const N=v/2;S(z<N)};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]);const B=s=>{if(s.preventDefault(),s.stopPropagation(),A.current){const v=A.current.getBoundingClientRect();p({x:s.clientX-v.left,y:s.clientY-v.top}),a(!0)}},M=s=>{if(i){const v=s.clientY-g.y,b=window.innerHeight-24,N=Math.max(64,Math.min(b,v));u({x:n.x,y:N});const U=window.innerHeight/2;S(N<U)}},I=()=>{a(!1)},x=()=>{C(!F)},V=s=>{s.onClick&&s.onClick()};return r.useEffect(()=>{if(i)return document.addEventListener("mousemove",M),document.addEventListener("mouseup",I),()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",I)}},[i,g]),e.jsxs("div",{className:"quick-tab-container",ref:A,style:{position:"fixed",right:0,top:n.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[e.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:j?0:"auto",bottom:j?"auto":0,display:"flex",flexDirection:"column",gap:"15px",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:j?`calc(100vh - ${n.y+12}px)`:`${n.y-12}px`,transform:F?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:j&&n.y<100?"32px":"0",marginBottom:!j&&n.y>window.innerHeight-100?"8px":"0"},children:[e.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:j?`calc(100vh - ${n.y+120}px)`:`${n.y-60}px`,padding:"14px 0"},children:d.map(s=>e.jsx(o.Card,{className:"quick-tab-items",size:"small",style:{border:"none",boxShadow:"none",marginBottom:"15px",cursor:"pointer",transition:"all 0.2s ease"},styles:{body:{padding:"0"}},onClick:()=>V(s),onMouseEnter:v=>{},onMouseLeave:v=>{},children:e.jsxs("div",{className:"quick-tab-item-inner",children:[e.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:s.color,marginBottom:"5px"},children:s.icon}),e.jsx("div",{className:"quick-tab-items-title",children:s.title})]})},s.id))}),e.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:s=>{},onMouseLeave:s=>{},children:e.jsx("span",{className:"quick-tab-add-icon",children:e.jsx(W.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})})]}),e.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:i?"grabbing":"grab",zIndex:1001},onMouseDown:s=>B(s)}),e.jsx(o.Button,{className:`quick-tab-toggle-btn ${F?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:x})]})},Et=()=>{const{verifyWithToken:l}=ee.useAuth(),n=Pe.useNavigate(),u=Pe.useLocation();return r.useEffect(()=>{const a=new URLSearchParams(u.search).get("token");if(!a){n("/login",{replace:!0});return}(async()=>{const g=await l(a);n(g?"/main":"/login",{replace:!0})})()},[u.search]),e.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:e.jsx(o.Spin,{tip:"인증중..."})})};exports.createBwgGridRenderer=Y.createBwgGridRenderer;exports.realFormat=Y.realFormat;exports.ButtonAccessController=Me;exports.BwgButtonGroup=rt;exports.BwgCmptArea=ot;exports.BwgCol=nt;exports.BwgConfigProvider=Ie;exports.BwgDetail=it;exports.BwgDrawer=lt;exports.BwgEditor=ht;exports.BwgGrid=Ct;exports.BwgInfoArea=kt;exports.BwgModal=vt;exports.BwgPagination=Ve;exports.BwgPopup=jt;exports.BwgRow=St;exports.BwgSpace=Bt;exports.BwgTable=Mt;exports.BwgTabs=It;exports.BwgTitleBox=Ce;exports.BwgView=Ge;exports.ContentBox=je;exports.ContentLayOut=he;exports.GlobalConfigProvider=Rt;exports.QuickServiceToggle=Dt;exports.SSOHandler=Et;exports.SearchBox=Ae;
@@ -8,6 +8,7 @@ export { default as BwgDrawer } from './BwgDrawer';
8
8
  export { default as BwgEditor } from './BwgEditor';
9
9
  export { default as BwgGrid } from './BwgGrid';
10
10
  export { default as BwgInfoArea } from './BwgInfoArea';
11
+ export { default as BwgModal } from './BwgModal';
11
12
  export { default as BwgPagination } from './BwgPagination';
12
13
  export { default as BwgPopup } from './BwgPopup';
13
14
  export { default as BwgRow } from './BwgRow';
@@ -22,7 +23,7 @@ export { default as GlobalConfigProvider } from './GlobalConfigProvider';
22
23
  export { default as QuickServiceToggle } from './QuickServiceToggle';
23
24
  export { default as SearchBox } from './SearchBox';
24
25
  export { default as SSOHandler } from './SSOHandler';
25
- export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef, } from './BwgGrid';
26
+ export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef, BwgGridRefTree, } from './BwgGrid';
26
27
  export { createBwgGridRenderer } from '../../utils/gridUtils';
27
28
  export type { BwgGridRenderType } from '../../utils/gridUtils';
28
29
  export type { BwgPaginationProps, BwgPaginationRef } from './BwgPagination';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"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