@bwg-ui/core 1.2.15 → 1.2.17

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 (55) hide show
  1. package/dist/chunks/{MenuReport-CozV1tpR.js → MenuReport-ByLduwwZ.js} +27 -26
  2. package/dist/chunks/MenuReport-D5nIx5g9.cjs +1 -0
  3. package/dist/chunks/{common-components-B-zgrX-L.cjs → common-components-BXjzima0.cjs} +76 -76
  4. package/dist/chunks/{common-components-XA2KG7Pl.js → common-components-CyxuMobg.js} +7990 -7606
  5. package/dist/chunks/layout-components-CfFi4fiJ.cjs +35 -0
  6. package/dist/chunks/{layout-components-MrnKV5g7.js → layout-components-CyKRhOdT.js} +646 -614
  7. package/dist/components/common/BookmarkMngModal.d.ts.map +1 -1
  8. package/dist/components/common/BookmarkPopver.d.ts.map +1 -1
  9. package/dist/components/common/BwgConfigProvider.d.ts.map +1 -1
  10. package/dist/components/common/BwgEditor.d.ts.map +1 -1
  11. package/dist/components/common/BwgPagination.d.ts.map +1 -1
  12. package/dist/components/common/index.cjs +1 -1
  13. package/dist/components/common/index.js +1 -1
  14. package/dist/components/guide/BwgPracticeGuideS00.d.ts.map +1 -1
  15. package/dist/components/guide/BwgPracticeGuideS01.d.ts.map +1 -1
  16. package/dist/components/guide/index.cjs +1 -1
  17. package/dist/components/guide/index.d.ts +0 -1
  18. package/dist/components/guide/index.d.ts.map +1 -1
  19. package/dist/components/guide/index.js +97 -291
  20. package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
  21. package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
  22. package/dist/components/layout/default/LoadingContainer.d.ts +1 -0
  23. package/dist/components/layout/default/LoadingContainer.d.ts.map +1 -1
  24. package/dist/components/layout/index.cjs +1 -1
  25. package/dist/components/layout/index.js +1 -1
  26. package/dist/components/layout/types.d.ts +28 -0
  27. package/dist/components/layout/types.d.ts.map +1 -1
  28. package/dist/components/pages/index.d.ts +1 -0
  29. package/dist/components/pages/index.d.ts.map +1 -1
  30. package/dist/components/pages/syst/CMHldyCfg.d.ts.map +1 -0
  31. package/dist/components/popup/MenuReport.d.ts.map +1 -1
  32. package/dist/components/popup/index.cjs +1 -1
  33. package/dist/components/popup/index.js +1 -1
  34. package/dist/index.cjs +1 -1
  35. package/dist/index.js +161 -159
  36. package/dist/public/realgrid/css/realgrid-style-custom.css +30 -4
  37. package/dist/stores/index.cjs +1 -1
  38. package/dist/stores/index.js +1 -1
  39. package/dist/styles/assets/images/contents/icon/ico-add-bookmark.svg +26 -0
  40. package/dist/styles/assets/images/contents/icon/ico-edit-folder.svg +18 -0
  41. package/dist/styles/assets/images/contents/icon/ico-new-folder.svg +20 -0
  42. package/dist/styles/assets/images/contents/icon/ico-save-bookmark.svg +25 -0
  43. package/dist/styles/components.css +207 -132
  44. package/dist/styles/layout-test.css +8 -300
  45. package/dist/styles/layout.css +77 -113
  46. package/dist/styles/variables.css +111 -78
  47. package/dist/utils/gwUtils.d.ts +38 -0
  48. package/dist/utils/gwUtils.d.ts.map +1 -1
  49. package/dist/utils/index.cjs +1 -1
  50. package/dist/utils/index.js +731 -700
  51. package/package.json +2 -1
  52. package/dist/chunks/MenuReport-Bqeps5fC.cjs +0 -1
  53. package/dist/chunks/layout-components-bb0cWC3I.cjs +0 -35
  54. package/dist/components/guide/CMHldyCfg.d.ts.map +0 -1
  55. /package/dist/components/{guide → pages/syst}/CMHldyCfg.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bwg-ui/core",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "bankwareglobal UI 라이브러리입니다.",
5
5
  "author": "kyeongdon.park",
6
6
  "license": "ISC",
@@ -120,6 +120,7 @@
120
120
  "quill": "1.3.7",
121
121
  "quill-image-resize-module-react": "3.0.0",
122
122
  "react": "^18.3.1",
123
+ "react-copy-to-clipboard": "^5.1.0",
123
124
  "react-dnd": "^16.0.1",
124
125
  "react-dnd-html5-backend": "^16.0.1",
