@bwg-ui/core 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{CMSearchIntfGwP01-BWm9OqAH.js → CMSearchIntfGwP01-Co6lrDf9.js} +9 -9
- package/dist/chunks/CMSearchIntfGwP01-Do_ZDjmX.cjs +1 -0
- package/dist/chunks/{MenuReport-yYhMOHyq.js → MenuReport-BTtoDFz-.js} +146 -141
- package/dist/chunks/MenuReport-Bn5NyNel.cjs +1 -0
- package/dist/chunks/{common-components-coAoWxE9.js → common-components-0IMhPxxg.js} +11604 -10999
- package/dist/chunks/common-components-Csd3OioX.cjs +1109 -0
- package/dist/chunks/core-components-CX6NGtTh.cjs +1 -0
- package/dist/chunks/core-components-Ckwf4Rd7.js +1969 -0
- package/dist/chunks/layout-components-BMLp8YAy.cjs +38 -0
- package/dist/chunks/{layout-components-C1DG2B74.js → layout-components-DphZY34c.js} +954 -737
- package/dist/components/common/BwgDetail.d.ts.map +1 -1
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/BwgEmpSearch.d.ts +28 -0
- package/dist/components/core/BwgEmpSearch.d.ts.map +1 -0
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +22 -1846
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +13 -13
- package/dist/components/layout/AppWrapper.d.ts +2 -1
- package/dist/components/layout/AppWrapper.d.ts.map +1 -1
- package/dist/components/layout/BwgCoreLogin.d.ts +1 -2
- package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/BwgSessionNotice.d.ts +15 -0
- package/dist/components/layout/BwgSessionNotice.d.ts.map +1 -0
- package/dist/components/layout/BwgSsoLogin.d.ts +19 -0
- package/dist/components/layout/BwgSsoLogin.d.ts.map +1 -0
- package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableMenuTab.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableSidebar.d.ts.map +1 -1
- package/dist/components/layout/default/LoadingContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +16 -14
- package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +1 -1
- package/dist/components/pages/board/CMMyBoardM01.d.ts.map +1 -1
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +160 -157
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.d.ts +8 -3
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +416 -367
- package/dist/stores/loginStore.d.ts +55 -10
- package/dist/stores/loginStore.d.ts.map +1 -1
- package/dist/stores/menuViewStore.d.ts +6 -2
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/userStore.d.ts +1 -2
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +455 -454
- package/package.json +1 -1
- package/dist/chunks/CMSearchIntfGwP01-CihGc5Q1.cjs +0 -1
- package/dist/chunks/MenuReport-khjaUz1Q.cjs +0 -1
- package/dist/chunks/common-components-DletnDTf.cjs +0 -1109
- package/dist/chunks/layout-components-C6KeWPIu.cjs +0 -35
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),_=require("./provider-DrboIg2C.cjs"),z=require("react-router-dom"),te=require("./common-components-Csd3OioX.cjs"),o=require("antd"),l=require("react"),T=require("../stores/index.cjs"),P=require("@ant-design/icons"),q=require("../utils/index.cjs"),U=require("@dnd-kit/core"),xe=require("@dnd-kit/modifiers"),Z=require("@dnd-kit/sortable");var Q=typeof document<"u"?document.currentScript:null;function fe(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 Y=fe(P),be=l.lazy(()=>Promise.resolve().then(()=>require("./MenuReport-Bn5NyNel.cjs"))),ye=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-Csd3OioX.cjs")).then(n=>n.SearchDepartmentP01$1)),Ce=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-Csd3OioX.cjs")).then(n=>n.SearchDepartmentP02$1)),je=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-Csd3OioX.cjs")).then(n=>n.SearchOrganizationP01$1)),ve=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-Csd3OioX.cjs")).then(n=>n.SearchOrganizationP02$1)),we=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-Csd3OioX.cjs")).then(n=>n.CMPrgrMstrP02$1)),Se=l.lazy(()=>Promise.resolve().then(()=>require("./CMSearchIntfGwP01-Do_ZDjmX.cjs"))),ke=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-Csd3OioX.cjs")).then(n=>n.SearchAddressP01$1)),Pe=l.lazy(()=>Promise.resolve().then(()=>require("./common-components-Csd3OioX.cjs")).then(n=>n.SearchHolidayP01$1)),ie={CORE_REPORT:{component:be,defaultConfig:{title:"게시판/문의",width:1200,height:800}},CORE_DEPARTMENT_01:{component:ye,defaultConfig:{title:"부서 검색",width:620,height:700}},CORE_DEPARTMENT_02:{component:Ce,defaultConfig:{title:"부서 검색",width:620,height:700}},CORE_ORGANIZATION_01:{component:je,defaultConfig:{title:"조직 검색",width:620,height:700}},CORE_ORGANIZATION_02:{component:ve,defaultConfig:{title:"조직 검색",width:1e3,height:700}},CORE_PRGR_02:{component:we,defaultConfig:{title:"프로그램 검색",width:700,height:800}},CORE_GW_DRAFTS:{component:Se,defaultConfig:{title:"기안 목록",width:1e3,height:700}},CORE_ADDRESS_01:{component:ke,defaultConfig:{title:"주소 검색",width:750,height:800}},CORE_HOLIDAY_01:{component:Pe,defaultConfig:{title:"휴일 검색",width:750,height:800}}},re="bwg-dot-line-wave-v4";function Ie(){if(typeof document>"u"||document.getElementById(re))return;const n=document.createElement("style");n.id=re,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 Ne=({colors:n=["#DAD3FF","#B3A6FF","#9380FF","#816BFA"],count:t,size:s=12,gap:r=10,amp:a=16,speedMs:c=900,direction:x="ltr",phase:d=.7})=>{l.useEffect(()=>{Ie()},[]);const h=t??n.length,b=Array.from({length:h}),m={"--bwg-size":`${s}px`,"--bwg-gap":`${r}px`,"--bwg-amp":`${a}px`,"--bwg-speed":`${c}ms`},S=c/h*d;return e.jsx("span",{className:"bwg-dotline",role:"img","aria-label":"loading",style:m,children:b.map((u,g)=>e.jsx("span",{className:"dot",style:{backgroundColor:n[g%n.length],animationDelay:x==="ltr"?`${g*S}ms`:`${(h-1-g)*S}ms`}},g))})},Te=({spin:n=null,text:t="인증중...",dimStyle:s="dark"})=>{if(!(n??!0))return null;const c=s==="dark";return e.jsxs("div",{className:"loading-overlay",style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,padding:"8px 12px",background:c?"rgba(0, 0, 0, 0.6)":"rgba(255, 255, 255, 0.85)",color:c?"#fff":"#333",backdropFilter:"blur(4px)",zIndex:1e4},"aria-live":"polite","aria-busy":"true",role:"status",children:[e.jsx(o.Spin,{indicator:e.jsx(Ne,{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})]})},Me=({routes:n,useCommonProvider:t=!0,useServiceProvider:s=!0})=>{let a=e.jsxs(z.Routes,{children:[e.jsx(z.Route,{path:"/",element:e.jsx(z.Navigate,{to:"/login"})}),e.jsx(z.Route,{path:"/ssoLogin",element:n.ssoLogin}),e.jsx(z.Route,{path:"/login",element:n.login}),e.jsx(z.Route,{path:"/main/*",element:n.main}),e.jsx(z.Route,{path:"/sessionNotice",element:n.sessionNotice})]});return s&&(a=e.jsx(_.ServiceCodeProvider,{children:a})),t&&(a=e.jsx(_.CommonCodeProvider,{children:a})),e.jsx(te.GlobalConfigProvider,{children:a})},{Content:Le}=o.Layout,ne=({config:n={},children:t})=>{const s={wrapper:{className:"content-wrapper",...n.wrapper},body:{className:"content-body",...n.body},...n};return e.jsx(Le,{className:s.wrapper.className,style:s.wrapper.style,children:e.jsx(te.BwgConfigProvider,{children:e.jsx("div",{className:s.body.className,style:s.body.style,children:t})})})},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='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",Ee="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",Oe="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:Re}=o.Layout,{confirm:ze}=o.Modal,D={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"}},J={0:"작게",1:"보통",2:"크게"},se=({config:n={},children:t})=>{const s={gap:14,minWidth:200,items:n.right?.items,alarm:{visible:!0,...n.right?.alarm||{}},theme:{visible:!0,...n.right?.theme||{}},logout:{visible:!0,...n.right?.logout||{}},avatar:{visible:!0,width:30,height:30,...n.right?.avatar||{}}},r={wrapper:{className:"header-wrapper",...n.wrapper},logo:{gap:10,...n.logo},right:s},a=z.useNavigate(),c=l.useRef(null),x=T.useLogout(()=>a("/login",{replace:!0})),{componentSize:d,setComponentSize:h,gridSize:b,setGridSize:m,spacingSize:S,setSpacingSize:u,enableProtectWrapper:g,setEnableProtectWrapper:k,theme:y,setTheme:p,clearAllGridLayouts:j}=T.useUserStore(),L=1,O=2,R=2,w=(f,M)=>{try{if(!/^[a-zA-Z0-9-]+$/.test(f)||!/^[#a-zA-Z0-9()\s,.-]+$/.test(M))return;document.documentElement.style.setProperty(f,M)}catch(I){console.error("CSS variable setting failed:",I)}},F=f=>{if(!D[f])return;p(f);const M={...D[f]};w("--header-bg",M.headerBg),w("--header-text",M.headerText),w("--sidebar-bg",M.sidebarBg),w("--sidebar-text",M.sidebarText),w("--button-primary",M.buttonPrimary),w("--button-primary-hover",M.buttonPrimaryHover),w("--button-primary-active",M.buttonPrimaryActive),w("--button-default",M.buttonDefault),w("--button-default-hover",M.buttonDefaultHover),w("--button-default-border",M.buttonDefaultBorder),w("--button-permission-border",M.buttonPermissionBorder),c.current&&c.current.setAttribute("data-theme",f),document.documentElement.setAttribute("data-theme",f)};l.useEffect(()=>{if(y&&D[y]){const f={...D[y]};w("--header-bg",f.headerBg),w("--header-text",f.headerText),w("--sidebar-bg",f.sidebarBg),w("--sidebar-text",f.sidebarText),w("--button-primary",f.buttonPrimary),w("--button-primary-hover",f.buttonPrimaryHover),w("--button-primary-active",f.buttonPrimaryActive),w("--button-default",f.buttonDefault),w("--button-default-hover",f.buttonDefaultHover),w("--button-default-border",f.buttonDefaultBorder),w("--button-permission-border",f.buttonPermissionBorder),c.current&&c.current.setAttribute("data-theme",y),document.documentElement.setAttribute("data-theme",y)}else F("modern")},[y]);const V=()=>{x()};q.getTodateString?q.getTodateString("HH:mm:ss"):new Date().toLocaleTimeString("ko-KR");const G=D[y]?.headerBg||"#f3f4ff",H=e.jsxs("div",{style:{padding:"16px",backgroundColor:G,borderRadius:"8px",minWidth:"320px"},children:[e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx("div",{style:{marginBottom:"12px",fontSize:"14px",fontWeight:500},children:"테마 선택"}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px",marginBottom:"8px"},children:[e.jsx(o.Button,{type:y==="modern"?"primary":"default",size:"small",onClick:()=>F("modern"),style:{width:"100%",backgroundColor:y==="modern"?D.modern.headerBg:void 0,color:y==="modern"?D.modern.headerText:void 0,borderColor:y==="modern"?D.modern.headerBg:void 0},children:"모던"},"modern"),Object.entries(D).filter(([f])=>f!=="modern").map(([f,M])=>e.jsx(o.Button,{type:y===f?"primary":"default",size:"small",onClick:()=>F(f),style:{width:"100%",backgroundColor:y===f?M.headerBg:void 0,color:y===f?M.headerText:void 0,borderColor:y===f?M.headerBg:void 0},children:f},f))]})]}),e.jsx(o.Divider,{style:{margin:"16px 0"}}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsxs(o.Flex,{justify:"space-between",align:"center",style:{marginBottom:"8px"},children:[e.jsx("span",{style:{fontSize:"14px",fontWeight:500},children:"컴포넌트 크기"}),e.jsx(o.Button,{type:"text",size:"small",icon:e.jsx(P.UndoOutlined,{}),onClick:()=>h(L),disabled:d===L,style:{padding:"0 4px"}})]}),e.jsx(o.Slider,{marks:J,value:d,min:0,max:2,step:1,onChange:f=>h(f)})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsxs(o.Flex,{justify:"space-between",align:"center",style:{marginBottom:"8px"},children:[e.jsx("span",{style:{fontSize:"14px",fontWeight:500},children:"그리드 크기"}),e.jsx(o.Button,{type:"text",size:"small",icon:e.jsx(P.UndoOutlined,{}),onClick:()=>m(O),disabled:b===O,style:{padding:"0 4px"}})]}),e.jsx(o.Slider,{marks:J,value:b,min:0,max:2,step:1,onChange:f=>m(f)})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsxs(o.Flex,{justify:"space-between",align:"center",style:{marginBottom:"8px"},children:[e.jsx("span",{style:{fontSize:"14px",fontWeight:500},children:"여백 조정"}),e.jsx(o.Button,{type:"text",size:"small",icon:e.jsx(P.UndoOutlined,{}),onClick:()=>u(R),disabled:S===R,style:{padding:"0 4px"}})]}),e.jsx(o.Slider,{marks:J,value:S,min:0,max:2,step:1,onChange:f=>u(f)})]}),e.jsx(o.Divider,{style:{margin:"16px 0"}}),e.jsxs("div",{style:{marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("span",{style:{fontSize:"14px",fontWeight:500},children:"화면 보호 활성화"}),e.jsx(o.Switch,{checked:g,onChange:k})]}),e.jsx(o.Divider,{style:{margin:"16px 0"}}),e.jsx("div",{children:e.jsx(o.Button,{type:"default",danger:!0,size:"small",icon:e.jsx(P.UndoOutlined,{}),onClick:()=>{ze({title:"전체 그리드 레이아웃 초기화",content:"임의 변경한 그리드 레이아웃 변경사항을 초기화하시겠습니까? 기존 열려있는 화면들은 다시 열어야 적용됩니다.",onOk(){j()}})},block:!0,style:{fontSize:"12px"},children:"전체 그리드 레이아웃 초기화"})})]});return e.jsxs(Re,{className:r.wrapper.className,style:{...r.wrapper.style},children:[r.logo&&e.jsx("div",{className:"header-left",children:e.jsx("div",{className:"logo-container",style:{gap:r.logo?.gap},children:r.logo?.items})}),t&&e.jsx("div",{className:"header-center",style:{flex:1,display:"flex",justifyContent:"center",alignItems:"center"},children:t}),e.jsxs("div",{className:"header-right",style:{gap:r.right?.gap,minWidth:r.right?.minWidth},children:[r.right?.items?.map((f,M)=>e.jsx("div",{children:f},M)),r.right?.alarm?.visible&&e.jsx(o.Button,{type:"text",icon:e.jsx("img",{src:Be,alt:"알림"}),className:"alarm-btn",onClick:r.right?.alarm?.onClick}),r.right?.theme?.visible&&e.jsx(o.Popover,{content:H,title:"개인 설정",trigger:"click",placement:"bottomRight",onOpenChange:f=>r.right?.theme?.onOpenChange?.(f),children:e.jsx(o.Button,{type:"text",icon:e.jsx("img",{src:Oe,alt:"개인설정"}),className:"theme-btn",onClick:r.right?.theme?.onClick})}),r.right?.logout?.visible&&e.jsx(o.Button,{type:"text",icon:e.jsx("img",{src:Ee,alt:"로그아웃"}),onClick:r.right?.logout?.onClick||V,className:"logout-btn"}),r.right?.avatar?.visible&&e.jsx(o.Avatar,{icon:e.jsx(P.UserOutlined,{}),className:"avatar",style:{width:r.right?.avatar?.width,height:r.right?.avatar?.height},onClick:r.right?.avatar?.onClick})]})]})},ee=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[ee.Translate.toString(n),ee.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:t,duration:s,easing:r}=n;return t+" "+s+"ms "+r}}}),De=l.memo(({className:n,...t})=>{const s=l.useRef(null),{attributes:r,listeners:a,transform:c,transition:x,isDragging:d,setNodeRef:h}=Z.useSortable({id:t["data-node-key"]}),[b,m]=l.useState();l.useEffect(()=>{const j=s.current;if(j)if(d){const L=Math.round(j.getBoundingClientRect().width);m(L)}else m(void 0)},[d]);const S={...t.style,transform:c?ee.Transform.toString(c):void 0,transition:x??"transform 0.16s ease",cursor:"grab",userSelect:"none",willChange:"transform",width:b??void 0,minWidth:b??void 0,maxWidth:b??void 0,flex:b!==void 0?"0 0 auto":void 0},u=t.children,g=u.props?.className||"",p=t["data-gubun"]==="C"?g?`${g} tab-special`:"tab-special":g;return l.cloneElement(u,{ref:j=>{s.current!==j&&(s.current=j),h(j)},className:p,style:S,...r,...a})}),Fe=l.memo(function({config:t,isFirst:s,isLast:r,canCloseAll:a,onFirst:c,onPrev:x,onNext:d,onLast:h,onCloseAll:b}){return e.jsxs("div",{className:t.wrapper?.className,style:t.wrapper?.style,children:[e.jsx(o.Tooltip,{title:"첫 번째 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(o.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(P.StepBackwardOutlined,{}),onClick:c,disabled:s})}),e.jsx(o.Tooltip,{title:"이전 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(o.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(P.LeftOutlined,{}),onClick:x,disabled:s})}),e.jsx(o.Tooltip,{title:"다음 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(o.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(P.RightOutlined,{}),onClick:d,disabled:r})}),e.jsx(o.Tooltip,{title:"마지막 탭",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(o.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(P.StepForwardOutlined,{}),onClick:h,disabled:r})}),e.jsx(o.Tooltip,{title:"모든 탭 닫기",className:t.tooltip?.className,style:t.tooltip?.style,children:e.jsx(o.Button,{className:t.buttons?.className,style:t.buttons?.style,size:"small",icon:e.jsx(P.CloseOutlined,{}),onClick:b,disabled:!a})})]})}),ae=({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=T.useMenuViewStore(i=>i.tabs),r=T.useMenuViewStore(i=>i.activeMenuId),a=T.useMenuViewStore(i=>i.pinnedTabs),c=T.useMenuViewStore(i=>i.focusTab),x=T.useMenuViewStore(i=>i.closeTab),d=T.useMenuViewStore(i=>i.reorderTabs),h=T.useMenuViewStore(i=>i.togglePinTab),b=T.useMenuViewStore(i=>i.refreshTab),m=T.useMenuViewStore(i=>i.closeOtherTabs),S=T.useMenuViewStore(i=>i.closeRightTabs);T.useMenuViewStore(i=>i.closeAllTabs);const u=U.useSensors(U.useSensor(U.PointerSensor,{activationConstraint:{distance:6}})),g=i=>{c(i)},k=(i,v)=>{v==="remove"&&typeof i=="string"&&x(i)},y=()=>{s.length>0&&c(s[0].key)},p=()=>{if(!r||s.length<=1)return;const i=s.findIndex(v=>v.key===r);i>0&&c(s[i-1].key)},j=()=>{if(!r||s.length<=1)return;const i=s.findIndex(v=>v.key===r);i<s.length-1&&c(s[i+1].key)},L=()=>{s.length>0&&c(s[s.length-1].key)},O=()=>{s.forEach(i=>{a.has(i.key)||x(i.key)})},R=l.useCallback(i=>v=>{v.preventDefault(),v.stopPropagation()},[]),w=l.useCallback(i=>{const v=a.has(i),B=s.findIndex(K=>K.key===i),E=B>=0&&B<s.length-1,A=s.length>1;return[{key:"close",label:"닫기",icon:e.jsx(P.CloseOutlined,{}),onClick:()=>{v||x(i)},disabled:v},{key:"pin",label:v?"고정 해제":"고정",icon:e.jsx(P.PushpinOutlined,{}),onClick:()=>{h(i)}},{key:"refresh",label:"새로고침",icon:e.jsx(P.ReloadOutlined,{}),onClick:()=>{b(i)}},{type:"divider"},{key:"closeOthers",label:"다른 탭 닫기",icon:e.jsx(P.CloseOutlined,{}),onClick:()=>{m(i)},disabled:!A},{key:"closeRight",label:"우측 탭 닫기",icon:e.jsx(P.CloseOutlined,{}),onClick:()=>{S(i)},disabled:!E},{key:"closeAll",label:"전체 닫기",icon:e.jsx(P.RestOutlined,{}),onClick:()=>{O()},disabled:s.length===0}]},[s,a,x,h,b,m,S]),F=r?s.findIndex(i=>i.key===r):-1,V=F===0,G=F===s.length-1,H=l.useMemo(()=>s.map(i=>{const v=a.has(i.key);return{key:i.key,label:e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[v&&e.jsx(P.PushpinTwoTone,{twoToneColor:q.colorFormat.default.yellow05,style:{fontSize:"12px"}}),i.label]}),closable:!v,children:null}}),[s,a]),[f,M]=l.useState(null),I=l.useCallback(({active:i})=>{M(null)},[]),N=l.useCallback(({active:i,over:v})=>{if(!v||i.id===v.id)return;const B=s.findIndex($=>$.key===i.id),E=s.findIndex($=>$.key===v.id);if(B<0||E<0||B===E)return;const A=s.map($=>$.key),K=Z.arrayMove(A,B,E);d?.(K)},[s,d]),C=l.useCallback((i,v)=>e.jsx(U.DndContext,{sensors:u,onDragStart:I,onDragEnd:N,collisionDetection:U.closestCenter,modifiers:[xe.restrictToHorizontalAxis],children:e.jsx(Z.SortableContext,{items:s.map(B=>B.key),strategy:Z.horizontalListSortingStrategy,children:e.jsx(v,{...i,children:B=>{const E=B.key,A=f===E,$=s.find(X=>X.key===E)?.gubun;return e.jsx(o.Dropdown,{menu:{items:w(E)},trigger:["contextMenu"],open:A,onOpenChange:X=>{M(X?E:null)},children:e.jsx("span",{onContextMenu:R(E),style:{display:"inline-block",width:"100%"},children:l.createElement(De,{...B.props,key:B.key,"data-gubun":$},B)})})}})})}),[u,I,N,s,f,w,R]);return e.jsx("div",{className:t.wrapper.className,style:{...t.wrapper.style,display:s.length===0?"none":"block"},children:e.jsx(o.Tabs,{type:"editable-card",activeKey:r||void 0,onChange:g,onEdit:k,className:t.tabs.className,style:t.tabs.style,hideAdd:!0,items:H,tabBarExtraContent:e.jsx(Fe,{config:t?.nav,isFirst:!!V,isLast:!!G,canCloseAll:s.length>0,onFirst:y,onPrev:p,onNext:j,onLast:L,onCloseAll:O}),renderTabBar:C})})},{Sider:Ae}=o.Layout,le=({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},[s,r]=l.useState(""),[a,c]=l.useState("category"),[x,d]=l.useState([]),{activeMenuId:h,sidebarCollapsed:b,openTabFromMenu:m,toggleSidebar:S}=T.useMenuViewStore(),{menuList:u,isLoading:g,error:k,findMenuById:y,flatMenuList:p}=T.useMenuModelStore(),{nodes:j,treeNodes:L,loadFavoritesIfNeeded:O}=T.useFavoriteStore(),R=l.useMemo(()=>{const I=[],N=(C,i=0)=>{if(C.menuGbCd===t.menuGubunCode.program&&C.scrnPath){const v=" ".repeat(i),B=C.menuNo||"";I.push({value:C.menuId,label:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs("span",{children:[v,C.menuNm]}),e.jsx("span",{style:{fontSize:"11px",color:"#999",backgroundColor:"#f0f0f0",padding:"2px 6px",borderRadius:"3px",marginLeft:"8px"},children:B})]}),menuItem:C})}C.children&&C.children.length>0&&C.children.forEach(v=>N(v,i+1))};return u.forEach(C=>N(C)),I},[u]),w=l.useMemo(()=>s.trim()?R.filter(I=>{const N=I.menuItem.menuNm.toLowerCase(),C=String(I.menuItem.menuNo||"미지정").toLowerCase(),i=s.toLowerCase();return N.includes(i)||C.includes(i)}):[],[R,s]),F=I=>{if(!I||typeof I!="string"){console.warn("Invalid menu selection value:",I);return}if(!/^[a-zA-Z0-9_-]+$/.test(I)){console.warn("Invalid menu ID format:",I);return}const N=R.find(C=>C.value===I);if(N){const{menuItem:C}=N;if(!C||!C.menuId||!C.menuNm){console.warn("Invalid menu item:",C);return}C.menuGbCd===t.menuGubunCode.program&&C.scrnPath?(console.log("✅ 검색으로 프로그램 메뉴 선택 - 탭 추가 및 setCurrentProgram 호출"),console.log("메뉴명:",C.menuNm,"경로:",C.scrnPath,"scrnId:",C.scrnId),m(C)):(C.menuGbCd===t.menuGubunCode.mainMenu||C.menuGbCd===t.menuGubunCode.subMenu)&&(console.log("❌ 검색으로 메인/서브 메뉴 선택 - 이벤트 무시"),console.log("메뉴명:",C.menuNm,"menuGbCd:",C.menuGbCd)),r("")}},V=l.useCallback(I=>{const N=y(I);N?.menuGbCd===t.menuGubunCode.program&&(console.log("메뉴명:",N.menuNm,"경로:",N.scrnPath,"scrnId:",N.scrnId),m(N))},[y,m,t.menuGubunCode.program]),G=l.useCallback(I=>I.map(N=>({key:N.menuId,label:e.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},onDoubleClick:i=>{i.preventDefault(),i.stopPropagation()},children:e.jsx("span",{children:N.menuNm})}),icon:H(N.iconCd,N.menuGbCd),children:N.children&&N.children.length>0?G(N.children):void 0})),[]),H=(I,N)=>{if(I){const C=Y[I];if(C)return e.jsx(C,{})}if(N)switch(N){case t.menuGubunCode.mainMenu:return e.jsx(Y.HomeOutlined,{});case t.menuGubunCode.subMenu:return null;case t.menuGubunCode.program:return null;default:return null}return null},f=l.useCallback(I=>{if(u.length===0)return[];const N=i=>{if(i)return typeof i=="string"?j[i]:i},C=i=>{if(i.type==="M"){const v=i,B=y(v.menuId)||void 0,E=!!B,A=E?`${B?.menuNm??v.menuNm??v.menuId}`:`${v.menuNm??v.menuId} (삭제됨)`;return{key:v.menuId,label:A,icon:E?void 0:e.jsx(P.WarningOutlined,{style:{color:"#faad14"}})}}else{const v=i,B=(v.children??[]).map(N).filter(Boolean).map(C);return{key:v.bkmkId,label:v.bkmkNm??v.bkmkId,icon:v.prntBkmkId==="-"?e.jsx(P.StarOutlined,{}):e.jsx(P.FolderOpenOutlined,{}),children:B}}};return I.map(C)},[y,j,u]),M=l.useMemo(()=>f(L),[f,L,j]);return l.useEffect(()=>{q.getUserId()&&O(q.getUserId())},[O]),l.useEffect(()=>{a==="category"&&r("")},[a]),l.useEffect(()=>{if(!h||a!=="category")return;const N=(C=>{const i=[],v=new Map(p.map(E=>[E.menuId,E]));let B=C;for(;B;){const E=v.get(B);if(!E)break;if(E.menuPrntId&&E.menuPrntId!=="-"&&E.menuPrntId!=="")i.push(E.menuPrntId),B=E.menuPrntId;else break}return i})(h);N.length>0&&d(C=>{const i=new Set([...C,...N]);return Array.from(i)})},[h,a,p]),e.jsxs(Ae,{className:t.className.wrapper,collapsed:t.collapsed||b,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(o.Button,{type:"text",icon:t.collapsed||b?e.jsx(P.MenuUnfoldOutlined,{}):e.jsx(P.MenuFoldOutlined,{}),style:{fontSize:"12px",color:"#787878",padding:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0 10px 10px 0"},onClick:S})}),!(t.collapsed||b)&&e.jsx("div",{style:{padding:10},children:e.jsx(o.AutoComplete,{value:s,options:w,onSelect:F,onSearch:r,style:{width:"100%"},allowClear:!0,children:e.jsx(o.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||b)&&e.jsx("div",{style:{width:"100%",padding:"0px 10px",marginBottom:"10px"},children:e.jsx(o.Segmented,{className:t.className.segmented.wrapper,options:[{label:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:t.className.segmented.item,style:{display:"flex",alignItems:"center"},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,style:{display:"flex",alignItems:"center"},children: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:"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:a,onChange:I=>{c(I)},style:{width:"100%"},block:!0})}),e.jsxs("div",{className:t.className.sider.content,children:[g&&e.jsxs("div",{className:t.className.sider.loading,style:{padding:10,margin:"0 auto",textAlign:"center",color:"var(--text-primary)"},children:[e.jsx(o.ConfigProvider,{theme:{components:{Spin:{colorPrimary:"var(--primary-color)"}}},children:e.jsx(o.Spin,{size:"default"})}),e.jsx("div",{className:t.className.sider.loadingText,style:{marginTop:10},children:"메뉴 로딩 중..."})]}),k&&e.jsxs("div",{className:t.className.sider.error,children:[e.jsx(P.ExclamationCircleOutlined,{className:t.className.sider.errorIcon}),e.jsx("div",{className:t.className.sider.errorText,children:"메뉴 로드 실패"})]}),!g&&!k&&a==="category"&&u.length===0&&e.jsx("div",{style:{padding:"16px",textAlign:"center",color:"#666",fontSize:"12px"},children:"메뉴가 없습니다"}),!g&&!k&&a==="favorite"&&M.length===0&&e.jsx("div",{style:{padding:"16px",textAlign:"center",color:"#666",fontSize:"12px"},children:"즐겨찾기된 메뉴가 없습니다"}),!g&&!k&&a==="category"&&u.length>0&&e.jsx("div",{className:t.className.sider.menuContainer,children:e.jsx(o.Menu,{theme:"light",mode:"inline",items:G(u),className:t.className.sider.menu,selectedKeys:[h||""],openKeys:x,onOpenChange:d,onClick:I=>V(I.key)})}),!g&&!k&&a==="favorite"&&M.length>0&&e.jsx("div",{className:t.className.sider.menuContainer,children:e.jsx(o.Menu,{theme:"light",mode:"inline",items:M,className:t.className.sider.menu,selectedKeys:[h||""],onClick:I=>V(I.key)})})]})]})};class $e 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(o.Result,{status:"error",title:"컴포넌트 로딩 중 오류가 발생했습니다",subTitle:this.state.error?`오류 내용: ${this.state.error.message}`:"알 수 없는 오류가 발생했습니다",extra:[e.jsx(o.Button,{type:"primary",icon:e.jsx(P.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 We=({isActive:n,instance:t,params:s})=>{const{activeMenuId:r,closeTab:a}=T.useMenuViewStore(),c=()=>{r&&a(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($e,{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(o.Result,{icon:e.jsx(P.ExclamationCircleTwoTone,{twoToneColor:"#69b1ff"}),status:"warning",title:"등록된 메뉴 정보가 없거나 유효한 메뉴가 아닙니다.",subTitle:e.jsx(o.Typography.Text,{type:"secondary",children:"자세한 내용은 관리자에게 문의바랍니다."}),extra:e.jsx(o.Space,{children:e.jsx(o.Button,{icon:e.jsx(P.CloseOutlined,{}),onClick:c,children:"탭 닫기"})})})})})},ce=l.memo(We),de=({menuGubunCode:n={mainMenu:"MAIN",subMenu:"SUB",program:"PRGM"},mode:t="horizontal",style:s,routeMap:r})=>{const{menuList:a,findMenuById:c,flatMenuList:x}=T.useMenuModelStore(),{activeMenuId:d}=T.useMenuViewStore(),h=z.useNavigate(),[b,m]=l.useState([]),S=l.useCallback((y,p)=>{if(y){const j=Y[y];if(j)return e.jsx(j,{})}if(p)switch(p){case n.mainMenu:return e.jsx(Y.HomeOutlined,{});default:return null}return null},[n]),u=l.useCallback(y=>y.map(p=>{const j=p.children&&p.children.length===1&&p.children[0].menuGbCd===n.program;return{key:p.menuId,label:p.menuNm,icon:S(p.iconCd,p.menuGbCd),children:p.children&&p.children.length>0&&!j?u(p.children):void 0}}),[S,n]),g=l.useMemo(()=>u(a),[a,u]),k=l.useCallback(y=>{const p=c(y.key);if(p){if(p.children&&p.children.length===1&&p.children[0].menuGbCd===n.program){const j=p.children[0];let L=r?.[j.menuId]||j.scrnPath||"/";L==="/"?L="/main":L.startsWith("/main")||(L=L.startsWith("/")?`/main${L}`:`/main/${L}`),h(L);return}if(p.menuGbCd===n.program&&p.scrnPath){let j=r?.[p.menuId]||p.scrnPath||"/";j==="/"?j="/main":j.startsWith("/main")||(j=j.startsWith("/")?`/main${j}`:`/main/${j}`),h(j);return}}},[c,n,h,r]);return l.useEffect(()=>{if(!d||t!=="vertical")return;const p=(j=>{const L=[],O=new Map(x.map(w=>[w.menuId,w]));let R=j;for(;R;){const w=O.get(R);if(!w)break;if(w.menuPrntId&&w.menuPrntId!=="-"&&w.menuPrntId!=="")L.push(w.menuPrntId),R=w.menuPrntId;else break}return L})(d);p.length>0&&m(j=>{const L=new Set([...j,...p]);return Array.from(L)})},[d,t,x]),e.jsx(o.Menu,{mode:t,theme:"light",items:g,selectedKeys:[d||""],openKeys:t==="vertical"?b:void 0,onOpenChange:t==="vertical"?m:void 0,onClick:k,style:s})},ue=()=>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"})})})]}),_e=(n,t)=>{console.log("createPopupViewLoader 호출 - popupUrl:",n);const r=(a=>{if(a.startsWith("/src/pages/views/popup/")){const d=a+".tsx";return console.log(`팝업 URL 변환: ${a} -> ${d}`),d}const x=`/src/pages/views/popup/${a.startsWith("/")?a.substring(1):a}.tsx`;return console.log(`팝업 URL 변환: ${a} -> ${x}`),x})(n);return!r||!t?.glob||!t.glob[r]?(console.warn(`팝업 뷰를 찾을 수 없습니다: ${n} (${r})`),console.warn("사용 가능한 팝업 뷰들:",Object.keys(t?.glob||{})),null):t.glob[r]},Ve=({popup:n,modules:t})=>{const[s,r]=l.useState(null),[a,c]=l.useState(!1),[x,d]=l.useState(null),h=()=>{console.log("PopupArea - handleClose:",n.popupId),T.usePopupStore.getState().closePopup(n.popupId)};return l.useEffect(()=>{(async()=>{console.log("팝업 뷰 로드 시작:",n.popupUrl),c(!0),d(null);try{const m=_e(n.popupUrl,t);if(!m){const g=`팝업 뷰를 찾을 수 없습니다: ${n.popupUrl}`;console.error(g),d(g),c(!1);return}console.log("팝업 뷰 모듈 로드 중...");const S=await m();console.log("팝업 뷰 모듈 로드 완료:",S);const u=S.default;if(console.log("팝업 뷰 컴포넌트:",u),!u)throw new Error("팝업 뷰 컴포넌트를 찾을 수 없습니다");r(()=>u),console.log("팝업 뷰 설정 완료")}catch(m){console.error("팝업 뷰 로드 실패:",m),d(m instanceof Error?m.message:"팝업 뷰 로드 실패")}finally{c(!1)}})()},[n.popupUrl]),a?e.jsxs("div",{className:"popup-loading",children:[e.jsx(o.Spin,{size:"large"}),e.jsx("p",{children:"팝업을 로드하는 중..."})]}):x?e.jsxs("div",{className:"popup-error",children:[e.jsx(o.Empty,{description:x,image:o.Empty.PRESENTED_IMAGE_SIMPLE}),e.jsx(o.Button,{icon:e.jsx(P.ReloadOutlined,{}),onClick:()=>window.location.reload(),children:"다시 시도"})]}):s?e.jsx(l.Suspense,{fallback:e.jsxs("div",{className:"popup-loading",children:[e.jsx(o.Spin,{size:"large"}),e.jsx("p",{children:"컴포넌트를 로드하는 중..."})]}),children:e.jsx(s,{popup:{...n,close:h},onClose:h})}):e.jsx("div",{className:"popup-empty",children:e.jsx(o.Empty,{description:"팝업 내용을 불러올 수 없습니다."})})},he=({modules:n})=>{const{popups:t}=T.usePopupStore();return t.length===0?null:e.jsx(e.Fragment,{children:t.map(s=>{if(s.isLocal||s.popupCode.startsWith("CORE_"))return null;const r=s.config||{},a=r.width||s.width||800,c=r.height||s.height||600,x=r.title||s.popupTitle,d=s.buttonList?.map((h,b)=>({key:h.btnId||`btn_${b}`,text:h.btnNm,type:h.btnId==="CLOSE"?"default":"primary",disabled:h.enblYn!=="Y",danger:!1}))||[];return console.log("팝업 렌더링:",{popupId:s.popupId,popupCode:s.popupCode,title:x,width:a,height:c,buttons:d}),e.jsx(_.SearchBoxProvider,{children:e.jsx("div",{children:e.jsx(Ve,{popup:s,modules:n})},s.popupId)},`sbp-${s.popupId}`)})})},me=()=>{const{popups:n,closePopup:t}=T.usePopupStore();return e.jsx(e.Fragment,{children:n.map(s=>{if(!(s.isLocal||s.popupCode.startsWith("CORE_")))return null;const r=ie[s.popupCode];if(!r)return null;const a=r.component;return e.jsx(_.SearchBoxProvider,{children:e.jsx(l.Suspense,{fallback:null,children:e.jsx(a,{popup:s,onClose:()=>t(s.popupId)})},s.popupId)},`sbp-${s.popupId}`)})})},Ge=n=>({position:"absolute",inset:0,visibility:n?"visible":"hidden",opacity:n?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:n?"auto":"none"}),He=({once:n=!0})=>{const{lock:t}=_.useLock(),s=l.useRef(!1);return l.useEffect(()=>{n&&s.current||(s.current=!0,t())},[n,t]),null},pe=({isActive:n,flagged:t,tabKey:s,onUnlock:r,children:a})=>{const c=l.useRef(null),[x,d]=l.useState(!1),h=l.useCallback(m=>{c.current=m,d(!!m)},[]),b=Ge(n);return e.jsx("div",{ref:h,style:b,children:x?e.jsxs(_.ScreenProtectProvider,{idleMs:Number.POSITIVE_INFINITY,persistLocked:!1,overlayScope:"scoped",overlayPosition:"absolute",eventTarget:c.current,overlayId:`tab-overlay-${s}`,onUnlock:async()=>(r(),!0),children:[n&&t?e.jsx(He,{once:!0}):null,a]}):a})},Ue=({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:a,activeMenuId:c,tabProtectFlag:x,refreshTabKey:d,clearProtectFlagForKey:h}=T.useMenuViewStore(),{enableProtectWrapper:b}=T.useUserStore(),m=l.useCallback(u=>{const g=s.current.get(u.key);if(g)return g;const k=u.gubun==="M"?`${t.view.path}${u.menuItem?.scrnPath}.tsx`:`${t.view.path}${u.componentItem?.scrnPath}.tsx`;let y=t.view?.glob?.[k];if(!y&&typeof{url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Q&&Q.tagName.toUpperCase()==="SCRIPT"&&Q.src||new URL("chunks/layout-components-BMLp8YAy.cjs",document.baseURI).href}<"u",y){const p=l.lazy(y);return s.current.set(u.key,p),p}return null},[t.view?.glob]),S=l.useRef({});return l.useEffect(()=>{const u=S.current,g=d;Object.keys(g).forEach(k=>{const y=u[k],p=g[k];y!==p&&s.current.delete(k)}),S.current={...g}},[d]),e.jsxs(o.Layout,{className:"main-layout",children:[e.jsx(se,{config:n?.header}),e.jsxs(o.Layout,{children:[e.jsx(le,{config:n?.sidebar}),e.jsxs("div",{className:"content-container",children:[e.jsx(ae,{config:n?.menuTab}),e.jsxs(ne,{config:n?.content,children:[e.jsx("div",{className:"view-container",children:e.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[r.map(u=>{const g=m(u),k=c===u.key,y=!!x?.[u.key],p=a[u.key]||{},j=d[u.key],L=j!==void 0?`${u.key}-${j}`:u.key,O=e.jsx(ce,{isActive:k,instance:g||void 0,params:p},L);return e.jsx(_.SearchBoxProvider,{children:b?e.jsx(pe,{isActive:k,flagged:y,tabKey:u.key,onUnlock:()=>h(u.key),children:O},u.key):O},`sbp-${u.key}`)}),(!c||r.length===0)&&e.jsx(ue,{})]})}),e.jsx(me,{}),e.jsx(he,{modules:t?.popup})]})]})]}),(n?.quickService?.visible??!0)&&e.jsx(te.QuickServiceToggle,{})]})},ge=({children:n,menuGubunCode:t={mainMenu:"CMPRGRM",subMenu:"CMPRGRS",program:"CMPRGRP"},routeMap:s,routes:r})=>{const a=z.useLocation(),c=z.useNavigate(),{flatMenuList:x,findMenuById:d}=T.useMenuModelStore(),h=l.useMemo(()=>{const m=a.pathname,S=m.replace(/^\/main/,"")||"/";if(s){const u=Object.keys(s).find(k=>s[k]===m);if(u)return d(u);const g=Object.keys(s).find(k=>(s[k].replace(/^\/main/,"")||"/")===S);if(g)return d(g)}return x.find(u=>u.menuGbCd===t.program&&u.scrnPath&&(u.scrnPath===S||u.scrnPath===m||m.endsWith(u.scrnPath)||S===u.scrnPath))},[a.pathname,x,t.program,s,d]),b=l.useMemo(()=>{if(!h)return[];const m=[],S=g=>{if(!g||!g.menuPrntId||g.menuPrntId==="-")return[];const k=d(g.menuPrntId);return k?[...S(k),k]:[]};return S(h).forEach(g=>{if(g.menuGbCd===t.mainMenu||g.menuGbCd===t.subMenu){let k;if(s&&g.menuId&&(k=s[g.menuId]),!k&&r&&g.scrnPath){const y=g.scrnPath.startsWith("/")?g.scrnPath:`/${g.scrnPath}`,p=Object.keys(r).find(j=>j===y||j===`/main${y}`);p&&(k=p.startsWith("/main")?p:`/main${p.startsWith("/")?p:`/${p}`}`)}m.push({title:g.menuNm,onClick:k?()=>c(k):void 0})}}),m.push({title:h.menuNm}),m},[h,t,c,d]);return e.jsxs("div",{style:{height:"100%",padding:"15px 20px"},children:[e.jsx(o.Breadcrumb,{separator:">",items:b,style:{marginBottom:"16px"}}),e.jsx("div",{children:n})]})},qe=({config:n={}})=>{const t=n?.header?.menu,s=t?.visible!==!1,r=t?.routes,a=l.useMemo(()=>{if(!r)return;const c={},{flatMenuList:x}=T.useMenuModelStore.getState();return x.forEach(d=>{if(d.menuGbCd===t?.menuGubunCode?.program&&d.scrnPath){const h=d.scrnPath.startsWith("/")?d.scrnPath:`/${d.scrnPath}`,b=Object.keys(r).find(m=>{const S=m==="/"?"/":m.startsWith("/")?m:`/${m}`;return S===h||S===`/main${h}`||h===S.replace(/^\/main/,"")});if(b){const m=b==="/"?"/main":b.startsWith("/main")?b:`/main${b.startsWith("/")?b:`/${b}`}`;c[d.menuId]=m}}}),c},[r,t?.menuGubunCode?.program]);return e.jsxs(o.Layout,{className:"main-layout",children:[e.jsx(se,{config:n?.header,children:s&&e.jsx(de,{menuGubunCode:t?.menuGubunCode,mode:t?.style?.mode||"horizontal",routeMap:a,style:{border:"none",backgroundColor:"transparent",minWidth:0,flex:1,...t?.style}})}),e.jsx("div",{className:"content-container",children:e.jsxs(ne,{config:n?.content,children:[e.jsx("div",{className:"view-container",children:e.jsx("div",{style:{position:"relative",width:"100%",height:"100%"},children:e.jsx(l.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(z.Routes,{children:Object.entries(r||{}).map(([c,x])=>{const d=c==="/"?"":c.replace(/^\/main/,"").replace(/^\//,"")||"";return e.jsx(z.Route,{path:d,element:e.jsx(ge,{menuGubunCode:t?.menuGubunCode,routeMap:a,routes:r,children:e.jsx(x,{})})},c)})})})})}),e.jsx(me,{})]})})]})};function Ke({config:n,ui:t}){const{loading:s,capsOn:r,prefills:a,onKeyDown:c,doLogin:x}=T.useLogin(n),d=h=>x(h);return l.useEffect(()=>{T.useSystemStore.getState().systemMap.length===0&&T.useSystemStore.getState().fetchSystemMap()},[]),e.jsx(e.Fragment,{children:t({onSubmit:d,loading:s,capsOn:r,onKeyDown:c,prefills:a})})}function Ze({onSubmit:n,loading:t,capsOn:s,onKeyDown:r,prefills:a,labels:c={id:"ID 혹은 사번",pw:"비밀번호",remember:"Remember me",login:"로그인"},header:x,footer:d}){const[h]=o.Form.useForm();return l.useEffect(()=>{a&&(a.id||a.pswr)&&h.setFieldsValue({id:a.id,pswr:a.pswr})},[a,h]),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(o.Form,{form:h,onFinish:n,className:"login-form",children:e.jsxs(o.Flex,{vertical:!0,children:[e.jsx(o.Form.Item,{name:"id",rules:[{required:!0,message:"아이디를 입력해주세요."},{whitespace:!0,message:"아이디는 공백이 들어갈 수 없습니다."}],children:e.jsx(o.Input,{allowClear:!0,placeholder:c.id,onKeyDown:r})}),e.jsx(o.Form.Item,{name:"pswr",rules:[{required:!0,message:"비밀번호를 입력하세요."}],children:e.jsx(o.Input.Password,{allowClear:!0,placeholder:c.pw,onKeyDown:r})}),e.jsx(o.Form.Item,{name:"remember",valuePropName:"checked",children:e.jsx(o.Checkbox,{children:c.remember})}),e.jsx("div",{className:s?"caps-lock caps-lock-on":"caps-lock",children:s?"Caps Lock On":"Caps Lock Off"}),e.jsx(o.Form.Item,{children:e.jsx(o.Button,{type:"primary",htmlType:"submit",loading:t,block:!0,children:c.login})})]})}),d]})})}const{Text:W,Title:Ye}=o.Typography;function Xe({loginConfig:n,loginParams:t,mainLogo:s,systemLogo:r,onGoLogin:a,onGoMain:c}){const{loginStatus:x,doSsoLogin:d}=T.useSsoLogin(n);l.useEffect(()=>{h()},[t.userId]);const h=()=>d(t),b=({children:S})=>e.jsxs(Ye,{level:4,style:{marginBottom:8,display:"flex",alignItems:"center",justifyContent:"center"},children:[r&&r," ",S]}),m=()=>x==="LOADING"?e.jsxs(e.Fragment,{children:[e.jsx(o.Spin,{size:"large",style:{margin:"10px 0"}}),e.jsxs("div",{children:[e.jsx(b,{children:"로그인 중입니다."}),e.jsxs(W,{children:["인증 정보를 확인하는 중입니다.",e.jsx("br",{}),"브라우저 창을 닫지 말아 주세요."]})]}),e.jsx(W,{type:"secondary",style:{fontSize:12},children:"인증이 완료되면 자동으로 다음 화면으로 이동합니다."}),e.jsx(o.Button,{style:{marginTop:8},onClick:a,children:"로그인 화면"})]}):x==="SUCCESS"?e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{fontSize:48},children:e.jsx(P.CheckCircleTwoTone,{twoToneColor:"#52c41a"})}),e.jsxs("div",{children:[e.jsx(b,{children:"로그인에 성공했습니다."}),e.jsx(W,{children:"잠시만 기다려 주세요."})]}),e.jsx(W,{type:"secondary",style:{fontSize:12},children:"잠시 후 자동으로 다음 화면으로 이동합니다."}),e.jsx(o.Space,{style:{marginTop:8,justifyContent:"center"},children:e.jsx(o.Button,{type:"primary",onClick:c,children:"바로 이동하기"})})]}):x==="FAIL"?e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{fontSize:48},children:e.jsx(P.ExclamationCircleTwoTone,{twoToneColor:"#ff4d4f"})}),e.jsxs("div",{children:[e.jsx(b,{children:"로그인에 실패했습니다."}),e.jsxs(W,{children:["인증 과정에서 오류가 발생했습니다.",e.jsx("br",{}),"다시 시도해 주세요."]})]}),e.jsx(W,{type:"secondary",style:{fontSize:12},children:"문제가 지속되면 관리자에게 문의해 주세요."}),e.jsxs(o.Space,{style:{marginTop:8,justifyContent:"center"},children:[e.jsx(o.Button,{type:"primary",onClick:h,icon:e.jsx(P.ReloadOutlined,{}),children:"다시 시도"}),e.jsx(o.Button,{onClick:a,icon:e.jsx(P.LoginOutlined,{}),children:"로그인 화면"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(o.Spin,{size:"large",style:{margin:"10px 0"}}),e.jsx(W,{children:"로그인 상태를 확인하는 중입니다."})]});return l.useEffect(()=>{T.useSystemStore.getState().systemMap.length===0&&T.useSystemStore.getState().fetchSystemMap()},[]),e.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#f5f5f5"},children:e.jsx(o.Card,{style:{width:420,padding:"32px 32px 28px",textAlign:"center",borderRadius:16,boxShadow:"0 8px 24px rgba(0,0,0,0.06)"},children:e.jsxs(o.Space,{direction:"vertical",size:16,style:{width:"100%"},children:[e.jsx("div",{children:s&&s}),m()]})})})}const{Text:oe,Title:Qe}=o.Typography;function Je({mode:n,mainLogo:t,systemLogo:s,newUserId:r,onContinue:a,onGoLogin:c}){const x=({children:m})=>e.jsxs(Qe,{level:4,style:{marginBottom:8,display:"flex",alignItems:"center",justifyContent:"center",gap:6},children:[s&&s," ",m]}),{title:d,desc:h,subDesc:b}=n==="SESSION_CHANGED"?{title:"세션이 변경되었습니다.",desc:`이 브라우저에서 다른 계정으로 다시 로그인되었습니다.
|
|
36
|
+
현재 창에서는 이전 계정을 더 이상 사용할 수 없습니다.`,subDesc:r?`새로 로그인된 계정: ${r}`:"새로 로그인된 계정으로 계속 진행하거나, 로그인 화면으로 이동해 주세요."}:{title:"세션이 만료되었습니다.",desc:`일정 시간 동안 사용하지 않아 로그인이 해제되었습니다.
|
|
37
|
+
보안을 위해 다시 로그인해 주세요.`,subDesc:"계속 이용하시려면 로그인 화면으로 이동해 주세요."};return e.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#f5f5f5"},children:e.jsx(o.Card,{style:{width:450,padding:"32px 32px 28px",textAlign:"center",borderRadius:16,boxShadow:"0 8px 24px rgba(0,0,0,0.06)"},children:e.jsxs(o.Space,{direction:"vertical",size:16,style:{width:"100%"},children:[e.jsx("div",{children:t&&t}),e.jsx("div",{style:{fontSize:48},children:e.jsx(P.ExclamationCircleTwoTone,{twoToneColor:"#faad14"})}),e.jsxs("div",{children:[e.jsx(x,{children:d}),e.jsx(oe,{children:h.split(`
|
|
38
|
+
`).map((m,S)=>e.jsxs("span",{children:[m,e.jsx("br",{})]},S))})]}),e.jsx(oe,{type:"secondary",style:{fontSize:12},children:b}),e.jsx(o.Space,{style:{marginTop:8,justifyContent:"center"},children:a&&r&&e.jsxs(o.Button,{type:"primary",icon:e.jsx(P.CheckCircleTwoTone,{}),onClick:a,children:[r," 계정으로 계속 사용"]})})]})})})}exports.AppWrapper=Me;exports.BwgCoreLogin=Ke;exports.BwgPortal01=Ue;exports.BwgPortal02=qe;exports.BwgSessionNotice=Je;exports.BwgSsoLogin=Xe;exports.ConfigurableContent=ne;exports.ConfigurableHeader=se;exports.ConfigurableMenuTab=ae;exports.ConfigurableSidebar=le;exports.ContentContainer=ce;exports.ContentWrapper=ge;exports.DefaultLoginView=Ze;exports.HeaderContainer=de;exports.LandingContainer=ue;exports.LoadingContainer=Te;exports.PopupContainer=he;exports.ProtectWrapper=pe;exports.localPopupRegistry=ie;
|