@bwg-ui/core 1.2.9 → 1.2.12

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 (122) hide show
  1. package/dist/chunks/{MenuReport-CuAfCZbc.cjs → MenuReport-Bqeps5fC.cjs} +1 -1
  2. package/dist/chunks/{MenuReport-iuRC_snf.js → MenuReport-CozV1tpR.js} +28 -28
  3. package/dist/chunks/common-components-B-zgrX-L.cjs +1028 -0
  4. package/dist/chunks/common-components-XA2KG7Pl.js +30179 -0
  5. package/dist/chunks/{layout-components-C-9ATcL9.js → layout-components-MrnKV5g7.js} +548 -478
  6. package/dist/chunks/layout-components-bb0cWC3I.cjs +35 -0
  7. package/dist/components/common/BwgGrid.d.ts +1 -1
  8. package/dist/components/common/BwgGrid.d.ts.map +1 -1
  9. package/dist/components/common/BwgView.d.ts +9 -3
  10. package/dist/components/common/BwgView.d.ts.map +1 -1
  11. package/dist/components/common/index.cjs +1 -1
  12. package/dist/components/common/index.d.ts +1 -1
  13. package/dist/components/common/index.d.ts.map +1 -1
  14. package/dist/components/common/index.js +5 -5
  15. package/dist/components/core/index.cjs +1 -1
  16. package/dist/components/core/index.js +200 -200
  17. package/dist/components/guide/BwgPracticeGuide.d.ts +6 -0
  18. package/dist/components/guide/BwgPracticeGuide.d.ts.map +1 -0
  19. package/dist/components/guide/BwgPracticeGuideS00.d.ts +6 -0
  20. package/dist/components/guide/BwgPracticeGuideS00.d.ts.map +1 -0
  21. package/dist/components/guide/BwgPracticeGuideS01.d.ts +6 -0
  22. package/dist/components/guide/BwgPracticeGuideS01.d.ts.map +1 -0
  23. package/dist/components/guide/CMHldyCfg.d.ts +3 -0
  24. package/dist/components/guide/CMHldyCfg.d.ts.map +1 -0
  25. package/dist/components/guide/index.cjs +1 -1
  26. package/dist/components/guide/index.d.ts +2 -0
  27. package/dist/components/guide/index.d.ts.map +1 -1
  28. package/dist/components/guide/index.js +645 -5
  29. package/dist/components/layout/BwgCoreLogin.d.ts +38 -0
  30. package/dist/components/layout/BwgCoreLogin.d.ts.map +1 -0
  31. package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
  32. package/dist/components/layout/index.cjs +1 -1
  33. package/dist/components/layout/index.d.ts +1 -0
  34. package/dist/components/layout/index.d.ts.map +1 -1
  35. package/dist/components/layout/index.js +13 -11
  36. package/dist/components/pages/auth/CMAuthMstrM01.d.ts +6 -0
  37. package/dist/components/pages/auth/CMAuthMstrM01.d.ts.map +1 -0
  38. package/dist/components/pages/auth/CMRoleMstrM01.d.ts +4 -0
  39. package/dist/components/pages/auth/CMRoleMstrM01.d.ts.map +1 -0
  40. package/dist/components/pages/guide/BwgComponentGuideM01.d.ts +3 -0
  41. package/dist/components/pages/guide/BwgComponentGuideM01.d.ts.map +1 -0
  42. package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts +3 -0
  43. package/dist/components/pages/guide/BwgDeveloperGuideM01.d.ts.map +1 -0
  44. package/dist/components/pages/guide/BwgReactGuideM01.d.ts +3 -0
  45. package/dist/components/pages/guide/BwgReactGuideM01.d.ts.map +1 -0
  46. package/dist/components/pages/index.d.ts +20 -0
  47. package/dist/components/pages/index.d.ts.map +1 -0
  48. package/dist/components/pages/rsrc/CMFileMstrM01.d.ts +4 -0
  49. package/dist/components/pages/rsrc/CMFileMstrM01.d.ts.map +1 -0
  50. package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts +4 -0
  51. package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts.map +1 -0
  52. package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts +16 -0
  53. package/dist/components/pages/rsrc/CMMenuPrgrSelectModal.d.ts.map +1 -0
  54. package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts +16 -0
  55. package/dist/components/pages/rsrc/CMMenuPrntSelectModal.d.ts.map +1 -0
  56. package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts +4 -0
  57. package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts.map +1 -0
  58. package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts +4 -0
  59. package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts.map +1 -0
  60. package/dist/components/pages/syst/CMSystCfgM01.d.ts +4 -0
  61. package/dist/components/pages/syst/CMSystCfgM01.d.ts.map +1 -0
  62. package/dist/components/pages/syst/CMSystCodeM01.d.ts +4 -0
  63. package/dist/components/pages/syst/CMSystCodeM01.d.ts.map +1 -0
  64. package/dist/components/pages/types.d.ts +5 -0
  65. package/dist/components/pages/types.d.ts.map +1 -0
  66. package/dist/components/pages/user/CMUserMstrM01.d.ts +4 -0
  67. package/dist/components/pages/user/CMUserMstrM01.d.ts.map +1 -0
  68. package/dist/components/popup/SearchAddressModalM01.d.ts +7 -0
  69. package/dist/components/popup/SearchAddressModalM01.d.ts.map +1 -0
  70. package/dist/components/popup/SearchHolidayP01.d.ts +4 -0
  71. package/dist/components/popup/SearchHolidayP01.d.ts.map +1 -0
  72. package/dist/components/popup/index.cjs +1 -1
  73. package/dist/components/popup/index.d.ts +2 -1
  74. package/dist/components/popup/index.d.ts.map +1 -1
  75. package/dist/components/popup/index.js +4 -3
  76. package/dist/index.cjs +1 -1
  77. package/dist/index.d.ts +1 -0
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +256 -238
  80. package/dist/stores/favoriteStore.d.ts +10 -9
  81. package/dist/stores/favoriteStore.d.ts.map +1 -1
  82. package/dist/stores/index.cjs +2 -2
  83. package/dist/stores/index.d.ts +4 -0
  84. package/dist/stores/index.d.ts.map +1 -1
  85. package/dist/stores/index.js +1129 -631
  86. package/dist/stores/loginStore.d.ts +64 -0
  87. package/dist/stores/loginStore.d.ts.map +1 -0
  88. package/dist/stores/menuModelStore.d.ts +1 -1
  89. package/dist/stores/menuViewStore.d.ts +1 -0
  90. package/dist/stores/menuViewStore.d.ts.map +1 -1
  91. package/dist/stores/systemStore.d.ts +32 -0
  92. package/dist/stores/systemStore.d.ts.map +1 -0
  93. package/dist/stores/userStore.d.ts +5 -5
  94. package/dist/stores/userStore.d.ts.map +1 -1
  95. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  96. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  97. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  98. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  99. package/dist/types/bwg-global.d.ts +2 -1
  100. package/dist/utils/apiUtils.d.ts +27 -60
  101. package/dist/utils/apiUtils.d.ts.map +1 -1
  102. package/dist/utils/commonUtils.d.ts +0 -6
  103. package/dist/utils/commonUtils.d.ts.map +1 -1
  104. package/dist/utils/gwUtils.d.ts +3 -2
  105. package/dist/utils/gwUtils.d.ts.map +1 -1
  106. package/dist/utils/index.cjs +1 -1
  107. package/dist/utils/index.d.ts +3 -7
  108. package/dist/utils/index.d.ts.map +1 -1
  109. package/dist/utils/index.js +1628 -1017
  110. package/dist/utils/serviceConfig.d.ts +1 -0
  111. package/dist/utils/serviceConfig.d.ts.map +1 -1
  112. package/dist/utils/userUtils.d.ts.map +1 -1
  113. package/package.json +1 -1
  114. package/dist/chunks/common-components-CFIJNFN0.js +0 -16236
  115. package/dist/chunks/common-components-CioS_8Bi.cjs +0 -183
  116. package/dist/chunks/core-CA7iRgyb.cjs +0 -1
  117. package/dist/chunks/core-D18HD1It.js +0 -513
  118. package/dist/chunks/enc-base64-CdWu8KMI.js +0 -101
  119. package/dist/chunks/enc-base64-DSIiAsI5.cjs +0 -1
  120. package/dist/chunks/layout-components-DMR4tl9_.cjs +0 -35
  121. package/dist/chunks/sha256-D5iKSlK6.cjs +0 -1
  122. package/dist/chunks/sha256-DQcqzuys.js +0 -78
@@ -0,0 +1,1028 @@
1
+ "use strict";const ae=require("../utils/index.cjs"),ut=require("../stores/index.cjs"),e=require("react/jsx-runtime"),q=require("@ant-design/icons"),s=require("antd"),u=require("react"),ht=require("../provider/index.cjs"),wu=require("dompurify"),ec=require("quill"),ju=require("react-quill"),oa=require("quill-image-resize-module-react"),Po=require("react-dom"),Ze=require("realgrid"),ia=require("realgrid-react"),Su=require("react-rnd"),Ru=require("./layout-components-bb0cWC3I.cjs"),H=require("../components/core/index.cjs"),sa=require("react-router-dom"),pi=require("dayjs");function tc(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const Sn=tc(q),y=tc(u),Xi=({checkAuth:t=!1,buttons:r,gap:n=8})=>{const{user:o}=ut.useUserStore(),i=ht.useServiceCodeValue("AUTH_BTNS"),[a,l]=u.useState({});u.useEffect(()=>{const d=t?t.menuId:void 0,p=t?t.grpId:void 0;if(!d||!p){l({});return}ae.callService(i,{crprCd:o?.crprCd,userId:o?.userId,grpId:p.toUpperCase(),menuId:d}).then(h=>{const f=Array.isArray(h?.data)?h.data:Array.isArray(h)?h:[];console.log("@@ 권한 버튼 조회결과(list)",f);const x={};(f||[]).forEach(E=>{const g=String(E?.btnId||"").trim();if(!g)return;const j=E?.enblYn==null?!0:String(E.enblYn).toUpperCase()==="Y";x[g]=j}),l(x)}).catch(h=>{console.error(h),l({})})},[i,o?.crprCd,o?.userId,t?t.menuId:void 0,t?t.grpId:void 0]);const c=u.useMemo(()=>!r||r.length===0?null:r.filter(d=>d?.visible!==!1).map(d=>{const p=!!d.disabled;if(!t)return e.jsx(s.Button,{type:d.type,disabled:p,loading:d.loading,className:d.className||"bwg-btn",style:d.style,icon:d.icon,onClick:d.onClick,children:d.label},d.id);const x=!(Object.prototype.hasOwnProperty.call(a,d.id)?!!a[d.id]:!1),E=p||x,g=e.jsx(s.Button,{type:d.type,disabled:E,loading:d.loading,className:d.className||"bwg-btn",style:d.style,icon:d.icon,onClick:d.onClick,children:d.label},d.id);if(x){const j=e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(q.ExclamationCircleFilled,{style:{color:"#faad14",fontSize:16}}),e.jsx("span",{style:{fontWeight:600},children:`'${d.label}' 버튼에 대한 사용 권한이 없습니다.`})]}),v=e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingLeft:24},children:e.jsx("span",{style:{fontSize:12},children:"관리자에게 문의하세요."})});return e.jsx(s.Popover,{title:j,content:v,placement:"bottom",styles:{body:{backgroundColor:"#fffbe6"}},children:e.jsx("span",{children:g})},d.id)}return g}),[r,a,t]);return e.jsx(s.Flex,{gap:n,children:c})};var Tu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Eu(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var r=t.default;if(typeof r=="function"){var n=function o(){var i=!1;try{i=this instanceof o}catch{}return i?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return t[o]}})}),n}const Qi=({grpId:t,menuId:r,btnEvent:n,layout:o="horizontal",size:i="middle",style:a,className:l,onButtonClick:c})=>{const d=ht.useServiceCodeValue("AUTH_BTNS"),{user:p}=ut.useUserStore(),[h,f]=u.useState([]),[x,E]=u.useState(!0),[g,j]=u.useState(null),[v,b]=u.useState({}),w=async()=>{try{E(!0),j(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",t,r);const C=await ae.callService(d,{userId:p?.userId,crprCd:p?.crprCd,grpId:t.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",C),C?.data&&Array.isArray(C.data)){const m=C.data.sort((R,T)=>R.btnSq-T.btnSq);f(m)}else f([])}catch(C){console.error("버튼 권한 조회 실패:",C),j("버튼 권한을 조회하는 중 오류가 발생했습니다."),f([])}finally{E(!1)}};u.useEffect(()=>{w()},[t,r]);const P=async(C,m)=>{b(R=>({...R,[C]:{loading:!0}}));try{const R=n?.[C];R?await R():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${C}`),c&&c(C,m,t)}catch(R){console.error("버튼 이벤트 실행 실패:",R),s.message.error("작업 중 오류가 발생했습니다.")}finally{b(R=>({...R,[C]:{loading:!1}}))}},B=C=>{const m=v[C.btnId]||{loading:!1};return e.jsxs(s.Button,{size:i,loading:m.loading,onClick:()=>P(C.btnId,C.btnNm),className:"bwg-btn",style:{...C.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[C.iconVal&&e.jsxs(e.Fragment,{children:[C.iconType==="ANTD"&&Sn[C.iconVal]&&u.createElement(Sn[C.iconVal],{style:{fontSize:"14px"}}),C.iconType!=="ANTD"&&e.jsx("span",{className:C.iconVal,style:{fontSize:"14px"}})]}),C.btnNm]},C.btnId)};return x?e.jsx("div",{className:`bwg-button-group bwg-button-group-${o} ${l||""}`,style:a,children:e.jsx(s.Space,{direction:o==="vertical"?"vertical":"horizontal",size:i,children:e.jsx(s.Button,{loading:!0,size:i,children:"권한 조회 중..."})})}):g?e.jsx("div",{className:`bwg-button-group bwg-button-group-${o} ${l||""}`,style:a,children:e.jsx(s.Alert,{message:"권한 오류",description:g,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):h.length===0?e.jsx("div",{className:`bwg-button-group bwg-button-group-${o} ${l||""}`,style:a,children:e.jsx(s.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):e.jsx("div",{className:`bwg-button-group bwg-button-group-${o} ${l||""}`,style:a,children:e.jsx(s.Flex,{gap:3,children:h.map(B)})})},ku=({content:t,layout:r="flex",gap:n=16,minWidth:o=120,maxWidth:i=300,style:a,className:l})=>{if(!(Array.isArray(t)&&t.length>0&&Array.isArray(t[0])))return e.jsx("div",{style:a,className:l,children:t});const d=t.filter(E=>E&&E.length>0),p=u.useMemo(()=>{const E=d[0];if(!E||E.length===0)return{totalCols:0,baseWidth:0};let g=0;const j=[];E.forEach(b=>{const w=b,P=w?.props?.["data-colspan"]?parseInt(String(w.props["data-colspan"])):1;g+=P,j.push(P)});const v=g>0?100/g:0;return{totalCols:g,baseWidth:v,componentWidths:j}},[d]),h=(E,g,j)=>{const v=E,b=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1;switch(r){case"equal":return 100/j;case"auto":return 100/j;case"grid":return 100/p.totalCols*b;case"flex":default:const w=p.baseWidth*b;return Math.max(o,Math.min(i,w))}},f=E=>{if(!E||typeof E!="object")return E;const g=E;if(!g.props)return E;const v={...g.props.style||{},width:"100%"};return u.cloneElement(g,{...g.props,style:v})},x=(E,g)=>{if(!E||E.length===0)return null;const j=E.length;return r==="grid"?e.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${p.totalCols}, 1fr)`,gap:`${n}px`,width:"100%"},children:E.map((v,b)=>{const w=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1,P=f(v);return e.jsx("div",{style:{gridColumn:`span ${w}`,minWidth:`${o}px`},className:"form-component-wrapper",children:P},`row-${g}-col-${b}`)})},`row-${g}`):e.jsx(s.Flex,{gap:n,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:E.map((v,b)=>{const w=h(v,b,j),P=f(v),B=r==="flex"?{width:`${w}px`,minWidth:`${o}px`,maxWidth:`${i}px`,flexShrink:0}:{width:`${w}%`,minWidth:`${o}px`};return e.jsx("div",{style:B,className:"form-component-wrapper",children:P},`row-${g}-col-${b}`)})},`row-${g}`)};return e.jsx(s.Flex,{gap:"small",vertical:!0,style:a,className:l,children:d.map((E,g)=>x(E,g+1))})},Iu=({children:t,...r})=>e.jsx(s.Col,{...r,className:"bwg-col",children:t});var un={},fi={exports:{}},aa;function Fo(){return aa||(aa=1,(function(t){function r(n){return n&&n.__esModule?n:{default:n}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(fi)),fi.exports}var pn={},la;function Pu(){if(la)return pn;la=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var t={items_per_page:"/ 페이지",jump_to:"이동하기",jump_to_confirm:"확인하다",page:"페이지",prev_page:"이전 페이지",next_page:"다음 페이지",prev_5:"이전 5 페이지",next_5:"다음 5 페이지",prev_3:"이전 3 페이지",next_3:"다음 3 페이지",page_size:"페이지 크기"};return pn.default=t,pn}var fn={},hn={},gn={},hi={exports:{}},gi={exports:{}},mi={exports:{}},xi={exports:{}},ca;function rc(){return ca||(ca=1,(function(t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(xi)),xi.exports}var vi={exports:{}},da;function Bu(){return da||(da=1,(function(t){var r=rc().default;function n(o,i){if(r(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var l=a.call(o,i||"default");if(r(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(vi)),vi.exports}var ua;function Mu(){return ua||(ua=1,(function(t){var r=rc().default,n=Bu();function o(i){var a=n(i,"string");return r(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})(mi)),mi.exports}var pa;function Nu(){return pa||(pa=1,(function(t){var r=Mu();function n(o,i,a){return(i=r(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(gi)),gi.exports}var fa;function Ou(){return fa||(fa=1,(function(t){var r=Nu();function n(i,a){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);a&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),l.push.apply(l,c)}return l}function o(i){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?n(Object(l),!0).forEach(function(c){r(i,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(l,c))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})(hi)),hi.exports}var mn={},ha;function Du(){return ha||(ha=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.commonLocale=void 0,mn.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),mn}var ga;function Au(){if(ga)return gn;ga=1;var t=Fo().default;Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=void 0;var r=t(Ou()),n=Du(),o=(0,r.default)((0,r.default)({},n.commonLocale),{},{locale:"ko_KR",today:"오늘",now:"현재 시각",backToToday:"오늘로 돌아가기",ok:"확인",clear:"지우기",week:"주",month:"월",year:"년",timeSelect:"시간 선택",dateSelect:"날짜 선택",monthSelect:"달 선택",yearSelect:"연 선택",decadeSelect:"연대 선택",yearFormat:"YYYY년",dateFormat:"YYYY-MM-DD",dateTimeFormat:"YYYY-MM-DD HH:mm:ss",monthBeforeYear:!1,previousMonth:"이전 달 (PageUp)",nextMonth:"다음 달 (PageDown)",previousYear:"이전 해 (Control + left)",nextYear:"다음 해 (Control + right)",previousDecade:"이전 연대",nextDecade:"다음 연대",previousCentury:"이전 세기",nextCentury:"다음 세기"});return gn.default=o,gn}var xn={},ma;function nc(){if(ma)return xn;ma=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;const t={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return xn.default=t,xn}var xa;function oc(){if(xa)return hn;xa=1;var t=Fo().default;Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=void 0;var r=t(Au()),n=t(nc());const o={lang:Object.assign({placeholder:"날짜 선택",yearPlaceholder:"연도 선택",quarterPlaceholder:"분기 선택",monthPlaceholder:"월 선택",weekPlaceholder:"주 선택",rangePlaceholder:["시작일","종료일"],rangeYearPlaceholder:["시작 연도","종료 연도"],rangeMonthPlaceholder:["시작 월","종료 월"],rangeQuarterPlaceholder:["시작 분기","종료 분기"],rangeWeekPlaceholder:["시작 주","종료 주"],shortWeekDays:["일","월","화","수","목","금","토"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},r.default),timePickerLocale:Object.assign({},n.default)};return hn.default=o,hn}var va;function $u(){if(va)return fn;va=1;var t=Fo().default;Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=void 0;var r=t(oc());return fn.default=r.default,fn}var ya;function _u(){if(ya)return un;ya=1;var t=Fo().default;Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var r=t(Pu()),n=t($u()),o=t(oc()),i=t(nc());const a="${label} 유효하지 않은 ${type}",l={locale:"ko",Pagination:r.default,DatePicker:o.default,TimePicker:i.default,Calendar:n.default,global:{placeholder:"선택하세요",close:"닫기"},Table:{filterTitle:"필터 메뉴",filterConfirm:"확인",filterReset:"초기화",filterEmptyText:"필터 없음",filterCheckAll:"전체 선택",filterSearchPlaceholder:"필터 검색",emptyText:"데이터 없음",selectAll:"전체 선택",selectInvert:"선택 반전",selectNone:"없음",selectionAll:"전체 선택",sortTitle:"정렬",expand:"펼치기",collapse:"접기",triggerDesc:"내림차순으로 정렬하기",triggerAsc:"오름차순으로 정렬하기",cancelSort:"정렬 취소하기"},Tour:{Next:"다음",Previous:"이전",Finish:"종료"},Modal:{okText:"확인",cancelText:"취소",justOkText:"확인"},Popconfirm:{okText:"확인",cancelText:"취소"},Transfer:{titles:["",""],searchPlaceholder:"여기에 검색하세요",itemUnit:"개",itemsUnit:"개",remove:"삭제",selectCurrent:"현재 페이지 선택",removeCurrent:"현재 페이지 삭제",selectAll:"전체 선택",removeAll:"전체 삭제",selectInvert:"선택 반전"},Upload:{uploading:"업로드 중...",removeFile:"파일 삭제",uploadError:"업로드 실패",previewFile:"파일 미리보기",downloadFile:"파일 다운로드"},Empty:{description:"데이터 없음"},Icon:{icon:"아이콘"},Text:{edit:"수정",copy:"복사",copied:"복사 됨",expand:"확장"},Form:{optional:"(선택사항)",defaultValidateMessages:{default:"필드 유효성 검사 오류 ${label}",required:"${label} 값을 입력해 주세요",enum:"${label} [${enum}] 중에 하나여야 합니다",whitespace:"${label} 비워둘 수 없습니다",date:{format:"${label} 유효하지 않은 날짜 형식입니다",parse:"${label} 날짜 형식으로 변환될 수 없습니다",invalid:"${label} 유효하지 않은 날짜입니다"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} ${len}글자여야 합니다",min:"${label} 적어도 ${min}글자 이상이어야 합니다",max:"${label} ${max}글자 이하여야 합니다",range:"${label} ${min}-${max}글자 사이어야 합니다"},number:{len:"${label} 값은 ${len}이어야 합니다",min:"${label} 최솟값은 ${min}입니다",max:"${label} 최댓값은 ${max}입니다",range:"${label} 값은 ${min}-${max} 사이어야 합니다"},array:{len:"${len}이어야 합니다 ${label}",min:"최소 ${min}이어야 합니다 ${label}",max:"최대 ${max}이어야 합니다 ${label}",range:"${label} ${min}-${max} 사이어야 합니다"},pattern:{mismatch:"${label} ${pattern} 패턴과 일치하지 않습니다"}}},Image:{preview:"미리보기"},QRCode:{expired:"만료된 QR 코드",refresh:"새로고침"},ColorPicker:{presetEmpty:"미정",transparent:"투명",singleColor:"단색",gradientColor:"그라데이션"}};return un.default=l,un}var yi,ba;function zu(){return ba||(ba=1,yi=_u()),yi}var Lu=zu();const ic=Hn(Lu),sc=({children:t,customTheme:r,customComponentSize:n="middle",layout:o="comfortable",getPopupContainer:i})=>{const l=(()=>{const d={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'"Noto Sans KR", sans-serif',fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:s.theme.defaultAlgorithm};switch(o){case"compact":return{...d,token:{...d.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...d,token:{...d.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...d,token:{...d.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),c={...l,...r,token:{...l.token,...r?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...r?.components??{}}};return e.jsx(s.ConfigProvider,{locale:ic,theme:c,componentSize:n,space:{size:n},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:i,children:t})},Fu=({children:t})=>{const{activeDetailItem:r}=ut.useMenuViewStore();return e.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:e.jsx("div",{className:"bwgview-content",children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[e.jsx(s.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),t]})})})},ke=({title:t,icons:r,tooltip:n,iconVisible:o=!0,paddingBottom:i=0,marginBottom:a=0,children:l})=>{const c=Sn.AppstoreTwoTone;return u.useMemo(()=>r?.type==="antd"&&r.icon&&Sn[r.icon]||c,[r?.type,r?.icon]),e.jsx(s.Flex,{vertical:!0,style:{width:"100%"},children:e.jsxs("div",{className:`bwg-title-box ${i?`pb${i}`:""} ${a?`mb${a}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[e.jsx("div",{className:"bwg-title-box-left",children:e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(s.Typography.Title,{level:4,children:e.jsx("span",{children:t})}),n&&e.jsx(s.Tooltip,{title:n.title,placement:n.placement,children:e.jsx(Sn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),e.jsx("div",{className:"bwg-title-box-right",children:e.jsx(s.Flex,{gap:6,children:l})})]})})},{Panel:Ca}=s.Collapse,Vn=u.forwardRef(({reqRows:t,subRows:r,border:n=!1,labelDisplay:o,header:i},a)=>{const[l]=s.Form.useForm(),[c,d]=u.useState("1"),p=()=>o?{flex:o.md||o.lg||o.sm||"100px"}:{flex:"100px"};u.useImperativeHandle(a,()=>({getFormData:()=>l.getFieldsValue(),setFormData:f=>{l.setFieldsValue(f)},resetForm:()=>{l.resetFields()},validateForm:async()=>{try{return{success:!0,data:await l.validateFields()}}catch(f){return{success:!1,error:f}}}}));const h=()=>{d(f=>f.includes("subRows")?f.filter(x=>x!=="subRows"):[...f,"subRows"])};return e.jsxs("div",{style:n?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[i&&e.jsx(ke,{title:i.title,children:i.buttons}),e.jsx(s.Form,{form:l,layout:"inline",style:{width:"100%",paddingBottom:t||r?"10px":"0px"},labelCol:p(),labelAlign:"left",children:e.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&e.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:c.includes("subRows")?e.jsx(s.Tooltip,{title:"접기",children:e.jsx("span",{className:"search-collapsed-arrow",onClick:h,children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:e.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):e.jsx(s.Tooltip,{title:"펼치기",children:e.jsx("span",{className:"search-collapsed-arrow",onClick:h,children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:e.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),e.jsx(s.ConfigProvider,{theme:{components:{Collapse:{}}},children:e.jsxs(s.Collapse,{activeKey:["reqRows",...c.includes("subRows")?["subRows"]:[]],onChange:d,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[t&&e.jsx(Ca,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:t},"reqRows"),r&&e.jsx(Ca,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),Xr=({children:t,showSearchBox:r,showCloseButton:n=!0,showEyesButton:o=!1,shotSettingButton:i=!0,styles:a,...l})=>{const[c,d]=u.useState(!0),[p,h]=u.useState(()=>{const b=l.placement;return b==="left"||b==="right"||b==="top"||b==="bottom"?b:"bottom"}),[f,x]=u.useState(!1),g=(b=>{const w={wrapper:{...l.width&&{width:l.width},...l.height&&{height:l.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(b){case"bottom":return{...w,wrapper:{...w.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...w.header,borderRadius:"30px 30px 0 0"}};case"top":return{...w,wrapper:{...w.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...w.header}};case"left":return{...w,wrapper:{...w.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...w.header,borderRadius:"0 30px 0 0"}};case"right":return{...w,wrapper:{...w.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...w.header,borderRadius:"30px 0 0 0"}};default:return w}})(p),j={wrapper:{...g?.wrapper,...a?.wrapper},content:{...g?.content,...a?.content},header:{...g?.header,...a?.header}},v=()=>{const b=[];if(i){const w=[{key:"top",label:"상단",icon:e.jsx(q.CaretUpOutlined,{})},{key:"right",label:"우측",icon:e.jsx(q.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:e.jsx(q.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:e.jsx(q.CaretLeftOutlined,{})}],P=e.jsx(s.Space.Compact,{children:w.map(B=>e.jsx(s.Button,{type:p===B.key?"primary":"default",size:"small",onClick:()=>{h(B.key),x(!1)},icon:B.icon},B.key))});b.push(e.jsx(s.Popover,{content:P,trigger:"click",placement:"left",open:f,onOpenChange:x,children:e.jsx(s.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:e.jsx(s.Button,{icon:e.jsx(q.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return o&&b.push(e.jsx(s.Tooltip,{placement:"bottom",title:c?"배경 보기":"배경 숨기기",zIndex:2100,children:e.jsx(s.Button,{icon:e.jsx(q.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>d(!c)})},"eyes")),l.extra&&b.push(e.jsx("div",{style:{margin:"0 8px"},children:l.extra},"extra")),n&&b.push(e.jsx(s.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:e.jsx(s.Button,{icon:e.jsx(q.CloseOutlined,{}),onClick:l.onClose,type:"text",size:"middle"})},"close")),b};return e.jsx(s.Drawer,{className:"main-drawer",footer:!0,...l,placement:p,styles:j,maskClosable:!1,closable:!1,mask:c,extra:e.jsx(s.Space,{size:"small",align:"center",children:v()}),afterOpenChange:b=>{b||(d(!0),h(l.placement)),l.afterOpenChange?.(b)},destroyOnHidden:!0,children:r?e.jsxs(Ne,{type:"vertical",children:[e.jsxs(s.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[e.jsx("div",{children:r.title}),e.jsx(s.Flex,{gap:2,children:r.extra})]}),e.jsx(Vn,{...r.searchBox}),e.jsx(s.Divider,{}),t]}):t})},Ce=({width:t="100%",height:r="100%",boxAlign:n,display:o="show",overflow:i,style:a,className:l,border:c=!0,children:d,ref:p})=>e.jsx("div",{style:{width:t,height:r,display:o==="show"?"":o,overflowX:i?.x,overflowY:i?.y,...a},className:`bwgview-content-box ${n?`content-box-${n}`:""} ${l||""} ${c?"":"none-box-st"}`,ref:p,children:d}),ac=oa?.default??oa;try{ec.register("modules/imageResize",ac)}catch(t){console.warn("quill-image-resize-module-react 로드 실패:",t)}const Bo=t=>wu.sanitize(t??"",{ALLOWED_TAGS:["p","br","div","span","strong","b","em","i","u","s","blockquote","pre","code","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img"],ALLOWED_ATTR:["style","class","href","target","rel","src","alt","width","height","data-*","align"],ALLOWED_URI_REGEXP:/^(?:(?:https?|data|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),Mo=u.forwardRef(({border:t=!0,editorProps:r,value:n,defaultValue:o,onChange:i,onBlur:a,disabled:l,placeholder:c},d)=>{const{isEditing:p=!0,title:h,containerHeight:f="100%"}=r||{},x=u.useRef(null),E=u.useMemo(()=>{const R={toolbar:p?[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],["link","image"],["clean"]]:!1};return ac?{...R,imageResize:{parchment:ec.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:R},[p]),g=u.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),j=n!==void 0,[v,b]=u.useState(o??""),w=j?n:v,P=u.useCallback((R,T,N,$)=>{const M=Bo(R??"");j||b(M),i?.(M,T,N,$)},[j,i]),m=`calc(100% - ${p?"42px":"0px"} - ${h?"40px":"0px"})`;return u.useImperativeHandle(d,()=>({getHTML:()=>w??"",getText:()=>x.current?.getEditor()?.getText()??"",insertHTML:R=>{const T=x.current?.getEditor();if(!T)return;const N=T.getSelection(!0),$=Bo(R??"");T.clipboard.dangerouslyPasteHTML(N?N.index:T.getLength(),$)},insertImage:(R,T)=>{const N=x.current?.getEditor();if(!N)return;const $=N.getSelection(!0),M=typeof R=="string"?R:"";N.insertEmbed($?$.index:N.getLength(),"image",M,"user")},getQuill:()=>x.current?.getEditor?.()??null})),e.jsxs(Ce,{border:t,style:{opacity:l?.6:1,pointerEvents:l?"none":"auto",height:typeof f=="number"?`${f}px`:f},children:[h&&e.jsx(ke,{...h,paddingBottom:10}),e.jsx(ju,{ref:x,theme:p?"snow":"bubble",readOnly:!p,value:w,onChange:P,onBlur:a,modules:E,formats:g,style:{width:"100%",height:m},placeholder:c},p?"snow":"bubble")]})}),Hu=(t,r,n,o)=>Bo(t??""),Vu=({itemProps:t,...r})=>{const{rules:n,shouldUpdate:o,dependencies:i,noStyle:a,...l}=t;return e.jsx(s.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:Hu,normalize:c=>c??"",rules:n,shouldUpdate:o,dependencies:i,noStyle:a,...l,children:e.jsx(Mo,{...r})})},Wu=t=>{const{itemProps:r,onChange:n,editorProps:o,...i}=t,a=s.Form.useFormInstance();if(r?.name!=null){const l=r.name;return e.jsxs(e.Fragment,{children:[e.jsx(s.Form.Item,{hidden:!0,name:l,rules:r.rules,normalize:c=>c??"",children:e.jsx("input",{type:"hidden"})}),e.jsx(Mo,{...i,editorProps:o,value:a.getFieldValue(l)??"",onChange:(c,d,p,h)=>{const f=Bo(c??"");a.setFieldValue(l,f),n?.(f,d,p,h)},onBlur:()=>{a.validateFields([l]).catch(()=>{})}})]})}return e.jsx(Mo,{...t})},Uu=Object.assign(Wu,{FormItem:Vu,Core:Mo});var Or={},wa;function Gu(){if(wa)return Or;wa=1;var t=Po;if(process.env.NODE_ENV==="production")Or.createRoot=t.createRoot,Or.hydrateRoot=t.hydrateRoot;else{var r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Or.createRoot=function(n,o){r.usingClientEntryPoint=!0;try{return t.createRoot(n,o)}finally{r.usingClientEntryPoint=!1}},Or.hydrateRoot=function(n,o,i){r.usingClientEntryPoint=!0;try{return t.hydrateRoot(n,o,i)}finally{r.usingClientEntryPoint=!1}}}return Or}var Ku=Gu();const Ms=u.forwardRef(({currentPage:t,totalPages:r,pageSize:n=10,totalData:o,onPageChange:i,pageSizeOptions:a=[10,20,50,100],gridRef:l,mode:c="client",onServerPageChange:d},p)=>{const[h,f]=u.useState(n),[x,E]=u.useState(1),[g,j]=u.useState(n),[v,b]=u.useState(0);u.useEffect(()=>{f(n)},[n]),u.useEffect(()=>{f(n)},[]),u.useImperativeHandle(p,()=>({currentPage:x,pageSize:g,totalData:v,totalPages:Math.ceil(v/g),setPage:D=>{E(D),d?.(D,g)},setPageSize:D=>{j(D),E(1),d?.(1,D)},setTotalData:D=>{b(D)},reset:()=>{E(1),j(n),b(0)}}),[x,g,v,d,n]);const w=c==="client",P=w?(t||0)+1:x,B=w?(r||0)>0:v>0,m=w?B?Math.ceil((o||0)/h):0:Math.ceil(v/g),R=w?B&&o||0:v,T=Math.min(P,m||1),N=`${h}-${m}-${T}`,$=D=>{w?i?.(D-1):(E(D),d?.(D,g))},M=D=>{if(w){f(D);try{l?.current?.gridView?(l.current.gridView.setPaging(!0,D),l.current.gridView.setPage(0)):i?.(0)}catch(V){console.warn("페이지 사이즈 변경 중 오류:",V),i?.(0)}}else j(D),E(1),d?.(1,D)};return e.jsxs("div",{style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontSize:"12px"},children:"페이지당"}),e.jsx("select",{value:w?h:g,onChange:D=>M(Number(D.target.value)),disabled:!B,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:B?1:.5},children:a.map(D=>e.jsxs("option",{value:D,children:[D,"개"]},D))}),e.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:B?1:.5},children:["/ 총 ",R,"개"]})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[e.jsx(s.Button,{onClick:()=>$(1),disabled:!B||T===1,style:{width:"30px",height:"24px",background:!B||T===1?"#f5f5f5":"white",cursor:!B||T===1?"not-allowed":"pointer",opacity:B?1:.5},icon:e.jsx(q.DoubleLeftOutlined,{})}),e.jsx(s.Button,{onClick:()=>$(T-1),disabled:!B||T===1,style:{width:"30px",height:"24px",background:!B||T===1?"#f5f5f5":"white",cursor:!B||T===1?"not-allowed":"pointer",opacity:B?1:.5},icon:e.jsx(q.LeftOutlined,{})}),e.jsx("div",{children:(()=>{if(!B||m===0)return e.jsx(s.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const D=5;let V=1,U=Math.min(D,m);T>3&&m>D&&(V=Math.max(1,T-2),U=Math.min(m,V+D-1),U===m&&(V=Math.max(1,U-D+1)));const k=[];for(let S=V;S<=U;S++)k.push(e.jsx(s.Button,{onClick:()=>$(S),style:{width:"30px",height:"24px",background:T===S?"#1890ff":"white",color:T===S?"white":"black",cursor:"pointer"},children:S},S));return k})()},N),e.jsx(s.Button,{onClick:()=>$(T+1),disabled:!B||T>=m,style:{width:"30px",height:"24px",background:!B||T>=m?"#f5f5f5":"white",cursor:!B||T>=m?"not-allowed":"pointer",opacity:B?1:.5},icon:e.jsx(q.RightOutlined,{})}),e.jsx(s.Button,{onClick:()=>$(m),disabled:!B||T>=m,style:{width:"30px",height:"24px",background:!B||T>=m?"#f5f5f5":"white",cursor:!B||T>=m?"not-allowed":"pointer",opacity:B?1:.5},icon:e.jsx(q.DoubleRightOutlined,{})})]})]})});Ms.displayName="BwgPagination";const Yu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",qu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Xu=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],Qu=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(들여쓰기 표시)",tag:"showIndentExcel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],Zu=({children:t})=>{const[r,n]=u.useState(!1),[o,i]=u.useState(null);return r?e.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:e.jsx(s.Alert,{message:"리얼그리드 로드 실패",description:e.jsxs("div",{children:[e.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),e.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",o?.message||"알 수 없는 오류"]}),e.jsx(s.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{n(!1),i(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):e.jsx(Ju,{onError:a=>{console.error("BwgGrid 에러:",a),i(a),n(!0)},children:t})};class Ju extends u.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,n){this.props.onError(r)}render(){return this.state.hasError?null:this.props.children}}const $e=u.forwardRef(({type:t="nrml",gridDivStyle:r,gridDivClassName:n,gridColumns:o,gridOptions:i,gridEvents:a,bindRef:l,gridContext:c,renderers:d,gridInitCallback:p},h)=>{const f=u.useRef(null),x=u.useRef(new Map),E=(A,K,Z,X)=>{let O=[],G=[];const W="treeNode";for(let J in A){let te=A[J];O[te[Z]]=A[J];let ie=O[te[K]];if(ie==null||ie=="-"){G.push(te);continue}ie[W]==null&&(ie[W]=[]),ie[W].push(te)}return G},g=u.useCallback(A=>{const K=X=>{const O=[];return X.forEach(G=>{G.children&&G.children.length>0?O.push(...K(G.children)):O.push(G)}),O};return K(A).map(X=>({fieldName:X.fieldName,dataType:X.dataType||"text"}))},[]),j=u.useCallback(A=>{const K=X=>{const O=[];return X.forEach(G=>{G.children&&G.children.length>0?O.push(...K(G.children)):O.push(G)}),O};return K(A).map(X=>({...X,header:{template:X.required?`<img src='${qu}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:X.editable?`<img src='${Yu}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:X.header?.text??""},text:X.header?.text||""},styleName:X.dataType==="number"?"right":X.styleName||"center"}))},[]);u.useImperativeHandle(h,()=>({addAllData(A,K){const Z=f.current?.gridView.getCurrent().dataRow;if(f.current?.dataProvider instanceof Ze.LocalDataProvider){f.current.dataProvider.clearRows();try{f.current?.gridView.showLoading(),f.current.dataProvider.setRows(A)}catch(X){console.error("fillJsonData 오류:",X)}finally{f.current?.gridView.closeLoading()}}if(f.current?.dataProvider instanceof Ze.LocalTreeDataProvider){if(f.current.dataProvider.clearRows(),K?.treeOption?.dataField==null||K?.treeOption?.parentField==null)return;const X={rows:"treeNode"};try{f.current?.gridView.showLoading();let O=E(A,K.treeOption?.parentField,K.treeOption?.dataField);f.current.dataProvider.fillJsonData({treeNode:O},X),K.treeOption.isExpand&&f.current.gridView?.expandAll()}catch(O){console.error("fillJsonData 오류:",O)}finally{f.current?.gridView.closeLoading()}}K?.isCurrent?f.current?.gridView.setCurrent({dataRow:Z}):f.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>f.current,getCurrentRow:()=>f.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>f.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(A){f.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!A?.indenting,header:"default",footer:"default",sheetName:"",fileName:A?.fileName||"sample.xlsx",...A})},getGridSaveData:()=>{const A=f.current?.dataProvider?.getAllStateRows();if(A===void 0)return[{}];let K=[];if(A.created!==void 0&&A.created.length>0)for(const Z in A.created){let X=f.current?.dataProvider?.getJsonRow(A.created[Z]);X={...X,iudFlag:"I"},K.push(X)}if(A.updated!==void 0&&A.updated.length>0)for(const Z in A.updated){let X=f.current?.dataProvider?.getJsonRow(A.updated[Z]);X={...X,iudFlag:"U"},K.push(X)}if(A.deleted!==void 0&&A.deleted.length>0)for(const Z in A.deleted){let X=f.current?.dataProvider?.getJsonRow(A.deleted[Z]);X={...X,iudFlag:"D"},K.push(X)}return K},deleteGridData:()=>{f?.current?.gridView?.getCheckedItems()?.map(K=>{let Z=f?.current?.gridView?.getDataRow(K)??-1;const X=f?.current?.dataProvider?.getRowState(Z);X==Ze.RowState.DELETED?(f?.current?.dataProvider?.setRowState(Z,x.current.get(K)??Ze.RowState.NONE),x.current.delete(K)):X==Ze.RowState.CREATED?f?.current?.dataProvider?.setRowState(Z,Ze.RowState.CREATE_AND_DELETED):X==Ze.RowState.CREATE_AND_DELETED?f?.current?.dataProvider?.setRowState(Z,Ze.RowState.CREATED):(x.current.set(K,X??Ze.RowState.NONE),f?.current?.dataProvider?.setRowState(Z,Ze.RowState.DELETED)),f?.current?.gridView?.checkItem(K,!1)})},_oriRowState:[{}],dp:f.current?.dataProvider??null,vw:f.current?.gridView??null}));const v=u.useCallback((A,K,Z)=>{if(l!==void 0&&Z>=0){let X=A.getDataSource().getJsonRow(Z);l?.current?.setFieldsValue(X)}else l!==void 0&&Z<0&&l?.current?.resetFields();A.setCurrent({dataRow:0}),a?.onCurrentRowChanged&&a?.onCurrentRowChanged(A,K,Z)},[l,a]),b=u.useCallback((A,K,Z)=>{const X=K.fieldName??"";l?.current?.getFieldInstance(X)&&l?.current.setFieldValue(X,Z),a?.onEditChange&&a?.onEditChange(A,K,Z)},[l,a]),w=u.useCallback((A,K,Z)=>{const X=A.getOrgFieldName(Z),O=A.getValue(K,Z);l?.current?.setFieldValue(X,O)},[l]),P=u.useCallback((A,K,Z,X)=>{const O=A.getColumn(X).name??"",G=A.getValue(K,X);l?.current?.getFieldInstance(O)&&l?.current.setFieldValue(O,G),a?.onCellEdited&&a?.onCellEdited(A,K,Z,X)},[l,a]),B=u.useCallback((A,K,Z,X)=>{if(typeof K.dataRow=="number"&&K.dataRow!=-1){var O=A.getDataSource().getRowState(K.dataRow);if(O=="deleted"||O=="createAndDeleted")return!1}return a?.onShowEditor!=null&&a?.onShowEditor(A,K,Z,X),!0},[l,a]),C=u.useCallback(A=>{if(!f.current)return;const K=f.current.gridView,Z=K.getDataSource();if(i?.container?.page){const X=K.getPage(),O=K.getPageCount(),G=Z.getRowCount();z({currentPage:X,totalPages:O,totalData:G})}},[i?.container?.page]),m=u.useCallback(()=>{if(!f.current)return;const A=f.current.gridView,K=A.getDataSource(),Z=["onKeyDown"],X=["onRowInserted"];Object.keys(a??{}).map(O=>{Z.includes(O)?A[O+"Add"]=a?.[O]:A[O]=a?.[O],X.includes(O)?K[O+"Add"]=a?.[O]:K[O]=a?.[O]}),K instanceof Ze.LocalDataProvider&&(K.onRowInserted=(O,G)=>{G<0||(setTimeout(function(){A?.setCurrent({dataRow:G})},1),O.onRowInsertedAdd!==void 0&&O.onRowInsertedAdd(O,G))}),A.onKeyDown=function(O,G){if(G.code=="Space"){let W=O.getSelectedItems(!0);for(const J in W)O.isCheckable(W[J])&&(O.isCheckedItem(W[J])?O.checkItem(W[J],!1,!1):O.checkItem(W[J],!0,!1))}return O.onKeyDownAdd!==void 0&&O.onKeyDownAdd(O,G),!0},f.current.gridView.onCurrentRowChanged=v,f.current.gridView.onEditChange=b,f.current.gridView.getDataSource().onValueChanged=w,f.current.gridView.onCellEdited=P,f.current.gridView.onShowEditor=B,f.current.gridView.onDataLoadComplated=C},[v,b,w,P,B,C]),R=u.useCallback(A=>{if(A){try{A.gridView.setSortingOptions({enabled:!0}),A.gridView.sortMode=Ze.SortMode.EXPLICIT,A.gridView.editorOptions.viewGridInside=!0,A.gridView instanceof Ze.TreeView&&A.gridView.setTreeOptions({expandWhenSetData:Ze.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ze.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),A.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:i?.display?.minRowHeight||43,maxRowHeight:i?.display?.maxRowHeight||100,rowHeight:i?.display?.rowHeight||43,rowChangeDelay:i?.display?.rowChangeDelay||0,selectionStyle:i?.display?.selectionStyle||Ze.SelectionStyle.ROWS,fitStyle:i?.display?.fitStyle||Ze.GridFitStyle.FILL,useAlternateRowStyle:i?.display?.useAlternateRowStyle||!1}),A.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:i?.edit?.editable||!1,validateOnEdited:i?.edit?.validateOnEdited||!1}),A.gridView.setCopyOptions({singleMode:i?.copy?.singleMode||!1}),A.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),A.gridView.header.height=i?.header?.height||43,A.gridView.header.styleName=i?.header?.styleName||"bwgGridHeader",i?.container?.radio?A.gridView.setCheckBar({exclusive:i?.container?.radio||!1}):A.gridView.setCheckBar({visible:i?.container?.check||!1,showAll:i?.container?.checkAll||!1}),A.gridView.setStateBar({visible:i?.container?.state||!1}),A.gridView.rowIndicator.visible=i?.container?.indicator||!1,A.gridView instanceof Ze.GridView&&(A.gridView.groupPanel.visible=i?.container?.panel||!1),A.gridView.setFooters({visible:i?.container?.footer||!1}),A.gridView.setHeader({visible:i?.container?.header||!0}),A.gridView.formatOptions.numberFormat="#,##0"}catch(K){console.log("그리드 옵션 설정 중 오류:",K)}try{A.gridView instanceof Ze.TreeView?A.gridView.setContextMenu(Qu):A.gridView.setContextMenu(Xu),A.gridView.onContextMenuItemClicked=function(K,Z,X){if(!(!X||!X.column)){if(Z.tag=="excel")V(K,{isTitle:!1},c?.excel);else if(Z.tag=="showIndentExcel")V(K,{isTitle:!1,treeBlank:!0},c?.excel);else if(Z.tag=="withTitleExcel")V(K,{isTitle:!0,treeBlank:!1},c?.excel);else if(Z.tag=="filter")U(K,Z);else if(Z.tag=="fixedCol"){const G=K.getDataSource().getFieldIndex(X.column);K.setFixedOptions({colCount:G})}else if(Z.tag=="fixedRow")K.setFixedOptions({rowCount:(X.itemIndex||0)+1});else if(Z.tag=="fixedCancel")K.setFixedOptions({colCount:0,rowCount:0});else if(Z.tag=="hide")K.setColumnProperty(X.column,"visible",!1),K._hideCols[K._hideCols.length]=X.column;else if(Z.tag=="hideClear")for(var O=0;O<K._hideCols.length;O++)K.setColumnProperty(K._hideCols[O],"visible",!0)}}}catch(K){console.log("컨텍스트 설정 중 오류:",K)}}},[i]),T=A=>{if(!(!d||d.length===0))try{d.forEach(K=>{const{name:Z,renderer:X}=K;if(Z&&X){const O=typeof X=="function"?new X:X;A.gridView.registerCustomRenderer(Z,O)}})}catch(K){console.error("커스텀 렌더러 초기화 중 오류:",K)}},N=A=>{A.onPageChanged=(K,Z)=>{z(X=>({...X,currentPage:Z}))},A.onPageCountChanged=(K,Z)=>{z(X=>({...X,totalPages:Z}))}},$=A=>{f.current?.gridView&&f.current.gridView.setPage(A)},M=A=>{if(i?.layout?.colspan&&i.layout.colspan.length>0&&i?.layout?.colspan.forEach(K=>{const Z=A.gridView.layoutByColumn(K.fieldName);if(Z){const X=K.span;Z.spanCallback=function(O,G,W){return X}}}),o&&o.length>0&&o.some(Z=>Z.children&&Z.children.length>0))try{(()=>{const X=JSON.parse(JSON.stringify(o)),O=[],G=W=>{const J=[];return W.children.map(te=>{if(te.children&&te.children.length>0){const ie=G(te),ce=te.header?.text||te.fieldName,pe=A.gridView.getColumnProperty(te.fieldName,"header");delete te.children,delete te.header;let ye={name:te.fieldName,header:{text:pe?.text||ce,template:pe?.template,values:pe?.values,visible:pe?.visible??!0},items:ie,...te};J.push(ye)}else J.push(te.fieldName)}),J};X.map(W=>{if(W.children&&W.children.length>0){const J=G(W),te=W.header?.text||W.fieldName,ie=W.header?.visible??!0,ce=A.gridView.getColumnProperty(W.fieldName,"header");delete W.children,delete W.header;const pe={name:W.fieldName,header:{text:ce?.text||te,template:ce?.template,values:ce?.values,visible:ce?.visible||ie},items:J,...W};O.push(pe)}else O.push(W.fieldName)}),console.log("Final Layout!!",O),A.gridView.setColumnLayout(O)})()}catch(Z){console.error("컬럼 레이아웃 설정 오류:",Z)}},D=()=>{if(f.current){if(t==="nrml"){const A=f.current;if(R(A),T(A),o&&o.length>0){const K=g(o),Z=j(o);A.gridView.getDataSource().setFields(K),A.gridView.setColumns(Z)}if(M(A),i?.container?.page){const K=i?.pagingOption?.pageSize||10;A.gridView.setPaging(!0,K),N(A.gridView)}}else{const A=f.current;if(R(A),T(A),o&&o.length>0){const K=g(o),Z=j(o);A.gridView.getDataSource().setFields(K),A.gridView.setColumns(Z)}M(f.current)}setTimeout(()=>{if(p){const A=typeof h=="object"&&h!==null?h.current:null;p(A)}},0)}},V=(A,K,Z)=>{const X=A.getDataSource();let O=Z?.footer==null?"default":Z.footer;X.getRowCount()<1&&(O="hidden");let G={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!K?.treeBlank,footer:O,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:Z?.fileName||"sample.xlsx"};X instanceof Ze.LocalTreeDataProvider&&(G.indenting=!!K?.treeBlank),Z?.isCellMerge==!0&&(G.separateRows=!1),ae.isEmpty(Z?.sheetName)==!1&&(G.sheetName=Z?.sheetName),K?.isTitle&&(G.documentTitle={message:ae.isSafeEmpty(Z?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},ae.isEmpty(Z?.subTitle)==!1&&(G.documentSubtitle={message:Z?.subTitle,visible:!0,styleName:"center",height:20}),ae.isEmpty(Z?.tailTitle)==!1&&(G.documentTail={message:Z?.tailTitle,visible:!0,styleName:"documentStyle"})),A.exportGrid(G)},U=(A,K)=>{const Z=A.getDataSource(),X=Z.getOrgFieldNames();if(K.checked)for(var O=0;O<X.length;O++){let W=[],J=Z.getDistinctValues(X[O])??[];if(J.length==0)continue;let te=A.columnByName(X[O]);for(var G=0;G<J.length;G++){if(J[G]==null)continue;let ie=te.values!=null&&te.values.indexOf(J[G])!=-1?te?.labels?.[te.values.indexOf(J[G])]:J[G];ae.isEmpty(ie)&&(ae.isEmpty(J[G])?ie=" ":ie=J[G]);let ce="";J[G]==null?ce="value="+J[G]:ce="value='"+J[G]+"'",W.push({name:ie,criteria:ce})}A.setColumnFilters(X[O],W)}else for(var O=0;O<X.length;O++)A.clearColumnFilters(X[O]),A.activateAllColumnFilters(X[O],!1),A.clearColumnFilters(X[O])};u.useEffect(()=>{if(f.current&&f.current.gridView)if(t==="nrml"){const A=f.current;R(A)}else{const A=f.current;R(A)}},[t,i,R]),u.useEffect(()=>{!f.current||!o||o.length===0||D()},[o]),u.useEffect(()=>{f.current&&m()},[a,m]);const[k,S]=u.useState(!1),[I,L]=u.useState(""),F=u.useRef(null),[Q,z]=u.useState({currentPage:0,totalPages:0,totalData:0});u.useEffect(()=>{z({currentPage:0,totalPages:0,totalData:0})},[]),u.useEffect(()=>{k&&setTimeout(()=>{F.current?.focus?.()},0)},[k]),u.useEffect(()=>()=>{if(f.current)try{const A=f.current;A.gridView&&(A.gridView.onDataLoadComplated=void 0,A.gridView.onCurrentRowChanged=void 0,A.gridView.onCellClicked=void 0,A.gridView.onCellDblClicked=void 0,A.gridView.onEditRowChanged=void 0,A.gridView.onItemChecked=void 0,A.gridView.onItemAllChecked=void 0,A.gridView.onColumnCheckedChanged=void 0,A.gridView.onCellButtonClicked=void 0,A.gridView.onEditChange=void 0,A.gridView.onCellEdited=void 0,A.gridView.onKeyUp=void 0,A.gridView.onKeyDown=void 0,A.gridView.onWheel=void 0,A.gridView.onValidateColumn=void 0,A.gridView.onValidateRow=void 0,A.gridView.onValidationFail=void 0,A.gridView.onRowInserting=void 0,A.gridView.onCellItemClicked=void 0,A.gridView.onShowEditor=void 0,A.gridView.getDataSource()&&(A.gridView.getDataSource().clearRows(),A.gridView.getDataSource().setFields([])),A.gridView.getDataSource().clearRows())}catch(A){console.warn("⚠️ BwgGrid cleanup error:",A)}},[]);const _=u.useCallback(A=>{Y(A)},[]),Y=u.useCallback(A=>{const K=f.current?.gridView;if(K?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(K?.commit(),ae.isEmpty(A))return;const Z=K?.getCurrent().itemIndex??-1;if(Z<0)return;const X={value:A,startIndex:Z+1,wrap:!0,caseSensitive:!1,partialMatch:!0},O=K?.searchCell(X);K?.setCurrent(O)},[]),ee=u.useCallback(A=>{A.key==="Escape"&&(A.preventDefault(),S(!1))},[]),oe=u.useCallback(A=>{A.ctrlKey&&A.code==="KeyF"&&(A.preventDefault(),L(""),S(!k))},[k]),ne={searchRow:_,searchEnter:Y,handleCloseKeyword:ee,handleSearch:oe},fe=u.useMemo(()=>({...r,position:"relative",width:r?.width||"100%",height:r?.height||"100%"}),[r]);return e.jsxs(Zu,{children:[e.jsxs("div",{style:fe,className:n,onKeyDown:A=>ne.handleSearch(A),children:[k&&e.jsx("div",{className:"grid-search-box",children:e.jsxs(s.Flex,{gap:3,children:[e.jsx(s.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:e.jsxs(s.Space.Compact,{children:[e.jsx(s.Button,{icon:e.jsx(q.SearchOutlined,{})}),e.jsx(s.Input,{ref:F,value:I,name:"srchField",autoComplete:"off",onKeyUp:A=>ne.handleCloseKeyword(A),onChange:A=>L(A.target.value),onPressEnter:A=>ne.searchEnter(A)})]})}),e.jsx(s.Button,{variant:"solid",icon:e.jsx(q.CloseOutlined,{}),onClick:()=>S(!1)})]})}),t==="nrml"?e.jsx(ia.RealGridReact,{ref:f,autoGenerateField:!0,onInitialized:D}):e.jsx(ia.RealTreeReact,{ref:f,autoGenerateField:!1,onInitialized:D})]}),i?.container?.page&&e.jsx(Ms,{currentPage:Q.currentPage,totalPages:Q.totalPages,pageSize:i?.pagingOption?.pageSize,totalData:Q.totalData,onPageChange:$,pageSizeOptions:i?.pagingOption?.pageSizeOptions,gridRef:f})]})}),Ns=t=>({initContent(r){this._root=Ku.createRoot(r)},render(r,n,o,i){const a=this._root;a&&t(r,n,o,i,a)},clearContent(r){const n=this._root;n&&setTimeout(()=>{n&&(n.unmount(),this._root=null)},0)},canClick(r){return!0},click(){return{}}}),Ut=u.memo(({title:t,border:r,children:n,titleChildren:o})=>{const i=u.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return e.jsxs(Ne,{type:"vertical",children:[e.jsx(ke,{title:t,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:o}),e.jsx(Ce,{border:!1,children:e.jsx(s.ConfigProvider,{theme:i,children:n})})]})}),Ne=({type:t="horizontal",layoutAlign:r="left",verticalAlign:n,className:o,style:i,children:a})=>e.jsx("div",{style:i,className:`bwgview-content-layout ${t=="horizontal"?"hz-layout":"vt-layout"} layout-${r} ${n&&`vertical-${n}`} ${o||""}`,children:a}),ja=(t,r)=>{const n=window.innerWidth,o=window.innerHeight,i=Math.min(Math.max(t.x,0),Math.max(0,n-r.width)),a=Math.min(Math.max(t.y,0),Math.max(0,o-r.height));return{x:i,y:a}},ep=({buttons:t,onClose:r})=>{const n=(t||[]).filter(o=>o?.visible!==!1);return n.length===0?e.jsx(s.Button,{type:"default",className:"bwg-btn popup-btn",onClick:r,children:"닫기"}):e.jsxs("div",{style:{display:"flex",gap:6},children:[n.map(o=>e.jsx(s.Button,{type:o.type,disabled:!!o.disabled,loading:o.loading,className:o.className||"bwg-btn popup-btn",style:o.style,icon:o.icon,onClick:o.onClick,children:o.label},o.id)),e.jsx(s.Button,{type:"default",className:"bwg-btn popup-btn",onClick:r,children:"닫기"})]})},Qr=({popup:t,popupEvent:r,onClose:n,children:o,buttons:i})=>{const a=u.useRef(null),l=t?.popupTitle||"팝업",c=t?.width||800,d=t?.height||600,[p,h]=u.useState(c),[f,x]=u.useState(d),E=u.useMemo(()=>{const B=Math.max(0,(window.innerWidth-c)/2),C=Math.max(0,(window.innerHeight-d)/2);return{x:B,y:C}},[c,d]),[g,j]=u.useState(E),v=(B,C)=>{const m=ja({x:C.x,y:C.y},{width:p,height:f});j(m)},b=(B,C,m,R,T)=>{const N={width:parseInt(m.style.width,10),height:parseInt(m.style.height,10)},$=ja(T,N);h(N.width),x(N.height),j($)},w=()=>a.current??document.body,P=typeof t?.zIndex=="number"?t.zIndex:3e3;return e.jsxs("div",{style:{position:"fixed",inset:0,zIndex:P},children:[e.jsx("div",{onClick:n,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),e.jsxs(Su.Rnd,{className:"bwg-popup",size:{width:p,height:f},position:g,bounds:"window",minWidth:400,minHeight:300,onDragStop:v,onResizeStop:b,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:20,boxShadow:"0 4px 15px rgba(0,0,0,0.25)",overflow:"visible",position:"absolute",zIndex:1},children:[e.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:e.jsx(sc,{getPopupContainer:w,children:e.jsx(Ne,{type:"vertical",children:e.jsx(s.Card,{className:"popup-drag-container",title:e.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:l}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:e.jsx(ep,{buttons:i,onClose:()=>t?.close?.()||n?.()}),children:e.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:e.jsx(ht.SearchBoxProvider,{children:o})})})})})}),e.jsx("div",{ref:a,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},tp=({children:t,...r})=>e.jsx(s.Row,{...r,className:"bwg-row",children:t}),Ho=({children:t})=>e.jsx("div",{style:{height:"100%",padding:"20px 30px 26px"},children:e.jsx("div",{style:{width:"100%",height:"100%",border:"1px solid #ddd",borderRadius:"15px",background:"#fff"},children:t})}),rp=({rowKey:t="id",columns:r,dataSource:n,loading:o=!1,rowSelection:i,size:a="middle",pagination:l=!1,...c})=>e.jsx(s.Table,{rowKey:t,columns:r,dataSource:n,loading:o,rowSelection:i,size:a,pagination:l,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...c}),mt=t=>{const{type:r="card",animated:n=!0,...o}=t;return e.jsx(s.Tabs,{type:r,animated:n,...o})};function Zi(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,o=Array(r);n<r;n++)o[n]=t[n];return o}function np(t){if(Array.isArray(t))return Zi(t)}function lc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Os(t,r){if(t){if(typeof t=="string")return Zi(t,r);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zi(t,r):void 0}}function op(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(t){return np(t)||lc(t)||Os(t)||op()}function nt(){return nt=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},nt.apply(null,arguments)}var ip={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function cc(t){if(Array.isArray(t))return t}function sp(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,l,c=[],d=!0,p=!1;try{if(a=(n=n.call(t)).next,r===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(o=a.call(n)).done)&&(c.push(o.value),c.length!==r);d=!0);}catch(h){p=!0,i=h}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(p)throw i}}return c}}function dc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(t,r){return cc(t)||sp(t,r)||Os(t,r)||dc()}function Te(t){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Te(t)}function ap(t,r){if(Te(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,r);if(Te(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function uc(t){var r=ap(t,"string");return Te(r)=="symbol"?r:r+""}function se(t,r,n){return(r=uc(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function lp(t,r){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(r.indexOf(o)!==-1)continue;n[o]=t[o]}return n}function _t(t,r){if(t==null)return{};var n,o,i=lp(t,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],r.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var bi={exports:{}};/*!
4
+ Copyright (c) 2018 Jed Watson.
5
+ Licensed under the MIT License (MIT), see
6
+ http://jedwatson.github.io/classnames
7
+ */var Sa;function cp(){return Sa||(Sa=1,(function(t){(function(){var r={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=i(a,o(c)))}return a}function o(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)r.call(a,c)&&a[c]&&(l=i(l,c));return l}function i(a,l){return l?a?a+" "+l:a+l:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(bi)),bi.exports}var dp=cp();const ve=Hn(dp),it=Math.round;function Ci(t,r){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)o[i]=r(o[i]||0,n[i]||"",i);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Ra=(t,r,n)=>n===0?t:t/100;function vn(t,r){const n=r||255;return t>n?n:t<0?0:t}let rt=class pc{constructor(r){se(this,"isValid",!0),se(this,"r",0),se(this,"g",0),se(this,"b",0),se(this,"a",1),se(this,"_h",void 0),se(this,"_s",void 0),se(this,"_l",void 0),se(this,"_v",void 0),se(this,"_max",void 0),se(this,"_min",void 0),se(this,"_brightness",void 0);function n(o){return o[0]in r&&o[1]in r&&o[2]in r}if(r)if(typeof r=="string"){let i=function(a){return o.startsWith(a)};const o=r.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(r instanceof pc)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(n("rgb"))this.r=vn(r.r),this.g=vn(r.g),this.b=vn(r.b),this.a=typeof r.a=="number"?vn(r.a,1):1;else if(n("hsl"))this.fromHsl(r);else if(n("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const n=this.toHsv();return n.h=r,this._c(n)}getLuminance(){function r(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=r(this.r),o=r(this.g),i=r(this.b);return .2126*n+.7152*o+.0722*i}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=it(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(r=10){const n=this.getHue(),o=this.getSaturation();let i=this.getLightness()-r/100;return i<0&&(i=0),this._c({h:n,s:o,l:i,a:this.a})}lighten(r=10){const n=this.getHue(),o=this.getSaturation();let i=this.getLightness()+r/100;return i>1&&(i=1),this._c({h:n,s:o,l:i,a:this.a})}mix(r,n=50){const o=this._c(r),i=n/100,a=c=>(o[c]-this[c])*i+this[c],l={r:it(a("r")),g:it(a("g")),b:it(a("b")),a:it(a("a")*100)/100};return this._c(l)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const n=this._c(r),o=this.a+n.a*(1-this.a),i=a=>it((this[a]*this.a+n[a]*n.a*(1-this.a))/o);return this._c({r:i("r"),g:i("g"),b:i("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const n=(this.r||0).toString(16);r+=n.length===2?n:"0"+n;const o=(this.g||0).toString(16);r+=o.length===2?o:"0"+o;const i=(this.b||0).toString(16);if(r+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=it(this.a*255).toString(16);r+=a.length===2?a:"0"+a}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),n=it(this.getSaturation()*100),o=it(this.getLightness()*100);return this.a!==1?`hsla(${r},${n}%,${o}%,${this.a})`:`hsl(${r},${n}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,n,o){const i=this.clone();return i[r]=vn(n,o),i}_c(r){return new this.constructor(r)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(r){const n=r.replace("#","");function o(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=n[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=n[6]?o(6,7)/255:1)}fromHsl({h:r,s:n,l:o,a:i}){if(this._h=r%360,this._s=n,this._l=o,this.a=typeof i=="number"?i:1,n<=0){const x=it(o*255);this.r=x,this.g=x,this.b=x}let a=0,l=0,c=0;const d=r/60,p=(1-Math.abs(2*o-1))*n,h=p*(1-Math.abs(d%2-1));d>=0&&d<1?(a=p,l=h):d>=1&&d<2?(a=h,l=p):d>=2&&d<3?(l=p,c=h):d>=3&&d<4?(l=h,c=p):d>=4&&d<5?(a=h,c=p):d>=5&&d<6&&(a=p,c=h);const f=o-p/2;this.r=it((a+f)*255),this.g=it((l+f)*255),this.b=it((c+f)*255)}fromHsv({h:r,s:n,v:o,a:i}){this._h=r%360,this._s=n,this._v=o,this.a=typeof i=="number"?i:1;const a=it(o*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=r/60,c=Math.floor(l),d=l-c,p=it(o*(1-n)*255),h=it(o*(1-n*d)*255),f=it(o*(1-n*(1-d))*255);switch(c){case 0:this.g=f,this.b=p;break;case 1:this.r=h,this.b=p;break;case 2:this.r=p,this.b=f;break;case 3:this.r=p,this.g=h;break;case 4:this.r=f,this.g=p;break;case 5:default:this.g=p,this.b=h;break}}fromHsvString(r){const n=Ci(r,Ra);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(r){const n=Ci(r,Ra);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(r){const n=Ci(r,(o,i)=>i.includes("%")?it(o/100*255):o);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var uo=2,Ta=.16,up=.05,pp=.05,fp=.15,fc=5,hc=4,hp=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ea(t,r,n){var o;return Math.round(t.h)>=60&&Math.round(t.h)<=240?o=n?Math.round(t.h)-uo*r:Math.round(t.h)+uo*r:o=n?Math.round(t.h)+uo*r:Math.round(t.h)-uo*r,o<0?o+=360:o>=360&&(o-=360),o}function ka(t,r,n){if(t.h===0&&t.s===0)return t.s;var o;return n?o=t.s-Ta*r:r===hc?o=t.s+Ta:o=t.s+up*r,o>1&&(o=1),n&&r===fc&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function Ia(t,r,n){var o;return n?o=t.v+pp*r:o=t.v-fp*r,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Pn(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=new rt(t),i=o.toHsv(),a=fc;a>0;a-=1){var l=new rt({h:Ea(i,a,!0),s:ka(i,a,!0),v:Ia(i,a,!0)});n.push(l)}n.push(o);for(var c=1;c<=hc;c+=1){var d=new rt({h:Ea(i,c),s:ka(i,c),v:Ia(i,c)});n.push(d)}return r.theme==="dark"?hp.map(function(p){var h=p.index,f=p.amount;return new rt(r.backgroundColor||"#141414").mix(n[h],f).toHexString()}):n.map(function(p){return p.toHexString()})}var wi={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ji=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ji.primary=Ji[5];var es=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];es.primary=es[5];var ts=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ts.primary=ts[5];var No=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];No.primary=No[5];var rs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rs.primary=rs[5];var ns=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ns.primary=ns[5];var os=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];os.primary=os[5];var is=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];is.primary=is[5];var Oo=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Oo.primary=Oo[5];var ss=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ss.primary=ss[5];var as=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];as.primary=as[5];var ls=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ls.primary=ls[5];var cs=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];cs.primary=cs[5];var ji={red:Ji,volcano:es,orange:ts,gold:No,yellow:rs,lime:ns,green:os,cyan:is,blue:Oo,geekblue:ss,purple:as,magenta:ls,grey:cs},Ds=u.createContext({});function Pa(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function re(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Pa(Object(n),!0).forEach(function(o){se(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ft(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gp(t,r){if(!t)return!1;if(t.contains)return t.contains(r);for(var n=r;n;){if(n===t)return!0;n=n.parentNode}return!1}var Ba="data-rc-order",Ma="data-rc-priority",mp="rc-util-key",ds=new Map;function gc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.mark;return r?r.startsWith("data-")?r:"data-".concat(r):mp}function Vo(t){if(t.attachTo)return t.attachTo;var r=document.querySelector("head");return r||document.body}function xp(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function As(t){return Array.from((ds.get(t)||t).children).filter(function(r){return r.tagName==="STYLE"})}function mc(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ft())return null;var n=r.csp,o=r.prepend,i=r.priority,a=i===void 0?0:i,l=xp(o),c=l==="prependQueue",d=document.createElement("style");d.setAttribute(Ba,l),c&&a&&d.setAttribute(Ma,"".concat(a)),n!=null&&n.nonce&&(d.nonce=n?.nonce),d.innerHTML=t;var p=Vo(r),h=p.firstChild;if(o){if(c){var f=(r.styles||As(p)).filter(function(x){if(!["prepend","prependQueue"].includes(x.getAttribute(Ba)))return!1;var E=Number(x.getAttribute(Ma)||0);return a>=E});if(f.length)return p.insertBefore(d,f[f.length-1].nextSibling),d}p.insertBefore(d,h)}else p.appendChild(d);return d}function xc(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Vo(r);return(r.styles||As(n)).find(function(o){return o.getAttribute(gc(r))===t})}function Bn(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xc(t,r);if(n){var o=Vo(r);o.removeChild(n)}}function vp(t,r){var n=ds.get(t);if(!n||!gp(document,n)){var o=mc("",r),i=o.parentNode;ds.set(t,i),t.removeChild(o)}}function tr(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Vo(n),i=As(o),a=re(re({},n),{},{styles:i});vp(o,a);var l=xc(r,a);if(l){var c,d;if((c=a.csp)!==null&&c!==void 0&&c.nonce&&l.nonce!==((d=a.csp)===null||d===void 0?void 0:d.nonce)){var p;l.nonce=(p=a.csp)===null||p===void 0?void 0:p.nonce}return l.innerHTML!==t&&(l.innerHTML=t),l}var h=mc(t,a);return h.setAttribute(gc(a),r),h}function vc(t){var r;return t==null||(r=t.getRootNode)===null||r===void 0?void 0:r.call(t)}function yp(t){return vc(t)instanceof ShadowRoot}function Do(t){return yp(t)?vc(t):null}var us={},$s=[],bp=function(r){$s.push(r)};function Hr(t,r){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){var n=$s.reduce(function(o,i){return i(o??"","warning")},r);n&&console.error("Warning: ".concat(n))}}function Cp(t,r){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){var n=$s.reduce(function(o,i){return i(o??"","note")},r);n&&console.warn("Note: ".concat(n))}}function yc(){us={}}function bc(t,r,n){!r&&!us[n]&&(t(!1,n),us[n]=!0)}function nr(t,r){bc(Hr,t,r)}function wp(t,r){bc(Cp,t,r)}nr.preMessage=bp;nr.resetWarned=yc;nr.noteOnce=wp;function jp(t){return t.replace(/-(.)/g,function(r,n){return n.toUpperCase()})}function Sp(t,r){nr(t,"[@ant-design/icons] ".concat(r))}function Na(t){return Te(t)==="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(Te(t.icon)==="object"||typeof t.icon=="function")}function Oa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(r,n){var o=t[n];switch(n){case"class":r.className=o,delete r.class;break;default:delete r[n],r[jp(n)]=o}return r},{})}function ps(t,r,n){return n?u.createElement(t.tag,re(re({key:r},Oa(t.attrs)),n),(t.children||[]).map(function(o,i){return ps(o,"".concat(r,"-").concat(t.tag,"-").concat(i))})):u.createElement(t.tag,re({key:r},Oa(t.attrs)),(t.children||[]).map(function(o,i){return ps(o,"".concat(r,"-").concat(t.tag,"-").concat(i))}))}function Cc(t){return Pn(t)[0]}function wc(t){return t?Array.isArray(t)?t:[t]:[]}var Rp=`
8
+ .anticon {
9
+ display: inline-flex;
10
+ align-items: center;
11
+ color: inherit;
12
+ font-style: normal;
13
+ line-height: 0;
14
+ text-align: center;
15
+ text-transform: none;
16
+ vertical-align: -0.125em;
17
+ text-rendering: optimizeLegibility;
18
+ -webkit-font-smoothing: antialiased;
19
+ -moz-osx-font-smoothing: grayscale;
20
+ }
21
+
22
+ .anticon > * {
23
+ line-height: 1;
24
+ }
25
+
26
+ .anticon svg {
27
+ display: inline-block;
28
+ }
29
+
30
+ .anticon::before {
31
+ display: none;
32
+ }
33
+
34
+ .anticon .anticon-icon {
35
+ display: block;
36
+ }
37
+
38
+ .anticon[tabindex] {
39
+ cursor: pointer;
40
+ }
41
+
42
+ .anticon-spin::before,
43
+ .anticon-spin {
44
+ display: inline-block;
45
+ -webkit-animation: loadingCircle 1s infinite linear;
46
+ animation: loadingCircle 1s infinite linear;
47
+ }
48
+
49
+ @-webkit-keyframes loadingCircle {
50
+ 100% {
51
+ -webkit-transform: rotate(360deg);
52
+ transform: rotate(360deg);
53
+ }
54
+ }
55
+
56
+ @keyframes loadingCircle {
57
+ 100% {
58
+ -webkit-transform: rotate(360deg);
59
+ transform: rotate(360deg);
60
+ }
61
+ }
62
+ `,Tp=function(r){var n=u.useContext(Ds),o=n.csp,i=n.prefixCls,a=n.layer,l=Rp;i&&(l=l.replace(/anticon/g,i)),a&&(l="@layer ".concat(a,` {
63
+ `).concat(l,`
64
+ }`)),u.useEffect(function(){var c=r.current,d=Do(c);tr(l,"@ant-design-icons",{prepend:!a,csp:o,attachTo:d})},[])},Ep=["icon","className","onClick","style","primaryColor","secondaryColor"],Rn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kp(t){var r=t.primaryColor,n=t.secondaryColor;Rn.primaryColor=r,Rn.secondaryColor=n||Cc(r),Rn.calculated=!!n}function Ip(){return re({},Rn)}var Zr=function(r){var n=r.icon,o=r.className,i=r.onClick,a=r.style,l=r.primaryColor,c=r.secondaryColor,d=_t(r,Ep),p=y.useRef(),h=Rn;if(l&&(h={primaryColor:l,secondaryColor:c||Cc(l)}),Tp(p),Sp(Na(n),"icon should be icon definiton, but got ".concat(n)),!Na(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=re(re({},f),{},{icon:f.icon(h.primaryColor,h.secondaryColor)})),ps(f.icon,"svg-".concat(f.name),re(re({className:o,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:p}))};Zr.displayName="IconReact";Zr.getTwoToneColors=Ip;Zr.setTwoToneColors=kp;function jc(t){var r=wc(t),n=le(r,2),o=n[0],i=n[1];return Zr.setTwoToneColors({primaryColor:o,secondaryColor:i})}function Pp(){var t=Zr.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var Bp=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jc(Oo.primary);var or=y.forwardRef(function(t,r){var n=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,c=t.onClick,d=t.twoToneColor,p=_t(t,Bp),h=y.useContext(Ds),f=h.prefixCls,x=f===void 0?"anticon":f,E=h.rootClassName,g=ve(E,x,se(se({},"".concat(x,"-").concat(o.name),!!o.name),"".concat(x,"-spin"),!!i||o.name==="loading"),n),j=l;j===void 0&&c&&(j=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=wc(d),w=le(b,2),P=w[0],B=w[1];return y.createElement("span",nt({role:"img","aria-label":o.name},p,{ref:r,tabIndex:j,onClick:c,className:g}),y.createElement(Zr,{icon:o,primaryColor:P,secondaryColor:B,style:v}))});or.displayName="AntdIcon";or.getTwoToneColor=Pp;or.setTwoToneColor=jc;var Mp=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:ip}))},Sc=y.forwardRef(Mp);process.env.NODE_ENV!=="production"&&(Sc.displayName="EditOutlined");var Np=Symbol.for("react.element"),Op=Symbol.for("react.transitional.element"),Dp=Symbol.for("react.fragment");function Rc(t){return t&&Te(t)==="object"&&(t.$$typeof===Np||t.$$typeof===Op)&&t.type===Dp}function Mn(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return u.Children.forEach(t,function(o){o==null&&!r.keepEmpty||(Array.isArray(o)?n=n.concat(Mn(o)):Rc(o)&&o.props?n=n.concat(Mn(o.props.children,r)):n.push(o))}),n}function Nn(t){return t instanceof HTMLElement||t instanceof SVGElement}function Ap(t){return t&&Te(t)==="object"&&Nn(t.nativeElement)?t.nativeElement:Nn(t)?t:null}function So(t){var r=Ap(t);if(r)return r;if(t instanceof u.Component){var n;return(n=Po.findDOMNode)===null||n===void 0?void 0:n.call(Po,t)}return null}var po={exports:{}},Pe={};/**
65
+ * @license React
66
+ * react-is.production.min.js
67
+ *
68
+ * Copyright (c) Facebook, Inc. and its affiliates.
69
+ *
70
+ * This source code is licensed under the MIT license found in the
71
+ * LICENSE file in the root directory of this source tree.
72
+ */var Da;function $p(){if(Da)return Pe;Da=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function j(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case t:switch(v=v.type,v){case n:case i:case o:case p:case h:return v;default:switch(v=v&&v.$$typeof,v){case c:case l:case d:case x:case f:case a:return v;default:return b}}case r:return b}}}return Pe.ContextConsumer=l,Pe.ContextProvider=a,Pe.Element=t,Pe.ForwardRef=d,Pe.Fragment=n,Pe.Lazy=x,Pe.Memo=f,Pe.Portal=r,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=p,Pe.SuspenseList=h,Pe.isAsyncMode=function(){return!1},Pe.isConcurrentMode=function(){return!1},Pe.isContextConsumer=function(v){return j(v)===l},Pe.isContextProvider=function(v){return j(v)===a},Pe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Pe.isForwardRef=function(v){return j(v)===d},Pe.isFragment=function(v){return j(v)===n},Pe.isLazy=function(v){return j(v)===x},Pe.isMemo=function(v){return j(v)===f},Pe.isPortal=function(v){return j(v)===r},Pe.isProfiler=function(v){return j(v)===i},Pe.isStrictMode=function(v){return j(v)===o},Pe.isSuspense=function(v){return j(v)===p},Pe.isSuspenseList=function(v){return j(v)===h},Pe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===i||v===o||v===p||v===h||v===E||typeof v=="object"&&v!==null&&(v.$$typeof===x||v.$$typeof===f||v.$$typeof===a||v.$$typeof===l||v.$$typeof===d||v.$$typeof===g||v.getModuleId!==void 0)},Pe.typeOf=j,Pe}var Be={};/**
73
+ * @license React
74
+ * react-is.development.js
75
+ *
76
+ * Copyright (c) Facebook, Inc. and its affiliates.
77
+ *
78
+ * This source code is licensed under the MIT license found in the
79
+ * LICENSE file in the root directory of this source tree.
80
+ */var Aa;function _p(){return Aa||(Aa=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),g=!1,j=!1,v=!1,b=!1,w=!1,P;P=Symbol.for("react.module.reference");function B(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===i||w||W===o||W===p||W===h||b||W===E||g||j||v||typeof W=="object"&&W!==null&&(W.$$typeof===x||W.$$typeof===f||W.$$typeof===a||W.$$typeof===l||W.$$typeof===d||W.$$typeof===P||W.getModuleId!==void 0))}function C(W){if(typeof W=="object"&&W!==null){var J=W.$$typeof;switch(J){case t:var te=W.type;switch(te){case n:case i:case o:case p:case h:return te;default:var ie=te&&te.$$typeof;switch(ie){case c:case l:case d:case x:case f:case a:return ie;default:return J}}case r:return J}}}var m=l,R=a,T=t,N=d,$=n,M=x,D=f,V=r,U=i,k=o,S=p,I=h,L=!1,F=!1;function Q(W){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(W){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function _(W){return C(W)===l}function Y(W){return C(W)===a}function ee(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function oe(W){return C(W)===d}function ne(W){return C(W)===n}function fe(W){return C(W)===x}function A(W){return C(W)===f}function K(W){return C(W)===r}function Z(W){return C(W)===i}function X(W){return C(W)===o}function O(W){return C(W)===p}function G(W){return C(W)===h}Be.ContextConsumer=m,Be.ContextProvider=R,Be.Element=T,Be.ForwardRef=N,Be.Fragment=$,Be.Lazy=M,Be.Memo=D,Be.Portal=V,Be.Profiler=U,Be.StrictMode=k,Be.Suspense=S,Be.SuspenseList=I,Be.isAsyncMode=Q,Be.isConcurrentMode=z,Be.isContextConsumer=_,Be.isContextProvider=Y,Be.isElement=ee,Be.isForwardRef=oe,Be.isFragment=ne,Be.isLazy=fe,Be.isMemo=A,Be.isPortal=K,Be.isProfiler=Z,Be.isStrictMode=X,Be.isSuspense=O,Be.isSuspenseList=G,Be.isValidElementType=B,Be.typeOf=C})()),Be}var $a;function zp(){return $a||($a=1,process.env.NODE_ENV==="production"?po.exports=$p():po.exports=_p()),po.exports}var Si=zp();function _s(t,r,n){var o=y.useRef({});return(!("value"in o.current)||n(o.current.condition,r))&&(o.current.value=t(),o.current.condition=r),o.current.value}var Lp=Number(u.version.split(".")[0]),zs=function(r,n){typeof r=="function"?r(n):Te(r)==="object"&&r&&"current"in r&&(r.current=n)},Wn=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(l){zs(l,a)})}},Ls=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _s(function(){return Wn.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(l,c){return l!==a[c]})})},Wo=function(r){var n,o;if(!r)return!1;if(Tc(r)&&Lp>=19)return!0;var i=Si.isMemo(r)?r.type.type:r.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==Si.ForwardRef||typeof r=="function"&&!((o=r.prototype)!==null&&o!==void 0&&o.render)&&r.$$typeof!==Si.ForwardRef)};function Tc(t){return u.isValidElement(t)&&!Rc(t)}var Fs=function(r){if(r&&Tc(r)){var n=r;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},fs=y.createContext(null);function Fp(t){var r=t.children,n=t.onBatchResize,o=y.useRef(0),i=y.useRef([]),a=y.useContext(fs),l=y.useCallback(function(c,d,p){o.current+=1;var h=o.current;i.current.push({size:c,element:d,data:p}),Promise.resolve().then(function(){h===o.current&&(n?.(i.current),i.current=[])}),a?.(c,d,p)},[n,a]);return y.createElement(fs.Provider,{value:l},r)}var Ec=(function(){if(typeof Map<"u")return Map;function t(r,n){var o=-1;return r.some(function(i,a){return i[0]===n?(o=a,!0):!1}),o}return(function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(n){var o=t(this.__entries__,n),i=this.__entries__[o];return i&&i[1]},r.prototype.set=function(n,o){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=o:this.__entries__.push([n,o])},r.prototype.delete=function(n){var o=this.__entries__,i=t(o,n);~i&&o.splice(i,1)},r.prototype.has=function(n){return!!~t(this.__entries__,n)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];n.call(o,l[1],l[0])}},r})()})(),hs=typeof window<"u"&&typeof document<"u"&&window.document===document,Ao=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Hp=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ao):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),Vp=2;function Wp(t,r){var n=!1,o=!1,i=0;function a(){n&&(n=!1,t()),o&&c()}function l(){Hp(a)}function c(){var d=Date.now();if(n){if(d-i<Vp)return;o=!0}else n=!0,o=!1,setTimeout(l,r);i=d}return c}var Up=20,Gp=["top","right","bottom","left","width","height","size","weight"],Kp=typeof MutationObserver<"u",Yp=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Wp(this.refresh.bind(this),Up)}return t.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},t.prototype.removeObserver=function(r){var n=this.observers_,o=n.indexOf(r);~o&&n.splice(o,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},t.prototype.updateObservers_=function(){var r=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return r.forEach(function(n){return n.broadcastActive()}),r.length>0},t.prototype.connect_=function(){!hs||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Kp?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!hs||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(r){var n=r.propertyName,o=n===void 0?"":n,i=Gp.some(function(a){return!!~o.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),kc=(function(t,r){for(var n=0,o=Object.keys(r);n<o.length;n++){var i=o[n];Object.defineProperty(t,i,{value:r[i],enumerable:!1,writable:!1,configurable:!0})}return t}),Vr=(function(t){var r=t&&t.ownerDocument&&t.ownerDocument.defaultView;return r||Ao}),Ic=Uo(0,0,0,0);function $o(t){return parseFloat(t)||0}function _a(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return r.reduce(function(o,i){var a=t["border-"+i+"-width"];return o+$o(a)},0)}function qp(t){for(var r=["top","right","bottom","left"],n={},o=0,i=r;o<i.length;o++){var a=i[o],l=t["padding-"+a];n[a]=$o(l)}return n}function Xp(t){var r=t.getBBox();return Uo(0,0,r.width,r.height)}function Qp(t){var r=t.clientWidth,n=t.clientHeight;if(!r&&!n)return Ic;var o=Vr(t).getComputedStyle(t),i=qp(o),a=i.left+i.right,l=i.top+i.bottom,c=$o(o.width),d=$o(o.height);if(o.boxSizing==="border-box"&&(Math.round(c+a)!==r&&(c-=_a(o,"left","right")+a),Math.round(d+l)!==n&&(d-=_a(o,"top","bottom")+l)),!Jp(t)){var p=Math.round(c+a)-r,h=Math.round(d+l)-n;Math.abs(p)!==1&&(c-=p),Math.abs(h)!==1&&(d-=h)}return Uo(i.left,i.top,c,d)}var Zp=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Vr(t).SVGGraphicsElement}:function(t){return t instanceof Vr(t).SVGElement&&typeof t.getBBox=="function"}})();function Jp(t){return t===Vr(t).document.documentElement}function ef(t){return hs?Zp(t)?Xp(t):Qp(t):Ic}function tf(t){var r=t.x,n=t.y,o=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return kc(l,{x:r,y:n,width:o,height:i,top:n,right:r+o,bottom:i+n,left:r}),l}function Uo(t,r,n,o){return{x:t,y:r,width:n,height:o}}var rf=(function(){function t(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Uo(0,0,0,0),this.target=r}return t.prototype.isActive=function(){var r=ef(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},t})(),nf=(function(){function t(r,n){var o=tf(n);kc(this,{target:r,contentRect:o})}return t})(),of=(function(){function t(r,n,o){if(this.activeObservations_=[],this.observations_=new Ec,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=n,this.callbackCtx_=o}return t.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Vr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(r)||(n.set(r,new rf(r)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Vr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(r)&&(n.delete(r),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&r.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new nf(o.target,o.broadcastRect())});this.callback_.call(r,n,r),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),Pc=typeof WeakMap<"u"?new WeakMap:new Ec,Bc=(function(){function t(r){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Yp.getInstance(),o=new of(r,n,this);Pc.set(this,o)}return t})();["observe","unobserve","disconnect"].forEach(function(t){Bc.prototype[t]=function(){var r;return(r=Pc.get(this))[t].apply(r,arguments)}});var sf=(function(){return typeof Ao.ResizeObserver<"u"?Ao.ResizeObserver:Bc})(),er=new Map;function Mc(t){t.forEach(function(r){var n,o=r.target;(n=er.get(o))===null||n===void 0||n.forEach(function(i){return i(o)})})}var Nc=new sf(Mc);process.env.NODE_ENV;process.env.NODE_ENV;function af(t,r){er.has(t)||(er.set(t,new Set),Nc.observe(t)),er.get(t).add(r)}function lf(t,r){er.has(t)&&(er.get(t).delete(r),er.get(t).size||(Nc.unobserve(t),er.delete(t)))}function kt(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function cf(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,uc(o.key),o)}}function It(t,r,n){return r&&cf(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gs(t,r){return gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},gs(t,r)}function Un(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&gs(t,r)}function _o(t){return _o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_o(t)}function Oc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oc=function(){return!!t})()}function Tn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function df(t,r){if(r&&(Te(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tn(t)}function Gn(t){var r=Oc();return function(){var n,o=_o(t);if(r){var i=_o(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return df(this,n)}}var uf=(function(t){Un(n,t);var r=Gn(n);function n(){return kt(this,n),r.apply(this,arguments)}return It(n,[{key:"render",value:function(){return this.props.children}}]),n})(y.Component);function pf(t,r){var n=t.children,o=t.disabled,i=y.useRef(null),a=y.useRef(null),l=y.useContext(fs),c=typeof n=="function",d=c?n(i):n,p=y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!c&&y.isValidElement(d)&&Wo(d),f=h?Fs(d):null,x=Ls(f,i),E=function(){var b;return So(i.current)||(i.current&&Te(i.current)==="object"?So((b=i.current)===null||b===void 0?void 0:b.nativeElement):null)||So(a.current)};y.useImperativeHandle(r,function(){return E()});var g=y.useRef(t);g.current=t;var j=y.useCallback(function(v){var b=g.current,w=b.onResize,P=b.data,B=v.getBoundingClientRect(),C=B.width,m=B.height,R=v.offsetWidth,T=v.offsetHeight,N=Math.floor(C),$=Math.floor(m);if(p.current.width!==N||p.current.height!==$||p.current.offsetWidth!==R||p.current.offsetHeight!==T){var M={width:N,height:$,offsetWidth:R,offsetHeight:T};p.current=M;var D=R===Math.round(C)?C:R,V=T===Math.round(m)?m:T,U=re(re({},M),{},{offsetWidth:D,offsetHeight:V});l?.(U,v,P),w&&Promise.resolve().then(function(){w(U,v)})}},[]);return y.useEffect(function(){var v=E();return v&&!o&&af(v,j),function(){return lf(v,j)}},[i.current,o]),y.createElement(uf,{ref:a},h?y.cloneElement(d,{ref:x}):d)}var Dc=y.forwardRef(pf);process.env.NODE_ENV!=="production"&&(Dc.displayName="SingleObserver");var ff="rc-observer-key";function hf(t,r){var n=t.children,o=typeof n=="function"?[n]:Mn(n);return process.env.NODE_ENV!=="production"&&(o.length>1?Hr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Hr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map(function(i,a){var l=i?.key||"".concat(ff,"-").concat(a);return y.createElement(Dc,nt({},t,{key:l,ref:a===0?r:void 0}),i)})}var Jr=y.forwardRef(hf);process.env.NODE_ENV!=="production"&&(Jr.displayName="ResizeObserver");Jr.Collection=Fp;var za=process.env.NODE_ENV!=="test"&&ft()?y.useLayoutEffect:y.useEffect,Ge=function(r,n){var o=y.useRef(!0);za(function(){return r(o.current)},n),za(function(){return o.current=!1,function(){o.current=!0}},[])},La=function(r,n){Ge(function(o){if(!o)return r()},n)};function wt(t){var r=y.useRef();r.current=t;var n=y.useCallback(function(){for(var o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return(o=r.current)===null||o===void 0?void 0:o.call.apply(o,[r].concat(a))},[]);return n}function On(t){var r=y.useRef(!1),n=y.useState(t),o=le(n,2),i=o[0],a=o[1];y.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function l(c,d){d&&r.current||a(c)}return[i,l]}function Ri(t){return t!==void 0}function Wr(t,r){var n=r||{},o=n.defaultValue,i=n.value,a=n.onChange,l=n.postState,c=On(function(){return Ri(i)?i:Ri(o)?typeof o=="function"?o():o:typeof t=="function"?t():t}),d=le(c,2),p=d[0],h=d[1],f=i!==void 0?i:p,x=l?l(f):f,E=wt(a),g=On([f]),j=le(g,2),v=j[0],b=j[1];La(function(){var P=v[0];p!==P&&E(p,P)},[v]),La(function(){Ri(i)||h(i)},[i]);var w=wt(function(P,B){h(P,B),b([f],B)});return[x,w]}function Ac(t,r){var n=Object.assign({},t);return Array.isArray(r)&&r.forEach(function(o){delete n[o]}),n}var gf=function(r){if(ft()&&window.document.documentElement){var n=Array.isArray(r)?r:[r],o=window.document.documentElement;return n.some(function(i){return i in o.style})}return!1};function Fa(t,r){return gf(t)}function Dn(t){for(var r=0,n,o=0,i=t.length;i>=4;++o,i-=4)n=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(t.charCodeAt(o+2)&255)<<16;case 2:r^=(t.charCodeAt(o+1)&255)<<8;case 1:r^=t.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function mf(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=new Set;function i(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=o.has(a);if(nr(!d,"Warning: There may be circular references"),d)return!1;if(a===l)return!0;if(n&&c>1)return!1;o.add(a);var p=c+1;if(Array.isArray(a)){if(!Array.isArray(l)||a.length!==l.length)return!1;for(var h=0;h<a.length;h++)if(!i(a[h],l[h],p))return!1;return!0}if(a&&l&&Te(a)==="object"&&Te(l)==="object"){var f=Object.keys(a);return f.length!==Object.keys(l).length?!1:f.every(function(x){return i(a[x],l[x],p)})}return!1}return i(t,r)}var xf="%";function ms(t){return t.join(xf)}var vf=(function(){function t(r){kt(this,t),se(this,"instanceId",void 0),se(this,"cache",new Map),se(this,"extracted",new Set),this.instanceId=r}return It(t,[{key:"get",value:function(n){return this.opGet(ms(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,o){return this.opUpdate(ms(n),o)}},{key:"opUpdate",value:function(n,o){var i=this.cache.get(n),a=o(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),t})(),An="data-token-hash",Wt="data-css-hash",yf="data-cache-path",mr="__cssinjs_instance__";function bf(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(Wt,"]"))||[],n=document.head.firstChild;Array.from(r).forEach(function(i){i[mr]=i[mr]||t,i[mr]===t&&document.head.insertBefore(i,n)});var o={};Array.from(document.querySelectorAll("style[".concat(Wt,"]"))).forEach(function(i){var a=i.getAttribute(Wt);if(o[a]){if(i[mr]===t){var l;(l=i.parentNode)===null||l===void 0||l.removeChild(i)}}else o[a]=!0})}return new vf(t)}var Kn=y.createContext({hashPriority:"low",cache:bf(),defaultCache:!0});function Cf(t,r){if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}var Hs=(function(){function t(){kt(this,t),se(this,"cache",void 0),se(this,"keys",void 0),se(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return It(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var o,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(c){if(!l)l=void 0;else{var d;l=(d=l)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(c)}}),(o=l)!==null&&o!==void 0&&o.value&&a&&(l.value[1]=this.cacheCallTimes++),(i=l)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var o;return(o=this.internalGet(n,!0))===null||o===void 0?void 0:o[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,o){var i=this;if(!this.has(n)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(p,h){var f=le(p,2),x=f[1];return i.internalGet(h)[1]<x?[h,i.internalGet(h)[1]]:p},[this.keys[0],this.cacheCallTimes]),l=le(a,1),c=l[0];this.delete(c)}this.keys.push(n)}var d=this.cache;n.forEach(function(p,h){if(h===n.length-1)d.set(p,{value:[o,i.cacheCallTimes++]});else{var f=d.get(p);f?f.map||(f.map=new Map):d.set(p,{map:new Map}),d=d.get(p).map}})}},{key:"deleteByPath",value:function(n,o){var i=n.get(o[0]);if(o.length===1){var a;return i.map?n.set(o[0],{map:i.map}):n.delete(o[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var l=this.deleteByPath(i.map,o.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(o[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(o){return!Cf(o,n)}),this.deleteByPath(this.cache,n)}}]),t})();se(Hs,"MAX_CACHE_SIZE",20);se(Hs,"MAX_CACHE_OFFSET",5);var Ha=0,$c=(function(){function t(r){kt(this,t),se(this,"derivatives",void 0),se(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=Ha,r.length===0&&Hr(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ha+=1}return It(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(o,i){return i(n,o)},void 0)}}]),t})(),Ti=new Hs;function xs(t){var r=Array.isArray(t)?t:[t];return Ti.has(r)||Ti.set(r,new $c(r)),Ti.get(r)}var wf=new WeakMap,Ei={};function jf(t,r){for(var n=wf,o=0;o<r.length;o+=1){var i=r[o];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(Ei)||n.set(Ei,t()),n.get(Ei)}var Va=new WeakMap;function En(t){var r=Va.get(t)||"";return r||(Object.keys(t).forEach(function(n){var o=t[n];r+=n,o instanceof $c?r+=o.id:o&&Te(o)==="object"?r+=En(o):r+=o}),r=Dn(r),Va.set(t,r)),r}function Wa(t,r){return Dn("".concat(r,"_").concat(En(t)))}var vs=ft();function Oe(t){return typeof t=="number"?"".concat(t,"px"):t}var Ro=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(r).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Sf=function(r,n,o){return Object.keys(r).length?".".concat(n).concat(o!=null&&o.scope?".".concat(o.scope):"","{").concat(Object.entries(r).map(function(i){var a=le(i,2),l=a[0],c=a[1];return"".concat(l,":").concat(c,";")}).join(""),"}"):""},_c=function(r,n,o){var i={},a={};return Object.entries(r).forEach(function(l){var c,d,p=le(l,2),h=p[0],f=p[1];if(o!=null&&(c=o.preserve)!==null&&c!==void 0&&c[h])a[h]=f;else if((typeof f=="string"||typeof f=="number")&&!(o!=null&&(d=o.ignore)!==null&&d!==void 0&&d[h])){var x,E=Ro(h,o?.prefix);i[E]=typeof f=="number"&&!(o!=null&&(x=o.unitless)!==null&&x!==void 0&&x[h])?"".concat(f,"px"):String(f),a[h]="var(".concat(E,")")}}),[a,Sf(i,n,{scope:o?.scope})]},Rf=re({},y),Ua=Rf.useInsertionEffect,Tf=function(r,n,o){y.useMemo(r,o),Ge(function(){return n(!0)},o)},Ef=Ua?function(t,r,n){return Ua(function(){return t(),r()},n)}:Tf,kf=re({},y),If=kf.useInsertionEffect,Pf=function(r){var n=[],o=!1;function i(a){if(o){process.env.NODE_ENV!=="production"&&Hr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return y.useEffect(function(){return o=!1,function(){o=!0,n.length&&n.forEach(function(a){return a()})}},r),i},Bf=function(){return function(r){r()}},Mf=typeof If<"u"?Pf:Bf;function Nf(){return!1}var ys=!1;function Of(){return ys}const Df=process.env.NODE_ENV==="production"?Nf:Of;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(fo&&typeof fo.webpackHotUpdate=="function"){var Af=fo.webpackHotUpdate;fo.webpackHotUpdate=function(){return ys=!0,setTimeout(function(){ys=!1},0),Af.apply(void 0,arguments)}}}function Vs(t,r,n,o,i){var a=y.useContext(Kn),l=a.cache,c=[t].concat(at(r)),d=ms(c),p=Mf([d]),h=Df(),f=function(j){l.opUpdate(d,function(v){var b=v||[void 0,void 0],w=le(b,2),P=w[0],B=P===void 0?0:P,C=w[1],m=C;process.env.NODE_ENV!=="production"&&C&&h&&(o?.(m,h),m=null);var R=m||n(),T=[B,R];return j?j(T):T})};y.useMemo(function(){f()},[d]);var x=l.opGet(d);process.env.NODE_ENV!=="production"&&!x&&(f(),x=l.opGet(d));var E=x[1];return Ef(function(){i?.(E)},function(g){return f(function(j){var v=le(j,2),b=v[0],w=v[1];return g&&b===0&&i?.(E),[b+1,w]}),function(){l.opUpdate(d,function(j){var v=j||[],b=le(v,2),w=b[0],P=w===void 0?0:w,B=b[1],C=P-1;return C===0?(p(function(){(g||!l.opGet(d))&&o?.(B,!1)}),null):[P-1,B]})}},[d]),E}var $f={},_f=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Rr=new Map;function zf(t){Rr.set(t,(Rr.get(t)||0)+1)}function Lf(t,r){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(An,'="').concat(t,'"]'));n.forEach(function(o){if(o[mr]===r){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}})}}var Ff=0;function Hf(t,r){Rr.set(t,(Rr.get(t)||0)-1);var n=new Set;Rr.forEach(function(o,i){o<=0&&n.add(i)}),Rr.size-n.size>Ff&&n.forEach(function(o){Lf(o,r),Rr.delete(o)})}var Vf=function(r,n,o,i){var a=o.getDerivativeToken(r),l=re(re({},a),n);return i&&(l=i(l)),l},Wf="token";function Uf(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=u.useContext(Kn),i=o.cache.instanceId,a=o.container,l=n.salt,c=l===void 0?"":l,d=n.override,p=d===void 0?$f:d,h=n.formatToken,f=n.getComputedToken,x=n.cssVar,E=jf(function(){return Object.assign.apply(Object,[{}].concat(at(r)))},r),g=En(E),j=En(p),v=x?En(x):"",b=Vs(Wf,[c,t.id,g,j,v],function(){var w,P=f?f(E,p,t):Vf(E,p,t,h),B=re({},P),C="";if(x){var m=_c(P,x.key,{prefix:x.prefix,ignore:x.ignore,unitless:x.unitless,preserve:x.preserve}),R=le(m,2);P=R[0],C=R[1]}var T=Wa(P,c);P._tokenKey=T,B._tokenKey=Wa(B,c);var N=(w=x?.key)!==null&&w!==void 0?w:T;P._themeKey=N,zf(N);var $="".concat(_f,"-").concat(Dn(T));return P._hashId=$,[P,$,B,C,x?.key||""]},function(w){Hf(w[0]._themeKey,i)},function(w){var P=le(w,4),B=P[0],C=P[3];if(x&&C){var m=tr(C,Dn("css-variables-".concat(B._themeKey)),{mark:Wt,prepend:"queue",attachTo:a,priority:-999});m[mr]=i,m.setAttribute(An,B._themeKey)}});return b}var Gf={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zc="comm",Lc="rule",Fc="decl",Kf="@import",Yf="@namespace",qf="@keyframes",Xf="@layer",Hc=Math.abs,Ws=String.fromCharCode;function Vc(t){return t.trim()}function To(t,r,n){return t.replace(r,n)}function Qf(t,r,n){return t.indexOf(r,n)}function Fr(t,r){return t.charCodeAt(r)|0}function Ur(t,r,n){return t.slice(r,n)}function Vt(t){return t.length}function Zf(t){return t.length}function ho(t,r){return r.push(t),t}var Go=1,Gr=1,Wc=0,Et=0,Je=0,en="";function Us(t,r,n,o,i,a,l,c){return{value:t,root:r,parent:n,type:o,props:i,children:a,line:Go,column:Gr,length:l,return:"",siblings:c}}function Jf(){return Je}function eh(){return Je=Et>0?Fr(en,--Et):0,Gr--,Je===10&&(Gr=1,Go--),Je}function $t(){return Je=Et<Wc?Fr(en,Et++):0,Gr++,Je===10&&(Gr=1,Go++),Je}function xr(){return Fr(en,Et)}function Eo(){return Et}function Ko(t,r){return Ur(en,t,r)}function $n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function th(t){return Go=Gr=1,Wc=Vt(en=t),Et=0,[]}function rh(t){return en="",t}function ki(t){return Vc(Ko(Et-1,bs(t===91?t+2:t===40?t+1:t)))}function nh(t){for(;(Je=xr())&&Je<33;)$t();return $n(t)>2||$n(Je)>3?"":" "}function oh(t,r){for(;--r&&$t()&&!(Je<48||Je>102||Je>57&&Je<65||Je>70&&Je<97););return Ko(t,Eo()+(r<6&&xr()==32&&$t()==32))}function bs(t){for(;$t();)switch(Je){case t:return Et;case 34:case 39:t!==34&&t!==39&&bs(Je);break;case 40:t===41&&bs(t);break;case 92:$t();break}return Et}function ih(t,r){for(;$t()&&t+Je!==57;)if(t+Je===84&&xr()===47)break;return"/*"+Ko(r,Et-1)+"*"+Ws(t===47?t:$t())}function sh(t){for(;!$n(xr());)$t();return Ko(t,Et)}function ah(t){return rh(ko("",null,null,null,[""],t=th(t),0,[0],t))}function ko(t,r,n,o,i,a,l,c,d){for(var p=0,h=0,f=l,x=0,E=0,g=0,j=1,v=1,b=1,w=0,P="",B=i,C=a,m=o,R=P;v;)switch(g=w,w=$t()){case 40:if(g!=108&&Fr(R,f-1)==58){Qf(R+=To(ki(w),"&","&\f"),"&\f",Hc(p?c[p-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:R+=ki(w);break;case 9:case 10:case 13:case 32:R+=nh(g);break;case 92:R+=oh(Eo()-1,7);continue;case 47:switch(xr()){case 42:case 47:ho(lh(ih($t(),Eo()),r,n,d),d),($n(g||1)==5||$n(xr()||1)==5)&&Vt(R)&&Ur(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*j:c[p++]=Vt(R)*b;case 125*j:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+h:b==-1&&(R=To(R,/\f/g,"")),E>0&&(Vt(R)-f||j===0&&g===47)&&ho(E>32?Ka(R+";",o,n,f-1,d):Ka(To(R," ","")+";",o,n,f-2,d),d);break;case 59:R+=";";default:if(ho(m=Ga(R,r,n,p,h,i,c,P,B=[],C=[],f,a),a),w===123)if(h===0)ko(R,r,m,m,B,a,f,c,C);else{switch(x){case 99:if(Fr(R,3)===110)break;case 108:if(Fr(R,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ko(t,m,m,o&&ho(Ga(t,m,m,0,0,i,c,P,i,B=[],f,C),C),i,C,f,c,o?B:C):ko(R,m,m,m,[""],C,0,c,C)}}p=h=E=0,j=b=1,P=R="",f=l;break;case 58:f=1+Vt(R),E=g;default:if(j<1){if(w==123)--j;else if(w==125&&j++==0&&eh()==125)continue}switch(R+=Ws(w),w*j){case 38:b=h>0?1:(R+="\f",-1);break;case 44:c[p++]=(Vt(R)-1)*b,b=1;break;case 64:xr()===45&&(R+=ki($t())),x=xr(),h=f=Vt(P=R+=sh(Eo())),w++;break;case 45:g===45&&Vt(R)==2&&(j=0)}}return a}function Ga(t,r,n,o,i,a,l,c,d,p,h,f){for(var x=i-1,E=i===0?a:[""],g=Zf(E),j=0,v=0,b=0;j<o;++j)for(var w=0,P=Ur(t,x+1,x=Hc(v=l[j])),B=t;w<g;++w)(B=Vc(v>0?E[w]+" "+P:To(P,/&\f/g,E[w])))&&(d[b++]=B);return Us(t,r,n,i===0?Lc:c,d,p,h,f)}function lh(t,r,n,o){return Us(t,r,n,zc,Ws(Jf()),Ur(t,2,-2),0,o)}function Ka(t,r,n,o,i){return Us(t,r,n,Fc,Ur(t,0,o),Ur(t,o+1,-1),o,i)}function Cs(t,r){for(var n="",o=0;o<t.length;o++)n+=r(t[o],o,t,r)||"";return n}function ch(t,r,n,o){switch(t.type){case Xf:if(t.children.length)break;case Kf:case Yf:case Fc:return t.return=t.return||t.value;case zc:return"";case qf:return t.return=t.value+"{"+Cs(t.children,o)+"}";case Lc:if(!Vt(t.value=t.props.join(",")))return""}return Vt(n=Cs(t.children,o))?t.return=t.value+"{"+n+"}":""}function Uc(t,r){var n=r.path,o=r.parentSelectors;nr(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(t).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var dh=function(r,n,o){if(r==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!i.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Uc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),o)}},uh=function(r,n,o){r==="animation"&&o.hashId&&n!=="none"&&Uc("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),o)},Ya="data-ant-cssinjs-cache-path",Gc="_FILE_STYLE__",Er,Kc=!0;function ph(){if(!Er&&(Er={},ft())){var t=document.createElement("div");t.className=Ya,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(function(i){var a=i.split(":"),l=le(a,2),c=l[0],d=l[1];Er[c]=d});var n=document.querySelector("style[".concat(Ya,"]"));if(n){var o;Kc=!1,(o=n.parentNode)===null||o===void 0||o.removeChild(n)}document.body.removeChild(t)}}function fh(t){return ph(),!!Er[t]}function hh(t){var r=Er[t],n=null;if(r&&ft())if(Kc)n=Gc;else{var o=document.querySelector("style[".concat(Wt,'="').concat(Er[t],'"]'));o?n=o.innerHTML:delete Er[t]}return[n,r]}var Yc="_skip_check_",qc="_multi_value_";function Ii(t){var r=Cs(ah(t),ch);return r.replace(/\{%%%\:[^;];}/g,";")}function gh(t){return Te(t)==="object"&&t&&(Yc in t||qc in t)}function qa(t,r,n){if(!r)return t;var o=".".concat(r),i=n==="low"?":where(".concat(o,")"):o,a=t.split(",").map(function(l){var c,d=l.trim().split(/\s+/),p=d[0]||"",h=((c=p.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return p="".concat(h).concat(i).concat(p.slice(h.length)),[p].concat(at(d.slice(1))).join(" ")});return a.join(",")}var mh=function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=o.root,a=o.injectHash,l=o.parentSelectors,c=n.hashId,d=n.layer,p=n.path,h=n.hashPriority,f=n.transformers,x=f===void 0?[]:f,E=n.linters,g=E===void 0?[]:E,j="",v={};function b(B){var C=B.getName(c);if(!v[C]){var m=t(B.style,n,{root:!1,parentSelectors:l}),R=le(m,1),T=R[0];v[C]="@keyframes ".concat(B.getName(c)).concat(T)}}function w(B){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return B.forEach(function(m){Array.isArray(m)?w(m,C):m&&C.push(m)}),C}var P=w(Array.isArray(r)?r:[r]);return P.forEach(function(B){var C=typeof B=="string"&&!i?{}:B;if(typeof C=="string")j+="".concat(C,`
81
+ `);else if(C._keyframe)b(C);else{var m=x.reduce(function(R,T){var N;return(T==null||(N=T.visit)===null||N===void 0?void 0:N.call(T,R))||R},C);Object.keys(m).forEach(function(R){var T=m[R];if(Te(T)==="object"&&T&&(R!=="animationName"||!T._keyframe)&&!gh(T)){var N=!1,$=R.trim(),M=!1;(i||a)&&c?$.startsWith("@")?N=!0:$==="&"?$=qa("",c,h):$=qa(R,c,h):i&&!c&&($==="&"||$==="")&&($="",M=!0);var D=t(T,n,{root:M,injectHash:N,parentSelectors:[].concat(at(l),[$])}),V=le(D,2),U=V[0],k=V[1];v=re(re({},v),k),j+="".concat($).concat(U)}else{let L=function(F,Q){process.env.NODE_ENV!=="production"&&(Te(T)!=="object"||!(T!=null&&T[Yc]))&&[dh,uh].concat(at(g)).forEach(function(Y){return Y(F,Q,{path:p,hashId:c,parentSelectors:l})});var z=F.replace(/[A-Z]/g,function(Y){return"-".concat(Y.toLowerCase())}),_=Q;!Gf[F]&&typeof _=="number"&&_!==0&&(_="".concat(_,"px")),F==="animationName"&&Q!==null&&Q!==void 0&&Q._keyframe&&(b(Q),_=Q.getName(c)),j+="".concat(z,":").concat(_,";")};var S,I=(S=T?.value)!==null&&S!==void 0?S:T;Te(T)==="object"&&T!==null&&T!==void 0&&T[qc]&&Array.isArray(I)?I.forEach(function(F){L(R,F)}):L(R,I)}})}}),i?d&&(j&&(j="@layer ".concat(d.name," {").concat(j,"}")),d.dependencies&&(v["@layer ".concat(d.name)]=d.dependencies.map(function(B){return"@layer ".concat(B,", ").concat(d.name,";")}).join(`
82
+ `))):j="{".concat(j,"}"),[j,v]};function Xc(t,r){return Dn("".concat(t.join("%")).concat(r))}function xh(){return null}var vh="style";function ws(t,r){var n=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,c=t.clientOnly,d=t.order,p=d===void 0?0:d,h=y.useContext(Kn),f=h.autoClear,x=h.mock,E=h.defaultCache,g=h.hashPriority,j=h.container,v=h.ssrInline,b=h.transformers,w=h.linters,P=h.cache,B=h.layer,C=n._tokenKey,m=[C];B&&m.push("layer"),m.push.apply(m,at(o));var R=vs;process.env.NODE_ENV!=="production"&&x!==void 0&&(R=x==="client");var T=Vs(vh,m,function(){var V=m.join("|");if(fh(V)){var U=hh(V),k=le(U,2),S=k[0],I=k[1];if(S)return[S,C,I,{},c,p]}var L=r(),F=mh(L,{hashId:i,hashPriority:g,layer:B?a:void 0,path:o.join("-"),transformers:b,linters:w}),Q=le(F,2),z=Q[0],_=Q[1],Y=Ii(z),ee=Xc(m,Y);return[Y,C,ee,_,c,p]},function(V,U){var k=le(V,3),S=k[2];(U||f)&&vs&&Bn(S,{mark:Wt,attachTo:j})},function(V){var U=le(V,4),k=U[0],S=U[2],I=U[3];if(R&&k!==Gc){var L={mark:Wt,prepend:B?!1:"queue",attachTo:j,priority:p},F=typeof l=="function"?l():l;F&&(L.csp={nonce:F});var Q=[],z=[];Object.keys(I).forEach(function(Y){Y.startsWith("@layer")?Q.push(Y):z.push(Y)}),Q.forEach(function(Y){tr(Ii(I[Y]),"_layer-".concat(Y),re(re({},L),{},{prepend:!0}))});var _=tr(k,S,L);_[mr]=P.instanceId,_.setAttribute(An,C),process.env.NODE_ENV!=="production"&&_.setAttribute(yf,m.join("|")),z.forEach(function(Y){tr(Ii(I[Y]),"_effect-".concat(Y),L)})}}),N=le(T,3),$=N[0],M=N[1],D=N[2];return function(V){var U;return!v||R||!E?U=y.createElement(xh,null):U=y.createElement("style",nt({},se(se({},An,M),Wt,D),{dangerouslySetInnerHTML:{__html:$}})),y.createElement(y.Fragment,null,U,V)}}var yh="cssVar",bh=function(r,n){var o=r.key,i=r.prefix,a=r.unitless,l=r.ignore,c=r.token,d=r.scope,p=d===void 0?"":d,h=u.useContext(Kn),f=h.cache.instanceId,x=h.container,E=c._tokenKey,g=[].concat(at(r.path),[o,p,E]),j=Vs(yh,g,function(){var v=n(),b=_c(v,o,{prefix:i,unitless:a,ignore:l,scope:p}),w=le(b,2),P=w[0],B=w[1],C=Xc(g,B);return[P,B,C,o]},function(v){var b=le(v,3),w=b[2];vs&&Bn(w,{mark:Wt,attachTo:x})},function(v){var b=le(v,3),w=b[1],P=b[2];if(w){var B=tr(w,P,{mark:Wt,prepend:"queue",attachTo:x,priority:-999});B[mr]=f,B.setAttribute(An,o)}});return j},Pt=(function(){function t(r,n){kt(this,t),se(this,"name",void 0),se(this,"style",void 0),se(this,"_keyframe",!0),this.name=r,this.style=n}return It(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t})();function Ch(t){return cc(t)||lc(t)||Os(t)||dc()}function js(t,r){for(var n=t,o=0;o<r.length;o+=1){if(n==null)return;n=n[r[o]]}return n}function Qc(t,r,n,o){if(!r.length)return n;var i=Ch(r),a=i[0],l=i.slice(1),c;return!t&&typeof a=="number"?c=[]:Array.isArray(t)?c=at(t):c=re({},t),o&&n===void 0&&l.length===1?delete c[a][l[0]]:c[a]=Qc(c[a],l,n,o),c}function Pi(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&o&&n===void 0&&!js(t,r.slice(0,-1))?t:Qc(t,r,n,o)}function wh(t){return Te(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function Xa(t){return Array.isArray(t)?[]:{}}var jh=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sh(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Xa(r[0]);return r.forEach(function(i){function a(l,c){var d=new Set(c),p=js(i,l),h=Array.isArray(p);if(h||wh(p)){if(!d.has(p)){d.add(p);var f=js(o,l);h?o=Pi(o,l,[]):(!f||Te(f)!=="object")&&(o=Pi(o,l,Xa(p))),jh(p).forEach(function(x){a([].concat(at(l),[x]),d)})}}else o=Pi(o,l,p)}a([])}),o}function Zc(){}let Zt=null;function Rh(){Zt=null,yc()}let Jc=Zc;process.env.NODE_ENV!=="production"&&(Jc=(t,r,n)=>{nr(t,`[antd: ${r}] ${n}`),process.env.NODE_ENV==="test"&&Rh()});const Yn=Jc,ed=y.createContext({}),Gt=process.env.NODE_ENV!=="production"?t=>{const{strict:r}=y.useContext(ed),n=(o,i,a)=>{if(!o)if(r===!1&&i==="deprecated"){const l=Zt;Zt||(Zt={}),Zt[t]=Zt[t]||[],Zt[t].includes(a||"")||Zt[t].push(a||""),l||console.warn("[antd] There exists deprecated usage in your code:",Zt)}else process.env.NODE_ENV!=="production"&&Yn(o,t,a)};return n.deprecated=(o,i,a,l)=>{n(o,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${l?` ${l}`:""}`)},n}:()=>{const t=()=>{};return t.deprecated=Zc,t},Th=u.createContext(void 0);var Eh={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},kh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Ih=re(re({},kh),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const td={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Qa={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Ih),timePickerLocale:Object.assign({},td)},vt="${label} is not a valid ${type}",Kr={locale:"en",Pagination:Eh,DatePicker:Qa,TimePicker:td,Calendar:Qa,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:vt,method:vt,array:vt,object:vt,number:vt,date:vt,boolean:vt,integer:vt,float:vt,regexp:vt,email:vt,url:vt,hex:vt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Kr.Modal);let Io=[];const Za=()=>Io.reduce((t,r)=>Object.assign(Object.assign({},t),r),Kr.Modal);function Ph(t){if(t){const r=Object.assign({},t);return Io.push(r),Za(),()=>{Io=Io.filter(n=>n!==r),Za()}}Object.assign({},Kr.Modal)}const Gs=u.createContext(void 0),Bh=(t,r)=>{const n=y.useContext(Gs),o=y.useMemo(()=>{var a;const l=Kr[t],c=(a=n?.[t])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),c||{})},[t,r,n]),i=y.useMemo(()=>{const a=n?.locale;return n?.exist&&!a?Kr.locale:a},[n]);return[o,i]},rd="internalMark",nd=t=>{const{locale:r={},children:n,_ANT_MARK__:o}=t;if(process.env.NODE_ENV!=="production"){const a=Gt("LocaleProvider");process.env.NODE_ENV!=="production"&&a(o===rd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}y.useEffect(()=>Ph(r?.Modal),[r]);const i=y.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return y.createElement(Gs.Provider,{value:i},n)};process.env.NODE_ENV!=="production"&&(nd.displayName="LocaleProvider");const od={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},_n=Object.assign(Object.assign({},od),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
83
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
84
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Mh(t,{generateColorPalettes:r,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:d,colorTextBase:p}=t,h=r(c),f=r(o),x=r(i),E=r(a),g=r(l),j=n(d,p),v=t.colorLink||t.colorInfo,b=r(v),w=new rt(E[1]).mix(new rt(E[3]),50).toHexString();return Object.assign(Object.assign({},j),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:E[1],colorErrorBgHover:E[2],colorErrorBgFilledHover:w,colorErrorBgActive:E[3],colorErrorBorder:E[3],colorErrorBorderHover:E[4],colorErrorHover:E[5],colorError:E[6],colorErrorActive:E[7],colorErrorTextHover:E[8],colorErrorText:E[9],colorErrorTextActive:E[10],colorWarningBg:x[1],colorWarningBgHover:x[2],colorWarningBorder:x[3],colorWarningBorderHover:x[4],colorWarningHover:x[4],colorWarning:x[6],colorWarningActive:x[7],colorWarningTextHover:x[8],colorWarningText:x[9],colorWarningTextActive:x[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new rt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Nh=t=>{let r=t,n=t,o=t,i=t;return t<6&&t>=5?r=t+1:t<16&&t>=6?r=t+2:t>=16&&(r=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?o=1:t>=6&&(o=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:r,borderRadiusOuter:i}};function Oh(t){const{motionUnit:r,motionBase:n,borderRadius:o,lineWidth:i}=t;return Object.assign({motionDurationFast:`${(n+r).toFixed(1)}s`,motionDurationMid:`${(n+r*2).toFixed(1)}s`,motionDurationSlow:`${(n+r*3).toFixed(1)}s`,lineWidthBold:i+1},Nh(o))}const Dh=t=>{const{controlHeight:r}=t;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function Ah(t){return(t+8)/t}function $h(t){const r=Array.from({length:10}).map((n,o)=>{const i=o-1,a=t*Math.pow(Math.E,i/5),l=o>1?Math.floor(a):Math.ceil(a);return Math.floor(l/2)*2});return r[1]=t,r.map(n=>({size:n,lineHeight:Ah(n)}))}const _h=t=>{const r=$h(t),n=r.map(h=>h.size),o=r.map(h=>h.lineHeight),i=n[1],a=n[0],l=n[2],c=o[1],d=o[0],p=o[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:p,lineHeightSM:d,fontHeight:Math.round(c*i),fontHeightLG:Math.round(p*l),fontHeightSM:Math.round(d*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function zh(t){const{sizeUnit:r,sizeStep:n}=t;return{sizeXXL:r*(n+8),sizeXL:r*(n+4),sizeLG:r*(n+2),sizeMD:r*(n+1),sizeMS:r*n,size:r*n,sizeSM:r*(n-1),sizeXS:r*(n-2),sizeXXS:r*(n-3)}}const Rt=(t,r)=>new rt(t).setA(r).toRgbString(),yn=(t,r)=>new rt(t).darken(r).toHexString(),Lh=t=>{const r=Pn(t);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},Fh=(t,r)=>{const n=t||"#fff",o=r||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Rt(o,.88),colorTextSecondary:Rt(o,.65),colorTextTertiary:Rt(o,.45),colorTextQuaternary:Rt(o,.25),colorFill:Rt(o,.15),colorFillSecondary:Rt(o,.06),colorFillTertiary:Rt(o,.04),colorFillQuaternary:Rt(o,.02),colorBgSolid:Rt(o,1),colorBgSolidHover:Rt(o,.75),colorBgSolidActive:Rt(o,.95),colorBgLayout:yn(n,4),colorBgContainer:yn(n,0),colorBgElevated:yn(n,0),colorBgSpotlight:Rt(o,.85),colorBgBlur:"transparent",colorBorder:yn(n,15),colorBorderSecondary:yn(n,6)}};function Hh(t){wi.pink=wi.magenta,ji.pink=ji.magenta;const r=Object.keys(od).map(n=>{const o=t[n]===wi[n]?ji[n]:Pn(t[n]);return Array.from({length:10},()=>1).reduce((i,a,l)=>(i[`${n}-${l+1}`]=o[l],i[`${n}${l+1}`]=o[l],i),{})}).reduce((n,o)=>(n=Object.assign(Object.assign({},n),o),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),r),Mh(t,{generateColorPalettes:Lh,generateNeutralColorPalettes:Fh})),_h(t.fontSize)),zh(t)),Dh(t)),Oh(t))}const id=xs(Hh),Ss={token:_n,override:{override:_n},hashed:!0},sd=u.createContext(Ss),Rs="ant",Ks="anticon",Vh=["outlined","borderless","filled","underlined"],Wh=(t,r)=>r||(t?`${Rs}-${t}`:Rs),rr=y.createContext({getPrefixCls:Wh,iconPrefixCls:Ks}),Ja={};function Yo(t){const r=y.useContext(rr),{getPrefixCls:n,direction:o,getPopupContainer:i}=r,a=r[t];return Object.assign(Object.assign({classNames:Ja,styles:Ja},a),{getPrefixCls:n,direction:o,getPopupContainer:i})}const Uh=`-ant-${Date.now()}-${Math.random()}`;function Gh(t,r){const n={},o=(l,c)=>{let d=l.clone();return d=c?.(d)||d,d.toRgbString()},i=(l,c)=>{const d=new rt(l),p=Pn(d.toRgbString());n[`${c}-color`]=o(d),n[`${c}-color-disabled`]=p[1],n[`${c}-color-hover`]=p[4],n[`${c}-color-active`]=p[6],n[`${c}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=p[0],n[`${c}-color-deprecated-border`]=p[2]};if(r.primaryColor){i(r.primaryColor,"primary");const l=new rt(r.primaryColor),c=Pn(l.toRgbString());c.forEach((p,h)=>{n[`primary-${h+1}`]=p}),n["primary-color-deprecated-l-35"]=o(l,p=>p.lighten(35)),n["primary-color-deprecated-l-20"]=o(l,p=>p.lighten(20)),n["primary-color-deprecated-t-20"]=o(l,p=>p.tint(20)),n["primary-color-deprecated-t-50"]=o(l,p=>p.tint(50)),n["primary-color-deprecated-f-12"]=o(l,p=>p.setA(p.a*.12));const d=new rt(c[0]);n["primary-color-active-deprecated-f-30"]=o(d,p=>p.setA(p.a*.3)),n["primary-color-active-deprecated-d-02"]=o(d,p=>p.darken(2))}return r.successColor&&i(r.successColor,"success"),r.warningColor&&i(r.warningColor,"warning"),r.errorColor&&i(r.errorColor,"error"),r.infoColor&&i(r.infoColor,"info"),`
85
+ :root {
86
+ ${Object.keys(n).map(l=>`--${t}-${l}: ${n[l]};`).join(`
87
+ `)}
88
+ }
89
+ `.trim()}function Kh(t,r){const n=Gh(t,r);ft()?tr(n,`${Uh}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Yn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const zn=y.createContext(!1),Yh=({children:t,disabled:r})=>{const n=y.useContext(zn);return y.createElement(zn.Provider,{value:r??n},t)},Yr=y.createContext(void 0),qh=({children:t,size:r})=>{const n=y.useContext(Yr);return y.createElement(Yr.Provider,{value:r||n},t)};function Xh(){const t=u.useContext(zn),r=u.useContext(Yr);return{componentDisabled:t,componentSize:r}}var ad=It(function t(){kt(this,t)}),ld="CALC_UNIT",Qh=new RegExp(ld,"g");function Bi(t){return typeof t=="number"?"".concat(t).concat(ld):t}var Zh=(function(t){Un(n,t);var r=Gn(n);function n(o,i){var a;kt(this,n),a=r.call(this),se(Tn(a),"result",""),se(Tn(a),"unitlessCssVar",void 0),se(Tn(a),"lowPriority",void 0);var l=Te(o);return a.unitlessCssVar=i,o instanceof n?a.result="(".concat(o.result,")"):l==="number"?a.result=Bi(o):l==="string"&&(a.result=o),a}return It(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Bi(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Bi(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,l=i||{},c=l.unit,d=!0;return typeof c=="boolean"?d=c:Array.from(this.unitlessCssVar).some(function(p){return a.result.includes(p)})&&(d=!1),this.result=this.result.replace(Qh,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(ad),Jh=(function(t){Un(n,t);var r=Gn(n);function n(o){var i;return kt(this,n),i=r.call(this),se(Tn(i),"result",0),o instanceof n?i.result=o.result:typeof o=="number"&&(i.result=o),i}return It(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n})(ad),eg=function(r,n){var o=r==="css"?Zh:Jh;return function(i){return new o(i,n)}},el=function(r,n){return"".concat([n,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function tl(t,r,n,o){var i=re({},r[t]);if(o!=null&&o.deprecatedTokens){var a=o.deprecatedTokens;a.forEach(function(c){var d=le(c,2),p=d[0],h=d[1];if(process.env.NODE_ENV!=="production"&&nr(!(i!=null&&i[p]),"Component Token `".concat(String(p),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(h),"` instead.")),i!=null&&i[p]||i!=null&&i[h]){var f;(f=i[h])!==null&&f!==void 0||(i[h]=i?.[p])}})}var l=re(re({},n),i);return Object.keys(l).forEach(function(c){l[c]===r[c]&&delete l[c]}),l}var cd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Ts=!0;function ir(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!cd)return Object.assign.apply(Object,[{}].concat(r));Ts=!1;var o={};return r.forEach(function(i){if(Te(i)==="object"){var a=Object.keys(i);a.forEach(function(l){Object.defineProperty(o,l,{configurable:!0,enumerable:!0,get:function(){return i[l]}})})}}),Ts=!0,o}var rl={};function tg(){}var rg=function(r){var n,o=r,i=tg;return cd&&typeof Proxy<"u"&&(n=new Set,o=new Proxy(r,{get:function(l,c){if(Ts){var d;(d=n)===null||d===void 0||d.add(c)}return l[c]}}),i=function(l,c){var d;rl[l]={global:Array.from(n),component:re(re({},(d=rl[l])===null||d===void 0?void 0:d.component),c)}}),{token:o,keys:n,flush:i}};function nl(t,r,n){if(typeof n=="function"){var o;return n(ir(r,(o=r[t])!==null&&o!==void 0?o:{}))}return n??{}}function ng(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return"max(".concat(o.map(function(a){return Oe(a)}).join(","),")")},min:function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return"min(".concat(o.map(function(a){return Oe(a)}).join(","),")")}}}var og=1e3*60*10,ig=(function(){function t(){kt(this,t),se(this,"map",new Map),se(this,"objectIDMap",new WeakMap),se(this,"nextID",0),se(this,"lastAccessBeat",new Map),se(this,"accessBeat",0)}return It(t,[{key:"set",value:function(n,o){this.clear();var i=this.getCompositeKey(n);this.map.set(i,o),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var o=this.getCompositeKey(n),i=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var o=this,i=n.map(function(a){return a&&Te(a)==="object"?"obj_".concat(o.getObjectID(a)):"".concat(Te(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var o=this.nextID;return this.objectIDMap.set(n,o),this.nextID+=1,o}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(i,a){o-i>og&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),t})(),ol=new ig;function sg(t,r){return u.useMemo(function(){var n=ol.get(r);if(n)return n;var o=t();return ol.set(r,o),o},r)}var ag=function(){return{}};function lg(t){var r=t.useCSP,n=r===void 0?ag:r,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,c=t.getCompUnitless;function d(x,E,g,j){var v=Array.isArray(x)?x[0]:x;function b(T){return"".concat(String(v)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var w=j?.unitless||{},P=typeof c=="function"?c(x):{},B=re(re({},P),{},se({},b("zIndexPopup"),!0));Object.keys(w).forEach(function(T){B[b(T)]=w[T]});var C=re(re({},j),{},{unitless:B,prefixToken:b}),m=h(x,E,g,C),R=p(v,g,C);return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,$=m(T,N),M=le($,2),D=M[1],V=R(N),U=le(V,2),k=U[0],S=U[1];return[k,D,S]}}function p(x,E,g){var j=g.unitless,v=g.injectStyle,b=v===void 0?!0:v,w=g.prefixToken,P=g.ignore,B=function(R){var T=R.rootCls,N=R.cssVar,$=N===void 0?{}:N,M=o(),D=M.realToken;return bh({path:[x],prefix:$.prefix,key:$.key,unitless:j,ignore:P,token:D,scope:T},function(){var V=nl(x,D,E),U=tl(x,D,V,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(V).forEach(function(k){U[w(k)]=U[k],delete U[k]}),U}),null},C=function(R){var T=o(),N=T.cssVar;return[function($){return b&&N?u.createElement(u.Fragment,null,u.createElement(B,{rootCls:R,cssVar:N,component:x}),$):$},N?.key]};return C}function h(x,E,g){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(x)?x:[x,x],b=le(v,1),w=b[0],P=v.join("-"),B=t.layer||{name:"antd"};return function(C){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,R=o(),T=R.theme,N=R.realToken,$=R.hashId,M=R.token,D=R.cssVar,V=i(),U=V.rootPrefixCls,k=V.iconPrefixCls,S=n(),I=D?"css":"js",L=sg(function(){var ee=new Set;return D&&Object.keys(j.unitless||{}).forEach(function(oe){ee.add(Ro(oe,D.prefix)),ee.add(Ro(oe,el(w,D.prefix)))}),eg(I,ee)},[I,w,D?.prefix]),F=ng(I),Q=F.max,z=F.min,_={theme:T,token:M,hashId:$,nonce:function(){return S.nonce},clientOnly:j.clientOnly,layer:B,order:j.order||-999};typeof a=="function"&&ws(re(re({},_),{},{clientOnly:!1,path:["Shared",U]}),function(){return a(M,{prefix:{rootPrefixCls:U,iconPrefixCls:k},csp:S})});var Y=ws(re(re({},_),{},{path:[P,C,k]}),function(){if(j.injectStyle===!1)return[];var ee=rg(M),oe=ee.token,ne=ee.flush,fe=nl(w,N,g),A=".".concat(C),K=tl(w,N,fe,{deprecatedTokens:j.deprecatedTokens});D&&fe&&Te(fe)==="object"&&Object.keys(fe).forEach(function(G){fe[G]="var(".concat(Ro(G,el(w,D.prefix)),")")});var Z=ir(oe,{componentCls:A,prefixCls:C,iconCls:".".concat(k),antCls:".".concat(U),calc:L,max:Q,min:z},D?fe:K),X=E(Z,{hashId:$,prefixCls:C,rootPrefixCls:U,iconPrefixCls:k});ne(w,K);var O=typeof l=="function"?l(Z,C,m,j.resetFont):null;return[j.resetStyle===!1?null:O,X]});return[Y,$]}}function f(x,E,g){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=h(x,E,g,re({resetStyle:!1,order:-998},j)),b=function(P){var B=P.prefixCls,C=P.rootCls,m=C===void 0?B:C;return v(B,m),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(x)?x.join("."):x))),b}return{genStyleHooks:d,genSubStyleComponent:f,genComponentStyleHook:h}}const zo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],cg="5.27.1";function Mi(t){return t>=0&&t<=255}function go(t,r){const{r:n,g:o,b:i,a}=new rt(t).toRgb();if(a<1)return t;const{r:l,g:c,b:d}=new rt(r).toRgb();for(let p=.01;p<=1;p+=.01){const h=Math.round((n-l*(1-p))/p),f=Math.round((o-c*(1-p))/p),x=Math.round((i-d*(1-p))/p);if(Mi(h)&&Mi(f)&&Mi(x))return new rt({r:h,g:f,b:x,a:Math.round(p*100)/100}).toRgbString()}return new rt({r:n,g:o,b:i,a:1}).toRgbString()}var dg=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function dd(t){const{override:r}=t,n=dg(t,["override"]),o=Object.assign({},r);Object.keys(_n).forEach(x=>{delete o[x]});const i=Object.assign(Object.assign({},n),o),a=480,l=576,c=768,d=992,p=1200,h=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:go(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:go(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:go(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:go(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
90
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
91
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
92
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
93
+ `,boxShadowSecondary:`
94
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
95
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
96
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
97
+ `,boxShadowTertiary:`
98
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
99
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
100
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
101
+ `,screenXS:a,screenXSMin:a,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:h-1,screenXXL:h,screenXXLMin:h,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
102
+ 0 1px 2px -2px ${new rt("rgba(0, 0, 0, 0.16)").toRgbString()},
103
+ 0 3px 6px 0 ${new rt("rgba(0, 0, 0, 0.12)").toRgbString()},
104
+ 0 5px 12px 4px ${new rt("rgba(0, 0, 0, 0.09)").toRgbString()}
105
+ `,boxShadowDrawerRight:`
106
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
107
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
108
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
109
+ `,boxShadowDrawerLeft:`
110
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
111
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
112
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
113
+ `,boxShadowDrawerUp:`
114
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
115
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
116
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
117
+ `,boxShadowDrawerDown:`
118
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
119
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
120
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
121
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}var il=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};const ud={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ug={motionBase:!0,motionUnit:!0},pg={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},pd=(t,r,n)=>{const o=n.getDerivativeToken(t),{override:i}=r,a=il(r,["override"]);let l=Object.assign(Object.assign({},o),{override:i});return l=dd(l),a&&Object.entries(a).forEach(([c,d])=>{const{theme:p}=d,h=il(d,["theme"]);let f=h;p&&(f=pd(Object.assign(Object.assign({},l),h),{override:h},p)),l[c]=f}),l};function tn(){const{token:t,hashed:r,theme:n,override:o,cssVar:i}=u.useContext(sd),a=`${cg}-${r||""}`,l=n||id,[c,d,p]=Uf(l,[_n,t],{salt:a,override:o,getComputedToken:pd,formatToken:dd,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ud,ignore:ug,preserve:pg}});return[l,p,r?d:"",c,i]}const Ys=(t,r=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:r?"inherit":t.fontFamily}),fg=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),hg=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gg=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),mg=(t,r,n,o)=>{const i=`[class^="${r}"], [class*=" ${r}"]`,a=n?`.${n}`:i,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return o!==!1&&(c={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},c),l),{[i]:l})}},xg=(t,r)=>({outline:`${Oe(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:r??1,transition:"outline-offset 0s, outline 0s"}),vg=(t,r)=>({"&:focus-visible":xg(t,r)}),fd=t=>({[`.${t}`]:Object.assign(Object.assign({},fg()),{[`.${t} .${t}-icon`]:{display:"block"}})}),hd=t=>Object.assign(Object.assign({color:t.colorLink,textDecoration:t.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},vg(t)),{"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}}),{genStyleHooks:qn}=lg({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:r}=u.useContext(rr);return{rootPrefixCls:t(),iconPrefixCls:r}},useToken:()=>{const[t,r,n,o,i]=tn();return{theme:t,realToken:r,hashId:n,token:o,cssVar:i}},useCSP:()=>{const{csp:t}=u.useContext(rr);return t??{}},getResetStyles:(t,r)=>{var n;const o=gg(t);return[o,{"&":o},fd((n=r?.prefix.iconPrefixCls)!==null&&n!==void 0?n:Ks)]},getCommonStyle:mg,getCompUnitless:()=>ud});function yg(t,r){return zo.reduce((n,o)=>{const i=t[`${o}1`],a=t[`${o}3`],l=t[`${o}6`],c=t[`${o}7`];return Object.assign(Object.assign({},n),r(o,{lightColor:i,lightBorderColor:a,darkColor:l,textColor:c}))},{})}const bg=(t,r)=>{const[n,o]=tn();return ws({token:o,hashId:"",path:["ant-design-icons",t],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>fd(t))},Cg=Object.assign({},y),{useId:sl}=Cg,wg=()=>"",jg=typeof sl>"u"?wg:sl;function Sg(t,r,n){var o,i;const a=Gt("ConfigProvider"),l=t||{},c=l.inherit===!1||!r?Object.assign(Object.assign({},Ss),{hashed:(o=r?.hashed)!==null&&o!==void 0?o:Ss.hashed,cssVar:r?.cssVar}):r,d=jg();if(process.env.NODE_ENV!=="production"){const p=l.cssVar||c.cssVar,h=!!(typeof l.cssVar=="object"&&(!((i=l.cssVar)===null||i===void 0)&&i.key)||d);process.env.NODE_ENV!=="production"&&a(!p||h,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return _s(()=>{var p,h;if(!t)return r;const f=Object.assign({},c.components);Object.keys(t.components||{}).forEach(g=>{f[g]=Object.assign(Object.assign({},f[g]),t.components[g])});const x=`css-var-${d.replace(/:/g,"")}`,E=((p=l.cssVar)!==null&&p!==void 0?p:c.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n?.prefixCls},typeof c.cssVar=="object"?c.cssVar:{}),typeof l.cssVar=="object"?l.cssVar:{}),{key:typeof l.cssVar=="object"&&((h=l.cssVar)===null||h===void 0?void 0:h.key)||x});return Object.assign(Object.assign(Object.assign({},c),l),{token:Object.assign(Object.assign({},c.token),l.token),components:f,cssVar:E})},[l,c],(p,h)=>p.some((f,x)=>{const E=h[x];return!mf(f,E,!0)}))}var Rg=["children"],gd=y.createContext({});function Tg(t){var r=t.children,n=_t(t,Rg);return y.createElement(gd.Provider,{value:n},r)}var Eg=(function(t){Un(n,t);var r=Gn(n);function n(){return kt(this,n),r.apply(this,arguments)}return It(n,[{key:"render",value:function(){return this.props.children}}]),n})(y.Component);function kg(t){var r=y.useReducer(function(c){return c+1},0),n=le(r,2),o=n[1],i=y.useRef(t),a=wt(function(){return i.current}),l=wt(function(c){i.current=typeof c=="function"?c(i.current):c,o()});return[a,l]}var gr="none",mo="appear",xo="enter",vo="leave",al="none",At="prepare",_r="start",zr="active",qs="end",md="prepared";function ll(t,r){var n={};return n[t.toLowerCase()]=r.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(r),n["Moz".concat(t)]="moz".concat(r),n["ms".concat(t)]="MS".concat(r),n["O".concat(t)]="o".concat(r.toLowerCase()),n}function Ig(t,r){var n={animationend:ll("Animation","AnimationEnd"),transitionend:ll("Transition","TransitionEnd")};return t&&("AnimationEvent"in r||delete n.animationend.animation,"TransitionEvent"in r||delete n.transitionend.transition),n}var Pg=Ig(ft(),typeof window<"u"?window:{}),xd={};if(ft()){var Bg=document.createElement("div");xd=Bg.style}var yo={};function vd(t){if(yo[t])return yo[t];var r=Pg[t];if(r)for(var n=Object.keys(r),o=n.length,i=0;i<o;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(r,a)&&a in xd)return yo[t]=r[a],yo[t]}return""}var yd=vd("animationend"),bd=vd("transitionend"),Mg=!!(yd&&bd),cl=yd||"animationend",dl=bd||"transitionend";function ul(t,r){if(!t)return null;if(Te(t)==="object"){var n=r.replace(/-\w/g,function(o){return o[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(r)}const Ng=(function(t){var r=u.useRef();function n(i){i&&(i.removeEventListener(dl,t),i.removeEventListener(cl,t))}function o(i){r.current&&r.current!==i&&n(r.current),i&&i!==r.current&&(i.addEventListener(dl,t),i.addEventListener(cl,t),r.current=i)}return y.useEffect(function(){return function(){n(r.current)}},[]),[o,n]});var Cd=ft()?u.useLayoutEffect:u.useEffect,wd=function(r){return+setTimeout(r,16)},jd=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(wd=function(r){return window.requestAnimationFrame(r)},jd=function(r){return window.cancelAnimationFrame(r)});var pl=0,qo=new Map;function Sd(t){qo.delete(t)}var qr=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pl+=1;var o=pl;function i(a){if(a===0)Sd(o),r();else{var l=wd(function(){i(a-1)});qo.set(o,l)}}return i(n),o};qr.cancel=function(t){var r=qo.get(t);return Sd(t),jd(r)};process.env.NODE_ENV!=="production"&&(qr.ids=function(){return qo});const Og=(function(){var t=y.useRef(null);function r(){qr.cancel(t.current)}function n(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var a=qr(function(){i<=1?o({isCanceled:function(){return a!==t.current}}):n(o,i-1)});t.current=a}return y.useEffect(function(){return function(){r()}},[]),[n,r]});var Dg=[At,_r,zr,qs],Ag=[At,md],Rd=!1,$g=!0;function Td(t){return t===zr||t===qs}const _g=(function(t,r,n){var o=On(al),i=le(o,2),a=i[0],l=i[1],c=Og(),d=le(c,2),p=d[0],h=d[1];function f(){l(At,!0)}var x=r?Ag:Dg;return Cd(function(){if(a!==al&&a!==qs){var E=x.indexOf(a),g=x[E+1],j=n(a);j===Rd?l(g,!0):g&&p(function(v){function b(){v.isCanceled()||l(g,!0)}j===!0?b():Promise.resolve(j).then(b)})}},[t,a]),y.useEffect(function(){return function(){h()}},[]),[f,a]});function zg(t,r,n,o){var i=o.motionEnter,a=i===void 0?!0:i,l=o.motionAppear,c=l===void 0?!0:l,d=o.motionLeave,p=d===void 0?!0:d,h=o.motionDeadline,f=o.motionLeaveImmediately,x=o.onAppearPrepare,E=o.onEnterPrepare,g=o.onLeavePrepare,j=o.onAppearStart,v=o.onEnterStart,b=o.onLeaveStart,w=o.onAppearActive,P=o.onEnterActive,B=o.onLeaveActive,C=o.onAppearEnd,m=o.onEnterEnd,R=o.onLeaveEnd,T=o.onVisibleChanged,N=On(),$=le(N,2),M=$[0],D=$[1],V=kg(gr),U=le(V,2),k=U[0],S=U[1],I=On(null),L=le(I,2),F=L[0],Q=L[1],z=k(),_=u.useRef(!1),Y=u.useRef(null);function ee(){return n()}var oe=u.useRef(!1);function ne(){S(gr),Q(null,!0)}var fe=wt(function(we){var Re=k();if(Re!==gr){var ge=ee();if(!(we&&!we.deadline&&we.target!==ge)){var de=oe.current,je;Re===mo&&de?je=C?.(ge,we):Re===xo&&de?je=m?.(ge,we):Re===vo&&de&&(je=R?.(ge,we)),de&&je!==!1&&ne()}}}),A=Ng(fe),K=le(A,1),Z=K[0],X=function(Re){switch(Re){case mo:return se(se(se({},At,x),_r,j),zr,w);case xo:return se(se(se({},At,E),_r,v),zr,P);case vo:return se(se(se({},At,g),_r,b),zr,B);default:return{}}},O=y.useMemo(function(){return X(z)},[z]),G=_g(z,!t,function(we){if(we===At){var Re=O[At];return Re?Re(ee()):Rd}if(te in O){var ge;Q(((ge=O[te])===null||ge===void 0?void 0:ge.call(O,ee(),null))||null)}return te===zr&&z!==gr&&(Z(ee()),h>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){fe({deadline:!0})},h))),te===md&&ne(),$g}),W=le(G,2),J=W[0],te=W[1],ie=Td(te);oe.current=ie;var ce=u.useRef(null);Cd(function(){if(!(_.current&&ce.current===r)){D(r);var we=_.current;_.current=!0;var Re;!we&&r&&c&&(Re=mo),we&&r&&a&&(Re=xo),(we&&!r&&p||!we&&f&&!r&&p)&&(Re=vo);var ge=X(Re);Re&&(t||ge[At])?(S(Re),J()):S(gr),ce.current=r}},[r]),u.useEffect(function(){(z===mo&&!c||z===xo&&!a||z===vo&&!p)&&S(gr)},[c,a,p]),u.useEffect(function(){return function(){_.current=!1,clearTimeout(Y.current)}},[]);var pe=y.useRef(!1);u.useEffect(function(){M&&(pe.current=!0),M!==void 0&&z===gr&&((pe.current||M)&&T?.(M),pe.current=!0)},[M,z]);var ye=F;return O[At]&&te===_r&&(ye=re({transition:"none"},ye)),[z,te,ye,M??r]}function Lg(t){var r=t;Te(t)==="object"&&(r=t.transitionSupport);function n(i,a){return!!(i.motionName&&r&&a!==!1)}var o=y.forwardRef(function(i,a){var l=i.visible,c=l===void 0?!0:l,d=i.removeOnLeave,p=d===void 0?!0:d,h=i.forceRender,f=i.children,x=i.motionName,E=i.leavedClassName,g=i.eventProps,j=y.useContext(gd),v=j.motion,b=n(i,v),w=u.useRef(),P=u.useRef();function B(){try{return w.current instanceof HTMLElement?w.current:So(P.current)}catch{return null}}var C=zg(b,c,B,i),m=le(C,4),R=m[0],T=m[1],N=m[2],$=m[3],M=y.useRef($);$&&(M.current=!0);var D=y.useCallback(function(L){w.current=L,zs(a,L)},[a]),V,U=re(re({},g),{},{visible:c});if(!f)V=null;else if(R===gr)$?V=f(re({},U),D):!p&&M.current&&E?V=f(re(re({},U),{},{className:E}),D):h||!p&&!E?V=f(re(re({},U),{},{style:{display:"none"}}),D):V=null;else{var k;T===At?k="prepare":Td(T)?k="active":T===_r&&(k="start");var S=ul(x,"".concat(R,"-").concat(k));V=f(re(re({},U),{},{className:ve(ul(x,R),se(se({},S,S&&k),x,typeof x=="string")),style:N}),D)}if(y.isValidElement(V)&&Wo(V)){var I=Fs(V);I||(V=y.cloneElement(V,{ref:D}))}return y.createElement(Eg,{ref:P},V)});return o.displayName="CSSMotion",o}const Ed=Lg(Mg),Es=y.createContext(!0);process.env.NODE_ENV!=="production"&&(Es.displayName="MotionCacheContext");function Fg(t){const r=y.useContext(Es),{children:n}=t,[,o]=tn(),{motion:i}=o,a=y.useRef(!1);return a.current||(a.current=r!==i),a.current?y.createElement(Es.Provider,{value:i},y.createElement(Tg,{motion:i},n)):n}const kd=y.memo(({dropdownMatchSelectWidth:t})=>(Gt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(kd.displayName="PropWarning");const Hg=process.env.NODE_ENV!=="production"?kd:()=>null;var Vg=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};let ks=!1;process.env.NODE_ENV;const Wg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Id;function Ug(){return Id||Rs}function Gg(t){return Object.keys(t).some(r=>r.endsWith("Color"))}const Kg=t=>{const{prefixCls:r,theme:n}=t;r!==void 0&&(Id=r),n&&Gg(n)&&(process.env.NODE_ENV!=="production"&&Yn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Kh(Ug(),n))},Yg=t=>{const{children:r,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:d,direction:p,space:h,splitter:f,virtual:x,dropdownMatchSelectWidth:E,popupMatchSelectWidth:g,popupOverflow:j,legacyLocale:v,parentContext:b,iconPrefixCls:w,theme:P,componentDisabled:B,segmented:C,statistic:m,spin:R,calendar:T,carousel:N,cascader:$,collapse:M,typography:D,checkbox:V,descriptions:U,divider:k,drawer:S,skeleton:I,steps:L,image:F,layout:Q,list:z,mentions:_,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:A,pagination:K,input:Z,textArea:X,empty:O,badge:G,radio:W,rate:J,switch:te,transfer:ie,avatar:ce,message:pe,tag:ye,table:we,card:Re,tabs:ge,timeline:de,timePicker:je,upload:Ee,notification:et,tree:ze,colorPicker:Le,datePicker:Se,rangePicker:Fe,flex:Ue,wave:De,dropdown:be,warning:He,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:kr,variant:nn,inputNumber:Ir,treeSelect:Bt}=t,lt=y.useCallback((Ae,Qe)=>{const{prefixCls:pt}=t;if(Qe)return Qe;const dt=pt||b.getPrefixCls("");return Ae?`${dt}-${Ae}`:dt},[b.getPrefixCls,t.prefixCls]),Xe=w||b.iconPrefixCls||Ks,Yt=n||b.csp;bg(Xe,Yt);const ct=Sg(P,b.theme,{prefixCls:lt("")});process.env.NODE_ENV!=="production"&&(ks=ks||!!ct);const Me={csp:Yt,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||v,direction:p,space:h,splitter:f,virtual:x,popupMatchSelectWidth:g??E,popupOverflow:j,getPrefixCls:lt,iconPrefixCls:Xe,theme:ct,segmented:C,statistic:m,spin:R,calendar:T,carousel:N,cascader:$,collapse:M,typography:D,checkbox:V,descriptions:U,divider:k,drawer:S,skeleton:I,steps:L,image:F,input:Z,textArea:X,layout:Q,list:z,mentions:_,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:A,pagination:K,empty:O,badge:G,radio:W,rate:J,switch:te,transfer:ie,avatar:ce,message:pe,tag:ye,table:we,card:Re,tabs:ge,timeline:de,timePicker:je,upload:Ee,notification:et,tree:ze,colorPicker:Le,datePicker:Se,rangePicker:Fe,flex:Ue,wave:De,dropdown:be,warning:He,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:kr,variant:nn,inputNumber:Ir,treeSelect:Bt};process.env.NODE_ENV!=="production"&&Gt("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ie=Object.assign({},b);Object.keys(Me).forEach(Ae=>{Me[Ae]!==void 0&&(Ie[Ae]=Me[Ae])}),Wg.forEach(Ae=>{const Qe=t[Ae];Qe&&(Ie[Ae]=Qe)}),typeof o<"u"&&(Ie.button=Object.assign({autoInsertSpace:o},Ie.button));const ot=_s(()=>Ie,Ie,(Ae,Qe)=>{const pt=Object.keys(Ae),dt=Object.keys(Qe);return pt.length!==dt.length||pt.some(Lt=>Ae[Lt]!==Qe[Lt])}),{layer:zt}=y.useContext(Kn),gt=y.useMemo(()=>({prefixCls:Xe,csp:Yt,layer:zt?"antd":void 0}),[Xe,Yt,zt]);let Ke=y.createElement(y.Fragment,null,y.createElement(Hg,{dropdownMatchSelectWidth:E}),r);const sr=y.useMemo(()=>{var Ae,Qe,pt,dt;return Sh(((Ae=Kr.Form)===null||Ae===void 0?void 0:Ae.defaultValidateMessages)||{},((pt=(Qe=ot.locale)===null||Qe===void 0?void 0:Qe.Form)===null||pt===void 0?void 0:pt.defaultValidateMessages)||{},((dt=ot.form)===null||dt===void 0?void 0:dt.validateMessages)||{},l?.validateMessages||{})},[ot,l?.validateMessages]);Object.keys(sr).length>0&&(Ke=y.createElement(Th.Provider,{value:sr},Ke)),c&&(Ke=y.createElement(nd,{locale:c,_ANT_MARK__:rd},Ke)),Ke=y.createElement(Ds.Provider,{value:gt},Ke),d&&(Ke=y.createElement(qh,{size:d},Ke)),Ke=y.createElement(Fg,null,Ke);const qt=y.useMemo(()=>{const Ae=ct||{},{algorithm:Qe,token:pt,components:dt,cssVar:Lt}=Ae,Pr=Vg(Ae,["algorithm","token","components","cssVar"]),Mt=Qe&&(!Array.isArray(Qe)||Qe.length>0)?xs(Qe):id,jt={};Object.entries(dt||{}).forEach(([Nt,Br])=>{const Ve=Object.assign({},Br);"algorithm"in Ve&&(Ve.algorithm===!0?Ve.theme=Mt:(Array.isArray(Ve.algorithm)||typeof Ve.algorithm=="function")&&(Ve.theme=xs(Ve.algorithm)),delete Ve.algorithm),jt[Nt]=Ve});const Ft=Object.assign(Object.assign({},_n),pt);return Object.assign(Object.assign({},Pr),{theme:Mt,token:Ft,components:jt,override:Object.assign({override:Ft},jt),cssVar:Lt})},[ct]);return P&&(Ke=y.createElement(sd.Provider,{value:qt},Ke)),ot.warning&&(Ke=y.createElement(ed.Provider,{value:ot.warning},Ke)),B!==void 0&&(Ke=y.createElement(Yh,{disabled:B},Ke)),y.createElement(rr.Provider,{value:ot},Ke)},rn=t=>{const r=y.useContext(rr),n=y.useContext(Gs);return y.createElement(Yg,Object.assign({parentContext:r,legacyLocale:n},t))};rn.ConfigContext=rr;rn.SizeContext=Yr;rn.config=Kg;rn.useConfig=Xh;Object.defineProperty(rn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Yn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Yr)});process.env.NODE_ENV!=="production"&&(rn.displayName="ConfigProvider");function Pd(t){var r=t.children,n=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,l=t.className,c=t.style;return y.createElement("div",{className:ve("".concat(n,"-content"),l),style:c},y.createElement("div",{className:ve("".concat(n,"-inner"),a),id:o,role:"tooltip",style:i},typeof r=="function"?r():r))}var Bd=y.createContext(null),fl=[];function qg(t,r){var n=y.useState(function(){if(!ft())return null;var g=document.createElement("div");return process.env.NODE_ENV!=="production"&&r&&g.setAttribute("data-debug",r),g}),o=le(n,1),i=o[0],a=y.useRef(!1),l=y.useContext(Bd),c=y.useState(fl),d=le(c,2),p=d[0],h=d[1],f=l||(a.current?void 0:function(g){h(function(j){var v=[g].concat(at(j));return v})});function x(){i.parentElement||document.body.appendChild(i),a.current=!0}function E(){var g;(g=i.parentElement)===null||g===void 0||g.removeChild(i),a.current=!1}return Ge(function(){return t?l?l(x):x():E(),E},[t]),Ge(function(){p.length&&(p.forEach(function(g){return g()}),h(fl))},[p]),[i,f]}function Xg(t){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=r;var o=n.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";var i,a;if(t){var l=getComputedStyle(t);o.scrollbarColor=l.scrollbarColor,o.scrollbarWidth=l.scrollbarWidth;var c=getComputedStyle(t,"::-webkit-scrollbar"),d=parseInt(c.width,10),p=parseInt(c.height,10);try{var h=d?"width: ".concat(c.width,";"):"",f=p?"height: ".concat(c.height,";"):"";tr(`
122
+ #`.concat(r,`::-webkit-scrollbar {
123
+ `).concat(h,`
124
+ `).concat(f,`
125
+ }`),r)}catch(g){console.error(g),i=d,a=p}}document.body.appendChild(n);var x=t&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,E=t&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Bn(r),{width:x,height:E}}function Qg(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:Xg(t)}function Zg(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Jg="rc-util-locker-".concat(Date.now()),hl=0;function em(t){var r=!!t,n=y.useState(function(){return hl+=1,"".concat(Jg,"_").concat(hl)}),o=le(n,1),i=o[0];Ge(function(){if(r){var a=Qg(document.body).width,l=Zg();tr(`
126
+ html body {
127
+ overflow-y: hidden;
128
+ `.concat(l?"width: calc(100% - ".concat(a,"px);"):"",`
129
+ }`),i)}else Bn(i);return function(){Bn(i)}},[r,i])}var tm=!1;function rm(t){return tm}var gl=function(r){return r===!1?!1:!ft()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},Xs=y.forwardRef(function(t,r){var n=t.open,o=t.autoLock,i=t.getContainer,a=t.debug,l=t.autoDestroy,c=l===void 0?!0:l,d=t.children,p=y.useState(n),h=le(p,2),f=h[0],x=h[1],E=f||n;process.env.NODE_ENV!=="production"&&nr(ft()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),y.useEffect(function(){(c||n)&&x(n)},[n,c]);var g=y.useState(function(){return gl(i)}),j=le(g,2),v=j[0],b=j[1];y.useEffect(function(){var D=gl(i);b(D??null)});var w=qg(E&&!v,a),P=le(w,2),B=P[0],C=P[1],m=v??B;em(o&&n&&ft()&&(m===B||m===document.body));var R=null;if(d&&Wo(d)&&r){var T=d;R=T.ref}var N=Ls(R,r);if(!E||!ft()||v===void 0)return null;var $=m===!1||rm(),M=d;return r&&(M=y.cloneElement(d,{ref:N})),y.createElement(Bd.Provider,{value:C},$?M:Po.createPortal(M,m))});process.env.NODE_ENV!=="production"&&(Xs.displayName="Portal");function nm(){var t=re({},y);return t.useId}var ml=0,xl=nm();const Md=xl?function(r){var n=xl();return r||(process.env.NODE_ENV==="test"?"test-id":n)}:function(r){var n=y.useState("ssr-id"),o=le(n,2),i=o[0],a=o[1];return y.useEffect(function(){var l=ml;ml+=1,a("rc_unique_".concat(l))},[]),r||(process.env.NODE_ENV==="test"?"test-id":i)},om=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t?.substr(0,4))});function im(t){var r=t.prefixCls,n=t.align,o=t.arrow,i=t.arrowPos,a=o||{},l=a.className,c=a.content,d=i.x,p=d===void 0?0:d,h=i.y,f=h===void 0?0:h,x=y.useRef();if(!n||!n.points)return null;var E={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],j=n.points[1],v=g[0],b=g[1],w=j[0],P=j[1];v===w||!["t","b"].includes(v)?E.top=f:v==="t"?E.top=0:E.bottom=0,b===P||!["l","r"].includes(b)?E.left=p:b==="l"?E.left=0:E.right=0}return y.createElement("div",{ref:x,className:ve("".concat(r,"-arrow"),l),style:E},c)}function sm(t){var r=t.prefixCls,n=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?y.createElement(Ed,nt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var c=l.className;return y.createElement("div",{style:{zIndex:o},className:ve("".concat(r,"-mask"),c)})}):null}var Nd=y.memo(function(t){var r=t.children;return r},function(t,r){return r.cache});process.env.NODE_ENV!=="production"&&(Nd.displayName="PopupContent");var Od=y.forwardRef(function(t,r){var n=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,c=t.onVisibleChanged,d=t.open,p=t.keepDom,h=t.fresh,f=t.onClick,x=t.mask,E=t.arrow,g=t.arrowPos,j=t.align,v=t.motion,b=t.maskMotion,w=t.forceRender,P=t.getPopupContainer,B=t.autoDestroy,C=t.portal,m=t.zIndex,R=t.onMouseEnter,T=t.onMouseLeave,N=t.onPointerEnter,$=t.onPointerDownCapture,M=t.ready,D=t.offsetX,V=t.offsetY,U=t.offsetR,k=t.offsetB,S=t.onAlign,I=t.onPrepare,L=t.stretch,F=t.targetWidth,Q=t.targetHeight,z=typeof n=="function"?n():n,_=d||p,Y=P?.length>0,ee=y.useState(!P||!Y),oe=le(ee,2),ne=oe[0],fe=oe[1];if(Ge(function(){!ne&&Y&&l&&fe(!0)},[ne,Y,l]),!ne)return null;var A="auto",K={left:"-1000vw",top:"-1000vh",right:A,bottom:A};if(M||!d){var Z,X=j.points,O=j.dynamicInset||((Z=j._experimental)===null||Z===void 0?void 0:Z.dynamicInset),G=O&&X[0][1]==="r",W=O&&X[0][0]==="b";G?(K.right=U,K.left=A):(K.left=D,K.right=A),W?(K.bottom=k,K.top=A):(K.top=V,K.bottom=A)}var J={};return L&&(L.includes("height")&&Q?J.height=Q:L.includes("minHeight")&&Q&&(J.minHeight=Q),L.includes("width")&&F?J.width=F:L.includes("minWidth")&&F&&(J.minWidth=F)),d||(J.pointerEvents="none"),y.createElement(C,{open:w||_,getContainer:P&&function(){return P(l)},autoDestroy:B},y.createElement(sm,{prefixCls:i,open:d,zIndex:m,mask:x,motion:b}),y.createElement(Jr,{onResize:S,disabled:!d},function(te){return y.createElement(Ed,nt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:I,onEnterPrepare:I,visible:d,onVisibleChanged:function(ce){var pe;v==null||(pe=v.onVisibleChanged)===null||pe===void 0||pe.call(v,ce),c(ce)}}),function(ie,ce){var pe=ie.className,ye=ie.style,we=ve(i,pe,o);return y.createElement("div",{ref:Wn(te,r,ce),className:we,style:re(re(re(re({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},K),J),ye),{},{boxSizing:"border-box",zIndex:m},a),onMouseEnter:R,onMouseLeave:T,onPointerEnter:N,onClick:f,onPointerDownCapture:$},E&&y.createElement(im,{prefixCls:i,arrow:E,arrowPos:g,align:j}),y.createElement(Nd,{cache:!d&&!h},z))})}))});process.env.NODE_ENV!=="production"&&(Od.displayName="Popup");var Dd=y.forwardRef(function(t,r){var n=t.children,o=t.getTriggerDOMNode,i=Wo(n),a=y.useCallback(function(c){zs(r,o?o(c):c)},[o]),l=Ls(a,Fs(n));return i?y.cloneElement(n,{ref:l}):n});process.env.NODE_ENV!=="production"&&(Dd.displayName="TriggerWrapper");var vl=y.createContext(null);function yl(t){return t?Array.isArray(t)?t:[t]:[]}function am(t,r,n,o){return y.useMemo(function(){var i=yl(n??r),a=yl(o??r),l=new Set(i),c=new Set(a);return t&&(l.has("hover")&&(l.delete("hover"),l.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[l,c]},[t,r,n,o])}const lm=(function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var r=t.getBBox(),n=r.width,o=r.height;if(n||o)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),a=i.width,l=i.height;if(a||l)return!0}}return!1});function cm(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===r[0]:t[0]===r[0]&&t[1]===r[1]}function dm(t,r,n,o){for(var i=n.points,a=Object.keys(t),l=0;l<a.length;l+=1){var c,d=a[l];if(cm((c=t[d])===null||c===void 0?void 0:c.points,i,o))return"".concat(r,"-placement-").concat(d)}return""}function bl(t,r,n,o){return r||(n?{motionName:"".concat(t,"-").concat(n)}:o?{motionName:o}:null)}function Xn(t){return t.ownerDocument.defaultView}function Is(t){for(var r=[],n=t?.parentElement,o=["hidden","scroll","clip","auto"];n;){var i=Xn(n).getComputedStyle(n),a=i.overflowX,l=i.overflowY,c=i.overflow;[a,l,c].some(function(d){return o.includes(d)})&&r.push(n),n=n.parentElement}return r}function Ln(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?r:t}function bn(t){return Ln(parseFloat(t),0)}function Cl(t,r){var n=re({},t);return(r||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var i=Xn(o).getComputedStyle(o),a=i.overflow,l=i.overflowClipMargin,c=i.borderTopWidth,d=i.borderBottomWidth,p=i.borderLeftWidth,h=i.borderRightWidth,f=o.getBoundingClientRect(),x=o.offsetHeight,E=o.clientHeight,g=o.offsetWidth,j=o.clientWidth,v=bn(c),b=bn(d),w=bn(p),P=bn(h),B=Ln(Math.round(f.width/g*1e3)/1e3),C=Ln(Math.round(f.height/x*1e3)/1e3),m=(g-j-w-P)*B,R=(x-E-v-b)*C,T=v*C,N=b*C,$=w*B,M=P*B,D=0,V=0;if(a==="clip"){var U=bn(l);D=U*B,V=U*C}var k=f.x+$-D,S=f.y+T-V,I=k+f.width+2*D-$-M-m,L=S+f.height+2*V-T-N-R;n.left=Math.max(n.left,k),n.top=Math.max(n.top,S),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,L)}}),n}function wl(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(r),o=n.match(/^(.*)\%$/);return o?t*(parseFloat(o[1])/100):parseFloat(n)}function jl(t,r){var n=r||[],o=le(n,2),i=o[0],a=o[1];return[wl(t.width,i),wl(t.height,a)]}function Sl(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function Dr(t,r){var n=r[0],o=r[1],i,a;return n==="t"?a=t.y:n==="b"?a=t.y+t.height:a=t.y+t.height/2,o==="l"?i=t.x:o==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:a}}function ur(t,r){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(o,i){return i===r?n[o]||"c":o}).join("")}function um(t,r,n,o,i,a,l){var c=y.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),d=le(c,2),p=d[0],h=d[1],f=y.useRef(0),x=y.useMemo(function(){return r?Is(r):[]},[r]),E=y.useRef({}),g=function(){E.current={}};t||g();var j=wt(function(){if(r&&n&&t){let St=function(cn,Xt){var dr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:je,dn=_.x+cn,ao=_.y+Xt,li=dn+W,ci=ao+G,di=Math.max(dn,dr.left),ue=Math.max(ao,dr.top),xe=Math.min(li,dr.right),We=Math.min(ci,dr.bottom);return Math.max(0,(xe-di)*(We-ue))},Nr=function(){Mt=_.y+Ie,jt=Mt+G,Ft=_.x+Me,Nt=Ft+W};var w,P,B,C,m=r,R=m.ownerDocument,T=Xn(m),N=T.getComputedStyle(m),$=N.position,M=m.style.left,D=m.style.top,V=m.style.right,U=m.style.bottom,k=m.style.overflow,S=re(re({},i[o]),a),I=R.createElement("div");(w=m.parentElement)===null||w===void 0||w.appendChild(I),I.style.left="".concat(m.offsetLeft,"px"),I.style.top="".concat(m.offsetTop,"px"),I.style.position=$,I.style.height="".concat(m.offsetHeight,"px"),I.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden";var L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{var F,Q,z=n.getBoundingClientRect();z.x=(F=z.x)!==null&&F!==void 0?F:z.left,z.y=(Q=z.y)!==null&&Q!==void 0?Q:z.top,L={x:z.x,y:z.y,width:z.width,height:z.height}}var _=m.getBoundingClientRect(),Y=T.getComputedStyle(m),ee=Y.height,oe=Y.width;_.x=(P=_.x)!==null&&P!==void 0?P:_.left,_.y=(B=_.y)!==null&&B!==void 0?B:_.top;var ne=R.documentElement,fe=ne.clientWidth,A=ne.clientHeight,K=ne.scrollWidth,Z=ne.scrollHeight,X=ne.scrollTop,O=ne.scrollLeft,G=_.height,W=_.width,J=L.height,te=L.width,ie={left:0,top:0,right:fe,bottom:A},ce={left:-O,top:-X,right:K-O,bottom:Z-X},pe=S.htmlRegion,ye="visible",we="visibleFirst";pe!=="scroll"&&pe!==we&&(pe=ye);var Re=pe===we,ge=Cl(ce,x),de=Cl(ie,x),je=pe===ye?de:ge,Ee=Re?de:je;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var et=m.getBoundingClientRect();m.style.left=M,m.style.top=D,m.style.right=V,m.style.bottom=U,m.style.overflow=k,(C=m.parentElement)===null||C===void 0||C.removeChild(I);var ze=Ln(Math.round(W/parseFloat(oe)*1e3)/1e3),Le=Ln(Math.round(G/parseFloat(ee)*1e3)/1e3);if(ze===0||Le===0||Nn(n)&&!lm(n))return;var Se=S.offset,Fe=S.targetOffset,Ue=jl(_,Se),De=le(Ue,2),be=De[0],He=De[1],he=jl(L,Fe),me=le(he,2),qe=me[0],Kt=me[1];L.x-=qe,L.y-=Kt;var vr=S.points||[],kr=le(vr,2),nn=kr[0],Ir=kr[1],Bt=Sl(Ir),lt=Sl(nn),Xe=Dr(L,Bt),Yt=Dr(_,lt),ct=re({},S),Me=Xe.x-Yt.x+be,Ie=Xe.y-Yt.y+He,ot=St(Me,Ie),zt=St(Me,Ie,de),gt=Dr(L,["t","l"]),Ke=Dr(_,["t","l"]),sr=Dr(L,["b","r"]),qt=Dr(_,["b","r"]),Ae=S.overflow||{},Qe=Ae.adjustX,pt=Ae.adjustY,dt=Ae.shiftX,Lt=Ae.shiftY,Pr=function(Xt){return typeof Xt=="boolean"?Xt:Xt>=0},Mt,jt,Ft,Nt;Nr();var Br=Pr(pt),Ve=lt[0]===Bt[0];if(Br&&lt[0]==="t"&&(jt>Ee.bottom||E.current.bt)){var yr=Ie;Ve?yr-=G-J:yr=gt.y-qt.y-He;var Zn=St(Me,yr),Qo=St(Me,yr,de);Zn>ot||Zn===ot&&(!Re||Qo>=zt)?(E.current.bt=!0,Ie=yr,He=-He,ct.points=[ur(lt,0),ur(Bt,0)]):E.current.bt=!1}if(Br&&lt[0]==="b"&&(Mt<Ee.top||E.current.tb)){var br=Ie;Ve?br+=G-J:br=sr.y-Ke.y-He;var Jn=St(Me,br),Zo=St(Me,br,de);Jn>ot||Jn===ot&&(!Re||Zo>=zt)?(E.current.tb=!0,Ie=br,He=-He,ct.points=[ur(lt,0),ur(Bt,0)]):E.current.tb=!1}var eo=Pr(Qe),to=lt[1]===Bt[1];if(eo&&lt[1]==="l"&&(Nt>Ee.right||E.current.rl)){var Cr=Me;to?Cr-=W-te:Cr=gt.x-qt.x-be;var wr=St(Cr,Ie),on=St(Cr,Ie,de);wr>ot||wr===ot&&(!Re||on>=zt)?(E.current.rl=!0,Me=Cr,be=-be,ct.points=[ur(lt,1),ur(Bt,1)]):E.current.rl=!1}if(eo&&lt[1]==="r"&&(Ft<Ee.left||E.current.lr)){var jr=Me;to?jr+=W-te:jr=sr.x-Ke.x-be;var sn=St(jr,Ie),Mr=St(jr,Ie,de);sn>ot||sn===ot&&(!Re||Mr>=zt)?(E.current.lr=!0,Me=jr,be=-be,ct.points=[ur(lt,1),ur(Bt,1)]):E.current.lr=!1}Nr();var Ot=dt===!0?0:dt;typeof Ot=="number"&&(Ft<de.left&&(Me-=Ft-de.left-be,L.x+te<de.left+Ot&&(Me+=L.x-de.left+te-Ot)),Nt>de.right&&(Me-=Nt-de.right-be,L.x>de.right-Ot&&(Me+=L.x-de.right+Ot)));var ar=Lt===!0?0:Lt;typeof ar=="number"&&(Mt<de.top&&(Ie-=Mt-de.top-He,L.y+J<de.top+ar&&(Ie+=L.y-de.top+J-ar)),jt>de.bottom&&(Ie-=jt-de.bottom-He,L.y>de.bottom-ar&&(Ie+=L.y-de.bottom+ar)));var lr=_.x+Me,cr=lr+W,an=_.y+Ie,Jo=an+G,ro=L.x,no=ro+te,oo=L.y,ei=oo+J,ti=Math.max(lr,ro),io=Math.min(cr,no),ri=(ti+io)/2,ni=ri-lr,so=Math.max(an,oo),oi=Math.min(Jo,ei),ii=(so+oi)/2,si=ii-an;l?.(r,ct);var Ht=et.right-_.x-(Me+_.width),ln=et.bottom-_.y-(Ie+_.height);ze===1&&(Me=Math.round(Me),Ht=Math.round(Ht)),Le===1&&(Ie=Math.round(Ie),ln=Math.round(ln));var ai={ready:!0,offsetX:Me/ze,offsetY:Ie/Le,offsetR:Ht/ze,offsetB:ln/Le,arrowX:ni/ze,arrowY:si/Le,scaleX:ze,scaleY:Le,align:ct};h(ai)}}),v=function(){f.current+=1;var P=f.current;Promise.resolve().then(function(){f.current===P&&j()})},b=function(){h(function(P){return re(re({},P),{},{ready:!1})})};return Ge(b,[o]),Ge(function(){t||b()},[t]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,v]}function pm(t,r,n,o,i){Ge(function(){if(t&&r&&n){let f=function(){o(),i()};var a=r,l=n,c=Is(a),d=Is(l),p=Xn(l),h=new Set([p].concat(at(c),at(d)));return h.forEach(function(x){x.addEventListener("scroll",f,{passive:!0})}),p.addEventListener("resize",f,{passive:!0}),o(),function(){h.forEach(function(x){x.removeEventListener("scroll",f),p.removeEventListener("resize",f)})}}},[t,r,n])}function fm(t,r,n,o,i,a,l,c){var d=y.useRef(t);d.current=t;var p=y.useRef(!1);y.useEffect(function(){if(r&&o&&(!i||a)){var f=function(){p.current=!1},x=function(B){var C;d.current&&!l(((C=B.composedPath)===null||C===void 0||(C=C.call(B))===null||C===void 0?void 0:C[0])||B.target)&&!p.current&&c(!1)},E=Xn(o);E.addEventListener("pointerdown",f,!0),E.addEventListener("mousedown",x,!0),E.addEventListener("contextmenu",x,!0);var g=Do(n);if(g&&(g.addEventListener("mousedown",x,!0),g.addEventListener("contextmenu",x,!0)),process.env.NODE_ENV!=="production"){var j,v,b=n==null||(j=n.getRootNode)===null||j===void 0?void 0:j.call(n),w=(v=o.getRootNode)===null||v===void 0?void 0:v.call(o);Hr(b===w,"trigger element and popup element should in same shadow root.")}return function(){E.removeEventListener("pointerdown",f,!0),E.removeEventListener("mousedown",x,!0),E.removeEventListener("contextmenu",x,!0),g&&(g.removeEventListener("mousedown",x,!0),g.removeEventListener("contextmenu",x,!0))}}},[r,n,o,i,a]);function h(){p.current=!0}return h}var hm=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function gm(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xs,r=y.forwardRef(function(n,o){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,l=n.children,c=n.action,d=c===void 0?"hover":c,p=n.showAction,h=n.hideAction,f=n.popupVisible,x=n.defaultPopupVisible,E=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,j=n.mouseEnterDelay,v=n.mouseLeaveDelay,b=v===void 0?.1:v,w=n.focusDelay,P=n.blurDelay,B=n.mask,C=n.maskClosable,m=C===void 0?!0:C,R=n.getPopupContainer,T=n.forceRender,N=n.autoDestroy,$=n.destroyPopupOnHide,M=n.popup,D=n.popupClassName,V=n.popupStyle,U=n.popupPlacement,k=n.builtinPlacements,S=k===void 0?{}:k,I=n.popupAlign,L=n.zIndex,F=n.stretch,Q=n.getPopupClassNameFromAlign,z=n.fresh,_=n.alignPoint,Y=n.onPopupClick,ee=n.onPopupAlign,oe=n.arrow,ne=n.popupMotion,fe=n.maskMotion,A=n.popupTransitionName,K=n.popupAnimation,Z=n.maskTransitionName,X=n.maskAnimation,O=n.className,G=n.getTriggerDOMNode,W=_t(n,hm),J=N||$||!1,te=y.useState(!1),ie=le(te,2),ce=ie[0],pe=ie[1];Ge(function(){pe(om())},[]);var ye=y.useRef({}),we=y.useContext(vl),Re=y.useMemo(function(){return{registerSubPopup:function(xe,We){ye.current[xe]=We,we?.registerSubPopup(xe,We)}}},[we]),ge=Md(),de=y.useState(null),je=le(de,2),Ee=je[0],et=je[1],ze=y.useRef(null),Le=wt(function(ue){ze.current=ue,Nn(ue)&&Ee!==ue&&et(ue),we?.registerSubPopup(ge,ue)}),Se=y.useState(null),Fe=le(Se,2),Ue=Fe[0],De=Fe[1],be=y.useRef(null),He=wt(function(ue){Nn(ue)&&Ue!==ue&&(De(ue),be.current=ue)}),he=y.Children.only(l),me=he?.props||{},qe={},Kt=wt(function(ue){var xe,We,tt=Ue;return tt?.contains(ue)||((xe=Do(tt))===null||xe===void 0?void 0:xe.host)===ue||ue===tt||Ee?.contains(ue)||((We=Do(Ee))===null||We===void 0?void 0:We.host)===ue||ue===Ee||Object.values(ye.current).some(function(Ye){return Ye?.contains(ue)||ue===Ye})}),vr=bl(a,ne,K,A),kr=bl(a,fe,X,Z),nn=y.useState(x||!1),Ir=le(nn,2),Bt=Ir[0],lt=Ir[1],Xe=f??Bt,Yt=wt(function(ue){f===void 0&&lt(ue)});Ge(function(){lt(f||!1)},[f]);var ct=y.useRef(Xe);ct.current=Xe;var Me=y.useRef([]);Me.current=[];var Ie=wt(function(ue){var xe;Yt(ue),((xe=Me.current[Me.current.length-1])!==null&&xe!==void 0?xe:Xe)!==ue&&(Me.current.push(ue),E?.(ue))}),ot=y.useRef(),zt=function(){clearTimeout(ot.current)},gt=function(xe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;zt(),We===0?Ie(xe):ot.current=setTimeout(function(){Ie(xe)},We*1e3)};y.useEffect(function(){return zt},[]);var Ke=y.useState(!1),sr=le(Ke,2),qt=sr[0],Ae=sr[1];Ge(function(ue){(!ue||Xe)&&Ae(!0)},[Xe]);var Qe=y.useState(null),pt=le(Qe,2),dt=pt[0],Lt=pt[1],Pr=y.useState(null),Mt=le(Pr,2),jt=Mt[0],Ft=Mt[1],Nt=function(xe){Ft([xe.clientX,xe.clientY])},Br=um(Xe,Ee,_&&jt!==null?jt:Ue,U,S,I,ee),Ve=le(Br,11),yr=Ve[0],Zn=Ve[1],Qo=Ve[2],br=Ve[3],Jn=Ve[4],Zo=Ve[5],eo=Ve[6],to=Ve[7],Cr=Ve[8],wr=Ve[9],on=Ve[10],jr=am(ce,d,p,h),sn=le(jr,2),Mr=sn[0],Ot=sn[1],ar=Mr.has("click"),lr=Ot.has("click")||Ot.has("contextMenu"),cr=wt(function(){qt||on()}),an=function(){ct.current&&_&&lr&&gt(!1)};pm(Xe,Ue,Ee,cr,an),Ge(function(){cr()},[jt,U]),Ge(function(){Xe&&!(S!=null&&S[U])&&cr()},[JSON.stringify(I)]);var Jo=y.useMemo(function(){var ue=dm(S,a,wr,_);return ve(ue,Q?.(wr))},[wr,Q,S,a,_]);y.useImperativeHandle(o,function(){return{nativeElement:be.current,popupElement:ze.current,forceAlign:cr}});var ro=y.useState(0),no=le(ro,2),oo=no[0],ei=no[1],ti=y.useState(0),io=le(ti,2),ri=io[0],ni=io[1],so=function(){if(F&&Ue){var xe=Ue.getBoundingClientRect();ei(xe.width),ni(xe.height)}},oi=function(){so(),cr()},ii=function(xe){Ae(!1),on(),g?.(xe)},si=function(){return new Promise(function(xe){so(),Lt(function(){return xe})})};Ge(function(){dt&&(on(),dt(),Lt(null))},[dt]);function Ht(ue,xe,We,tt){qe[ue]=function(Ye){var lo;tt?.(Ye),gt(xe,We);for(var ui=arguments.length,na=new Array(ui>1?ui-1:0),co=1;co<ui;co++)na[co-1]=arguments[co];(lo=me[ue])===null||lo===void 0||lo.call.apply(lo,[me,Ye].concat(na))}}(ar||lr)&&(qe.onClick=function(ue){var xe;ct.current&&lr?gt(!1):!ct.current&&ar&&(Nt(ue),gt(!0));for(var We=arguments.length,tt=new Array(We>1?We-1:0),Ye=1;Ye<We;Ye++)tt[Ye-1]=arguments[Ye];(xe=me.onClick)===null||xe===void 0||xe.call.apply(xe,[me,ue].concat(tt))});var ln=fm(Xe,lr,Ue,Ee,B,m,Kt,gt),ai=Mr.has("hover"),St=Ot.has("hover"),Nr,cn;ai&&(Ht("onMouseEnter",!0,j,function(ue){Nt(ue)}),Ht("onPointerEnter",!0,j,function(ue){Nt(ue)}),Nr=function(xe){(Xe||qt)&&Ee!==null&&Ee!==void 0&&Ee.contains(xe.target)&&gt(!0,j)},_&&(qe.onMouseMove=function(ue){var xe;(xe=me.onMouseMove)===null||xe===void 0||xe.call(me,ue)})),St&&(Ht("onMouseLeave",!1,b),Ht("onPointerLeave",!1,b),cn=function(){gt(!1,b)}),Mr.has("focus")&&Ht("onFocus",!0,w),Ot.has("focus")&&Ht("onBlur",!1,P),Mr.has("contextMenu")&&(qe.onContextMenu=function(ue){var xe;ct.current&&Ot.has("contextMenu")?gt(!1):(Nt(ue),gt(!0)),ue.preventDefault();for(var We=arguments.length,tt=new Array(We>1?We-1:0),Ye=1;Ye<We;Ye++)tt[Ye-1]=arguments[Ye];(xe=me.onContextMenu)===null||xe===void 0||xe.call.apply(xe,[me,ue].concat(tt))}),O&&(qe.className=ve(me.className,O));var Xt=y.useRef(!1);Xt.current||(Xt.current=T||Xe||qt);var dr=re(re({},me),qe),dn={},ao=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ao.forEach(function(ue){W[ue]&&(dn[ue]=function(){for(var xe,We=arguments.length,tt=new Array(We),Ye=0;Ye<We;Ye++)tt[Ye]=arguments[Ye];(xe=dr[ue])===null||xe===void 0||xe.call.apply(xe,[dr].concat(tt)),W[ue].apply(W,tt)})});var li=y.cloneElement(he,re(re({},dr),dn)),ci={x:Zo,y:eo},di=oe?re({},oe!==!0?oe:{}):null;return y.createElement(y.Fragment,null,y.createElement(Jr,{disabled:!Xe,ref:He,onResize:oi},y.createElement(Dd,{getTriggerDOMNode:G},li)),Xt.current&&y.createElement(vl.Provider,{value:Re},y.createElement(Od,{portal:t,ref:Le,prefixCls:a,popup:M,className:ve(D,Jo),style:V,target:Ue,onMouseEnter:Nr,onMouseLeave:cn,onPointerEnter:Nr,zIndex:L,open:Xe,keepDom:qt,fresh:z,onClick:Y,onPointerDownCapture:ln,mask:B,motion:vr,maskMotion:kr,onVisibleChanged:ii,onPrepare:si,forceRender:T,autoDestroy:J,getPopupContainer:R,align:wr,arrow:di,arrowPos:ci,ready:yr,offsetX:Zn,offsetY:Qo,offsetR:br,offsetB:Jn,onAlign:cr,stretch:F,targetWidth:oo/to,targetHeight:ri/Cr})))});return process.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const mm=gm(Xs);var Ar={shiftX:64,adjustY:1},$r={adjustX:1,shiftY:!0},Tt=[0,0],xm={left:{points:["cr","cl"],overflow:$r,offset:[-4,0],targetOffset:Tt},right:{points:["cl","cr"],overflow:$r,offset:[4,0],targetOffset:Tt},top:{points:["bc","tc"],overflow:Ar,offset:[0,-4],targetOffset:Tt},bottom:{points:["tc","bc"],overflow:Ar,offset:[0,4],targetOffset:Tt},topLeft:{points:["bl","tl"],overflow:Ar,offset:[0,-4],targetOffset:Tt},leftTop:{points:["tr","tl"],overflow:$r,offset:[-4,0],targetOffset:Tt},topRight:{points:["br","tr"],overflow:Ar,offset:[0,-4],targetOffset:Tt},rightTop:{points:["tl","tr"],overflow:$r,offset:[4,0],targetOffset:Tt},bottomRight:{points:["tr","br"],overflow:Ar,offset:[0,4],targetOffset:Tt},rightBottom:{points:["bl","br"],overflow:$r,offset:[4,0],targetOffset:Tt},bottomLeft:{points:["tl","bl"],overflow:Ar,offset:[0,4],targetOffset:Tt},leftBottom:{points:["br","bl"],overflow:$r,offset:[-4,0],targetOffset:Tt}},vm=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],ym=function(r,n){var o=r.overlayClassName,i=r.trigger,a=i===void 0?["hover"]:i,l=r.mouseEnterDelay,c=l===void 0?0:l,d=r.mouseLeaveDelay,p=d===void 0?.1:d,h=r.overlayStyle,f=r.prefixCls,x=f===void 0?"rc-tooltip":f,E=r.children,g=r.onVisibleChange,j=r.afterVisibleChange,v=r.transitionName,b=r.animation,w=r.motion,P=r.placement,B=P===void 0?"right":P,C=r.align,m=C===void 0?{}:C,R=r.destroyTooltipOnHide,T=R===void 0?!1:R,N=r.defaultVisible,$=r.getTooltipContainer,M=r.overlayInnerStyle,D=r.overlay,V=r.id,U=r.showArrow,k=U===void 0?!0:U,S=r.classNames,I=r.styles,L=_t(r,vm),F=Md(V),Q=u.useRef(null);u.useImperativeHandle(n,function(){return Q.current});var z=re({},L);"visible"in r&&(z.popupVisible=r.visible);var _=function(){return y.createElement(Pd,{key:"content",prefixCls:x,id:F,bodyClassName:S?.body,overlayInnerStyle:re(re({},M),I?.body)},D)},Y=function(){var oe=y.Children.only(E),ne=oe?.props||{},fe=re(re({},ne),{},{"aria-describedby":D?F:null});return y.cloneElement(E,fe)};return y.createElement(mm,nt({popupClassName:ve(o,S?.root),prefixCls:x,popup:_,action:a,builtinPlacements:xm,popupPlacement:B,ref:Q,popupAlign:m,getPopupContainer:$,onPopupVisibleChange:g,afterPopupVisibleChange:j,popupTransitionName:v,popupAnimation:b,popupMotion:w,defaultPopupVisible:N,autoDestroy:T,mouseLeaveDelay:p,popupStyle:re(re({},h),I?.root),mouseEnterDelay:c,arrow:k},z),Y())};const bm=u.forwardRef(ym),Fn=y.createContext({});process.env.NODE_ENV!=="production"&&(Fn.displayName="FormItemInputContext");const Cm=({children:t,status:r,override:n})=>{const o=y.useContext(Fn),i=y.useMemo(()=>{const a=Object.assign({},o);return n&&delete a.isFormItemInput,r&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[r,n,o]);return y.createElement(Fn.Provider,{value:i},t)},wm=y.createContext(void 0),Ad=t=>{const r=u.useContext(Yr);return u.useMemo(()=>t?typeof t=="string"?t??r:typeof t=="function"?t(r):r:r,[t,r])},$d=y.createContext(null),_d=(t,r)=>{const n=y.useContext($d),o=y.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:l}=n,c=i==="vertical"?"-vertical-":"-";return ve(`${t}-compact${c}item`,{[`${t}-compact${c}first-item`]:a,[`${t}-compact${c}last-item`]:l,[`${t}-compact${c}item-rtl`]:r==="rtl"})},[t,r,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:o}},jm=t=>{const{children:r}=t;return y.createElement($d.Provider,{value:null},r)},Ps=t=>{const{space:r,form:n,children:o}=t;if(o==null)return null;let i=o;return n&&(i=u.createElement(Cm,{override:!0,status:!0},i)),r&&(i=u.createElement(jm,null,i)),i},Qs=u.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qs.displayName="zIndexContext");const Jt=100,Sm=10,Rm=Jt*Sm,Tm=Rm+Jt,zd={Modal:Jt,Drawer:Jt,Popover:Jt,Popconfirm:Jt,Tooltip:Jt,Tour:Jt,FloatButton:Jt},Em={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function km(t){return t in zd}const Im=(t,r)=>{const[,n]=tn(),o=u.useContext(Qs),i=km(t);let a;if(r!==void 0)a=[r,r];else{let l=o??0;i?l+=(o?0:n.zIndexPopupBase)+zd[t]:l+=Em[t],a=[o===void 0?r:l,l]}if(process.env.NODE_ENV!=="production"){const l=Gt(t),c=n.zIndexPopupBase+Tm,d=a[0]||0;process.env.NODE_ENV!=="production"&&l(r!==void 0||d<=c,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a},Pm=(t,r,n)=>n!==void 0?n:`${t}-${r}`;function Bm(t){const{sizePopupArrow:r,borderRadiusXS:n,borderRadiusOuter:o}=t,i=r/2,a=0,l=i,c=o*1/Math.sqrt(2),d=i-o*(1-1/Math.sqrt(2)),p=i-n*(1/Math.sqrt(2)),h=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-p,x=h,E=2*i-c,g=d,j=2*i-a,v=l,b=i*Math.sqrt(2)+o*(Math.sqrt(2)-2),w=o*(Math.sqrt(2)-1),P=`polygon(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,B=`path('M ${a} ${l} A ${o} ${o} 0 0 0 ${c} ${d} L ${p} ${h} A ${n} ${n} 0 0 1 ${f} ${x} L ${E} ${g} A ${o} ${o} 0 0 0 ${j} ${v} Z')`;return{arrowShadowWidth:b,arrowPath:B,arrowPolygon:P}}const Mm=(t,r,n)=>{const{sizePopupArrow:o,arrowPolygon:i,arrowPath:a,arrowShadowWidth:l,borderRadiusXS:c,calc:d}=t;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:d(o).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Oe(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Ld=8;function Fd(t){const{contentRadius:r,limitVerticalRadius:n}=t,o=r>12?r+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?Ld:o}}function bo(t,r){return t?r:{}}function Nm(t,r,n){const{componentCls:o,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:l}=t,{arrowDistance:c=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}={};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Mm(t,r,i)),{"&:before":{background:r}})]},bo(!!d.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":l,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Oe(l)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),bo(!!d.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Oe(l)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),bo(!!d.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:a},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:a}})),bo(!!d.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:a},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:a}}))}}function Om(t,r,n,o){if(o===!1)return{adjustX:!1,adjustY:!1};const i=o&&typeof o=="object"?o:{},a={};switch(t){case"top":case"bottom":a.shiftX=r.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=r.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const l=Object.assign(Object.assign({},a),i);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const Rl={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Dm={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Am=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function $m(t){const{arrowWidth:r,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:i,borderRadius:a}=t,l=r/2,c={},d=Fd({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Rl).forEach(p=>{const h=o&&Dm[p]||Rl[p],f=Object.assign(Object.assign({},h),{offset:[0,0],dynamicInset:!0});switch(c[p]=f,Am.has(p)&&(f.autoArrow=!1),p){case"top":case"topLeft":case"topRight":f.offset[1]=-l-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+i;break}if(o)switch(p){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-l;break}f.overflow=Om(p,d,r,n),f.htmlRegion="visibleFirst"}),c}function _m(t){return t&&u.isValidElement(t)&&t.type===u.Fragment}const zm=(t,r,n)=>u.isValidElement(t)?u.cloneElement(t,typeof n=="function"?n(t.props||{}):n):r;function Hd(t,r){return zm(t,t,r)}const Lm=t=>({animationDuration:t,animationFillMode:"both"}),Fm=t=>({animationDuration:t,animationFillMode:"both"}),Hm=(t,r,n,o,i=!1)=>{const a=i?"&":"";return{[`
130
+ ${a}${t}-enter,
131
+ ${a}${t}-appear
132
+ `]:Object.assign(Object.assign({},Lm(o)),{animationPlayState:"paused"}),[`${a}${t}-leave`]:Object.assign(Object.assign({},Fm(o)),{animationPlayState:"paused"}),[`
133
+ ${a}${t}-enter${t}-enter-active,
134
+ ${a}${t}-appear${t}-appear-active
135
+ `]:{animationName:r,animationPlayState:"running"},[`${a}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Vm=new Pt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wm=new Pt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Tl=new Pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),El=new Pt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Um=new Pt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Gm=new Pt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Km=new Pt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ym=new Pt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),qm=new Pt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Xm=new Pt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Qm=new Pt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Zm=new Pt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Jm={zoom:{inKeyframes:Vm,outKeyframes:Wm},"zoom-big":{inKeyframes:Tl,outKeyframes:El},"zoom-big-fast":{inKeyframes:Tl,outKeyframes:El},"zoom-left":{inKeyframes:Km,outKeyframes:Ym},"zoom-right":{inKeyframes:qm,outKeyframes:Xm},"zoom-up":{inKeyframes:Um,outKeyframes:Gm},"zoom-down":{inKeyframes:Qm,outKeyframes:Zm}},ex=(t,r)=>{const{antCls:n}=t,o=`${n}-${r}`,{inKeyframes:i,outKeyframes:a}=Jm[r];return[Hm(o,i,a,t.motionDurationFast),{[`
136
+ ${o}-enter,
137
+ ${o}-appear
138
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},tx=t=>{const{calc:r,componentCls:n,tooltipMaxWidth:o,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:l,zIndexPopup:c,controlHeight:d,boxShadowSecondary:p,paddingSM:h,paddingXS:f,arrowOffsetHorizontal:x,sizePopupArrow:E}=t,g=r(l).add(E).add(x).equal(),j=r(l).mul(2).add(E).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ys(t)),{position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:o,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:j,minHeight:d,padding:`${Oe(t.calc(h).div(2).equal())} ${Oe(f)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:l,boxShadow:p,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:t.min(l,Ld)}},[`${n}-content`]:{position:"relative"}}),yg(t,(v,{darkColor:b})=>({[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},Nm(t,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},rx=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},Fd({contentRadius:t.borderRadius,limitVerticalRadius:!0})),Bm(ir(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)}))),Vd=(t,r=!0)=>qn("Tooltip",o=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:l}=o,c=ir(o,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:l});return[tx(c),ex(o,"zoom-big-fast")]},rx,{resetStyle:!1,injectStyle:r})(t),nx=zo.map(t=>`${t}-inverse`);function ox(t,r=!0){return r?[].concat(at(nx),at(zo)).includes(t):zo.includes(t)}const st=Math.round;function Ni(t,r){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)o[i]=r(o[i]||0,n[i]||"",i);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const kl=(t,r,n)=>n===0?t:t/100;function Cn(t,r){const n=r||255;return t>n?n:t<0?0:t}class Xo{constructor(r){se(this,"isValid",!0),se(this,"r",0),se(this,"g",0),se(this,"b",0),se(this,"a",1),se(this,"_h",void 0),se(this,"_s",void 0),se(this,"_l",void 0),se(this,"_v",void 0),se(this,"_max",void 0),se(this,"_min",void 0),se(this,"_brightness",void 0);function n(o){return o[0]in r&&o[1]in r&&o[2]in r}if(r)if(typeof r=="string"){let i=function(a){return o.startsWith(a)};const o=r.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(r instanceof Xo)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(n("rgb"))this.r=Cn(r.r),this.g=Cn(r.g),this.b=Cn(r.b),this.a=typeof r.a=="number"?Cn(r.a,1):1;else if(n("hsl"))this.fromHsl(r);else if(n("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const n=this.toHsv();return n.h=r,this._c(n)}getLuminance(){function r(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=r(this.r),o=r(this.g),i=r(this.b);return .2126*n+.7152*o+.0722*i}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=st(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(r=10){const n=this.getHue(),o=this.getSaturation();let i=this.getLightness()-r/100;return i<0&&(i=0),this._c({h:n,s:o,l:i,a:this.a})}lighten(r=10){const n=this.getHue(),o=this.getSaturation();let i=this.getLightness()+r/100;return i>1&&(i=1),this._c({h:n,s:o,l:i,a:this.a})}mix(r,n=50){const o=this._c(r),i=n/100,a=c=>(o[c]-this[c])*i+this[c],l={r:st(a("r")),g:st(a("g")),b:st(a("b")),a:st(a("a")*100)/100};return this._c(l)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const n=this._c(r),o=this.a+n.a*(1-this.a),i=a=>st((this[a]*this.a+n[a]*n.a*(1-this.a))/o);return this._c({r:i("r"),g:i("g"),b:i("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const n=(this.r||0).toString(16);r+=n.length===2?n:"0"+n;const o=(this.g||0).toString(16);r+=o.length===2?o:"0"+o;const i=(this.b||0).toString(16);if(r+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=st(this.a*255).toString(16);r+=a.length===2?a:"0"+a}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),n=st(this.getSaturation()*100),o=st(this.getLightness()*100);return this.a!==1?`hsla(${r},${n}%,${o}%,${this.a})`:`hsl(${r},${n}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,n,o){const i=this.clone();return i[r]=Cn(n,o),i}_c(r){return new this.constructor(r)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(r){const n=r.replace("#","");function o(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=n[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=n[6]?o(6,7)/255:1)}fromHsl({h:r,s:n,l:o,a:i}){if(this._h=r%360,this._s=n,this._l=o,this.a=typeof i=="number"?i:1,n<=0){const x=st(o*255);this.r=x,this.g=x,this.b=x}let a=0,l=0,c=0;const d=r/60,p=(1-Math.abs(2*o-1))*n,h=p*(1-Math.abs(d%2-1));d>=0&&d<1?(a=p,l=h):d>=1&&d<2?(a=h,l=p):d>=2&&d<3?(l=p,c=h):d>=3&&d<4?(l=h,c=p):d>=4&&d<5?(a=h,c=p):d>=5&&d<6&&(a=p,c=h);const f=o-p/2;this.r=st((a+f)*255),this.g=st((l+f)*255),this.b=st((c+f)*255)}fromHsv({h:r,s:n,v:o,a:i}){this._h=r%360,this._s=n,this._v=o,this.a=typeof i=="number"?i:1;const a=st(o*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=r/60,c=Math.floor(l),d=l-c,p=st(o*(1-n)*255),h=st(o*(1-n*d)*255),f=st(o*(1-n*(1-d))*255);switch(c){case 0:this.g=f,this.b=p;break;case 1:this.r=h,this.b=p;break;case 2:this.r=p,this.b=f;break;case 3:this.r=p,this.g=h;break;case 4:this.r=f,this.g=p;break;case 5:default:this.g=p,this.b=h;break}}fromHsvString(r){const n=Ni(r,kl);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(r){const n=Ni(r,kl);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(r){const n=Ni(r,(o,i)=>i.includes("%")?st(o/100*255):o);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var ix=["b"],sx=["v"],Oi=function(r){return Math.round(Number(r||0))},ax=function(r){if(r instanceof Xo)return r;if(r&&Te(r)==="object"&&"h"in r&&"b"in r){var n=r,o=n.b,i=_t(n,ix);return re(re({},i),{},{v:o})}return typeof r=="string"&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r},Il=(function(t){Un(n,t);var r=Gn(n);function n(o){return kt(this,n),r.call(this,ax(o))}return It(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=Oi(i.s*100),l=Oi(i.b*100),c=Oi(i.h),d=i.a,p="hsb(".concat(c,", ").concat(a,"%, ").concat(l,"%)"),h="hsba(".concat(c,", ").concat(a,"%, ").concat(l,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?p:h}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,l=_t(i,sx);return re(re({},l),{},{b:a,a:this.a})}}]),n})(Xo);const lx=(t,r)=>t?.replace(/[^\w/]/g,"").slice(0,r?8:6)||"",cx=(t,r)=>t?lx(t,r):"";let Pl=(function(){function t(r){kt(this,t);var n;if(this.cleared=!1,r instanceof t){this.metaColor=r.metaColor.clone(),this.colors=(n=r.colors)===null||n===void 0?void 0:n.map(i=>({color:new t(i.color),percent:i.percent})),this.cleared=r.cleared;return}const o=Array.isArray(r);o&&r.length?(this.colors=r.map(({color:i,percent:a})=>({color:new t(i),percent:a})),this.metaColor=new Il(this.colors[0].color.metaColor)):this.metaColor=new Il(o?"":r),(!r||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return It(t,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return cx(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((o,i)=>{const a=n.colors[i];return o.percent===a.percent&&o.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])})();const dx=t=>t instanceof Pl?t:new Pl(t);function Wd(t,r){const n=ox(r),o=ve({[`${t}-${r}`]:r&&n}),i={},a={},l=dx(r).toRgb(),d=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return r&&!n&&(i.background=r,i["--ant-tooltip-color"]=d,a["--antd-arrow-background-color"]=r),{className:o,overlayStyle:i,arrowStyle:a}}const ux=t=>{const{prefixCls:r,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:c}=y.useContext(rr),d=c("tooltip",r),[p,h,f]=Vd(d),x=Wd(d,a),E=x.arrowStyle,g=Object.assign(Object.assign({},l),x.overlayStyle),j=ve(h,f,d,`${d}-pure`,`${d}-placement-${o}`,n,x.className);return p(y.createElement("div",{className:j,style:E},y.createElement("div",{className:`${d}-arrow`}),y.createElement(Pd,Object.assign({},t,{className:h,prefixCls:d,overlayInnerStyle:g}),i)))};var px=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};const fx=y.forwardRef((t,r)=>{var n,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,color:c,overlayInnerStyle:d,children:p,afterOpenChange:h,afterVisibleChange:f,destroyTooltipOnHide:x,destroyOnHidden:E,arrow:g=!0,title:j,overlay:v,builtinPlacements:b,arrowPointAtCenter:w=!1,autoAdjustOverflow:P=!0,getPopupContainer:B,placement:C="top",mouseEnterDelay:m=.1,mouseLeaveDelay:R=.1,overlayStyle:T,rootClassName:N,overlayClassName:$,styles:M,classNames:D}=t,V=px(t,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),U=!!g,[,k]=tn(),{getPopupContainer:S,getPrefixCls:I,direction:L,className:F,style:Q,classNames:z,styles:_}=Yo("tooltip"),Y=Gt("Tooltip"),ee=y.useRef(null),oe=()=>{var Se;(Se=ee.current)===null||Se===void 0||Se.forceAlign()};y.useImperativeHandle(r,()=>{var Se,Fe;return{forceAlign:oe,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:(Se=ee.current)===null||Se===void 0?void 0:Se.nativeElement,popupElement:(Fe=ee.current)===null||Fe===void 0?void 0:Fe.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Se,Fe])=>{Y.deprecated(!(Se in t),Se,Fe)}),process.env.NODE_ENV!=="production"&&Y(!x||typeof x=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&Y(!g||typeof g=="boolean"||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[ne,fe]=Wr(!1,{value:(n=t.open)!==null&&n!==void 0?n:t.visible,defaultValue:(o=t.defaultOpen)!==null&&o!==void 0?o:t.defaultVisible}),A=!j&&!v&&j!==0,K=Se=>{var Fe,Ue;fe(A?!1:Se),A||((Fe=t.onOpenChange)===null||Fe===void 0||Fe.call(t,Se),(Ue=t.onVisibleChange)===null||Ue===void 0||Ue.call(t,Se))},Z=y.useMemo(()=>{var Se,Fe;let Ue=w;return typeof g=="object"&&(Ue=(Fe=(Se=g.pointAtCenter)!==null&&Se!==void 0?Se:g.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:w),b||$m({arrowPointAtCenter:Ue,autoAdjustOverflow:P,arrowWidth:U?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS})},[w,g,b,k]),X=y.useMemo(()=>j===0?j:v||j||"",[v,j]),O=y.createElement(Ps,{space:!0},typeof X=="function"?X():X),G=I("tooltip",i),W=I(),J=t["data-popover-inject"];let te=ne;!("open"in t)&&!("visible"in t)&&A&&(te=!1);const ie=y.isValidElement(p)&&!_m(p)?p:y.createElement("span",null,p),ce=ie.props,pe=!ce.className||typeof ce.className=="string"?ve(ce.className,a||`${G}-open`):ce.className,[ye,we,Re]=Vd(G,!J),ge=Wd(G,c),de=ge.arrowStyle,je=ve($,{[`${G}-rtl`]:L==="rtl"},ge.className,N,we,Re,F,z.root,D?.root),Ee=ve(z.body,D?.body),[et,ze]=Im("Tooltip",V.zIndex),Le=y.createElement(bm,Object.assign({},V,{zIndex:et,showArrow:U,placement:C,mouseEnterDelay:m,mouseLeaveDelay:R,prefixCls:G,classNames:{root:je,body:Ee},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},de),_.root),Q),T),M?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},_.body),d),M?.body),ge.overlayStyle)},getTooltipContainer:B||l||S,ref:ee,builtinPlacements:Z,overlay:O,visible:te,onVisibleChange:K,afterVisibleChange:h??f,arrowContent:y.createElement("span",{className:`${G}-arrow-content`}),motion:{motionName:Pm(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:E??!!x}),te?Hd(ie,{className:pe}):ie);return ye(y.createElement(Qs.Provider,{value:ze},Le))}),Qn=fx;process.env.NODE_ENV!=="production"&&(Qn.displayName="Tooltip");Qn._InternalPanelDoNotUseOrYouWillBeFired=ux;var hx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},gx=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:hx}))},Ud=y.forwardRef(gx);process.env.NODE_ENV!=="production"&&(Ud.displayName="EnterOutlined");var Bl={ENTER:13,ESC:27};function mx(t){return!!(t.addonBefore||t.addonAfter)}function xx(t){return!!(t.prefix||t.suffix||t.allowClear)}function Ml(t,r,n){var o=r.cloneNode(!0),i=Object.create(t,{target:{value:o},currentTarget:{value:o}});return o.value=n,typeof r.selectionStart=="number"&&typeof r.selectionEnd=="number"&&(o.selectionStart=r.selectionStart,o.selectionEnd=r.selectionEnd),o.setSelectionRange=function(){r.setSelectionRange.apply(r,arguments)},i}function Lo(t,r,n,o){if(n){var i=r;if(r.type==="click"){i=Ml(r,t,""),n(i);return}if(t.type!=="file"&&o!==void 0){i=Ml(r,t,o),n(i);return}n(i)}}function Gd(t,r){if(t){t.focus(r);var n=r||{},o=n.cursor;if(o){var i=t.value.length;switch(o){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(i,i);break;default:t.setSelectionRange(0,i)}}}}var Kd=u.forwardRef(function(t,r){var n,o,i,a=t.inputElement,l=t.children,c=t.prefixCls,d=t.prefix,p=t.suffix,h=t.addonBefore,f=t.addonAfter,x=t.className,E=t.style,g=t.disabled,j=t.readOnly,v=t.focused,b=t.triggerFocus,w=t.allowClear,P=t.value,B=t.handleReset,C=t.hidden,m=t.classes,R=t.classNames,T=t.dataAttrs,N=t.styles,$=t.components,M=t.onClear,D=l??a,V=$?.affixWrapper||"span",U=$?.groupWrapper||"span",k=$?.wrapper||"span",S=$?.groupAddon||"span",I=u.useRef(null),L=function(J){var te;(te=I.current)!==null&&te!==void 0&&te.contains(J.target)&&b?.()},F=xx(t),Q=u.cloneElement(D,{value:P,className:ve((n=D.props)===null||n===void 0?void 0:n.className,!F&&R?.variant)||null}),z=u.useRef(null);if(u.useImperativeHandle(r,function(){return{nativeElement:z.current||I.current}}),F){var _=null;if(w){var Y=!g&&!j&&P,ee="".concat(c,"-clear-icon"),oe=Te(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";_=u.createElement("button",{type:"button",tabIndex:-1,onClick:function(J){B?.(J),M?.()},onMouseDown:function(J){return J.preventDefault()},className:ve(ee,se(se({},"".concat(ee,"-hidden"),!Y),"".concat(ee,"-has-suffix"),!!p))},oe)}var ne="".concat(c,"-affix-wrapper"),fe=ve(ne,se(se(se(se(se({},"".concat(c,"-disabled"),g),"".concat(ne,"-disabled"),g),"".concat(ne,"-focused"),v),"".concat(ne,"-readonly"),j),"".concat(ne,"-input-with-clear-btn"),p&&w&&P),m?.affixWrapper,R?.affixWrapper,R?.variant),A=(p||w)&&u.createElement("span",{className:ve("".concat(c,"-suffix"),R?.suffix),style:N?.suffix},_,p);Q=u.createElement(V,nt({className:fe,style:N?.affixWrapper,onClick:L},T?.affixWrapper,{ref:I}),d&&u.createElement("span",{className:ve("".concat(c,"-prefix"),R?.prefix),style:N?.prefix},d),Q,A)}if(mx(t)){var K="".concat(c,"-group"),Z="".concat(K,"-addon"),X="".concat(K,"-wrapper"),O=ve("".concat(c,"-wrapper"),K,m?.wrapper,R?.wrapper),G=ve(X,se({},"".concat(X,"-disabled"),g),m?.group,R?.groupWrapper);Q=u.createElement(U,{className:G,ref:z},u.createElement(k,{className:O},h&&u.createElement(S,{className:Z},h),Q,f&&u.createElement(S,{className:Z},f)))}return u.cloneElement(Q,{className:ve((o=Q.props)===null||o===void 0?void 0:o.className,x)||null,style:re(re({},(i=Q.props)===null||i===void 0?void 0:i.style),E),hidden:C})}),vx=["show"];function Yd(t,r){return y.useMemo(function(){var n={};r&&(n.show=Te(r)==="object"&&r.formatter?r.formatter:!!r),n=re(re({},n),t);var o=n,i=o.show,a=_t(o,vx);return re(re({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(l){return l.length}})},[t,r])}var yx=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],bx=u.forwardRef(function(t,r){var n=t.autoComplete,o=t.onChange,i=t.onFocus,a=t.onBlur,l=t.onPressEnter,c=t.onKeyDown,d=t.onKeyUp,p=t.prefixCls,h=p===void 0?"rc-input":p,f=t.disabled,x=t.htmlSize,E=t.className,g=t.maxLength,j=t.suffix,v=t.showCount,b=t.count,w=t.type,P=w===void 0?"text":w,B=t.classes,C=t.classNames,m=t.styles,R=t.onCompositionStart,T=t.onCompositionEnd,N=_t(t,yx),$=u.useState(!1),M=le($,2),D=M[0],V=M[1],U=u.useRef(!1),k=u.useRef(!1),S=u.useRef(null),I=u.useRef(null),L=function(de){S.current&&Gd(S.current,de)},F=Wr(t.defaultValue,{value:t.value}),Q=le(F,2),z=Q[0],_=Q[1],Y=z==null?"":String(z),ee=u.useState(null),oe=le(ee,2),ne=oe[0],fe=oe[1],A=Yd(b,v),K=A.max||g,Z=A.strategy(Y),X=!!K&&Z>K;u.useImperativeHandle(r,function(){var ge;return{focus:L,blur:function(){var je;(je=S.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,Ee,et){var ze;(ze=S.current)===null||ze===void 0||ze.setSelectionRange(je,Ee,et)},select:function(){var je;(je=S.current)===null||je===void 0||je.select()},input:S.current,nativeElement:((ge=I.current)===null||ge===void 0?void 0:ge.nativeElement)||S.current}}),u.useEffect(function(){k.current&&(k.current=!1),V(function(ge){return ge&&f?!1:ge})},[f]);var O=function(de,je,Ee){var et=je;if(!U.current&&A.exceedFormatter&&A.max&&A.strategy(je)>A.max){if(et=A.exceedFormatter(je,{max:A.max}),je!==et){var ze,Le;fe([((ze=S.current)===null||ze===void 0?void 0:ze.selectionStart)||0,((Le=S.current)===null||Le===void 0?void 0:Le.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;_(et),S.current&&Lo(S.current,de,o,et)};u.useEffect(function(){if(ne){var ge;(ge=S.current)===null||ge===void 0||ge.setSelectionRange.apply(ge,at(ne))}},[ne]);var G=function(de){O(de,de.target.value,{source:"change"})},W=function(de){U.current=!1,O(de,de.currentTarget.value,{source:"compositionEnd"}),T?.(de)},J=function(de){l&&de.key==="Enter"&&!k.current&&(k.current=!0,l(de)),c?.(de)},te=function(de){de.key==="Enter"&&(k.current=!1),d?.(de)},ie=function(de){V(!0),i?.(de)},ce=function(de){k.current&&(k.current=!1),V(!1),a?.(de)},pe=function(de){_(""),L(),S.current&&Lo(S.current,de,o)},ye=X&&"".concat(h,"-out-of-range"),we=function(){var de=Ac(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return u.createElement("input",nt({autoComplete:n},de,{onChange:G,onFocus:ie,onBlur:ce,onKeyDown:J,onKeyUp:te,className:ve(h,se({},"".concat(h,"-disabled"),f),C?.input),style:m?.input,ref:S,size:x,type:P,onCompositionStart:function(Ee){U.current=!0,R?.(Ee)},onCompositionEnd:W}))},Re=function(){var de=Number(K)>0;if(j||A.show){var je=A.showFormatter?A.showFormatter({value:Y,count:Z,maxLength:K}):"".concat(Z).concat(de?" / ".concat(K):"");return u.createElement(u.Fragment,null,A.show&&u.createElement("span",{className:ve("".concat(h,"-show-count-suffix"),se({},"".concat(h,"-show-count-has-suffix"),!!j),C?.count),style:re({},m?.count)},je),j)}return null};return u.createElement(Kd,nt({},N,{prefixCls:h,className:ve(E,ye),handleReset:pe,value:Y,focused:D,triggerFocus:L,suffix:Re(),disabled:f,classes:B,classNames:C,styles:m,ref:I}),we())}),Cx=`
139
+ min-height:0 !important;
140
+ max-height:none !important;
141
+ height:0 !important;
142
+ visibility:hidden !important;
143
+ overflow:hidden !important;
144
+ position:absolute !important;
145
+ z-index:-1000 !important;
146
+ top:0 !important;
147
+ right:0 !important;
148
+ pointer-events: none !important;
149
+ `,wx=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Di={},yt;function jx(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(r&&Di[n])return Di[n];var o=window.getComputedStyle(t),i=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),a=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),c=wx.map(function(p){return"".concat(p,":").concat(o.getPropertyValue(p))}).join(";"),d={sizingStyle:c,paddingSize:a,borderSize:l,boxSizing:i};return r&&n&&(Di[n]=d),d}function Sx(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;yt||(yt=document.createElement("textarea"),yt.setAttribute("tab-index","-1"),yt.setAttribute("aria-hidden","true"),yt.setAttribute("name","hiddenTextarea"),document.body.appendChild(yt)),t.getAttribute("wrap")?yt.setAttribute("wrap",t.getAttribute("wrap")):yt.removeAttribute("wrap");var i=jx(t,r),a=i.paddingSize,l=i.borderSize,c=i.boxSizing,d=i.sizingStyle;yt.setAttribute("style","".concat(d,";").concat(Cx)),yt.value=t.value||t.placeholder||"";var p=void 0,h=void 0,f,x=yt.scrollHeight;if(c==="border-box"?x+=l:c==="content-box"&&(x-=a),n!==null||o!==null){yt.value=" ";var E=yt.scrollHeight-a;n!==null&&(p=E*n,c==="border-box"&&(p=p+a+l),x=Math.max(p,x)),o!==null&&(h=E*o,c==="border-box"&&(h=h+a+l),f=x>h?"":"hidden",x=Math.min(h,x))}var g={height:x,overflowY:f,resize:"none"};return p&&(g.minHeight=p),h&&(g.maxHeight=h),g}var Rx=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ai=0,$i=1,_i=2,Tx=y.forwardRef(function(t,r){var n=t,o=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,d=n.className,p=n.style,h=n.disabled,f=n.onChange,x=n.onInternalAutoSize,E=_t(n,Rx),g=Wr(i,{value:a,postState:function(ee){return ee??""}}),j=le(g,2),v=j[0],b=j[1],w=function(ee){b(ee.target.value),f?.(ee)},P=y.useRef();y.useImperativeHandle(r,function(){return{textArea:P.current}});var B=y.useMemo(function(){return l&&Te(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),C=le(B,2),m=C[0],R=C[1],T=!!l,N=y.useState(_i),$=le(N,2),M=$[0],D=$[1],V=y.useState(),U=le(V,2),k=U[0],S=U[1],I=function(){D(Ai),process.env.NODE_ENV==="test"&&x?.()};Ge(function(){T&&I()},[a,m,R,T]),Ge(function(){if(M===Ai)D($i);else if(M===$i){var Y=Sx(P.current,!1,m,R);D(_i),S(Y)}},[M]);var L=y.useRef(),F=function(){qr.cancel(L.current)},Q=function(ee){M===_i&&(c?.(ee),l&&(F(),L.current=qr(function(){I()})))};y.useEffect(function(){return F},[]);var z=T?k:null,_=re(re({},p),z);return(M===Ai||M===$i)&&(_.overflowY="hidden",_.overflowX="hidden"),y.createElement(Jr,{onResize:Q,disabled:!(l||c)},y.createElement("textarea",nt({},E,{ref:P,style:_,className:ve(o,d,se({},"".concat(o,"-disabled"),h)),disabled:h,value:v,onChange:w})))}),Ex=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],kx=u.forwardRef(function(t,r){var n,o=t.defaultValue,i=t.value,a=t.onFocus,l=t.onBlur,c=t.onChange,d=t.allowClear,p=t.maxLength,h=t.onCompositionStart,f=t.onCompositionEnd,x=t.suffix,E=t.prefixCls,g=E===void 0?"rc-textarea":E,j=t.showCount,v=t.count,b=t.className,w=t.style,P=t.disabled,B=t.hidden,C=t.classNames,m=t.styles,R=t.onResize,T=t.onClear,N=t.onPressEnter,$=t.readOnly,M=t.autoSize,D=t.onKeyDown,V=_t(t,Ex),U=Wr(o,{value:i,defaultValue:o}),k=le(U,2),S=k[0],I=k[1],L=S==null?"":String(S),F=u.useState(!1),Q=le(F,2),z=Q[0],_=Q[1],Y=u.useRef(!1),ee=u.useState(null),oe=le(ee,2),ne=oe[0],fe=oe[1],A=u.useRef(null),K=u.useRef(null),Z=function(){var be;return(be=K.current)===null||be===void 0?void 0:be.textArea},X=function(){Z().focus()};u.useImperativeHandle(r,function(){var De;return{resizableTextArea:K.current,focus:X,blur:function(){Z().blur()},nativeElement:((De=A.current)===null||De===void 0?void 0:De.nativeElement)||Z()}}),u.useEffect(function(){_(function(De){return!P&&De})},[P]);var O=u.useState(null),G=le(O,2),W=G[0],J=G[1];u.useEffect(function(){if(W){var De;(De=Z()).setSelectionRange.apply(De,at(W))}},[W]);var te=Yd(v,j),ie=(n=te.max)!==null&&n!==void 0?n:p,ce=Number(ie)>0,pe=te.strategy(L),ye=!!ie&&pe>ie,we=function(be,He){var he=He;!Y.current&&te.exceedFormatter&&te.max&&te.strategy(He)>te.max&&(he=te.exceedFormatter(He,{max:te.max}),He!==he&&J([Z().selectionStart||0,Z().selectionEnd||0])),I(he),Lo(be.currentTarget,be,c,he)},Re=function(be){Y.current=!0,h?.(be)},ge=function(be){Y.current=!1,we(be,be.currentTarget.value),f?.(be)},de=function(be){we(be,be.target.value)},je=function(be){be.key==="Enter"&&N&&N(be),D?.(be)},Ee=function(be){_(!0),a?.(be)},et=function(be){_(!1),l?.(be)},ze=function(be){I(""),X(),Lo(Z(),be,c)},Le=x,Se;te.show&&(te.showFormatter?Se=te.showFormatter({value:L,count:pe,maxLength:ie}):Se="".concat(pe).concat(ce?" / ".concat(ie):""),Le=u.createElement(u.Fragment,null,Le,u.createElement("span",{className:ve("".concat(g,"-data-count"),C?.count),style:m?.count},Se)));var Fe=function(be){var He;R?.(be),(He=Z())!==null&&He!==void 0&&He.style.height&&fe(!0)},Ue=!M&&!j&&!d;return u.createElement(Kd,{ref:A,value:L,allowClear:d,handleReset:ze,suffix:Le,prefixCls:g,classNames:re(re({},C),{},{affixWrapper:ve(C?.affixWrapper,se(se({},"".concat(g,"-show-count"),j),"".concat(g,"-textarea-allow-clear"),d))}),disabled:P,focused:z,className:ve(b,ye&&"".concat(g,"-out-of-range")),style:re(re({},w),ne&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:B,readOnly:$,onClear:T},u.createElement(Tx,nt({},V,{autoSize:M,maxLength:p,onKeyDown:je,onChange:de,onFocus:Ee,onBlur:et,onCompositionStart:Re,onCompositionEnd:ge,className:ve(C?.textarea),style:re(re({},m?.textarea),{},{resize:w?.resize}),disabled:P,prefixCls:g,onResize:Fe,ref:K,readOnly:$})))}),Ix={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Px=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:Ix}))},qd=y.forwardRef(Px);process.env.NODE_ENV!=="production"&&(qd.displayName="CloseCircleFilled");const Xd=t=>{let r;return typeof t=="object"&&t?.clearIcon?r=t:t&&(r={clearIcon:u.createElement(qd,null)}),r};function Bs(t,r,n){return ve({[`${t}-status-success`]:r==="success",[`${t}-status-warning`]:r==="warning",[`${t}-status-error`]:r==="error",[`${t}-status-validating`]:r==="validating",[`${t}-has-feedback`]:n})}const Qd=(t,r)=>r||t,Zd=t=>{const[,,,,r]=tn();return r?`${t}-css-var`:""},Jd=(t,r,n=void 0)=>{var o,i;const{variant:a,[t]:l}=y.useContext(rr),c=y.useContext(wm),d=l?.variant;let p;typeof r<"u"?p=r:n===!1?p="borderless":p=(i=(o=c??d)!==null&&o!==void 0?o:a)!==null&&i!==void 0?i:"outlined";const h=Vh.includes(p);return[p,h]};function Bx(t,r){const n=u.useRef([]),o=()=>{n.current.push(setTimeout(()=>{var i,a,l,c;!((i=t.current)===null||i===void 0)&&i.input&&((a=t.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((l=t.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((c=t.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return u.useEffect(()=>(o(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),o}function Mx(t,r,n,o){const{focusElCls:i,focus:a,borderElCls:l}=n,c=l?"> *":"",d=["hover",a?"focus":null,"active"].filter(Boolean).map(p=>`&:${p} ${c}`).join(",");return{[`&-item:not(${r}-last-item)`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[d]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${c}`]:{zIndex:0}})}}function Nx(t,r,n){const{borderElCls:o}=n,i=o?`> ${o}`:"";return{[`&-item:not(${r}-first-item):not(${r}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${r}-last-item)${r}-first-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${r}-first-item)${r}-last-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ox(t,r={focus:!0}){const{componentCls:n}=t,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},Mx(t,o,r,n)),Nx(n,o,r))}}function Zs(t){return ir(t,{inputAffixPadding:t.paddingXXS})}const Js=t=>{const{controlHeight:r,fontSize:n,lineHeight:o,lineWidth:i,controlHeightSM:a,controlHeightLG:l,fontSizeLG:c,lineHeightLG:d,paddingSM:p,controlPaddingHorizontalSM:h,controlPaddingHorizontal:f,colorFillAlter:x,colorPrimaryHover:E,colorPrimary:g,controlOutlineWidth:j,controlOutline:v,colorErrorOutline:b,colorWarningOutline:w,colorBgContainer:P,inputFontSize:B,inputFontSizeLG:C,inputFontSizeSM:m}=t,R=B||n,T=m||R,N=C||c,$=Math.round((r-R*o)/2*10)/10-i,M=Math.round((a-T*o)/2*10)/10-i,D=Math.ceil((l-N*d)/2*10)/10-i;return{paddingBlock:Math.max($,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(D,0),paddingInline:p-i,paddingInlineSM:h-i,paddingInlineLG:f-i,addonBg:x,activeBorderColor:g,hoverBorderColor:E,activeShadow:`0 0 0 ${j}px ${v}`,errorActiveShadow:`0 0 0 ${j}px ${b}`,warningActiveShadow:`0 0 0 ${j}px ${w}`,hoverBg:P,activeBg:P,inputFontSize:R,inputFontSizeLG:N,inputFontSizeSM:T}},Dx=t=>({borderColor:t.hoverBorderColor,backgroundColor:t.hoverBg}),ea=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Dx(ir(t,{hoverBorderColor:t.colorBorder,hoverBg:t.colorBgContainerDisabled})))}),eu=(t,r)=>({background:t.colorBgContainer,borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:r.borderColor,"&:hover":{borderColor:r.hoverBorderColor,backgroundColor:t.hoverBg},"&:focus, &:focus-within":{borderColor:r.activeBorderColor,boxShadow:r.activeShadow,outline:0,backgroundColor:t.activeBg}}),Nl=(t,r)=>({[`&${t.componentCls}-status-${r.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},eu(t,r)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:r.affixColor}}),[`&${t.componentCls}-status-${r.status}${t.componentCls}-disabled`]:{borderColor:r.borderColor}}),Ax=(t,r)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eu(t,{borderColor:t.colorBorder,hoverBorderColor:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeShadow:t.activeShadow})),{[`&${t.componentCls}-disabled, &[disabled]`]:Object.assign({},ea(t))}),Nl(t,{status:"error",borderColor:t.colorError,hoverBorderColor:t.colorErrorBorderHover,activeBorderColor:t.colorError,activeShadow:t.errorActiveShadow,affixColor:t.colorError})),Nl(t,{status:"warning",borderColor:t.colorWarning,hoverBorderColor:t.colorWarningBorderHover,activeBorderColor:t.colorWarning,activeShadow:t.warningActiveShadow,affixColor:t.colorWarning})),r)}),Ol=(t,r)=>({[`&${t.componentCls}-group-wrapper-status-${r.status}`]:{[`${t.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),$x=t=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${t.componentCls}-group`]:{"&-addon":{background:t.addonBg,border:`${Oe(t.lineWidth)} ${t.lineType} ${t.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Ol(t,{status:"error",addonBorderColor:t.colorError,addonColor:t.colorErrorText})),Ol(t,{status:"warning",addonBorderColor:t.colorWarning,addonColor:t.colorWarningText})),{[`&${t.componentCls}-group-wrapper-disabled`]:{[`${t.componentCls}-group-addon`]:Object.assign({},ea(t))}})}),_x=(t,r)=>{const{componentCls:n}=t;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:t.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:t.colorWarning}}},r)}},tu=(t,r)=>{var n;return{background:r.bg,borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=r?.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:r.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:r.activeBorderColor,backgroundColor:t.activeBg}}},Dl=(t,r)=>({[`&${t.componentCls}-status-${r.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},tu(t,r)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:r.affixColor}})}),zx=(t,r)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tu(t,{bg:t.colorFillTertiary,hoverBg:t.colorFillSecondary,activeBorderColor:t.activeBorderColor})),{[`&${t.componentCls}-disabled, &[disabled]`]:Object.assign({},ea(t))}),Dl(t,{status:"error",bg:t.colorErrorBg,hoverBg:t.colorErrorBgHover,activeBorderColor:t.colorError,inputColor:t.colorErrorText,affixColor:t.colorError})),Dl(t,{status:"warning",bg:t.colorWarningBg,hoverBg:t.colorWarningBgHover,activeBorderColor:t.colorWarning,inputColor:t.colorWarningText,affixColor:t.colorWarning})),r)}),Al=(t,r)=>({[`&${t.componentCls}-group-wrapper-status-${r.status}`]:{[`${t.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),Lx=t=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${t.componentCls}-group-addon`]:{background:t.colorFillTertiary,"&:last-child":{position:"static"}}},Al(t,{status:"error",addonBg:t.colorErrorBg,addonColor:t.colorErrorText})),Al(t,{status:"warning",addonBg:t.colorWarningBg,addonColor:t.colorWarningText})),{[`&${t.componentCls}-group-wrapper-disabled`]:{[`${t.componentCls}-group`]:{"&-addon":{background:t.colorFillTertiary,color:t.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Oe(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${Oe(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${Oe(t.lineWidth)} ${t.lineType} ${t.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Oe(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${Oe(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${Oe(t.lineWidth)} ${t.lineType} ${t.colorBorder}`}}}})}),ru=(t,r)=>({background:t.colorBgContainer,borderWidth:`${Oe(t.lineWidth)} 0`,borderStyle:`${t.lineType} none`,borderColor:`transparent transparent ${r.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${r.borderColor} transparent`,backgroundColor:t.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${r.activeBorderColor} transparent`,outline:0,backgroundColor:t.activeBg}}),$l=(t,r)=>({[`&${t.componentCls}-status-${r.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},ru(t,r)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:r.affixColor}}),[`&${t.componentCls}-status-${r.status}${t.componentCls}-disabled`]:{borderColor:`transparent transparent ${r.borderColor} transparent`}}),Fx=(t,r)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ru(t,{borderColor:t.colorBorder,activeBorderColor:t.activeBorderColor})),{[`&${t.componentCls}-disabled, &[disabled]`]:{color:t.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${t.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),$l(t,{status:"error",borderColor:t.colorError,activeBorderColor:t.colorError,affixColor:t.colorError})),$l(t,{status:"warning",borderColor:t.colorWarning,activeBorderColor:t.colorWarning,affixColor:t.colorWarning})),r)}),Hx=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),nu=t=>{const{paddingBlockLG:r,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:i}=t;return{padding:`${Oe(r)} ${Oe(i)}`,fontSize:t.inputFontSizeLG,lineHeight:n,borderRadius:o}},ou=t=>({padding:`${Oe(t.paddingBlockSM)} ${Oe(t.paddingInlineSM)}`,fontSize:t.inputFontSizeSM,borderRadius:t.borderRadiusSM}),iu=t=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Oe(t.paddingBlock)} ${Oe(t.paddingInline)}`,color:t.colorText,fontSize:t.inputFontSize,lineHeight:t.lineHeight,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},Hx(t.colorTextPlaceholder)),{"&-lg":Object.assign({},nu(t)),"&-sm":Object.assign({},ou(t)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Vx=t=>{const{componentCls:r,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:Object.assign({},nu(t)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},ou(t)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Oe(t.paddingInline)}`,color:t.colorText,fontWeight:"normal",fontSize:t.inputFontSize,textAlign:"center",borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Oe(t.calc(t.paddingBlock).add(1).mul(-1).equal())} ${Oe(t.calc(t.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Oe(t.lineWidth)} ${t.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Oe(t.calc(t.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[r]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${r}-search-with-button &`]:{zIndex:0}}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${r}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:Object.assign(Object.assign({display:"block"},hg()),{[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
150
+ & > ${r}-affix-wrapper,
151
+ & > ${r}-number-affix-wrapper,
152
+ & > ${n}-picker-range
153
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEndWidth:t.lineWidth},[r]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
154
+ & > ${n}-select-auto-complete ${r},
155
+ & > ${n}-cascader-picker ${r},
156
+ & > ${r}-group-wrapper ${r}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
157
+ & > ${n}-select:first-child > ${n}-select-selector,
158
+ & > ${n}-select-auto-complete:first-child ${r},
159
+ & > ${n}-cascader-picker:first-child ${r}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,
160
+ & > ${n}-select:last-child > ${n}-select-selector,
161
+ & > ${n}-cascader-picker:last-child ${r},
162
+ & > ${n}-cascader-picker-focused:last-child ${r}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${r}`]:{verticalAlign:"top"},[`${r}-group-wrapper + ${r}-group-wrapper`]:{marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),[`${r}-affix-wrapper`]:{borderRadius:0}},[`${r}-group-wrapper:not(:last-child)`]:{[`&${r}-search > ${r}-group`]:{[`& > ${r}-group-addon > ${r}-search-button`]:{borderRadius:0},[`& > ${r}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}})}},Wx=t=>{const{componentCls:r,controlHeightSM:n,lineWidth:o,calc:i}=t,l=i(n).sub(i(o).mul(2)).sub(16).div(2).equal();return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ys(t)),iu(t)),Ax(t)),zx(t)),_x(t)),Fx(t)),{'&[type="color"]':{height:t.controlHeight,[`&${r}-lg`]:{height:t.controlHeightLG},[`&${r}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Ux=t=>{const{componentCls:r}=t;return{[`${r}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:t.colorIcon},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Oe(t.inputAffixPadding)}`}}}},Gx=t=>{const{componentCls:r,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:i,colorIcon:a,colorIconHover:l,iconCls:c}=t,d=`${r}-affix-wrapper`,p=`${r}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},iu(t)),{display:"inline-flex",[`&:not(${r}-disabled):hover`]:{zIndex:1,[`${r}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${r}`]:{padding:0},[`> input${r}, > textarea${r}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[r]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Ux(t)),{[`${c}${r}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:l}}}),[`${r}-underlined`]:{borderRadius:0},[p]:{[`${c}${r}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Kx=t=>{const{componentCls:r,borderRadiusLG:n,borderRadiusSM:o}=t;return{[`${r}-group`]:Object.assign(Object.assign(Object.assign({},Ys(t)),Vx(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${r}-group-addon`]:{borderRadius:n,fontSize:t.inputFontSizeLG}},"&-sm":{[`${r}-group-addon`]:{borderRadius:o}}},$x(t)),Lx(t)),{[`&:not(${r}-compact-first-item):not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}, ${r}-group-addon`]:{borderRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-first-item`]:{[`${r}, ${r}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-last-item`]:{[`${r}, ${r}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Yx=t=>{const{componentCls:r,antCls:n}=t,o=`${r}-search`;return{[o]:{[r]:{"&:hover, &:focus":{[`+ ${r}-group-addon ${o}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${r}-affix-wrapper`]:{height:t.controlHeight,borderRadius:0},[`${r}-lg`]:{lineHeight:t.calc(t.lineHeightLG).sub(2e-4).equal()},[`> ${r}-group`]:{[`> ${r}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-color-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${o}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${r}-affix-wrapper, ${o}-button`]:{height:t.controlHeightLG}},"&-small":{[`${r}-affix-wrapper, ${o}-button`]:{height:t.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${r}-compact-item`]:{[`&:not(${r}-compact-last-item)`]:{[`${r}-group-addon`]:{[`${r}-search-button`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${r}-compact-first-item)`]:{[`${r},${r}-affix-wrapper`]:{borderRadius:0}},[`> ${r}-group-addon ${r}-search-button,
163
+ > ${r},
164
+ ${r}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},qx=t=>{const{componentCls:r}=t;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:t.colorError}}}},su=qn(["Input","Shared"],t=>{const r=ir(t,Zs(t));return[Wx(r),Gx(r)]},Js,{resetFont:!1}),Xx=qn(["Input","Component"],t=>{const r=ir(t,Zs(t));return[Kx(r),Yx(r),qx(r),Ox(r)]},Js,{resetFont:!1});function Qx(t){return!!(t.prefix||t.suffix||t.allowClear||t.showCount)}var Zx=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};const Jx=u.forwardRef((t,r)=>{const{prefixCls:n,bordered:o=!0,status:i,size:a,disabled:l,onBlur:c,onFocus:d,suffix:p,allowClear:h,addonAfter:f,addonBefore:x,className:E,style:g,styles:j,rootClassName:v,onChange:b,classNames:w,variant:P}=t,B=Zx(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:pe}=Gt("Input");pe(!("bordered"in t),"bordered","variant")}const{getPrefixCls:C,direction:m,allowClear:R,autoComplete:T,className:N,style:$,classNames:M,styles:D}=Yo("input"),V=C("input",n),U=u.useRef(null),k=Zd(V),[S,I,L]=su(V,v),[F]=Xx(V,k),{compactSize:Q,compactItemClassnames:z}=_d(V,m),_=Ad(pe=>{var ye;return(ye=a??Q)!==null&&ye!==void 0?ye:pe}),Y=u.useContext(zn),ee=l??Y,{status:oe,hasFeedback:ne,feedbackIcon:fe}=u.useContext(Fn),A=Qd(oe,i),K=Qx(t)||!!ne,Z=u.useRef(K);if(process.env.NODE_ENV!=="production"){const pe=Gt("Input");u.useEffect(()=>{var ye;K&&!Z.current&&process.env.NODE_ENV!=="production"&&pe(document.activeElement===((ye=U.current)===null||ye===void 0?void 0:ye.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Z.current=K},[K])}const X=Bx(U),O=pe=>{X(),c?.(pe)},G=pe=>{X(),d?.(pe)},W=pe=>{X(),b?.(pe)},J=(ne||p)&&u.createElement(u.Fragment,null,p,ne&&fe),te=Xd(h??R),[ie,ce]=Jd("input",P,o);return S(F(u.createElement(bx,Object.assign({ref:Wn(r,U),prefixCls:V,autoComplete:T},B,{disabled:ee,onBlur:O,onFocus:G,style:Object.assign(Object.assign({},$),g),styles:Object.assign(Object.assign({},D),j),suffix:J,allowClear:te,className:ve(E,v,L,k,z,N),onChange:W,addonBefore:x&&u.createElement(Ps,{form:!0,space:!0},x),addonAfter:f&&u.createElement(Ps,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},w),M),{input:ve({[`${V}-sm`]:_==="small",[`${V}-lg`]:_==="large",[`${V}-rtl`]:m==="rtl"},w?.input,M.input,I),variant:ve({[`${V}-${ie}`]:ce},Bs(V,A)),affixWrapper:ve({[`${V}-affix-wrapper-sm`]:_==="small",[`${V}-affix-wrapper-lg`]:_==="large",[`${V}-affix-wrapper-rtl`]:m==="rtl"},I),wrapper:ve({[`${V}-group-rtl`]:m==="rtl"},I),groupWrapper:ve({[`${V}-group-wrapper-sm`]:_==="small",[`${V}-group-wrapper-lg`]:_==="large",[`${V}-group-wrapper-rtl`]:m==="rtl",[`${V}-group-wrapper-${ie}`]:ce},Bs(`${V}-group-wrapper`,A,ne),I)})}))))});process.env.NODE_ENV!=="production"&&(Jx.displayName="Input");const e0=t=>{const{componentCls:r,paddingLG:n}=t,o=`${r}-textarea`;return{[`textarea${r}`]:{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}`,resize:"vertical",[`&${r}-mouse-active`]:{transition:`all ${t.motionDurationSlow}, height 0s, width 0s`}},[`${r}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{position:"relative","&-show-count":{[`${r}-data-count`]:{position:"absolute",bottom:t.calc(t.fontSize).mul(t.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:t.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
165
+ &-allow-clear > ${r},
166
+ &-affix-wrapper${o}-has-feedback ${r}
167
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${r}-affix-wrapper`]:{padding:0,[`> textarea${r}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:t.calc(t.controlHeight).sub(t.calc(t.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${r}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${r}-clear-icon`]:{position:"absolute",insetInlineEnd:t.paddingInline,insetBlockStart:t.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:t.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${r}-affix-wrapper-rtl`]:{[`${r}-suffix`]:{[`${r}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${r}-affix-wrapper-sm`]:{[`${r}-suffix`]:{[`${r}-clear-icon`]:{insetInlineEnd:t.paddingInlineSM}}}}}},t0=qn(["Input","TextArea"],t=>{const r=ir(t,Zs(t));return e0(r)},Js,{resetFont:!1});var r0=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};const n0=u.forwardRef((t,r)=>{var n;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:c,allowClear:d,classNames:p,rootClassName:h,className:f,style:x,styles:E,variant:g,showCount:j,onMouseDown:v,onResize:b}=t,w=r0(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:te}=Gt("TextArea");te(!("bordered"in t),"bordered","variant")}const{getPrefixCls:P,direction:B,allowClear:C,autoComplete:m,className:R,style:T,classNames:N,styles:$}=Yo("textArea"),M=y.useContext(zn),D=l??M,{status:V,hasFeedback:U,feedbackIcon:k}=y.useContext(Fn),S=Qd(V,c),I=y.useRef(null);y.useImperativeHandle(r,()=>{var te;return{resizableTextArea:(te=I.current)===null||te===void 0?void 0:te.resizableTextArea,focus:ie=>{var ce,pe;Gd((pe=(ce=I.current)===null||ce===void 0?void 0:ce.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,ie)},blur:()=>{var ie;return(ie=I.current)===null||ie===void 0?void 0:ie.blur()}}});const L=P("input",o),F=Zd(L),[Q,z,_]=su(L,h),[Y]=t0(L,F),{compactSize:ee,compactItemClassnames:oe}=_d(L,B),ne=Ad(te=>{var ie;return(ie=a??ee)!==null&&ie!==void 0?ie:te}),[fe,A]=Jd("textArea",g,i),K=Xd(d??C),[Z,X]=y.useState(!1),[O,G]=y.useState(!1),W=te=>{X(!0),v?.(te);const ie=()=>{X(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},J=te=>{var ie,ce;if(b?.(te),Z&&typeof getComputedStyle=="function"){const pe=(ce=(ie=I.current)===null||ie===void 0?void 0:ie.nativeElement)===null||ce===void 0?void 0:ce.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&G(!0)}};return Q(Y(y.createElement(kx,Object.assign({autoComplete:m},w,{style:Object.assign(Object.assign({},T),x),styles:Object.assign(Object.assign({},$),E),disabled:D,allowClear:K,className:ve(_,F,f,h,oe,R,O&&`${L}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},p),N),{textarea:ve({[`${L}-sm`]:ne==="small",[`${L}-lg`]:ne==="large"},z,p?.textarea,N.textarea,Z&&`${L}-mouse-active`),variant:ve({[`${L}-${fe}`]:A},Bs(L,S)),affixWrapper:ve(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:B==="rtl",[`${L}-affix-wrapper-sm`]:ne==="small",[`${L}-affix-wrapper-lg`]:ne==="large",[`${L}-textarea-show-count`]:j||((n=t.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:L,suffix:U&&y.createElement("span",{className:`${L}-textarea-suffix`},k),showCount:j,ref:I,onResize:J,onMouseDown:W}))))}),o0=(t,r,n,o)=>{const{titleMarginBottom:i,fontWeightStrong:a}=o;return{marginBottom:i,color:n,fontWeight:a,fontSize:t,lineHeight:r}},i0=t=>{const r=[1,2,3,4,5],n={};return r.forEach(o=>{n[`
168
+ h${o}&,
169
+ div&-h${o},
170
+ div&-h${o} > textarea,
171
+ h${o}
172
+ `]=o0(t[`fontSizeHeading${o}`],t[`lineHeightHeading${o}`],t.colorTextHeading,t)}),n},s0=t=>{const{componentCls:r}=t;return{"a&, a":Object.assign(Object.assign({},hd(t)),{userSelect:"text",[`&[disabled], &${r}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:t.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},a0=t=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:t.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:t.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:No[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:t.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:t.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),l0=t=>{const{componentCls:r,paddingSM:n}=t,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:t.calc(t.paddingSM).mul(-1).equal(),marginTop:t.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${Oe(o)})`},[`${r}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:t.calc(t.marginXS).add(2).equal(),insetBlockEnd:t.marginXS,color:t.colorIcon,fontWeight:"normal",fontSize:t.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},c0=t=>({[`${t.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:t.colorSuccess}},[`${t.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),d0=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),u0=t=>{const{componentCls:r,titleMarginTop:n}=t;return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.colorText,wordBreak:"break-word",lineHeight:t.lineHeight,[`&${r}-secondary`]:{color:t.colorTextDescription},[`&${r}-success`]:{color:t.colorSuccessText},[`&${r}-warning`]:{color:t.colorWarningText},[`&${r}-danger`]:{color:t.colorErrorText,"a&:active, a&:focus":{color:t.colorErrorTextActive},"a&:hover":{color:t.colorErrorTextHover}},[`&${r}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},i0(t)),{[`
173
+ & + h1${r},
174
+ & + h2${r},
175
+ & + h3${r},
176
+ & + h4${r},
177
+ & + h5${r}
178
+ `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),a0(t)),s0(t)),{[`
179
+ ${r}-expand,
180
+ ${r}-collapse,
181
+ ${r}-edit,
182
+ ${r}-copy
183
+ `]:Object.assign(Object.assign({},hd(t)),{marginInlineStart:t.marginXXS})}),l0(t)),c0(t)),d0()),{"&-rtl":{direction:"rtl"}})}},p0=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),au=qn("Typography",u0,p0),f0=t=>{const{prefixCls:r,"aria-label":n,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:d,onSave:p,onCancel:h,onEnd:f,component:x,enterIcon:E=y.createElement(Ud,null)}=t,g=y.useRef(null),j=y.useRef(!1),v=y.useRef(null),[b,w]=y.useState(d);y.useEffect(()=>{w(d)},[d]),y.useEffect(()=>{var U;if(!((U=g.current)===null||U===void 0)&&U.resizableTextArea){const{textArea:k}=g.current.resizableTextArea;k.focus();const{length:S}=k.value;k.setSelectionRange(S,S)}},[]);const P=({target:U})=>{w(U.value.replace(/[\n\r]/g,""))},B=()=>{j.current=!0},C=()=>{j.current=!1},m=({keyCode:U})=>{j.current||(v.current=U)},R=()=>{p(b.trim())},T=({keyCode:U,ctrlKey:k,altKey:S,metaKey:I,shiftKey:L})=>{v.current!==U||j.current||k||S||I||L||(U===Bl.ENTER?(R(),f?.()):U===Bl.ESC&&h())},N=()=>{R()},[$,M,D]=au(r),V=ve(r,`${r}-edit-content`,{[`${r}-rtl`]:a==="rtl",[`${r}-${x}`]:!!x},o,M,D);return $(y.createElement("div",{className:V,style:i},y.createElement(n0,{ref:g,maxLength:l,value:b,onChange:P,onKeyDown:m,onKeyUp:T,onCompositionStart:B,onCompositionEnd:C,onBlur:N,"aria-label":n,rows:1,autoSize:c}),E!==null?Hd(E,{className:`${r}-edit-content-confirm`}):null))};var zi,_l;function h0(){return _l||(_l=1,zi=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var r=document.activeElement,n=[],o=0;o<t.rangeCount;o++)n.push(t.getRangeAt(o));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(i){t.addRange(i)}),r&&r.focus()}}),zi}var Li,zl;function lu(){if(zl)return Li;zl=1;var t=h0(),r={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function o(a){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,l)}function i(a,l){var c,d,p,h,f,x,E=!1;l||(l={}),c=l.debug||!1;try{p=t(),h=document.createRange(),f=document.getSelection(),x=document.createElement("span"),x.textContent=a,x.ariaHidden="true",x.style.all="unset",x.style.position="fixed",x.style.top=0,x.style.clip="rect(0, 0, 0, 0)",x.style.whiteSpace="pre",x.style.webkitUserSelect="text",x.style.MozUserSelect="text",x.style.msUserSelect="text",x.style.userSelect="text",x.addEventListener("copy",function(j){if(j.stopPropagation(),l.format)if(j.preventDefault(),typeof j.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=r[l.format]||r.default;window.clipboardData.setData(v,a)}else j.clipboardData.clearData(),j.clipboardData.setData(l.format,a);l.onCopy&&(j.preventDefault(),l.onCopy(j.clipboardData))}),document.body.appendChild(x),h.selectNodeContents(x),f.addRange(h);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");E=!0}catch(j){c&&console.error("unable to copy using execCommand: ",j),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",a),l.onCopy&&l.onCopy(window.clipboardData),E=!0}catch(v){c&&console.error("unable to copy using clipboardData: ",v),c&&console.error("falling back to prompt"),d=o("message"in l?l.message:n),window.prompt(d,a)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(h):f.removeAllRanges()),x&&document.body.removeChild(x),p()}return E}return Li=i,Li}var g0=lu();const m0=Hn(g0),x0=(t,r=!1)=>r&&t==null?[]:Array.isArray(t)?t:[t];var v0=exports&&exports.__awaiter||function(t,r,n,o){function i(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function c(h){try{p(o.next(h))}catch(f){l(f)}}function d(h){try{p(o.throw(h))}catch(f){l(f)}}function p(h){h.done?a(h.value):i(h.value).then(c,d)}p((o=o.apply(t,r||[])).next())})};const y0=({copyConfig:t,children:r})=>{const[n,o]=y.useState(!1),[i,a]=y.useState(!1),l=y.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},d={};t.format&&(d.format=t.format),y.useEffect(()=>c,[]);const p=wt(h=>v0(void 0,void 0,void 0,function*(){var f;h?.preventDefault(),h?.stopPropagation(),a(!0);try{const x=typeof t.text=="function"?yield t.text():t.text;m0(x||x0(r,!0).join("")||"",d),a(!1),o(!0),c(),l.current=setTimeout(()=>{o(!1)},3e3),(f=t.onCopy)===null||f===void 0||f.call(t,h)}catch(x){throw a(!1),x}}));return{copied:n,copyLoading:i,onClick:p}};function Fi(t,r){return y.useMemo(()=>{const n=!!t;return[n,Object.assign(Object.assign({},r),n&&typeof t=="object"?t:null)]},[t])}const b0=t=>{const r=u.useRef(void 0);return u.useEffect(()=>{r.current=t}),r.current},C0=(t,r,n)=>u.useMemo(()=>t===!0?{title:r??n}:u.isValidElement(t)?{title:t}:typeof t=="object"?Object.assign({title:r??n},t):{title:t},[t,r,n]);var w0=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};const cu=y.forwardRef((t,r)=>{const{prefixCls:n,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:d,style:p}=t,h=w0(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:x,className:E,style:g}=Yo("typography"),j=d??x,v=l?Wn(r,l):r,b=f("typography",n);process.env.NODE_ENV!=="production"&&Gt("Typography").deprecated(!l,"setContentRef","ref");const[w,P,B]=au(b),C=ve(b,E,{[`${b}-rtl`]:j==="rtl"},i,a,P,B),m=Object.assign(Object.assign({},g),p);return w(y.createElement(o,Object.assign({className:C,style:m,ref:v},h),c))});process.env.NODE_ENV!=="production"&&(cu.displayName="Typography");var j0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},S0=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:j0}))},du=y.forwardRef(S0);process.env.NODE_ENV!=="production"&&(du.displayName="CheckOutlined");var R0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},T0=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:R0}))},uu=y.forwardRef(T0);process.env.NODE_ENV!=="production"&&(uu.displayName="CopyOutlined");var E0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},k0=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:E0}))},pu=y.forwardRef(k0);process.env.NODE_ENV!=="production"&&(pu.displayName="LoadingOutlined");function Ll(t){return t===!1?[!1,!1]:Array.isArray(t)?t:[t]}function Hi(t,r,n){return t===!0||t===void 0?r:t||n&&r}function I0(t){const r=document.createElement("em");t.appendChild(r),process.env.NODE_ENV!=="production"&&(r.className="ant-typography-css-ellipsis-content-measure");const n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return t.removeChild(r),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}const ta=t=>["string","number"].includes(typeof t),P0=({prefixCls:t,copied:r,locale:n,iconOnly:o,tooltips:i,icon:a,tabIndex:l,onCopy:c,loading:d})=>{const p=Ll(i),h=Ll(a),{copied:f,copy:x}=n??{},E=r?f:x,g=Hi(p[r?1:0],E),j=typeof g=="string"?g:E;return y.createElement(Qn,{title:g,getPopupContainer:v=>v.parentNode},y.createElement("button",{type:"button",className:ve(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:o}),onClick:c,"aria-label":j,tabIndex:l},r?Hi(h[1],y.createElement(du,null),!0):Hi(h[0],d?y.createElement(pu,null):y.createElement(uu,null),!0)))},Co=y.forwardRef(({style:t,children:r},n)=>{const o=y.useRef(null);return y.useImperativeHandle(n,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),y.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},t)},r)}),B0=t=>t.reduce((r,n)=>r+(ta(n)?String(n).length:1),0);function Fl(t,r){let n=0;const o=[];for(let i=0;i<t.length;i+=1){if(n===r)return o;const a=t[i],c=ta(a)?String(a).length:1,d=n+c;if(d>r){const p=r-n;return o.push(String(a).slice(0,p)),o}o.push(a),n=d}return t}const Vi=0,Wi=1,Ui=2,Gi=3,Hl=4,wo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function M0(t){const{enableMeasure:r,width:n,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:d}=t,p=y.useMemo(()=>Mn(o),[o]),h=y.useMemo(()=>B0(p),[o]),f=y.useMemo(()=>i(p,!1),[o]),[x,E]=y.useState(null),g=y.useRef(null),j=y.useRef(null),v=y.useRef(null),b=y.useRef(null),w=y.useRef(null),[P,B]=y.useState(!1),[C,m]=y.useState(Vi),[R,T]=y.useState(0),[N,$]=y.useState(null);Ge(()=>{m(r&&n&&h?Wi:Vi)},[n,o,a,r,p]),Ge(()=>{var U,k,S,I;if(C===Wi){m(Ui);const L=j.current&&getComputedStyle(j.current).whiteSpace;$(L)}else if(C===Ui){const L=!!(!((U=v.current)===null||U===void 0)&&U.isExceed());m(L?Gi:Hl),E(L?[0,h]:null),B(L);const F=((k=v.current)===null||k===void 0?void 0:k.getHeight())||0,Q=a===1?0:((S=b.current)===null||S===void 0?void 0:S.getHeight())||0,z=((I=w.current)===null||I===void 0?void 0:I.getHeight())||0,_=Math.max(F,Q+z);T(_+1),d(L)}},[C]);const M=x?Math.ceil((x[0]+x[1])/2):0;Ge(()=>{var U;const[k,S]=x||[0,0];if(k!==S){const L=(((U=g.current)===null||U===void 0?void 0:U.getHeight())||0)>R;let F=M;S-k===1&&(F=L?k:S),E(L?[k,F]:[F,S])}},[x,M]);const D=y.useMemo(()=>{if(!r)return i(p,!1);if(C!==Gi||!x||x[0]!==x[1]){const U=i(p,!1);return[Hl,Vi].includes(C)?U:y.createElement("span",{style:Object.assign(Object.assign({},wo),{WebkitLineClamp:a})},U)}return i(l?p:Fl(p,x[0]),P)},[l,C,x,p].concat(at(c))),V={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return y.createElement(y.Fragment,null,D,C===Ui&&y.createElement(y.Fragment,null,y.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},V),wo),{WebkitLineClamp:a}),ref:v},f),y.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},V),wo),{WebkitLineClamp:a-1}),ref:b},f),y.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},V),wo),{WebkitLineClamp:1}),ref:w},i([],!0))),C===Gi&&x&&x[0]!==x[1]&&y.createElement(Co,{style:Object.assign(Object.assign({},V),{top:400}),ref:g},i(Fl(p,M),!0)),C===Wi&&y.createElement("span",{style:{whiteSpace:"inherit"},ref:j}))}const fu=({enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:o})=>!o?.title||!t?n:y.createElement(Qn,Object.assign({open:r?void 0:!1},o),n);process.env.NODE_ENV!=="production"&&(fu.displayName="EllipsisTooltip");var N0=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function O0({mark:t,code:r,underline:n,delete:o,strong:i,keyboard:a,italic:l},c){let d=c;function p(h,f){f&&(d=y.createElement(h,{},d))}return p("strong",i),p("u",n),p("del",o),p("code",r),p("mark",t),p("kbd",a),p("i",l),d}const D0="...",Vl=["delete","mark","code","underline","strong","keyboard","italic"],A0=y.forwardRef((t,r)=>{var n;const{prefixCls:o,className:i,style:a,type:l,disabled:c,children:d,ellipsis:p,editable:h,copyable:f,component:x,title:E}=t,g=N0(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:j,direction:v}=y.useContext(rr),[b]=Bh("Text"),w=y.useRef(null),P=y.useRef(null),B=j("typography",o),C=Ac(g,Vl),[m,R]=Fi(h),[T,N]=Wr(!1,{value:R.editing}),{triggerType:$=["icon"]}=R,M=he=>{var me;he&&((me=R.onStart)===null||me===void 0||me.call(R)),N(he)},D=b0(T);Ge(()=>{var he;!T&&D&&((he=P.current)===null||he===void 0||he.focus())},[T]);const V=he=>{he?.preventDefault(),M(!0)},U=he=>{var me;(me=R.onChange)===null||me===void 0||me.call(R,he),M(!1)},k=()=>{var he;(he=R.onCancel)===null||he===void 0||he.call(R),M(!1)},[S,I]=Fi(f),{copied:L,copyLoading:F,onClick:Q}=y0({copyConfig:I,children:d}),[z,_]=y.useState(!1),[Y,ee]=y.useState(!1),[oe,ne]=y.useState(!1),[fe,A]=y.useState(!1),[K,Z]=y.useState(!0),[X,O]=Fi(p,{expandable:!1,symbol:he=>he?b?.collapse:b?.expand}),[G,W]=Wr(O.defaultExpanded||!1,{value:O.expanded}),J=X&&(!G||O.expandable==="collapsible"),{rows:te=1}=O,ie=y.useMemo(()=>J&&(O.suffix!==void 0||O.onEllipsis||O.expandable||m||S),[J,O,m,S]);Ge(()=>{X&&!ie&&(_(Fa("webkitLineClamp")),ee(Fa("textOverflow")))},[ie,X]);const[ce,pe]=y.useState(J),ye=y.useMemo(()=>ie?!1:te===1?Y:z,[ie,Y,z]);Ge(()=>{pe(ye&&J)},[ye,J]);const we=J&&(ce?fe:oe),Re=J&&te===1&&ce,ge=J&&te>1&&ce,de=(he,me)=>{var qe;W(me.expanded),(qe=O.onExpand)===null||qe===void 0||qe.call(O,he,me)},[je,Ee]=y.useState(0),et=({offsetWidth:he})=>{Ee(he)},ze=he=>{var me;ne(he),oe!==he&&((me=O.onEllipsis)===null||me===void 0||me.call(O,he))};y.useEffect(()=>{const he=w.current;if(X&&ce&&he){const me=I0(he);fe!==me&&A(me)}},[X,ce,d,ge,K,je]),y.useEffect(()=>{const he=w.current;if(typeof IntersectionObserver>"u"||!he||!ce||!J)return;const me=new IntersectionObserver(()=>{Z(!!he.offsetParent)});return me.observe(he),()=>{me.disconnect()}},[ce,J]);const Le=C0(O.tooltip,R.text,d),Se=y.useMemo(()=>{if(!(!X||ce))return[R.text,d,E,Le.title].find(ta)},[X,ce,E,Le.title,we]);if(T)return y.createElement(f0,{value:(n=R.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:U,onCancel:k,onEnd:R.onEnd,prefixCls:B,className:i,style:a,direction:v,component:x,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const Fe=()=>{const{expandable:he,symbol:me}=O;return he?y.createElement("button",{type:"button",key:"expand",className:`${B}-${G?"collapse":"expand"}`,onClick:qe=>de(qe,{expanded:!G}),"aria-label":G?b.collapse:b?.expand},typeof me=="function"?me(G):me):null},Ue=()=>{if(!m)return;const{icon:he,tooltip:me,tabIndex:qe}=R,Kt=Mn(me)[0]||b?.edit,vr=typeof Kt=="string"?Kt:"";return $.includes("icon")?y.createElement(Qn,{key:"edit",title:me===!1?"":Kt},y.createElement("button",{type:"button",ref:P,className:`${B}-edit`,onClick:V,"aria-label":vr,tabIndex:qe},he||y.createElement(Sc,{role:"button"}))):null},De=()=>S?y.createElement(P0,Object.assign({key:"copy"},I,{prefixCls:B,copied:L,locale:b,onCopy:Q,loading:F,iconOnly:d==null})):null,be=he=>[he&&Fe(),Ue(),De()],He=he=>[he&&!G&&y.createElement("span",{"aria-hidden":!0,key:"ellipsis"},D0),O.suffix,be(he)];return y.createElement(Jr,{onResize:et,disabled:!J},he=>y.createElement(fu,{tooltipProps:Le,enableEllipsis:J,isEllipsis:we},y.createElement(cu,Object.assign({className:ve({[`${B}-${l}`]:l,[`${B}-disabled`]:c,[`${B}-ellipsis`]:X,[`${B}-ellipsis-single-line`]:Re,[`${B}-ellipsis-multiple-line`]:ge},i),prefixCls:o,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ge?te:void 0}),component:x,ref:Wn(he,w,r),direction:v,onClick:$.includes("text")?V:void 0,"aria-label":Se?.toString(),title:E},C),y.createElement(M0,{enableMeasure:J&&!ce,text:d,rows:te,width:je,onEllipsis:ze,expanded:G,miscDeps:[L,G,F,m,S,b].concat(at(Vl.map(me=>t[me])))},(me,qe)=>O0(t,y.createElement(y.Fragment,null,me.length>0&&qe&&!G&&Se?y.createElement("span",{key:"show-content","aria-hidden":!0},me):me,He(qe)))))))}),$0=y.forwardRef((t,r)=>y.createElement(A0,Object.assign({ref:r},t,{component:"div"}))),hu=(t,r,n=null)=>{for(let o=0;o<t.length;o++){const i=t[o];if(i.key===r)return{node:i,ctx:{parent:n,index:o,siblings:t}};if(i.children?.length){const a=hu(i.children,r,i);if(a.node)return a}}return{node:null,ctx:null}},gu=(t,r)=>{if(!t.children)return!1;for(const n of t.children)if(n.key===r||gu(n,r))return!0;return!1};function _0({open:t,onClose:r}){const{nodes:n,rootIds:o,addFolder:i,editFolder:a,removeFolder:l,removeMenu:c,moveNode:d}=ut.useFavoriteStore(),p=u.useRef(null),[h,f]=u.useState([]),[x,E]=u.useState([]),[g,j]=u.useState(""),[v,b]=u.useState("ADD"),[w,P]=u.useState(!1),[B,C]=u.useState("");u.useEffect(()=>{t&&E(o)},[t]),u.useEffect(()=>{const T=m(n,o);f(T)},[n]),u.useEffect(()=>{w&&B&&(p.current.setFieldValue("prntBkmkId",B),p.current.setFieldValue("prntBkmkNm",n[B]?.bkmkNm??"-")),w&&v==="EDIT"&&(p.current.setFieldValue("bkmkId",B),p.current.setFieldValue("bkmkNm",n[B]?.bkmkNm)),!w&&v=="ADD"&&E(T=>[...T,B]),!w&&p.current&&(C("-"),p.current.resetFields())},[w,v,B,n]);const m=(T,N)=>{const $=(M,D="-")=>{const V=T[M];if(!V)return null;const U={key:V.bkmkId,type:V.type,title:V.type==="F"?V.bkmkNm:V.menuNm?`${V.menuNm} (${V.menuId})`:V.menuId,parentId:D,sortOrdr:V.sortOrdr??0};if(V.type==="F"){const S=(V.children??[]).map(I=>$(I,V.bkmkId)).filter(Boolean);return{...U,children:S}}return U};return N.map(M=>$(M,"-")).filter(Boolean)},R=()=>{if(b("ADD"),!g){C("-"),P(!0);return}const T=n[g];if(!T){C("-"),P(!0);return}T.type==="F"?C(T.bkmkId):C(T.prntBkmkId),P(!0)};return e.jsxs(s.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[e.jsxs(s.Modal,{open:t,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:e.jsxs(s.Typography.Text,{strong:!0,style:{fontSize:18},children:[e.jsx(q.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:r,children:[e.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[e.jsx(s.Button,{color:"blue",variant:"outlined",icon:e.jsx(q.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:R,children:"새 폴더"}),e.jsxs("div",{children:[e.jsx(s.Tooltip,{title:"펼치기",children:e.jsx(s.Button,{icon:e.jsx(q.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const T=Object.values(n).filter(N=>N.type==="F").map(N=>N.bkmkId);E(T)}})}),e.jsx(s.Tooltip,{title:"접기",children:e.jsx(s.Button,{icon:e.jsx(q.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>E([])})})]})]}),e.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[h.length==0&&e.jsx(s.Empty,{description:e.jsxs(s.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",e.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),e.jsx(s.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:T,dropPosition:N})=>{const $=T.type==="F";return N===0?$:!0},onDrop:T=>{const{dragNode:N,node:$,dropPosition:M,dropToGap:D}=T;if(N.key===$.key||gu(N,$.key))return;let V,U;if(D){const S=hu(h,$.key).ctx,I=S.index;V=S.parent?S.parent.key:"-",U=M>0?I+1:I}else{if($.type!=="F")return;const S=$.children||[];V=$.key,U=S.length}const k=ae.getUserId();if(N.type==="F")d({bkmkId:N.key,newPrntBkmkId:V,sortOrdr:U,userId:k}).catch(()=>{s.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(V==="-"){s.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}d({bkmkId:N.key,newPrntBkmkId:V,sortOrdr:U,userId:k}).catch(()=>{s.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}D===!1&&E(S=>Array.from(new Set([...S,$.key])))},showLine:!0,treeData:h,selectedKeys:[g],expandedKeys:x,onExpand:E,onSelect:T=>j(T[0]),titleRender:T=>e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("span",{children:[T.type==="F"?"📁":"📄"," ",T.title,T.isNew?e.jsx(s.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),e.jsxs("span",{style:{display:"inline-flex",gap:8},children:[T.type==="F"&&e.jsxs(e.Fragment,{children:[e.jsx(q.PlusOutlined,{style:{opacity:.8},onClick:()=>{b("ADD"),C(T.key),P(!0)}}),e.jsx(q.EditOutlined,{style:{opacity:.8},onClick:()=>{b("EDIT"),C(T.key),P(!0)}})]}),e.jsx(q.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{T.type==="F"?s.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>l(T.key)}):s.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>c(T.key)})}})]})]})})]})]}),e.jsx(s.ConfigProvider,{theme:{components:{Modal:{titleColor:v==="ADD"?"#0958d9":"#d46b08",headerBg:v==="ADD"?"#e6f4ff":"#fff7e6"}}},children:e.jsx(s.Modal,{title:e.jsxs(e.Fragment,{children:[v==="ADD"?e.jsx(q.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):e.jsx(q.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),e.jsxs(s.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",v==="ADD"?" 추가":"명 수정"]})]}),open:w,okText:"저장",onOk:()=>{const T=p.current.getFieldValue("bkmkNm"),N=ae.getUserId();if(v==="ADD"){const $=__SYS_CD__??"KH",M=p.current.getFieldValue("prntBkmkId");i(T,M,$,N).then(()=>{P(!1)})}else{const $=p.current.getFieldValue("bkmkId");a($,N,T).then(()=>{P(!1)})}},centered:!0,width:400,onCancel:()=>P(!1),children:e.jsxs(H.BwgForm,{ref:p,children:[e.jsx(H.BwgInput,{itemProps:{name:v==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),e.jsx(H.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:B==="-"||v==="EDIT"},inputProps:{disabled:!0}}),e.jsx(H.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function z0({triggerIcon:t}){const[r,n]=u.useState(!1),[o,i]=u.useState(""),[a,l]=u.useState(null),[c,d]=u.useState([]),[p,h]=u.useState([]),[f,x]=u.useState(!1),[E,g]=u.useState(!1),[j,v]=u.useState(!1),[b,w]=u.useState(null);ut.useFavoriteStore(F=>F.treeNodes);const{nodes:P,getPrntBkmkIdByMenuId:B,getNodeByMenuId:C,isMenuBookmarked:m,removeMenuByMenuId:R,addMenuToFolder:T,convertToAntTreeData:N}=ut.useFavoriteStore(),$=ut.useFavoriteStore(F=>F.rootIds),M=u.useMemo(()=>N(P,$,o,!0),[P,$,o]),D=ut.useMenuViewStore(F=>F.activeMenuItem??{menuId:"",menuNm:""}),V=u.useMemo(()=>{if(!D?.menuId)return"";const F=C(D.menuId);if(!F)return"";if(F.fullPath)return F.fullPath;const Q=z=>{const _=P[z];if(!_)return"";if(_.prntBkmkId==="-")return`${_.bkmkNm||D?.menuNm}`;const Y=Q(_.prntBkmkId);return Y?`${Y} > ${_.bkmkNm||D?.menuNm}`:_.bkmkNm||D?.menuNm};return console.log("bookmarkNode ::::: ",F),console.log(Q(F.bkmkId)),Q(F.bkmkId)},[D?.menuId,C,P]);u.useEffect(()=>{r&&D?.menuId&&m(D.menuId)?h([B(D.menuId)]):r&&D?.menuId&&!m(D.menuId)?h($):(h([]),d([]),w(null),v(!1))},[r,D?.menuId,m,B]),u.useEffect(()=>{if(!j||!D?.menuId)return;const F=B(D.menuId);!F||!P[F]||(i(""),d([F]),w(F))},[j,D?.menuId,P,B]);const U=(F,Q)=>{T(F,Q).then(z=>{console.log("AddMenuToFolder ::::: ",z),z||h(_=>_.includes(F)?_:[..._,F])})},k=F=>{R(F)},S=async F=>{D?.menuId&&(await R(D.menuId),await T(F,D),v(!1),w(null),h(Q=>Q.includes(F)?Q:[...Q,F]))},I=()=>e.jsxs("div",{style:{width:360},children:[e.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsxs(s.Typography.Text,{strong:!0,style:{fontSize:18},children:[e.jsx(s.Button,{type:"text",icon:e.jsx(q.ArrowLeftOutlined,{}),onClick:()=>v(!1),style:{marginRight:4}}),"폴더 변경"]}),D&&e.jsxs(s.Typography.Text,{type:"secondary",children:["현재 화면: ",e.jsx("b",{children:D.menuNm})," ",e.jsxs("span",{style:{opacity:.7},children:["(",D.menuId,")"]})]})]})}),L(),e.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[e.jsx(s.Button,{onClick:()=>{v(!1),w(null)},children:"취소"}),e.jsx(s.Button,{type:"primary",disabled:!b,onClick:()=>b&&S(String(b)),children:"이동"})]})]}),L=()=>e.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[e.jsxs(s.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[e.jsx(s.Input,{placeholder:"검색(폴더명)",prefix:e.jsx(q.SearchOutlined,{}),allowClear:!0,value:o,onChange:F=>i(F.target.value),style:{width:"260px",height:28}}),e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[e.jsx(s.Button,{icon:e.jsx(q.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const F=Object.values(P).filter(Q=>Q.type==="F").map(Q=>Q.bkmkId);h(F)},title:"모두 확장"}),e.jsx(s.Button,{icon:e.jsx(q.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>h([]),title:"모두 축소"})]})]}),M.length===0?e.jsx(s.Empty,{description:e.jsxs(s.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",e.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:s.Empty.PRESENTED_IMAGE_SIMPLE}):e.jsx(s.Tree,{blockNode:!0,showLine:!0,treeData:M,selectedKeys:c,expandedKeys:p,onExpand:h,onSelect:F=>{d(F),w(F[0])},autoExpandParent:!0,titleRender:F=>{const Q=String(F.key),z=a===Q;return e.jsxs("div",{onMouseEnter:()=>l(Q),onMouseLeave:()=>l(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsx("div",{children:F.title}),!m(D?.menuId)&&D&&z&&e.jsx(s.Button,{size:"small",type:"link",onClick:_=>{_.stopPropagation(),U(Q,D)},children:"+ 현재화면 추가"})]})}})]});return e.jsxs(e.Fragment,{children:[e.jsx(s.Popover,{open:r&&!f,onOpenChange:n,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,border:"1px solid #e8edf5",boxShadow:"0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08)",background:"#fcfcff",zIndex:1e3}},content:j?I():e.jsxs("div",{style:{width:360},children:[e.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsxs(s.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",m(D?.menuId)?"저장됨":"추가"]}),D&&e.jsxs(s.Typography.Text,{type:"secondary",children:["현재 화면: ",e.jsx("b",{children:D.menuNm})," ",e.jsxs("span",{style:{opacity:.7},children:["(",D.menuId,")"]})]})]})}),m(D?.menuId)?e.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[e.jsx(s.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),e.jsx("div",{style:{marginTop:4},children:`📁 > ${V}`||"알 수 없음"})]}):L(),e.jsxs(Ne,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[D&&!m(D.menuId)?e.jsx(s.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:e.jsx(q.PlusOutlined,{}),onClick:()=>{const F=String(c[0]);let Q="-";F&&P[F]&&(Q=P[F].type=="M"?P[F].prntBkmkId:F),U(Q,D)},children:"추가"}):e.jsxs(Ne,{layoutAlign:"between",children:[e.jsx(s.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:e.jsx(q.FolderOpenOutlined,{}),onClick:()=>v(!0),children:"폴더 변경"}),e.jsx(s.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:e.jsx(q.MinusOutlined,{}),onClick:()=>k(D.menuId),children:"삭제"})]}),e.jsx(s.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:e.jsx(q.SettingOutlined,{}),onClick:()=>{g(r),x(!0)},children:"관리"})]})]}),children:e.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:t})}),e.jsx(_0,{open:f,onClose:()=>{x(!1),E&&n(!0)}})]})}const L0=({reqRows:t,subRows:r})=>{const{searchBoxRef:n}=ht.useSearchBox();return e.jsx(Vn,{ref:n,reqRows:t,subRows:r})},xt=({children:t,searchBox:r,title:n,preRenderEvents:o=[],postRenderEvents:i=[],loading:a=!1,error:l=null,grantEvent:c={},customEvent:d={},buttons:p})=>{ht.useServiceCodeValue("AUTH_BTNS");const{user:h}=ut.useUserStore(),{activeMenuItem:f}=ut.useMenuViewStore(),{loadFavoritesIfNeeded:x,isMenuBookmarked:E}=ut.useFavoriteStore(),{loading:g}=ut.useLoadingStore(),[j,v]=u.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),{openCorePopup:b}=ht.usePopup(),w=async()=>{if(o.length===0){v($=>({...$,preRenderComplete:!0}));return}try{for(const $ of o)await $();v($=>({...$,preRenderComplete:!0}))}catch($){v(M=>({...M,error:$ instanceof Error?$.message:"사전 렌더링 실패",preRenderComplete:!0}))}},P=async()=>{if(i.length===0){v($=>({...$,postRenderComplete:!0}));return}try{for(const $ of i)await $();v($=>({...$,postRenderComplete:!0}))}catch($){v(M=>({...M,error:$ instanceof Error?$.message:"사후 렌더링 실패",postRenderComplete:!0}))}};u.useEffect(()=>{if(j.isInitialized)return;(async()=>{try{await w(),v(M=>({...M,isInitialized:!0,loading:!1}))}catch(M){console.error("BwgView 초기화 실패:",M),v(D=>({...D,isInitialized:!0,loading:!1}))}})()},[]),u.useEffect(()=>{h?.userId&&x(h.userId)},[x,h?.userId]),u.useEffect(()=>{j.isInitialized&&j.preRenderComplete&&!j.isReady&&setTimeout(async()=>{await P(),v(M=>({...M,isReady:!0}))},100)},[j.isInitialized,j.preRenderComplete,j.isReady]),u.useEffect(()=>{l&&v($=>({...$,error:l}))},[l]);const B=()=>e.jsxs("div",{className:"bwgview-header-container",children:[e.jsxs("div",{className:"bwgview-header",children:[e.jsx("div",{className:"bwgview-header-left",children:N.LEFT}),e.jsx("div",{className:"bwgview-header-right",children:N.RIGHT})]}),r&&e.jsx(L0,{reqRows:r.reqRows,subRows:r.subRows})]});if(u.useEffect(()=>{},[h,f]),j.error||l)return e.jsx("div",{style:{padding:"24px"},children:e.jsx(s.Alert,{message:"오류 발생",description:j.error||l,type:"error",showIcon:!0})});const C=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:e.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),m=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:e.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),R=$=>e.jsx(q,{component:C,...$}),T=$=>e.jsx(q,{component:m,...$}),N={LEFT:e.jsx("div",{className:"bwgview-header-left",children:e.jsxs(s.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[e.jsxs(s.Space,{children:[f&&e.jsx(z0,{triggerIcon:E(f.menuId)?e.jsx(R,{className:"bookmark-icon",style:{color:"#faad14"}}):e.jsx(T,{className:"bookmark-icon"})}),e.jsxs(s.Space.Compact,{style:{alignItems:"center"},children:[e.jsx("span",{className:"pageMenuNm",children:(()=>{let $="";return n?.useMenuTitle&&f?$=f.menuNm:n?.text?$=n.text:f&&($=f.menuPrntId==="CM00"?f.menuNm.substring(f.menuNm.indexOf(" ")+1):f.menuNm),n?.prefix&&($=`${n.prefix} ${$}`),n?.suffix&&($=`${$} ${n.suffix}`),$})()}),f?.menuNo&&e.jsx(s.Tag,{className:"page-num-tag",children:f?.menuNo}),e.jsx(s.Tooltip,{title:"도움말",color:"geekblue",children:e.jsx(s.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:e.jsx(q.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),e.jsx(s.Tooltip,{title:"게시판",color:"geekblue",children:e.jsx(s.Button,{variant:"text",type:"text",onClick:()=>b("CORE_REPORT"),icon:e.jsx(q.BugFilled,{style:{color:"#1890ff"}})})})]})]}),f?.scrnId&&ae.isLocal&&e.jsx(s.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:e.jsx($0,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:f?.scrnId})})]})}),RIGHT:e.jsx("div",{className:"bwgview-header-right",children:e.jsx(s.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:e.jsxs(s.Space,{children:[e.jsx(s.Flex,{gap:8,children:e.jsx(Xi,{checkAuth:f?.menuId?{menuId:f.menuId,grpId:"CUSTOM"}:!1,buttons:p?.custom||[],gap:8})}),e.jsx(s.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:e.jsx(s.Divider,{type:"vertical"})}),e.jsx(s.Flex,{gap:8,className:"permission-buttons",children:e.jsx(Xi,{checkAuth:f?.menuId?{menuId:f.menuId,grpId:"DEFAULT"}:!1,buttons:p?.grant||[],gap:8})})]})})})};return e.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[B(),e.jsx("div",{className:"bwgview-content",children:e.jsxs("div",{className:"bwgview-content",children:[e.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:t}),(j.loading||a||g)&&e.jsx(Ru.LoadingContainer,{text:g?"처리 중...":"화면 로드 중..."})]})})]})},F0=({children:t,customTheme:r,customComponentSize:n="middle"})=>{const o={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,padding:16,margin:16,borderRadius:6,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:s.theme.defaultAlgorithm},i={...o,...r,token:{...o.token,...r?.token}};return e.jsx(s.ConfigProvider,{locale:ic,theme:i,componentSize:n,space:{size:n},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:t})},H0="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9289)'%3e%3cpath%20d='M27.3705%2010.9919C28.5405%2010.9919%2029.489%2010.0434%2029.489%208.87338C29.489%207.70337%2028.5405%206.75488%2027.3705%206.75488C26.2004%206.75488%2025.252%207.70337%2025.252%208.87338C25.252%2010.0434%2026.2004%2010.9919%2027.3705%2010.9919Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.3053%2017.2998V32.3098H24.4248V17.2998'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M27.3701%2032.31V23.3135'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2305%2022.1925V17.642V15.6945C22.2305%2014.3075%2023.3515%2013.1865%2024.7385%2013.1865H29.9825C31.3695%2013.1865%2032.4905%2014.3075%2032.4905%2015.6945V17.642V22.1925'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.2519%2021.4229H18.6199C19.1044%2021.4229%2019.5034%2021.8219%2019.5034%2022.3064V24.4154H16.3779V22.3064C16.3779%2021.8219%2016.7769%2021.4229%2017.2614%2021.4229H17.2519Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.8339%2024.4062H15.0294C14.6254%2024.4062%2014.2979%2024.7338%2014.2979%2025.1377V31.6832C14.2979%2032.0872%2014.6254%2032.4147%2015.0294%2032.4147H20.8339C21.2378%2032.4147%2021.5654%2032.0872%2021.5654%2031.6832V25.1377C21.5654%2024.7338%2021.2378%2024.4062%2020.8339%2024.4062Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.8252%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.0391%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.71875%2014.1642H8.53075C9.03425%2014.1642%209.49025%2013.8602%209.68025%2013.4042L10.3263%2011.8652'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.4991%205.54803L12.2266%2011.8655H17.5371L19.8836%205.51953L17.4991%205.54803Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2017%2016.4639H6.57421C5.97571%2016.4639%205.49121%2015.9794%205.49121%2015.3809C5.49121%2013.4334%207.06821%2011.8564%209.01571%2011.8564H20.3492'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.56738%2032.4805H32.2909'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9289'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",V0="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9314)'%3e%3cpath%20d='M15.1807%2019.3994L18.7717%2029.7164'%20stroke='%23FF8CC3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2010.7443%2014.7724%2013.2618%2022.0209'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2016.2448%2012.8534%2018.7718%2020.1019'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8257%2016.71C22.2202%2012.112%2017.1947%209.67999%2012.5967%2011.276C7.99871%2012.8815%205.56671%2017.907%207.16271%2022.505L7.67571%2023.968L7.88471%2023.892C7.93221%2022.7235%208.67321%2021.6405%209.85121%2021.232C11.0292%2020.8235%2012.2737%2021.2035%2013.0432%2022.0965L13.4422%2021.954C13.4897%2020.7855%2014.2307%2019.7025%2015.4087%2019.294C16.5867%2018.8855%2017.8312%2019.2655%2018.6007%2020.1585L18.9997%2020.016C19.0472%2018.8475%2019.7882%2017.7645%2020.9662%2017.356C22.1442%2016.9475%2023.3887%2017.3275%2024.1582%2018.2205L24.3577%2018.154L23.8447%2016.691L23.8257%2016.71Z'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.37%2015.4193C23.636%2015.4858%2023.9115%2015.5238%2024.1965%2015.5238C26.068%2015.5238%2027.5785%2014.0038%2027.5785%2012.1418C27.5785%2010.2798%2026.0585%208.75977%2024.1965%208.75977C22.3345%208.75977%2020.8145%2010.2798%2020.8145%2012.1418'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24.2061%206.12784V5.00684'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.8641%207.79018L19.1611%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5381%2016.4736L29.2411%2017.1766'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.21%2012.1318H31.331'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5469%207.79018L29.2404%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29.3355%2029.8213H14.2305'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.2302%2029.8213L10.3447%2025.2803'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8527%2028.4531L7.76074%2032.9941'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8447%2029.8213L27.4072%2032.9943'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9314'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",W0="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9273)'%3e%3cpath%20d='M25.9254%2020.8996C27.5151%2020.8996%2028.8039%2019.6108%2028.8039%2018.0211C28.8039%2016.4313%2027.5151%2015.1426%2025.9254%2015.1426C24.3356%2015.1426%2023.0469%2016.4313%2023.0469%2018.0211C23.0469%2019.6108%2024.3356%2020.8996%2025.9254%2020.8996Z'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M31.4825%2032.4711V25.9066C31.4825%2024.5671%2030.485%2023.4746%2029.2595%2023.4746H22.6C21.3745%2023.4746%2020.377%2024.5671%2020.377%2025.9066'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M25.2696%2026.7334H14.2686L16.5106%2032.6234H27.5021L25.2696%2026.7334Z'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.5617%2018.8385C6.1462%2017.4135%205.2627%2015.447%205.2627%2013.2715C5.2627%208.91095%208.7967%205.37695%2013.1572%205.37695C17.5177%205.37695%2021.0517%208.91095%2021.0517%2013.2715C21.0517%2015.124%2020.4152%2016.815%2019.3512%2018.164C18.0497%2019.8075%2016.1117%2020.919%2013.9172%2021.128'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%2013.2715L16.0167%2015.5705'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%208.62598V13.2715'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.35963%2016.1973L7.84663%2019.1328L4.91113%2018.6293'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.91113%2032.623H33.0881'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9273'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",U0=({children:t})=>{const[r,n]=u.useState({x:0,y:0}),[o,i]=u.useState(!1),[a,l]=u.useState({x:0,y:0}),[c,d]=u.useState(!1),[p,h]=u.useState(!0),f=u.useRef(null),x=[{id:"overtime",title:"시간 외 근무신청",icon:e.jsx("img",{src:W0,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:e.jsx("img",{src:H0,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:e.jsx("img",{src:V0,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:e.jsx(q.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:e.jsx(q.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:e.jsx(q.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];u.useEffect(()=>{const w=()=>{const P=window.innerHeight,C=Math.max(64,(P-300)/3);n({x:0,y:C});const m=P/2;h(C<m)};return w(),window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[]);const E=w=>{if(w.preventDefault(),w.stopPropagation(),f.current){const P=f.current.getBoundingClientRect();l({x:w.clientX-P.left,y:w.clientY-P.top}),i(!0)}},g=w=>{if(o){const P=w.clientY-a.y,B=window.innerHeight-24,m=Math.max(64,Math.min(B,P));n({x:r.x,y:m});const R=window.innerHeight/2;h(m<R)}},j=()=>{i(!1)},v=()=>{d(!c)},b=w=>{w.onClick&&w.onClick()};return u.useEffect(()=>{if(o)return document.addEventListener("mousemove",g),document.addEventListener("mouseup",j),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",j)}},[o,a]),e.jsxs("div",{className:"quick-tab-container",ref:f,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[e.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:p?0:"auto",bottom:p?"auto":0,display:"flex",flexDirection:"column",gap:"15px",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:p?`calc(100vh - ${r.y+12}px)`:`${r.y-12}px`,transform:c?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:p&&r.y<100?"32px":"0",marginBottom:!p&&r.y>window.innerHeight-100?"8px":"0"},children:[e.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:p?`calc(100vh - ${r.y+120}px)`:`${r.y-60}px`,padding:"14px 0"},children:x.map(w=>e.jsx(s.Card,{className:"quick-tab-items",size:"small",style:{border:"none",boxShadow:"none",marginBottom:"15px",cursor:"pointer",transition:"all 0.2s ease"},styles:{body:{padding:"0"}},onClick:()=>b(w),onMouseEnter:P=>{},onMouseLeave:P=>{},children:e.jsxs("div",{className:"quick-tab-item-inner",children:[e.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:w.color,marginBottom:"5px"},children:w.icon}),e.jsx("div",{className:"quick-tab-items-title",children:w.title})]})},w.id))}),e.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:w=>{},onMouseLeave:w=>{},children:e.jsx(q.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),e.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:o?"grabbing":"grab",zIndex:1001},onMouseDown:w=>E(w)}),e.jsx(s.Button,{className:`quick-tab-toggle-btn ${c?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:v})]})},G0=()=>{const{verifyWithToken:t}=ht.useAuth(),r=sa.useNavigate(),n=sa.useLocation();return u.useEffect(()=>{const i=new URLSearchParams(n.search).get("token");if(!i){r("/login",{replace:!0});return}(async()=>{const a=await t(i);r(a?"/main":"/login",{replace:!0})})()},[n.search]),e.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:e.jsx(s.Spin,{tip:"인증중..."})})},K0=t=>{const{showPopup:r}=ht.usePopup(),n=u.useRef(null),o=u.useRef(null),i=u.useRef(null),a=u.useRef(null),[l,c]=u.useState(!1),[d,p]=u.useState(null),[h,f]=u.useState("common"),{getCodeColor:x,getCodeName:E,getCodeList:g}=ht.useCommonCode(),j=u.useMemo(()=>Ns((S,I,L,F,Q)=>{const z=I.value,_=x?.(z)||"blue",Y=E?.(z)||z,ee=z?e.jsx(s.Tag,{color:_,style:{fontSize:"11px"},children:Y}):null;Q.render(e.jsx("div",{style:{padding:"4px"},children:ee}))}),[x,E]),[v,b]=u.useState({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),[w,P]=u.useState(!1),B=u.useMemo(()=>[{fieldName:"authId",header:{text:"권한ID"},width:120,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:120,visible:!1},{fieldName:"menuNm",header:{text:"메뉴명"},width:200,visible:!1},{fieldName:"grpId",header:{text:"그룹ID"},width:100},{fieldName:"btnId",header:{text:"버튼ID"},width:100},{fieldName:"btnNm",header:{text:"버튼명"},width:150},{fieldName:"btnSq",header:{text:"출력순서"},width:80,dataType:"number"},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),C={container:{check:!0,indicator:!0,footer:!0}},m={onCurrentRowChanged(S,I,L){console.log("공통 버튼 그리드 - 현재 행 변경:",{oldRow:I,newRow:L,activeTabKey:h})}},R={onCurrentRowChanged(S,I,L){console.log("커스텀 버튼 그리드 - 현재 행 변경:",{oldRow:I,newRow:L,activeTabKey:h})}},T=S=>{f(S)};u.useEffect(()=>{},[]),u.useEffect(()=>{const S=o.current?.vw?.getCurrent().itemIndex??-1;if(S<0)return;const I=o.current?.vw?.getValues(S);M.SCMAUTH00201({crprCd:I.crprCd,systId:I.systId,authId:I.authId,menuId:I.authMenu,grpId:h==="common"?"DEFAULT":"CUSTOM"})},[h]);const N=u.useMemo(()=>[{fieldName:"crprCd",header:{text:"회사코드"},width:80,visible:!1},{fieldName:"systId",header:{text:"업무분류"},width:80,renderer:"tag"},{fieldName:"authId",header:{text:"권한ID"},width:120,required:!0},{fieldName:"authNm",header:{text:"권한명칭"},width:200,styleName:"left",editable:!0},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{fieldName:"authMenu",header:{text:"메뉴"},width:100,visible:!1},{fieldName:"authMenuNm",header:{text:"메뉴"},width:100,styleName:"left"},{fieldName:"authDscr",header:{text:"권한설명"},width:300,visible:!1}],[]),$={onCurrentRowChanged(S,I,L){if(L<0)return;const F=S.getValues(L);console.log("권한 선택:",F),console.log("현재 activeTabKey:",h),n.current?.setFieldsValue(F),M.SCMAUTH00201({crprCd:F.crprCd,systId:F.systId,authId:F.authId,menuId:F.authMenu,grpId:h==="common"?"DEFAULT":"CUSTOM"})}},M={SCMAUTH00101:()=>{ae.callService("SCMAUTH00101",{crprCd:ae.getCrprCd()},{},t.appCd).then(S=>{o.current?.addAllData(S.data)})},SCMAUTH00102:S=>{ae.callService("SCMAUTH00102",{...S},{},t.appCd).then(I=>{I.result||n.current?.setFields([{name:"authId",errors:[I.message]}])})},SCMAUTH00201:S=>{ae.callService("SCMAUTH00201",{...S},{},t.appCd).then(I=>{h==="common"?i.current?.addAllData(I.data):a.current?.addAllData(I.data)}).catch(I=>{console.error("SCMAUTH00201 호출 실패:",I)})},SCMAUTH00301:async S=>{try{const I=await ae.callService("SCMAUTH00301",{...S,crprCd:ae.getCrprCd()},{},t.appCd);return console.log("권한 정보 저장 성공:",I),P(!1),M.SCMAUTH00101(),I}catch(I){throw console.error("권한 정보 저장 실패:",I),I}},SCMAUTH00401:async S=>{try{const I=await ae.callService("SCMAUTH00401",{...S,crprCd:ae.getCrprCd()},{},t.appCd);return console.log("권한 정보 수정 성공:",I),P(!1),M.SCMAUTH00101(),I}catch(I){throw console.error("권한 정보 수정 실패:",I),I}}},D={search:()=>{M.SCMAUTH00101()},new:()=>{P(!1),b({crprCd:String(ae.getCrprCd()||""),systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),c(!0)},edit:()=>{const S=o.current?.getCurrentRow();S&&typeof S=="object"&&(P(!0),b({crprCd:S.crprCd||String(ae.getCrprCd()||""),systId:S.systId||"",authId:S.authId||"",authNm:S.authNm||"",authDscr:S.authDscr||"",authMenu:S.authMenu||"",enblYn:S.enblYn||"Y"}),c(!0))}},V={openPopup:S=>{r("CMDprtSrchP02",{isDefault:S})},add:()=>{console.log("add")},modify:()=>{console.log("edit")},delete:()=>{console.log("delete")}},U=(S,I)=>{b(L=>({...L,[S]:I}))},k=async()=>{try{w||await M.SCMAUTH00102({auth:n.current?.getFieldsValue()})}catch(S){console.error("권한 정보 처리 실패:",S)}};return u.useEffect(()=>{M.SCMAUTH00101()},[]),u.useEffect(()=>{},[o.current?.getGridInstance()?.gridView]),e.jsx(xt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{D.search()}},{id:"new",label:"신규",onClick:()=>{D.new()}},{id:"edit",label:"수정",onClick:()=>{D.edit()}}]},children:e.jsxs(Ne,{children:[e.jsxs(Ce,{className:"w40",children:[e.jsx(ke,{title:"권한 관리",icons:{type:"antd"},children:e.jsx(s.Popover,{styles:{body:{border:"1px solid #ededed",background:"#ededed"}},content:e.jsxs(s.Flex,{gap:3,children:[e.jsx(s.Button,{type:"primary",onClick:()=>V.openPopup(!0),children:"공통권한버튼"}),e.jsx(s.Button,{onClick:()=>V.openPopup(!1),children:"커스텀 버튼"})]}),placement:"bottom",children:e.jsx(s.Button,{icon:e.jsx(q.SettingTwoTone,{}),title:"버튼관리",children:"버튼관리"})})}),e.jsx($e,{type:"nrml",ref:o,gridColumns:N,renderers:[{name:"tag",renderer:j}],gridOptions:{container:{indicator:!0,check:!0,checkAll:!0}},gridEvents:$})]}),e.jsx(Ce,{className:"w60",border:!0,children:e.jsxs(Ut,{title:"권한 상세",children:[e.jsxs(H.BwgForm,{ref:n,style:{padding:"10px 20px"},children:[e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:8,children:e.jsx(H.BwgSelect,{itemProps:{label:"업무분류",name:"systId"},selectProps:{variant:"borderless",options:g("SYST"),copyable:!0,disabled:!0}})}),e.jsx(s.Col,{span:8,children:e.jsx(H.BwgFormItem,{label:"사용여부",name:"enblYn",children:e.jsx(s.Select,{variant:"borderless",options:[{label:"사용",value:"Y"},{label:"미사용",value:"N"}],disabled:!0})})}),e.jsx(s.Col,{span:8})]}),e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:8,children:e.jsx(H.BwgFormItem,{label:"권한ID",name:"authId",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})})}),e.jsx(s.Col,{span:16,children:e.jsx(H.BwgFormItem,{label:"권한명",name:"authNm",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})})})]}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgFormItem,{label:"권한메뉴",style:{width:"100%",marginBottom:0},validateStatus:"",help:"",children:e.jsxs(s.Space.Compact,{block:!0,children:[e.jsx(s.Form.Item,{name:"authMenu",style:{width:"40%"},validateStatus:"",help:"",children:e.jsx(s.Input,{readOnly:!0,variant:"filled"})}),e.jsx(s.Form.Item,{name:"authMenuNm",style:{width:"60%"},validateStatus:"",help:"",children:e.jsx(s.Input,{readOnly:!0})})]})})})}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgFormItem,{label:"권한설명",name:"authDscr",children:e.jsx(s.Input.TextArea,{variant:"borderless",readOnly:!0})})})})]}),e.jsx(mt,{size:"small",activeKey:h,onChange:T,items:[{key:"common",label:"공통버튼",children:e.jsxs(Ce,{children:[e.jsx(ke,{title:"공통 버튼 매핑",children:e.jsx(Qi,{grpId:"AUTH",menuId:"CM010303",btnEvent:V})}),e.jsx($e,{ref:i,type:"nrml",gridColumns:B,gridOptions:C,gridEvents:m})]})},{key:"custom",label:"커스텀",children:e.jsxs(Ce,{children:[e.jsx(ke,{title:"커스텀 버튼 매핑",children:e.jsx(Qi,{grpId:"AUTH2",menuId:"CM010303"})}),e.jsx($e,{ref:a,type:"nrml",gridColumns:B,gridOptions:C,gridEvents:R})]})}],tabPosition:"left"})]})}),e.jsx(Xr,{title:`권한별 메뉴 관리 - ${d?.authNm||""}`,open:l,placement:"right",onClose:()=>{c(!1),b({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),P(!1)},width:"40%",size:"large",afterOpenChange:S=>{console.log("afterOpenChange:",S)},footer:e.jsxs("div",{className:"drawer-footer-btn-group",children:[e.jsx(s.Button,{onClick:()=>{c(!1),n.current?.resetFields(),P(!1)},className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:k,className:"bwg-btn",children:"저장"})]}),children:e.jsxs(H.BwgForm,{ref:n,initialValues:v,children:[e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{itemProps:{name:["crprCd","crprNm"],label:"회사 코드"},placeholder:["회사 코드","회사 명칭"],popuCd:"CMAuthMstrP01"})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{name:"systId",label:"시스템 ID"},selectProps:{variant:"borderless",options:g("SYST"),copyable:!0,disabled:!0}})})]}),e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{name:"authId",label:"권한 ID",children:e.jsx(s.Input,{onChange:S=>U("authId",S.target.value),placeholder:"권한 ID를 입력하세요",disabled:w})})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{name:"enblYn",label:"사용여부",children:e.jsx(s.Select,{onChange:S=>U("enblYn",S),options:[{value:"Y",label:"사용"},{value:"N",label:"미사용"}]})})})]}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgFormItem,{name:"authNm",label:"권한 명칭",children:e.jsx(s.Input,{onChange:S=>U("authNm",S.target.value),placeholder:"권한 명칭을 입력하세요"})})})}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgFormItem,{name:"authDscr",label:"권한 설명",children:e.jsx(s.Input.TextArea,{onChange:S=>U("authDscr",S.target.value),placeholder:"권한 설명을 입력하세요",rows:2})})})}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgSearch,{itemProps:{name:["authMenu","authMenuNm"],label:"권한 메뉴"},placeholder:["메뉴ID","메뉴명명"],popuCd:"CMMenuMstrP01"})})})]})})]})})},Y0=t=>{const r=u.useRef(null),n=u.useRef(null),o=u.useRef(null),[i,a]=u.useState("menu"),l=u.useMemo(()=>Ns((g,j,v,b,w)=>{const P=g.getValue(j.index?.itemIndex,"systId"),B=g.getValue(j.index?.itemIndex,"roleId"),C=g.getValue(j.index?.itemIndex,"roleNm"),m=g.getValue(j.index?.itemIndex,"enblYn"),R=g.getValue(j.index?.itemIndex,"roleDscr");w.render(e.jsx(s.Card,{size:"small",style:{height:"95px"},children:e.jsxs(s.Flex,{style:{height:"95px"},children:[e.jsxs(Ce,{className:"w60",style:{position:"relative",padding:"8px"},children:[e.jsx("div",{style:{position:"absolute",top:"8px",left:"8px"},children:e.jsx(s.Tag,{color:"blue",style:{fontSize:"13px"},children:P})}),e.jsx("div",{style:{position:"absolute",top:"30%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"16px",fontWeight:"bold",color:"#262626",textAlign:"center"},children:C}),e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translateX(-50%)",fontSize:"13px",color:"#8c8c8c",fontFamily:"monospace"},children:B}),e.jsx("div",{style:{position:"absolute",bottom:"8px",right:"8px",fontSize:"16px",color:m==="Y"?"#52c41a":"#ff4d4f"},children:m==="Y"?e.jsx(q.CheckCircleOutlined,{style:{color:"#52c41a"}}):e.jsx(q.CloseCircleOutlined,{style:{color:"#ff4d4f"}})})]}),e.jsx(s.Divider,{type:"vertical",style:{height:"95px"}}),e.jsx(Ce,{className:"w40",children:R&&e.jsx(s.Typography.Text,{style:{fontSize:"13px",color:"#595959",lineHeight:"1.4",textAlign:"left",display:"block",wordBreak:"break-word",whiteSpace:"pre-wrap"},children:e.jsx("blockquote",{children:R})})})]})}))}),[]),c=u.useMemo(()=>[{fieldName:"crprCd",header:{text:"법인코드"},width:100,visible:!1},{fieldName:"systId",header:{text:"시스템ID"},width:100,renderer:"systCard"},{fieldName:"roleId",header:{text:"역할ID"},width:120},{fieldName:"roleNm",header:{text:"역할명"},width:150},{fieldName:"roleDscr",header:{text:"역할설명"},width:200,visible:!1},{fieldName:"sortOrd",header:{text:"정렬순서"},width:80,visible:!1},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"},visible:!1}],[]),d=[{fieldName:"crprCd",header:{text:"법인코드"},width:100,visible:!1},{fieldName:"roleId",header:{text:"역할ID"},width:120,visible:!1},{fieldName:"dprtCd",header:{text:"부서코드"},width:120},{fieldName:"dprtNm",header:{text:"부서"},width:120},{fieldName:"subSyncYn",header:{text:"동기화여부"},width:100,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],p=[{fieldName:"userId",header:{text:"사용자ID"},width:120},{fieldName:"userNm",header:{text:"사용자명"},width:150},{fieldName:"deptNm",header:{text:"부서명"},width:150},{fieldName:"email",header:{text:"이메일"},width:200,visible:!1},{fieldName:"enblYn",header:{text:"사용여부"},width:80,visible:!1}],h=u.useMemo(()=>({display:{rowHeight:100},layout:{colspan:[{fieldName:"systId",span:3}]},container:{state:!0,check:!0,checkAll:!0,indicator:!0,footer:!0}}),[]),f={onCurrentRowChanged(g,j,v){if(v<0)return;const b=g.getValues(v);switch(i){case"menu":break;case"dept":x.SCMROLE00103(b.roleId);break;case"user":x.SCMROLE00104(b.roleId);break}}},x={SCMROLE00101:()=>{ae.callService("SCMROLE00101",{crprCd:ae.getCrprCd()},{},t.appCd).then(g=>{console.log("SCMROLE00101:",g),r.current?.addAllData(g.data)})},SCMROLE00102:g=>{ae.callService("SCMROLE00102",{crprCd:ae.getCrprCd(),roleId:g},{},t.appCd).then(j=>{console.log("SCMROLE00102:",j)})},SCMROLE00103:g=>{ae.callService("SCMROLE00103",{crprCd:ae.getCrprCd(),roleId:g},{},t.appCd).then(j=>{console.log("SCMROLE00103:",j),n.current?.addAllData(j.data)})},SCMROLE00104:g=>{ae.callService("SCMROLE00104",{crprCd:ae.getCrprCd(),roleId:g},{},t.appCd).then(j=>{console.log("SCMROLE00104:",j),o.current?.addAllData(j.data)})}},E={search:()=>{x.SCMROLE00101()}};return u.useEffect(()=>{const g=r.current?.getCurrentIndex()??-1;if(g<0)return;const j=r.current?.vw?.getValue(g,"roleId");switch(i){case"menu":break;case"dept":x.SCMROLE00103(j);break;case"user":x.SCMROLE00104(j);break}},[i]),e.jsx(xt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{E.search()}}]},children:e.jsxs(Ne,{children:[e.jsxs(Ce,{className:"w40",children:[e.jsx(ke,{title:"역할 목록",icons:{type:"antd"}}),e.jsx($e,{ref:r,type:"nrml",gridColumns:c,gridOptions:h,gridEvents:f,renderers:[{name:"systCard",renderer:l}]})]}),e.jsxs(Ce,{className:"w60",children:[e.jsx(ke,{title:"역할별 관리"}),e.jsx(s.Tabs,{className:"bwg-tab",activeKey:i,onChange:g=>a(g),items:[{key:"menu",label:"역할별 메뉴",icon:e.jsx(q.MenuOutlined,{}),children:e.jsx($e,{type:"tree",gridColumns:[{fieldName:"menuId",header:{text:"메뉴ID"},width:120},{fieldName:"menuNm",header:{text:"메뉴명"},width:200},{fieldName:"menuPath",header:{text:"메뉴경로"},width:300},{fieldName:"enblYn",header:{text:"사용여부"},width:80}],gridOptions:{display:{rowHeight:40}}})},{key:"dept",label:"역할별 부서",icon:e.jsx(q.TeamOutlined,{}),children:e.jsxs(Ne,{children:[e.jsx(Ce,{className:"w50",children:e.jsx($e,{ref:n,type:"nrml",gridColumns:d,gridOptions:{display:{rowHeight:40}}})}),e.jsx(Ce,{className:"w50",border:!0,children:e.jsx(Ut,{title:"부서정보",children:"123"})})]})},{key:"user",label:"역할별 사용자",icon:e.jsx(q.UserOutlined,{}),children:e.jsxs(Ne,{children:[e.jsx(Ce,{className:"w50",children:e.jsx($e,{ref:o,type:"nrml",gridColumns:p,gridOptions:{display:{rowHeight:40}}})}),e.jsx(Ce,{className:"w50",border:!0,children:e.jsx(Ut,{title:"사용자정보",children:"123"})})]})}]})]})]})})};var wn={},Wl;function q0(){if(Wl)return wn;Wl=1;function t(C){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(C)}Object.defineProperty(wn,"__esModule",{value:!0}),wn.CopyToClipboard=void 0;var r=i(u),n=i(lu()),o=["text","onCopy","options","children"];function i(C){return C&&C.__esModule?C:{default:C}}function a(C,m){var R=Object.keys(C);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(C);m&&(T=T.filter(function(N){return Object.getOwnPropertyDescriptor(C,N).enumerable})),R.push.apply(R,T)}return R}function l(C){for(var m=1;m<arguments.length;m++){var R=arguments[m]!=null?arguments[m]:{};m%2?a(Object(R),!0).forEach(function(T){P(C,T,R[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(R)):a(Object(R)).forEach(function(T){Object.defineProperty(C,T,Object.getOwnPropertyDescriptor(R,T))})}return C}function c(C,m){if(C==null)return{};var R=d(C,m),T,N;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(C);for(N=0;N<$.length;N++)T=$[N],!(m.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(C,T)&&(R[T]=C[T])}return R}function d(C,m){if(C==null)return{};var R={},T=Object.keys(C),N,$;for($=0;$<T.length;$++)N=T[$],!(m.indexOf(N)>=0)&&(R[N]=C[N]);return R}function p(C,m){if(!(C instanceof m))throw new TypeError("Cannot call a class as a function")}function h(C,m){for(var R=0;R<m.length;R++){var T=m[R];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(C,T.key,T)}}function f(C,m,R){return m&&h(C.prototype,m),Object.defineProperty(C,"prototype",{writable:!1}),C}function x(C,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(m&&m.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),m&&E(C,m)}function E(C,m){return E=Object.setPrototypeOf||function(T,N){return T.__proto__=N,T},E(C,m)}function g(C){var m=b();return function(){var T=w(C),N;if(m){var $=w(this).constructor;N=Reflect.construct(T,arguments,$)}else N=T.apply(this,arguments);return j(this,N)}}function j(C,m){if(m&&(t(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(C)}function v(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w(C){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},w(C)}function P(C,m,R){return m in C?Object.defineProperty(C,m,{value:R,enumerable:!0,configurable:!0,writable:!0}):C[m]=R,C}var B=(function(C){x(R,C);var m=g(R);function R(){var T;p(this,R);for(var N=arguments.length,$=new Array(N),M=0;M<N;M++)$[M]=arguments[M];return T=m.call.apply(m,[this].concat($)),P(v(T),"onClick",function(D){var V=T.props,U=V.text,k=V.onCopy,S=V.children,I=V.options,L=r.default.Children.only(S),F=(0,n.default)(U,I);k&&k(U,F),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(D)}),T}return f(R,[{key:"render",value:function(){var N=this.props,$=N.children,M=c(N,o),D=r.default.Children.only($);return r.default.cloneElement(D,l(l({},M),{},{onClick:this.onClick}))}}]),R})(r.default.PureComponent);return wn.CopyToClipboard=B,P(B,"defaultProps",{onCopy:void 0,options:void 0}),wn}var Ki,Ul;function X0(){if(Ul)return Ki;Ul=1;var t=q0(),r=t.CopyToClipboard;return r.CopyToClipboard=r,Ki=r,Ki}var Q0=X0();const ra=Hn(Q0),bt=({children:t,onClick:r,isActive:n=!1,icon:o})=>{const[i,a]=u.useState(!1),l={width:"100%",textAlign:"left",marginBottom:"8px",border:"none",borderRadius:"8px",padding:"12px 16px",fontWeight:500,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",background:n?"#00bcd4":"transparent",color:n?"#ffffff":"#595959",transform:i?"translateX(4px)":"translateX(0)",boxShadow:n?i?"0 4px 12px rgba(0, 188, 212, 0.3)":"none":i?"0 2px 8px rgba(0, 0, 0, 0.1)":"none"},c={position:"absolute",left:0,top:0,bottom:0,width:"4px",background:"#00bcd4",borderRadius:"0 2px 2px 0"};return e.jsxs(s.Button,{type:"text",onClick:r,style:l,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[n&&e.jsx("div",{style:c}),o&&e.jsx("span",{style:{marginRight:"8px",fontSize:"16px"},children:o}),e.jsx("span",{style:{fontSize:"14px",lineHeight:1.4},children:t})]})},Ct=({importText:t,onCopy:r})=>e.jsx(ra,{text:t,onCopy:()=>{s.message.success("import 문이 복사되었습니다!"),r?.()},children:e.jsxs("div",{style:{background:"#1e1e1e",border:"1px solid #3c3c3c",borderRadius:"6px",padding:"12px 16px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',fontSize:"13px",color:"#d4d4d4",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"all 0.2s ease",userSelect:"none"},onMouseEnter:n=>{n.currentTarget.style.background="#2d2d30",n.currentTarget.style.borderColor="#4a4a4a"},onMouseLeave:n=>{n.currentTarget.style.background="#1e1e1e",n.currentTarget.style.borderColor="#3c3c3c"},children:[e.jsx("code",{children:t}),e.jsx(q.CopyOutlined,{style:{color:"#858585",fontSize:"14px"}})]})}),Dt=({selectedRowKeys:t,onSelectionChange:r,componentName:n})=>{const o=[{property:"label",description:"폼 아이템의 라벨 텍스트입니다. 필수 항목일 경우 자동으로 별표(*)가 추가됩니다.",type:"string | React.ReactNode"},{property:"name",description:"폼 필드의 이름입니다. Form.useForm과 함께 사용되어 필드 값을 관리합니다.",type:"string | string[]"},{property:"rules",description:'필드의 유효성 검사 규칙입니다. Ant Design의 Form.Item rules를 따릅니다. (예: [{ required: true, message: "필수 입력 항목입니다." }])',type:"Rule[]"},{property:"initialValue",description:"필드의 초기값을 설정합니다.",type:"any"}],i=()=>{if(t.length===0){s.message.warning("선택된 속성이 없습니다!");return}const a={label:"'라벨'",name:"'fieldName'",rules:"[{ required: true, message: '필수 항목입니다.' }]",initialValue:"'초기값'"},l=t.map(d=>` ${d}: ${a[d]||"true"}`).join(`,
184
+ `),c=`<${n}
185
+ itemProps={{
186
+ ${l}
187
+ }}
188
+ // ... other props
189
+ />`;navigator.clipboard.writeText(c),s.message.success("선택된 속성으로 코드가 복사되었습니다!")};return e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsx(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:"BwgFormItem 컴포넌트의 모든 속성을 지원합니다. Ant Design의 Form.Item의 속성을 상속받으며, Form과 함께 사용할 때 폼 필드를 제어하는 데 사용됩니다."}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[t.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[t.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:i,disabled:t.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:t,onChange:(a,l)=>{r(a)}},rowKey:"property",pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center",width:"20%"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center",width:"25%"}],dataSource:o})]})},Z0=()=>{const t=u.useRef(null),[r,n]=u.useState("ex_bwg_input"),[o,i]=u.useState([]),[a,l]=u.useState([]),[c,d]=u.useState([]),[p,h]=u.useState([]),[f,x]=u.useState([]),[E,g]=u.useState([]),[j,v]=u.useState([]),[b,w]=u.useState([]),[P,B]=u.useState([]),[C,m]=u.useState([]),[R,T]=u.useState([]),[N,$]=u.useState([]),[M,D]=u.useState([]),[V,U]=u.useState([]),[k,S]=u.useState([]),[I,L]=u.useState([]),[F,Q]=u.useState([]),[z,_]=u.useState([]),[Y,ee]=u.useState([]),[oe,ne]=u.useState([]),[fe,A]=u.useState([]),[K,Z]=u.useState([]);u.useState([]),u.useState([]);const X=O=>{const G=document.getElementById(O);G&&t.current&&(t.current.scrollTo({top:G.offsetTop-20,behavior:"smooth"}),n(O))};return e.jsx(Ho,{children:e.jsxs(s.Row,{style:{height:"100%"},children:[e.jsxs(s.Col,{span:4,style:{height:"100%",overflow:"auto"},children:[e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ke,{title:e.jsx("div",{children:"컴포넌트 목록"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(bt,{onClick:()=>X("ex_bwg_input"),isActive:r==="ex_bwg_input",children:"BwgInput"}),e.jsx(bt,{onClick:()=>X("ex_bwg_textarea"),isActive:r==="ex_bwg_textarea",children:"BwgTextArea"}),e.jsx(bt,{onClick:()=>X("ex_bwg_number"),isActive:r==="ex_bwg_number",children:"BwgNumber"}),e.jsx(bt,{onClick:()=>X("ex_bwg_search"),isActive:r==="ex_bwg_search",children:"BwgSearch"}),e.jsx(bt,{onClick:()=>X("ex_bwg_select"),isActive:r==="ex_bwg_select",children:"BwgSelect"}),e.jsx(bt,{onClick:()=>X("ex_bwg_multiselect"),isActive:r==="ex_bwg_multiselect",children:"BwgMultiSelect"}),e.jsx(bt,{onClick:()=>X("ex_bwg_datepicker"),isActive:r==="ex_bwg_datepicker",children:"BwgDatePicker"}),e.jsx(bt,{onClick:()=>X("ex_bwg_rangepicker"),isActive:r==="ex_bwg_rangepicker",children:"BwgRangePicker"}),e.jsx(bt,{onClick:()=>X("ex_bwg_check"),isActive:r==="ex_bwg_check",children:"BwgCheck"}),e.jsx(bt,{onClick:()=>X("ex_bwg_checklist"),isActive:r==="ex_bwg_checklist",children:"BwgCheckList"}),e.jsx(bt,{onClick:()=>X("ex_bwg_radio"),isActive:r==="ex_bwg_radio",children:"BwgRadio"}),e.jsx(bt,{onClick:()=>X("ex_bwg_uploader"),isActive:r==="ex_bwg_uploader",children:"BwgUploader"}),e.jsx(bt,{onClick:()=>X("ex_bwg_largeuploader"),isActive:r==="ex_bwg_largeuploader",children:"BwgLargeUploader"})]})]}),e.jsxs(s.Col,{ref:t,id:"content-container",span:20,style:{height:"100%",background:"#f0f0f0",overflow:"auto",padding:"20px"},children:[e.jsx("div",{id:"ex_bwg_input",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgInput"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgInput 컴포넌트는 기본적인 텍스트 입력을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgInput } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{inputProps:{placeholder:"기본 속성 적용"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{inputProps:{placeholder:"allowClear 속성 적용, 입력 후 클리어 버튼 표시",allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{inputProps:{placeholder:"maxLength 속성 적용 ( 10자 제한 )",maxLength:10}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:6,children:e.jsx(H.BwgInput,{inputProps:{variant:"outlined",placeholder:"variant 속성 적용 ( outlined )"}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgInput,{inputProps:{variant:"filled",placeholder:"variant 속성 적용 ( filled )"}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgInput,{inputProps:{variant:"borderless",placeholder:"variant 속성 적용 ( borderless )"}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgInput,{inputProps:{variant:"underlined",placeholder:"variant 속성 적용 ( underlined )"}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{inputProps:{placeholder:"status 속성 적용 ( error )",status:"error"}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Input 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[N.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[N.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(N.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"'텍스트를 입력하세요'",disabled:"false",allowClear:"true",maxLength:"10",variant:"'outlined'",status:"'warning'"},W=`<BwgInput
190
+ inputProps={{
191
+ ${N.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
192
+ `)}
193
+ }}
194
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:N.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:N,onChange:(O,G)=>{$(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"입력 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"입력 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"maxLength",type:"number",description:"최대 입력 길이 제한"},{property:"variant",type:"outlined | filled | borderless | underlined",description:"스타일 변형"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:o,onSelectionChange:i,componentName:"BwgInput"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_textarea",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgTextArea"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgTextArea 컴포넌트는 여러 줄의 텍스트 입력을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgTextArea } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"기본 속성 적용"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"allowClear 속성 적용, 입력 후 클리어 버튼 표시",allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"maxLength 속성 적용 ( 100자 제한 )",maxLength:100}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"rows 속성 적용 ( 4줄 )",rows:4}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"autoSize 속성 적용",autoSize:{minRows:2,maxRows:6}}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{inputProps:{placeholder:"status 속성 적용 ( error )",status:"error"}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgTextArea,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Input.TextArea 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[M.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[M.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(M.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"'텍스트를 입력하세요'",disabled:"false",allowClear:"true",maxLength:"100",rows:"4",autoSize:"{ minRows: 2, maxRows: 6 }",status:"'warning'"},W=`<BwgTextArea
195
+ inputProps={{
196
+ ${M.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
197
+ `)}
198
+ }}
199
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:M.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:M,onChange:(O,G)=>{D(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"입력 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"입력 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"maxLength",type:"number",description:"최대 입력 길이 제한"},{property:"rows",type:"number",description:"기본 행 수"},{property:"autoSize",type:"{ minRows: 2, maxRows: 6 } | boolean",description:"자동 크기 조절"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:a,onSelectionChange:l,componentName:"BwgTextArea"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_number",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgNumber"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgNumber 컴포넌트는 숫자 입력을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgNumber } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"기본 속성 적용"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"min, max 속성 적용 (0-100)",min:0,max:100}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"step 속성 적용 (0.5씩 증가)",step:.5}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"precision 속성 적용 (소수점 2자리)",precision:2}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"formatter 속성 적용 (원화 표시)",formatter:O=>`₩ ${O}`.replace(/\B(?=(\d{3})+(?!\d))/g,","),parser:O=>O.replace(/\₩\s?|(,*)/g,"")}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{inputProps:{placeholder:"status 속성 적용 ( error )",status:"error"}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgNumber,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd InputNumber 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[V.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[V.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(V.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"'숫자를 입력하세요'",disabled:"false",min:"0",max:"100",step:"1",precision:"2",formatter:"value => `₩ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',')",parser:"value => value!.replace(/₩\\s?|(,*)/g, '')",status:"'warning'"},W=`<BwgNumber
200
+ inputProps={{
201
+ ${V.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
202
+ `)}
203
+ }}
204
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:V.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:V,onChange:(O,G)=>{U(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"입력 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"입력 필드 비활성화"},{property:"min",type:"number",description:"최소값"},{property:"max",type:"number",description:"최대값"},{property:"step",type:"number",description:"증감 단위"},{property:"precision",type:"number",description:"소수점 자릿수"},{property:"formatter",type:"function",description:"표시 형식 변환 함수"},{property:"parser",type:"function",description:"입력값 파싱 함수"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:c,onSelectionChange:d,componentName:"BwgNumber"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_search",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgSearch"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgSearch 컴포넌트는 검색 기능을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgSearch } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{placeholder:"기본 검색"})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{placeholder:"disabled 속성 적용",disabled:!0})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{placeholder:"allowClear 속성 적용",allowClear:!0})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{placeholder:"팝업 검색 기능",popuCd:"example"})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSearch,{placeholder:"기본 검색"})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSearch,{placeholder:"클리어 가능",allowClear:!0})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSearch,{placeholder:"비활성화",disabled:!0})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSearch,{placeholder:"warning 상태",status:"warning"})})]}),e.jsx(s.Divider,{orientation:"left",children:"Code/Value 팝업 검색"}),e.jsx(s.Typography.Text,{type:"secondary",style:{display:"block",marginBottom:"16px"},children:"`popupConfig`를 사용하면 팝업 검색창을 열 수 있습니다. `name` 속성으로 코드 필드를, `valueName` 속성으로 값(이름) 필드를 지정하여 선택된 값을 Form의 다른 필드에 자동으로 채울 수 있습니다."}),e.jsx(s.Form,{children:e.jsx(s.Row,{gutter:[8,16],align:"bottom",children:e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{itemProps:{label:"사용자",name:"user_cd"},popupConfig:!0})})})}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{itemProps:{label:"일반"},placeholder:"일반"})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSearch,{itemProps:{label:"필수",rules:[{required:!0}]},placeholder:"필수"})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Input.Search 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[k.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[k.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(k.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"'검색어를 입력하세요'",disabled:"false",allowClear:"true",onSearch:"value => message.info(`검색: ${value}`)",status:"'warning'"},W=`<BwgSearch
205
+ ${k.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
206
+ `)}
207
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:k.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:k,onChange:(O,G)=>{S(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"검색 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"검색 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"onSearch",type:"function",description:"검색 버튼 클릭 시 실행되는 함수"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:p,onSelectionChange:h,componentName:"BwgSearch"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_select",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgSelect"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgSelect 컴포넌트는 드롭다운 선택을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgSelect } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{selectProps:{placeholder:"기본 선택",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{selectProps:{placeholder:"disabled 속성 적용",disabled:!0,options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{selectProps:{placeholder:"allowClear 속성 적용",allowClear:!0,options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{selectProps:{placeholder:'mode="multiple" 속성 적용',mode:"multiple",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{selectProps:{placeholder:"showSearch 속성 적용",showSearch:!0,options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{selectProps:{placeholder:"status 속성 적용 (warning)",status:"warning",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{label:"일반"},selectProps:{placeholder:"일반",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{label:"필수",rules:[{required:!0}]},selectProps:{placeholder:"필수",options:[{label:"옵션 1",value:"1"}]}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"선택 속성",key:"selectProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Select 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[I.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[I.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(I.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"'옵션을 선택하세요'",disabled:"false",allowClear:"true",mode:"'multiple'",status:"'warning'",options:"[{ label: '옵션 1', value: '1' }, { label: '옵션 2', value: '2' }]"},W=`<BwgSelect
208
+ selectProps={{
209
+ ${I.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
210
+ `)}
211
+ }}
212
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:I.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:I,onChange:(O,G)=>{L(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"선택 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"mode",type:"multiple | tags",description:"다중 선택 모드"},{property:"status",type:"error | warning",description:"상태 표시"},{property:"options",type:"Array<{label, value}>",description:"선택 옵션 목록"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:f,onSelectionChange:x,componentName:"BwgSelect"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_multiselect",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgMultiSelect"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgMultiSelect 컴포넌트는 다중 선택을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgMultiSelect } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{inputProps:{placeholder:"기본 다중 선택",list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{inputProps:{placeholder:"allowClear 속성 적용",allowClear:!0,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{inputProps:{placeholder:"maxTagCount 속성 적용",maxTagCount:2,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"},{label:"옵션 4",value:"4"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{inputProps:{placeholder:'addField="ALL" 속성 적용',addField:"ALL",list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{itemProps:{label:"일반"},inputProps:{placeholder:"일반",list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgMultiSelect,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수",list:[{label:"옵션 1",value:"1"}]}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Select 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[F.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[F.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(F.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"'다중 선택하세요'",disabled:"false",allowClear:"true",maxTagCount:"3",addField:"'ALL'",list:"[{ label: '옵션 1', value: '1' }, { label: '옵션 2', value: '2' }]"},W=`<BwgMultiSelect
213
+ inputProps={{
214
+ ${F.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
215
+ `)}
216
+ }}
217
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:F.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:F,onChange:(O,G)=>{Q(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"선택 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"maxTagCount",type:"number",description:"표시할 태그 최대 개수"},{property:"addField",type:"ALL | NULL",description:"추가 필드 옵션"},{property:"list",type:"Array<{label, value}>",description:"선택 옵션 목록"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:E,onSelectionChange:g,componentName:"BwgMultiSelect"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_datepicker",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgDatePicker"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgDatePicker 컴포넌트는 날짜 선택을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgDatePicker } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{inputProps:{placeholder:"기본 날짜 선택"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{inputProps:{placeholder:"allowClear 속성 적용",allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{inputProps:{placeholder:"showToday 속성 적용",showToday:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{inputProps:{placeholder:"format 속성 적용",format:"YYYY-MM-DD"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{inputProps:{placeholder:"showTime 속성 적용",showTime:!0}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgDatePicker,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"날짜 선택 속성",key:"datePickerProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd DatePicker 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[z.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[z.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(z.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"'날짜를 선택하세요'",disabled:"false",allowClear:"true",format:"'YYYY-MM-DD'",showTime:"false"},W=`<BwgDatePicker
218
+ inputProps={{
219
+ ${z.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
220
+ `)}
221
+ }}
222
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:z.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:z,onChange:(O,G)=>{_(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"날짜 선택 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"날짜 선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"format",type:"string",description:"날짜 형식 (예: YYYY-MM-DD)"},{property:"showTime",type:"boolean",description:"시간 선택 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:j,onSelectionChange:v,componentName:"BwgDatePicker"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_rangepicker",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgRangePicker"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgRangePicker 컴포넌트는 날짜 범위 선택을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgRangePicker } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],format:"YYYY-MM-DD"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],showTime:!0}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{itemProps:{label:"일반"},inputProps:{placeholder:["시작일","종료일"]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRangePicker,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:["시작일","종료일"]}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"범위 선택 속성",key:"rangePickerProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd RangePicker 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Y.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[Y.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(Y.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={placeholder:"['시작일', '종료일']",disabled:"false",allowClear:"true",format:"'YYYY-MM-DD'",showTime:"false"},W=`<BwgRangePicker
223
+ inputProps={{
224
+ ${Y.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
225
+ `)}
226
+ }}
227
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:Y.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:Y,onChange:(O,G)=>{ee(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"날짜 범위 선택 필드의 힌트 텍스트",type:"string[]"},{property:"disabled",type:"boolean",description:"날짜 범위 선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"format",type:"string",description:"날짜 형식 (예: YYYY-MM-DD)"},{property:"showTime",type:"boolean",description:"시간 선택 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:b,onSelectionChange:w,componentName:"BwgRangePicker"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_check",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgCheck"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgCheck 컴포넌트는 체크박스를 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgCheck } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"기본 체크박스"}),e.jsx(H.BwgCheck,{inputProps:{children:"체크박스"}})]}),e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"disabled: true"}),e.jsx(H.BwgCheck,{inputProps:{children:"비활성화된 체크박스",disabled:!0}})]})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"indeterminate: true"}),e.jsx(H.BwgCheck,{inputProps:{children:"부분 선택 체크박스",indeterminate:!0}})]}),e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"status: 'warning'"}),e.jsx(H.BwgCheck,{inputProps:{children:"경고 상태 체크박스"}})]})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheck,{itemProps:{label:"일반"},inputProps:{children:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheck,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{children:"필수"}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Checkbox 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[oe.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[oe.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(oe.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={children:"'체크박스 라벨'",disabled:"false",indeterminate:"true",status:"'warning'"},W=`<BwgCheck
228
+ inputProps={{
229
+ ${oe.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
230
+ `)}
231
+ }}
232
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:oe.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:oe,onChange:(O,G)=>{ne(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"children",description:"체크박스 라벨 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"체크박스 비활성화"},{property:"indeterminate",type:"boolean",description:"부분 선택 상태"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:P,onSelectionChange:B,componentName:"BwgCheck"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_checklist",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgCheckList"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgCheckList 컴포넌트는 체크리스트를 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgCheckList } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}],disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheckList,{itemProps:{label:"일반"},inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgCheckList,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Checkbox.Group 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[fe.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[fe.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(fe.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={options:"[{ label: '옵션 1', value: '1' }, { label: '옵션 2', value: '2' }]",disabled:"false",direction:"'horizontal'",status:"'warning'"},W=`<BwgCheckList
233
+ inputProps={{
234
+ ${fe.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
235
+ `)}
236
+ }}
237
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:fe.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:fe,onChange:(O,G)=>{A(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"options",description:"체크박스 옵션 목록",type:"Array<{label, value}>"},{property:"disabled",type:"boolean",description:"체크박스 그룹 비활성화"},{property:"direction",type:"horizontal | vertical",description:"배치 방향"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:C,onSelectionChange:m,componentName:"BwgCheckList"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_radio",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgRadio"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgRadio 컴포넌트는 라디오 버튼을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgRadio } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{inputProps:{children:"기본 라디오 버튼"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{inputProps:{children:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{inputProps:{children:"status 속성 적용 (warning)"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{inputProps:{children:"disabled 속성 적용",disabled:!0}})})]}),e.jsx(s.Divider,{orientation:"left",children:"라벨 사용하기"}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{itemProps:{label:"일반"},inputProps:{children:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{children:"필수"}})})]})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(mt,{items:[{label:"입력 속성",key:"inputProps",children:e.jsxs(s.Card,{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Radio 컴포넌트의 모든 속성을 지원합니다.",e.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[K.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[K.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(K.length===0){s.message.warning("선택된 속성이 없습니다!");return}const O={children:"'라디오 버튼 라벨'",disabled:"false",status:"'warning'"},W=`<BwgRadio
238
+ inputProps={{
239
+ ${K.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
240
+ `)}
241
+ }}
242
+ />`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:K.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:K,onChange:(O,G)=>{Z(O),console.log(`selectedRowKeys: ${O}`,"selectedRows: ",G)}},rowKey:O=>O.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"children",description:"라디오 버튼 라벨 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"라디오 버튼 비활성화"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:R,onSelectionChange:T,componentName:"BwgRadio"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_uploader",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgUploader"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgUploader 컴포넌트는 단일 또는 다중 파일을 개별적으로 업로드하기 위한 컴포넌트입니다. 파일 선택 즉시 업로드가 시작됩니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgUploader } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"기본 업로더"}),e.jsx(H.BwgUploader,{onUploadComplete:O=>{s.message.success(`[onUploadComplete] ${O.fileNameL} 업로드 완료`)}})]}),e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"거래코드(trxCd)와 함께 업로드"}),e.jsx(H.BwgUploader,{})]})]}),e.jsx(s.Row,{gutter:[16,16],children:e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"확장자 및 파일 크기 제한"}),e.jsx(H.BwgUploader,{allowedExtensions:[".jpg",".png"],maxFileSize:1,onUploadComplete:O=>{s.message.success(`[onUploadComplete] ${O.fileNameL} 업로드 완료`)}})]})})]})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(s.Card,{children:e.jsx(s.Table,{pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"onUploadComplete",description:"파일 업로드 성공 시 호출되는 콜백 함수",type:"(fileDetails: { fileNameP: string, fileNameL: string }) => void"},{property:"trxCd",description:"파일 업로드 시 함께 전송할 거래코드",type:"string"},{property:"allowedExtensions",description:"허용할 파일 확장자 배열. (기본값: 여러 일반적인 확장자)",type:"string[]"},{property:"maxFileSize",description:"최대 파일 크기 (MB 단위)",type:"number"}]})})})]})]})}),e.jsx("div",{id:"ex_bwg_largeuploader",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgLargeUploader"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgLargeUploader 컴포넌트는 대용량 파일을 포함한 여러 파일을 일괄적으로 업로드하기 위한 컴포넌트입니다. 드래그 앤 드롭을 지원하며, 파일 목록을 확인하고 '일괄 업로드' 버튼으로 한 번에 업로드합니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgLargeUploader } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsx(s.Flex,{vertical:!0,gap:"16",children:e.jsx(s.Row,{gutter:[16,16],children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgLargeUploader,{title:"대용량 파일 업로더",onUploadComplete:O=>{s.message.success(`[onUploadComplete] ${O.fileNameL} 업로드 완료`)}})})})})})]}),e.jsxs("div",{children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(q.UnorderedListOutlined,{}),"속성 설명"]}),e.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:e.jsx(s.Card,{children:e.jsx(s.Table,{pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"title",description:"업로더 카드의 제목",type:"string"},{property:"onUploadComplete",description:"개별 파일 업로드 성공 시 호출되는 콜백 함수",type:"(fileDetails: { fileNameP: string, fileNameL: string }) => void"},{property:"trxCd",description:"파일 업로드 시 함께 전송할 거래코드",type:"string"},{property:"allowedExtensions",description:"허용할 파일 확장자 배열. (기본값: 여러 일반적인 확장자)",type:"string[]"}]})})})]})]})})]})]})})},jo=({importText:t,onCopy:r})=>e.jsx(ra,{text:t,onCopy:()=>{s.message.success("import 문이 복사되었습니다!"),r?.()},children:e.jsxs("div",{style:{background:"#1e1e1e",border:"1px solid #3c3c3c",borderRadius:"6px",padding:"12px 16px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',fontSize:"13px",color:"#d4d4d4",cursor:"pointer",display:"flex",alignItems:"flex-start",justifyContent:"space-between",transition:"all 0.2s ease",userSelect:"none"},onMouseEnter:n=>{n.currentTarget.style.background="#2d2d30",n.currentTarget.style.borderColor="#4a4a4a"},onMouseLeave:n=>{n.currentTarget.style.background="#1e1e1e",n.currentTarget.style.borderColor="#3c3c3c"},children:[e.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",flex:1,lineHeight:"1.5"},children:e.jsx("code",{children:t})}),e.jsx(q.CopyOutlined,{style:{color:"#858585",fontSize:"14px",marginLeft:"12px",flexShrink:0}})]})}),Qt=({id:t,children:r,onClick:n,isActive:o=!1,icon:i})=>{const[a,l]=u.useState(!1),c={width:"100%",textAlign:"left",marginBottom:"8px",border:"none",borderRadius:"8px",padding:"12px 16px",fontWeight:500,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",background:o?"#00bcd4":"transparent",color:o?"#ffffff":"#595959",transform:a?"translateX(4px)":"translateX(0)",boxShadow:o?a?"0 4px 12px rgba(0, 188, 212, 0.3)":"none":a?"0 2px 8px rgba(0, 0, 0, 0.1)":"none"},d={position:"absolute",left:0,top:0,bottom:0,width:"4px",background:"#00bcd4",borderRadius:"0 2px 2px 0"};return e.jsxs(s.Button,{id:t,type:"text",onClick:n,style:c,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[o&&e.jsx("div",{style:d}),i&&e.jsx("span",{style:{marginRight:"8px",fontSize:"16px"},children:i}),e.jsx("span",{style:{fontSize:"14px",lineHeight:1.4},children:r})]})},J0=({visible:t,onCancel:r,onOk:n})=>{const[o,i]=u.useState([]),[a,l]=u.useState("100%"),c=[{value:"BwgInput",label:"BwgInput - 입력 필드"},{value:"BwgSelect",label:"BwgSelect - 선택 박스"},{value:"BwgSearch",label:"BwgSearch - 검색 필드"},{value:"BwgDatePicker",label:"BwgDatePicker - 날짜 선택"},{value:"BwgRangePicker",label:"BwgRangePicker - 날짜 범위 선택"},{value:"BwgRadio",label:"BwgRadio - 라디오 버튼"},{value:"BwgCheck",label:"BwgCheck - 체크박스"},{value:"BwgCheckList",label:"BwgCheckList - 체크박스 그룹"},{value:"BwgTextArea",label:"BwgTextArea - 텍스트 영역"},{value:"BwgNumber",label:"BwgNumber - 숫자 입력"},{value:"BwgMultiSelect",label:"BwgMultiSelect - 다중 선택"},{value:"BwgMaskedInput",label:"BwgMaskedInput - 마스크 입력"},{value:"BwgMaskedPicker",label:"BwgMaskedPicker - 마스크 날짜 선택"},{value:"BwgButton",label:"BwgButton - 버튼"},{value:"BwgUploader",label:"BwgUploader - 파일 업로드"},{value:"BwgLargeUploader",label:"BwgLargeUploader - 대용량 파일 업로드"}],d=[{label:"100%",value:"100%"},{label:"50%",value:"50%"},{label:"33%",value:"33%"},{label:"25%",value:"25%"}],p=()=>{o.length>0&&n(o,a)},f=(g=>{switch(g){case"100%":return 1;case"50%":return 2;case"33%":return 3;case"25%":return 4;default:return 1}})(a),x=o.length>f,E=()=>{i([]),l("100%"),r()};return e.jsx(s.Modal,{title:"필수검색 행 추가",open:t,onOk:p,onCancel:E,centered:!0,okText:"추가",cancelText:"취소",okButtonProps:{disabled:o.length===0||x},width:600,zIndex:1500,destroyOnHidden:!0,children:e.jsxs("div",{style:{padding:"20px 0"},children:[e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"사이즈 선택"}),e.jsx(s.Radio.Group,{value:a,onChange:g=>l(g.target.value),optionType:"button",buttonStyle:"solid",children:d.map(g=>e.jsx(s.Radio.Button,{value:g.value,children:g.label},g.value))})]}),e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"컴포넌트 선택"}),e.jsx(s.Select,{mode:"multiple",style:{width:"100%"},placeholder:`사용할 컴포넌트를 선택하세요 (최대 ${f}개)`,value:o,onChange:i,options:c,showSearch:!0,filterOption:(g,j)=>(j?.label??"").toLowerCase().includes(g.toLowerCase()),maxTagCount:"responsive",maxCount:f}),x&&e.jsxs("div",{style:{color:"#ff4d4f",fontSize:"12px",marginTop:"4px"},children:[a," 사이즈는 최대 ",f,"개까지만 선택 가능합니다."]})]})]})})},ev=({visible:t,onCancel:r,onOk:n})=>{const[o,i]=u.useState([]),[a,l]=u.useState("100%"),c=[{value:"BwgInput",label:"BwgInput - 입력 필드"},{value:"BwgSelect",label:"BwgSelect - 선택 박스"},{value:"BwgSearch",label:"BwgSearch - 검색 필드"},{value:"BwgDatePicker",label:"BwgDatePicker - 날짜 선택"},{value:"BwgRangePicker",label:"BwgRangePicker - 날짜 범위 선택"},{value:"BwgRadio",label:"BwgRadio - 라디오 버튼"},{value:"BwgCheck",label:"BwgCheck - 체크박스"},{value:"BwgCheckList",label:"BwgCheckList - 체크박스 그룹"},{value:"BwgTextArea",label:"BwgTextArea - 텍스트 영역"},{value:"BwgNumber",label:"BwgNumber - 숫자 입력"},{value:"BwgMultiSelect",label:"BwgMultiSelect - 다중 선택"},{value:"BwgMaskedInput",label:"BwgMaskedInput - 마스크 입력"},{value:"BwgMaskedPicker",label:"BwgMaskedPicker - 마스크 날짜 선택"},{value:"BwgButton",label:"BwgButton - 버튼"},{value:"BwgUploader",label:"BwgUploader - 파일 업로드"},{value:"BwgLargeUploader",label:"BwgLargeUploader - 대용량 파일 업로드"}],d=[{label:"100%",value:"100%"},{label:"50%",value:"50%"},{label:"33%",value:"33%"},{label:"25%",value:"25%"}],p=()=>{o.length>0&&n(o,a)},f=(g=>{switch(g){case"100%":return 1;case"50%":return 2;case"33%":return 3;case"25%":return 4;default:return 1}})(a),x=o.length>f,E=()=>{i([]),l("100%"),r()};return e.jsx(s.Modal,{title:"일반검색 행 추가",open:t,onOk:p,onCancel:E,centered:!0,okText:"추가",cancelText:"취소",okButtonProps:{disabled:o.length===0||x},width:600,zIndex:1500,destroyOnHidden:!0,children:e.jsxs("div",{style:{padding:"20px 0"},children:[e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"사이즈 선택"}),e.jsx(s.Radio.Group,{value:a,onChange:g=>l(g.target.value),optionType:"button",buttonStyle:"solid",children:d.map(g=>e.jsx(s.Radio.Button,{value:g.value,children:g.label},g.value))})]}),e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"컴포넌트 선택"}),e.jsx(s.Select,{mode:"multiple",style:{width:"100%"},placeholder:`사용할 컴포넌트를 선택하세요 (최대 ${f}개)`,value:o,onChange:i,options:c,showSearch:!0,filterOption:(g,j)=>(j?.label??"").toLowerCase().includes(g.toLowerCase()),maxTagCount:"responsive",maxCount:f}),x&&e.jsxs("div",{style:{color:"#ff4d4f",fontSize:"12px",marginTop:"4px"},children:[a," 사이즈는 최대 ",f,"개까지만 선택 가능합니다."]})]})]})})},Sr=({title:t,subtitle:r})=>e.jsxs("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:[t,e.jsx("span",{id:"subtitle",style:{marginLeft:"10px",color:"#00bcd4",fontSize:"14px",fontWeight:400},children:r})]}),jn=({onReset:t=()=>{},onAddRequiredSearch:r=()=>{},onAddGeneralSearch:n=()=>{},onCopyCode:o=()=>{},copyButtonDisabled:i=!1})=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx(s.Button,{icon:e.jsx(q.UndoOutlined,{}),onClick:t,type:"default",danger:!0,children:"초기화"}),e.jsx(s.Popover,{content:e.jsx("div",{style:{padding:"12px 0"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsx(s.Button,{icon:e.jsx(q.PlusOutlined,{}),style:{width:"100%"},onClick:r,children:"필수검색 행 추가"}),e.jsx(s.Button,{icon:e.jsx(q.PlusOutlined,{}),style:{width:"100%"},onClick:n,children:"일반검색 행 추가"})]})}),title:"편집 옵션",placement:"bottom",trigger:"click",children:e.jsx(s.Button,{icon:e.jsx(q.SettingOutlined,{}),children:"편집"})}),e.jsx(s.Button,{onClick:o,disabled:i,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"코드 복사"})]}),pr=[{fieldName:"id",header:{text:"사번"}},{fieldName:"name",header:{text:"이름"}},{fieldName:"age",header:{text:"나이"}},{fieldName:"gender",header:{text:"성별"}}],tv=()=>{const{showPopup:t}=ht.usePopup(),r=u.useRef(null),[n,o]=u.useState("readme"),[i,a]=u.useState(!1),[l,c]=u.useState(!1),[d,p]=u.useState(""),[h,f]=u.useState({}),x=u.useRef(null),E=u.useRef(null),g=u.useRef(null),j=u.useRef(null),v=u.useRef(null),b=u.useRef(null),w=u.useRef(null),[P,B]=u.useState(null),C=u.useRef(null),m=u.useRef(null),R=u.useRef(null),T=u.useRef(null),[N,$]=u.useState(!1),[M,D]=u.useState(!1),[V,U]=u.useState(!1),[k,S]=u.useState(!1),I=O=>{const G=document.getElementById(O);G&&r.current&&(r.current.scrollTo({top:G.offsetTop-20,behavior:"smooth"}),o(O))},L=O=>{p(O),a(!0)},F=O=>{p(O),c(!0)},Q=(O,G)=>{console.log(`템플릿 ${d}에 필수검색으로 ${O.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(W=>({...W,[d]:{...W[d],required:{components:O,size:G}}})),a(!1)},z=(O,G)=>{console.log(`템플릿 ${d}에 일반검색으로 ${O.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(W=>({...W,[d]:{...W[d],general:{components:O,size:G}}})),c(!1)},_=(O,G)=>{const W={itemProps:{label:"예제",name:"exam"},key:`${O}_${G}`};switch(O){case"BwgInput":return e.jsx(H.BwgInput,{...W});case"BwgSelect":return e.jsx(H.BwgSelect,{...W});case"BwgSearch":return e.jsx(H.BwgSearch,{...W});case"BwgDatePicker":return e.jsx(H.BwgDatePicker,{...W});case"BwgRangePicker":return e.jsx(H.BwgRangePicker,{...W});case"BwgRadio":return e.jsx(H.BwgRadio,{...W});case"BwgCheck":return e.jsx(H.BwgCheck,{...W});case"BwgCheckList":return e.jsx(H.BwgCheckList,{...W});case"BwgTextArea":return e.jsx(H.BwgTextArea,{...W});case"BwgNumber":return e.jsx(H.BwgNumber,{...W});case"BwgMultiSelect":return e.jsx(H.BwgMultiSelect,{...W});case"BwgMaskedInput":return e.jsx(H.BwgMaskedInput,{...W,mask:"0000-00-00"});case"BwgMaskedPicker":return e.jsx(H.BwgMaskedPicker,{...W});case"BwgButton":return e.jsx(H.BwgButton,{...W,children:"버튼"});case"BwgUploader":return e.jsx(H.BwgUploader,{...W});case"BwgLargeUploader":return e.jsx(H.BwgLargeUploader,{...W});default:return e.jsx(H.BwgInput,{...W})}},Y=O=>{const G=h[O];if(!G)return{};const W={};if(G.required){const{components:J,size:te}=G.required,ie=te==="100%"?1:te==="50%"?2:te==="33%"?3:4,ce=J.map((pe,ye)=>_(pe,ye));for(;ce.length<ie;)ce.push(e.jsx(e.Fragment,{}));W.reqArea={row1:ce}}else W.reqArea={row1:[e.jsx(H.BwgInput,{itemProps:{label:"입력예제",name:"keyword"}})]};if(G.general){const{components:J,size:te}=G.general,ie=te==="100%"?1:te==="50%"?2:te==="33%"?3:4,ce=J.map((pe,ye)=>_(pe,ye));for(;ce.length<ie;)ce.push(e.jsx(e.Fragment,{}));W.subArea={row1:ce}}return W},ee=()=>{a(!1)},oe=()=>{c(!1)},ne=O=>{f(G=>({...G,[O]:void 0}))},fe=O=>{const G=h[O];let W="";if(G?.required||G?.general){if(W=`searchBox={{
243
+ `,G.required){const{components:ie,size:ce}=G.required,pe=ce==="100%"?1:ce==="50%"?2:ce==="33%"?3:4;W+=` reqArea: {
244
+ `,W+=` row1: [
245
+ `,ie.forEach((ye,we)=>{W+=` <${ye} itemProps={{ label: '예제', name: 'exam' }} />,
246
+ `});for(let ye=ie.length;ye<pe;ye++)W+=` <></>,
247
+ `;W+=` ]
248
+ `,W+=" }"}if(G.general){G.required&&(W+=`,
249
+ `);const{components:ie,size:ce}=G.general,pe=ce==="100%"?1:ce==="50%"?2:ce==="33%"?3:4;W+=` subArea: {
250
+ `,W+=` row1: [
251
+ `,ie.forEach((ye,we)=>{W+=` <${ye} itemProps={{ label: '예제', name: 'exam' }} />,
252
+ `});for(let ye=ie.length;ye<pe;ye++)W+=` <></>,
253
+ `;W+=` ]
254
+ `,W+=" }"}W+=`
255
+ }}`}let J="";switch(O){case"bwgpageTmpl01":J=` <ContentLayOut>
256
+ <ContentBox style={{ height: '300px' }}>
257
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
258
+ </ContentBox>
259
+ </ContentLayOut>`;break;case"bwgpageTmpl02":J=` <ContentLayOut>
260
+ <ContentBox className="w50 mr20" style={{ height: '300px' }}>
261
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
262
+ </ContentBox>
263
+ <ContentBox className="w50" style={{ height: '300px' }}>
264
+ <BwgInfoArea title="상세정보">
265
+ <div>이곳에 각종 컴포넌트들을 구현하세요.</div>
266
+ </BwgInfoArea>
267
+ </ContentBox>
268
+ </ContentLayOut>`;break;case"bwgpageTmpl03":J=` <ContentLayOut type="vertical">
269
+ <ContentBox style={{ height: '300px' }} className="mb20">
270
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
271
+ </ContentBox>
272
+ <ContentBox style={{ height: '300px' }}>
273
+ <BwgInfoArea title="상세정보">
274
+ <div>이곳에 각종 컴포넌트들을 구현하세요.</div>
275
+ </BwgInfoArea>
276
+ </ContentBox>
277
+ </ContentLayOut>`;break;case"bwgpageTmpl04":J=` <ContentLayOut>
278
+ <ContentBox className="w50 mr20" style={{ height: '300px' }}>
279
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
280
+ </ContentBox>
281
+ <ContentBox className="w50" style={{ height: '300px' }}>
282
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
283
+ </ContentBox>
284
+ </ContentLayOut>`;break;case"bwgpageTmpl05":J=` <ContentLayOut type="vertical">
285
+ <ContentBox style={{ height: '300px' }} className="mb20">
286
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
287
+ </ContentBox>
288
+ <ContentBox style={{ height: '300px' }}>
289
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
290
+ </ContentBox>
291
+ </ContentLayOut>`;break;default:J=` <ContentLayOut>
292
+ <ContentBox style={{ height: '300px' }}>
293
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
294
+ </ContentBox>
295
+ </ContentLayOut>`}return`// 아래 코드를 return 영역에 붙여 넣으시기 바랍니다.
296
+ <BwgView${W?" "+W:""}>
297
+ ${J}
298
+ </BwgView>`},A=O=>{const G=fe(O);navigator.clipboard.writeText(G).then(()=>{s.message.success("코드가 클립보드에 복사되었습니다!")}).catch(()=>{const W=document.createElement("textarea");W.value=G,W.select(),document.execCommand("copy"),document.body.removeChild(W),s.message.success("코드가 클립보드에 복사되었습니다!")})},K=[{title:"공통버튼 영역",description:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsx("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:"공통버튼 영역은 권한 등록을 통해 자동으로 생성됩니다."}),e.jsxs("div",{style:{background:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[e.jsx("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057"},children:"※ 공통버튼 사용하기"}),e.jsxs("ol",{style:{margin:0,paddingLeft:"20px",fontSize:"13px",lineHeight:"1.8",color:"#495057"},children:[e.jsx("li",{children:"메뉴등록"}),e.jsx("li",{children:"권한등록"}),e.jsx("li",{children:"권한별 버튼 등록"}),e.jsx("li",{children:"역할에 권한 부여"})]})]})]}),target:()=>C.current},{title:"공통(조회)버튼 사용",description:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsxs("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:["BwgView 컴포넌트의 grantEvent 속성을 사용하여 이벤트 매핑을 합니다.",e.jsx("br",{}),"이벤트 객체 생성시, 함수명과 버튼ID로 매핑되어 버튼에 적용됩니다."]}),e.jsxs("div",{style:{marginBottom:"20px"},children:[e.jsxs("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057",display:"flex",alignItems:"center"},children:[e.jsx("span",{style:{background:"#007bff",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",marginRight:"8px"},children:"1"}),"객체 선언 예시"]}),e.jsx(jo,{importText:`const grantEvent = {
299
+ search: () => {
300
+ // getFormData() 함수는 searchBox의 모든 컴포넌트의 값을 가져옵니다.
301
+ console.log('search :: ', getFormData());
302
+ },
303
+ };`})]}),e.jsxs("div",{children:[e.jsxs("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057",display:"flex",alignItems:"center"},children:[e.jsx("span",{style:{background:"#28a745",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",marginRight:"8px"},children:"2"}),"적용 예시"]}),e.jsx(jo,{importText:"<BwgView grantEvent={grantEvent}></BwgView>"})]})]}),target:()=>m.current}],Z=[{title:"팝업 사용하기",description:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsxs("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:["usePopup 훅을 사용하여 팝업을 쉽게 열 수 있습니다.",e.jsx("br",{}),"팝업 ID와 파라미터를 전달하여 동적으로 팝업을 호출합니다."]}),e.jsxs("div",{style:{background:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[e.jsx("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057"},children:"※ 팝업 사용 방법"}),e.jsxs("ol",{style:{margin:0,paddingLeft:"20px",fontSize:"13px",lineHeight:"1.8",color:"#495057"},children:[e.jsx("li",{children:"usePopup 훅 import"}),e.jsx("li",{children:"showPopup 함수로 팝업 호출"}),e.jsx("li",{children:"팝업 ID와 파라미터 전달"})]})]}),e.jsx("div",{style:{marginTop:"16px",textAlign:"center"},children:e.jsx(s.Button,{type:"primary",size:"small",onClick:()=>{t("CMTestP01",{})},style:{background:"#007bff",borderColor:"#007bff",borderRadius:"6px",fontSize:"13px",padding:"6px 16px",height:"auto"},children:"예제팝업 열어보기"})})]}),target:()=>R.current}],X=[{title:"드로어 사용하기",description:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsxs("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:["BwgDrawer 컴포넌트를 사용하여 사이드 패널을 구현할 수 있습니다.",e.jsx("br",{}),"상태 관리와 함께 사용하여 드로어의 열림/닫힘을 제어합니다."]}),e.jsxs("div",{style:{background:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[e.jsx("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057"},children:"※ 드로어 사용 방법"}),e.jsxs("ol",{style:{margin:0,paddingLeft:"20px",fontSize:"13px",lineHeight:"1.8",color:"#495057"},children:[e.jsx("li",{children:"드로어 상태 관리 (useState)"}),e.jsx("li",{children:"BwgDrawer 컴포넌트 추가"}),e.jsx("li",{children:"open, onClose 속성 설정"})]})]}),e.jsx("div",{style:{marginTop:"16px",textAlign:"center"},children:e.jsx(s.Button,{type:"primary",size:"small",onClick:()=>{S(!0)},style:{background:"#28a745",borderColor:"#28a745",borderRadius:"6px",fontSize:"13px",padding:"6px 16px",height:"auto"},children:"예제드로어 열어보기"})})]}),target:()=>T.current}];return e.jsxs(Ho,{children:[e.jsxs(s.Row,{style:{height:"100%"},children:[e.jsxs(s.Col,{span:4,style:{height:"100%",overflow:"auto"},children:[e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ke,{title:e.jsx("div",{children:"개요"})})}),e.jsx("div",{id:"nav-container",style:{padding:"10px"},children:e.jsx(Qt,{id:"readmeBtn",onClick:()=>{B("readmeBtn"),I("readme")},isActive:n==="readme",children:"준비하기"})}),e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ke,{title:e.jsx("div",{children:"템플릿 목록"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(Qt,{id:"bwgpageTmpl01Btn",onClick:()=>{B("bwgpageTmpl01Btn"),I("bwgpageTmpl01")},isActive:n==="bwgpageTmpl01",children:"검색+그리드"}),e.jsx(Qt,{id:"bwgpageTmpl02Btn",onClick:()=>{B("bwgpageTmpl02Btn"),I("bwgpageTmpl02")},isActive:n==="bwgpageTmpl02",children:"검색+그리드(좌)+상세(우)"}),e.jsx(Qt,{id:"bwgpageTmpl03Btn",onClick:()=>{B("bwgpageTmpl03Btn"),I("bwgpageTmpl03")},isActive:n==="bwgpageTmpl03",children:"검색+그리드(상)+상세(하)"}),e.jsx(Qt,{id:"bwgpageTmpl04Btn",onClick:()=>{B("bwgpageTmpl04Btn"),I("bwgpageTmpl04")},isActive:n==="bwgpageTmpl04",children:"검색+그리드(좌)+그리드(우)"}),e.jsx(Qt,{id:"bwgpageTmpl05Btn",onClick:()=>{B("bwgpageTmpl05Btn"),I("bwgpageTmpl05")},isActive:n==="bwgpageTmpl05",children:"검색+그리드(상)+그리드(하)"})]}),e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ke,{title:e.jsx("div",{children:"공통기능 활용"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(Qt,{id:"buttonsBtn",onClick:()=>{B("buttonsBtn"),I("application"),$(!0)},isActive:n==="buttons",children:"공통버튼 활용하기"}),e.jsx(Qt,{id:"popupBtn",onClick:()=>{B("popupBtn"),I("application"),D(!0)},isActive:n==="popup",children:"팝업 활용하기"}),e.jsx(Qt,{id:"drawerBtn",onClick:()=>{B("drawerBtn"),I("application"),U(!0)},isActive:n==="drawer",children:"드로어 활용하기"})]})]}),e.jsxs(s.Col,{ref:r,id:"content-container",span:20,style:{height:"100%",background:"#f0f0f0",overflow:"auto",padding:"20px"},children:[e.jsx("div",{id:"readme",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(Sr,{title:"준비사항",subtitle:"꼭 읽어주세요!"}),style:{borderRadius:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",border:"1px solid #f0f0f0"},children:e.jsxs("div",{style:{padding:"20px 0"},children:[e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"12px",padding:"12px 16px",background:"#f5f5f5",borderRadius:"6px",border:"1px solid #e8e8e8",fontSize:"15px",fontWeight:600,color:"#262626"},children:"1. @bwg/ui 패키지 설치 확인"}),e.jsxs("div",{style:{padding:"16px",background:"#fafafa",borderRadius:"6px",border:"1px solid #f0f0f0",marginLeft:"16px"},children:[e.jsx("div",{style:{color:"#595959",fontSize:"14px",fontWeight:500,marginBottom:"8px"},children:"설치방법:"}),e.jsx("code",{style:{background:"#f0f0f0",padding:"6px 10px",borderRadius:"4px",fontSize:"13px",color:"#262626",fontFamily:'Monaco, Consolas, "Courier New", monospace'},children:"npm install @bwg/ui"})]})]}),e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"12px",padding:"12px 16px",background:"#f5f5f5",borderRadius:"6px",border:"1px solid #e8e8e8",fontSize:"15px",fontWeight:600,color:"#262626"},children:"2. VS Code 스니펫 설정 확인"}),e.jsxs("div",{style:{padding:"16px",background:"#fafafa",borderRadius:"6px",border:"1px solid #f0f0f0",marginLeft:"16px"},children:[e.jsx("div",{style:{color:"#595959",fontSize:"14px",fontWeight:500,marginBottom:"12px"},children:"확인방법:"}),e.jsxs("div",{style:{marginBottom:"8px"},children:[e.jsx("span",{style:{display:"inline-block",width:"18px",height:"18px",background:"#8c8c8c",color:"white",borderRadius:"50%",textAlign:"center",lineHeight:"18px",fontSize:"11px",fontWeight:"bold",marginRight:"8px"},children:"1"}),e.jsxs("span",{style:{color:"#595959",fontSize:"14px"},children:["프로젝트 루트 디렉토리에"," ",e.jsx("code",{style:{background:"#f0f0f0",padding:"2px 6px",borderRadius:"3px",fontSize:"12px"},children:".vscode"})," ","폴더 확인"]})]}),e.jsxs("div",{children:[e.jsx("span",{style:{display:"inline-block",width:"18px",height:"18px",background:"#8c8c8c",color:"white",borderRadius:"50%",textAlign:"center",lineHeight:"18px",fontSize:"11px",fontWeight:"bold",marginRight:"8px"},children:"2"}),e.jsxs("span",{style:{color:"#595959",fontSize:"14px"},children:[e.jsx("code",{style:{background:"#f0f0f0",padding:"2px 6px",borderRadius:"3px",fontSize:"12px"},children:"bwg-code-assist.code-snippets"})," ","파일 유무 확인"]})]})]})]}),e.jsx("div",{style:{padding:"12px 16px",background:"#f6ffed",borderRadius:"6px",border:"1px solid #b7eb8f",textAlign:"center"},children:e.jsx("div",{style:{color:"#52c41a",fontSize:"14px",fontWeight:500},children:"💡 위 준비사항을 모두 확인하신 후 템플릿을 사용하시기 바랍니다!"})})]})})}),e.jsx("div",{id:"bwgpageTmpl01",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx(Sr,{title:"템플릿01",subtitle:"검색조건 + 그리드"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["검색과 그리드 영역으로 이루어진 기본 템플릿입니다.",e.jsx("br",{}),"예약어 코드 : ",e.jsx("code",{children:"bwgpageTmpl01"})]}),e.jsx(jn,{onReset:()=>ne("bwgpageTmpl01"),onAddRequiredSearch:()=>L("bwgpageTmpl01"),onAddGeneralSearch:()=>F("bwgpageTmpl01"),onCopyCode:()=>A("bwgpageTmpl01")})]}),e.jsx(xt,{searchBox:Y("bwgpageTmpl01"),children:e.jsx(Ne,{children:e.jsx(Ce,{style:{height:"300px"},children:e.jsx($e,{ref:x,gridColumns:pr})})})})]})}),e.jsx("div",{id:"bwgpageTmpl02",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx(Sr,{title:"템플릿02",subtitle:"검색조건 + 그리드(좌) + 상세(우)"}),children:[e.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 상세 영역이 좌/우 로 이루어진 기본 템플릿입니다.",e.jsx("br",{}),"예약어 코드 : ",e.jsx("code",{children:"bwgpageTmpl02"})]}),e.jsx(jn,{onReset:()=>ne("bwgpageTmpl02"),onAddRequiredSearch:()=>L("bwgpageTmpl02"),onAddGeneralSearch:()=>F("bwgpageTmpl02"),onAddPermissionButton:()=>{console.log("템플릿02 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl02")})]}),e.jsx(xt,{searchBox:Y("bwgpageTmpl02"),children:e.jsxs(Ne,{children:[e.jsx(Ce,{className:"w50 mr20",style:{height:"300px"},children:e.jsx($e,{ref:E,gridColumns:pr})}),e.jsx(Ce,{className:"w50",style:{height:"300px"},children:e.jsx(Ut,{title:"상세정보",children:e.jsx("div",{children:"이곳에 각종 컴포넌트들을 구현하세요."})})})]})})]})}),e.jsx("div",{id:"bwgpageTmpl03",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx(Sr,{title:"템플릿03",subtitle:"검색조건 + 그리드(상) + 상세(하)"}),children:[e.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 상세 영역이 상/하 로 이루어진 기본 템플릿입니다.",e.jsx("br",{}),"예약어 코드 : ",e.jsx("code",{children:"bwgpageTmpl03"})]}),e.jsx(jn,{onReset:()=>ne("bwgpageTmpl03"),onAddRequiredSearch:()=>L("bwgpageTmpl03"),onAddGeneralSearch:()=>F("bwgpageTmpl03"),onAddPermissionButton:()=>{console.log("템플릿03 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl03")})]}),e.jsx(xt,{searchBox:Y("bwgpageTmpl03"),children:e.jsxs(Ne,{type:"vertical",children:[e.jsx(Ce,{style:{height:"300px"},className:"mb20",children:e.jsx($e,{ref:g,gridColumns:pr})}),e.jsx(Ce,{style:{height:"300px"},children:e.jsx(Ut,{title:"상세정보",children:e.jsx("div",{children:"이곳에 각종 컴포넌트들을 구현하세요."})})})]})})]})}),e.jsx("div",{id:"bwgpageTmpl04",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx(Sr,{title:"템플릿04",subtitle:"검색조건 + 그리드(좌) + 그리드(우)"}),children:[e.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 그리드 영역이 좌/우 로 이루어진 기본 템플릿입니다.",e.jsx("br",{}),"예약어 코드 : ",e.jsx("code",{children:"bwgpageTmpl04"})]}),e.jsx(jn,{onReset:()=>ne("bwgpageTmpl04"),onAddRequiredSearch:()=>L("bwgpageTmpl04"),onAddGeneralSearch:()=>F("bwgpageTmpl04"),onAddPermissionButton:()=>{console.log("템플릿04 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl04")})]}),e.jsx(xt,{searchBox:Y("bwgpageTmpl04"),children:e.jsxs(Ne,{children:[e.jsx(Ce,{className:"w50 mr20",style:{height:"300px"},children:e.jsx($e,{ref:j,gridColumns:pr})}),e.jsx(Ce,{className:"w50",style:{height:"300px"},children:e.jsx($e,{ref:j,gridColumns:pr})})]})})]})}),e.jsx("div",{id:"bwgpageTmpl05",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx(Sr,{title:"템플릿05",subtitle:"검색조건 + 그리드(상) + 그리드(하)"}),children:[e.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[e.jsxs(s.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 그리드 영역이 상/하 로 이루어진 기본 템플릿입니다.",e.jsx("br",{}),"예약어 코드 : ",e.jsx("code",{children:"bwgpageTmpl05"})]}),e.jsx(jn,{onReset:()=>ne("bwgpageTmpl05"),onAddRequiredSearch:()=>L("bwgpageTmpl05"),onAddGeneralSearch:()=>F("bwgpageTmpl05"),onAddPermissionButton:()=>{console.log("템플릿05 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl05")})]}),e.jsx(xt,{searchBox:Y("bwgpageTmpl05"),children:e.jsxs(Ne,{type:"vertical",children:[e.jsx(Ce,{style:{height:"300px"},className:"mb20",children:e.jsx($e,{ref:v,gridColumns:pr})}),e.jsx(Ce,{style:{height:"300px"},children:e.jsx($e,{ref:v,gridColumns:pr})})]})})]})}),e.jsx("div",{id:"application",children:e.jsx(s.Card,{title:e.jsx(Sr,{title:"공통기능 활용",subtitle:"공통버튼 / 팝업 / 드로어"}),children:e.jsx("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:e.jsxs("div",{className:"bwg-view main-view",style:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},children:[e.jsx("div",{className:"bwgview-header-container",children:e.jsxs("div",{className:"bwgview-header",children:[e.jsx("div",{className:"bwgview-header-left",children:e.jsx(s.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:e.jsxs(s.Space,{children:[e.jsx(q.StarFilled,{style:{color:"#faad14"}}),e.jsxs(s.Space.Compact,{style:{alignItems:"center"},children:[e.jsx("span",{className:"pageMenuNm",children:"임시메뉴"}),e.jsx(s.Tag,{className:"page-num-tag",children:"0000"}),e.jsx(s.Tooltip,{title:"도움말",color:"geekblue",children:e.jsx(s.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:e.jsx("span",{className:"bwgHelpIcon"})})})]})]})})}),e.jsx("div",{className:"bwgview-header-right",children:e.jsx(s.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:e.jsxs(s.Space,{children:[e.jsxs(s.Flex,{gap:8,children:[e.jsx(s.Button,{ref:R,className:"bwg-btn",children:"팝업열기"}),e.jsx(s.Button,{ref:T,className:"bwg-btn",onClick:()=>{S(!0)},children:"드로어열기"})]}),e.jsx(s.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:e.jsx(s.Divider,{type:"vertical"})}),e.jsxs(s.Flex,{ref:C,gap:8,className:"permission-buttons",children:[e.jsx(s.Button,{ref:m,className:"bwg-btn",onClick:()=>{},children:"조회"}),e.jsx(s.Button,{ref:w,className:"bwg-btn",onClick:()=>{},children:"신규"})]})]})})})]})}),e.jsx("div",{className:"bwgview-content",children:e.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e.jsx(Ne,{children:e.jsx(Ce,{style:{height:"300px"},children:e.jsx($e,{ref:b,gridColumns:pr})})})})})]})})})})]})]}),e.jsx(s.Tour,{open:N,onClose:()=>$(!1),steps:K}),e.jsx(s.Tour,{open:M,onClose:()=>D(!1),steps:Z}),e.jsx(s.Tour,{open:V,onClose:()=>U(!1),steps:X}),e.jsx(J0,{visible:i,onCancel:ee,onOk:Q}),e.jsx(ev,{visible:l,onCancel:oe,onOk:z}),e.jsx(Xr,{title:"드로어 예제",width:600,open:k,onClose:()=>{S(!1),U(!1)},placement:"right",zIndex:1500,children:e.jsxs(Ne,{type:"vertical",children:[e.jsxs(s.Card,{className:"w100 mb20",children:[e.jsx(ke,{title:"예제 코드 : 컴포넌트 안에 입력하세요."}),e.jsx(jo,{importText:"const [drawerOpen, setDrawerOpen] = useState<boolean>(false);"})]}),e.jsxs(s.Card,{className:"w100",children:[e.jsx(ke,{title:"예제 코드 : BwgView 안에 입력하세요."}),e.jsx(jo,{importText:`<BwgDrawer
304
+ title="드로어 예제"
305
+ open={drawerOpen}
306
+ onClose={() => {
307
+ setDrawerOpen(false);
308
+ }}
309
+ placement="right"
310
+ ><div>드로어 영역</div></BwgDrawer>`})]})]})})]})},_e=({importText:t,onCopy:r})=>e.jsx(ra,{text:t,onCopy:()=>{s.message.success("코드가 복사되었습니다!"),r?.()},children:e.jsxs("div",{style:{background:"#1e1e1e",border:"1px solid #3c3c3c",borderRadius:"6px",padding:"12px 16px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',fontSize:"13px",color:"#d4d4d4",cursor:"pointer",display:"flex",alignItems:"flex-start",justifyContent:"space-between",transition:"all 0.2s ease",userSelect:"none",marginBottom:"16px"},onMouseEnter:n=>{n.currentTarget.style.background="#2d2d30",n.currentTarget.style.borderColor="#4a4a4a"},onMouseLeave:n=>{n.currentTarget.style.background="#1e1e1e",n.currentTarget.style.borderColor="#3c3c3c"},children:[e.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",flex:1,lineHeight:"1.5"},children:e.jsx("code",{children:t})}),e.jsx(q.CopyOutlined,{style:{color:"#858585",fontSize:"14px",marginLeft:"12px",flexShrink:0}})]})}),fr=({id:t,children:r,onClick:n,isActive:o=!1,icon:i})=>{const[a,l]=u.useState(!1),c={width:"100%",textAlign:"left",marginBottom:"8px",border:"none",borderRadius:"8px",padding:"12px 16px",fontWeight:500,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",background:o?"#00bcd4":"transparent",color:o?"#ffffff":"#595959",transform:a?"translateX(4px)":"translateX(0)",boxShadow:o?a?"0 4px 12px rgba(0, 188, 212, 0.3)":"none":a?"0 2px 8px rgba(0, 0, 0, 0.1)":"none"},d={position:"absolute",left:0,top:0,bottom:0,width:"4px",background:"#00bcd4",borderRadius:"0 2px 2px 0"};return e.jsxs(s.Button,{id:t,type:"text",onClick:n,style:c,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[o&&e.jsx("div",{style:d}),i&&e.jsx("span",{style:{marginRight:"8px",fontSize:"16px"},children:i}),e.jsx("span",{style:{fontSize:"14px",lineHeight:1.4},children:r})]})},hr=({title:t,subtitle:r})=>e.jsxs("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:[t,e.jsx("span",{id:"subtitle",style:{marginLeft:"10px",color:"#00bcd4",fontSize:"14px",fontWeight:400},children:r})]}),Gl=()=>{const[t,r]=u.useState(0),[n,o]=u.useState("");return e.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[e.jsx("h4",{children:"실습 예제"}),e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsxs("div",{children:[e.jsx("strong",{children:"카운터:"})," ",t,e.jsxs("div",{style:{marginTop:"8px"},children:[e.jsx(s.Button,{onClick:()=>r(t+1),style:{marginRight:"8px"},children:"증가"}),e.jsx(s.Button,{onClick:()=>r(t-1),children:"감소"})]})]}),e.jsxs("div",{children:[e.jsx("strong",{children:"이름 입력:"}),e.jsx(s.Input,{value:n,onChange:i=>o(i.target.value),placeholder:"이름을 입력하세요",style:{marginTop:"8px"}}),n&&e.jsxs("div",{style:{marginTop:"8px"},children:["안녕하세요, ",n,"님!"]})]})]})]})},Kl=()=>{const t=u.useRef(null),r=u.useRef(0),[n,o]=u.useState(0),i=()=>{t.current?.focus()},a=()=>{r.current+=1,alert(`Ref 카운트: ${r.current}`)};return e.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[e.jsx("h4",{children:"실습 예제"}),e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsxs("div",{children:[e.jsx(s.Input,{ref:t,placeholder:"이 입력 필드에 포커스됩니다"}),e.jsx(s.Button,{onClick:i,style:{marginTop:"8px"},children:"입력 필드에 포커스"})]}),e.jsx(s.Divider,{}),e.jsxs("div",{children:[e.jsxs("div",{children:["렌더링 횟수: ",n]}),e.jsxs("div",{children:["Ref 카운트: ",r.current," (렌더링과 무관)"]}),e.jsxs("div",{style:{marginTop:"8px"},children:[e.jsx(s.Button,{onClick:()=>o(n+1),style:{marginRight:"8px"},children:"리렌더링"}),e.jsx(s.Button,{onClick:a,children:"Ref 카운트 증가"})]})]})]})]})},Yl=()=>{const[t,r]=u.useState(0),[n,o]=u.useState(["할 일 1","할 일 2"]),i=u.useMemo(()=>(console.log("비싼 계산 실행됨"),t*1e3),[t]),a=()=>{o([...n,`할 일 ${n.length+1}`])};return e.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[e.jsx("h4",{children:"실습 예제"}),e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsxs("div",{children:[e.jsxs("div",{children:["카운트: ",t]}),e.jsxs("div",{children:["계산된 값 (useMemo): ",i]}),e.jsx(s.Button,{onClick:()=>r(t+1),style:{marginTop:"8px"},children:"카운트 증가"})]}),e.jsx(s.Divider,{}),e.jsxs("div",{children:[e.jsx("div",{children:"할 일 목록:"}),n.map((l,c)=>e.jsxs("div",{children:["• ",l]},c)),e.jsx(s.Button,{onClick:a,style:{marginTop:"8px"},children:"할 일 추가 (useMemo 재계산 안됨)"})]})]})]})},ql=()=>{const[t,r]=u.useState(0),[n,o]=u.useState(""),i=u.useCallback(()=>{r(l=>l+1)},[]),a=u.useCallback(l=>{o(l)},[]);return e.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[e.jsx("h4",{children:"실습 예제"}),e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsxs("div",{children:[e.jsxs("div",{children:["카운트: ",t]}),e.jsx(s.Button,{onClick:i,style:{marginTop:"8px"},children:"증가 (useCallback 사용)"})]}),e.jsx(s.Divider,{}),e.jsxs("div",{children:[e.jsxs("div",{children:["이름: ",n]}),e.jsx(s.Input,{value:n,onChange:l=>a(l.target.value),placeholder:"이름 입력",style:{marginTop:"8px"}})]})]})]})},Xl=()=>{const[t,r]=u.useState(0),[n,o]=u.useState(window.innerWidth);return u.useEffect(()=>(console.log("컴포넌트가 마운트되었습니다"),()=>{console.log("컴포넌트가 언마운트됩니다")}),[]),u.useEffect(()=>{document.title=`카운트: ${t}`},[t]),u.useEffect(()=>{const i=()=>{o(window.innerWidth)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]),e.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[e.jsx("h4",{children:"실습 예제"}),e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsxs("div",{children:[e.jsxs("div",{children:["카운트: ",t," (브라우저 탭 제목 확인)"]}),e.jsx(s.Button,{onClick:()=>r(t+1),style:{marginTop:"8px"},children:"카운트 증가"})]}),e.jsx(s.Divider,{}),e.jsxs("div",{children:[e.jsxs("div",{children:["현재 윈도우 너비: ",n,"px"]}),e.jsx("div",{style:{fontSize:"12px",color:"#666"},children:"(브라우저 창 크기를 조절해보세요)"})]})]})]})},rv=u.forwardRef((t,r)=>{const[n,o]=u.useState("");return e.jsxs("div",{children:[e.jsx(s.Input,{ref:r,value:n,onChange:i=>o(i.target.value),placeholder:t.placeholder,style:{marginBottom:"8px"}}),e.jsxs("div",{style:{fontSize:"12px",color:"#666"},children:["현재 값: ",n]})]})}),nv=()=>{const t=u.useRef(null),r=()=>{t.current?.focus()},n=()=>{t.current?.select()};return e.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[e.jsx("h4",{children:"ForwardRef 실습 예제"}),e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsx(rv,{ref:t,placeholder:"이 입력 필드는 ref가 전달됩니다"}),e.jsxs(s.Space,{children:[e.jsx(s.Button,{onClick:r,children:"포커스"}),e.jsx(s.Button,{onClick:n,children:"전체 선택"})]})]})]})},ov=()=>{const t=u.useRef(null),r=()=>{t.current?.focus()},n=()=>{t.current?.clear()},o=()=>{const i=t.current?.getValue();alert(`현재 값: ${i}`)};return e.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[e.jsx("h4",{children:"useImperativeHandle 예제"}),e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsx(iv,{ref:t}),e.jsxs(s.Space,{children:[e.jsx(s.Button,{onClick:r,children:"포커스"}),e.jsx(s.Button,{onClick:n,children:"클리어"}),e.jsx(s.Button,{onClick:o,children:"값 가져오기"})]})]})]})},iv=u.forwardRef((t,r)=>{const n=u.useRef(null),[o,i]=u.useState("");return u.useImperativeHandle(r,()=>({focus:()=>{n.current?.focus()},clear:()=>{i(""),n.current?.focus()},getValue:()=>o})),e.jsx(s.Input,{ref:n,value:o,onChange:a=>i(a.target.value),placeholder:"부모에서 제어되는 입력 필드"})}),sv=()=>{const t=u.useRef(null),[r,n]=u.useState("intro"),o=i=>{const a=document.getElementById(i);a&&t.current&&(t.current.scrollTo({top:a.offsetTop-20,behavior:"smooth"}),n(i))};return e.jsx(Ho,{children:e.jsxs(s.Row,{style:{height:"100%"},children:[e.jsxs(s.Col,{span:4,style:{height:"100%",overflow:"auto"},children:[e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ke,{title:e.jsx("div",{children:"React Hooks 가이드"})})}),e.jsx("div",{id:"nav-container",style:{padding:"10px"},children:e.jsx(fr,{id:"introBtn",onClick:()=>{o("intro")},isActive:r==="intro",children:"소개"})}),e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ke,{title:e.jsx("div",{children:"Section 1: 기본 Hooks"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(fr,{id:"useStateBtn",onClick:()=>{o("useState")},isActive:r==="useState",children:"useState"}),e.jsx(fr,{id:"useRefBtn",onClick:()=>{o("useRef")},isActive:r==="useRef",children:"useRef"}),e.jsx(fr,{id:"useMemoBtn",onClick:()=>{o("useMemo")},isActive:r==="useMemo",children:"useMemo"}),e.jsx(fr,{id:"useCallbackBtn",onClick:()=>{o("useCallback")},isActive:r==="useCallback",children:"useCallback"}),e.jsx(fr,{id:"useEffectBtn",onClick:()=>{o("useEffect")},isActive:r==="useEffect",children:"useEffect"})]}),e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ke,{title:e.jsx("div",{children:"Section 2: 고급 Hooks"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(fr,{id:"forwardRefBtn",onClick:()=>{o("forwardRef")},isActive:r==="forwardRef",children:"forwardRef"}),e.jsx(fr,{id:"useImperativeHandleBtn",onClick:()=>{o("useImperativeHandle")},isActive:r==="useImperativeHandle",children:"useImperativeHandle"})]})]}),e.jsxs(s.Col,{ref:t,id:"content-container",span:20,style:{height:"100%",background:"#f0f0f0",overflow:"auto",padding:"20px"},children:[e.jsx("div",{id:"intro",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"React Hooks 가이드",subtitle:"초보자를 위한 완벽 가이드"}),style:{borderRadius:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",border:"1px solid #f0f0f0"},children:e.jsxs("div",{style:{padding:"20px 0"},children:[e.jsx(s.Alert,{message:"React Hooks란?",description:"React 16.8에서 도입된 기능으로, 함수형 컴포넌트에서도 state와 생명주기 메서드를 사용할 수 있게 해주는 특별한 함수들입니다.",type:"info",showIcon:!0,style:{marginBottom:"20px"}}),e.jsx(s.Typography.Paragraph,{children:"이 가이드는 두 섹션으로 구성되어 있습니다:"}),e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx(s.Typography.Title,{level:5,style:{color:"#1890ff",marginBottom:"12px"},children:"📚 Section 1: 기본 Hooks"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.8"},children:[e.jsxs("li",{children:[e.jsx("strong",{children:"useState"})," - 상태 관리"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"useRef"})," - DOM 참조 및 값 저장"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"useMemo"})," - 값 메모이제이션"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"useCallback"})," - 함수 메모이제이션"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"useEffect"})," - 부수 효과 처리"]})]})]}),e.jsxs("div",{style:{marginBottom:"24px"},children:[e.jsx(s.Typography.Title,{level:5,style:{color:"#52c41a",marginBottom:"12px"},children:"🚀 Section 2: 고급 Hooks"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.8"},children:[e.jsxs("li",{children:[e.jsx("strong",{children:"forwardRef"})," - 컴포넌트 간 ref 전달"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"useImperativeHandle"})," - 부모에게 노출할 인스턴스 값 커스터마이징"]})]})]})]})})}),e.jsx("div",{id:"useState",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"useState",subtitle:"상태 관리의 기본"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[e.jsx(s.Alert,{message:"useState는 컴포넌트에서 변하는 값을 기억하고 화면에 반영하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),e.jsx(s.Typography.Paragraph,{children:"컴포넌트에서 변경 가능한 데이터를 관리할 때 사용합니다. 예: 사용자 입력, 카운터, 토글 상태 등"})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"📝 기본 문법"}),e.jsx(_e,{importText:`import React, { useState } from 'react';
311
+
312
+ const MyComponent = () => {
313
+ // [현재값, 값을변경하는함수] = useState(초기값)
314
+ const [count, setCount] = useState(0);
315
+ const [name, setName] = useState('');
316
+ const [isVisible, setIsVisible] = useState(true);
317
+
318
+ return (
319
+ <div>
320
+ <div>카운트: {count}</div>
321
+ <button onClick={() => setCount(count + 1)}>증가</button>
322
+ </div>
323
+ );
324
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"⚠️ 주의사항"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"상태는 직접 변경하지 말고 항상 set 함수를 사용하세요"}),e.jsx("li",{children:"객체나 배열 상태를 업데이트할 때는 새로운 객체/배열을 만들어야 합니다"}),e.jsx("li",{children:"이전 상태를 기반으로 업데이트할 때는 함수형 업데이트를 사용하세요"})]})]}),e.jsx(Gl,{}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),e.jsx(s.Alert,{message:"실제 프로젝트에서 useState 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useState 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"1. 사이드바 검색 기능 (Sidebar.tsx)"}),e.jsx(_e,{importText:`// 검색어와 활성 세그먼트 상태 관리
325
+ const [searchValue, setSearchValue] = useState('');
326
+ const [activeSegment, setActiveSegment] = useState<'category' | 'favorite'>(
327
+ 'category'
328
+ );
329
+
330
+ // 세그먼트 변경 처리
331
+ const handleSegmentChange = (value: 'category' | 'favorite') => {
332
+ setActiveSegment(value);
333
+ // 카테고리로 변경 시 검색값 초기화
334
+ if (value === 'category') {
335
+ setSearchValue('');
336
+ }
337
+ };`})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"2. 시스템 코드 관리 (CMSystCodeM01.tsx)"}),e.jsx(_e,{importText:`// 선택된 시스템과 탭 상태 관리
338
+ const [selectedSystem, setSelectedSystem] = useState<SystemInfo | null>(null);
339
+ const [activeTab, setActiveTab] = useState<'group' | 'detail'>('group');
340
+
341
+ // 시스템 카드 클릭 처리
342
+ const handleSystemClick = (system: SystemInfo) => {
343
+ setSelectedSystem(system);
344
+ // 시스템 변경 시 그룹 탭으로 초기화
345
+ setActiveTab('group');
346
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:5,children:"3. 로딩 상태 관리 (Main.tsx)"}),e.jsx(_e,{importText:`// 전역 로딩 상태 관리
347
+ const [loading, setLoading] = useState(false);
348
+
349
+ // API 호출 시 로딩 상태 제어
350
+ const loadData = async () => {
351
+ setLoading(true);
352
+ try {
353
+ await fetchMenu({ crprCd, userId, prntGbcd: 1 });
354
+ await fetchCommonCodes();
355
+ } finally {
356
+ setLoading(false);
357
+ }
358
+ };`})]})]}),e.jsx(Gl,{})]})})}),e.jsx("div",{id:"useRef",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"useRef",subtitle:"DOM 접근과 값 저장"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[e.jsx(s.Alert,{message:"useRef는 DOM 요소에 직접 접근하거나, 리렌더링 없이 값을 저장하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"DOM 요소에 직접 접근할 때 (focus, scroll 등)"}),e.jsx("li",{children:"리렌더링되지 않는 값을 저장할 때"}),e.jsx("li",{children:"이전 값을 기억해야 할 때"})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"📝 기본 문법"}),e.jsx(_e,{importText:`import React, { useRef } from 'react';
359
+
360
+ const MyComponent = () => {
361
+ // DOM 참조용
362
+ const inputRef = useRef<HTMLInputElement>(null);
363
+
364
+ // 값 저장용 (리렌더링 시에도 유지됨)
365
+ const countRef = useRef(0);
366
+
367
+ const focusInput = () => {
368
+ inputRef.current?.focus(); // DOM 요소에 접근
369
+ };
370
+
371
+ const incrementCount = () => {
372
+ countRef.current += 1; // 값 변경 (리렌더링 안됨)
373
+ console.log(countRef.current);
374
+ };
375
+
376
+ return (
377
+ <div>
378
+ <input ref={inputRef} />
379
+ <button onClick={focusInput}>포커스</button>
380
+ </div>
381
+ );
382
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🔍 useState vs useRef"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsxs("div",{style:{flex:1,background:"#f0f9ff",borderRadius:"6px"},children:[e.jsx("strong",{children:"useState"}),e.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[e.jsx("li",{children:"값이 변경되면 리렌더링"}),e.jsx("li",{children:"화면에 표시되는 데이터"}),e.jsx("li",{children:"사용자에게 보여야 하는 상태"})]})]}),e.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0fdf4",borderRadius:"6px"},children:[e.jsx("strong",{children:"useRef"}),e.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[e.jsx("li",{children:"값이 변경되어도 리렌더링 안됨"}),e.jsx("li",{children:"내부적으로만 사용되는 데이터"}),e.jsx("li",{children:"DOM 요소 참조"})]})]})]})]}),e.jsx(Kl,{}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),e.jsx(s.Alert,{message:"실제 프로젝트에서 useRef 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useRef 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"1. 그리드 참조 관리 (CMRoleMstrM01.tsx)"}),e.jsx(_e,{importText:`// 여러 그리드 컴포넌트에 대한 ref 관리
383
+ const roleGridRef = useRef<BwgGridRef>(null);
384
+ const dprtGridRef = useRef<BwgGridRef>(null);
385
+ const userGridRef = useRef<BwgGridRef>(null);
386
+
387
+ // 그리드 데이터 조작
388
+ const serviceEvent = {
389
+ SCMROLE00101: () => {
390
+ callService('SCMROLE00101', { crprCd: getCrprCd() }).then(response => {
391
+ // ref를 통해 그리드에 데이터 추가
392
+ roleGridRef.current?.addAllData(response.data);
393
+ });
394
+ }
395
+ };`})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"2. 컴포넌트 캐싱 (Main.tsx)"}),e.jsx(_e,{importText:`// 컴포넌트 인스턴스를 캐싱하여 성능 최적화
396
+ const componentCache = useRef<Map<string, React.ComponentType>>(new Map());
397
+ const componentInstances = useRef<Map<string, React.ReactElement>>(new Map());
398
+
399
+ // 동적 컴포넌트 로딩 시 캐시 활용
400
+ const createViewLoader = (scrnPath: string) => {
401
+ // 캐시된 컴포넌트가 있으면 재사용
402
+ if (componentCache.current.has(scrnPath)) {
403
+ return componentCache.current.get(scrnPath);
404
+ }
405
+
406
+ // 새 컴포넌트 로드 후 캐시에 저장
407
+ const component = views[globKey];
408
+ componentCache.current.set(scrnPath, component);
409
+ return component;
410
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:5,children:"3. 스크롤 제어 (BwgReactGuideM01.tsx)"}),e.jsx(_e,{importText:`// 콘텐츠 영역 스크롤 제어
411
+ const contentRef = useRef<HTMLDivElement>(null);
412
+
413
+ const scrollToSection = (id: string) => {
414
+ const element = document.getElementById(id);
415
+ if (element && contentRef.current) {
416
+ // ref를 통해 스크롤 위치 제어
417
+ contentRef.current.scrollTo({
418
+ top: element.offsetTop - 20,
419
+ behavior: 'smooth',
420
+ });
421
+ }
422
+ };`})]})]}),e.jsx(Kl,{})]})})}),e.jsx("div",{id:"useMemo",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"useMemo",subtitle:"값 메모이제이션으로 성능 최적화"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[e.jsx(s.Alert,{message:"useMemo는 비싼 계산 결과를 기억해두고, 의존성이 바뀔 때만 다시 계산하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"계산 비용이 높은 연산 결과를 캐싱할 때"}),e.jsx("li",{children:"의존성이 변경되지 않으면 이전 결과를 재사용하고 싶을 때"}),e.jsx("li",{children:"불필요한 재계산을 방지하여 성능을 최적화할 때"})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"📝 기본 문법"}),e.jsx(_e,{importText:`import React, { useMemo, useState } from 'react';
423
+
424
+ const MyComponent = () => {
425
+ const [count, setCount] = useState(0);
426
+ const [todos, setTodos] = useState([]);
427
+
428
+ // 비싼 계산을 메모이제이션
429
+ const expensiveValue = useMemo(() => {
430
+ console.log('비싼 계산 실행!');
431
+ return count * 1000; // 실제로는 복잡한 계산
432
+ }, [count]); // count가 변경될 때만 재계산
433
+
434
+ return (
435
+ <div>
436
+ <div>결과: {expensiveValue}</div>
437
+ <button onClick={() => setCount(count + 1)}>
438
+ 카운트 증가
439
+ </button>
440
+ </div>
441
+ );
442
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"⚠️ 주의사항"}),e.jsx(s.Alert,{message:"남용하지 마세요!",description:"useMemo는 성능 최적화 도구입니다. 단순한 계산에는 오히려 오버헤드가 될 수 있으니, 정말 필요한 경우에만 사용하세요.",type:"warning",showIcon:!0})]}),e.jsx(Yl,{}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),e.jsx(s.Alert,{message:"실제 프로젝트에서 useMemo 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useMemo 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"1. 메뉴 검색 옵션 최적화 (Sidebar.tsx)"}),e.jsx(_e,{importText:`// 메뉴 검색 옵션을 메모이제이션하여 성능 최적화
443
+ const menuSearchOptions = useMemo(() => {
444
+ if (!menuList || menuList.length === 0) {
445
+ return [];
446
+ }
447
+
448
+ const options: MenuSearchOption[] = [];
449
+
450
+ const addMenuOptions = (menus: MenuItem[], parentPath = '') => {
451
+ menus.forEach(menu => {
452
+ if (menu.menuNm && menu.scrnId) {
453
+ options.push({
454
+ value: menu.menuId,
455
+ label: parentPath ? \`\${parentPath} > \${menu.menuNm}\` : menu.menuNm,
456
+ menuItem: menu,
457
+ });
458
+ }
459
+
460
+ if (menu.children && menu.children.length > 0) {
461
+ const newParentPath = parentPath
462
+ ? \`\${parentPath} > \${menu.menuNm}\`
463
+ : menu.menuNm;
464
+ addMenuOptions(menu.children, newParentPath);
465
+ }
466
+ });
467
+ };
468
+
469
+ addMenuOptions(menuList);
470
+ return options;
471
+ }, [menuList]); // menuList가 변경될 때만 재계산`})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"2. 필터링된 데이터 최적화 예제"}),e.jsx(_e,{importText:`// 대용량 데이터 필터링 시 useMemo 활용
472
+ const FilteredDataExample = () => {
473
+ const [searchTerm, setSearchTerm] = useState('');
474
+ const [data] = useState(largeDataSet); // 큰 데이터셋
475
+
476
+ // 검색어가 변경될 때만 필터링 재실행
477
+ const filteredData = useMemo(() => {
478
+ if (!searchTerm) return data;
479
+
480
+ return data.filter(item =>
481
+ item.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
482
+ item.description.toLowerCase().includes(searchTerm.toLowerCase())
483
+ );
484
+ }, [data, searchTerm]);
485
+
486
+ // 통계 계산도 메모이제이션
487
+ const statistics = useMemo(() => {
488
+ return {
489
+ total: filteredData.length,
490
+ active: filteredData.filter(item => item.status === 'active').length,
491
+ inactive: filteredData.filter(item => item.status === 'inactive').length,
492
+ };
493
+ }, [filteredData]);
494
+
495
+ return (
496
+ <div>
497
+ <div>총 {statistics.total}개 항목</div>
498
+ <div>활성: {statistics.active}, 비활성: {statistics.inactive}</div>
499
+ </div>
500
+ );
501
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:5,children:"3. 복잡한 계산 최적화 예제"}),e.jsx(_e,{importText:`// 복잡한 차트 데이터 가공 시 useMemo 활용
502
+ const ChartDataExample = () => {
503
+ const [rawData, setRawData] = useState([]);
504
+ const [dateRange, setDateRange] = useState({ start: '', end: '' });
505
+
506
+ // 차트 데이터 가공 - 복잡한 계산이므로 메모이제이션
507
+ const chartData = useMemo(() => {
508
+ if (!rawData.length) return [];
509
+
510
+ // 날짜 필터링
511
+ const filteredData = rawData.filter(item => {
512
+ const itemDate = new Date(item.date);
513
+ const startDate = new Date(dateRange.start);
514
+ const endDate = new Date(dateRange.end);
515
+ return itemDate >= startDate && itemDate <= endDate;
516
+ });
517
+
518
+ // 데이터 그룹화 및 집계
519
+ const groupedData = filteredData.reduce((acc, item) => {
520
+ const key = item.category;
521
+ if (!acc[key]) {
522
+ acc[key] = { total: 0, count: 0, items: [] };
523
+ }
524
+ acc[key].total += item.value;
525
+ acc[key].count += 1;
526
+ acc[key].items.push(item);
527
+ return acc;
528
+ }, {});
529
+
530
+ // 차트용 형태로 변환
531
+ return Object.entries(groupedData).map(([category, data]) => ({
532
+ category,
533
+ value: data.total,
534
+ average: data.total / data.count,
535
+ count: data.count,
536
+ }));
537
+ }, [rawData, dateRange]); // rawData나 dateRange가 변경될 때만 재계산
538
+
539
+ return <Chart data={chartData} />;
540
+ };`})]})]}),e.jsx(Yl,{})]})})}),e.jsx("div",{id:"useCallback",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"useCallback",subtitle:"함수 메모이제이션"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[e.jsx(s.Alert,{message:"useCallback은 함수를 기억해두고, 의존성이 바뀔 때만 새로운 함수를 만드는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"자식 컴포넌트에 함수를 props로 전달할 때"}),e.jsx("li",{children:"함수가 다른 Hook의 의존성 배열에 포함될 때"}),e.jsx("li",{children:"불필요한 리렌더링을 방지하고 싶을 때"})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"📝 기본 문법"}),e.jsx(_e,{importText:`import React, { useCallback, useState } from 'react';
541
+
542
+ const MyComponent = () => {
543
+ const [count, setCount] = useState(0);
544
+ const [name, setName] = useState('');
545
+
546
+ // 함수를 메모이제이션
547
+ const handleIncrement = useCallback(() => {
548
+ setCount(prev => prev + 1);
549
+ }, []); // 의존성이 없으므로 한 번만 생성
550
+
551
+ const handleNameChange = useCallback((newName: string) => {
552
+ setName(newName);
553
+ }, []); // 의존성이 없으므로 한 번만 생성
554
+
555
+ return (
556
+ <div>
557
+ <ChildComponent
558
+ onIncrement={handleIncrement}
559
+ onNameChange={handleNameChange}
560
+ />
561
+ </div>
562
+ );
563
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🔍 useMemo vs useCallback"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0f9ff",borderRadius:"6px"},children:[e.jsx("strong",{children:"useMemo"}),e.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[e.jsx("li",{children:"값을 메모이제이션"}),e.jsx("li",{children:"계산 결과를 캐싱"})]})]}),e.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0fdf4",borderRadius:"6px"},children:[e.jsx("strong",{children:"useCallback"}),e.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[e.jsx("li",{children:"함수를 메모이제이션"}),e.jsx("li",{children:"함수 참조를 캐싱"}),e.jsx("li",{children:"useCallback(fn, [deps])"})]})]})]})]}),e.jsx(ql,{}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),e.jsx(s.Alert,{message:"실제 프로젝트에서 useCallback 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useCallback 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"1. 즐겨찾기 토글 함수 (Sidebar.tsx)"}),e.jsx(_e,{importText:`// 즐겨찾기 토글 함수를 메모이제이션하여 불필요한 리렌더링 방지
564
+ const handleFavoriteToggle = useCallback(async (menuItem: MenuItem) => {
565
+ try {
566
+ // 메뉴 아이템 유효성 검증
567
+ if (!menuItem || !menuItem.menuId || !menuItem.menuNm) {
568
+ console.warn('Invalid menu item for favorite toggle:', menuItem);
569
+ return;
570
+ }
571
+
572
+ // 메뉴 ID 형식 검증
573
+ if (!/^[a-zA-Z0-9_-]+$/.test(menuItem.menuId)) {
574
+ console.warn('Invalid menu ID format:', menuItem.menuId);
575
+ return;
576
+ }
577
+
578
+ if (isFavorite(menuItem.menuId)) {
579
+ await removeFavorite(menuItem.menuId, 'testUser');
580
+ } else {
581
+ await addFavorite(menuItem, 'testUser');
582
+ }
583
+ } catch (error) {
584
+ console.error('즐겨찾기 토글 실패:', error);
585
+ }
586
+ }, [isFavorite, removeFavorite, addFavorite]); // 의존성 함수들이 변경될 때만 재생성`})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"2. 이벤트 핸들러 최적화 예제"}),e.jsx(_e,{importText:`// 자식 컴포넌트에 전달되는 이벤트 핸들러 최적화
587
+ const OptimizedParent = () => {
588
+ const [items, setItems] = useState([]);
589
+ const [filter, setFilter] = useState('');
590
+
591
+ // 아이템 추가 핸들러 - 의존성 없이 안전하게 구현
592
+ const handleAddItem = useCallback((newItem: Item) => {
593
+ setItems(prev => [...prev, { ...newItem, id: Date.now() }]);
594
+ }, []); // 의존성 없음 - 함수형 업데이트 사용
595
+
596
+ // 아이템 삭제 핸들러
597
+ const handleDeleteItem = useCallback((itemId: number) => {
598
+ setItems(prev => prev.filter(item => item.id !== itemId));
599
+ }, []); // 의존성 없음 - 함수형 업데이트 사용
600
+
601
+ // 아이템 수정 핸들러
602
+ const handleUpdateItem = useCallback((itemId: number, updates: Partial<Item>) => {
603
+ setItems(prev => prev.map(item =>
604
+ item.id === itemId ? { ...item, ...updates } : item
605
+ ));
606
+ }, []); // 의존성 없음 - 함수형 업데이트 사용
607
+
608
+ return (
609
+ <div>
610
+ <ItemList
611
+ items={items}
612
+ onAdd={handleAddItem}
613
+ onDelete={handleDeleteItem}
614
+ onUpdate={handleUpdateItem}
615
+ />
616
+ </div>
617
+ );
618
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:5,children:"3. API 호출 함수 최적화"}),e.jsx(_e,{importText:`// API 호출 함수를 메모이제이션하여 useEffect 의존성 안정화
619
+ const DataComponent = () => {
620
+ const [data, setData] = useState([]);
621
+ const [loading, setLoading] = useState(false);
622
+ const [params, setParams] = useState({ page: 1, size: 10 });
623
+
624
+ // API 호출 함수 메모이제이션
625
+ const fetchData = useCallback(async (requestParams: RequestParams) => {
626
+ setLoading(true);
627
+ try {
628
+ const response = await callService('FETCH_DATA', requestParams);
629
+ setData(response.data);
630
+ } catch (error) {
631
+ console.error('데이터 로드 실패:', error);
632
+ } finally {
633
+ setLoading(false);
634
+ }
635
+ }, []); // API 호출 로직은 변하지 않으므로 의존성 없음
636
+
637
+ // params가 변경될 때마다 데이터 다시 로드
638
+ useEffect(() => {
639
+ fetchData(params);
640
+ }, [params, fetchData]); // fetchData가 메모이제이션되어 안정적
641
+
642
+ // 페이지 변경 핸들러
643
+ const handlePageChange = useCallback((page: number) => {
644
+ setParams(prev => ({ ...prev, page }));
645
+ }, []);
646
+
647
+ return (
648
+ <div>
649
+ {loading ? <Spinner /> : <DataTable data={data} />}
650
+ <Pagination onPageChange={handlePageChange} />
651
+ </div>
652
+ );
653
+ };`})]})]}),e.jsx(ql,{})]})})}),e.jsx("div",{id:"useEffect",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"useEffect",subtitle:"부수 효과 처리"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[e.jsx(s.Alert,{message:"useEffect는 컴포넌트의 생명주기에 맞춰 부수 효과(API 호출, 타이머 등)를 처리하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"컴포넌트가 마운트/언마운트될 때 실행할 코드"}),e.jsx("li",{children:"API 호출, 타이머 설정, 이벤트 리스너 등록"}),e.jsx("li",{children:"특정 값이 변경될 때 실행할 코드"}),e.jsx("li",{children:"정리(cleanup) 작업이 필요한 경우"})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"📝 기본 문법"}),e.jsx(_e,{importText:`import React, { useEffect, useState } from 'react';
654
+
655
+ const MyComponent = () => {
656
+ const [count, setCount] = useState(0);
657
+
658
+ // 1. 매 렌더링마다 실행 (권장하지 않음)
659
+ useEffect(() => {
660
+ console.log('매번 실행됨');
661
+ });
662
+
663
+ // 2. 마운트/언마운트 시에만 실행
664
+ useEffect(() => {
665
+ console.log('컴포넌트 마운트됨');
666
+
667
+ return () => {
668
+ console.log('컴포넌트 언마운트됨');
669
+ };
670
+ }, []); // 빈 배열 = 한 번만 실행
671
+
672
+ // 3. count가 변경될 때만 실행
673
+ useEffect(() => {
674
+ document.title = \`카운트: \${count}\`;
675
+ }, [count]); // count가 의존성
676
+
677
+ return <div>카운트: {count}</div>;
678
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🔄 의존성 배열 패턴"}),e.jsxs("div",{style:{background:"#f9f9f9",padding:"16px",borderRadius:"8px"},children:[e.jsxs("div",{style:{marginBottom:"12px"},children:[e.jsx("code",{children:"useEffect(fn)"})," - 매 렌더링마다 실행 ❌"]}),e.jsxs("div",{style:{marginBottom:"12px"},children:[e.jsx("code",{children:"useEffect(fn, [])"})," - 마운트/언마운트 시에만 실행 ✅"]}),e.jsxs("div",{children:[e.jsx("code",{children:"useEffect(fn, [a, b])"})," - a 또는 b가 변경될 때 실행 ✅"]})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🧹 정리(Cleanup) 함수"}),e.jsx(_e,{importText:`useEffect(() => {
679
+ // 이벤트 리스너 등록
680
+ const handleResize = () => {
681
+ console.log('윈도우 크기 변경됨');
682
+ };
683
+
684
+ window.addEventListener('resize', handleResize);
685
+
686
+ // 정리 함수 - 컴포넌트 언마운트 시 실행
687
+ return () => {
688
+ window.removeEventListener('resize', handleResize);
689
+ };
690
+ }, []);`})]}),e.jsx(Xl,{}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),e.jsx(s.Alert,{message:"실제 프로젝트에서 useEffect 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useEffect 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"1. 메뉴 데이터 로딩 (Main.tsx)"}),e.jsx(_e,{importText:`// 사용자 인증 확인 및 메뉴 데이터 가져오기
691
+ useEffect(() => {
692
+ const loadData = async () => {
693
+ if (!user?.userId) {
694
+ console.warn('사용자 정보가 없습니다. 로그인 페이지로 이동합니다.');
695
+ navigate('/login');
696
+ return;
697
+ }
698
+
699
+ console.log('사용자 인증 확인됨 - 메뉴 데이터 가져오기');
700
+
701
+ // 먼저 메뉴 데이터 가져오기
702
+ await fetchMenu({
703
+ crprCd: String(user.crprCd || '100'),
704
+ userId: user.userId,
705
+ prntGbcd: 1,
706
+ });
707
+
708
+ // 새로고침 시 공통코드가 없으면 다시 가져오기
709
+ if (!codeData) {
710
+ console.log('새로고침 감지 - 공통코드 다시 가져오기');
711
+ fetchCommonCodes();
712
+ }
713
+ };
714
+
715
+ loadData();
716
+ }, [
717
+ user?.userId,
718
+ user?.crprCd,
719
+ navigate,
720
+ fetchMenu,
721
+ fetchCommonCodes,
722
+ codeData,
723
+ ]); // 의존성 배열에 필요한 모든 값 포함`})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"2. 탭 변경에 따른 데이터 로딩 (CMSystCodeM01.tsx)"}),e.jsx(_e,{importText:`// 선택된 시스템 변경 시 앱 데이터 로드
724
+ useEffect(() => {
725
+ if (selectedSystem) {
726
+ callService('SCMAPP00101', {
727
+ crprCd: getCrprCd(),
728
+ systId: selectedSystem.systId,
729
+ }).then(response => {
730
+ console.log('SCMAPP00101:', response);
731
+ appGridRef.current?.addAllData(response.data);
732
+ });
733
+ }
734
+ }, [selectedSystem]); // selectedSystem이 변경될 때만 실행
735
+
736
+ // 탭 변경 시 공통코드 데이터 로드
737
+ useEffect(() => {
738
+ if (selectedSystem) {
739
+ callService('SCMCODE00101', {
740
+ crprCd: getCrprCd(),
741
+ srchGb: activeTab === 'group' ? 'group' : 'detail',
742
+ }).then(response => {
743
+ console.log({ SCMCODE00101: response.data });
744
+ activeTab === 'group'
745
+ ? groupGridRef.current?.addAllData(response.data)
746
+ : detailGridRef.current?.addAllData(response.data);
747
+ });
748
+ }
749
+ }, [activeTab, selectedSystem]); // activeTab과 selectedSystem 변경 시 실행`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:5,children:"3. 팝업 데이터 초기화 (CMAuthMstrP01.tsx)"}),e.jsx(_e,{importText:`// 팝업 열릴 때 데이터 로드 및 초기화
750
+ useEffect(() => {
751
+ // 팝업 데이터에서 기존 선택된 메뉴 가져오기
752
+ const currentPopup: any = popups.find(p => p.popupId === activePopupId);
753
+ if (currentPopup?.data?.selectedMenus) {
754
+ setSelectedMenus(currentPopup.data.selectedMenus);
755
+ }
756
+
757
+ // 메뉴 데이터 로드
758
+ loadMenuData();
759
+ }, [popups, activePopupId]); // popups나 activePopupId 변경 시 실행
760
+
761
+ // 메뉴 데이터 로드 함수
762
+ const loadMenuData = async () => {
763
+ try {
764
+ const response = await callService('SCMMENU00101', {});
765
+ console.log('메뉴 데이터:', response.menus);
766
+
767
+ menuTreeRef.current?.addAllData(response.menus, {
768
+ treeOption: {
769
+ isExpand: true,
770
+ dataField: 'menuId',
771
+ parentField: 'menuPrntId',
772
+ },
773
+ });
774
+ } catch (error) {
775
+ console.error('메뉴 데이터 로드 실패:', error);
776
+ }
777
+ };`})]})]}),e.jsx(Xl,{})]})})}),e.jsx("div",{id:"forwardRef",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"forwardRef",subtitle:"컴포넌트 간 ref 전달"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[e.jsx(s.Alert,{message:"forwardRef는 부모 컴포넌트에서 자식 컴포넌트의 DOM 요소에 직접 접근할 수 있게 해주는 기능입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"부모 컴포넌트에서 자식 컴포넌트의 DOM 요소에 직접 접근할 때"}),e.jsx("li",{children:"재사용 가능한 컴포넌트 라이브러리를 만들 때"}),e.jsx("li",{children:"HOC(Higher-Order Component)나 래퍼 컴포넌트에서 ref를 전달할 때"})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"📝 기본 문법"}),e.jsx(_e,{importText:`import React, { forwardRef, useRef } from 'react';
778
+
779
+ // forwardRef를 사용한 컴포넌트 정의
780
+ const MyInput = forwardRef<HTMLInputElement, { placeholder?: string }>(
781
+ (props, ref) => {
782
+ return (
783
+ <input
784
+ ref={ref}
785
+ placeholder={props.placeholder}
786
+ style={{ padding: '8px', border: '1px solid #ccc' }}
787
+ />
788
+ );
789
+ }
790
+ );
791
+
792
+ // 부모 컴포넌트에서 사용
793
+ const Parent = () => {
794
+ const inputRef = useRef<HTMLInputElement>(null);
795
+
796
+ const focusInput = () => {
797
+ inputRef.current?.focus();
798
+ };
799
+
800
+ return (
801
+ <div>
802
+ <MyInput ref={inputRef} placeholder="포커스될 입력 필드" />
803
+ <button onClick={focusInput}>포커스</button>
804
+ </div>
805
+ );
806
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"⚠️ 주의사항"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"forwardRef는 함수형 컴포넌트에서만 사용 가능합니다"}),e.jsx("li",{children:"TypeScript 사용 시 제네릭으로 ref와 props 타입을 명시해야 합니다"}),e.jsx("li",{children:"남용하지 마세요. 대부분의 경우 props로 충분합니다"})]})]}),e.jsx(nv,{}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),e.jsx(s.Alert,{message:"실제 프로젝트에서 forwardRef와 useImperativeHandle 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용할 수 있는 고급 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"1. 재사용 가능한 그리드 컴포넌트 (BwgGrid 스타일)"}),e.jsx(_e,{importText:`// 그리드 컴포넌트에 forwardRef와 useImperativeHandle 적용
807
+ interface GridRef {
808
+ addAllData: (data: any[]) => void;
809
+ getCurrentIndex: () => number;
810
+ clearData: () => void;
811
+ refresh: () => void;
812
+ }
813
+
814
+ const CustomGrid = forwardRef<GridRef, { columns: any[]; options?: any }>(
815
+ ({ columns, options }, ref) => {
816
+ const [data, setData] = useState([]);
817
+ const [currentIndex, setCurrentIndex] = useState(-1);
818
+ const gridInstanceRef = useRef(null);
819
+
820
+ useImperativeHandle(ref, () => ({
821
+ addAllData: (newData: any[]) => {
822
+ setData(newData);
823
+ setCurrentIndex(newData.length > 0 ? 0 : -1);
824
+ },
825
+ getCurrentIndex: () => currentIndex,
826
+ clearData: () => {
827
+ setData([]);
828
+ setCurrentIndex(-1);
829
+ },
830
+ refresh: () => {
831
+ // 그리드 새로고침 로직
832
+ gridInstanceRef.current?.refresh?.();
833
+ },
834
+ }), [currentIndex]);
835
+
836
+ return (
837
+ <div className="custom-grid">
838
+ {/* 실제 그리드 렌더링 로직 */}
839
+ <table ref={gridInstanceRef}>
840
+ {/* 그리드 내용 */}
841
+ </table>
842
+ </div>
843
+ );
844
+ }
845
+ );`})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsx(s.Typography.Title,{level:5,children:"2. 복합 입력 컴포넌트 (검색 필드)"}),e.jsx(_e,{importText:`// 검색 기능이 포함된 복합 입력 컴포넌트
846
+ interface SearchInputRef {
847
+ focus: () => void;
848
+ clear: () => void;
849
+ getValue: () => string;
850
+ search: () => void;
851
+ setSearchTerm: (term: string) => void;
852
+ }
853
+
854
+ const SearchInput = forwardRef<
855
+ SearchInputRef,
856
+ {
857
+ onSearch?: (term: string) => void;
858
+ placeholder?: string;
859
+ defaultValue?: string;
860
+ }
861
+ >(({ onSearch, placeholder, defaultValue = '' }, ref) => {
862
+ const [value, setValue] = useState(defaultValue);
863
+ const [isLoading, setIsLoading] = useState(false);
864
+ const inputRef = useRef<HTMLInputElement>(null);
865
+
866
+ const handleSearch = async () => {
867
+ if (!value.trim()) return;
868
+
869
+ setIsLoading(true);
870
+ try {
871
+ await onSearch?.(value);
872
+ } finally {
873
+ setIsLoading(false);
874
+ }
875
+ };
876
+
877
+ useImperativeHandle(ref, () => ({
878
+ focus: () => inputRef.current?.focus(),
879
+ clear: () => {
880
+ setValue('');
881
+ inputRef.current?.focus();
882
+ },
883
+ getValue: () => value,
884
+ search: handleSearch,
885
+ setSearchTerm: (term: string) => setValue(term),
886
+ }), [value, onSearch]);
887
+
888
+ return (
889
+ <div className="search-input-container">
890
+ <input
891
+ ref={inputRef}
892
+ value={value}
893
+ onChange={(e) => setValue(e.target.value)}
894
+ placeholder={placeholder}
895
+ onKeyDown={(e) => e.key === 'Enter' && handleSearch()}
896
+ />
897
+ <button
898
+ onClick={handleSearch}
899
+ disabled={isLoading}
900
+ >
901
+ {isLoading ? '검색중...' : '검색'}
902
+ </button>
903
+ </div>
904
+ );
905
+ });`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:5,children:"3. 모달 컴포넌트 제어 (팝업 스타일)"}),e.jsx(_e,{importText:`// 팝업/모달 컴포넌트의 외부 제어 인터페이스
906
+ interface ModalRef {
907
+ open: () => void;
908
+ close: () => void;
909
+ isOpen: () => boolean;
910
+ setTitle: (title: string) => void;
911
+ setContent: (content: React.ReactNode) => void;
912
+ }
913
+
914
+ const CustomModal = forwardRef<
915
+ ModalRef,
916
+ {
917
+ defaultTitle?: string;
918
+ onClose?: () => void;
919
+ children?: React.ReactNode;
920
+ }
921
+ >(({ defaultTitle = '', onClose, children }, ref) => {
922
+ const [isVisible, setIsVisible] = useState(false);
923
+ const [title, setTitle] = useState(defaultTitle);
924
+ const [content, setContent] = useState<React.ReactNode>(children);
925
+
926
+ const handleClose = () => {
927
+ setIsVisible(false);
928
+ onClose?.();
929
+ };
930
+
931
+ useImperativeHandle(ref, () => ({
932
+ open: () => setIsVisible(true),
933
+ close: handleClose,
934
+ isOpen: () => isVisible,
935
+ setTitle: (newTitle: string) => setTitle(newTitle),
936
+ setContent: (newContent: React.ReactNode) => setContent(newContent),
937
+ }), [isVisible, onClose]);
938
+
939
+ if (!isVisible) return null;
940
+
941
+ return (
942
+ <div className="modal-overlay" onClick={handleClose}>
943
+ <div className="modal-content" onClick={(e) => e.stopPropagation()}>
944
+ <div className="modal-header">
945
+ <h3>{title}</h3>
946
+ <button onClick={handleClose}>×</button>
947
+ </div>
948
+ <div className="modal-body">
949
+ {content}
950
+ </div>
951
+ </div>
952
+ </div>
953
+ );
954
+ });
955
+
956
+ // 사용 예시
957
+ const ParentComponent = () => {
958
+ const modalRef = useRef<ModalRef>(null);
959
+
960
+ const openModal = () => {
961
+ modalRef.current?.setTitle('동적 제목');
962
+ modalRef.current?.setContent(<div>동적 콘텐츠</div>);
963
+ modalRef.current?.open();
964
+ };
965
+
966
+ return (
967
+ <div>
968
+ <button onClick={openModal}>모달 열기</button>
969
+ <CustomModal ref={modalRef} />
970
+ </div>
971
+ );
972
+ };`})]})]})]})})}),e.jsx("div",{id:"useImperativeHandle",style:{marginBottom:"60px"},children:e.jsx(s.Card,{title:e.jsx(hr,{title:"useImperativeHandle",subtitle:"부모에게 노출할 인스턴스 값 커스터마이징"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[e.jsx(s.Alert,{message:"useImperativeHandle은 부모 컴포넌트에게 노출할 메서드를 직접 정의할 수 있는 고급 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),e.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[e.jsx("li",{children:"부모 컴포넌트에 특정 메서드만 노출하고 싶을 때"}),e.jsx("li",{children:"복잡한 컴포넌트의 내부 로직을 캡슐화하면서 필요한 기능만 제공할 때"}),e.jsx("li",{children:"라이브러리 컴포넌트에서 공개 API를 정의할 때"})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"📝 기본 문법"}),e.jsx(_e,{importText:`import React, { forwardRef, useImperativeHandle, useRef } from 'react';
973
+
974
+ // 자식 컴포넌트
975
+ const CustomInput = forwardRef<
976
+ { focus: () => void; clear: () => void; getValue: () => string },
977
+ { defaultValue?: string }
978
+ >((props, ref) => {
979
+ const inputRef = useRef<HTMLInputElement>(null);
980
+ const [value, setValue] = useState(props.defaultValue || '');
981
+
982
+ // 부모에게 노출할 메서드들을 정의
983
+ useImperativeHandle(ref, () => ({
984
+ focus: () => {
985
+ inputRef.current?.focus();
986
+ },
987
+ clear: () => {
988
+ setValue('');
989
+ inputRef.current?.focus();
990
+ },
991
+ getValue: () => {
992
+ return value;
993
+ }
994
+ }));
995
+
996
+ return (
997
+ <input
998
+ ref={inputRef}
999
+ value={value}
1000
+ onChange={(e) => setValue(e.target.value)}
1001
+ />
1002
+ );
1003
+ });
1004
+
1005
+ // 부모 컴포넌트
1006
+ const Parent = () => {
1007
+ const customInputRef = useRef<{
1008
+ focus: () => void;
1009
+ clear: () => void;
1010
+ getValue: () => string;
1011
+ }>(null);
1012
+
1013
+ const handleFocus = () => customInputRef.current?.focus();
1014
+ const handleClear = () => customInputRef.current?.clear();
1015
+ const handleGetValue = () => {
1016
+ const value = customInputRef.current?.getValue();
1017
+ alert(\`현재 값: \${value}\`);
1018
+ };
1019
+
1020
+ return (
1021
+ <div>
1022
+ <CustomInput ref={customInputRef} />
1023
+ <button onClick={handleFocus}>포커스</button>
1024
+ <button onClick={handleClear}>클리어</button>
1025
+ <button onClick={handleGetValue}>값 가져오기</button>
1026
+ </div>
1027
+ );
1028
+ };`})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"🔍 forwardRef vs useImperativeHandle"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0f9ff",borderRadius:"6px"},children:[e.jsx("strong",{children:"forwardRef"}),e.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[e.jsx("li",{children:"DOM 요소를 그대로 전달"}),e.jsx("li",{children:"단순한 ref 전달"}),e.jsx("li",{children:"DOM의 모든 속성/메서드 접근 가능"})]})]}),e.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0fdf4",borderRadius:"6px"},children:[e.jsx("strong",{children:"useImperativeHandle"}),e.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[e.jsx("li",{children:"커스텀 메서드만 노출"}),e.jsx("li",{children:"내부 구현 숨김"}),e.jsx("li",{children:"필요한 기능만 선택적 제공"})]})]})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography.Title,{level:4,children:"⚠️ 주의사항"}),e.jsx(s.Alert,{message:"꼭 필요한 경우에만 사용하세요!",description:"useImperativeHandle은 React의 선언적 패러다임을 벗어나는 명령형 API입니다. 대부분의 경우 props와 state로 충분하므로, 정말 필요한 경우에만 사용하세요.",type:"warning",showIcon:!0})]}),e.jsx(ov,{})]})})})]})]})})},av=t=>{u.useEffect(()=>{E.search()},[]);const r=u.useRef(null),n=u.useRef(null),o=u.useRef(null),[i,a]=u.useState(""),[l,c]=u.useState("");ht.useSearchBox();const d=u.useMemo(()=>[{fieldName:"crprCd",header:{text:"법인코드"},width:80,styleName:"center"},{fieldName:"sysCd",header:{text:"시스템코드"},width:100,styleName:"center"},{fieldName:"fileGrpKey",header:{text:"파일그룹키"},width:120,styleName:"center"},{fieldName:"fileKey",header:{text:"파일키"},width:200,styleName:"center"},{fieldName:"lgclFileNm",header:{text:"파일 논리명"},width:250,styleName:"left"},{fieldName:"fileSize",header:{text:"파일 크기"},width:100,styleName:"right",displayCallback:(g,j,v)=>{if(!v)return"0 Bytes";const b=Number(v);if(isNaN(b)||b===0)return"0 Bytes";const w=1024,P=["Bytes","KB","MB","GB","TB"],B=Math.floor(Math.log(b)/Math.log(w));return parseFloat((b/Math.pow(w,B)).toFixed(2))+" "+P[B]}},{fieldName:"fileExtn",header:{text:"파일 확장자"},width:100,styleName:"center"},{fieldName:"fileType",header:{text:"파일 타입"},width:120,styleName:"center"}],[]),p=u.useMemo(()=>[{fieldName:"fileGrpKey",header:{text:"파일 그룹키"},width:50,styleName:"center"},{fieldName:"fileKey",header:{text:"파일 키"},width:50,styleName:"center"},{fieldName:"fileSeq",header:{text:"파일 정렬순서"},width:50,styleName:"center"},{fieldName:"lgclFileNm",header:{text:"파일 논리명"},width:200,styleName:"left"},{fieldName:"physFileNm",header:{text:"파일 물리명"},width:200,styleName:"left"},{fieldName:"fileExtn",header:{text:"파일 확장자"},width:100},{fieldName:"mltpYn",header:{text:"대용량파일 여부"},width:100},{fieldName:"fileSize",header:{text:"파일 크기"},width:100,styleName:"right",displayCallback:(g,j,v)=>{if(!v)return"0 Bytes";const b=Number(v);if(isNaN(b)||b===0)return"0 Bytes";const w=1024,P=["Bytes","KB","MB","GB","TB"],B=Math.floor(Math.log(b)/Math.log(w));return parseFloat((b/Math.pow(w,B)).toFixed(2))+" "+P[B]}},{fieldName:"filePath",header:{text:"파일 경로"},width:100,styleName:"right"}],[]),h={onCurrentRowChanged(g,j,v){if(v<0)return;let b=g.getDataSource().getJsonRow(v);a(b.fileGrpKey),b.mltpYn=="Y"?ae.callService("SCMFILE00106",{crprCd:ae.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:b.fileGrpKey,fileKey:b.fileKey},{},t.appCd).then(w=>{o.current?.addAllData(w.sub)}):o.current?.dp?.clearRows()}},f={container:{check:!0,checkAll:!0,indicator:!0,footer:!0}},x={SCMFILE00101:()=>{ae.callService("SCMFILE00101",{crprCd:ae.getUserInfo()?.crprCd,sysCd:__SYS_CD__},{},t.appCd).then(g=>{n.current?.addAllData(g.sub)}).catch(g=>{console.error("오류:",g)})}},E={search:()=>{x.SCMFILE00101()},download:()=>{console.log("download");let g=n.current?.dp?.getJsonRow(n.current?.getCurrentRow());ae.downloadByFileKey(g.fileKey)}};return e.jsx(xt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{E.search()}},{id:"download",label:"다운로드",onClick:()=>{E.download()}}]},children:e.jsxs(Ne,{type:"horizontal",children:[e.jsxs(Ce,{className:"w60",children:[e.jsx(ke,{title:"파일 목록",children:e.jsx("div",{style:{float:"right"},children:e.jsx(s.Space,{children:e.jsx(H.BwgButton,{onClick:()=>E.download(),children:"다운로드"})})})}),e.jsx($e,{ref:n,gridColumns:p,gridOptions:f,gridEvents:h})]}),e.jsx(Ce,{className:"w40",border:!0,children:e.jsx(s.Tabs,{type:"card",defaultActiveKey:"1",style:{height:"100%"},items:[{label:"파일상세",key:"1",children:e.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[e.jsx(ke,{title:"dtls 그리드"}),e.jsx($e,{ref:o,gridColumns:d})]})},{label:"파일 샘플",key:"2",children:e.jsx("div",{style:{height:"100%",overflowY:"auto",padding:"10px"},children:e.jsx(Ut,{title:"샘플 업로드",children:e.jsxs(s.Form,{layout:"vertical",ref:r,children:[e.jsx(s.Divider,{orientation:"left",style:{borderColor:"#7cb305"},children:"그리드 onCurrentRowChanged연동"}),e.jsx(H.BwgInput,{itemProps:{label:"파일 그룹키 (fileGrpKey)"},inputProps:{value:i,onChange:g=>a(g.target.value)}}),e.jsx(H.BwgUploader,{fileGrpKey:i}),e.jsx(s.Divider,{orientation:"left",style:{borderColor:"#7cb305"},children:"파일업로드시 fileGrpKey 채번 및 연동"}),e.jsx(H.BwgInput,{itemProps:{label:"채번 그룹키 (fileGrpKey2)"},inputProps:{value:l,disabled:!0}}),e.jsx(H.BwgUploader,{fileGrpKey:l,onUploadComplete:g=>{console.log(g),l||c(g.fileGrpKey)}}),e.jsx(s.Divider,{orientation:"left",style:{borderColor:"#7cb305"},children:"대용량파일 업로드(zip압축 후 업로드)"}),e.jsx(H.BwgLargeUploader,{fileGrpKey:l})]})})})}]})})]})})},mu=({width:t="40%",searchContext:r,onOk:n,onClose:o,...i})=>{const a=u.useRef(null),l=u.useRef(null),[c,d]=u.useState([]),p=u.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"sysCd",visible:!1},{fieldName:"appCd",width:60,header:{text:"애플리케이션"},styleName:"left"},{fieldName:"prgrId",width:120,header:{text:"프로그램ID"},styleName:"left"},{fieldName:"prgrNm",width:200,header:{text:"프로그램명"},styleName:"left"},{fieldName:"enblYn",width:80,header:{text:"사용여부"},styleName:"center",renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]);u.useEffect(()=>{r?.sysCd&&(a.current?.setFormData({sysCd:r.sysCd}),g.SCMPRGR00101())},[r?.sysCd]);const h=()=>{g.SCMPRGR00101()},f=v=>{v.key==="Enter"&&h()},x=()=>{console.log("selectedRows:",c),c.length>0?n?.(c[0]):n?.({})},E=()=>{i.onCancel?.(),o?.()},g=u.useMemo(()=>({SCMPRGR00101:()=>{const v={...a.current?.getFormData()};ae.callService("SCMPRGR00101",v).then(b=>{console.log("response.programs:",b.data),l.current?.addAllData(b.data||[])}).catch(b=>{console.error("오류:",b)})}}),[]),j={onCurrentRowChanged:(v,b,w)=>{if(w>=0){const P=l.current?.vw?.getItemIndex(w),B=l.current?.vw?.getValues(P||0);d([B])}},onCellDblClicked:(v,b)=>{const w=b.itemIndex;if(w>=0){const P=l.current?.vw?.getValues(w);console.log(P),d([P]),n?.(P)}}};return e.jsx(s.ConfigProvider,{theme:{components:{Modal:{wireframe:!0,titleColor:"#08979c",headerBg:"#e6fffb"}}},children:e.jsx(s.Modal,{title:"프로그램 선택",width:t,maskClosable:!1,styles:{body:{paddingTop:"10px"}},okText:"적용",...i,onOk:x,onCancel:E,children:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsx(Vn,{ref:a,reqRows:e.jsxs(s.Row,{gutter:[16,8],children:[e.jsx(s.Col,{span:8,children:e.jsx(H.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",style:{marginBottom:0},labelCol:{flex:"80px"}},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],style:{fontSize:"12px"},onChange:g.SCMPRGR00101}})}),e.jsx(s.Col,{span:16,children:e.jsx(H.BwgInput,{itemProps:{name:"keyword",label:"검색어",style:{marginBottom:0},labelCol:{flex:"90px"}},inputProps:{placeholder:"프로그램ID 또는 프로그램명을 입력하세요",suffix:e.jsx(q.SearchOutlined,{style:{color:"#1890ff",cursor:"pointer"},onClick:h}),onKeyPress:f}})})]})}),e.jsx($e,{ref:l,gridColumns:p,gridOptions:{container:{radio:!0,footer:!1}},gridEvents:j,gridDivStyle:{marginTop:8,height:400}}),c.length>0&&e.jsxs("div",{style:{marginTop:16,padding:12,backgroundColor:"#f6ffed",border:"1px solid #b7eb8f",borderRadius:6},children:[e.jsx("strong",{children:"선택된 프로그램:"})," ",c[0]?.prgrNm," (",c[0]?.prgrId,")"]})]})})})},xu=({width:t="40%",searchContext:r,onOk:n,onClose:o,...i})=>{const a=u.useRef(null),l=u.useRef(null),[c,d]=u.useState([]),p=u.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"sysCd",visible:!1},{fieldName:"appCd",width:120,header:{text:"애플리케이션"},styleName:"left"},{fieldName:"menuGbCd",width:100,header:{text:"메뉴구분"},styleName:"center",lookupDisplay:!0,labels:["메인메뉴","서브메뉴","프로그램"],values:["CMPRGRM","CMPRGRS","CMPRGRP"],renderer:{type:"text",showTooltip:!1}},{fieldName:"menuId",width:120,header:{text:"메뉴ID"},styleName:"left"},{fieldName:"menuNm",width:200,header:{text:"메뉴명"},styleName:"left"},{fieldName:"menuPrntId",width:120,header:{text:"상위메뉴ID"},styleName:"left"}],[]);u.useEffect(()=>{setTimeout(()=>{l.current?.vw&&l.current.vw.setRowStyleCallback(function(w,P,B){const C=w.getValue(P.index,"menuGbCd");if(C==="CMPRGRM")return{style:{background:"#e8f0ff"}};if(C==="CMPRGRS")return{style:{background:"#f0f8ff"}}})},200)},[]),u.useEffect(()=>{r?.sysCd&&a.current?.setFormData({sysCd:r.sysCd,appCd:"",keyword:r.keyword||""})},[r?.sysCd,r?.keyword]);const h=()=>{j.SCMMENU00104()},f=b=>{b.key==="Enter"&&h()},x=()=>{a.current?.setFormData({sysCd:"",appCd:"",keyword:""})},E=()=>{console.log("selectedRows:",c),c.length>0?n?.(c[0]):n?.({})},g=()=>{i.onCancel?.(),o?.()},j=u.useMemo(()=>({SCMMENU00104:()=>{const b={crprCd:ae.getCrprCd(),...a.current?.getFormData()};ae.callService("SCMMENU00104",b).then(w=>{console.log("response.menus:",w.sub),l.current?.addAllData(w.sub,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(w=>{console.error("오류:",w)})}}),[]),v=u.useMemo(()=>({onCurrentRowChanged:(b,w,P)=>{if(P>=0){const B=l.current?.vw?.getItemIndex(P),C=l?.current?.vw?.getValues(B||0);d([C])}},onCellDblClicked:(b,w)=>{const P=w.itemIndex;if(P>=0){const B=l.current?.vw?.getValues(P);console.log(B),d([B]),n?.(B)}}}),[n]);return e.jsx(s.ConfigProvider,{theme:{components:{Modal:{wireframe:!0,titleColor:"#08979c",headerBg:"#e6fffb"}}},children:e.jsx(s.Modal,{title:"상위 메뉴 선택",width:t,maskClosable:!1,styles:{body:{paddingTop:"10px"}},okText:"적용",...i,onOk:E,onCancel:g,children:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsx(Vn,{border:!0,header:{title:"메뉴 선택",buttons:[e.jsx(H.BwgButton,{onClick:()=>j.SCMMENU00104(),style:{marginRight:8},children:"검색"},"search"),e.jsx(H.BwgButton,{onClick:x,children:"초기화"},"reset")]},ref:a,reqRows:e.jsxs(s.Row,{gutter:[20,5],children:[e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",style:{marginBottom:0}},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],style:{fontSize:"12px"},onChange:j.SCMMENU00104}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션",style:{marginBottom:0}},selectProps:{options:[{label:"선택하세요",value:""},{label:"ERP",value:"ERP"},{label:"HR",value:"HR"},{label:"SUPPORT",value:"SUPPORT"}],style:{fontSize:"12px"}}})}),e.jsx(s.Col,{span:7,children:e.jsx(H.BwgInput,{itemProps:{name:"keyword",label:"검색어",style:{marginBottom:0}},inputProps:{placeholder:"메뉴ID 또는 메뉴명을 입력하세요",style:{fontSize:"12px"},onKeyPress:f}})}),e.jsx(s.Col,{span:5,style:{textAlign:"right"}})]})}),e.jsx($e,{ref:l,type:"tree",gridColumns:p,gridOptions:{container:{radio:!0,footer:!1}},gridEvents:v,gridDivStyle:{marginTop:8,height:400}}),c.length>0&&e.jsxs("div",{style:{marginTop:16,padding:12,backgroundColor:"#f6ffed",border:"1px solid #b7eb8f",borderRadius:6},children:[e.jsx("strong",{children:"선택된 메뉴:"})," ",c[0]?.menuNm," (",c[0].menuId,")"]})]})})})},Lr={KE:[{label:"재무회계",value:"FI"},{label:"예산관리",value:"FM"},{label:"구매계약",value:"MM"},{label:"영업관리",value:"SD"},{label:"파트너관리",value:"PMN"}],KH:[{label:"HR 솔루션",value:"HR"},{label:"연말정산",value:"YT"},{label:"평정",value:"PE"}],KS:[{label:"온통",value:"BCOM"},{label:"e-감사",value:"EAUD"},{label:"청령신고",value:"INR"},{label:"ITAM",value:"ITAM"},{label:"차량/회의실",value:"CMM"},{label:"OA전산물품관리",value:"OAM"},{label:"총무관리",value:"GAM"},{label:"출입관리",value:"ACM"},{label:"비품관리",value:"IVM"},{label:"인장서비스",value:"SGS"},{label:"사료관리",value:"HIS"},{label:"웹펙스서비스",value:"WFAX"},{label:"메시지서비스",value:"SMS"},{label:"경영공시",value:"BID"},{label:"언론미디어",value:"PAM"},{label:"심의자문위원회",value:"DAC"},{label:"지식재산권신청",value:"IPR"},{label:"정보공유게시판",value:"ISB"}]},lv={container:{check:!0,checkAll:!0,indicator:!0,footer:!0}},Ql=({readOnly:t=!1,drawerMode:r=""})=>{const n=s.Form.useFormInstance(),[o,i]=u.useState(null),[a,l]=u.useState(null),[c,d]=u.useState([]),[p,h]=u.useState("CMPRGRP"),[f,x]=u.useState(!0),[E,g]=u.useState(!1),[j,v]=u.useState({}),[b,w]=u.useState(!1),[P,B]=u.useState({});u.useEffect(()=>{const N=n.getFieldValue("sysCd"),$=n.getFieldValue("appCd"),M=n.getFieldValue("menuGbCd"),D=n.getFieldValue("deftMenuNo");i(N??null),l($??null),h(M??"CMPRGRP"),x(D??!0),N&&Lr[N]?d(Lr[N]):d([])},[n]);const C=N=>{i(N),N&&Lr[N]?d(Lr[N]):d([]),n.resetFields(["appCd","scrnId","scrnNm","menuPrntId","menuPrntNm"])},m=N=>{x(N),N&&n.setFieldsValue({menuNo:""})},R=N=>{N&&n.setFieldsValue({menuPrntId:N.menuId,menuPrntNm:N.menuNm}),g(!1),v({})},T=N=>{N&&n.setFieldsValue({scrnId:N.prgrId,scrnNm:N.prgrNm}),w(!1),B({})};return e.jsxs(e.Fragment,{children:[e.jsx(s.Row,{gutter:12,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgRadio,{itemProps:{name:"menuGbCd"},inputProps:{options:[{label:"메인메뉴",value:"CMPRGRM"},{label:"서브메뉴",value:"CMPRGRS"},{label:"프로그램",value:"CMPRGRP"}],defaultValue:"CMPRGRP",optionType:"button",size:"middle",style:{pointerEvents:t?"none":void 0},onChange:N=>{h(N.target.value)}}})})}),e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{name:"sysCd",label:"시스템"},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],onChange:C,disabled:t||r==="EDIT",placeholder:"시스템을 선택하세요"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션"},selectProps:{options:c,disabled:t||!o||r==="EDIT",placeholder:"시스템을 먼저 선택하세요"}})})]}),e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{itemProps:{name:"menuId",label:"메뉴ID"},inputProps:{placeholder:"자동 채번",disabled:!0,readOnly:t,variant:t?"borderless":"outlined"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{itemProps:{name:"menuNm",label:"메뉴명"},inputProps:{readOnly:t,variant:t?"borderless":"outlined"}})})]}),p==="CMPRGRP"&&e.jsx(s.Row,{gutter:24,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgSearch,{itemProps:{label:"프로그램ID",name:["scrnId","scrnNm"]},readOnly:t,popupConfig:!0,onSearch:()=>{o?(w(!0),B({sysCd:o,keyword:n.getFieldValue("scrnNm")})):ae.showWarning("시스템을 선택하세요")}})})}),p!=="CMPRGRM"&&e.jsx(s.Row,{gutter:24,children:e.jsx(s.Col,{span:24,children:e.jsx(H.BwgSearch,{itemProps:{label:"상위 메뉴",name:["menuPrntId","menuPrntNm"]},readOnly:t,onSearch:()=>{console.log("formSysCd:",o),o?(g(!0),v({sysCd:o,keyword:n.getFieldValue("menuPrntNm")})):ae.showWarning("시스템을 선택하세요")}})})}),e.jsxs(s.Row,{gutter:12,children:[p=="CMPRGRP"&&e.jsxs(e.Fragment,{children:[e.jsx(s.Col,{span:r=="NEW"?8:12,children:e.jsx(H.BwgFormItem,{name:"menuNo",label:"메뉴번호",children:e.jsx(s.Input.OTP,{length:4,formatter:N=>N.replace(/\D/g,""),disabled:r=="NEW"?f:t,style:{width:"180px"}})})}),r=="NEW"&&e.jsx(s.Col,{span:3,offset:1,children:e.jsx(H.BwgCheck,{itemProps:{name:"isAutoMenuNo",label:"자동채번"},inputProps:{defaultChecked:!0,onChange:N=>m(N.target.checked)}})})]}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgRadio,{itemProps:{name:"useYn",label:"사용여부"},inputProps:{defaultValue:"Y",options:[{label:"Y",value:"Y"},{label:"N",value:"N"}],optionType:"button",style:{pointerEvents:t?"none":void 0,width:"100%"}}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgNumber,{itemProps:{name:"sortOrdr",label:"정렬순서"},inputProps:{defaultValue:0,min:1,max:99,precision:0,controls:!0,readOnly:t,variant:t?"borderless":"outlined"}})}),p=="CMPRGRM"&&e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{itemProps:{name:"iconCd",label:"아이콘명"},inputProps:{readOnly:t,variant:t?"borderless":"outlined"}})})]}),e.jsx(H.BwgTextArea,{itemProps:{name:"menuDscr",label:"메뉴 설명"},inputProps:{disabled:t,rows:3}}),e.jsx(mu,{open:b,searchContext:P,onOk:T,onClose:()=>{w(!1),B({})}}),e.jsx(xu,{open:E,searchContext:j,onOk:R,onClose:()=>{g(!1),v({})}})]})},cv=t=>{const r=u.useRef(null),n=u.useRef(null),o=u.useRef(null),i=ut.useCodeStore(),{getFormData:a,setFormData:l}=ht.useSearchBox(),[c,d]=u.useState([]),[p,h]=u.useState(!1),[f,x]=u.useState(""),[E,g]=u.useState(-1),j=u.useCallback(T=>{h(!0),x(T)},[]),v=u.useCallback(()=>{h(!1),x("")},[]),b=u.useMemo(()=>i.getGridLookup("CMPRGR"),[i]),w=u.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"sysCd",visible:!1},{fieldName:"appCd",visible:!1},{fieldName:"menuPrntId",visible:!1},{fieldName:"menuPrntNm",visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,styleName:"left"},{fieldName:"menuGbCd",header:{text:"메뉴구분"},width:100,styleName:"left",...b},{name:"menuNm",fieldName:"menuNm",header:{text:"메뉴명"},width:200,styleName:"left"},{fieldName:"scrnId",header:{text:"화면ID"},width:100,styleName:"left"},{fieldName:"scrnNm",header:{text:"화면이름"},width:100,styleName:"left"},{fieldName:"menuNo",header:{text:"메뉴번호"},width:100,styleName:"left"},{fieldName:"useYn",visible:!1},{fieldName:"sortOrdr",visible:!1},{fieldName:"iconCd",visible:!1},{fieldName:"menuDscr",visible:!1}],[b]);u.useEffect(()=>{if(f==="NEW")n.current?.setFieldsValue({useYn:"Y",deftMenuNo:!0,menuGbCd:"CMPRGRP"});else if(f==="EDIT"){const T=o.current?.getCurrentIndex();if(T!==void 0&&T>=0){const N=o.current?.vw?.getValues(T);n.current?.setFieldsValue(N)}}else n.current?.resetFields()},[f]),u.useEffect(()=>{setTimeout(()=>{o.current?.vw&&o.current.vw.setRowStyleCallback(function(N,$,M){const D=N.getValue($.index,"menuGbCd");if(D==="CMPRGRM")return{style:{background:"#e8f0ff"}};if(D==="CMPRGRS")return{style:{background:"#f0f8ff"}};if(D==="CMPRGRP")return{style:{background:"#fff"}}})},200)},[]);const P=T=>{T&&Lr[T]?d([{label:"전체",value:""},...Lr[T]]):d([{label:"전체",value:""}]),l({appCd:""}),C.SCMMENU00101()},B=()=>{n.current?.validateFields().then(T=>{console.log("Form values:",T),(f==="NEW"||f==="EDIT")&&C.SCMMENU00102()}).catch(T=>{console.log("Validation failed:",T)})},C={SCMMENU00101:()=>{const T={crprCd:ae.getCrprCd(),...a()};console.log("Search data:",T),ae.callService("SCMMENU00101",T,{},t.appCd).then(N=>{o.current?.addAllData(N.menus,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(N=>{console.error("오류:",N)})},SCMMENU00102:()=>{const T={iudFlag:f==="EDIT"?"U":"I",crprCd:ae.getCrprCd(),...n?.current?.getFieldsValue()};delete T.scrnNm,delete T.menuPrntNm,ae.callService("SCMMENU00102",T,{},t.appCd).then(N=>{console.log("Save response:",N),N.result>0&&(v(),C.SCMMENU00101())}).catch(N=>{console.error("저장 오류:",N)})},SCMMENU00103:()=>{const T={},N=o.current?.vw?.getCheckedRows(!1),$=[];N?.forEach(M=>{const D=o.current?.dp?.getJsonRow(M);$.push({crprCd:D.crprCd,sysCd:D.sysCd,appCd:D.appCd,menuId:D.menuId,menuGbCd:D.menuGbCd})}),T.sub=$,ae.callService("SCMMENU00103",T,{},t.appCd).then(M=>{console.log(M),M?.result>0&&C.SCMMENU00101()})}},m={search:()=>{C.SCMMENU00101()},new:()=>{j("NEW")},delete:()=>{const T=o.current?.vw?.getCheckedRows(!1);if(T?.length==0){ae.showWarning("삭제할 행을 체크하세요");return}else{let N=0,$=0,M=0;T?.forEach(D=>{const V=o.current?.dp?.getValue(D,"menuGbCd");V==="CMPRGRM"?N++:V==="CMPRGRS"?$++:V==="CMPRGRP"&&M++}),s.Modal.confirm({title:"삭제 안내",content:e.jsxs(e.Fragment,{children:[N>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"blue",children:["메인메뉴: ",N,"개"]})}),$>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"green",children:["서브메뉴: ",$,"개"]})}),M>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"orange",children:["프로그램: ",M,"개"]})}),"를 삭제하시겠습니까?"]}),onOk:()=>{C.SCMMENU00103()},onCancel:()=>{}})}}},R=u.useMemo(()=>({onCurrentRowChanged:(T,N,$)=>{g($)},onItemChecked:(T,N,$)=>{if(!T._isUpdatingChildren)try{T._isUpdatingChildren=!0;const M=(D,V)=>{const U=T.getChildren(D);U&&U.length>0&&U.forEach(k=>{T.isCheckedItem(k)!==V&&(T.checkItem(k,V),M(k,V))})};M(N,$)}finally{setTimeout(()=>{T._isUpdatingChildren=!1},0)}}}),[]);return e.jsxs(xt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{m.search()}},{id:"new",label:"신규",onClick:()=>{m.new()}},{id:"delete",label:"삭제",onClick:()=>{m.delete()}}]},searchBox:{reqRows:e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",initialValue:"",labelCol:{flex:"180px"}},selectProps:{options:[{label:"전체",value:""},{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],onChange:P}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션",initialValue:""},selectProps:{options:c,placeholder:"시스템코드를 먼저 선택해주세요",onChange:m.search}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgInput,{itemProps:{name:"keyword",label:"검색어"},inputProps:{placeholder:"메뉴ID/메뉴명을 입력하세요.",onPressEnter:m.search}})})]})},children:[e.jsxs(Ne,{type:"horizontal",children:[e.jsxs(Ce,{className:"w65 mr20",children:[e.jsx(ke,{title:"메뉴 트리"}),e.jsx($e,{ref:o,type:"tree",gridColumns:w,gridOptions:lv,gridEvents:R,bindRef:r})]}),e.jsx(Ce,{className:"w35",border:!0,overflow:{x:"auto",y:"auto"},children:e.jsx(Ut,{title:"메뉴 상세",titleChildren:e.jsx(e.Fragment,{children:E>=0&&e.jsx(H.BwgButton,{color:"gold",onClick:()=>j("EDIT"),children:"변경"})}),children:e.jsx(s.Form,{layout:"vertical",ref:r,children:e.jsx(Ql,{readOnly:!0})})})})]}),e.jsx(Xr,{title:`메뉴 ${f==="EDIT"?"변경":"등록"}`,open:p,placement:"right",onClose:v,width:"30%",size:"large",afterOpenChange:T=>{console.log("Drawer afterOpenChange:",T)},footer:e.jsxs("div",{className:"drawer-footer-btn-group",children:[e.jsx(s.Button,{onClick:v,className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:B,className:"bwg-btn",children:"저장"})]}),children:e.jsx(s.Form,{layout:"vertical",ref:n,className:"sub-form pd10",children:e.jsx(Ql,{readOnly:!1,drawerMode:f})})})]})},dv=t=>{const r=u.useRef(null),n=u.useRef(null),o=u.useRef(null),i=ut.useCodeStore(),{showPopup:a}=ht.usePopup(),{getFormData:l}=ht.useSearchBox(),[c,d]=u.useState(!1),[p,h]=u.useState("new"),[f,x]=u.useState(null),[E,g]=u.useState([]),[j,v]=u.useState(""),[b,w]=u.useState(!1),[P,B]=u.useState(["조회","닫기"]),[C,m]=u.useState("");u.useEffect(()=>{console.log("SYST 공통코드 목록 :: ",i.getCodeList("SYST"))},[i]),u.useEffect(()=>()=>{n.current&&(n.current.resetFields(),console.log("CMPopuMstrM01: BwgInfoArea form 초기화 완료")),o.current&&(o.current.resetFields(),console.log("CMPopuMstrM01: Drawer form 초기화 완료")),x(null),g([]),v(""),w(!1),B(["조회","닫기"]),m(""),console.log("CMPopuMstrM01: 컴포넌트 언마운트 - 모든 상태 초기화 완료")},[]);const R=u.useMemo(()=>[{name:"crprCd",fieldName:"crprCd",width:80,header:{text:"회사코드"},visible:!1},{name:"systId",fieldName:"systId",width:80,header:{text:"시스템ID"},lookupDisplay:!0,editor:{type:"dropdown"},tag:"req"},{name:"popuCd",fieldName:"popuCd",width:120,header:{text:"팝업코드"},styleName:"left",tag:"req"},{name:"popuNm",fieldName:"popuNm",width:200,header:{text:"팝업명칭"},styleName:"left"},{name:"popuUrl",fieldName:"popuUrl",width:250,header:{text:"팝업호출URL"},styleName:"left"},{name:"popuWdth",fieldName:"popuWdth",width:80,header:{text:"팝업너비"},visible:!1},{name:"wdthUnit",fieldName:"wdthUnit",width:60,header:{text:"너비단위"},visible:!1},{name:"popuHght",fieldName:"popuHght",width:80,header:{text:"팝업높이"},visible:!1},{name:"hghtUnit",fieldName:"hghtUnit",width:60,header:{text:"높이단위"},visible:!1},{name:"enblYn",fieldName:"enblYn",width:60,header:{text:"사용여부"},renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{name:"rmrk",fieldName:"rmrk",width:200,header:{text:"비고"},styleName:"left",visible:!1},{name:"inptDt",fieldName:"inptDt",width:150,header:{text:"입력일시"},visible:!1},{name:"inptId",fieldName:"inptId",width:100,header:{text:"입력자ID"},visible:!1},{name:"chngDt",fieldName:"chngDt",width:150,header:{text:"변경일시"},visible:!1},{name:"chngId",fieldName:"chngId",width:100,header:{text:"변경자ID"},visible:!1},{name:"dtlsInfo",fieldName:"dtlsInfo",width:100,header:{text:"버튼목록"},dataType:"json",visible:!1}],[]),T={display:{},edit:{editable:!1},copy:{singleMode:!0},container:{state:!0,check:!0,checkAll:!0,indicator:!0}},N={SCMPOPU00101:()=>{ae.callService("SCMPOPU00101",{},{},t.appCd).then(z=>{console.log("SCMPOPU00101:",z.data)}).catch(z=>{console.error("오류:",z)})},SCMPOPU00102:z=>{ae.callService("SCMPOPU00102",z,{},t.appCd).then(_=>{console.log("SCMPOPU00102:",_.data),r.current?.addAllData(_.data)}).catch(_=>{console.error("오류:",_)})},SCMPOPU00103:z=>{console.log("save params:",z),ae.callService("SCMPOPU00103",z,{},t.appCd).then(_=>{console.log("response:",_),_.result?(ae.showSuccess(p==="new"?"팝업이 등록되었습니다.":"팝업이 수정되었습니다."),d(!1),x(null),g([]),v(""),o.current?.resetFields(),N.SCMPOPU00102()):(ae.showDuplicateError("팝업코드"),o.current?.setFields([{name:"popuCd",errors:["이미 사용중인 팝업코드입니다."]}]))}).catch(_=>{console.error("오류:",_),ae.showError("저장 중 오류가 발생했습니다.")})}},$={formFinish:async()=>{try{const z=await o.current?.validateFields();if(E.length>0&&E.filter(Y=>!Y.btnId||Y.btnId.trim()==="").length>0){m("버튼ID가 입력되지 않은 버튼이 있습니다. 모든 버튼의 버튼ID를 입력해주세요.");return}m(""),N.SCMPOPU00103({edit:p!=="new",info:{crprCd:ae.getUserInfo()?.crprCd||"100",systId:z.systId,popuCd:z.popuCd,popuNm:z.popuNm,popuUrl:z.popuUrl,popuWdth:z.popuWdth,wdthUnit:z.wdthUnit,popuHght:z.popuHght,hghtUnit:z.hghtUnit,enblYn:z.enblYn,rmrk:z.rmrk,dtlsInfo:E}})}catch(z){console.error("폼 유효성 검사 실패:",z)}},addButton:()=>{const z=E.length>0?Math.max(...E.map(Y=>Y.btnSq||0)):0,_={key:Date.now().toString(),btnSq:z+1,btnId:"",btnNm:"",iconType:"ANTD",iconVal:"",enblYn:"Y"};g(Y=>[...Y,_]),v(_.key)},openDefaultModal:()=>{w(!0)},applyDefaultButtons:()=>{const z={조회:{btnId:"SEARCH",btnNm:"조회",iconType:"ANTD",iconVal:"SearchOutlined",enblYn:"Y"},선택적용:{btnId:"APPLY",btnNm:"선택적용",iconType:"ANTD",iconVal:"CheckOutlined",enblYn:"Y"},신규:{btnId:"NEW",btnNm:"신규",iconType:"ANTD",iconVal:"PlusOutlined",enblYn:"Y"},저장:{btnId:"SAVE",btnNm:"저장",iconType:"ANTD",iconVal:"SaveOutlined",enblYn:"Y"},삭제:{btnId:"DELETE",btnNm:"삭제",iconType:"ANTD",iconVal:"DeleteOutlined",enblYn:"Y"},닫기:{btnId:"CLOSE",btnNm:"닫기",iconType:"ANTD",iconVal:"CloseOutlined",enblYn:"Y"}},_=E.length>0?Math.max(...E.map(ee=>ee.btnSq||0)):0,Y=P.map((ee,oe)=>({key:Date.now().toString()+Math.random(),btnSq:_+oe+1,...z[ee]}));g(ee=>[...ee,...Y]),w(!1)},previewPopup:async()=>{let z=f;if(!z){const _=r.current?.getCurrentRow();if(_===void 0||_<0){ae.showError("미리보기할 팝업을 선택해주세요.");return}if(z=r.current?.vw?.getDataSource()?.getJsonRow(_),!z){ae.showError("팝업 데이터를 가져올 수 없습니다.");return}}try{console.log("미리보기 팝업 실행:",z.popuCd),await a(z.popuCd,{popupData:z,isPreview:!0}),console.log("미리보기 팝업 열기 완료")}catch(_){console.error("미리보기 팝업 열기 실패:",_),ae.showError("미리보기 팝업을 열 수 없습니다.")}}},M={onCurrentRowChanged(z,_,Y){if(Y<0)return;const ee=z.getValues(Y);console.log("onCurrentRowChanged rowData:",ee),n.current?.setFieldsValue(ee),x(ee)}},D={search:async()=>{try{const z=l();console.log("SearchBox FormData:",z);const _={...z,userId:ae.getUserInfo()?.userId};console.log("검색 파라미터:",_),N.SCMPOPU00102(_)}catch(z){console.error("SearchBox formData 접근 오류:",z),N.SCMPOPU00102()}},new:()=>{h("new"),x(null),g([]),d(!0),setTimeout(()=>{o.current?.resetFields()},100)},update:()=>{const z=r.current?.getCurrentRow();if(z===void 0||z<0){console.log("선택된 행이 없습니다.");return}const _=r.current?.vw?.getDataSource()?.getJsonRow(z);if(_){if(h("update"),x(_),d(!0),console.log("전체 rowData:",_),console.log("rowData.dtlsInfo 존재 여부:",!!_.dtlsInfo),console.log("rowData.dtlsInfo 타입:",typeof _.dtlsInfo),console.log("rowData.dtlsInfo 값:",_.dtlsInfo),_.dtlsInfo){console.log("rowData.dtlsInfo 원본:",_.dtlsInfo);let Y;if(Array.isArray(_.dtlsInfo)?(Y=_.dtlsInfo,console.log("dtlsInfo가 배열입니다:",Y)):typeof _.dtlsInfo=="object"?(Y=[_.dtlsInfo],console.log("dtlsInfo가 객체입니다. 배열로 변환:",Y)):(Y=[],console.log("dtlsInfo가 다른 타입입니다:",typeof _.dtlsInfo)),Y&&Y.length>0){console.log("최종 buttonListData:",Y);const ee=Y.map((oe,ne)=>({...oe,key:oe.key||`btn_${Date.now()}_${ne}`,btnSq:oe.btnSq||ne+1}));console.log("처리된 buttonListWithKeys:",ee),g(ee)}else console.log("buttonListData가 비어있음, 빈 배열로 설정"),g([])}else console.log("dtlsInfo가 없음, 빈 배열로 설정"),g([]);setTimeout(()=>{const Y={..._,popuUrl:_.popuUrl?.startsWith("/popup/")?_.popuUrl.substring(8):_.popuUrl};o.current?.setFieldsValue(Y)},100)}}},V={previewPopup:$.previewPopup},U=[{title:"순서",key:"order",width:80,align:"center",render:(z,_)=>{const Y=E.findIndex(ee=>ee.key===_.key);return e.jsxs(s.Space,{direction:"vertical",size:"small",children:[e.jsx(s.Button,{type:"link",size:"small",icon:e.jsx(q.UpOutlined,{}),disabled:Y===0,onClick:()=>F(_.key)}),e.jsx(s.Button,{type:"link",size:"small",icon:e.jsx(q.DownOutlined,{}),disabled:Y===E.length-1,onClick:()=>Q(_.key)})]})}},{title:"순번",dataIndex:"btnSq",key:"btnSq",width:60,align:"center",render:z=>z||"-"},{title:"버튼ID",dataIndex:"btnId",key:"btnId",width:120,render:(z,_)=>{const Y=_.key===j,ee=!z||z.trim()==="",oe=C&&ee;return Y?e.jsx(s.Input,{value:z,status:oe?"error":void 0,onChange:ne=>{const fe=[...E],A=fe.find(K=>_.key===K.key);A&&(A.btnId=ne.target.value,g(fe),ne.target.value.trim()!==""&&m(""))}}):e.jsx("span",{style:{color:oe?"#cf1322":"inherit",fontWeight:oe?"bold":"normal"},children:z||(oe?"입력 필요":"")})}},{title:"버튼명",dataIndex:"btnNm",key:"btnNm",width:150,render:(z,_)=>_.key===j?e.jsx(s.Input,{value:z,onChange:ee=>{const oe=[...E],ne=oe.find(fe=>_.key===fe.key);ne&&(ne.btnNm=ee.target.value,g(oe))}}):z},{title:"아이콘타입",dataIndex:"iconType",align:"center",key:"iconType",width:100,render:(z,_)=>_.key===j?e.jsx(s.Select,{value:z,style:{width:"100%"},onChange:ee=>{const oe=[...E],ne=oe.find(fe=>_.key===fe.key);ne&&(ne.iconType=ee,g(oe))},options:[{label:"ANTD",value:"ANTD"},{label:"CSS",value:"CSS"},{label:"SVG",value:"SVG"}]}):e.jsx(s.Tag,{color:z==="ANTD"?"blue":z==="CSS"?"green":"orange",children:z})},{title:"아이콘값",dataIndex:"iconVal",key:"iconVal",width:120,render:(z,_)=>_.key===j?e.jsx(s.Input,{value:z,onChange:ee=>{const oe=[...E],ne=oe.find(fe=>_.key===fe.key);ne&&(ne.iconVal=ee.target.value,g(oe))}}):z},{title:"사용여부",dataIndex:"enblYn",align:"center",key:"enblYn",width:80,render:(z,_)=>_.key===j?e.jsx(s.Switch,{checked:z==="Y",onChange:ee=>{const oe=[...E],ne=oe.find(fe=>_.key===fe.key);ne&&(ne.enblYn=ee?"Y":"N",g(oe))}}):e.jsx(s.Tag,{color:z==="Y"?"green":"red",children:z==="Y"?"사용":"미사용"})},{title:"작업",key:"action",align:"center",width:120,render:(z,_)=>_.key===j?e.jsxs(s.Space,{children:[e.jsx(s.Tooltip,{title:"저장",children:e.jsx(s.Button,{type:"link",size:"small",icon:e.jsx(q.SaveOutlined,{}),onClick:()=>I()})}),e.jsx(s.Tooltip,{title:"취소",children:e.jsx(s.Button,{type:"link",size:"small",icon:e.jsx(q.RedoOutlined,{}),onClick:S})})]}):e.jsxs(s.Space,{children:[e.jsx(s.Tooltip,{title:"편집",children:e.jsx(s.Button,{type:"link",size:"small",icon:e.jsx(q.EditOutlined,{}),onClick:()=>k(_)})}),e.jsx(s.Tooltip,{title:"삭제",children:e.jsx(s.Button,{type:"link",size:"small",danger:!0,icon:e.jsx(q.RestOutlined,{}),onClick:()=>L(_.key)})})]})}],k=z=>{v(z.key)},S=()=>{v("")},I=z=>{v("")},L=z=>{g(_=>_.filter(Y=>Y.key!==z))},F=z=>{g(_=>{const Y=_.findIndex(ee=>ee.key===z);if(Y>0){const ee=[..._];return[ee[Y],ee[Y-1]]=[ee[Y-1],ee[Y]],ee.forEach((oe,ne)=>{oe.btnSq=ne+1}),ee}return _})},Q=z=>{g(_=>{const Y=_.findIndex(ee=>ee.key===z);if(Y<_.length-1){const ee=[..._];return[ee[Y],ee[Y+1]]=[ee[Y+1],ee[Y]],ee.forEach((oe,ne)=>{oe.btnSq=ne+1}),ee}return _})};return console.log("CMPopuMstrM01 grantEvent:",D),console.log("CMPopuMstrM01 customEvent:",V),console.log("grantEvent.update 함수 존재 여부:",!!D.update),e.jsx(xt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{D.search()}},{id:"new",label:"신규",onClick:()=>{D.new()}},{id:"update",label:"수정",onClick:()=>{D.update()}}],custom:[{id:"previewPopup",label:"미리보기",onClick:()=>{V.previewPopup()}}]},searchBox:{reqRows:[e.jsx(H.BwgFormItem,{name:"systId",label:"시스템ID",children:e.jsx(s.Select,{options:i.getCodeList("SYST"),placeholder:"검색어를 입력하세요",allowClear:!0},"input1")}),e.jsx(H.BwgFormItem,{name:"keyword",label:"검색어",children:e.jsx(s.Input,{placeholder:"프로그램ID, 프로그램명, 페이지URL"})}),e.jsx(e.Fragment,{}),e.jsx(e.Fragment,{})]},children:e.jsxs(Ne,{type:"horizontal",children:[e.jsxs(Ce,{className:"w60",children:[e.jsx(ke,{title:"팝업 목록",icons:{type:"antd"}}),e.jsx($e,{type:"nrml",gridColumns:R,gridOptions:T,gridEvents:M,ref:r})]}),e.jsx(Ce,{className:"w40",border:!0,children:e.jsx(Ut,{title:"팝업 상세",children:e.jsxs(s.Form,{layout:"vertical",ref:n,style:{padding:"10px 20px"},children:[e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{label:"시스템ID",name:"systId"},selectProps:{variant:"borderless",options:[{label:"공통",value:"CM"},{label:"인사",value:"HR"}],copyable:!0,disabled:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"사용여부",name:"enblYn",children:e.jsx(s.Select,{variant:"borderless",options:[{label:"사용",value:"Y"},{label:"미사용",value:"N"}],disabled:!0})})})]}),e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업코드",name:"popuCd",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업명",name:"popuNm",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})})})]}),e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업너비",name:"popuWdth",children:e.jsxs(s.Space.Compact,{style:{width:"100%"},children:[e.jsx(s.Form.Item,{name:"popuWdth",noStyle:!0,children:e.jsx(s.InputNumber,{variant:"borderless",style:{flex:1},readOnly:!0})}),e.jsx(s.Form.Item,{name:"wdthUnit",noStyle:!0,children:e.jsx(s.Select,{variant:"borderless",style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}],disabled:!0})})]})})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업높이",name:"popuHght",children:e.jsxs(s.Space.Compact,{style:{width:"100%"},children:[e.jsx(s.Form.Item,{name:"popuHght",noStyle:!0,children:e.jsx(s.InputNumber,{variant:"borderless",style:{flex:1},readOnly:!0})}),e.jsx(s.Form.Item,{name:"hghtUnit",noStyle:!0,children:e.jsx(s.Select,{variant:"borderless",style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}],disabled:!0})})]})})})]}),e.jsx(H.BwgFormItem,{label:"팝업호출URL",name:"popuUrl",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})}),e.jsx(H.BwgFormItem,{label:"비고",name:"rmrk",children:e.jsx(s.Input.TextArea,{variant:"borderless",readOnly:!0,rows:3})}),e.jsx(H.BwgFormItem,{label:"할당버튼",name:"btnList",children:e.jsx("div",{style:{width:"100%"},children:e.jsx(s.Row,{gutter:[16,8],children:f?.dtlsInfo&&Array.isArray(f.dtlsInfo)?f.dtlsInfo.map((z,_)=>e.jsx(s.Col,{span:6,children:e.jsx(s.Button,{disabled:z.enblYn!=="Y",style:{width:"100%",marginBottom:"8px"},children:z.btnNm})},_)):e.jsx(s.Col,{span:24,children:e.jsx("div",{style:{textAlign:"center",color:"#999",padding:"20px"},children:"등록된 버튼이 없습니다."})})})})})]})})}),e.jsx(Xr,{title:p==="new"?"팝업 등록":"팝업 수정",open:c,placement:"right",width:"40%",onClose:()=>{d(!1),x(null),g([]),v("")},children:e.jsxs(H.BwgForm,{ref:o,style:{padding:"10px 20px"},initialValues:{popuWdth:400,wdthUnit:"px",popuHght:100,hghtUnit:"%"},children:[e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{label:"시스템ID",name:"systId"},selectProps:{placeholder:"시스템을 선택하세요",variant:"borderless",options:[{label:"공통",value:"CM"},{label:"인사",value:"HR"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"사용여부",name:"enblYn",initialValue:"Y",children:e.jsx(s.Select,{options:[{label:"사용",value:"Y"},{label:"미사용",value:"N"}]})})})]}),e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업코드",name:"popuCd",rules:[{required:!0,message:"팝업코드를 입력하세요"}],children:e.jsx(s.Input,{placeholder:"팝업코드를 입력하세요"})})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업명",name:"popuNm",rules:[{required:!0,message:"팝업명을 입력하세요"}],children:e.jsx(s.Input,{placeholder:"팝업명을 입력하세요"})})})]}),e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업너비",name:"popuWdth",rules:[{required:!0,message:"팝업너비를 입력하세요"}],children:e.jsxs(s.Space.Compact,{style:{width:"100%"},children:[e.jsx(s.Form.Item,{name:"popuWdth",noStyle:!0,children:e.jsx(s.InputNumber,{placeholder:"팝업너비를 입력하세요",style:{flex:1},min:1})}),e.jsx(s.Form.Item,{name:"wdthUnit",noStyle:!0,children:e.jsx(s.Select,{style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}]})})]})})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{label:"팝업높이",name:"popuHght",rules:[{required:!0,message:"팝업높이를 입력하세요"}],children:e.jsxs(s.Space.Compact,{style:{width:"100%"},children:[e.jsx(s.Form.Item,{name:"popuHght",noStyle:!0,children:e.jsx(s.InputNumber,{placeholder:"팝업높이를 입력하세요",style:{flex:1},min:1})}),e.jsx(s.Form.Item,{name:"hghtUnit",noStyle:!0,children:e.jsx(s.Select,{style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}]})})]})})})]}),e.jsx(H.BwgFormItem,{label:"팝업호출URL",name:"popuUrl",rules:[{required:!0,message:"팝업호출URL을 입력하세요"}],children:e.jsx(s.Input,{placeholder:"팝업 URL을 입력하세요 (예: cm/TestPopup)",addonBefore:"popup/"})}),e.jsx(H.BwgFormItem,{label:"비고",name:"rmrk",children:e.jsx(s.Input.TextArea,{placeholder:"비고를 입력하세요",rows:3})}),e.jsxs(ke,{title:"버튼 목록",iconVisible:!1,children:[e.jsx(s.Button,{icon:e.jsx(q.SettingTwoTone,{}),onClick:$.openDefaultModal,children:"기본값"}),e.jsx(s.Button,{icon:e.jsx(q.PlusOutlined,{}),onClick:$.addButton,children:"추가"})]}),e.jsx(s.Table,{columns:U,dataSource:E,pagination:!1,size:"small",bordered:!0,scroll:{x:600},rowKey:"key"}),C&&e.jsxs("div",{style:{marginTop:"8px",padding:"8px 12px",backgroundColor:"#fff2f0",border:"1px solid #ffccc7",borderRadius:"6px",color:"#cf1322",fontSize:"14px"},children:["⚠️ ",C]}),e.jsxs("div",{style:{textAlign:"right",marginTop:"16px"},children:[e.jsx(s.Button,{type:"primary",onClick:$.formFinish,style:{marginRight:"8px"},children:"저장"}),e.jsx(s.Button,{onClick:()=>{d(!1),x(null)},children:"취소"})]})]})}),e.jsxs(s.Modal,{title:"기본 버튼 선택",open:b,onOk:$.applyDefaultButtons,onCancel:()=>w(!1),okText:"적용",cancelText:"취소",children:[e.jsx("p",{children:"추가할 기본 버튼을 선택하세요:"}),e.jsx(s.Checkbox.Group,{value:P,onChange:z=>B(z),style:{width:"100%"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%"},children:[e.jsx(s.Checkbox,{value:"조회",children:"조회"}),e.jsx(s.Checkbox,{value:"선택적용",children:"선택적용"}),e.jsx(s.Checkbox,{value:"신규",children:"신규"}),e.jsx(s.Checkbox,{value:"저장",children:"저장"}),e.jsx(s.Checkbox,{value:"삭제",children:"삭제"}),e.jsx(s.Checkbox,{value:"닫기",children:"닫기"})]})})]})]})})},{confirm:uv}=s.Modal,Tr={KE:[{label:"재무회계",value:"FI"},{label:"예산관리",value:"FM"},{label:"구매계약",value:"MM"},{label:"영업관리",value:"SD"},{label:"파트너관리",value:"PMN"}],KH:[{label:"HR 솔루션",value:"HR"},{label:"연말정산",value:"YT"},{label:"평정",value:"PE"}],KS:[{label:"온통",value:"BCOM"},{label:"e-감사",value:"EAUD"},{label:"청령신고",value:"INR"},{label:"ITAM",value:"ITAM"},{label:"차량/회의실",value:"CMM"},{label:"OA전산물품관리",value:"OAM"},{label:"총무관리",value:"GAM"},{label:"출입관리",value:"ACM"},{label:"비품관리",value:"IVM"},{label:"인장서비스",value:"SGS"},{label:"사료관리",value:"HIS"},{label:"웹펙스서비스",value:"WFAX"},{label:"메시지서비스",value:"SMS"},{label:"경영공시",value:"BID"},{label:"언론미디어",value:"PAM"},{label:"심의자문위원회",value:"DAC"},{label:"지식재산권신청",value:"IPR"},{label:"정보공유게시판",value:"ISB"}]},pv=[{name:"appCd",fieldName:"appCd",visible:!1},{name:"sysCd",fieldName:"sysCd",width:80,header:{text:"업무"},tag:"req"},{name:"prgrId",fieldName:"prgrId",width:150,header:{text:"프로그램 코드"},styleName:"left",tag:"req"},{name:"prgrNm",fieldName:"prgrNm",width:200,header:{text:"프로그램 명칭"},styleName:"left"},{name:"prgrUrl",fieldName:"prgrUrl",width:250,header:{text:"프로그램 URL"},styleName:"left"},{name:"enblYn",fieldName:"enblYn",width:60,header:{text:"사용"},renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{name:"prsnInfoYn",fieldName:"prsnInfoYn",visible:!1}],fv={display:{},edit:{editable:!1},copy:{singleMode:!0},container:{state:!0,check:!0,checkAll:!0,indicator:!0}},Zl=({readOnly:t=!1,drawerMode:r=""})=>{const n=s.Form.useFormInstance(),[o,i]=u.useState(null),[a,l]=u.useState([]);u.useEffect(()=>{const d=n.getFieldValue("sysCd");i(d??null),d&&Tr[d]?l(Tr[d]):l([])},[n]);const c=d=>{i(d??null),d&&Tr[d]?l(Tr[d]):l([]),n.setFieldsValue({sysCd:d,appCd:null})};return e.jsxs(e.Fragment,{children:[e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{name:"sysCd",label:"시스템"},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"HR"},{label:"K-업무지원",value:"KS"}],onChange:c,disabled:t||r==="EDIT",placeholder:"시스템을 선택하세요"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션"},selectProps:{options:a,disabled:t||!o||r==="EDIT",placeholder:"시스템을 먼저 선택하세요"}})})]}),e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{itemProps:{name:"prgrId",label:"프로그램 코드"},inputProps:{disabled:r==="EDIT",readOnly:t,variant:t?"borderless":"outlined"}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgInput,{itemProps:{name:"prgrNm",label:"프로그램 명칭"},inputProps:{readOnly:t,variant:t?"borderless":"outlined"}})})]}),e.jsxs(s.Row,{children:[e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{itemProps:{name:"enblYn",label:"사용여부"},inputProps:{defaultValue:"Y",options:[{label:"Y",value:"Y"},{label:"N",value:"N"}],optionType:"button",style:{pointerEvents:t?"none":void 0}}})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgRadio,{itemProps:{name:"prsnInfoYn",label:"개인정보 포함여부"},inputProps:{defaultValue:"Y",options:[{label:"Y",value:"Y"},{label:"N",value:"N"}],optionType:"button",style:{pointerEvents:t?"none":void 0}}})})]}),e.jsx(H.BwgInput,{itemProps:{name:"prgrUrl",label:"프로그램 URL"},inputProps:{readOnly:t,variant:t?"borderless":"outlined",placeholder:"/cm/rsrc/파일명 (.tsx 생략)"}}),e.jsx(H.BwgTextArea,{itemProps:{name:"prgrDscr",label:"프로그램 설명"},inputProps:{readOnly:t,rows:4,variant:t?"borderless":"outlined"}})]})},hv=t=>{const r=u.useRef(null),n=u.useRef(null),o=u.useRef(null),{getFormData:i,setFormData:a}=ht.useSearchBox(),[l,c]=u.useState([]),[d,p]=u.useState(!1),[h,f]=u.useState(""),[x,E]=u.useState(-1),g=u.useCallback(m=>{p(!0),f(m)},[]),j=u.useCallback(()=>{p(!1),f("")},[]);u.useEffect(()=>{const m=ut.useSystemCode().findByAppCd(t.appCd);console.log("PRGR APPCD :: ",t.appCd),a({sysCd:m?.sysCd,appCd:m?.appCd})},[t.appCd]),u.useEffect(()=>{if(h=="NEW")o.current?.setFieldsValue({enblYn:"Y",prsnInfoYn:"Y"});else if(h=="EDIT"){const m=r.current?.getCurrentIndex()??-1,R=r.current?.vw?.getValues(m)??{};o.current?.setFieldsValue(R)}else o.current?.resetFields()},[h]);const v=u.useCallback(m=>{if(m==="ALL"){const R=Object.values(Tr).flat();c(R)}else m&&Tr[m]?c(Tr[m]):c([]);a({appCd:null}),w.search()},[a]),b=u.useCallback(()=>{P.SCMPRGR00102()},[h]),w={search:()=>{P.SCMPRGR00101()},new:()=>{g("NEW")},delete:()=>{const m=r.current?.vw?.getCheckedRows(!1)??[];if(m.length==0){ae.showWarning("삭제할 행을 체크하세요");return}uv({title:"삭제 안내",content:`${m.length}개 행을 삭제하시겠습니까?`,onOk:()=>{P.SCMPRGR00103()}})}},P={SCMPRGR00101:()=>{ae.callService("SCMPRGR00101",i(),{},t.appCd).then(m=>{r.current?.addAllData(m.data)})},SCMPRGR00102:()=>{const m={iudFlag:h==="EDIT"?"U":"I",...o.current?.getFieldsValue()??{}};ae.callService("SCMPRGR00102",m,{},t.appCd).then(R=>{R.result>0?(j(),P.SCMPRGR00101()):ae.showError(R.message)}).catch(R=>{console.error("오류:",R)})},SCMPRGR00103:()=>{const m={},R=r.current?.vw?.getCheckedRows(!1)??[],T=[];R.forEach(N=>{const $=r.current?.dp?.getJsonRow(N);T.push({sysCd:$.sysCd,appCd:$.appCd,prgrId:$.prgrId})}),m.sub=T,ae.callServiceBySysCd("SCMPRGR00103",m).then(N=>{N.result>0&&P.SCMPRGR00101()}).catch(N=>{console.error("오류:",N)})}},B={editForm:()=>{if((r.current?.getCurrentRow()??-1)<0){ae.showWarning("행 선택 후 변경 가능합니다.");return}g("EDIT")}},C={onCurrentRowChanged(m,R,T){E(T)}};return e.jsxs(xt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{w.search()}},{id:"new",label:"신규",onClick:()=>{w.new()}},{id:"delete",label:"삭제",onClick:()=>{w.delete()}}]},searchBox:{reqRows:e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",initialValue:""},selectProps:{options:[{label:"전체",value:""},{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],onChange:v}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션"},selectProps:{options:l,placeholder:"시스템코드를 먼저 선택해주세요",onChange:w.search}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgInput,{itemProps:{name:"keyword",label:"프로그램명"},inputProps:{placeholder:"프로그램ID/프로그램명을 입력하세요.",onPressEnter:w.search}})}),e.jsx(s.Col,{span:6,children:e.jsx(H.BwgRadio,{itemProps:{name:"enblYn",label:"사용여부"},inputProps:{defaultValue:"",size:"small",options:[{label:"전체",value:""},{label:"Y",value:"Y"},{label:"N",value:"N"}]}})})]})},children:[e.jsxs(Ne,{type:"horizontal",children:[e.jsxs(Ce,{className:"w60 mr20",children:[e.jsx(ke,{title:"프로그램 목록",icons:{type:"antd"}}),e.jsx($e,{ref:r,gridColumns:pv,gridOptions:fv,gridEvents:C,bindRef:n})]}),e.jsx(Ce,{className:"w40",border:!0,children:e.jsx(Ut,{title:"프로그램 상세",titleChildren:e.jsx(e.Fragment,{children:x>=0&&e.jsx(H.BwgButton,{type:"dashed",onClick:B.editForm,children:"변경"})}),children:e.jsx(s.Form,{layout:"vertical",ref:n,className:"sub-form pd10",children:e.jsx(Zl,{readOnly:!0})})})})]}),e.jsx(Xr,{title:`프로그램 ${h=="EDIT"?"변경":"등록"}`,open:d,placement:"right",onClose:j,width:"30%",size:"large",afterOpenChange:m=>{console.log("afterOpenChange:",m)},footer:e.jsxs("div",{className:"drawer-footer-btn-group",children:[e.jsx(s.Button,{onClick:()=>{j()},className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:b,className:"bwg-btn",children:"저장"})]}),children:e.jsx(s.Form,{layout:"vertical",ref:o,className:"sub-form pd10",children:e.jsx(Zl,{readOnly:!1,drawerMode:h})})})]})},gv=t=>e.jsx("div",{children:"CMSystCfgM01"}),mv=t=>{const[r,n]=u.useState(null),[o,i]=u.useState("group"),[a,l]=u.useState(null),c=u.useRef(null),d=u.useRef(null),p=u.useRef(null),h=[{id:"KH",name:"HR 솔루션",description:"인사 관리 시스템",icon:e.jsx(q.UserOutlined,{}),color:"blue",status:"active"},{id:"KE",name:"K-ERP 서비스",description:"전사적 자원 관리 시스템",icon:e.jsx(q.DatabaseOutlined,{}),color:"green",status:"active"},{id:"KS",name:"K-업무지원",description:"경영 지원 시스템",icon:e.jsx(q.SettingOutlined,{}),color:"orange",status:"active"}],f=u.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"applCd",visible:!1},{fieldName:"systId",header:{text:"업무코드"},width:100},{fieldName:"systNm",header:{text:"업무명"},width:100},{fieldName:"systIco",header:{text:"업무아이콘"},width:100},{fieldName:"sortOrd",header:{text:"정렬순서"},width:100},{fieldName:"enblYn",header:{text:"사용여부"},width:60,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),x=u.useMemo(()=>[{fieldName:"cmmnCd",header:{text:"그룹코드"},width:120},{fieldName:"cmmnCdNm",header:{text:"그룹명"},width:150},{fieldName:"cmmnCdAbrv",header:{text:"설명"},width:200},{fieldName:"sortOrd",header:{text:"정렬순서"},width:80},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),E=u.useMemo(()=>[{fieldName:"grpCd",header:{text:"그룹코드"},width:120},{fieldName:"cmmnCd",header:{text:"코드"},width:100},{fieldName:"cmmnCdNm",header:{text:"코드명"},width:150},{fieldName:"sortOrd",header:{text:"정렬순서"},width:80},{fieldName:"useYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),g={container:{indicator:!0}},j=b=>{n(b)},v=b=>{i(b),b==="group"&&l(null)};return u.useEffect(()=>{r&&ae.callService("SCMSYST00101",{crprCd:ae.getCrprCd(),applCd:r},{},t.appCd).then(b=>{console.log({SCMSYST00101:b.data}),c.current?.addAllData(b.data)})},[r]),u.useEffect(()=>{r&&ae.callService("SCMCODE00101",{crprCd:ae.getCrprCd(),srchGb:o==="group"?"group":"detail"},{},t.appCd).then(b=>{console.log({SCMCODE00101:b.data}),o==="group"?d.current?.addAllData(b.data):p.current?.addAllData(b.data)})},[o,r]),e.jsxs(xt,{children:[e.jsx(Ce,{style:{padding:"0px 20px",height:"200px",overflow:"hidden"},children:e.jsx(s.List,{grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:3,xxl:3},dataSource:h,renderItem:b=>e.jsx(s.List.Item,{children:e.jsx(s.Card,{hoverable:!0,style:{height:"100%",cursor:"pointer",border:r===b.id?"2px solid #1890ff":"1px solid #f0f0f0",backgroundColor:r===b.id?"#f0f8ff":"#ffffff",boxShadow:r===b.id?"0 4px 12px rgba(24, 144, 255, 0.15)":"0 2px 8px rgba(0, 0, 0, 0.06)",position:"relative",zIndex:r===b.id?1:0},onClick:()=>j(b.id),actions:[e.jsx(s.Tag,{color:b.color,children:b.status==="active"?"활성":"비활성"},"status")],children:e.jsx(s.Card.Meta,{avatar:e.jsx("div",{style:{fontSize:"24px",color:b.color==="blue"?"#1890ff":b.color==="green"?"#52c41a":"#fa8c16"},children:b.icon}),title:e.jsxs(s.Space,{children:[e.jsx("span",{style:{fontWeight:"bold",color:r===b.id?"#1890ff":"#333"},children:b.name}),e.jsx(s.Tag,{color:b.color,children:b.id})]}),description:e.jsx("div",{style:{marginTop:"8px"},children:e.jsx("p",{style:{color:r===b.id?"#1890ff":"#666",margin:0},children:b.description})})})})})})}),e.jsx(Ce,{border:!0,children:e.jsxs(Ne,{type:"horizontal",children:[e.jsxs(Ce,{className:"w40",children:[e.jsxs(ke,{title:"업무코드 목록",children:[e.jsx(s.Button,{children:"신규"}),e.jsx(s.Button,{children:"변경"})]}),e.jsx($e,{ref:c,type:"nrml",gridColumns:f,gridOptions:g})]}),e.jsxs(Ce,{className:"w60",children:[e.jsxs(ke,{title:"시스템 공통코드 목록",tooltip:{title:"시스템 전역에 배포될 코드 목록입니다."},children:[e.jsx(s.Button,{children:"신규"}),e.jsx(s.Button,{children:"변경"})]}),e.jsx(mt,{defaultActiveKey:"group",size:"small",tabPosition:"left",style:{height:"100%"},activeKey:o,onChange:v,items:[{key:"group",label:"그룹코드",icon:e.jsx(q.GroupOutlined,{}),children:e.jsx(Ne,{children:e.jsx(Ce,{children:e.jsx($e,{ref:d,type:"nrml",gridColumns:x,gridOptions:g})})})},{key:"detail",label:"상세코드",icon:e.jsx(q.UngroupOutlined,{}),children:e.jsx($e,{ref:p,type:"nrml",gridColumns:E,gridOptions:g})}]})]})]})})]})},xv=t=>{const r=u.useRef(null),n=u.useMemo(()=>[{fieldName:"userId",header:{text:"아이디"}},{fieldName:"userName",header:{text:"이름"}},{fieldName:"email",header:{text:"이메일"}},{fieldName:"createdAt",header:{text:"생성일"}}],[]);return e.jsx(xt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{}}]},searchBox:{},children:e.jsx(Ne,{children:e.jsx(Ce,{style:{height:"300px"},children:e.jsx($e,{ref:r,gridColumns:n})})})})},vv=t=>{if(t==null)return"";const r=String(t).trim();return!r||r.toUpperCase()==="NULL"?"":r.toUpperCase()},Yi=(t,r=0)=>{const n=Number(t);return Number.isFinite(n)?n:r};function kn(t){return{crprCd:t.crprCd||void 0,wkplCd:t.wkplCd||void 0,deptCd:vv(t.deptCd),deptNm:(t.deptNm??"").toString().trim(),hrnkDeptCd:t.hrnkDeptCd||null,hrnkDeptNm:t.hrnkDeptNm||null,deptGbCd:t.deptGbCd||null,deptLvl:Yi(t.deptLvl,t.hrnkDeptCd?2:1),orgSortOrd:Yi(t.orgSortOrd,0),orgOtptOrd:Yi(t.orgOtptOrd,0),deptAbrv:t.deptAbrv||null,deptFullNm:t.deptFullNm||null,deptEnglNm:t.deptEnglNm||null,isLeaf:t.isLeaf||null}}function yv(t){const r=new Set,n=t.map(kn).filter(c=>c.deptCd).filter(c=>(c.deptCd===c.hrnkDeptCd&&(c.hrnkDeptCd=""),!0)).filter(c=>r.has(c.deptCd)?!1:(r.add(c.deptCd),!0));n.sort((c,d)=>(c.deptLvl||0)-(d.deptLvl||0)||(c.orgSortOrd||0)-(d.orgSortOrd||0)||c.deptCd.localeCompare(d.deptCd));const o=new Map;for(const c of n)o.set(c.deptCd,{...c,children:[]});const i=[];for(const c of n){const d=o.get(c.deptCd),p=c.hrnkDeptCd;p&&o.has(p)?o.get(p).children.push(d):i.push(d)}const a=c=>{!c||c.length===0||(c.sort((d,p)=>d.deptCd.localeCompare(p.deptCd)),c.forEach(d=>a(d.children)))};a(i);const l=c=>{if(!c.children||c.children.length===0){delete c.children;return}c.children.forEach(l)};if(i.forEach(l),i.length>1){const c=i.find(d=>d.deptCd==="D00");if(c)return[c]}return i}function bv(t){const r=t.map(kn),n=r.filter(o=>o.isLeaf!=="Y").map(o=>o.deptCd);return n.length>200?r.filter(o=>(o.deptLvl||0)<=2).map(o=>o.deptCd):n}const vu=({popup:t,onClose:r})=>{const[n,o]=u.useState(""),[i,a]=u.useState([]),[l,c]=u.useState([]),[d,p]=u.useState([]),[h,f]=u.useState(!1),x=u.useCallback(async m=>{try{f(!0);const R=await ae.callService("SCMUTIL00103",{...t?.popupParams,...m}),T=Array.isArray(R?.data)?R.data:Array.isArray(R?.deptList)?R.deptList:Array.isArray(R)?R:[],N=yv(T);p(N);const $=bv(T);a($);const M=N[0]?.deptCd||kn(T.find(D=>kn(D).deptLvl===1)||{}).deptCd||kn(T[0]||{}).deptCd||"";c(M?[M]:[])}catch{s.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{f(!1)}},[t?.popupParams]);u.useEffect(()=>{x()},[x]);const E=u.useCallback((m,R)=>{for(const T of m){if(T.deptCd===R)return T;if(T.children){const N=E(T.children,R);if(N)return N}}return null},[]),g=u.useMemo(()=>{const m=l[0];return m?E(d,m):null},[l,d,E]),j=u.useMemo(()=>{const m=T=>T.map(N=>({title:N.deptNm,key:N.deptCd,meta:N,children:N.children?m(N.children):void 0}));return m(d)},[d]),v=u.useMemo(()=>{const m=n.trim().toLowerCase();if(!m)return j;const R=T=>T.map(N=>{const $=N.meta,M=($?.deptNm||"").toLowerCase().includes(m)||($?.deptCd||"").toLowerCase().includes(m),D=N.children?R(N.children):void 0;return M||D&&D.length?{...N,children:D}:null}).filter(Boolean);return R(j)},[j,n]),b=u.useCallback(m=>{c(m.slice(0,1).map(String))},[]),w=u.useCallback(m=>a(m.map(String)),[]),P=u.useCallback((m,R)=>{if(m.stopPropagation(),!R.children||R.children.length===0)return;const T=i.includes(R.key);a(N=>T?N.filter($=>$!==R.key):[...N,R.key])},[i]),B=u.useCallback(()=>c([]),[]),C={confirm:()=>{if(!g){s.message.error("부서를 선택해주세요.");return}const m={deptCd:g.deptCd,deptNm:g.deptNm,hrnkDeptCd:g.hrnkDeptCd,hrnkDeptNm:g.hrnkDeptNm,deptLvl:g.deptLvl,orgSortOrd:g.orgSortOrd},R=t?.config;R?.onSelect?R.onSelect(m):t?.config?.callback&&t.config.callback(JSON.stringify(m)),R?.onClose&&R.onClose(),t?.close?.()},cancel:()=>{const m=t?.config;m?.onCancel&&m.onCancel(),t?.close?.()}};return e.jsx(Qr,{popup:t,buttons:[{id:"confirm",label:"확인",onClick:()=>{C.confirm()}}],popupEvent:C,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Ne,{children:e.jsx(Ce,{border:!1,style:{paddingBottom:20},children:e.jsxs(s.Splitter,{layout:"vertical",style:{height:"100%"},children:[e.jsxs(s.Splitter.Panel,{defaultSize:"70%",min:"70%",max:"75%",children:[e.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:e.jsxs(s.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[e.jsx(ke,{title:"조직도"}),e.jsx(s.Row,{gutter:[16,16],children:e.jsx(s.Col,{span:24,children:e.jsx(s.Input,{placeholder:"부서명, 부서코드 검색",prefix:e.jsx(q.SearchOutlined,{}),value:n,allowClear:!0,onChange:m=>o(m.target.value)})})})]})}),e.jsx("div",{style:{padding:16,overflowY:"hidden"},children:e.jsx(s.Spin,{spinning:h,children:e.jsx(s.Tree,{treeData:v,expandedKeys:i,selectedKeys:l,onSelect:b,onExpand:w,onDoubleClick:P,showLine:!0,showIcon:!1,selectable:!0,style:{overflow:"hidden"},titleRender:m=>{const R=m.meta;return e.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%",fontWeight:l.includes(m.key)?"bold":"normal"},children:[e.jsx("span",{children:R.deptNm}),e.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:R.deptCd})]})}})})})]}),e.jsx(s.Splitter.Panel,{collapsible:!0,children:e.jsxs("div",{style:{padding:16,overflowY:"hidden",height:"100%"},children:[e.jsx("h3",{style:{margin:"0 0 12px 0",fontSize:16,fontWeight:700},children:"선택된 부서"}),g?e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:14,border:"1px solid #e0e0e0",borderRadius:12,background:"#fafafa"},children:[e.jsx("div",{style:{width:42,height:42,borderRadius:"50%",border:"1px solid #e6e6e6",display:"flex",alignItems:"center",justifyContent:"center",marginRight:12,fontSize:18,color:"#8c8c8c",background:"#fff",flex:"0 0 auto"},children:e.jsx(q.TeamOutlined,{})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{fontSize:15,fontWeight:700,marginBottom:4},children:[g.deptNm," ",e.jsxs("span",{style:{color:"#8c8c8c",fontSize:12},children:["(",g.deptCd,")"]})]}),e.jsxs("div",{style:{fontSize:12,color:"#666",marginBottom:2},children:["상위부서: ",g.hrnkDeptNm||"-"]})]}),e.jsx(s.Button,{type:"text",onClick:B,icon:e.jsx(q.RestOutlined,{style:{fontSize:24,color:"#FF6363"}})})]}):e.jsx("div",{style:{color:"#999",fontSize:14},children:"부서를 선택해주세요."})]})})]})})})})},Cv=Object.freeze(Object.defineProperty({__proto__:null,default:vu},Symbol.toStringTag,{value:"Module"})),wv=t=>{if(t==null)return"";const r=String(t).trim();return!r||r.toUpperCase()==="NULL"?"":r.toUpperCase()},qi=(t,r=0)=>{const n=Number(t);return Number.isFinite(n)?n:r};function In(t){return{crprCd:t.crprCd||void 0,wkplCd:t.wkplCd||void 0,deptCd:wv(t.deptCd),deptNm:(t.deptNm??"").toString().trim(),hrnkDeptCd:t.hrnkDeptCd||null,hrnkDeptNm:t.hrnkDeptNm||null,deptGbCd:t.deptGbCd||null,deptLvl:qi(t.deptLvl,t.hrnkDeptCd?2:1),orgSortOrd:qi(t.orgSortOrd,0),orgOtptOrd:qi(t.orgOtptOrd,0),deptAbrv:t.deptAbrv||null,deptFullNm:t.deptFullNm||null,deptEnglNm:t.deptEnglNm||null,isLeaf:t.isLeaf||null}}function jv(t){const r=new Set,n=t.map(In).filter(c=>c.deptCd).filter(c=>(c.deptCd===c.hrnkDeptCd&&(c.hrnkDeptCd=""),!0)).filter(c=>r.has(c.deptCd)?!1:(r.add(c.deptCd),!0));n.sort((c,d)=>(c.deptLvl||0)-(d.deptLvl||0)||(c.orgSortOrd||0)-(d.orgSortOrd||0)||c.deptCd.localeCompare(d.deptCd));const o=new Map;for(const c of n)o.set(c.deptCd,{...c,children:[]});const i=[];for(const c of n){const d=o.get(c.deptCd),p=c.hrnkDeptCd;p&&o.has(p)?o.get(p).children.push(d):i.push(d)}const a=c=>{!c||c.length===0||(c.sort((d,p)=>d.deptCd.localeCompare(p.deptCd)),c.forEach(d=>a(d.children)))};a(i);const l=c=>{if(!c.children||c.children.length===0){delete c.children;return}c.children.forEach(l)};if(i.forEach(l),i.length>1){const c=i.find(d=>d.deptCd==="D00");if(c)return[c]}return i}function Sv(t){const r=t.map(In),n=r.filter(o=>o.isLeaf!=="Y").map(o=>o.deptCd);return n.length>200?r.filter(o=>(o.deptLvl||0)<=2).map(o=>o.deptCd):n}const yu=({popup:t,onClose:r})=>{const[n,o]=u.useState(""),[i,a]=u.useState(""),[l,c]=u.useState([]),[d,p]=u.useState([]),[h,f]=u.useState([]),[x,E]=u.useState(!1),[g,j]=u.useState([]),[v,b]=u.useState(!1),w=u.useCallback(async k=>{try{b(!0);const S=await ae.callService("SCMUTIL00103",{...t?.popupParams,...k}),I=Array.isArray(S?.data)?S.data:Array.isArray(S?.deptList)?S.deptList:Array.isArray(S)?S:[],L=jv(I);j(L);const F=Sv(I);c(F);const Q=L[0]?.deptCd||In(I.find(z=>In(z).deptLvl===1)||{}).deptCd||In(I[0]||{}).deptCd||"";p(Q?[Q]:[])}catch{s.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{b(!1)}},[t?.popupParams]);u.useEffect(()=>{w()},[w]);const P=u.useCallback((k,S)=>{for(const I of k){if(I.deptCd===S)return I;if(I.children){const L=P(I.children,S);if(L)return L}}return null},[g]),B=u.useMemo(()=>h.map(k=>{const S=P(g,k);if(!S)return null;const{children:I,...L}=S;return L}).filter(Boolean),[h,g,P]),C=u.useMemo(()=>{const k=S=>S.map(I=>({title:I.deptNm,key:I.deptCd,meta:I,children:I.children?k(I.children):void 0,isLeaf:!I.children||I.children.length===0}));return k(g)},[g]),m=u.useMemo(()=>{const k=n.trim().toLowerCase();if(!k)return C;const S=I=>I.map(L=>{const F=L.meta,Q=(F?.deptNm||"").toLowerCase().includes(k)||(F?.deptCd||"").toLowerCase().includes(k),z=L.children?S(L.children):void 0;return Q||z&&z.length>0?{...L,children:z}:null}).filter(Boolean);return S(C)},[C,n]),R=u.useCallback(k=>{const S=[],I=L=>{for(const F of L)if(F.deptCd===k&&F.children){const Q=z=>{for(const _ of z)S.push(_.deptCd),_.children&&Q(_.children)};Q(F.children)}else F.children&&I(F.children)};return I(g),S},[g]),T=u.useCallback((k,S)=>{let I=Array.isArray(k)?k:k?.checked??[];if(x&&S?.node?.key){const L=S.node.key,F=R(L);if(S.checked){const Q=new Set(I);for(const z of F)Q.add(z);I=Array.from(Q)}else{const Q=new Set([L,...F]);I=I.filter(z=>!Q.has(z))}}f(I)},[x,R]),N=u.useCallback(k=>{const S=k.map(String);if(p(S),S.length>0){const I=S[0],L=(Q,z)=>{for(const _ of Q){if(_.deptCd===z)return _.deptNm;if(_.children){const Y=L(_.children,z);if(Y)return Y}}return null},F=L(g,I);F&&a(F)}},[g]),$=u.useCallback(k=>c(k.map(String)),[]),M=u.useCallback((k,S)=>{if(k.stopPropagation(),S.children&&S.children.length>0){const I=l.includes(S.key);c(L=>I?L.filter(F=>F!==S.key):[...L,S.key])}},[l]),D=u.useCallback(k=>{f(S=>S.filter(I=>I!==k))},[]),V=u.useCallback(()=>{f([])},[]),U={confirm:()=>{if(h.length===0){s.message.error("부서를 선택해주세요.");return}const S=Array.from(new Set(h)).map(L=>{const F=P(g,L);return F?{deptCd:F.deptCd,deptNm:F.deptNm,hrnkDeptCd:F.hrnkDeptCd,hrnkDeptNm:F.hrnkDeptNm}:null}).filter(Boolean),I=t?.config;I?.onSelect?I.onSelect(S):t?.config?.callback&&t.config.callback(JSON.stringify(S)),I?.onClose&&I.onClose(),t?.close?.()},cancel:()=>{const k=t?.config;k?.onCancel&&k.onCancel(),t?.close?.()}};return e.jsx(Qr,{popup:t,buttons:[{id:"confirm",label:"확인",onClick:()=>{U.confirm()}}],popupEvent:U,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Ne,{children:e.jsx(Ce,{border:!1,style:{paddingBottom:20},children:e.jsxs(s.Splitter,{layout:"vertical",style:{height:"100%"},children:[e.jsxs(s.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[e.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:e.jsxs(s.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[e.jsx(ke,{title:"조직도"}),e.jsx("div",{style:{fontSize:14,color:"#666",padding:8,backgroundColor:"#f8f8f8",borderRadius:4},children:i}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:18,children:e.jsx(s.Input,{placeholder:"부서명, 부서장명, 부서코드 검색",prefix:e.jsx(q.SearchOutlined,{}),value:n,allowClear:!0,onChange:k=>o(k.target.value)})}),e.jsx(s.Col,{span:6,style:{justifyContent:"center",display:"flex",alignItems:"center"},children:e.jsx(s.Checkbox,{checked:x,onChange:k=>E(k.target.checked),children:"하위까지 선택"})})]})]})}),e.jsx("div",{style:{padding:16,overflowY:"hidden"},children:e.jsx(s.Spin,{spinning:v,children:e.jsx(s.Tree,{className:"bwg-ogrn-tree",treeData:m,expandedKeys:l,selectedKeys:d,checkedKeys:h,checkable:!0,checkStrictly:!0,showLine:!0,showIcon:!1,selectable:!0,onSelect:N,onExpand:$,onCheck:T,onDoubleClick:M,style:{overflow:"hidden"},titleRender:k=>{const S=k.meta;return e.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%"},children:[e.jsx("span",{style:{fontWeight:d.includes(k.key)?"bold":"normal"},children:S.deptNm}),e.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:S.deptCd})]})}})})})]}),e.jsx(s.Splitter.Panel,{collapsible:!0,children:e.jsxs("div",{style:{padding:16,overflowY:"hidden"},children:[e.jsxs("div",{style:{marginBottom:12,display:"flex",alignItems:"center",gap:8},children:[e.jsxs("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:["선택된 부서 (",B.length,"개)"]}),B.length>0&&e.jsx("button",{onClick:V,style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",fontSize:12,padding:4},title:"전체 해제",children:"전체 해제"})]}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"flex-start",minHeight:48},children:B.length===0?e.jsx("div",{style:{color:"#999",fontSize:14},children:"선택된 부서가 없습니다."}):B.map(k=>e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,padding:"4px 8px",borderRadius:999,border:"1px solid #e6e6e6",background:"#fafafa",lineHeight:1.1,cursor:"default",maxWidth:260},title:`${k.deptNm}`,children:[e.jsx("span",{style:{width:18,height:18,borderRadius:"50%",border:"1px solid #e6e6e6",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:12,color:"#8c8c8c",background:"#fff",flex:"0 0 auto"},children:e.jsx(q.TeamOutlined,{})}),e.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:2,overflow:"hidden"},children:[e.jsx("span",{style:{fontSize:13,fontWeight:600,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:k.deptNm}),e.jsx("span",{style:{fontSize:11,color:"#8c8c8c",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:k.deptCd})]}),e.jsx("button",{onClick:()=>D(k.deptCd),style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",padding:2,lineHeight:0},"aria-label":`${k.deptNm} 선택 해제`,title:"선택 해제",children:"×"})]},k.deptCd))})]})})]})})})})},Rv=Object.freeze(Object.defineProperty({__proto__:null,default:yu},Symbol.toStringTag,{value:"Module"})),bu=({popup:t,onClose:r})=>{const[n,o]=u.useState(""),[i,a]=u.useState(""),[l,c]=u.useState([]),[d,p]=u.useState([]),[h,f]=u.useState(null),[x,E]=u.useState([]),[g,j]=u.useState(!1),v=u.useCallback(async()=>{try{j(!0);const M=await ae.callService("SCMUTIL00105",{...t?.popupParams});console.log("📊 조직도 API 응답:",M);const D=Array.isArray(M?.data)?M.data:Array.isArray(M?.orgnList)?M.orgnList:Array.isArray(M)?M:[];if(D.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const V=b(D);console.log("🌳 구성된 조직도 트리:",V),E(V);const U=D.filter(k=>k.deptLvl<=2).map(k=>k.deptCd);if(c(U),V.length>0){const k=V[0];p([k.deptCd]),a(k.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(M){console.error("❌ 조직도 데이터 로딩 실패:",M),s.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{j(!1)}},[t?.popupParams]),b=u.useCallback(M=>{const D=[...M].sort((S,I)=>S.deptLvl-I.deptLvl||S.orgSortOrd-I.orgSortOrd||S.deptCd.localeCompare(I.deptCd)),V=new Map;for(const S of D)V.set(S.deptCd,{...S,children:[]});const U=[];for(const S of D){const I=V.get(S.deptCd),L=S.hrnkDeptCd;L&&V.has(L)?V.get(L).children.push(I):U.push(I)}const k=S=>{if(!S.children||S.children.length===0){delete S.children;return}S.children.forEach(k)};return U.forEach(k),U},[]);u.useEffect(()=>{v()},[v]);const w=u.useMemo(()=>{const M=U=>{let k=[];return U.forEach(S=>{S.employees&&(k=k.concat(S.employees)),S.children&&(k=k.concat(M(S.children)))}),k},D=M(x),V=D.filter((U,k,S)=>k===S.findIndex(I=>I.empNo===U.empNo));return console.log(`👥 전체 사원 수: ${D.length}, 중복 제거 후: ${V.length}`),V},[x]),P=u.useMemo(()=>{const M=D=>D.map(V=>({title:V.deptNm,key:V.deptCd,children:V.children?M(V.children):void 0,isLeaf:!V.children||V.children.length===0}));return M(x)},[x]),B=u.useMemo(()=>{if(!n.trim())return P;const M=D=>D.map(V=>{const U=V.title.toLowerCase().includes(n.toLowerCase()),k=V.children?M(V.children):void 0;return U||k&&k.length>0?{...V,children:k}:null}).filter(Boolean);return M(P)},[P,n]),C=u.useMemo(()=>{if(!n.trim()){const M=S=>{let I=[];return S.forEach(L=>{L.employees&&(I=I.concat(L.employees)),L.children&&(I=I.concat(M(L.children)))}),I},D=(S,I)=>{for(const L of S){if(L.deptCd===I){let F=[...L.employees||[]];return L.children&&(F=F.concat(M(L.children))),F}if(L.children){const F=D(L.children,I);if(F.length>0)return F}}return[]},V=d[0];if(!V)return[];const U=D(x,V),k=U.filter((S,I,L)=>I===L.findIndex(F=>F.empNo===S.empNo));return console.log(`🔍 선택된 부서: ${V}, 반환된 사원 수: ${U.length}, 중복 제거 후: ${k.length}`),k}return w.filter(M=>M.empNm.toLowerCase().includes(n.toLowerCase())||M.empNo.toLowerCase().includes(n.toLowerCase())||M.deptNm.toLowerCase().includes(n.toLowerCase())||M.jbpsCd.includes(n)||M.jbgdCd.includes(n)||M.emplyStCd.includes(n))},[n,d,w,x]),m=u.useCallback(M=>{f(M)},[]),R=u.useCallback(M=>{const D=M.map(String);if(console.log(`🌳 트리 선택: ${D.join(", ")}`),p(D),D.length>0){const V=D[0],U=(S,I)=>{for(const L of S){if(L.deptCd===I)return L.deptNm;if(L.children){const F=U(L.children,I);if(F)return F}}return null},k=U(x,V);k&&a(k)}},[x]),T=u.useCallback(M=>{c(M.map(String))},[]),N=u.useCallback((M,D)=>{if(M.stopPropagation(),D.children&&D.children.length>0){const V=l.includes(D.key);c(V?U=>U.filter(k=>k!==D.key):U=>[...U,D.key])}},[l]),$={confirm:()=>{if(h){const M=t?.config;M?.onSelect?M.onSelect(h):t?.popupParams?.onSelect?t.popupParams.onSelect(h):t?.config?.callback&&t.config.callback(JSON.stringify(h,null,2)),M?.onClose&&M.onClose(),t?.close?.()}else s.message.error("사원을 선택해주세요.")},cancel:()=>{const M=t?.config;M?.onCancel&&M.onCancel(),t?.close?.()}};return e.jsx(Qr,{popup:t,buttons:[{id:"confirm",label:"확인",onClick:()=>{$.confirm()}}],popupEvent:$,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Ne,{children:e.jsx(Ce,{border:!1,style:{paddingBottom:20},children:e.jsxs(s.Splitter,{layout:"vertical",style:{height:"100%"},children:[e.jsxs(s.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[e.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:e.jsxs(s.Flex,{gap:8,vertical:!0,style:{marginBottom:"6px"},children:[e.jsx(ke,{title:"조직도"}),e.jsx(s.Input,{placeholder:"이름, 소속, 전화번호 검색",prefix:e.jsx(q.SearchOutlined,{}),value:n,allowClear:!0,onChange:M=>o(M.target.value)})]})}),e.jsx("div",{style:{padding:"16px",overflowY:"hidden"},children:e.jsx(s.Spin,{spinning:g,children:e.jsx(s.Tree,{className:"bwg-ogrn-tree",treeData:B,expandedKeys:l,selectedKeys:d,onSelect:R,onExpand:T,onDoubleClick:N,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:M=>e.jsx("span",{style:{padding:"4px 8px",borderRadius:"4px",fontWeight:d.includes(M.key)?"bold":"normal",display:"inline-block",width:"100%"},children:M.title})})})})]}),e.jsx(s.Splitter.Panel,{collapsible:!0,children:e.jsxs("div",{style:{padding:"16px",overflowY:"hidden"},children:[e.jsx("div",{style:{marginBottom:"16px"},children:e.jsx("h3",{style:{margin:"0 0 8px 0",fontSize:"16px",fontWeight:"bold"},children:n?"검색 결과":i})}),e.jsxs("div",{style:{overflow:"hidden",height:"100%"},children:[C.map(M=>e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"12px",border:"1px solid #e0e0e0",borderRadius:"8px",marginBottom:"8px",cursor:"pointer",backgroundColor:h&&h.crprCd===M.crprCd&&h.wkplCd===M.wkplCd&&h.empNo===M.empNo&&h.jbpsCd===M.jbpsCd&&h.jbgdCd===M.jbgdCd&&h.empMarkOrd===M.empMarkOrd?"#efebff":"white"},onClick:()=>m(M),children:[e.jsx("div",{style:{marginRight:"12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},onClick:D=>{D.stopPropagation(),f(M)},children:h&&h.crprCd===M.crprCd&&h.wkplCd===M.wkplCd&&h.empNo===M.empNo&&h.jbpsCd===M.jbpsCd&&h.jbgdCd===M.jbgdCd&&h.empMarkOrd===M.empMarkOrd?e.jsx(q.CheckCircleFilled,{style:{fontSize:"20px",color:"#6449fc"}}):e.jsx(q.CheckCircleOutlined,{style:{fontSize:"20px",color:"#d9d9d9"}})}),e.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",fontSize:"18px",color:"#666"},children:e.jsx(q.UserOutlined,{})}),e.jsxs("div",{style:{flex:1},children:[e.jsxs("div",{style:{fontSize:"14px",fontWeight:"bold",marginBottom:"4px"},children:[M.empNm,e.jsxs("span",{style:{fontSize:"12px",fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",M.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:"12px",color:"#666",marginBottom:"2px"},children:[M.deptNm," (",M.deptCd,") | 직급:"," ",M.jbpsCd," | 등급: ",M.jbgdCd]})]})]},`emp-${M.crprCd}-${M.wkplCd}-${M.empNo}-${M.jbpsCd}-${M.jbgdCd}-${M.empMarkOrd}`)),C.length===0&&e.jsx("div",{style:{textAlign:"center",padding:"40px",color:"#999",fontSize:"14px"},children:n?"검색 결과가 없습니다.":"해당 부서에 직원이 없습니다."})]})]})})]})})})})},Tv=Object.freeze(Object.defineProperty({__proto__:null,default:bu},Symbol.toStringTag,{value:"Module"})),Cu=({popup:t,onClose:r})=>{const[n,o]=u.useState(""),[i,a]=u.useState(""),[l,c]=u.useState([]),[d,p]=u.useState([]),[h,f]=u.useState([]),[x,E]=u.useState(!1),[g,j]=u.useState({}),v=u.useCallback(async()=>{try{E(!0);const k=await ae.callService("SCMUTIL00105",{...t?.popupParams});console.log("📊 조직도 API 응답:",k);const S=Array.isArray(k?.data)?k.data:Array.isArray(k?.orgnList)?k.orgnList:Array.isArray(k)?k:[];if(S.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const I=b(S);console.log("🌳 구성된 조직도 트리:",I),f(I);const L=S.filter(F=>F.deptLvl<=2).map(F=>F.deptCd);if(c(L),I.length>0){const F=I[0];p([F.deptCd]),a(F.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(k){console.error("❌ 조직도 데이터 로딩 실패:",k),s.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{E(!1)}},[t?.popupParams]),b=u.useCallback(k=>{const S=[...k].sort((Q,z)=>Q.deptLvl-z.deptLvl||Q.orgSortOrd-z.orgSortOrd||Q.deptCd.localeCompare(z.deptCd)),I=new Map;for(const Q of S)I.set(Q.deptCd,{...Q,children:[]});const L=[];for(const Q of S){const z=I.get(Q.deptCd),_=Q.hrnkDeptCd;_&&I.has(_)?I.get(_).children.push(z):L.push(z)}const F=Q=>{if(!Q.children||Q.children.length===0){delete Q.children;return}Q.children.forEach(F)};return L.forEach(F),L},[]);u.useEffect(()=>{v()},[v]);const w=u.useMemo(()=>{const k=L=>{let F=[];return L.forEach(Q=>{Q.employees&&(F=F.concat(Q.employees)),Q.children&&(F=F.concat(k(Q.children)))}),F},S=k(h),I=S.filter((L,F,Q)=>F===Q.findIndex(z=>z.empNo===L.empNo));return console.log(`👥 전체 사원 수: ${S.length}, 중복 제거 후: ${I.length}`),I},[h]),P=u.useMemo(()=>{const k=S=>S.map(I=>({title:I.deptNm,key:I.deptCd,children:I.children?k(I.children):void 0,isLeaf:!I.children||I.children.length===0}));return k(h)},[h]),B=u.useMemo(()=>{if(!n.trim())return P;const k=S=>S.map(I=>{const L=I.title.toLowerCase().includes(n.toLowerCase()),F=I.children?k(I.children):void 0;return L||F&&F.length>0?{...I,children:F}:null}).filter(Boolean);return k(P)},[P,n]),C=u.useMemo(()=>{if(!n.trim()){const k=Q=>{let z=[];return Q.forEach(_=>{_.employees&&(z=z.concat(_.employees)),_.children&&(z=z.concat(k(_.children)))}),z},S=(Q,z)=>{for(const _ of Q){if(_.deptCd===z){let Y=[..._.employees||[]];return _.children&&(Y=Y.concat(k(_.children))),Y}if(_.children){const Y=S(_.children,z);if(Y.length>0)return Y}}return[]},I=d[0];if(!I)return[];const L=S(h,I),F=L.filter((Q,z,_)=>z===_.findIndex(Y=>Y.empNo===Q.empNo));return console.log(`🔍 선택된 부서: ${I}, 반환된 사원 수: ${L.length}, 중복 제거 후: ${F.length}`),F}return w.filter(k=>k.empNm.toLowerCase().includes(n.toLowerCase())||k.empNo.toLowerCase().includes(n.toLowerCase())||k.deptNm.toLowerCase().includes(n.toLowerCase())||k.jbpsCd.includes(n)||k.jbgdCd.includes(n)||k.emplyStCd.includes(n))},[n,d,w,h]),m=u.useCallback(k=>{j(S=>{const I={...S};return I[k.empNo]?delete I[k.empNo]:I[k.empNo]=k,I})},[]),R=u.useCallback(k=>{j(S=>{const I={...S};return delete I[k],I})},[]),T=u.useCallback(()=>j({}),[]),N=u.useCallback(()=>{j(k=>{const S={...k};for(const I of C)S[I.empNo]=I;return S})},[C]),$=u.useCallback(()=>{j(k=>{const S={...k};for(const I of C)delete S[I.empNo];return S})},[C]),M=u.useCallback(k=>{const S=k.map(String);if(console.log(`🌳 트리 선택: ${S.join(", ")}`),p(S),S.length>0){const I=S[0],L=(Q,z)=>{for(const _ of Q){if(_.deptCd===z)return _.deptNm;if(_.children){const Y=L(_.children,z);if(Y)return Y}}return null},F=L(h,I);F&&a(F)}},[h]),D=u.useCallback(k=>{c(k.map(String))},[]),V=u.useCallback((k,S)=>{if(k.stopPropagation(),!S.children||!S.children.length)return;const I=l.includes(S.key);c(L=>I?L.filter(F=>F!==S.key):[...L,S.key])},[l]),U={confirm:()=>{const k=Object.values(g).map(I=>({crprCd:I.crprCd,wkplCd:I.wkplCd,empNo:I.empNo,deptCd:I.deptCd,deptNm:I.deptNm,empNm:I.empNm,jbpsCd:I.jbpsCd,jbgdCd:I.jbgdCd,empMarkOrd:I.empMarkOrd,emplyStCd:I.emplyStCd}));if(k.length===0){s.message.error("직원을 선택해주세요.");return}const S=t?.config;S?.onSelect?S.onSelect(k):t?.config?.callback&&t.config.callback(JSON.stringify(k)),S?.onClose&&S.onClose(),t?.close?.()},cancel:()=>{const k=t?.config;k?.onCancel&&k.onCancel(),t?.close?.()}};return e.jsx(Qr,{popup:t,buttons:[{id:"confirm",label:"확인",onClick:()=>{U.confirm()}}],popupEvent:U,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Ne,{children:e.jsx(Ce,{border:!1,style:{paddingBottom:20},children:e.jsxs(s.Splitter,{style:{height:"100%"},children:[e.jsx(s.Splitter.Panel,{defaultSize:"50%",min:"50%",max:"70%",children:e.jsxs(s.Splitter,{layout:"vertical",style:{height:"100%"},children:[e.jsxs(s.Splitter.Panel,{defaultSize:"60%",min:"35%",max:"75%",children:[e.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:e.jsxs(s.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[e.jsx(ke,{title:"조직도"}),e.jsx(s.Input,{placeholder:"이름, 소속, 직급/직위, 사번 검색",prefix:e.jsx(q.SearchOutlined,{}),value:n,allowClear:!0,onChange:k=>o(k.target.value)})]})}),e.jsx("div",{style:{padding:16,overflowY:"hidden"},children:e.jsx(s.Spin,{spinning:x,children:e.jsx(s.Tree,{className:"bwg-ogrn-tree",treeData:B,expandedKeys:l,selectedKeys:d,onSelect:M,onExpand:D,onDoubleClick:V,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:k=>e.jsx("span",{style:{padding:"4px 8px",borderRadius:4,fontWeight:d.includes(k.key)?"bold":"normal",display:"inline-block",width:"100%"},children:k.title})})})})]}),e.jsx(s.Splitter.Panel,{children:e.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:n?"검색 결과":`${i} 사용자`}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(s.Button,{size:"small",onClick:N,children:"현재 목록 전체 선택"}),e.jsx(s.Button,{size:"small",onClick:$,children:"현재 목록 전체 해제"})]})]}),e.jsx(s.Divider,{style:{margin:"8px 0"}}),e.jsxs("div",{style:{overflowY:"auto"},children:[C.map(k=>{const S=!!g[k.empNo];return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,cursor:"pointer",background:S?"#efebff":"#fff"},onClick:()=>m(k),children:[e.jsx("div",{style:{marginRight:12,width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},onClick:I=>{I.stopPropagation(),m(k)},children:S?e.jsx(q.CheckCircleFilled,{style:{fontSize:20,color:"#6449fc"}}):e.jsx(q.CheckCircleOutlined,{style:{fontSize:20,color:"#d9d9d9"}})}),e.jsx("div",{style:{width:36,height:36,borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:12,fontSize:16,color:"#666",flex:"0 0 auto"},children:e.jsx(q.UserOutlined,{})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{fontSize:14,fontWeight:600,marginBottom:2},children:[k.empNm,e.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",k.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:12,color:"#666"},children:[k.deptNm," (",k.deptCd,") | 직급: ",k.jbpsCd," ","| 등급: ",k.jbgdCd]})]})]},`emp-${k.crprCd}-${k.wkplCd}-${k.empNo}-${k.jbpsCd}-${k.jbgdCd}-${k.empMarkOrd}`)}),C.length===0&&e.jsx("div",{style:{textAlign:"center",padding:32,color:"#999",fontSize:14},children:n?"검색 결과가 없습니다.":"해당 부서에 사용자 없음"})]})]})})]})}),e.jsx(s.Splitter.Panel,{collapsible:!0,children:e.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx(ke,{title:`선택된 사용자 (${Object.keys(g).length})`}),e.jsx(s.Button,{type:"link",size:"small",onClick:T,children:"전체 해제"})]}),e.jsx(s.Divider,{style:{margin:"8px 0"}}),e.jsxs("div",{style:{overflowY:"auto",flex:1},children:[Object.values(g).map(k=>e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,background:"#fafafa"},children:[e.jsx("div",{style:{width:32,height:32,borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:10,color:"#666"},children:e.jsx(q.UserOutlined,{})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:[k.empNm,e.jsxs("span",{style:{fontSize:11,fontWeight:"normal",color:"#666",marginLeft:"6px"},children:["(",k.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:12,color:"#666"},children:[k.deptNm," (",k.deptCd,") | 직급: ",k.jbpsCd," | 등급: ",k.jbgdCd]})]}),e.jsx(s.Button,{type:"text",shape:"circle",icon:e.jsx(q.CloseOutlined,{}),onClick:()=>R(k.empNo)})]},`selected-${k.crprCd}-${k.wkplCd}-${k.empNo}-${k.jbpsCd}-${k.jbgdCd}-${k.empMarkOrd}`)),Object.keys(g).length===0&&e.jsx("div",{style:{color:"#999",fontSize:14,textAlign:"center",padding:24},children:"선택된 사용자가 없습니다."})]})]})})]})})})})},Ev=Object.freeze(Object.defineProperty({__proto__:null,default:Cu},Symbol.toStringTag,{value:"Module"})),{Text:Jl,Title:kv}=s.Typography,Iv=({popup:t})=>{const[r,n]=u.useState(pi()),[o,i]=u.useState(pi()),[a,l]=u.useState([]),[c,d]=u.useState([]),[p,h]=u.useState("month");ut.useCodeStore();const{token:f}=s.theme.useToken(),x=(b,w,P=p)=>{const B=w.filter(C=>{if(P==="year"){const m=C.stndYmd.substring(0,6),R=b.format("YYYYMM");return m===R}else{const m=b.format("YYYYMMDD");return C.stndYmd===m}});l(B)},E=b=>{n(b),x(b,c,p)},g=(b,w)=>{i(b),h(w),v.SCMHLDY00101(w,b)};u.useEffect(()=>{v.SCMHLDY00101()},[]);const j=b=>{const w=c.filter(P=>{if(p==="year"){const B=P.stndYmd.substring(0,6),C=b.format("YYYYMM");return B===C}else{const B=b.format("YYYYMMDD");return P.stndYmd===B}});return w.length>0?e.jsx("div",{style:{position:"absolute",bottom:"1px",left:"1px",right:"1px",height:"3px",display:"flex",gap:"1px"},children:w.map((P,B)=>e.jsx("div",{style:{flex:1,height:"3px",background:P.hldyYn==="Y"?f.colorError:f.colorSuccess,borderRadius:"1px"}},B))}):null},v={SCMHLDY00101:async(b=p,w=r)=>{try{let P;b==="year"?P=w.format("YYYY"):P=w.format("YYYYMM");const B=await ae.callService("SCMHLDY00101",{crprCd:ae.getUserInfo()?.crprCd||"",sysCd:__SYS_CD__,stndYmd:P});d(B.sub||[]),x(w,B.sub||[],b)}catch(P){console.error("휴일 데이터 로드 실패:",P),s.message.error("휴일 데이터를 불러오는데 실패했습니다.")}}};return e.jsx(Qr,{popup:t,children:e.jsx(Ne,{children:e.jsx(Ce,{children:e.jsxs(s.Row,{gutter:f.padding,style:{marginTop:f.padding},children:[e.jsx(s.Col,{span:12,children:e.jsx(s.Card,{title:e.jsxs(s.Space,{children:[e.jsx(q.CalendarOutlined,{}),e.jsx("span",{children:"휴일 달력"})]}),style:{height:"500px"},children:e.jsx(s.Calendar,{fullscreen:!1,value:r,onSelect:E,onPanelChange:g,cellRender:j,style:{height:"400px"},mode:p})})}),e.jsx(s.Col,{span:12,children:e.jsx(s.Card,{title:e.jsxs(s.Space,{children:[e.jsx(q.CalendarOutlined,{}),e.jsx("span",{children:p==="year"?`${r.format("YYYY년 MM월")} 휴일 목록`:`${r.format("YYYY년 MM월 DD일")} 휴일 목록`})]}),style:{height:"500px"},children:e.jsx("div",{style:{height:"400px",overflowY:"auto"},children:a.length>0?e.jsx(s.Space,{direction:"vertical",style:{width:"100%"},size:"small",children:a.map((b,w)=>e.jsx(s.Card,{size:"small",style:{border:`${f.lineWidth}px solid ${f.colorBorder}`,borderRadius:f.borderRadiusLG},children:e.jsxs("div",{style:{padding:`${f.paddingXS}px 0`},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:f.paddingXS},children:[e.jsx(kv,{level:5,style:{margin:0,color:f.colorPrimary},children:b.hldyDscr||"휴일명 미입력"}),b.hldyYn==="Y"&&e.jsx(s.Tag,{color:f.colorSuccess,children:"휴일"})]}),e.jsx("div",{style:{marginBottom:f.paddingXXS},children:e.jsx(Jl,{type:"secondary",style:{fontSize:f.fontSizeSM},children:pi(b.stndYmd).format("YYYY년 MM월 DD일 dddd")})}),b.hldyDscr&&e.jsx("div",{children:e.jsx(Jl,{style:{fontSize:f.fontSizeSM+1},children:b.hldyDscr})})]})},w))}):e.jsx(s.Empty,{description:"선택된 날짜에 등록된 휴일이 없습니다.",style:{marginTop:"100px"}})})})})]})})})})};exports.ButtonAccessController=Xi;exports.BwgButtonGroup=Qi;exports.BwgCmptArea=ku;exports.BwgCol=Iu;exports.BwgComponentGuideM01=Z0;exports.BwgConfigProvider=sc;exports.BwgDetail=Fu;exports.BwgDeveloperGuideM01=tv;exports.BwgDrawer=Xr;exports.BwgEditor=Uu;exports.BwgGrid=$e;exports.BwgInfoArea=Ut;exports.BwgPagination=Ms;exports.BwgPopup=Qr;exports.BwgReactGuideM01=sv;exports.BwgRow=tp;exports.BwgSpace=Ho;exports.BwgTable=rp;exports.BwgTabs=mt;exports.BwgTitleBox=ke;exports.BwgView=xt;exports.CMAuthMstrM01=K0;exports.CMFileMstrM01=av;exports.CMHldyMstrP01=Iv;exports.CMMenuMstrM01=cv;exports.CMMenuPrgrSelectModal=mu;exports.CMMenuPrntSelectModal=xu;exports.CMPopuMstrM01=dv;exports.CMPrgrMstrM01=hv;exports.CMRoleMstrM01=Y0;exports.CMSystCfgM01=gv;exports.CMSystCodeM01=mv;exports.CMUserMstrM01=xv;exports.ContentBox=Ce;exports.ContentLayOut=Ne;exports.GlobalConfigProvider=F0;exports.QuickServiceToggle=U0;exports.SSOHandler=G0;exports.SearchBox=Vn;exports.SearchDepartmentP01=vu;exports.SearchDepartmentP01$1=Cv;exports.SearchDepartmentP02=yu;exports.SearchDepartmentP02$1=Rv;exports.SearchOrganizationP01=bu;exports.SearchOrganizationP01$1=Tv;exports.SearchOrganizationP02=Cu;exports.SearchOrganizationP02$1=Ev;exports.commonjsGlobal=Tu;exports.createBwgGridRenderer=Ns;exports.getAugmentedNamespace=Eu;exports.getDefaultExportFromCjs=Hn;