125
126
  "react-dom": "^18.3.1",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("@ant-design/icons"),t=require("antd"),pe=require("dayjs"),n=require("react"),G=require("../stores/index.cjs"),h=require("./common-components-B-zgrX-L.cjs"),l=require("../components/core/index.cjs"),f=require("../utils/index.cjs"),he=require("../provider/index.cjs"),{TextArea:ge}=t.Input,R=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],fe={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},Q=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],je={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},W={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},ye=({popup:y,onClose:O})=>{const{searchBoxRef:I}=he.useSearchBox(),b=n.useRef(null),E=n.useRef(null),{user:w}=G.useUserStore(),{activeMenuItem:c}=G.useMenuViewStore(),[i]=t.Form.useForm(),[z,L]=n.useState(!1),[V,A]=n.useState(!1),[M,H]=n.useState(!1),[g,J]=n.useState(!1),[a,S]=n.useState(!1),[d,j]=n.useState("list");n.useState(null);const D=n.useRef(null),[F,U]=n.useState([]),[B,Y]=n.useState(""),[P,Ce]=n.useState(!1),[$,N]=n.useState(15),T=n.useRef(null),K=n.useMemo(()=>h.createBwgGridRenderer((s,r,o,m,x)=>{const p=s.getValue(r.index?.itemIndex,"type");x.render(e.jsx(t.Tag,{color:fe[p],children:R.find(v=>v.value===p)?.label}))}),[]),X=n.useMemo(()=>h.createBwgGridRenderer((s,r,o,m,x)=>{const p=s.getValue(r.index?.itemIndex,"status");x.render(e.jsx(t.Tag,{color:je[p],children:Q.find(v=>v.value===p)?.label}))}),[]),Z=n.useMemo(()=>h.createBwgGridRenderer((s,r,o,m,x)=>{s.getValue(r.index?.itemIndex,"urgentYn")==="Y"?x.render(e.jsx(C.AlertTwoTone,{twoToneColor:"red"})):x.render(e.jsx(e.Fragment,{}))}),[]),_=[{fieldName:"boardMstrId",header:{text:"글 번호"},width:80},{name:"type",fieldName:"type",header:{text:"등록구분"},width:80,renderer:"tagType"},{fieldName:"title",header:{text:"제목"},width:200},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{name:"status",fieldName:"status",header:{text:"상태"},width:80,renderer:"statusTag"},{fieldName:"rgstUserId",visible:!1},{fieldName:"rgstUserNm",header:{text:"등록자"},width:100},{fieldName:"rgstDt",header:{text:"등록일자"},width:120,renderer:f.realFormat.maskYmd},{fieldName:"dueDt",header:{text:"마감요청일자"},width:120,renderer:f.realFormat.maskYmd},{fieldName:"urgentYn",header:{text:"긴급여부"},width:80,renderer:"alert"},{fieldName:"prcsUserId",visible:!1},{fieldName:"prcsUserNm",header:{text:"처리담당자"},width:100},{fieldName:"prcsDt",header:{text:"처리일자"},width:120,renderer:f.realFormat.maskYmd},{fieldName:"scrnId",header:{text:"화면ID"},width:100,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,visible:!1}],ee={onCellDblClicked:(s,r)=>{const o=r.itemIndex??-1;if(o<0)return;const m=s.getValues(o);console.log("🔍 그리드 셀 더블클릭 이벤트:",m);const x={...m,menuId:c?.menuId,menuNm:c?.menuNm,scrnId:c?.scrnId};i.setFieldsValue(x),H(x.rgstUserId===w?.userId),J(x.status==="COMPLETED"||x.status==="REJECTED"),j("detail")}},k=()=>{i.resetFields(),j("list"),u.SCMBoardMstr0001(1,20)},q=async s=>{L(!0);try{i.validateFields().then(r=>{console.log("문의/신고 제출:",r),d==="new"?u.SCMBoardMstr0003(r):d==="detail"&&u.SCMBoardMstr0004(r)})}catch(r){console.error("문의/신고 제출 실패:",r)}finally{L(!1)}},te=()=>{u.SCMBoardMstr0005()},se=()=>{I?.current?.resetForm(),i.resetFields(),d==="new"?j("list"):(j("list"),y?.close?.()||O?.())},re=()=>{I?.current?.resetForm(),i.resetFields(),j("list"),y?.close?.()||O?.()},ne=()=>{(d==="detail"||d==="new")&&j("list")},le=()=>{i.resetFields(),j("new")},ie=()=>{console.log("댓글 수동 새로고침"),N(15)},oe=()=>{if(!B.trim()){t.message.warning("댓글 상세내용 작성");return}u.SCMBoardDtls0002(i.getFieldValue("boardMstrId"),B.trim()),Y(""),setTimeout(()=>{D.current&&(D.current.scrollTop=D.current.scrollHeight)},100)},ae=s=>{const r=F.find(o=>o.id===s);if(r&&r.regUserId!==w?.userId){t.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}u.SCMBoardDtls0003(i.getFieldValue("boardMstrId"),s)};n.useEffect(()=>{y&&setTimeout(()=>{u.SCMBoardMstr0001(1,20)},100)},[y]);const de=()=>e.jsxs(h.ContentBox,{border:!1,children:[e.jsx(h.SearchBox,{border:!0,ref:I,reqRows:e.jsxs(e.Fragment,{children:[e.jsx(t.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:e.jsx(t.Col,{span:24,children:e.jsx(l.BwgFormItem,{label:"화면 정보",name:void 0,children:e.jsxs(t.Space.Compact,{style:{width:"100%"},children:[e.jsx(t.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:e.jsx(t.Input,{disabled:!0})}),e.jsx(t.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:e.jsx(t.Input,{disabled:!0})})]})})})}),e.jsxs(t.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[e.jsx(t.Col,{span:6,children:e.jsx(l.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:R}})}),e.jsx(t.Col,{span:12,children:e.jsx(l.BwgRangePicker,{itemProps:{label:"등록일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),e.jsx(t.Col,{span:6,children:e.jsx(l.BwgSwitch,{itemProps:{name:"myArticle",label:"내 글만"},inputProps:{format:"YN",onChange:()=>console.log("hello!!")}})})]}),e.jsx(t.Row,{children:e.jsx(t.Col,{span:24,children:e.jsx(l.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),e.jsx(h.BwgGrid,{ref:T,gridColumns:_,gridEvents:ee,gridOptions:{},renderers:[{name:"tagType",renderer:K},{name:"statusTag",renderer:X},{name:"alert",renderer:Z}]}),e.jsx(h.BwgPagination,{ref:b,mode:"server",onServerPageChange:(s,r)=>{console.log("🔄 서버 모드 페이징 변경:",{page:s,size:r}),u.SCMBoardMstr0001(s,r)},pageSizeOptions:[10,20,50,100]})]}),ce=()=>e.jsxs(t.Splitter,{children:[e.jsx(t.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:e.jsx(h.ContentBox,{children:e.jsxs(t.Form,{form:i,onFinish:q,labelCol:{flex:"100px"},disabled:!M||g,children:[e.jsxs(t.Row,{gutter:[16,8],children:[e.jsxs(t.Col,{span:8,children:[e.jsx(t.Form.Item,{name:"boardMstrId",hidden:!0,children:e.jsx(t.Input,{})}),e.jsx(l.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:R}})]}),e.jsxs(t.Col,{span:16,children:[e.jsx(l.BwgFormItem,{label:"화면 정보",name:void 0,children:e.jsxs(t.Space.Compact,{children:[e.jsx(t.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:e.jsx(t.Input,{readOnly:!0})}),e.jsx(t.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:e.jsx(t.Input,{readOnly:!0})})]})}),e.jsx(t.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:e.jsx(t.Input,{readOnly:!0})})]})]}),e.jsxs(t.Row,{gutter:[16,8],children:[e.jsx(t.Col,{span:8,children:e.jsx(l.BwgFormItem,{label:"작성자",name:void 0,children:e.jsxs(t.Space.Compact,{style:{width:"100%"},children:[e.jsx(t.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:e.jsx(t.Input,{readOnly:!0})}),e.jsx(t.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:e.jsx(t.Input,{readOnly:!0})})]})})}),e.jsx(t.Col,{span:8,children:e.jsx(l.BwgDatePicker,{itemProps:{label:"작성일자",name:"rgstDt"},inputProps:{disabled:!0}})}),e.jsx(t.Col,{span:8,children:e.jsx(l.BwgSelect,{itemProps:{name:"status",label:"상태"},selectProps:{options:Q,disabled:!0}})})]}),e.jsxs(t.Row,{gutter:[16,8],children:[e.jsx(t.Col,{span:8,children:e.jsx(l.BwgDatePicker,{itemProps:{label:"마감요청일",name:"dueDate"}})}),e.jsx(t.Col,{span:8,children:e.jsxs(t.Flex,{vertical:!0,gap:2,children:[e.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),e.jsx(t.Progress,{percent:W[i.getFieldValue("status")],status:W[i.getFieldValue("status")]>0?"active":"normal",size:"small",format:s=>`${s}%`})]})}),e.jsx(t.Col,{span:8,children:e.jsx(l.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),e.jsxs(t.Row,{gutter:[16,8],children:[e.jsx(t.Col,{span:8,children:e.jsx(l.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:e.jsxs(t.Space.Compact,{children:[e.jsx(t.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:e.jsx(t.Input,{readOnly:!0})}),e.jsx(t.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:e.jsx(t.Input,{readOnly:!0})})]})})}),e.jsx(t.Col,{span:8,children:e.jsx(l.BwgDatePicker,{itemProps:{label:"처리일자",name:"processDt"}})})]}),e.jsx(t.Row,{gutter:[16,8],children:e.jsx(t.Col,{span:24,children:e.jsx(l.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:e.jsx(t.Input,{})})})}),e.jsx(h.BwgEditor,{border:!1,itemProps:{name:"content",label:"내용",rules:[{required:!0,message:"내용을 입력하세요."}]},editorProps:{isEditing:M&&!g,title:{title:"에디터"}}})]})})}),e.jsx(t.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:e.jsxs(h.ContentBox,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),e.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[e.jsx(t.Button,{type:"text",icon:e.jsx(C.ReloadOutlined,{spin:P||a}),onClick:ie,disabled:P||a,size:"small",style:{fontSize:"12px",color:g?"#d9d9d9":a?"#8c8c8c":"#595959",height:"24px",padding:"0 8px"}}),!g&&e.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:P?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:$})]})]}),e.jsx("div",{ref:D,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0,position:"relative"},children:a?e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:[e.jsx("div",{style:{marginBottom:"12px"},children:e.jsx(C.ReloadOutlined,{spin:!0,style:{fontSize:"24px"}})}),e.jsx("div",{style:{fontSize:"13px"},children:"댓글을 불러오는 중..."})]}):F.length===0?e.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:e.jsx("div",{style:{fontSize:"13px"},children:"등록된 댓글이 없습니다."})}):e.jsx(t.List,{dataSource:F,renderItem:s=>e.jsxs(t.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[e.jsx(t.List.Item.Meta,{avatar:e.jsx(t.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:s.author[0]}),title:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[e.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:s.author}),e.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:s.regDt})]}),description:e.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:s.content})}),s.regUserId===w?.userId&&e.jsx(t.Button,{type:"text",danger:!0,icon:e.jsx(C.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>ae(s.id),disabled:a,style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:a?.3:.5,height:"24px",width:"24px",padding:0},onMouseEnter:r=>{a||(r.currentTarget.style.opacity="1")},onMouseLeave:r=>{r.currentTarget.style.opacity=a?"0.3":"0.5"}})]},s.id)})}),e.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:g?"#f5f5f5":"#fafafa",flexShrink:0,marginTop:"auto"},children:g?e.jsxs("div",{style:{textAlign:"center",padding:"20px",color:"#8c8c8c",fontSize:"13px",backgroundColor:"#ffffff",borderRadius:"6px",border:"1px solid #e8e8e8"},children:[e.jsx("div",{style:{marginBottom:"8px"},children:e.jsx(C.AlertTwoTone,{twoToneColor:"#faad14"})}),e.jsx("div",{children:"이미 완료처리된 게시글입니다."}),e.jsx("div",{style:{fontSize:"11px",marginTop:"4px"},children:"댓글을 작성할 수 없습니다."})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginBottom:"8px"},children:e.jsx(ge,{rows:2,placeholder:a?"댓글 처리 중...":"댓글을 입력하세요...",value:B,onChange:s=>Y(s.target.value),maxLength:300,disabled:a,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:a?"#f5f5f5":"#ffffff",color:a?"#8c8c8c":"#000000"},onFocus:s=>{a||(s.target.style.borderColor="#1890ff",s.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)")},onBlur:s=>{s.target.style.borderColor="#d9d9d9",s.target.style.boxShadow="none"}})}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:a?"처리 중...":`${B.length} / 300자`}),e.jsx(t.Button,{type:"primary",onClick:oe,size:"small",loading:a,style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!B.trim()||a,children:a?"등록 중...":"등록"})]})]})})]})})]}),ue=()=>e.jsx(h.ContentBox,{children:e.jsxs(l.BwgForm,{form:i,onFinish:q,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[e.jsxs(t.Row,{gutter:[16,8],children:[e.jsx(t.Col,{span:8,children:e.jsx(l.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:R}})}),e.jsxs(t.Col,{span:16,children:[e.jsx(l.BwgFormItem,{label:"화면 정보",name:void 0,children:e.jsxs(t.Space.Compact,{style:{width:"100%"},children:[e.jsx(t.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:e.jsx(t.Input,{readOnly:!0})}),e.jsx(t.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:e.jsx(t.Input,{readOnly:!0})})]})}),e.jsx(t.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:e.jsx(t.Input,{readOnly:!0})})]})]}),e.jsxs(t.Row,{gutter:[16,8],children:[e.jsx(t.Col,{span:8,children:e.jsx(l.BwgFormItem,{label:"작성자",name:void 0,children:e.jsxs(t.Space.Compact,{style:{width:"100%"},children:[e.jsx(t.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:e.jsx(t.Input,{readOnly:!0})}),e.jsx(t.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:e.jsx(t.Input,{readOnly:!0})})]})})}),e.jsx(t.Col,{span:6,children:e.jsx(l.BwgFormItem,{label:"작성일자",name:"rgstDt",style:{width:"100%"},children:e.jsx(t.DatePicker,{disabled:!0})})}),e.jsx(t.Col,{span:6,children:e.jsx(l.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:e.jsx(t.DatePicker,{})})}),e.jsx(t.Col,{span:4,children:e.jsx(l.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),e.jsx(t.Row,{gutter:[16,8],children:e.jsx(t.Col,{span:24,children:e.jsx(l.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:e.jsx(t.Input,{})})})}),e.jsx(h.BwgEditor,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:V,title:{title:e.jsxs(e.Fragment,{children:[e.jsx(C.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:e.jsx(t.Button,{icon:e.jsx(C.EyeFilled,{}),onClick:()=>A(!V),children:"미리보기"})}}})]})});n.useEffect(()=>{d==="new"&&(A(!0),i.setFieldsValue({type:"INQR",menuId:c?.menuId,menuNm:c?.menuNm,scrnId:c?.scrnId,rgstUserId:w?.userId,rgstUserNm:w?.userNm,rgstDt:pe(),content:""}))},[d,i,c,w]),n.useEffect(()=>{if(d==="detail"&&!g){const s=setInterval(()=>{N(r=>r<=1?(console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"),u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")),15):r-1)},1e3);return u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")),()=>{console.log("🧹 댓글 인터벌 정리"),clearInterval(s)}}else d==="detail"&&g&&(console.log("📋 완료된 게시글 - 댓글 조회만"),u.SCMBoardDtls0001(i.getFieldValue("boardMstrId")))},[d,g,i]),n.useEffect(()=>()=>{console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"),E.current&&(clearInterval(E.current),E.current=null)},[]),n.useEffect(()=>{d==="list"&&c&&(I?.current?.setFormData({menuId:c?.menuId,menuNm:c?.menuNm}),u.SCMBoardMstr0001(1,20))},[d,c]),n.useEffect(()=>{y&&c&&I?.current?.setFormData({menuId:c?.menuId,menuNm:c?.menuNm})},[y,c]);const u={SCMBoardMstr0001:async(s,r)=>{const o=s||b.current?.currentPage||1,m=r||b.current?.pageSize||20,x={...I?.current?.getFormData(),pageNum:o,pageCount:m};console.log("🔍 서버 모드 페이징 요청:",x);try{const p=await f.callService("SCMBoardMstr0001",x,{isPopup:!0});if(p&&p.pageList){const v=p.pageCnt||0;b.current?.setTotalData(v),T.current?.addAllData(p.pageList)}else b.current?.setTotalData(0),T.current?.addAllData([]),console.log("📭 서버 모드 페이징 데이터 없음")}catch(p){console.error("❌ SCMBoardMstr0001 호출 실패:",p),t.message.error("데이터 조회 중 오류가 발생했습니다.")}},SCMBoardMstr0003:s=>{f.callService("SCMBoardMstr0003",{...s,status:"READY"},{isPopup:!0}).then(r=>{console.log("문의/신고 제출 응답:",r),t.message.success("정상 접수되었습니다."),k()}).catch(r=>{console.error("문의/신고 제출 실패:",r),t.message.error("접수 중 오류가 발생했습니다.")})},SCMBoardMstr0004:s=>{f.callService("SCMBoardMstr0004",{boardMstrId:i.getFieldValue("boardMstrId"),...s},{isPopup:!0}).then(r=>{console.log("문의/신고 제출 응답:",r),t.message.success("수정이 완료되었습니다."),k()}).catch(r=>{console.error("문의/신고 변경 실패:",r)})},SCMBoardMstr0005:()=>{f.callService("SCMBoardMstr0005",{boardMstrId:i.getFieldValue("boardMstrId")},{isPopup:!0}).then(s=>{console.log("문의/신고 삭제 응답:",s),t.message.success("삭제가 완료되었습니다."),k()})},SCMBoardDtls0001:s=>{S(!0),f.callService("SCMBoardDtls0001",{boardMstrId:s},{isPopup:!0,showLoading:!1}).then(r=>{if(r&&r.subList){const o=r.subList.map(m=>({id:m.seq,author:m.userNm||m.regUserId,regUserId:m.regUserId,content:m.content,regDt:m.regDt}));U(o)}else U([])}).catch(r=>{console.error("게시글 댓글 목록 조회 실패:",r),t.message.error("댓글 목록 조회 중 오류가 발생했습니다.")}).finally(()=>{S(!1),N(15)})},SCMBoardDtls0002:(s,r)=>{S(!0),f.callService("SCMBoardDtls0002",{boardMstrId:s,content:r},{isPopup:!0,showLoading:!1}).then(o=>{o&&o.result===1?(t.message.success("댓글이 등록되었습니다."),u.SCMBoardDtls0001(s)):t.message.error("댓글 등록에 실패했습니다.")}).catch(o=>{t.message.error("댓글 등록 중 오류가 발생했습니다.")}).finally(()=>{S(!1)})},SCMBoardDtls0003:(s,r)=>{S(!0),f.callService("SCMBoardDtls0003",{boardMstrId:s,seq:r},{isPopup:!0,showLoading:!1}).then(o=>{o&&o.result===1?(t.message.success("댓글이 삭제되었습니다."),u.SCMBoardDtls0001(s)):t.message.error("댓글 삭제에 실패했습니다.")}).catch(o=>{t.message.error("댓글 삭제 중 오류가 발생했습니다.")}).finally(()=>{S(!1)})}},me=()=>{switch(d){case"list":return[{id:"REFRESH",label:"조회",type:"default",onClick:()=>u.SCMBoardMstr0001(),disabled:z},{id:"NEW",label:"신규 등록",type:"primary",onClick:le}];case"detail":return[{id:"BACK",label:"뒤로",type:"default",onClick:ne},{id:"EDIT",label:"수정",type:"primary",disabled:!M||g,onClick:()=>i.submit()},{id:"DELETE",label:"삭제",type:"default",disabled:!M||g,onClick:te}];case"new":return[{id:"SUBMIT",label:"제출",type:"primary",onClick:()=>i.submit(),disabled:z},{id:"CANCEL",label:"취소",type:"default",onClick:se}];default:return[]}},xe={};return e.jsxs(h.BwgPopup,{popup:y,buttons:me(),popupEvent:xe,onClose:re,children:[d==="list"&&de(),d==="detail"&&ce(),d==="new"&&ue()]})};exports.default=ye;
@@ -1,35 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),D=require("../provider/index.cjs"),B=require("react-router-dom"),G=require("./common-components-B-zgrX-L.cjs"),i=require("antd"),l=require("react"),j=require("../stores/index.cjs"),v=require("@ant-design/icons"),I=require("../utils/index.cjs"),O=require("@dnd-kit/core"),re=require("@dnd-kit/modifiers"),V=require("@dnd-kit/sortable");var $=typeof document<"u"?document.currentScript:null;function oe(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}return t.default=n,Object.freeze(t)}const q=oe(v),ae=l.lazy(()=>Promise.resolve().then(()=>require("./MenuReport-Bqeps5fC.cjs"))),ie=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-B-zgrX-L.cjs")).then(n=>n.SearchDepartmentP01$1)),le=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-B-zgrX-L.cjs")).then(n=>n.SearchDepartmentP02$1)),ce=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-B-zgrX-L.cjs")).then(n=>n.SearchOrganizationP01$1)),de=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-B-zgrX-L.cjs")).then(n=>n.SearchOrganizationP02$1)),K={CORE_REPORT:{component:ae,defaultConfig:{title:"게시판/문의",width:1200,height:800}},CORE_DEPARTMENT_01:{component:ie,defaultConfig:{title:"부서 검색",width:620,height:700}},CORE_DEPARTMENT_02:{component:le,defaultConfig:{title:"부서 검색",width:620,height:700}},CORE_ORGANIZATION_01:{component:ce,defaultConfig:{title:"조직 검색",width:620,height:700}},CORE_ORGANIZATION_02:{component:de,defaultConfig:{title:"조직 검색",width:1e3,height:700}}},U="bwg-dot-line-wave-v4";function ue(){if(typeof document>"u"||document.getElementById(U))return;const n=document.createElement("style");n.id=U,n.textContent=`
2
- .bwg-dotline {
3
- display: inline-flex;
4
- align-items: center;
5
- gap: var(--bwg-gap, 12px);
6
- height: calc(var(--bwg-size, 12px) + 2 * var(--bwg-amp, 12px));
7
- line-height: 0;
8
- }
9
- .bwg-dotline .dot {
10
- width: var(--bwg-size, 12px);
11
- height: var(--bwg-size, 12px);
12
- border-radius: 50%;
13
- background: currentColor;
14
- will-change: transform, opacity;
15
- filter: drop-shadow(0 1px 2px rgba(0,0,0,.12));
16
- animation: bwg-dotline-sine var(--bwg-speed, 780ms) linear infinite;
17
- }
18
-
19
- /* sin(θ) 근사: 0, 45, 90, 135, 180, 225, 270, 315, 360deg */
20
- @keyframes bwg-dotline-sine {
21
- 0% { transform: translate3d(0, 0, 0) scale(.98); opacity: .80; }
22
- 12.5%{ transform: translate3d(0, calc(-0.7071 * var(--bwg-amp, 12px)), 0) scale(1.03); opacity: .92; }
23
- 25% { transform: translate3d(0, calc(-1 * var(--bwg-amp, 12px)), 0) scale(1.06); opacity: 1; }
24
- 37.5%{ transform: translate3d(0, calc(-0.7071 * var(--bwg-amp, 12px)), 0) scale(1.03); opacity: .92; }
25
- 50% { transform: translate3d(0, 0, 0) scale(.98); opacity: .80; }
26
- 62.5%{ transform: translate3d(0, calc( 0.7071 * var(--bwg-amp, 12px)), 0) scale(.97); opacity: .78; }
27
- 75% { transform: translate3d(0, calc( 1 * var(--bwg-amp, 12px)), 0) scale(.96); opacity: .76; }
28
- 87.5%{ transform: translate3d(0, calc( 0.7071 * var(--bwg-amp, 12px)), 0) scale(.97); opacity: .78; }
29
- 100% { transform: translate3d(0, 0, 0) scale(.98); opacity: .80; }
30
- }
31
-
32
- @media (prefers-reduced-motion: reduce) {
33
- .bwg-dotline .dot { animation: none; }
34
- }
35
- `,document.head.appendChild(n)}const pe=({colors:n=["#DAD3FF","#B3A6FF","#9380FF","#816BFA"],count:t,size:s=12,gap:r=10,amp:o=16,speedMs:p=900,direction:x="ltr",phase:c=.7})=>{l.useEffect(()=>{ue()},[]);const m=t??n.length,h=Array.from({length:m}),f={"--bwg-size":`${s}px`,"--bwg-gap":`${r}px`,"--bwg-amp":`${o}px`,"--bwg-speed":`${p}ms`},C=p/m*c;return e.jsx("span",{className:"bwg-dotline",role:"img","aria-label":"loading",style:f,children:h.map((a,d)=>e.jsx("span",{className:"dot",style:{backgroundColor:n[d%n.length],animationDelay:x==="ltr"?`${d*C}ms`:`${(m-1-d)*C}ms`}},d))})},me=({spin:n=null,text:t="인증중..."})=>n??!0?e.jsxs("div",{style:{position:"fixed",height:"100vh",left:0,right:0,top:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,padding:"8px 12px",background:"rgba(0,0,0,0.6)",color:"#fff",zIndex:1e4},"aria-live":"polite","aria-busy":"true",role:"status",children:[e.jsx(i.Spin,{indicator:e.jsx(pe,{colors:["#DAD3FF","#B3A6FF","#9380FF","#816BFA"],size:12,gap:10,amp:16,speedMs:900,phase:.75,direction:"ltr"})}),e.jsx("span",{className:"bwg-spin-txt",style:{marginTop:"15px"},children:t})]}):null,he=({routes:n,useCommonProvider:t=!0,useServiceProvider:s=!0})=>{let o=e.jsxs(B.Routes,{children:[e.jsx(B.Route,{path:"/",element:e.jsx(B.Navigate,{to:"/login"})}),e.jsx(B.Route,{path:"/login",element:n.login}),e.jsx(B.Route,{path:"/main",element:n.main})]});return s&&(o=e.jsx(D.ServiceCodeProvider,{children:o})),t&&(o=e.jsx(D.CommonCodeProvider,{children:o})),e.jsx(G.GlobalConfigProvider,{children:o})},{Content:ge}=i.Layout,Z=({config:n={},children:t})=>{const s={wrapper:{className:"content-wrapper",...n.wrapper},body:{className:"content-body",...n.body},...n};return e.jsx(ge,{className:s.wrapper.className,style:s.wrapper.style,children:e.jsx(G.BwgConfigProvider,{children:e.jsx("div",{className:s.body.className,style:s.body.style,children:t})})})},fe="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.9998%2019.9993V20.9993C11.9998%2021.3932%2012.0774%2021.7833%2012.2282%2022.1473C12.3789%2022.5112%2012.5999%2022.8419%2012.8785%2023.1205C13.157%2023.399%2013.4877%2023.62%2013.8517%2023.7708C14.2156%2023.9215%2014.6057%2023.9991%2014.9997%2023.9991C15.3936%2023.9991%2015.7837%2023.9215%2016.1477%2023.7708C16.5116%2023.62%2016.8423%2023.399%2017.1209%2023.1205C17.3994%2022.8419%2017.6204%2022.5112%2017.7712%2022.1473C17.9219%2021.7833%2017.9995%2021.3932%2017.9995%2020.9993V19.9993M20.9994%2011.9997C20.9994%2014.9996%2022.9993%2019.9993%2022.9993%2019.9993H7.00006C7.00006%2019.9993%208.99996%2015.9995%208.99996%2011.9997C8.99996%208.73187%2011.7318%206%2014.9997%206C18.2675%206%2020.9994%208.73187%2020.9994%2011.9997Z'%20stroke='%23485299'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",xe="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_93_4488)'%3e%3cpath%20d='M18%207H21C22.1046%207%2023%207.89543%2023%209V21C23%2022.1046%2022.1046%2023%2021%2023H18M11%2011L7%2015M7%2015L11%2019M7%2015L19%2015'%20stroke='%23485299'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_93_4488'%3e%3crect%20width='30'%20height='30'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",be="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%206H16C16.5523%206%2017%206.44772%2017%207V7.56879C17%207.99659%2017.2871%208.36825%2017.6822%208.53228C18.0775%208.69638%2018.5377%208.63384%2018.8403%208.33123L19.2426%207.92891C19.6331%207.53838%2020.2663%207.53838%2020.6568%207.92891L22.071%209.34312C22.4616%209.73365%2022.4615%2010.3668%2022.071%2010.7573L21.6688%2011.1596C21.3661%2011.4622%2021.3036%2011.9225%2021.4677%2012.3177C21.6317%2012.7129%2022.0034%2013%2022.4313%2013L23%2013C23.5523%2013%2024%2013.4477%2024%2014V16C24%2016.5523%2023.5523%2017%2023%2017H22.4312C22.0034%2017%2021.6318%2017.2871%2021.4677%2017.6822C21.3036%2018.0775%2021.3661%2018.5377%2021.6688%2018.8403L22.071%2019.2426C22.4616%2019.6331%2022.4616%2020.2663%2022.071%2020.6568L20.6568%2022.071C20.2663%2022.4616%2019.6331%2022.4616%2019.2426%2022.071L18.8403%2021.6688C18.5377%2021.3661%2018.0775%2021.3036%2017.6822%2021.4677C17.2871%2021.6318%2017%2022.0034%2017%2022.4312V23C17%2023.5523%2016.5523%2024%2016%2024H14C13.4477%2024%2013%2023.5523%2013%2023V22.4313C13%2022.0034%2012.7129%2021.6317%2012.3177%2021.4677C11.9225%2021.3036%2011.4622%2021.3661%2011.1596%2021.6688L10.7573%2022.071C10.3668%2022.4616%209.73363%2022.4616%209.34311%2022.071L7.92889%2020.6568C7.53837%2020.2663%207.53837%2019.6331%207.92889%2019.2426L8.33123%2018.8403C8.63384%2018.5377%208.69638%2018.0775%208.53228%2017.6822C8.36825%2017.2871%207.99659%2017%207.56879%2017H7C6.44772%2017%206%2016.5523%206%2016V14C6%2013.4477%206.44772%2013%207%2013L7.56877%2013C7.99658%2013%208.36825%2012.7129%208.53229%2012.3178C8.6964%2011.9225%208.63386%2011.4623%208.33123%2011.1597L7.92891%2010.7573C7.53838%2010.3668%207.53838%209.73365%207.92891%209.34313L9.34312%207.92891C9.73365%207.53839%2010.3668%207.53839%2010.7573%207.92891L11.1597%208.33123C11.4623%208.63386%2011.9225%208.6964%2012.3178%208.53229C12.7129%208.36825%2013%207.99658%2013%207.56876V7C13%206.44772%2013.4477%206%2014%206Z'%20stroke='%23485299'%20stroke-width='1.5'/%3e%3cpath%20d='M17%2015C17%2016.1046%2016.1046%2017%2015%2017C13.8954%2017%2013%2016.1046%2013%2015C13%2013.8954%2013.8954%2013%2015%2013C16.1046%2013%2017%2013.8954%2017%2015Z'%20stroke='%23485299'%20stroke-width='1.5'/%3e%3c/svg%3e",{Header:ye}=i.Layout,P={light:{headerBg:"#ffffff",headerText:"#000000",sidebarBg:"#ffffff",sidebarText:"#000000",buttonPrimary:"#1890ff",buttonPrimaryHover:"#40a9ff",buttonPrimaryActive:"#096dd9",buttonDefault:"#ffffff",buttonDefaultHover:"#f5f5f5",buttonDefaultBorder:"#d9d9d9",buttonPermissionBorder:"#bdb1ff"},dark:{headerBg:"#4a4a4a",headerText:"#ffffff",sidebarBg:"#4a4a4a",sidebarText:"#ffffff",buttonPrimary:"#177ddc",buttonPrimaryHover:"#1890ff",buttonPrimaryActive:"#0958b5",buttonDefault:"#434343",buttonDefaultHover:"#303030",buttonDefaultBorder:"#434343",buttonPermissionBorder:"#bdb1ff"},blue:{headerBg:"#4a90e2",headerText:"#ffffff",sidebarBg:"#4a90e2",sidebarText:"#ffffff",buttonPrimary:"#1890ff",buttonPrimaryHover:"#40a9ff",buttonPrimaryActive:"#096dd9",buttonDefault:"#ffffff",buttonDefaultHover:"#f0f8ff",buttonDefaultBorder:"#4a90e2",buttonPermissionBorder:"#bdb1ff"},modern:{headerBg:"#f3f4ff",headerText:"#333333",sidebarBg:"#ffffff",sidebarText:"#555555",buttonPrimary:"#6449FC",buttonPrimaryHover:"#6449FC",buttonPrimaryActive:"#6449FC",buttonDefault:"#ffffff",buttonDefaultHover:"#f5f5f5",buttonDefaultBorder:"#dddddd",buttonPermissionBorder:"#bdb1ff"}},Y=({config:n={}})=>{const t={wrapper:{className:"header-wrapper",...n.wrapper},logo:{gap:10,...n.logo},right:{gap:14,minWidth:200,avatar:{width:30,height:30,...n.right?.avatar},...n.right},...n},s=B.useNavigate(),[r,o]=l.useState("modern"),p=l.useRef(null),x=j.useLogout(),c=(a,d)=>{try{if(!/^[a-zA-Z0-9-]+$/.test(a)){console.warn(`Invalid CSS variable name: ${a}`);return}if(!/^[#a-zA-Z0-9()\s,.-]+$/.test(d)){console.warn(`Invalid CSS variable value: ${d}`);return}document.documentElement.style.setProperty(a,d)}catch(L){console.error("CSS variable setting failed:",L)}},m=a=>{if(!P[a]){console.warn(`Invalid theme: ${a}`);return}o(a);const d={...P[a]};c("--header-bg",d.headerBg),c("--header-text",d.headerText),c("--sidebar-bg",d.sidebarBg),c("--sidebar-text",d.sidebarText),c("--button-primary",d.buttonPrimary),c("--button-primary-hover",d.buttonPrimaryHover),c("--button-primary-active",d.buttonPrimaryActive),c("--button-default",d.buttonDefault),c("--button-default-hover",d.buttonDefaultHover),c("--button-default-border",d.buttonDefaultBorder),c("--button-permission-border",d.buttonPermissionBorder),p.current&&p.current.setAttribute("data-theme",a),document.documentElement.setAttribute("data-theme",a),I.setCookie(I.THEME_COOKIE_NAME,a,30)};l.useEffect(()=>{const a=I.getCookie(I.THEME_COOKIE_NAME);a&&P[a]?m(a):m("modern")},[]);const h=()=>({...P[r]}).headerBg,f=()=>{x(),s("/login")};I.getCurrentDateString?I.getCurrentDateString("HH:mm:ss"):new Date().toLocaleTimeString("ko-KR");const C=e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsxs("div",{style:{marginBottom:"12px"},children:[e.jsx(i.ColorPicker,{value:h(),disabled:!0,size:"small"}),e.jsx("span",{style:{marginLeft:"8px",fontSize:"12px"},children:"현재 테마 색상"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[e.jsx(i.Button,{type:r==="modern"?"primary":"default",size:"small",onClick:()=>m("modern"),style:{textAlign:"left",backgroundColor:r==="modern"?P.modern.headerBg:void 0,color:r==="modern"?P.modern.headerText:void 0},children:"모던"},"modern"),Object.entries(P).filter(([a])=>a!=="modern").map(([a,d])=>e.jsx(i.Button,{type:r===a?"primary":"default",size:"small",onClick:()=>m(a),style:{textAlign:"left",backgroundColor:r===a?d.headerBg:void 0,color:r===a?d.headerText:void 0},children:a==="light"?"라이트":a==="dark"?"다크":a==="blue"?"블루":a},a))]})]});return e.jsxs(ye,{className:t.wrapper.className,style:{...t.wrapper.style},children:[t.logo&&e.jsx("div",{className:"header-left",children:e.jsx("div",{className:"logo-container",style:{gap:t.logo?.gap},children:t.logo?.items})}),e.jsxs("div",{className:"header-right",style:{gap:t.right?.gap,minWidth:t.right?.minWidth},children:[t.right?.items?.map((a,d)=>e.jsx("div",{children:a},d)),e.jsx(i.Button,{type:"text",icon:e.jsx("img",{src:fe,alt:"알림"}),className:"alarm-btn"}),e.jsx(i.Popover,{content:C,title:"테마 설정",trigger:"click",placement:"bottomRight",children:e.jsx(i.Button,{type:"text",icon:e.jsx("img",{src:be,alt:"개인설정"}),className:"theme-btn"})}),e.jsx(i.Button,{type:"text",icon:e.jsx("img",{src:xe,alt:"로그아웃"}),onClick:f,className:"logout-btn"}),e.jsx(i.Avatar,{icon:e.jsx(v.UserOutlined,{}),className:"avatar",style:{width:t.right?.avatar?.width,height:t.right?.avatar?.height}})]})]})},H=Object.freeze({Translate:{toString(n){if(!n)return;const{x:t,y:s}=n;return"translate3d("+(t?Math.round(t):0)+"px, "+(s?Math.round(s):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:t,scaleY:s}=n;return"scaleX("+t+") scaleY("+s+")"}},Transform:{toString(n){if(n)return[H.Translate.toString(n),H.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:t,duration:s,easing:r}=n;return t+" "+s+"ms "+r}}}),Ce=l.memo(({className:n,...t})=>{const s=l.useRef(null),{attributes:r,listeners:o,transform:p,transition:x,isDragging:c,setNodeRef:m}=V.useSortable({id:t["data-node-key"]}),[h,f]=l.useState();l.useEffect(()=>{const a=s.current;if(a)if(c){const d=Math.round(a.getBoundingClientRect().width);f(d)}else f(void 0)},[c]);const C={...t.style,transform:p?H.Transform.toString(p):void 0,transition:x??"transform 0.16s ease",cursor:"grab",userSelect:"none",willChange:"transform",width:h??void 0,minWidth:h??void 0,maxWidth:h??void 0,flex:h!==void 0?"0 0 auto":void 0};return l.cloneElement(t.children,{ref:a=>{s.current!==a&&(s.current=a),m(a)},style:C,...r,...o})}),ve=l.memo(function({config:t,isFirst:s,isLast:r,canCloseAll:o,onFirst:p,onPrev:x,onNext:c,onLast:m,onCloseAll:h}){return e.jsxs("div",{className:t.wrapper?.className,style:t.wrapper?.style,children:[e.jsx(i.Tooltip,{title:"첫 번째 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(i.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(v.StepBackwardOutlined,{}),onClick:p,disabled:s})}),e.jsx(i.Tooltip,{title:"이전 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(i.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(v.LeftOutlined,{}),onClick:x,disabled:s})}),e.jsx(i.Tooltip,{title:"다음 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(i.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(v.RightOutlined,{}),onClick:c,disabled:r})}),e.jsx(i.Tooltip,{title:"마지막 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(i.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(v.StepForwardOutlined,{}),onClick:m,disabled:r})}),e.jsx(i.Tooltip,{title:"모든 탭 닫기",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(i.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(v.CloseOutlined,{}),onClick:h,disabled:!o})})]})}),X=({config:n={}})=>{const t={wrapper:{className:"menu-tab-wrapper",...n?.wrapper},tabs:{className:"menu-tabs",...n?.tabs},nav:{wrapper:{className:"menu-nav-wrapper",...n?.nav?.wrapper},buttons:{className:"menu-nav-buttons",...n?.nav?.buttons},tooltip:{className:"menu-nav-tooltip",...n?.nav?.tooltip},...n?.nav},...n},s=j.useMenuViewStore(g=>g.tabs),r=j.useMenuViewStore(g=>g.activeMenuId),o=j.useMenuViewStore(g=>g.focusTab),p=j.useMenuViewStore(g=>g.closeTab),x=j.useMenuViewStore(g=>g.reorderTabs),c=O.useSensors(O.useSensor(O.PointerSensor,{activationConstraint:{distance:6}})),m=g=>{o(g)},h=(g,N)=>{N==="remove"&&typeof g=="string"&&p(g)},f=()=>{s.length>0&&o(s[0].key)},C=()=>{if(!r||s.length<=1)return;const g=s.findIndex(N=>N.key===r);g>0&&o(s[g-1].key)},a=()=>{if(!r||s.length<=1)return;const g=s.findIndex(N=>N.key===r);g<s.length-1&&o(s[g+1].key)},d=()=>{s.length>0&&o(s[s.length-1].key)},L=()=>{s.forEach(g=>{p(g.key)})},E=r?s.findIndex(g=>g.key===r):-1,F=E===0,R=E===s.length-1,_=l.useMemo(()=>s.map(g=>({key:g.key,label:g.label,closable:!0,children:null})),[s]),z=l.useCallback(({active:g,over:N})=>{if(!N||g.id===N.id)return;const S=s.findIndex(u=>u.key===g.id),T=s.findIndex(u=>u.key===N.id);if(S<0||T<0||S===T)return;const b=s.map(u=>u.key),y=V.arrayMove(b,S,T);x?.(y)},[s,x]),A=l.useCallback((g,N)=>e.jsx(O.DndContext,{sensors:c,onDragEnd:z,collisionDetection:O.closestCenter,modifiers:[re.restrictToHorizontalAxis],children:e.jsx(V.SortableContext,{items:s.map(S=>S.key),strategy:V.horizontalListSortingStrategy,children:e.jsx(N,{...g,children:S=>l.createElement(Ce,{...S.props,key:S.key},S)})})}),[c,z,s]);return e.jsx("div",{className:t.wrapper.className,style:{...t.wrapper.style,display:s.length===0?"none":"block"},children:e.jsx(i.Tabs,{type:"editable-card",activeKey:r||void 0,onChange:m,onEdit:h,className:t.tabs.className,style:t.tabs.style,hideAdd:!0,items:_,tabBarExtraContent:e.jsx(ve,{config:t?.nav,isFirst:!!F,isLast:!!R,canCloseAll:s.length>0,onFirst:f,onPrev:C,onNext:a,onLast:d,onCloseAll:L}),renderTabBar:A})})},{Sider:we}=i.Layout,Q=({config:n={}})=>{const t={collapsed:!1,width:230,menuGubunCode:{mainMenu:"MAIN",subMenu:"SUB",program:"PRGM",...n?.menuGubunCode},className:{wrapper:"side-wrapper",search:"sider-search-ipt",segmented:{wrapper:"sider-segmented",item:"sider-segment-item",...n?.className?.segmented},sider:{content:"sider-content",loading:"sider-loading",loadingText:"sider-loading-text",error:"sider-error",errorIcon:"sider-error-icon",errorText:"sider-error-text",menu:"sider-menu",menuContainer:"sider-menu-container",...n?.className?.sider},...n?.className},style:{search:{placeholder:"메뉴명, 메뉴번호 검색...",height:30,...n?.style?.search},...n?.style},...n};console.log("@@ 사이드바 config : ",n);const[s,r]=l.useState(""),[o,p]=l.useState("category"),{activeMenuId:x,sidebarCollapsed:c,openTabFromMenu:m,toggleSidebar:h}=j.useMenuViewStore(),{menuList:f,isLoading:C,error:a,findMenuById:d}=j.useMenuModelStore(),{nodes:L,treeNodes:E,loadFavoritesIfNeeded:F}=j.useFavoriteStore(),R=l.useMemo(()=>{const b=[],y=(u,k=0)=>{if(u.menuGbCd===t.menuGubunCode.program&&u.scrnPath){const w=" ".repeat(k),M=u.menuNo||"";b.push({value:u.menuId,label:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs("span",{children:[w,u.menuNm]}),e.jsx("span",{style:{fontSize:"11px",color:"#999",backgroundColor:"#f0f0f0",padding:"2px 6px",borderRadius:"3px",marginLeft:"8px"},children:M})]}),menuItem:u})}u.children&&u.children.length>0&&u.children.forEach(w=>y(w,k+1))};return f.forEach(u=>y(u)),b},[f]),_=l.useMemo(()=>s.trim()?R.filter(b=>{const y=b.menuItem.menuNm.toLowerCase(),u=String(b.menuItem.menuNo||"미지정").toLowerCase(),k=s.toLowerCase();return y.includes(k)||u.includes(k)}):[],[R,s]),z=b=>{if(!b||typeof b!="string"){console.warn("Invalid menu selection value:",b);return}if(!/^[a-zA-Z0-9_-]+$/.test(b)){console.warn("Invalid menu ID format:",b);return}const y=R.find(u=>u.value===b);if(y){const{menuItem:u}=y;if(!u||!u.menuId||!u.menuNm){console.warn("Invalid menu item:",u);return}u.menuGbCd===t.menuGubunCode.program&&u.scrnPath?(console.log("✅ 검색으로 프로그램 메뉴 선택 - 탭 추가 및 setCurrentProgram 호출"),console.log("메뉴명:",u.menuNm,"경로:",u.scrnPath,"scrnId:",u.scrnId),m(u)):(u.menuGbCd===t.menuGubunCode.mainMenu||u.menuGbCd===t.menuGubunCode.subMenu)&&(console.log("❌ 검색으로 메인/서브 메뉴 선택 - 이벤트 무시"),console.log("메뉴명:",u.menuNm,"menuGbCd:",u.menuGbCd)),r("")}},A=l.useCallback(b=>{const y=d(b);y?.menuGbCd===t.menuGubunCode.program&&(console.log("메뉴명:",y.menuNm,"경로:",y.scrnPath,"scrnId:",y.scrnId),m(y))},[d,m]),g=l.useCallback(b=>b.map(y=>({key:y.menuId,label:e.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:e.jsx("span",{children:y.menuNm})}),icon:N(y.iconCd,y.menuGbCd),children:y.children&&y.children.length>0?g(y.children):void 0})),[]),N=(b,y)=>{if(b){const u=q[b];if(u)return e.jsx(u,{})}if(y)switch(y){case t.menuGubunCode.mainMenu:return e.jsx(q.HomeOutlined,{});case t.menuGubunCode.subMenu:return null;case t.menuGubunCode.program:return null;default:return null}return null},S=l.useCallback(b=>{if(f.length===0)return[];const y=k=>{if(k)return typeof k=="string"?L[k]:k},u=k=>{if(k.type==="M"){const w=k,M=d(w.menuId)||void 0,W=!!M,se=W?`${M?.menuNm??w.menuNm??w.menuId}`:`${w.menuNm??w.menuId} (삭제됨)`;return{key:w.menuId,label:se,icon:W?void 0:e.jsx(v.WarningOutlined,{style:{color:"#faad14"}})}}else{const w=k,M=(w.children??[]).map(y).filter(Boolean).map(u);return{key:w.bkmkId,label:w.bkmkNm??w.bkmkId,icon:w.prntBkmkId==="-"?e.jsx(v.StarOutlined,{}):e.jsx(v.FolderOpenOutlined,{}),children:M}}};return b.map(u)},[d,L,f]),T=l.useMemo(()=>S(E),[S,E,L]);return l.useEffect(()=>{I.getUserId()&&F(I.getUserId())},[F]),l.useEffect(()=>{o==="category"&&r("")},[o]),e.jsxs(we,{className:t.className.wrapper,collapsed:t.collapsed||c,trigger:null,width:t.width||230,children:[e.jsx("div",{style:{position:"absolute",top:"9px",right:"-25px",zIndex:"1000",width:"25px",height:"41px",backgroundColor:"#ffffff",border:"1px solid #dddddd",borderRadius:"0 10px 10px 0",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"2px 2px 2px rgba(0, 0, 0, 0.05)",transition:"all 0.3s ease"},children:e.jsx(i.Button,{type:"text",icon:t.collapsed||c?e.jsx(v.MenuUnfoldOutlined,{}):e.jsx(v.MenuFoldOutlined,{}),style:{fontSize:"12px",color:"#787878",padding:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:h})}),!(t.collapsed||c)&&e.jsx("div",{style:{padding:10},children:e.jsx(i.AutoComplete,{value:s,options:_,onSelect:z,onSearch:r,style:{width:"100%"},allowClear:!0,children:e.jsx(i.Input,{className:t.className.search,placeholder:t.style.search.placeholder,prefix:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M16.4972 16.6667L13.0355 13.1694M14.8475 8.75C14.8475 5.29822 12.0777 2.5 8.66105 2.5C5.24437 2.5 2.47461 5.29822 2.47461 8.75C2.47461 12.2018 5.24437 15 8.66105 15C12.0777 15 14.8475 12.2018 14.8475 8.75Z",stroke:"#5F5F5F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),size:"middle",style:{height:t.style.search.height||30}})})}),!(t.collapsed||c)&&e.jsx("div",{style:{width:"100%",padding:"0px 10px",marginBottom:"10px"},children:e.jsx(i.Segmented,{className:t.className.segmented.wrapper,options:[{label:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:t.className.segmented.item,children:e.jsxs("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.46979 6.90625H13.0298C13.7298 6.90625 14.2965 7.47292 14.2965 8.17292V13.5396H1.20312V8.17292C1.20312 7.47292 1.76979 6.90625 2.46979 6.90625Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.76318 4.70626C2.76318 4.00626 3.18318 3.75293 3.69652 3.75293H11.8032C12.3165 3.75293 12.7365 4.00626 12.7365 4.70626",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.71631 1.45996H10.783",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),"카테고리"]}),value:"category"},{label:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:t.className.segmented.item,children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:e.jsx("path",{d:"M7.11329 1.33356C7.32084 0.888813 7.66676 0.888813 7.88296 1.33356L9.258 4.25619C9.46556 4.70094 10.0277 5.12753 10.4947 5.20014L13.5647 5.67212C14.0317 5.74473 14.1441 6.08964 13.7982 6.43455L11.5757 8.70367C11.2384 9.04858 11.0222 9.73839 11.1 10.2285L11.6276 13.4325C11.7054 13.9227 11.4287 14.1405 11.0049 13.9045L8.26348 12.3887C7.83972 12.1527 7.15653 12.1527 6.73277 12.3887L3.99134 13.9045C3.56759 14.1405 3.29085 13.9227 3.36868 13.4325L3.89621 10.2285C3.97405 9.73839 3.76649 9.04858 3.42057 8.70367L1.19802 6.43455C0.86075 6.08964 0.964526 5.74473 1.43152 5.67212L4.50158 5.20014C4.96857 5.12753 5.5307 4.70094 5.73825 4.25619L7.11329 1.33356Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"4"})})}),"즐겨찾기"]}),value:"favorite"}],value:o,onChange:b=>{p(b)},style:{width:"100%"},block:!0})}),e.jsxs("div",{className:t.className.sider.content,children:[C&&e.jsxs("div",{className:t.className.sider.loading,children:[e.jsx(i.Spin,{size:"default"}),e.jsx("div",{className:t.className.sider.loadingText,children:"메뉴 로딩 중..."})]}),a&&e.jsxs("div",{className:t.className.sider.error,children:[e.jsx(v.ExclamationCircleOutlined,{className:t.className.sider.errorIcon}),e.jsx("div",{className:t.className.sider.errorText,children:"메뉴 로드 실패"})]}),!C&&!a&&o==="category"&&f.length===0&&e.jsx("div",{style:{padding:"16px",textAlign:"center",color:"#666",fontSize:"12px"},children:"메뉴가 없습니다"}),!C&&!a&&o==="favorite"&&T.length===0&&e.jsx("div",{style:{padding:"16px",textAlign:"center",color:"#666",fontSize:"12px"},children:"즐겨찾기된 메뉴가 없습니다"}),!C&&!a&&o==="category"&&f.length>0&&e.jsx("div",{className:t.className.sider.menuContainer,children:e.jsx(i.Menu,{theme:"light",mode:"inline",items:g(f),className:t.className.sider.menu,selectedKeys:[x||""],onClick:b=>A(b.key)})}),!C&&!a&&o==="favorite"&&T.length>0&&e.jsx("div",{className:t.className.sider.menuContainer,children:e.jsx(i.Menu,{theme:"light",mode:"inline",items:T,className:t.className.sider.menu,selectedKeys:[x||""],onClick:b=>A(b.key)})})]})]})};class je extends l.Component{constructor(t){super(t),this.resetError=()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})},this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,s){console.error("ErrorBound caught an error:",t,s),this.setState({error:t,errorInfo:s})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:e.jsxs("div",{style:{padding:"40px 20px",textAlign:"center",backgroundColor:"#fafafa",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[e.jsx(i.Result,{status:"error",title:"컴포넌트 로딩 중 오류가 발생했습니다",subTitle:this.state.error?`오류 내용: ${this.state.error.message}`:"알 수 없는 오류가 발생했습니다",extra:[e.jsx(i.Button,{type:"primary",icon:e.jsx(v.ReloadOutlined,{}),onClick:this.resetError,style:{marginRight:8},children:"다시 시도"},"retry")]}),this.state.error&&e.jsxs("details",{style:{marginTop:"20px",textAlign:"left",maxWidth:"600px",backgroundColor:"#fff",padding:"16px",borderRadius:"6px",border:"1px solid #d9d9d9"},children:[e.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"오류 상세 정보"}),e.jsx("pre",{style:{marginTop:"8px",fontSize:"12px",color:"#666",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:this.state.error.stack})]})]}):this.props.children}}const ke=({isActive:n,instance:t,params:s})=>{const{activeMenuId:r,closeTab:o}=j.useMenuViewStore(),p=()=>{r&&o(r)};return t?e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",visibility:n?"visible":"hidden",opacity:n?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:n?"auto":"none"},children:e.jsx(je,{children:e.jsx(l.Suspense,{fallback:null,children:t&&l.createElement(t,{params:s})})})}):e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",visibility:n?"visible":"hidden",opacity:n?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:n?"auto":"none"},children:e.jsx("div",{style:{width:500,maxWidth:"90%",background:"#fff",borderRadius:16,boxShadow:"0 8px 30px rgba(0,0,0,0.05)",padding:24},children:e.jsx(i.Result,{icon:e.jsx(v.ExclamationCircleTwoTone,{twoToneColor:"#69b1ff"}),status:"warning",title:"등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",subTitle:e.jsx(i.Typography.Text,{type:"secondary",children:"자세한 내용은 관리자에게 문의바랍니다."}),extra:e.jsx(i.Space,{children:e.jsx(i.Button,{icon:e.jsx(v.CloseOutlined,{}),onClick:p,children:"탭 닫기"})})})})})},J=l.memo(ke),ee=()=>e.jsxs(e.Fragment,{children:[e.jsx("link",{rel:"preload",as:"image",href:"/src/styles/assets/images/backgrounds/LandingContainer_bg.png"}),e.jsx("div",{className:"LandingContainer-wrap",children:e.jsx("div",{className:"inner",children:e.jsx("div",{className:"content"})})})]}),Ne=(n,t)=>{console.log("createPopupViewLoader 호출 - popupUrl:",n);const r=(o=>{if(o.startsWith("/src/pages/views/popup/")){const c=o+".tsx";return console.log(`팝업 URL 변환: ${o} -> ${c}`),c}const x=`/src/pages/views/popup/${o.startsWith("/")?o.substring(1):o}.tsx`;return console.log(`팝업 URL 변환: ${o} -> ${x}`),x})(n);return!r||!t?.glob[r]?(console.warn(`팝업 뷰를 찾을 수 없습니다: ${n} (${r})`),console.warn("사용 가능한 팝업 뷰들:",Object.keys(t?.glob||{})),null):t?.glob[r]},Se=({popup:n,modules:t})=>{const[s,r]=l.useState(null),[o,p]=l.useState(!1),[x,c]=l.useState(null),m=()=>{console.log("PopupArea - handleClose:",n.popupId),j.usePopupStore.getState().closePopup(n.popupId)};return l.useEffect(()=>{(async()=>{console.log("팝업 뷰 로드 시작:",n.popupUrl),p(!0),c(null);try{const f=Ne(n.popupUrl,t);if(!f){const d=`팝업 뷰를 찾을 수 없습니다: ${n.popupUrl}`;console.error(d),c(d),p(!1);return}console.log("팝업 뷰 모듈 로드 중...");const C=await f();console.log("팝업 뷰 모듈 로드 완료:",C);const a=C.default;if(console.log("팝업 뷰 컴포넌트:",a),!a)throw new Error("팝업 뷰 컴포넌트를 찾을 수 없습니다");r(()=>a),console.log("팝업 뷰 설정 완료")}catch(f){console.error("팝업 뷰 로드 실패:",f),c(f instanceof Error?f.message:"팝업 뷰 로드 실패")}finally{p(!1)}})()},[n.popupUrl]),o?e.jsxs("div",{className:"popup-loading",children:[e.jsx(i.Spin,{size:"large"}),e.jsx("p",{children:"팝업을 로드하는 중..."})]}):x?e.jsxs("div",{className:"popup-error",children:[e.jsx(i.Empty,{description:x,image:i.Empty.PRESENTED_IMAGE_SIMPLE}),e.jsx(i.Button,{icon:e.jsx(v.ReloadOutlined,{}),onClick:()=>window.location.reload(),children:"다시 시도"})]}):s?e.jsx(l.Suspense,{fallback:e.jsxs("div",{className:"popup-loading",children:[e.jsx(i.Spin,{size:"large"}),e.jsx("p",{children:"컴포넌트를 로드하는 중..."})]}),children:e.jsx(s,{popup:{...n,close:m},onClose:m})}):e.jsx("div",{className:"popup-empty",children:e.jsx(i.Empty,{description:"팝업 내용을 불러올 수 없습니다."})})},te=({modules:n})=>{const{popups:t}=j.usePopupStore();return t.length===0?null:e.jsx(e.Fragment,{children:t.map(s=>{const r=s.config||{},o=r.width||s.width||800,p=r.height||s.height||600,x=r.title||s.popupTitle,c=s.buttonList?.map((m,h)=>({key:m.btnId||`btn_${h}`,text:m.btnNm,type:m.btnId==="CLOSE"?"default":"primary",disabled:m.enblYn!=="Y",danger:!1}))||[];return console.log("팝업 렌더링:",{popupId:s.popupId,popupCode:s.popupCode,title:x,width:o,height:p,buttons:c}),e.jsx("div",{children:e.jsx(Se,{popup:s,modules:n})},s.popupId)})})},Ie=()=>{const{popups:n,closePopup:t}=j.usePopupStore();return e.jsx(e.Fragment,{children:n.map(s=>{if(!(s.isLocal||s.popupCode.startsWith("CORE_")))return null;const r=K[s.popupCode];if(!r)return null;const o=r.component;return e.jsx(l.Suspense,{fallback:null,children:e.jsx(o,{popup:s,onClose:()=>t(s.popupId)})},s.popupId)})})},Le=n=>({position:"absolute",inset:0,visibility:n?"visible":"hidden",opacity:n?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:n?"auto":"none"}),Te=({once:n=!0})=>{const{lock:t}=D.useLock(),s=l.useRef(!1);return l.useEffect(()=>{n&&s.current||(s.current=!0,t())},[n,t]),null},ne=({isActive:n,flagged:t,tabKey:s,onUnlock:r,children:o})=>{const p=l.useRef(null),[x,c]=l.useState(!1),m=l.useCallback(f=>{p.current=f,c(!!f)},[]),h=Le(n);return e.jsx("div",{ref:m,style:h,children:x?e.jsxs(D.ScreenProtectProvider,{idleMs:Number.POSITIVE_INFINITY,persistLocked:!1,overlayScope:"scoped",overlayPosition:"absolute",eventTarget:p.current,overlayId:`tab-overlay-${s}`,onUnlock:async()=>(r(),!0),children:[n&&t?e.jsx(Te,{once:!0}):null,o]}):o})},Pe=({config:n={},modules:t={view:{path:"/src/pages/views/content"},popup:{path:"/src/pages/views/popups"}}})=>{const s=l.useRef(new Map),{tabs:r,tabParams:o,activeMenuId:p,tabProtectFlag:x,clearProtectFlagForKey:c}=j.useMenuViewStore(),m=l.useCallback(h=>{const f=s.current.get(h.key);if(f)return f;const C=h.gubun==="M"?`${t.view.path}${h.menuItem?.scrnPath}.tsx`:`${t.view.path}${h.componentItem?.scrnPath}.tsx`;let a=t.view?.glob?.[C];if(!a&&typeof{url:typeof document>"u"?require("url").pathToFileURL(__filename).href:$&&$.tagName.toUpperCase()==="SCRIPT"&&$.src||new URL("chunks/layout-components-bb0cWC3I.cjs",document.baseURI).href}<"u",a){const d=l.lazy(a);return s.current.set(h.key,d),d}return null},[t.view?.glob]);return e.jsxs(i.Layout,{className:"main-layout",children:[e.jsx(Y,{config:n?.header}),e.jsxs(i.Layout,{children:[e.jsx(Q,{config:n?.sidebar}),e.jsxs("div",{className:"content-container",children:[e.jsx(X,{config:n?.menuTab}),e.jsx(Z,{config:n?.content,children:e.jsxs(D.SearchBoxProvider,{children:[e.jsx("div",{className:"view-container",children:e.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[r.map(h=>{const f=m(h),C=p===h.key,a=!!x?.[h.key],d=o[h.key]||{};return e.jsx(ne,{isActive:C,flagged:a,tabKey:h.key,onUnlock:()=>c(h.key),children:e.jsx(J,{isActive:C,instance:f||void 0,params:d},h.key)},h.key)}),(!p||r.length===0)&&e.jsx(ee,{})]})}),e.jsx(Ie,{}),e.jsx(te,{modules:t?.popup})]})})]})]}),e.jsx(G.QuickServiceToggle,{})]})},Me=({config:n,children:t})=>e.jsx("div",{children:"BwgPortal02"});function Be({config:n,ui:t,navigate:s}){const{loading:r,capsOn:o,prefills:p,onKeyDown:x,doLogin:c}=j.useLogin(n),m=h=>c(h,s);return l.useEffect(()=>{j.useSystemStore.getState().fetchSystemMap()},[]),e.jsx(e.Fragment,{children:t({onSubmit:m,loading:r,capsOn:o,onKeyDown:x,prefills:p})})}function Ee({onSubmit:n,loading:t,capsOn:s,onKeyDown:r,prefills:o,labels:p={id:"ID 혹은 사번",pw:"비밀번호",remember:"Remember me",login:"로그인"},header:x,footer:c}){const[m]=i.Form.useForm();return l.useEffect(()=>{o&&(o.id||o.pswr)&&m.setFieldsValue({id:o.id,pswr:o.pswr})},[o,m]),e.jsx("div",{className:"login-main",children:e.jsxs("div",{className:"login_wrap",children:[x||e.jsx("div",{className:"logo_box"}),e.jsx("div",{className:"login_title"}),e.jsx(i.Form,{form:m,onFinish:n,className:"login-form",children:e.jsxs(i.Flex,{vertical:!0,children:[e.jsx(i.Form.Item,{name:"id",rules:[{required:!0,message:"아이디를 입력해주세요."},{whitespace:!0,message:"아이디는 공백이 들어갈 수 없습니다."}],children:e.jsx(i.Input,{allowClear:!0,placeholder:p.id,onKeyDown:r})}),e.jsx(i.Form.Item,{name:"pswr",rules:[{required:!0,message:"비밀번호를 입력하세요."}],children:e.jsx(i.Input.Password,{allowClear:!0,placeholder:p.pw,onKeyDown:r})}),e.jsx(i.Form.Item,{name:"remember",valuePropName:"checked",children:e.jsx(i.Checkbox,{children:p.remember})}),e.jsx("div",{className:s?"caps-lock caps-lock-on":"caps-lock",children:s?"Caps Lock On":"Caps Lock Off"}),e.jsx(i.Form.Item,{children:e.jsx(i.Button,{type:"primary",htmlType:"submit",loading:t,block:!0,children:p.login})})]})}),c]})})}exports.AppWrapper=he;exports.BwgCoreLogin=Be;exports.BwgPortal01=Pe;exports.BwgPortal02=Me;exports.ConfigurableContent=Z;exports.ConfigurableHeader=Y;exports.ConfigurableMenuTab=X;exports.ConfigurableSidebar=Q;exports.ContentContainer=J;exports.DefaultLoginView=Ee;exports.LandingContainer=ee;exports.LoadingContainer=me;exports.PopupContainer=te;exports.ProtectWrapper=ne;exports.localPopupRegistry=K;
@@ -1 +0,0 @@
1
- {"version":3,"file":"CMHldyCfg.d.ts","sourceRoot":"","sources":["../../../src/components/guide/CMHldyCfg.tsx"],"names":[],"mappings":"AAqBA,QAAA,MAAM,SAAS,+CAqNd,CAAC;AAEF,eAAe,SAAS,CAAC"}