@bwg-ui/core 1.2.14 → 1.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/MenuReport-Cw7zMZIq.cjs +1 -0
- package/dist/chunks/{MenuReport-CozV1tpR.js → MenuReport-DNeDpJV2.js} +26 -26
- package/dist/chunks/{common-components-B-zgrX-L.cjs → common-components-Be3FPdnz.cjs} +42 -42
- package/dist/chunks/{common-components-XA2KG7Pl.js → common-components-DGVIgTZZ.js} +4627 -4414
- package/dist/chunks/{layout-components-MrnKV5g7.js → layout-components-BBpCgkuQ.js} +512 -506
- package/dist/chunks/layout-components-C5u5K3OY.cjs +35 -0
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.d.ts +0 -1
- package/dist/components/guide/index.d.ts.map +1 -1
- package/dist/components/guide/index.js +92 -287
- package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/types.d.ts +28 -0
- package/dist/components/layout/types.d.ts.map +1 -1
- package/dist/components/pages/index.d.ts +1 -0
- package/dist/components/pages/index.d.ts.map +1 -1
- package/dist/components/pages/syst/CMHldyCfg.d.ts.map +1 -0
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +79 -78
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +42 -45
- package/package.json +2 -1
- package/dist/chunks/MenuReport-Bqeps5fC.cjs +0 -1
- package/dist/chunks/layout-components-bb0cWC3I.cjs +0 -35
- package/dist/components/guide/CMHldyCfg.d.ts.map +0 -1
- /package/dist/components/{guide → pages/syst}/CMHldyCfg.d.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
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.
|
|
1
|
+
"use strict";const se=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"),pt=require("../provider/index.cjs"),wu=require("dompurify"),ec=require("quill"),ju=require("react-quill"),oa=require("quill-image-resize-module-react"),Mo=require("react-dom"),Ze=require("realgrid"),ia=require("realgrid-react"),Su=require("react-rnd"),Ru=require("./layout-components-C5u5K3OY.cjs"),F=require("../components/core/index.cjs"),sa=require("react-router-dom"),So=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),b=tc(u),Xi=({checkAuth:t=!1,buttons:r,gap:n=8})=>{const{user:o}=ut.useUserStore(),i=pt.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}se.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 S=E?.enblYn==null?!0:String(E.enblYn).toUpperCase()==="Y";x[g]=S}),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 S=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}' 버튼에 대한 사용 권한이 없습니다.`})]}),y=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:S,content:y,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=pt.useServiceCodeValue("AUTH_BTNS"),{user:p}=ut.useUserStore(),[h,f]=u.useState([]),[x,E]=u.useState(!0),[g,S]=u.useState(null),[y,j]=u.useState({}),C=async()=>{try{E(!0),S(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",t,r);const w=await se.callService(d,{userId:p?.userId,crprCd:p?.crprCd,grpId:t.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",w),w?.data&&Array.isArray(w.data)){const m=w.data.sort((R,T)=>R.btnSq-T.btnSq);f(m)}else f([])}catch(w){console.error("버튼 권한 조회 실패:",w),S("버튼 권한을 조회하는 중 오류가 발생했습니다."),f([])}finally{E(!1)}};u.useEffect(()=>{C()},[t,r]);const P=async(w,m)=>{j(R=>({...R,[w]:{loading:!0}}));try{const R=n?.[w];R?await R():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${w}`),c&&c(w,m,t)}catch(R){console.error("버튼 이벤트 실행 실패:",R),s.message.error("작업 중 오류가 발생했습니다.")}finally{j(R=>({...R,[w]:{loading:!1}}))}},I=w=>{const m=y[w.btnId]||{loading:!1};return e.jsxs(s.Button,{size:i,loading:m.loading,onClick:()=>P(w.btnId,w.btnNm),className:"bwg-btn",style:{...w.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[w.iconVal&&e.jsxs(e.Fragment,{children:[w.iconType==="ANTD"&&Sn[w.iconVal]&&u.createElement(Sn[w.iconVal],{style:{fontSize:"14px"}}),w.iconType!=="ANTD"&&e.jsx("span",{className:w.iconVal,style:{fontSize:"14px"}})]}),w.btnNm]},w.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(I)})})},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 S=[];E.forEach(j=>{const C=j,P=C?.props?.["data-colspan"]?parseInt(String(C.props["data-colspan"])):1;g+=P,S.push(P)});const y=g>0?100/g:0;return{totalCols:g,baseWidth:y,componentWidths:S}},[d]),h=(E,g,S)=>{const y=E,j=y?.props?.["data-colspan"]?parseInt(String(y.props["data-colspan"])):1;switch(r){case"equal":return 100/S;case"auto":return 100/S;case"grid":return 100/p.totalCols*j;case"flex":default:const C=p.baseWidth*j;return Math.max(o,Math.min(i,C))}},f=E=>{if(!E||typeof E!="object")return E;const g=E;if(!g.props)return E;const y={...g.props.style||{},width:"100%"};return u.cloneElement(g,{...g.props,style:y})},x=(E,g)=>{if(!E||E.length===0)return null;const S=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((y,j)=>{const C=y?.props?.["data-colspan"]?parseInt(String(y.props["data-colspan"])):1,P=f(y);return e.jsx("div",{style:{gridColumn:`span ${C}`,minWidth:`${o}px`},className:"form-component-wrapper",children:P},`row-${g}-col-${j}`)})},`row-${g}`):e.jsx(s.Flex,{gap:n,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:E.map((y,j)=>{const C=h(y,j,S),P=f(y),I=r==="flex"?{width:`${C}px`,minWidth:`${o}px`,maxWidth:`${i}px`,flexShrink:0}:{width:`${C}%`,minWidth:`${o}px`};return e.jsx("div",{style:I,className:"form-component-wrapper",children:P},`row-${g}-col-${j}`)})},`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 Ho(){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 Mu(){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 Bu(){return ua||(ua=1,(function(t){var r=rc().default,n=Mu();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=Bu();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=Ho().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=Ho().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=Ho().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=Ho().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]})})})},Te=({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(Te,{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 j=l.placement;return j==="left"||j==="right"||j==="top"||j==="bottom"?j:"bottom"}),[f,x]=u.useState(!1),g=(j=>{const C={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(j){case"bottom":return{...C,wrapper:{...C.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...C.header,borderRadius:"30px 30px 0 0"}};case"top":return{...C,wrapper:{...C.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...C.header}};case"left":return{...C,wrapper:{...C.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...C.header,borderRadius:"0 30px 0 0"}};case"right":return{...C,wrapper:{...C.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...C.header,borderRadius:"30px 0 0 0"}};default:return C}})(p),S={wrapper:{...g?.wrapper,...a?.wrapper},content:{...g?.content,...a?.content},header:{...g?.header,...a?.header}},y=()=>{const j=[];if(i){const C=[{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:C.map(I=>e.jsx(s.Button,{type:p===I.key?"primary":"default",size:"small",onClick:()=>{h(I.key),x(!1)},icon:I.icon},I.key))});j.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&&j.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&&j.push(e.jsx("div",{style:{margin:"0 8px"},children:l.extra},"extra")),n&&j.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")),j};return e.jsx(s.Drawer,{className:"main-drawer",footer:!0,...l,placement:p,styles:S,maskClosable:!1,closable:!1,mask:c,extra:e.jsx(s.Space,{size:"small",align:"center",children:y()}),afterOpenChange:j=>{j||(d(!0),h(l.placement)),l.afterOpenChange?.(j)},destroyOnHidden:!0,children:r?e.jsxs(Be,{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})},be=({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}),No=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"],[]),S=n!==void 0,[y,j]=u.useState(o??""),C=S?n:y,P=u.useCallback((R,T,M,A)=>{const N=Bo(R??"");S||j(N),i?.(N,T,M,A)},[S,i]),m=`calc(100% - ${p?"42px":"0px"} - ${h?"40px":"0px"})`;return u.useImperativeHandle(d,()=>({getHTML:()=>C??"",getText:()=>x.current?.getEditor()?.getText()??"",insertHTML:R=>{const T=x.current?.getEditor();if(!T)return;const M=T.getSelection(!0),A=Bo(R??"");T.clipboard.dangerouslyPasteHTML(M?M.index:T.getLength(),A)},insertImage:(R,T)=>{const M=x.current?.getEditor();if(!M)return;const A=M.getSelection(!0),N=typeof R=="string"?R:"";M.insertEmbed(A?A.index:M.getLength(),"image",N,"user")},getQuill:()=>x.current?.getEditor?.()??null})),e.jsxs(be,{border:t,style:{opacity:l?.6:1,pointerEvents:l?"none":"auto",height:typeof f=="number"?`${f}px`:f},children:[h&&e.jsx(Te,{...h,paddingBottom:10}),e.jsx(ju,{ref:x,theme:p?"snow":"bubble",readOnly:!p,value:C,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(No,{...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(No,{...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(No,{...t})},Uu=Object.assign(Wu,{FormItem:Vu,Core:No});var Or={},wa;function Gu(){if(wa)return Or;wa=1;var t=Mo;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 Bs=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,S]=u.useState(n),[y,j]=u.useState(0);u.useEffect(()=>{f(n)},[n]),u.useEffect(()=>{f(n)},[]),u.useImperativeHandle(p,()=>({currentPage:x,pageSize:g,totalData:y,totalPages:Math.ceil(y/g),setPage:D=>{E(D),d?.(D,g)},setPageSize:D=>{S(D),E(1),d?.(1,D)},setTotalData:D=>{j(D)},reset:()=>{E(1),S(n),j(0)}}),[x,g,y,d,n]);const C=c==="client",P=C?(t||0)+1:x,I=C?(r||0)>0:y>0,m=C?I?Math.ceil((o||0)/h):0:Math.ceil(y/g),R=C?I&&o||0:y,T=Math.min(P,m||1),M=`${h}-${m}-${T}`,A=D=>{C?i?.(D-1):(E(D),d?.(D,g))},N=D=>{if(C){f(D);try{l?.current?.gridView?(l.current.gridView.setPaging(!0,D),l.current.gridView.setPage(0)):i?.(0)}catch(H){console.warn("페이지 사이즈 변경 중 오류:",H),i?.(0)}}else S(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:C?h:g,onChange:D=>N(Number(D.target.value)),disabled:!I,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:I?1:.5},children:a.map(D=>e.jsxs("option",{value:D,children:[D,"개"]},D))}),e.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:I?1:.5},children:["/ 총 ",R,"개"]})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[e.jsx(s.Button,{onClick:()=>A(1),disabled:!I||T===1,style:{width:"30px",height:"24px",background:!I||T===1?"#f5f5f5":"white",cursor:!I||T===1?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsx(q.DoubleLeftOutlined,{})}),e.jsx(s.Button,{onClick:()=>A(T-1),disabled:!I||T===1,style:{width:"30px",height:"24px",background:!I||T===1?"#f5f5f5":"white",cursor:!I||T===1?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsx(q.LeftOutlined,{})}),e.jsx("div",{children:(()=>{if(!I||m===0)return e.jsx(s.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const D=5;let H=1,U=Math.min(D,m);T>3&&m>D&&(H=Math.max(1,T-2),U=Math.min(m,H+D-1),U===m&&(H=Math.max(1,U-D+1)));const v=[];for(let k=H;k<=U;k++)v.push(e.jsx(s.Button,{onClick:()=>A(k),style:{width:"30px",height:"24px",background:T===k?"#1890ff":"white",color:T===k?"white":"black",cursor:"pointer"},children:k},k));return v})()},M),e.jsx(s.Button,{onClick:()=>A(T+1),disabled:!I||T>=m,style:{width:"30px",height:"24px",background:!I||T>=m?"#f5f5f5":"white",cursor:!I||T>=m?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsx(q.RightOutlined,{})}),e.jsx(s.Button,{onClick:()=>A(m),disabled:!I||T>=m,style:{width:"30px",height:"24px",background:!I||T>=m?"#f5f5f5":"white",cursor:!I||T>=m?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsx(q.DoubleRightOutlined,{})})]})]})});Bs.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 Oe=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=($,K,Z,X)=>{let O=[],G=[];const W="treeNode";for(let J in $){let te=$[J];O[te[Z]]=$[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($=>{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($).map(X=>({fieldName:X.fieldName,dataType:X.dataType||"text"}))},[]),S=u.useCallback($=>{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($).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($,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($)}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($,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($){f.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!$?.indenting,header:"default",footer:"default",sheetName:"",fileName:$?.fileName||"sample.xlsx",...$})},getGridSaveData:()=>{const $=f.current?.dataProvider?.getAllStateRows();if($===void 0)return[{}];let K=[];if($.created!==void 0&&$.created.length>0)for(const Z in $.created){let X=f.current?.dataProvider?.getJsonRow($.created[Z]);X={...X,iudFlag:"I"},K.push(X)}if($.updated!==void 0&&$.updated.length>0)for(const Z in $.updated){let X=f.current?.dataProvider?.getJsonRow($.updated[Z]);X={...X,iudFlag:"U"},K.push(X)}if($.deleted!==void 0&&$.deleted.length>0)for(const Z in $.deleted){let X=f.current?.dataProvider?.getJsonRow($.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 y=u.useCallback(($,K,Z)=>{if(l!==void 0&&Z>=0){let X=$.getDataSource().getJsonRow(Z);l?.current?.setFieldsValue(X)}else l!==void 0&&Z<0&&l?.current?.resetFields();$.setCurrent({dataRow:0}),a?.onCurrentRowChanged&&a?.onCurrentRowChanged($,K,Z)},[l,a]),j=u.useCallback(($,K,Z)=>{const X=K.fieldName??"";l?.current?.getFieldInstance(X)&&l?.current.setFieldValue(X,Z),a?.onEditChange&&a?.onEditChange($,K,Z)},[l,a]),C=u.useCallback(($,K,Z)=>{const X=$.getOrgFieldName(Z),O=$.getValue(K,Z);l?.current?.setFieldValue(X,O)},[l]),P=u.useCallback(($,K,Z,X)=>{const O=$.getColumn(X).name??"",G=$.getValue(K,X);l?.current?.getFieldInstance(O)&&l?.current.setFieldValue(O,G),a?.onCellEdited&&a?.onCellEdited($,K,Z,X)},[l,a]),I=u.useCallback(($,K,Z,X)=>{if(typeof K.dataRow=="number"&&K.dataRow!=-1){var O=$.getDataSource().getRowState(K.dataRow);if(O=="deleted"||O=="createAndDeleted")return!1}return a?.onShowEditor!=null&&a?.onShowEditor($,K,Z,X),!0},[l,a]),w=u.useCallback($=>{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 $=f.current.gridView,K=$.getDataSource(),Z=["onKeyDown"],X=["onRowInserted"];Object.keys(a??{}).map(O=>{Z.includes(O)?$[O+"Add"]=a?.[O]:$[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(){$?.setCurrent({dataRow:G})},1),O.onRowInsertedAdd!==void 0&&O.onRowInsertedAdd(O,G))}),$.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=y,f.current.gridView.onEditChange=j,f.current.gridView.getDataSource().onValueChanged=C,f.current.gridView.onCellEdited=P,f.current.gridView.onShowEditor=I,f.current.gridView.onDataLoadComplated=w},[y,j,C,P,I,w]),R=u.useCallback($=>{if($){try{$.gridView.setSortingOptions({enabled:!0}),$.gridView.sortMode=Ze.SortMode.EXPLICIT,$.gridView.editorOptions.viewGridInside=!0,$.gridView instanceof Ze.TreeView&&$.gridView.setTreeOptions({expandWhenSetData:Ze.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ze.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),$.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}),$.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}),$.gridView.setCopyOptions({singleMode:i?.copy?.singleMode||!1}),$.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),$.gridView.header.height=i?.header?.height||43,$.gridView.header.styleName=i?.header?.styleName||"bwgGridHeader",i?.container?.radio?$.gridView.setCheckBar({exclusive:i?.container?.radio||!1}):$.gridView.setCheckBar({visible:i?.container?.check||!1,showAll:i?.container?.checkAll||!1}),$.gridView.setStateBar({visible:i?.container?.state||!1}),$.gridView.rowIndicator.visible=i?.container?.indicator||!1,$.gridView instanceof Ze.GridView&&($.gridView.groupPanel.visible=i?.container?.panel||!1),$.gridView.setFooters({visible:i?.container?.footer||!1}),$.gridView.setHeader({visible:i?.container?.header||!0}),$.gridView.formatOptions.numberFormat="#,##0"}catch(K){console.log("그리드 옵션 설정 중 오류:",K)}try{$.gridView instanceof Ze.TreeView?$.gridView.setContextMenu(Qu):$.gridView.setContextMenu(Xu),$.gridView.onContextMenuItemClicked=function(K,Z,X){if(!(!X||!X.column)){if(Z.tag=="excel")H(K,{isTitle:!1},c?.excel);else if(Z.tag=="showIndentExcel")H(K,{isTitle:!1,treeBlank:!0},c?.excel);else if(Z.tag=="withTitleExcel")H(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=$=>{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;$.gridView.registerCustomRenderer(Z,O)}})}catch(K){console.error("커스텀 렌더러 초기화 중 오류:",K)}},M=$=>{$.onPageChanged=(K,Z)=>{z(X=>({...X,currentPage:Z}))},$.onPageCountChanged=(K,Z)=>{z(X=>({...X,totalPages:Z}))}},A=$=>{f.current?.gridView&&f.current.gridView.setPage($)},N=$=>{if(i?.layout?.colspan&&i.layout.colspan.length>0&&i?.layout?.colspan.forEach(K=>{const Z=$.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=$.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=$.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),$.gridView.setColumnLayout(O)})()}catch(Z){console.error("컬럼 레이아웃 설정 오류:",Z)}},D=()=>{if(f.current){if(t==="nrml"){const $=f.current;if(R($),T($),o&&o.length>0){const K=g(o),Z=S(o);$.gridView.getDataSource().setFields(K),$.gridView.setColumns(Z)}if(N($),i?.container?.page){const K=i?.pagingOption?.pageSize||10;$.gridView.setPaging(!0,K),M($.gridView)}}else{const $=f.current;if(R($),T($),o&&o.length>0){const K=g(o),Z=S(o);$.gridView.getDataSource().setFields(K),$.gridView.setColumns(Z)}N(f.current)}setTimeout(()=>{if(p){const $=typeof h=="object"&&h!==null?h.current:null;p($)}},0)}},H=($,K,Z)=>{const X=$.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),se.isEmpty(Z?.sheetName)==!1&&(G.sheetName=Z?.sheetName),K?.isTitle&&(G.documentTitle={message:se.isSafeEmpty(Z?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},se.isEmpty(Z?.subTitle)==!1&&(G.documentSubtitle={message:Z?.subTitle,visible:!0,styleName:"center",height:20}),se.isEmpty(Z?.tailTitle)==!1&&(G.documentTail={message:Z?.tailTitle,visible:!0,styleName:"documentStyle"})),$.exportGrid(G)},U=($,K)=>{const Z=$.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=$.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];se.isEmpty(ie)&&(se.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})}$.setColumnFilters(X[O],W)}else for(var O=0;O<X.length;O++)$.clearColumnFilters(X[O]),$.activateAllColumnFilters(X[O],!1),$.clearColumnFilters(X[O])};u.useEffect(()=>{if(f.current&&f.current.gridView)if(t==="nrml"){const $=f.current;R($)}else{const $=f.current;R($)}},[t,i,R]),u.useEffect(()=>{!f.current||!o||o.length===0||D()},[o]),u.useEffect(()=>{f.current&&m()},[a,m]);const[v,k]=u.useState(!1),[B,L]=u.useState(""),V=u.useRef(null),[Q,z]=u.useState({currentPage:0,totalPages:0,totalData:0});u.useEffect(()=>{z({currentPage:0,totalPages:0,totalData:0})},[]),u.useEffect(()=>{v&&setTimeout(()=>{V.current?.focus?.()},0)},[v]),u.useEffect(()=>()=>{if(f.current)try{const $=f.current;$.gridView&&($.gridView.onDataLoadComplated=void 0,$.gridView.onCurrentRowChanged=void 0,$.gridView.onCellClicked=void 0,$.gridView.onCellDblClicked=void 0,$.gridView.onEditRowChanged=void 0,$.gridView.onItemChecked=void 0,$.gridView.onItemAllChecked=void 0,$.gridView.onColumnCheckedChanged=void 0,$.gridView.onCellButtonClicked=void 0,$.gridView.onEditChange=void 0,$.gridView.onCellEdited=void 0,$.gridView.onKeyUp=void 0,$.gridView.onKeyDown=void 0,$.gridView.onWheel=void 0,$.gridView.onValidateColumn=void 0,$.gridView.onValidateRow=void 0,$.gridView.onValidationFail=void 0,$.gridView.onRowInserting=void 0,$.gridView.onCellItemClicked=void 0,$.gridView.onShowEditor=void 0,$.gridView.getDataSource()&&($.gridView.getDataSource().clearRows(),$.gridView.getDataSource().setFields([])),$.gridView.getDataSource().clearRows())}catch($){console.warn("⚠️ BwgGrid cleanup error:",$)}},[]);const _=u.useCallback($=>{Y($)},[]),Y=u.useCallback($=>{const K=f.current?.gridView;if(K?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(K?.commit(),se.isEmpty($))return;const Z=K?.getCurrent().itemIndex??-1;if(Z<0)return;const X={value:$,startIndex:Z+1,wrap:!0,caseSensitive:!1,partialMatch:!0},O=K?.searchCell(X);K?.setCurrent(O)},[]),ee=u.useCallback($=>{$.key==="Escape"&&($.preventDefault(),k(!1))},[]),oe=u.useCallback($=>{$.ctrlKey&&$.code==="KeyF"&&($.preventDefault(),L(""),k(!v))},[v]),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:$=>ne.handleSearch($),children:[v&&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:V,value:B,name:"srchField",autoComplete:"off",onKeyUp:$=>ne.handleCloseKeyword($),onChange:$=>L($.target.value),onPressEnter:$=>ne.searchEnter($)})]})}),e.jsx(s.Button,{variant:"solid",icon:e.jsx(q.CloseOutlined,{}),onClick:()=>k(!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(Bs,{currentPage:Q.currentPage,totalPages:Q.totalPages,pageSize:i?.pagingOption?.pageSize,totalData:Q.totalData,onPageChange:A,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(Be,{type:"vertical",children:[e.jsx(Te,{title:t,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:o}),e.jsx(be,{border:!1,children:e.jsx(s.ConfigProvider,{theme:i,children:n})})]})}),Be=({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 I=Math.max(0,(window.innerWidth-c)/2),w=Math.max(0,(window.innerHeight-d)/2);return{x:I,y:w}},[c,d]),[g,S]=u.useState(E),y=(I,w)=>{const m=ja({x:w.x,y:w.y},{width:p,height:f});S(m)},j=(I,w,m,R,T)=>{const M={width:parseInt(m.style.width,10),height:parseInt(m.style.height,10)},A=ja(T,M);h(M.width),x(M.height),S(A)},C=()=>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:y,onResizeStop:j,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:C,children:e.jsx(Be,{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(pt.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}),Vo=({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}),xt=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
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
|
|
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 Ee(t){"@babel/helpers - typeof";return Ee=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},Ee(t)}function ap(t,r){if(Ee(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,r);if(Ee(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 Ee(r)=="symbol"?r:r+""}function ae(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
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|
|
6
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=`
|
|
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){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(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 Oo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Oo.primary=Oo[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 Do=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Do.primary=Do[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:Oo,yellow:rs,lime:ns,green:os,cyan:is,blue:Do,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){ae(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 gt(){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 Ma="data-rc-order",Ba="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 Wo(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(!gt())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(Ma,l),c&&a&&d.setAttribute(Ba,"".concat(a)),n!=null&&n.nonce&&(d.nonce=n?.nonce),d.innerHTML=t;var p=Wo(r),h=p.firstChild;if(o){if(c){var f=(r.styles||As(p)).filter(function(x){if(!["prepend","prependQueue"].includes(x.getAttribute(Ma)))return!1;var E=Number(x.getAttribute(Ba)||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=Wo(r);return(r.styles||As(n)).find(function(o){return o.getAttribute(gc(r))===t})}function Mn(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xc(t,r);if(n){var o=Wo(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=Wo(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 Ao(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 Ee(t)==="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(Ee(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
8
|
.anticon {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
align-items: center;
|
|
@@ -61,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
61
|
}
|
|
62
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
63
|
`).concat(l,`
|
|
64
|
-
}`)),u.useEffect(function(){var c=r.current,d=
|
|
64
|
+
}`)),u.useEffect(function(){var c=r.current,d=Ao(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=b.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 Mp=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jc(Do.primary);var or=b.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,Mp),h=b.useContext(Ds),f=h.prefixCls,x=f===void 0?"anticon":f,E=h.rootClassName,g=ve(E,x,ae(ae({},"".concat(x,"-").concat(o.name),!!o.name),"".concat(x,"-spin"),!!i||o.name==="loading"),n),S=l;S===void 0&&c&&(S=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,j=wc(d),C=le(j,2),P=C[0],I=C[1];return b.createElement("span",nt({role:"img","aria-label":o.name},p,{ref:r,tabIndex:S,onClick:c,className:g}),b.createElement(Zr,{icon:o,primaryColor:P,secondaryColor:I,style:y}))});or.displayName="AntdIcon";or.getTwoToneColor=Pp;or.setTwoToneColor=jc;var Bp=function(r,n){return b.createElement(or,nt({},r,{ref:n,icon:ip}))},Sc=b.forwardRef(Bp);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&&Ee(t)==="object"&&(t.$$typeof===Np||t.$$typeof===Op)&&t.type===Dp}function Bn(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(Bn(o)):Rc(o)&&o.props?n=n.concat(Bn(o.props.children,r)):n.push(o))}),n}function Nn(t){return t instanceof HTMLElement||t instanceof SVGElement}function Ap(t){return t&&Ee(t)==="object"&&Nn(t.nativeElement)?t.nativeElement:Nn(t)?t:null}function Ro(t){var r=Ap(t);if(r)return r;if(t instanceof u.Component){var n;return(n=Mo.findDOMNode)===null||n===void 0?void 0:n.call(Mo,t)}return null}var po={exports:{}},Pe={};/**
|
|
65
65
|
* @license React
|
|
66
66
|
* react-is.production.min.js
|
|
67
67
|
*
|
|
@@ -69,7 +69,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the MIT license found in the
|
|
71
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
|
|
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 S(y){if(typeof y=="object"&&y!==null){var j=y.$$typeof;switch(j){case t:switch(y=y.type,y){case n:case i:case o:case p:case h:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case d:case x:case f:case a:return y;default:return j}}case r:return j}}}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(y){return S(y)===l},Pe.isContextProvider=function(y){return S(y)===a},Pe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Pe.isForwardRef=function(y){return S(y)===d},Pe.isFragment=function(y){return S(y)===n},Pe.isLazy=function(y){return S(y)===x},Pe.isMemo=function(y){return S(y)===f},Pe.isPortal=function(y){return S(y)===r},Pe.isProfiler=function(y){return S(y)===i},Pe.isStrictMode=function(y){return S(y)===o},Pe.isSuspense=function(y){return S(y)===p},Pe.isSuspenseList=function(y){return S(y)===h},Pe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===i||y===o||y===p||y===h||y===E||typeof y=="object"&&y!==null&&(y.$$typeof===x||y.$$typeof===f||y.$$typeof===a||y.$$typeof===l||y.$$typeof===d||y.$$typeof===g||y.getModuleId!==void 0)},Pe.typeOf=S,Pe}var Me={};/**
|
|
73
73
|
* @license React
|
|
74
74
|
* react-is.development.js
|
|
75
75
|
*
|
|
@@ -77,16 +77,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the MIT license found in the
|
|
79
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(
|
|
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,
|
|
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,S=!1,y=!1,j=!1,C=!1,P;P=Symbol.for("react.module.reference");function I(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===i||C||W===o||W===p||W===h||j||W===E||g||S||y||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 w(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,M=d,A=n,N=x,D=f,H=r,U=i,v=o,k=p,B=h,L=!1,V=!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 V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function _(W){return w(W)===l}function Y(W){return w(W)===a}function ee(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function oe(W){return w(W)===d}function ne(W){return w(W)===n}function fe(W){return w(W)===x}function $(W){return w(W)===f}function K(W){return w(W)===r}function Z(W){return w(W)===i}function X(W){return w(W)===o}function O(W){return w(W)===p}function G(W){return w(W)===h}Me.ContextConsumer=m,Me.ContextProvider=R,Me.Element=T,Me.ForwardRef=M,Me.Fragment=A,Me.Lazy=N,Me.Memo=D,Me.Portal=H,Me.Profiler=U,Me.StrictMode=v,Me.Suspense=k,Me.SuspenseList=B,Me.isAsyncMode=Q,Me.isConcurrentMode=z,Me.isContextConsumer=_,Me.isContextProvider=Y,Me.isElement=ee,Me.isForwardRef=oe,Me.isFragment=ne,Me.isLazy=fe,Me.isMemo=$,Me.isPortal=K,Me.isProfiler=Z,Me.isStrictMode=X,Me.isSuspense=O,Me.isSuspenseList=G,Me.isValidElementType=I,Me.typeOf=w})()),Me}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=b.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):Ee(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]})})},Uo=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=b.createContext(null);function Fp(t){var r=t.children,n=t.onBatchResize,o=b.useRef(0),i=b.useRef([]),a=b.useContext(fs),l=b.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 b.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,$o=(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($o):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||$o}),Ic=Go(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 Go(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 Go(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 Go(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_=Go(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,Mc=(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){Mc.prototype[t]=function(){var r;return(r=Pc.get(this))[t].apply(r,arguments)}});var sf=(function(){return typeof $o.ResizeObserver<"u"?$o.ResizeObserver:Mc})(),er=new Map;function Bc(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(Bc);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 zo(t){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zo(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&&(Ee(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=zo(t);if(r){var i=zo(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})(b.Component);function pf(t,r){var n=t.children,o=t.disabled,i=b.useRef(null),a=b.useRef(null),l=b.useContext(fs),c=typeof n=="function",d=c?n(i):n,p=b.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!c&&b.isValidElement(d)&&Uo(d),f=h?Fs(d):null,x=Ls(f,i),E=function(){var j;return Ro(i.current)||(i.current&&Ee(i.current)==="object"?Ro((j=i.current)===null||j===void 0?void 0:j.nativeElement):null)||Ro(a.current)};b.useImperativeHandle(r,function(){return E()});var g=b.useRef(t);g.current=t;var S=b.useCallback(function(y){var j=g.current,C=j.onResize,P=j.data,I=y.getBoundingClientRect(),w=I.width,m=I.height,R=y.offsetWidth,T=y.offsetHeight,M=Math.floor(w),A=Math.floor(m);if(p.current.width!==M||p.current.height!==A||p.current.offsetWidth!==R||p.current.offsetHeight!==T){var N={width:M,height:A,offsetWidth:R,offsetHeight:T};p.current=N;var D=R===Math.round(w)?w:R,H=T===Math.round(m)?m:T,U=re(re({},N),{},{offsetWidth:D,offsetHeight:H});l?.(U,y,P),C&&Promise.resolve().then(function(){C(U,y)})}},[]);return b.useEffect(function(){var y=E();return y&&!o&&af(y,S),function(){return lf(y,S)}},[i.current,o]),b.createElement(uf,{ref:a},h?b.cloneElement(d,{ref:x}):d)}var Dc=b.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]:Bn(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 b.createElement(Dc,nt({},t,{key:l,ref:a===0?r:void 0}),i)})}var Jr=b.forwardRef(hf);process.env.NODE_ENV!=="production"&&(Jr.displayName="ResizeObserver");Jr.Collection=Fp;var za=process.env.NODE_ENV!=="test"&>()?b.useLayoutEffect:b.useEffect,Ge=function(r,n){var o=b.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=b.useRef();r.current=t;var n=b.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=b.useRef(!1),n=b.useState(t),o=le(n,2),i=o[0],a=o[1];b.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]),S=le(g,2),y=S[0],j=S[1];La(function(){var P=y[0];p!==P&&E(p,P)},[y]),La(function(){Ri(i)||h(i)},[i]);var C=wt(function(P,I){h(P,I),j([f],I)});return[x,C]}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(gt()&&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&&Ee(a)==="object"&&Ee(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),ae(this,"instanceId",void 0),ae(this,"cache",new Map),ae(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=b.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),ae(this,"cache",void 0),ae(this,"keys",void 0),ae(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})();ae(Hs,"MAX_CACHE_SIZE",20);ae(Hs,"MAX_CACHE_OFFSET",5);var Ha=0,$c=(function(){function t(r){kt(this,t),ae(this,"derivatives",void 0),ae(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&&Ee(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=gt();function $e(t){return typeof t=="number"?"".concat(t,"px"):t}var To=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=To(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({},b),Ua=Rf.useInsertionEffect,Tf=function(r,n,o){b.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({},b),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 b.useEffect(function(){return o=!1,function(){o=!0,n.length&&n.forEach(function(a){return a()})}},r),i},Mf=function(){return function(r){r()}},Bf=typeof If<"u"?Pf:Mf;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=b.useContext(Kn),l=a.cache,c=[t].concat(at(r)),d=ms(c),p=Bf([d]),h=Df(),f=function(S){l.opUpdate(d,function(y){var j=y||[void 0,void 0],C=le(j,2),P=C[0],I=P===void 0?0:P,w=C[1],m=w;process.env.NODE_ENV!=="production"&&w&&h&&(o?.(m,h),m=null);var R=m||n(),T=[I,R];return S?S(T):T})};b.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(S){var y=le(S,2),j=y[0],C=y[1];return g&&j===0&&i?.(E),[j+1,C]}),function(){l.opUpdate(d,function(S){var y=S||[],j=le(y,2),C=j[0],P=C===void 0?0:C,I=j[1],w=P-1;return w===0?(p(function(){(g||!l.opGet(d))&&o?.(I,!1)}),null):[P-1,I]})}},[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),S=En(p),y=x?En(x):"",j=Vs(Wf,[c,t.id,g,S,y],function(){var C,P=f?f(E,p,t):Vf(E,p,t,h),I=re({},P),w="";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],w=R[1]}var T=Wa(P,c);P._tokenKey=T,I._tokenKey=Wa(I,c);var M=(C=x?.key)!==null&&C!==void 0?C:T;P._themeKey=M,zf(M);var A="".concat(_f,"-").concat(Dn(T));return P._hashId=A,[P,A,I,w,x?.key||""]},function(C){Hf(C[0]._themeKey,i)},function(C){var P=le(C,4),I=P[0],w=P[3];if(x&&w){var m=tr(w,Dn("css-variables-".concat(I._themeKey)),{mark:Wt,prepend:"queue",attachTo:a,priority:-999});m[mr]=i,m.setAttribute(An,I._themeKey)}});return j}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 Eo(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 Ko=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:Ko,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,Ko--),Je}function $t(){return Je=Et<Wc?Fr(en,Et++):0,Gr++,Je===10&&(Gr=1,Ko++),Je}function xr(){return Fr(en,Et)}function ko(){return Et}function Yo(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 Ko=Gr=1,Wc=Vt(en=t),Et=0,[]}function rh(t){return en="",t}function ki(t){return Vc(Yo(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 Yo(t,ko()+(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"/*"+Yo(r,Et-1)+"*"+Ws(t===47?t:$t())}function sh(t){for(;!$n(xr());)$t();return Yo(t,Et)}function ah(t){return rh(Io("",null,null,null,[""],t=th(t),0,[0],t))}function Io(t,r,n,o,i,a,l,c,d){for(var p=0,h=0,f=l,x=0,E=0,g=0,S=1,y=1,j=1,C=0,P="",I=i,w=a,m=o,R=P;y;)switch(g=C,C=$t()){case 40:if(g!=108&&Fr(R,f-1)==58){Qf(R+=Eo(ki(C),"&","&\f"),"&\f",Hc(p?c[p-1]:0))!=-1&&(j=-1);break}case 34:case 39:case 91:R+=ki(C);break;case 9:case 10:case 13:case 32:R+=nh(g);break;case 92:R+=oh(ko()-1,7);continue;case 47:switch(xr()){case 42:case 47:ho(lh(ih($t(),ko()),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*S:c[p++]=Vt(R)*j;case 125*S:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+h:j==-1&&(R=Eo(R,/\f/g,"")),E>0&&(Vt(R)-f||S===0&&g===47)&&ho(E>32?Ka(R+";",o,n,f-1,d):Ka(Eo(R," ","")+";",o,n,f-2,d),d);break;case 59:R+=";";default:if(ho(m=Ga(R,r,n,p,h,i,c,P,I=[],w=[],f,a),a),C===123)if(h===0)Io(R,r,m,m,I,a,f,c,w);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?Io(t,m,m,o&&ho(Ga(t,m,m,0,0,i,c,P,i,I=[],f,w),w),i,w,f,c,o?I:w):Io(R,m,m,m,[""],w,0,c,w)}}p=h=E=0,S=j=1,P=R="",f=l;break;case 58:f=1+Vt(R),E=g;default:if(S<1){if(C==123)--S;else if(C==125&&S++==0&&eh()==125)continue}switch(R+=Ws(C),C*S){case 38:j=h>0?1:(R+="\f",-1);break;case 44:c[p++]=(Vt(R)-1)*j,j=1;break;case 64:xr()===45&&(R+=ki($t())),x=xr(),h=f=Vt(P=R+=sh(ko())),C++;break;case 45:g===45&&Vt(R)==2&&(S=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),S=0,y=0,j=0;S<o;++S)for(var C=0,P=Ur(t,x+1,x=Hc(y=l[S])),I=t;C<g;++C)(I=Vc(y>0?E[C]+" "+P:Eo(P,/&\f/g,E[C])))&&(d[j++]=I);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={},gt())){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&>())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 Ee(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,S="",y={};function j(I){var w=I.getName(c);if(!y[w]){var m=t(I.style,n,{root:!1,parentSelectors:l}),R=le(m,1),T=R[0];y[w]="@keyframes ".concat(I.getName(c)).concat(T)}}function C(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return I.forEach(function(m){Array.isArray(m)?C(m,w):m&&w.push(m)}),w}var P=C(Array.isArray(r)?r:[r]);return P.forEach(function(I){var w=typeof I=="string"&&!i?{}:I;if(typeof w=="string")S+="".concat(w,`
|
|
81
|
+
`);else if(w._keyframe)j(w);else{var m=x.reduce(function(R,T){var M;return(T==null||(M=T.visit)===null||M===void 0?void 0:M.call(T,R))||R},w);Object.keys(m).forEach(function(R){var T=m[R];if(Ee(T)==="object"&&T&&(R!=="animationName"||!T._keyframe)&&!gh(T)){var M=!1,A=R.trim(),N=!1;(i||a)&&c?A.startsWith("@")?M=!0:A==="&"?A=qa("",c,h):A=qa(R,c,h):i&&!c&&(A==="&"||A==="")&&(A="",N=!0);var D=t(T,n,{root:N,injectHash:M,parentSelectors:[].concat(at(l),[A])}),H=le(D,2),U=H[0],v=H[1];y=re(re({},y),v),S+="".concat(A).concat(U)}else{let L=function(V,Q){process.env.NODE_ENV!=="production"&&(Ee(T)!=="object"||!(T!=null&&T[Yc]))&&[dh,uh].concat(at(g)).forEach(function(Y){return Y(V,Q,{path:p,hashId:c,parentSelectors:l})});var z=V.replace(/[A-Z]/g,function(Y){return"-".concat(Y.toLowerCase())}),_=Q;!Gf[V]&&typeof _=="number"&&_!==0&&(_="".concat(_,"px")),V==="animationName"&&Q!==null&&Q!==void 0&&Q._keyframe&&(j(Q),_=Q.getName(c)),S+="".concat(z,":").concat(_,";")};var k,B=(k=T?.value)!==null&&k!==void 0?k:T;Ee(T)==="object"&&T!==null&&T!==void 0&&T[qc]&&Array.isArray(B)?B.forEach(function(V){L(R,V)}):L(R,B)}})}}),i?d&&(S&&(S="@layer ".concat(d.name," {").concat(S,"}")),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map(function(I){return"@layer ".concat(I,", ").concat(d.name,";")}).join(`
|
|
82
|
+
`))):S="{".concat(S,"}"),[S,y]};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=b.useContext(Kn),f=h.autoClear,x=h.mock,E=h.defaultCache,g=h.hashPriority,S=h.container,y=h.ssrInline,j=h.transformers,C=h.linters,P=h.cache,I=h.layer,w=n._tokenKey,m=[w];I&&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 H=m.join("|");if(fh(H)){var U=hh(H),v=le(U,2),k=v[0],B=v[1];if(k)return[k,w,B,{},c,p]}var L=r(),V=mh(L,{hashId:i,hashPriority:g,layer:I?a:void 0,path:o.join("-"),transformers:j,linters:C}),Q=le(V,2),z=Q[0],_=Q[1],Y=Ii(z),ee=Xc(m,Y);return[Y,w,ee,_,c,p]},function(H,U){var v=le(H,3),k=v[2];(U||f)&&vs&&Mn(k,{mark:Wt,attachTo:S})},function(H){var U=le(H,4),v=U[0],k=U[2],B=U[3];if(R&&v!==Gc){var L={mark:Wt,prepend:I?!1:"queue",attachTo:S,priority:p},V=typeof l=="function"?l():l;V&&(L.csp={nonce:V});var Q=[],z=[];Object.keys(B).forEach(function(Y){Y.startsWith("@layer")?Q.push(Y):z.push(Y)}),Q.forEach(function(Y){tr(Ii(B[Y]),"_layer-".concat(Y),re(re({},L),{},{prepend:!0}))});var _=tr(v,k,L);_[mr]=P.instanceId,_.setAttribute(An,w),process.env.NODE_ENV!=="production"&&_.setAttribute(yf,m.join("|")),z.forEach(function(Y){tr(Ii(B[Y]),"_effect-".concat(Y),L)})}}),M=le(T,3),A=M[0],N=M[1],D=M[2];return function(H){var U;return!y||R||!E?U=b.createElement(xh,null):U=b.createElement("style",nt({},ae(ae({},An,N),Wt,D),{dangerouslySetInnerHTML:{__html:A}})),b.createElement(b.Fragment,null,U,H)}}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]),S=Vs(yh,g,function(){var y=n(),j=_c(y,o,{prefix:i,unitless:a,ignore:l,scope:p}),C=le(j,2),P=C[0],I=C[1],w=Xc(g,I);return[P,I,w,o]},function(y){var j=le(y,3),C=j[2];vs&&Mn(C,{mark:Wt,attachTo:x})},function(y){var j=le(y,3),C=j[1],P=j[2];if(C){var I=tr(C,P,{mark:Wt,prepend:"queue",attachTo:x,priority:-999});I[mr]=f,I.setAttribute(An,o)}});return S},Pt=(function(){function t(r,n){kt(this,t),ae(this,"name",void 0),ae(this,"style",void 0),ae(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 Ee(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||Ee(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=b.createContext({}),Gt=process.env.NODE_ENV!=="production"?t=>{const{strict:r}=b.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 Po=[];const Za=()=>Po.reduce((t,r)=>Object.assign(Object.assign({},t),r),Kr.Modal);function Ph(t){if(t){const r=Object.assign({},t);return Po.push(r),Za(),()=>{Po=Po.filter(n=>n!==r),Za()}}Object.assign({},Kr.Modal)}const Gs=u.createContext(void 0),Mh=(t,r)=>{const n=b.useContext(Gs),o=b.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=b.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")}b.useEffect(()=>Ph(r?.Modal),[r]);const i=b.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return b.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
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
|
|
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 Bh(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),S=n(d,p),y=t.colorLink||t.colorInfo,j=r(y),C=new rt(E[1]).mix(new rt(E[3]),50).toHexString();return Object.assign(Object.assign({},S),{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:C,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:j[4],colorLink:j[6],colorLinkActive:j[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),Bh(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=b.createContext({getPrefixCls:Wh,iconPrefixCls:Ks}),Ja={};function qo(t){const r=b.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
85
|
:root {
|
|
86
86
|
${Object.keys(n).map(l=>`--${t}-${l}: ${n[l]};`).join(`
|
|
87
87
|
`)}
|
|
88
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:`
|
|
89
|
+
`.trim()}function Kh(t,r){const n=Gh(t,r);gt()?tr(n,`${Uh}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Yn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const zn=b.createContext(!1),Yh=({children:t,disabled:r})=>{const n=b.useContext(zn);return b.createElement(zn.Provider,{value:r??n},t)},Yr=b.createContext(void 0),qh=({children:t,size:r})=>{const n=b.useContext(Yr);return b.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 Mi(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),ae(Tn(a),"result",""),ae(Tn(a),"unitlessCssVar",void 0),ae(Tn(a),"lowPriority",void 0);var l=Ee(o);return a.unitlessCssVar=i,o instanceof n?a.result="(".concat(o.result,")"):l==="number"?a.result=Mi(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(Mi(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(Mi(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),ae(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(Ee(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 $e(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 $e(a)}).join(","),")")}}}var og=1e3*60*10,ig=(function(){function t(){kt(this,t),ae(this,"map",new Map),ae(this,"objectIDMap",new WeakMap),ae(this,"nextID",0),ae(this,"lastAccessBeat",new Map),ae(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&&Ee(a)==="object"?"obj_".concat(o.getObjectID(a)):"".concat(Ee(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,S){var y=Array.isArray(x)?x[0]:x;function j(T){return"".concat(String(y)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var C=S?.unitless||{},P=typeof c=="function"?c(x):{},I=re(re({},P),{},ae({},j("zIndexPopup"),!0));Object.keys(C).forEach(function(T){I[j(T)]=C[T]});var w=re(re({},S),{},{unitless:I,prefixToken:j}),m=h(x,E,g,w),R=p(y,g,w);return function(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,A=m(T,M),N=le(A,2),D=N[1],H=R(M),U=le(H,2),v=U[0],k=U[1];return[v,D,k]}}function p(x,E,g){var S=g.unitless,y=g.injectStyle,j=y===void 0?!0:y,C=g.prefixToken,P=g.ignore,I=function(R){var T=R.rootCls,M=R.cssVar,A=M===void 0?{}:M,N=o(),D=N.realToken;return bh({path:[x],prefix:A.prefix,key:A.key,unitless:S,ignore:P,token:D,scope:T},function(){var H=nl(x,D,E),U=tl(x,D,H,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(H).forEach(function(v){U[C(v)]=U[v],delete U[v]}),U}),null},w=function(R){var T=o(),M=T.cssVar;return[function(A){return j&&M?u.createElement(u.Fragment,null,u.createElement(I,{rootCls:R,cssVar:M,component:x}),A):A},M?.key]};return w}function h(x,E,g){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(x)?x:[x,x],j=le(y,1),C=j[0],P=y.join("-"),I=t.layer||{name:"antd"};return function(w){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,R=o(),T=R.theme,M=R.realToken,A=R.hashId,N=R.token,D=R.cssVar,H=i(),U=H.rootPrefixCls,v=H.iconPrefixCls,k=n(),B=D?"css":"js",L=sg(function(){var ee=new Set;return D&&Object.keys(S.unitless||{}).forEach(function(oe){ee.add(To(oe,D.prefix)),ee.add(To(oe,el(C,D.prefix)))}),eg(B,ee)},[B,C,D?.prefix]),V=ng(B),Q=V.max,z=V.min,_={theme:T,token:N,hashId:A,nonce:function(){return k.nonce},clientOnly:S.clientOnly,layer:I,order:S.order||-999};typeof a=="function"&&ws(re(re({},_),{},{clientOnly:!1,path:["Shared",U]}),function(){return a(N,{prefix:{rootPrefixCls:U,iconPrefixCls:v},csp:k})});var Y=ws(re(re({},_),{},{path:[P,w,v]}),function(){if(S.injectStyle===!1)return[];var ee=rg(N),oe=ee.token,ne=ee.flush,fe=nl(C,M,g),$=".".concat(w),K=tl(C,M,fe,{deprecatedTokens:S.deprecatedTokens});D&&fe&&Ee(fe)==="object"&&Object.keys(fe).forEach(function(G){fe[G]="var(".concat(To(G,el(C,D.prefix)),")")});var Z=ir(oe,{componentCls:$,prefixCls:w,iconCls:".".concat(v),antCls:".".concat(U),calc:L,max:Q,min:z},D?fe:K),X=E(Z,{hashId:A,prefixCls:w,rootPrefixCls:U,iconPrefixCls:v});ne(C,K);var O=typeof l=="function"?l(Z,w,m,S.resetFont):null;return[S.resetStyle===!1?null:O,X]});return[Y,A]}}function f(x,E,g){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=h(x,E,g,re({resetStyle:!1,order:-998},S)),j=function(P){var I=P.prefixCls,w=P.rootCls,m=w===void 0?I:w;return y(I,m),null};return process.env.NODE_ENV!=="production"&&(j.displayName="SubStyle_".concat(String(Array.isArray(x)?x.join("."):x))),j}return{genStyleHooks:d,genSubStyleComponent:f,genComponentStyleHook:h}}const Lo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],cg="5.27.6";function Bi(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(Bi(h)&&Bi(f)&&Bi(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
90
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
91
91
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
92
92
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -118,15 +118,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
118
118
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
119
119
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
120
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(`
|
|
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:`${$e(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)),{"&:hover":{color:t.colorLinkHover,textDecoration:t.linkHoverDecoration},"&:focus":{color:t.colorLinkHover,textDecoration:t.linkFocusDecoration},"&:active":{color:t.colorLinkActive,textDecoration:t.linkHoverDecoration}}),{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 Lo.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({},b),{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=b.createContext({});function Tg(t){var r=t.children,n=_t(t,Rg);return b.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})(b.Component);function kg(t){var r=b.useReducer(function(c){return c+1},0),n=le(r,2),o=n[1],i=b.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(gt(),typeof window<"u"?window:{}),xd={};if(gt()){var Mg=document.createElement("div");xd=Mg.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"),Bg=!!(yd&&bd),cl=yd||"animationend",dl=bd||"transitionend";function ul(t,r){if(!t)return null;if(Ee(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 b.useEffect(function(){return function(){n(r.current)}},[]),[o,n]});var Cd=gt()?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,Xo=new Map;function Sd(t){Xo.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)});Xo.set(o,l)}}return i(n),o};qr.cancel=function(t){var r=Xo.get(t);return Sd(t),jd(r)};process.env.NODE_ENV!=="production"&&(qr.ids=function(){return Xo});const Og=(function(){var t=b.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 b.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],S=n(a);S===Rd?l(g,!0):g&&p(function(y){function j(){y.isCanceled()||l(g,!0)}S===!0?j():Promise.resolve(S).then(j)})}},[t,a]),b.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,S=o.onAppearStart,y=o.onEnterStart,j=o.onLeaveStart,C=o.onAppearActive,P=o.onEnterActive,I=o.onLeaveActive,w=o.onAppearEnd,m=o.onEnterEnd,R=o.onLeaveEnd,T=o.onVisibleChanged,M=On(),A=le(M,2),N=A[0],D=A[1],H=kg(gr),U=le(H,2),v=U[0],k=U[1],B=On(null),L=le(B,2),V=L[0],Q=L[1],z=v(),_=u.useRef(!1),Y=u.useRef(null);function ee(){return n()}var oe=u.useRef(!1);function ne(){k(gr),Q(null,!0)}var fe=wt(function(we){var Re=v();if(Re!==gr){var ge=ee();if(!(we&&!we.deadline&&we.target!==ge)){var de=oe.current,je;Re===mo&&de?je=w?.(ge,we):Re===xo&&de?je=m?.(ge,we):Re===vo&&de&&(je=R?.(ge,we)),de&&je!==!1&&ne()}}}),$=Ng(fe),K=le($,1),Z=K[0],X=function(Re){switch(Re){case mo:return ae(ae(ae({},At,x),_r,S),zr,C);case xo:return ae(ae(ae({},At,E),_r,y),zr,P);case vo:return ae(ae(ae({},At,g),_r,j),zr,I);default:return{}}},O=b.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])?(k(Re),J()):k(gr),ce.current=r}},[r]),u.useEffect(function(){(z===mo&&!c||z===xo&&!a||z===vo&&!p)&&k(gr)},[c,a,p]),u.useEffect(function(){return function(){_.current=!1,clearTimeout(Y.current)}},[]);var pe=b.useRef(!1);u.useEffect(function(){N&&(pe.current=!0),N!==void 0&&z===gr&&((pe.current||N)&&T?.(N),pe.current=!0)},[N,z]);var ye=V;return O[At]&&te===_r&&(ye=re({transition:"none"},ye)),[z,te,ye,N??r]}function Lg(t){var r=t;Ee(t)==="object"&&(r=t.transitionSupport);function n(i,a){return!!(i.motionName&&r&&a!==!1)}var o=b.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,S=b.useContext(gd),y=S.motion,j=n(i,y),C=u.useRef(),P=u.useRef();function I(){try{return C.current instanceof HTMLElement?C.current:Ro(P.current)}catch{return null}}var w=zg(j,c,I,i),m=le(w,4),R=m[0],T=m[1],M=m[2],A=m[3],N=b.useRef(A);A&&(N.current=!0);var D=b.useCallback(function(L){C.current=L,zs(a,L)},[a]),H,U=re(re({},g),{},{visible:c});if(!f)H=null;else if(R===gr)A?H=f(re({},U),D):!p&&N.current&&E?H=f(re(re({},U),{},{className:E}),D):h||!p&&!E?H=f(re(re({},U),{},{style:{display:"none"}}),D):H=null;else{var v;T===At?v="prepare":Td(T)?v="active":T===_r&&(v="start");var k=ul(x,"".concat(R,"-").concat(v));H=f(re(re({},U),{},{className:ve(ul(x,R),ae(ae({},k,k&&v),x,typeof x=="string")),style:M}),D)}if(b.isValidElement(H)&&Uo(H)){var B=Fs(H);B||(H=b.cloneElement(H,{ref:D}))}return b.createElement(Eg,{ref:P},H)});return o.displayName="CSSMotion",o}const Ed=Lg(Bg),Es=b.createContext(!0);process.env.NODE_ENV!=="production"&&(Es.displayName="MotionCacheContext");function Fg(t){const r=b.useContext(Es),{children:n}=t,[,o]=tn(),{motion:i}=o,a=b.useRef(!1);return a.current||(a.current=r!==i),a.current?b.createElement(Es.Provider,{value:i},b.createElement(Tg,{motion:i},n)):n}const kd=b.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:S,legacyLocale:y,parentContext:j,iconPrefixCls:C,theme:P,componentDisabled:I,segmented:w,statistic:m,spin:R,calendar:T,carousel:M,cascader:A,collapse:N,typography:D,checkbox:H,descriptions:U,divider:v,drawer:k,skeleton:B,steps:L,image:V,layout:Q,list:z,mentions:_,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:$,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:ke,notification:et,tree:ze,colorPicker:Le,datePicker:Se,rangePicker:Fe,flex:Ue,wave:De,dropdown:Ce,warning:He,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:kr,variant:nn,inputNumber:Ir,treeSelect:Mt}=t,lt=b.useCallback((Ae,Qe)=>{const{prefixCls:ft}=t;if(Qe)return Qe;const dt=ft||j.getPrefixCls("");return Ae?`${dt}-${Ae}`:dt},[j.getPrefixCls,t.prefixCls]),Xe=C||j.iconPrefixCls||Ks,Yt=n||j.csp;bg(Xe,Yt);const ct=Sg(P,j.theme,{prefixCls:lt("")});process.env.NODE_ENV!=="production"&&(ks=ks||!!ct);const Ne={csp:Yt,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||y,direction:p,space:h,splitter:f,virtual:x,popupMatchSelectWidth:g??E,popupOverflow:S,getPrefixCls:lt,iconPrefixCls:Xe,theme:ct,segmented:w,statistic:m,spin:R,calendar:T,carousel:M,cascader:A,collapse:N,typography:D,checkbox:H,descriptions:U,divider:v,drawer:k,skeleton:B,steps:L,image:V,input:Z,textArea:X,layout:Q,list:z,mentions:_,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:$,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:ke,notification:et,tree:ze,colorPicker:Le,datePicker:Se,rangePicker:Fe,flex:Ue,wave:De,dropdown:Ce,warning:He,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:kr,variant:nn,inputNumber:Ir,treeSelect:Mt};process.env.NODE_ENV!=="production"&&Gt("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ie=Object.assign({},j);Object.keys(Ne).forEach(Ae=>{Ne[Ae]!==void 0&&(Ie[Ae]=Ne[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 ft=Object.keys(Ae),dt=Object.keys(Qe);return ft.length!==dt.length||ft.some(Lt=>Ae[Lt]!==Qe[Lt])}),{layer:zt}=b.useContext(Kn),mt=b.useMemo(()=>({prefixCls:Xe,csp:Yt,layer:zt?"antd":void 0}),[Xe,Yt,zt]);let Ke=b.createElement(b.Fragment,null,b.createElement(Hg,{dropdownMatchSelectWidth:E}),r);const sr=b.useMemo(()=>{var Ae,Qe,ft,dt;return Sh(((Ae=Kr.Form)===null||Ae===void 0?void 0:Ae.defaultValidateMessages)||{},((ft=(Qe=ot.locale)===null||Qe===void 0?void 0:Qe.Form)===null||ft===void 0?void 0:ft.defaultValidateMessages)||{},((dt=ot.form)===null||dt===void 0?void 0:dt.validateMessages)||{},l?.validateMessages||{})},[ot,l?.validateMessages]);Object.keys(sr).length>0&&(Ke=b.createElement(Th.Provider,{value:sr},Ke)),c&&(Ke=b.createElement(nd,{locale:c,_ANT_MARK__:rd},Ke)),Ke=b.createElement(Ds.Provider,{value:mt},Ke),d&&(Ke=b.createElement(qh,{size:d},Ke)),Ke=b.createElement(Fg,null,Ke);const qt=b.useMemo(()=>{const Ae=ct||{},{algorithm:Qe,token:ft,components:dt,cssVar:Lt}=Ae,Pr=Vg(Ae,["algorithm","token","components","cssVar"]),Bt=Qe&&(!Array.isArray(Qe)||Qe.length>0)?xs(Qe):id,jt={};Object.entries(dt||{}).forEach(([Nt,Mr])=>{const Ve=Object.assign({},Mr);"algorithm"in Ve&&(Ve.algorithm===!0?Ve.theme=Bt:(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),ft);return Object.assign(Object.assign({},Pr),{theme:Bt,token:Ft,components:jt,override:Object.assign({override:Ft},jt),cssVar:Lt})},[ct]);return P&&(Ke=b.createElement(sd.Provider,{value:qt},Ke)),ot.warning&&(Ke=b.createElement(ed.Provider,{value:ot.warning},Ke)),I!==void 0&&(Ke=b.createElement(Yh,{disabled:I},Ke)),b.createElement(rr.Provider,{value:ot},Ke)},rn=t=>{const r=b.useContext(rr),n=b.useContext(Gs);return b.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 b.createElement("div",{className:ve("".concat(n,"-content"),l),style:c},b.createElement("div",{className:ve("".concat(n,"-inner"),a),id:o,role:"tooltip",style:i},typeof r=="function"?r():r))}var Md=b.createContext(null),fl=[];function qg(t,r){var n=b.useState(function(){if(!gt())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=b.useRef(!1),l=b.useContext(Md),c=b.useState(fl),d=le(c,2),p=d[0],h=d[1],f=l||(a.current?void 0:function(g){h(function(S){var y=[g].concat(at(S));return y})});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
122
|
#`.concat(r,`::-webkit-scrollbar {
|
|
123
123
|
`).concat(h,`
|
|
124
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),
|
|
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),Mn(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=b.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
126
|
html body {
|
|
127
127
|
overflow-y: hidden;
|
|
128
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&<[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&<[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&<[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&<[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&<(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&>(!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)&>(!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{[`
|
|
129
|
+
}`),i)}else Mn(i);return function(){Mn(i)}},[r,i])}var tm=!1;function rm(t){return tm}var gl=function(r){return r===!1?!1:!gt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},Xs=b.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=b.useState(n),h=le(p,2),f=h[0],x=h[1],E=f||n;process.env.NODE_ENV!=="production"&&nr(gt()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),b.useEffect(function(){(c||n)&&x(n)},[n,c]);var g=b.useState(function(){return gl(i)}),S=le(g,2),y=S[0],j=S[1];b.useEffect(function(){var D=gl(i);j(D??null)});var C=qg(E&&!y,a),P=le(C,2),I=P[0],w=P[1],m=y??I;em(o&&n&>()&&(m===I||m===document.body));var R=null;if(d&&Uo(d)&&r){var T=d;R=T.ref}var M=Ls(R,r);if(!E||!gt()||y===void 0)return null;var A=m===!1||rm(),N=d;return r&&(N=b.cloneElement(d,{ref:M})),b.createElement(Md.Provider,{value:w},A?N:Mo.createPortal(N,m))});process.env.NODE_ENV!=="production"&&(Xs.displayName="Portal");function nm(){var t=re({},b);return t.useId}var ml=0,xl=nm();const Bd=xl?function(r){var n=xl();return r||(process.env.NODE_ENV==="test"?"test-id":n)}:function(r){var n=b.useState("ssr-id"),o=le(n,2),i=o[0],a=o[1];return b.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=b.useRef();if(!n||!n.points)return null;var E={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],S=n.points[1],y=g[0],j=g[1],C=S[0],P=S[1];y===C||!["t","b"].includes(y)?E.top=f:y==="t"?E.top=0:E.bottom=0,j===P||!["l","r"].includes(j)?E.left=p:j==="l"?E.left=0:E.right=0}return b.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?b.createElement(Ed,nt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var c=l.className;return b.createElement("div",{style:{zIndex:o},className:ve("".concat(r,"-mask"),c)})}):null}var Nd=b.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=b.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,S=t.align,y=t.motion,j=t.maskMotion,C=t.forceRender,P=t.getPopupContainer,I=t.autoDestroy,w=t.portal,m=t.zIndex,R=t.onMouseEnter,T=t.onMouseLeave,M=t.onPointerEnter,A=t.onPointerDownCapture,N=t.ready,D=t.offsetX,H=t.offsetY,U=t.offsetR,v=t.offsetB,k=t.onAlign,B=t.onPrepare,L=t.stretch,V=t.targetWidth,Q=t.targetHeight,z=typeof n=="function"?n():n,_=d||p,Y=P?.length>0,ee=b.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 $="auto",K={left:"-1000vw",top:"-1000vh",right:$,bottom:$};if(N||!d){var Z,X=S.points,O=S.dynamicInset||((Z=S._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=$):(K.left=D,K.right=$),W?(K.bottom=v,K.top=$):(K.top=H,K.bottom=$)}var J={};return L&&(L.includes("height")&&Q?J.height=Q:L.includes("minHeight")&&Q&&(J.minHeight=Q),L.includes("width")&&V?J.width=V:L.includes("minWidth")&&V&&(J.minWidth=V)),d||(J.pointerEvents="none"),b.createElement(w,{open:C||_,getContainer:P&&function(){return P(l)},autoDestroy:I},b.createElement(sm,{prefixCls:i,open:d,zIndex:m,mask:x,motion:j}),b.createElement(Jr,{onResize:k,disabled:!d},function(te){return b.createElement(Ed,nt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:B,onEnterPrepare:B,visible:d,onVisibleChanged:function(ce){var pe;y==null||(pe=y.onVisibleChanged)===null||pe===void 0||pe.call(y,ce),c(ce)}}),function(ie,ce){var pe=ie.className,ye=ie.style,we=ve(i,pe,o);return b.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:M,onClick:f,onPointerDownCapture:A},E&&b.createElement(im,{prefixCls:i,arrow:E,arrowPos:g,align:S}),b.createElement(Nd,{cache:!d&&!h},z))})}))});process.env.NODE_ENV!=="production"&&(Od.displayName="Popup");var Dd=b.forwardRef(function(t,r){var n=t.children,o=t.getTriggerDOMNode,i=Uo(n),a=b.useCallback(function(c){zs(r,o?o(c):c)},[o]),l=Ls(a,Fs(n));return i?b.cloneElement(n,{ref:l}):n});process.env.NODE_ENV!=="production"&&(Dd.displayName="TriggerWrapper");var vl=b.createContext(null);function yl(t){return t?Array.isArray(t)?t:[t]:[]}function am(t,r,n,o){return b.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,S=o.clientWidth,y=bn(c),j=bn(d),C=bn(p),P=bn(h),I=Ln(Math.round(f.width/g*1e3)/1e3),w=Ln(Math.round(f.height/x*1e3)/1e3),m=(g-S-C-P)*I,R=(x-E-y-j)*w,T=y*w,M=j*w,A=C*I,N=P*I,D=0,H=0;if(a==="clip"){var U=bn(l);D=U*I,H=U*w}var v=f.x+A-D,k=f.y+T-H,B=v+f.width+2*D-A-N-m,L=k+f.height+2*H-T-M-R;n.left=Math.max(n.left,v),n.top=Math.max(n.top,k),n.right=Math.min(n.right,B),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=b.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=b.useRef(0),x=b.useMemo(function(){return r?Is(r):[]},[r]),E=b.useRef({}),g=function(){E.current={}};t||g();var S=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,ci=dn+W,di=ao+G,ui=Math.max(dn,dr.left),ue=Math.max(ao,dr.top),xe=Math.min(ci,dr.right),We=Math.min(di,dr.bottom);return Math.max(0,(xe-ui)*(We-ue))},Nr=function(){Bt=_.y+Ie,jt=Bt+G,Ft=_.x+Ne,Nt=Ft+W};var C,P,I,w,m=r,R=m.ownerDocument,T=Xn(m),M=T.getComputedStyle(m),A=M.position,N=m.style.left,D=m.style.top,H=m.style.right,U=m.style.bottom,v=m.style.overflow,k=re(re({},i[o]),a),B=R.createElement("div");(C=m.parentElement)===null||C===void 0||C.appendChild(B),B.style.left="".concat(m.offsetLeft,"px"),B.style.top="".concat(m.offsetTop,"px"),B.style.position=A,B.style.height="".concat(m.offsetHeight,"px"),B.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 V,Q,z=n.getBoundingClientRect();z.x=(V=z.x)!==null&&V!==void 0?V: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=(I=_.y)!==null&&I!==void 0?I:_.top;var ne=R.documentElement,fe=ne.clientWidth,$=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:$},ce={left:-O,top:-X,right:K-O,bottom:Z-X},pe=k.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,ke=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=N,m.style.top=D,m.style.right=H,m.style.bottom=U,m.style.overflow=v,(w=m.parentElement)===null||w===void 0||w.removeChild(B);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=k.offset,Fe=k.targetOffset,Ue=jl(_,Se),De=le(Ue,2),Ce=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=k.points||[],kr=le(vr,2),nn=kr[0],Ir=kr[1],Mt=Sl(Ir),lt=Sl(nn),Xe=Dr(L,Mt),Yt=Dr(_,lt),ct=re({},k),Ne=Xe.x-Yt.x+Ce,Ie=Xe.y-Yt.y+He,ot=St(Ne,Ie),zt=St(Ne,Ie,de),mt=Dr(L,["t","l"]),Ke=Dr(_,["t","l"]),sr=Dr(L,["b","r"]),qt=Dr(_,["b","r"]),Ae=k.overflow||{},Qe=Ae.adjustX,ft=Ae.adjustY,dt=Ae.shiftX,Lt=Ae.shiftY,Pr=function(Xt){return typeof Xt=="boolean"?Xt:Xt>=0},Bt,jt,Ft,Nt;Nr();var Mr=Pr(ft),Ve=lt[0]===Mt[0];if(Mr&<[0]==="t"&&(jt>ke.bottom||E.current.bt)){var yr=Ie;Ve?yr-=G-J:yr=mt.y-qt.y-He;var Zn=St(Ne,yr),Zo=St(Ne,yr,de);Zn>ot||Zn===ot&&(!Re||Zo>=zt)?(E.current.bt=!0,Ie=yr,He=-He,ct.points=[ur(lt,0),ur(Mt,0)]):E.current.bt=!1}if(Mr&<[0]==="b"&&(Bt<ke.top||E.current.tb)){var br=Ie;Ve?br+=G-J:br=sr.y-Ke.y-He;var Jn=St(Ne,br),Jo=St(Ne,br,de);Jn>ot||Jn===ot&&(!Re||Jo>=zt)?(E.current.tb=!0,Ie=br,He=-He,ct.points=[ur(lt,0),ur(Mt,0)]):E.current.tb=!1}var eo=Pr(Qe),to=lt[1]===Mt[1];if(eo&<[1]==="l"&&(Nt>ke.right||E.current.rl)){var Cr=Ne;to?Cr-=W-te:Cr=mt.x-qt.x-Ce;var wr=St(Cr,Ie),on=St(Cr,Ie,de);wr>ot||wr===ot&&(!Re||on>=zt)?(E.current.rl=!0,Ne=Cr,Ce=-Ce,ct.points=[ur(lt,1),ur(Mt,1)]):E.current.rl=!1}if(eo&<[1]==="r"&&(Ft<ke.left||E.current.lr)){var jr=Ne;to?jr+=W-te:jr=sr.x-Ke.x-Ce;var sn=St(jr,Ie),Br=St(jr,Ie,de);sn>ot||sn===ot&&(!Re||Br>=zt)?(E.current.lr=!0,Ne=jr,Ce=-Ce,ct.points=[ur(lt,1),ur(Mt,1)]):E.current.lr=!1}Nr();var Ot=dt===!0?0:dt;typeof Ot=="number"&&(Ft<de.left&&(Ne-=Ft-de.left-Ce,L.x+te<de.left+Ot&&(Ne+=L.x-de.left+te-Ot)),Nt>de.right&&(Ne-=Nt-de.right-Ce,L.x>de.right-Ot&&(Ne+=L.x-de.right+Ot)));var ar=Lt===!0?0:Lt;typeof ar=="number"&&(Bt<de.top&&(Ie-=Bt-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+Ne,cr=lr+W,an=_.y+Ie,ei=an+G,ro=L.x,no=ro+te,oo=L.y,ti=oo+J,ri=Math.max(lr,ro),io=Math.min(cr,no),ni=(ri+io)/2,oi=ni-lr,so=Math.max(an,oo),ii=Math.min(ei,ti),si=(so+ii)/2,ai=si-an;l?.(r,ct);var Ht=et.right-_.x-(Ne+_.width),ln=et.bottom-_.y-(Ie+_.height);ze===1&&(Ne=Math.round(Ne),Ht=Math.round(Ht)),Le===1&&(Ie=Math.round(Ie),ln=Math.round(ln));var li={ready:!0,offsetX:Ne/ze,offsetY:Ie/Le,offsetR:Ht/ze,offsetB:ln/Le,arrowX:oi/ze,arrowY:ai/Le,scaleX:ze,scaleY:Le,align:ct};h(li)}}),y=function(){f.current+=1;var P=f.current;Promise.resolve().then(function(){f.current===P&&S()})},j=function(){h(function(P){return re(re({},P),{},{ready:!1})})};return Ge(j,[o]),Ge(function(){t||j()},[t]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,y]}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=b.useRef(t);d.current=t;var p=b.useRef(!1);b.useEffect(function(){if(r&&o&&(!i||a)){var f=function(){p.current=!1},x=function(I){var w;d.current&&!l(((w=I.composedPath)===null||w===void 0||(w=w.call(I))===null||w===void 0?void 0:w[0])||I.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=Ao(n);if(g&&(g.addEventListener("mousedown",x,!0),g.addEventListener("contextmenu",x,!0)),process.env.NODE_ENV!=="production"){var S,y,j=n==null||(S=n.getRootNode)===null||S===void 0?void 0:S.call(n),C=(y=o.getRootNode)===null||y===void 0?void 0:y.call(o);Hr(j===C,"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=b.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,S=n.mouseEnterDelay,y=n.mouseLeaveDelay,j=y===void 0?.1:y,C=n.focusDelay,P=n.blurDelay,I=n.mask,w=n.maskClosable,m=w===void 0?!0:w,R=n.getPopupContainer,T=n.forceRender,M=n.autoDestroy,A=n.destroyPopupOnHide,N=n.popup,D=n.popupClassName,H=n.popupStyle,U=n.popupPlacement,v=n.builtinPlacements,k=v===void 0?{}:v,B=n.popupAlign,L=n.zIndex,V=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,$=n.popupTransitionName,K=n.popupAnimation,Z=n.maskTransitionName,X=n.maskAnimation,O=n.className,G=n.getTriggerDOMNode,W=_t(n,hm),J=M||A||!1,te=b.useState(!1),ie=le(te,2),ce=ie[0],pe=ie[1];Ge(function(){pe(om())},[]);var ye=b.useRef({}),we=b.useContext(vl),Re=b.useMemo(function(){return{registerSubPopup:function(xe,We){ye.current[xe]=We,we?.registerSubPopup(xe,We)}}},[we]),ge=Bd(),de=b.useState(null),je=le(de,2),ke=je[0],et=je[1],ze=b.useRef(null),Le=wt(function(ue){ze.current=ue,Nn(ue)&&ke!==ue&&et(ue),we?.registerSubPopup(ge,ue)}),Se=b.useState(null),Fe=le(Se,2),Ue=Fe[0],De=Fe[1],Ce=b.useRef(null),He=wt(function(ue){Nn(ue)&&Ue!==ue&&(De(ue),Ce.current=ue)}),he=b.Children.only(l),me=he?.props||{},qe={},Kt=wt(function(ue){var xe,We,tt=Ue;return tt?.contains(ue)||((xe=Ao(tt))===null||xe===void 0?void 0:xe.host)===ue||ue===tt||ke?.contains(ue)||((We=Ao(ke))===null||We===void 0?void 0:We.host)===ue||ue===ke||Object.values(ye.current).some(function(Ye){return Ye?.contains(ue)||ue===Ye})}),vr=bl(a,ne,K,$),kr=bl(a,fe,X,Z),nn=b.useState(x||!1),Ir=le(nn,2),Mt=Ir[0],lt=Ir[1],Xe=f??Mt,Yt=wt(function(ue){f===void 0&<(ue)});Ge(function(){lt(f||!1)},[f]);var ct=b.useRef(Xe);ct.current=Xe;var Ne=b.useRef([]);Ne.current=[];var Ie=wt(function(ue){var xe;Yt(ue),((xe=Ne.current[Ne.current.length-1])!==null&&xe!==void 0?xe:Xe)!==ue&&(Ne.current.push(ue),E?.(ue))}),ot=b.useRef(),zt=function(){clearTimeout(ot.current)},mt=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)};b.useEffect(function(){return zt},[]);var Ke=b.useState(!1),sr=le(Ke,2),qt=sr[0],Ae=sr[1];Ge(function(ue){(!ue||Xe)&&Ae(!0)},[Xe]);var Qe=b.useState(null),ft=le(Qe,2),dt=ft[0],Lt=ft[1],Pr=b.useState(null),Bt=le(Pr,2),jt=Bt[0],Ft=Bt[1],Nt=function(xe){Ft([xe.clientX,xe.clientY])},Mr=um(Xe,ke,_&&jt!==null?jt:Ue,U,k,B,ee),Ve=le(Mr,11),yr=Ve[0],Zn=Ve[1],Zo=Ve[2],br=Ve[3],Jn=Ve[4],Jo=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),Br=sn[0],Ot=sn[1],ar=Br.has("click"),lr=Ot.has("click")||Ot.has("contextMenu"),cr=wt(function(){qt||on()}),an=function(){ct.current&&_&&lr&&mt(!1)};pm(Xe,Ue,ke,cr,an),Ge(function(){cr()},[jt,U]),Ge(function(){Xe&&!(k!=null&&k[U])&&cr()},[JSON.stringify(B)]);var ei=b.useMemo(function(){var ue=dm(k,a,wr,_);return ve(ue,Q?.(wr))},[wr,Q,k,a,_]);b.useImperativeHandle(o,function(){return{nativeElement:Ce.current,popupElement:ze.current,forceAlign:cr}});var ro=b.useState(0),no=le(ro,2),oo=no[0],ti=no[1],ri=b.useState(0),io=le(ri,2),ni=io[0],oi=io[1],so=function(){if(V&&Ue){var xe=Ue.getBoundingClientRect();ti(xe.width),oi(xe.height)}},ii=function(){so(),cr()},si=function(xe){Ae(!1),on(),g?.(xe)},ai=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),mt(xe,We);for(var pi=arguments.length,na=new Array(pi>1?pi-1:0),co=1;co<pi;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?mt(!1):!ct.current&&ar&&(Nt(ue),mt(!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,ke,I,m,Kt,mt),li=Br.has("hover"),St=Ot.has("hover"),Nr,cn;li&&(Ht("onMouseEnter",!0,S,function(ue){Nt(ue)}),Ht("onPointerEnter",!0,S,function(ue){Nt(ue)}),Nr=function(xe){(Xe||qt)&&ke!==null&&ke!==void 0&&ke.contains(xe.target)&&mt(!0,S)},_&&(qe.onMouseMove=function(ue){var xe;(xe=me.onMouseMove)===null||xe===void 0||xe.call(me,ue)})),St&&(Ht("onMouseLeave",!1,j),Ht("onPointerLeave",!1,j),cn=function(){mt(!1,j)}),Br.has("focus")&&Ht("onFocus",!0,C),Ot.has("focus")&&Ht("onBlur",!1,P),Br.has("contextMenu")&&(qe.onContextMenu=function(ue){var xe;ct.current&&Ot.has("contextMenu")?mt(!1):(Nt(ue),mt(!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=b.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 ci=b.cloneElement(he,re(re({},dr),dn)),di={x:Jo,y:eo},ui=oe?re({},oe!==!0?oe:{}):null;return b.createElement(b.Fragment,null,b.createElement(Jr,{disabled:!Xe,ref:He,onResize:ii},b.createElement(Dd,{getTriggerDOMNode:G},ci)),Xt.current&&b.createElement(vl.Provider,{value:Re},b.createElement(Od,{portal:t,ref:Le,prefixCls:a,popup:N,className:ve(D,ei),style:H,target:Ue,onMouseEnter:Nr,onMouseLeave:cn,onPointerEnter:Nr,zIndex:L,open:Xe,keepDom:qt,fresh:z,onClick:Y,onPointerDownCapture:ln,mask:I,motion:vr,maskMotion:kr,onVisibleChanged:si,onPrepare:ai,forceRender:T,autoDestroy:J,getPopupContainer:R,align:wr,arrow:ui,arrowPos:di,ready:yr,offsetX:Zn,offsetY:Zo,offsetR:br,offsetB:Jn,onAlign:cr,stretch:V,targetWidth:oo/to,targetHeight:ni/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,S=r.afterVisibleChange,y=r.transitionName,j=r.animation,C=r.motion,P=r.placement,I=P===void 0?"right":P,w=r.align,m=w===void 0?{}:w,R=r.destroyTooltipOnHide,T=R===void 0?!1:R,M=r.defaultVisible,A=r.getTooltipContainer,N=r.overlayInnerStyle,D=r.overlay,H=r.id,U=r.showArrow,v=U===void 0?!0:U,k=r.classNames,B=r.styles,L=_t(r,vm),V=Bd(H),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 b.createElement(Pd,{key:"content",prefixCls:x,id:V,bodyClassName:k?.body,overlayInnerStyle:re(re({},N),B?.body)},D)},Y=function(){var oe=b.Children.only(E),ne=oe?.props||{},fe=re(re({},ne),{},{"aria-describedby":D?V:null});return b.cloneElement(E,fe)};return b.createElement(mm,nt({popupClassName:ve(o,k?.root),prefixCls:x,popup:_,action:a,builtinPlacements:xm,popupPlacement:I,ref:Q,popupAlign:m,getPopupContainer:A,onPopupVisibleChange:g,afterPopupVisibleChange:S,popupTransitionName:y,popupAnimation:j,popupMotion:C,defaultPopupVisible:M,autoDestroy:T,mouseLeaveDelay:p,popupStyle:re(re({},h),B?.root),mouseEnterDelay:c,arrow:v},z),Y())};const bm=u.forwardRef(ym),Fn=b.createContext({});process.env.NODE_ENV!=="production"&&(Fn.displayName="FormItemInputContext");const Cm=({children:t,status:r,override:n})=>{const o=b.useContext(Fn),i=b.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 b.createElement(Fn.Provider,{value:i},t)},wm=b.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=b.createContext(null),_d=(t,r)=>{const n=b.useContext($d),o=b.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 b.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 Mm(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,S=2*i-a,y=l,j=i*Math.sqrt(2)+o*(Math.sqrt(2)-2),C=o*(Math.sqrt(2)-1),P=`polygon(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,I=`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 ${S} ${y} Z')`;return{arrowShadowWidth:j,arrowPath:I,arrowPolygon:P}}const Bm=(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 ${$e(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"},Bm(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% - ${$e(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% - ${$e(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
130
|
${a}${t}-enter,
|
|
131
131
|
${a}${t}-appear
|
|
132
132
|
`]:Object.assign(Object.assign({},Lm(o)),{animationPlayState:"paused"}),[`${a}${t}-leave`]:Object.assign(Object.assign({},Fm(o)),{animationPlayState:"paused"}),[`
|
|
@@ -135,7 +135,7 @@ html body {
|
|
|
135
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
136
|
${o}-enter,
|
|
137
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=`
|
|
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(),S=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:S,minHeight:d,padding:`${$e(t.calc(h).div(2).equal())} ${$e(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,(y,{darkColor:j})=>({[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:j},[`${n}-arrow`]:{"--antd-arrow-background-color":j}}}))),{"&-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})),Mm(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=Lo.map(t=>`${t}-inverse`);function ox(t,r=!0){return r?[].concat(at(nx),at(Lo)).includes(t):Lo.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 Qo{constructor(r){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(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 Qo)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 Qo)return r;if(r&&Ee(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})(Qo);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}=b.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),S=ve(h,f,d,`${d}-pure`,`${d}-placement-${o}`,n,x.className);return p(b.createElement("div",{className:S,style:E},b.createElement("div",{className:`${d}-arrow`}),b.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=b.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:S,overlay:y,builtinPlacements:j,arrowPointAtCenter:C=!1,autoAdjustOverflow:P=!0,getPopupContainer:I,placement:w="top",mouseEnterDelay:m=.1,mouseLeaveDelay:R=.1,overlayStyle:T,rootClassName:M,overlayClassName:A,styles:N,classNames:D}=t,H=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,[,v]=tn(),{getPopupContainer:k,getPrefixCls:B,direction:L,className:V,style:Q,classNames:z,styles:_}=qo("tooltip"),Y=Gt("Tooltip"),ee=b.useRef(null),oe=()=>{var Se;(Se=ee.current)===null||Se===void 0||Se.forceAlign()};b.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}),$=!S&&!y&&S!==0,K=Se=>{var Fe,Ue;fe($?!1:Se),$||((Fe=t.onOpenChange)===null||Fe===void 0||Fe.call(t,Se),(Ue=t.onVisibleChange)===null||Ue===void 0||Ue.call(t,Se))},Z=b.useMemo(()=>{var Se,Fe;let Ue=C;return typeof g=="object"&&(Ue=(Fe=(Se=g.pointAtCenter)!==null&&Se!==void 0?Se:g.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:C),j||$m({arrowPointAtCenter:Ue,autoAdjustOverflow:P,arrowWidth:U?v.sizePopupArrow:0,borderRadius:v.borderRadius,offset:v.marginXXS})},[C,g,j,v]),X=b.useMemo(()=>S===0?S:y||S||"",[y,S]),O=b.createElement(Ps,{space:!0},typeof X=="function"?X():X),G=B("tooltip",i),W=B(),J=t["data-popover-inject"];let te=ne;!("open"in t)&&!("visible"in t)&&$&&(te=!1);const ie=b.isValidElement(p)&&!_m(p)?p:b.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(A,{[`${G}-rtl`]:L==="rtl"},ge.className,M,we,Re,V,z.root,D?.root),ke=ve(z.body,D?.body),[et,ze]=Im("Tooltip",H.zIndex),Le=b.createElement(bm,Object.assign({},H,{zIndex:et,showArrow:U,placement:w,mouseEnterDelay:m,mouseLeaveDelay:R,prefixCls:G,classNames:{root:je,body:ke},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},de),_.root),Q),T),N?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},_.body),d),N?.body),ge.overlayStyle)},getTooltipContainer:I||l||k,ref:ee,builtinPlacements:Z,overlay:O,visible:te,onVisibleChange:K,afterVisibleChange:h??f,arrowContent:b.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(b.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 b.createElement(or,nt({},r,{ref:n,icon:hx}))},Ud=b.forwardRef(gx);process.env.NODE_ENV!=="production"&&(Ud.displayName="EnterOutlined");var Ml={ENTER:13,ESC:27};function mx(t){return!!(t.addonBefore||t.addonAfter)}function xx(t){return!!(t.prefix||t.suffix||t.allowClear)}function Bl(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 Fo(t,r,n,o){if(n){var i=r;if(r.type==="click"){i=Bl(r,t,""),n(i);return}if(t.type!=="file"&&o!==void 0){i=Bl(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,S=t.readOnly,y=t.focused,j=t.triggerFocus,C=t.allowClear,P=t.value,I=t.handleReset,w=t.hidden,m=t.classes,R=t.classNames,T=t.dataAttrs,M=t.styles,A=t.components,N=t.onClear,D=l??a,H=A?.affixWrapper||"span",U=A?.groupWrapper||"span",v=A?.wrapper||"span",k=A?.groupAddon||"span",B=u.useRef(null),L=function(J){var te;(te=B.current)!==null&&te!==void 0&&te.contains(J.target)&&j?.()},V=xx(t),Q=u.cloneElement(D,{value:P,className:ve((n=D.props)===null||n===void 0?void 0:n.className,!V&&R?.variant)||null}),z=u.useRef(null);if(u.useImperativeHandle(r,function(){return{nativeElement:z.current||B.current}}),V){var _=null;if(C){var Y=!g&&!S&&P,ee="".concat(c,"-clear-icon"),oe=Ee(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";_=u.createElement("button",{type:"button",tabIndex:-1,onClick:function(J){I?.(J),N?.()},onMouseDown:function(J){return J.preventDefault()},className:ve(ee,ae(ae({},"".concat(ee,"-hidden"),!Y),"".concat(ee,"-has-suffix"),!!p))},oe)}var ne="".concat(c,"-affix-wrapper"),fe=ve(ne,ae(ae(ae(ae(ae({},"".concat(c,"-disabled"),g),"".concat(ne,"-disabled"),g),"".concat(ne,"-focused"),y),"".concat(ne,"-readonly"),S),"".concat(ne,"-input-with-clear-btn"),p&&C&&P),m?.affixWrapper,R?.affixWrapper,R?.variant),$=(p||C)&&u.createElement("span",{className:ve("".concat(c,"-suffix"),R?.suffix),style:M?.suffix},_,p);Q=u.createElement(H,nt({className:fe,style:M?.affixWrapper,onClick:L},T?.affixWrapper,{ref:B}),d&&u.createElement("span",{className:ve("".concat(c,"-prefix"),R?.prefix),style:M?.prefix},d),Q,$)}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,ae({},"".concat(X,"-disabled"),g),m?.group,R?.groupWrapper);Q=u.createElement(U,{className:G,ref:z},u.createElement(v,{className:O},h&&u.createElement(k,{className:Z},h),Q,f&&u.createElement(k,{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:w})}),vx=["show"];function Yd(t,r){return b.useMemo(function(){var n={};r&&(n.show=Ee(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,S=t.suffix,y=t.showCount,j=t.count,C=t.type,P=C===void 0?"text":C,I=t.classes,w=t.classNames,m=t.styles,R=t.onCompositionStart,T=t.onCompositionEnd,M=_t(t,yx),A=u.useState(!1),N=le(A,2),D=N[0],H=N[1],U=u.useRef(!1),v=u.useRef(!1),k=u.useRef(null),B=u.useRef(null),L=function(de){k.current&&Gd(k.current,de)},V=Wr(t.defaultValue,{value:t.value}),Q=le(V,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],$=Yd(j,y),K=$.max||g,Z=$.strategy(Y),X=!!K&&Z>K;u.useImperativeHandle(r,function(){var ge;return{focus:L,blur:function(){var je;(je=k.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,ke,et){var ze;(ze=k.current)===null||ze===void 0||ze.setSelectionRange(je,ke,et)},select:function(){var je;(je=k.current)===null||je===void 0||je.select()},input:k.current,nativeElement:((ge=B.current)===null||ge===void 0?void 0:ge.nativeElement)||k.current}}),u.useEffect(function(){v.current&&(v.current=!1),H(function(ge){return ge&&f?!1:ge})},[f]);var O=function(de,je,ke){var et=je;if(!U.current&&$.exceedFormatter&&$.max&&$.strategy(je)>$.max){if(et=$.exceedFormatter(je,{max:$.max}),je!==et){var ze,Le;fe([((ze=k.current)===null||ze===void 0?void 0:ze.selectionStart)||0,((Le=k.current)===null||Le===void 0?void 0:Le.selectionEnd)||0])}}else if(ke.source==="compositionEnd")return;_(et),k.current&&Fo(k.current,de,o,et)};u.useEffect(function(){if(ne){var ge;(ge=k.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"&&!v.current&&(v.current=!0,l(de)),c?.(de)},te=function(de){de.key==="Enter"&&(v.current=!1),d?.(de)},ie=function(de){H(!0),i?.(de)},ce=function(de){v.current&&(v.current=!1),H(!1),a?.(de)},pe=function(de){_(""),L(),k.current&&Fo(k.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,ae({},"".concat(h,"-disabled"),f),w?.input),style:m?.input,ref:k,size:x,type:P,onCompositionStart:function(ke){U.current=!0,R?.(ke)},onCompositionEnd:W}))},Re=function(){var de=Number(K)>0;if(S||$.show){var je=$.showFormatter?$.showFormatter({value:Y,count:Z,maxLength:K}):"".concat(Z).concat(de?" / ".concat(K):"");return u.createElement(u.Fragment,null,$.show&&u.createElement("span",{className:ve("".concat(h,"-show-count-suffix"),ae({},"".concat(h,"-show-count-has-suffix"),!!S),w?.count),style:re({},m?.count)},je),S)}return null};return u.createElement(Kd,nt({},M,{prefixCls:h,className:ve(E,ye),handleReset:pe,value:Y,focused:D,triggerFocus:L,suffix:Re(),disabled:f,classes:I,classNames:w,styles:m,ref:B}),we())}),Cx=`
|
|
139
139
|
min-height:0 !important;
|
|
140
140
|
max-height:none !important;
|
|
141
141
|
height:0 !important;
|
|
@@ -146,7 +146,7 @@ html body {
|
|
|
146
146
|
top:0 !important;
|
|
147
147
|
right:0 !important;
|
|
148
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},[`
|
|
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=b.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??""}}),S=le(g,2),y=S[0],j=S[1],C=function(ee){j(ee.target.value),f?.(ee)},P=b.useRef();b.useImperativeHandle(r,function(){return{textArea:P.current}});var I=b.useMemo(function(){return l&&Ee(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),w=le(I,2),m=w[0],R=w[1],T=!!l,M=b.useState(_i),A=le(M,2),N=A[0],D=A[1],H=b.useState(),U=le(H,2),v=U[0],k=U[1],B=function(){D(Ai),process.env.NODE_ENV==="test"&&x?.()};Ge(function(){T&&B()},[a,m,R,T]),Ge(function(){if(N===Ai)D($i);else if(N===$i){var Y=Sx(P.current,!1,m,R);D(_i),k(Y)}},[N]);var L=b.useRef(),V=function(){qr.cancel(L.current)},Q=function(ee){N===_i&&(c?.(ee),l&&(V(),L.current=qr(function(){B()})))};b.useEffect(function(){return V},[]);var z=T?v:null,_=re(re({},p),z);return(N===Ai||N===$i)&&(_.overflowY="hidden",_.overflowX="hidden"),b.createElement(Jr,{onResize:Q,disabled:!(l||c)},b.createElement("textarea",nt({},E,{ref:P,style:_,className:ve(o,d,ae({},"".concat(o,"-disabled"),h)),disabled:h,value:y,onChange:C})))}),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,S=t.showCount,y=t.count,j=t.className,C=t.style,P=t.disabled,I=t.hidden,w=t.classNames,m=t.styles,R=t.onResize,T=t.onClear,M=t.onPressEnter,A=t.readOnly,N=t.autoSize,D=t.onKeyDown,H=_t(t,Ex),U=Wr(o,{value:i,defaultValue:o}),v=le(U,2),k=v[0],B=v[1],L=k==null?"":String(k),V=u.useState(!1),Q=le(V,2),z=Q[0],_=Q[1],Y=u.useRef(!1),ee=u.useState(null),oe=le(ee,2),ne=oe[0],fe=oe[1],$=u.useRef(null),K=u.useRef(null),Z=function(){var Ce;return(Ce=K.current)===null||Ce===void 0?void 0:Ce.textArea},X=function(){Z().focus()};u.useImperativeHandle(r,function(){var De;return{resizableTextArea:K.current,focus:X,blur:function(){Z().blur()},nativeElement:((De=$.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(y,S),ie=(n=te.max)!==null&&n!==void 0?n:p,ce=Number(ie)>0,pe=te.strategy(L),ye=!!ie&&pe>ie,we=function(Ce,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])),B(he),Fo(Ce.currentTarget,Ce,c,he)},Re=function(Ce){Y.current=!0,h?.(Ce)},ge=function(Ce){Y.current=!1,we(Ce,Ce.currentTarget.value),f?.(Ce)},de=function(Ce){we(Ce,Ce.target.value)},je=function(Ce){Ce.key==="Enter"&&M&&M(Ce),D?.(Ce)},ke=function(Ce){_(!0),a?.(Ce)},et=function(Ce){_(!1),l?.(Ce)},ze=function(Ce){B(""),X(),Fo(Z(),Ce,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"),w?.count),style:m?.count},Se)));var Fe=function(Ce){var He;R?.(Ce),(He=Z())!==null&&He!==void 0&&He.style.height&&fe(!0)},Ue=!N&&!S&&!d;return u.createElement(Kd,{ref:$,value:L,allowClear:d,handleReset:ze,suffix:Le,prefixCls:g,classNames:re(re({},w),{},{affixWrapper:ve(w?.affixWrapper,ae(ae({},"".concat(g,"-show-count"),S),"".concat(g,"-textarea-allow-clear"),d))}),disabled:P,focused:z,className:ve(j,ye&&"".concat(g,"-out-of-range")),style:re(re({},C),ne&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:I,readOnly:A,onClear:T},u.createElement(Tx,nt({},H,{autoSize:N,maxLength:p,onKeyDown:je,onChange:de,onFocus:ke,onBlur:et,onCompositionStart:Re,onCompositionEnd:ge,className:ve(w?.textarea),style:re(re({},m?.textarea),{},{resize:C?.resize}),disabled:P,prefixCls:g,onResize:Fe,ref:K,readOnly:A})))}),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 b.createElement(or,nt({},r,{ref:n,icon:Ix}))},qd=b.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 Ms(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}=b.useContext(rr),c=b.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 Mx(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 Bx(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({},Bx(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:S,controlOutline:y,colorErrorOutline:j,colorWarningOutline:C,colorBgContainer:P,inputFontSize:I,inputFontSizeLG:w,inputFontSizeSM:m}=t,R=I||n,T=m||R,M=w||c,A=Math.round((r-R*o)/2*10)/10-i,N=Math.round((a-T*o)/2*10)/10-i,D=Math.ceil((l-M*d)/2*10)/10-i;return{paddingBlock:Math.max(A,0),paddingBlockSM:Math.max(N,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 ${S}px ${y}`,errorActiveShadow:`0 0 0 ${S}px ${j}`,warningActiveShadow:`0 0 0 ${S}px ${C}`,hoverBg:P,activeBg:P,inputFontSize:R,inputFontSizeLG:M,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:`${$e(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:`${$e(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${$e(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${$e(t.lineWidth)} ${t.lineType} ${t.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${$e(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${$e(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${$e(t.lineWidth)} ${t.lineType} ${t.colorBorder}`}}}})}),ru=(t,r)=>({background:t.colorBgContainer,borderWidth:`${$e(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:`${$e(r)} ${$e(i)}`,fontSize:t.inputFontSizeLG,lineHeight:n,borderRadius:o}},ou=t=>({padding:`${$e(t.paddingBlockSM)} ${$e(t.paddingInlineSM)}`,fontSize:t.inputFontSizeSM,borderRadius:t.borderRadiusSM}),iu=t=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${$e(t.paddingBlock)} ${$e(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 ${$e(t.paddingInline)}`,color:t.colorText,fontWeight:"normal",fontSize:t.inputFontSize,textAlign:"center",borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${$e(t.calc(t.paddingBlock).add(1).mul(-1).equal())} ${$e(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:`${$e(t.lineWidth)} ${t.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${$e(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
150
|
& > ${r}-affix-wrapper,
|
|
151
151
|
& > ${r}-number-affix-wrapper,
|
|
152
152
|
& > ${n}-picker-range
|
|
@@ -159,17 +159,17 @@ html body {
|
|
|
159
159
|
& > ${n}-cascader-picker:first-child ${r}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,
|
|
160
160
|
& > ${n}-select:last-child > ${n}-select-selector,
|
|
161
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 ${
|
|
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 ${$e(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]:{"&:not([disabled]):hover, &:not([disabled]):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,"&:not([disabled]):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
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:
|
|
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:S,rootClassName:y,onChange:j,classNames:C,variant:P}=t,I=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:w,direction:m,allowClear:R,autoComplete:T,className:M,style:A,classNames:N,styles:D}=qo("input"),H=w("input",n),U=u.useRef(null),v=Zd(H),[k,B,L]=su(H,y),[V]=Xx(H,v),{compactSize:Q,compactItemClassnames:z}=_d(H,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),$=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=Mx(U),O=pe=>{X(),c?.(pe)},G=pe=>{X(),d?.(pe)},W=pe=>{X(),j?.(pe)},J=(ne||p)&&u.createElement(u.Fragment,null,p,ne&&fe),te=Xd(h??R),[ie,ce]=Jd("input",P,o);return k(V(u.createElement(bx,Object.assign({ref:Wn(r,U),prefixCls:H,autoComplete:T},I,{disabled:ee,onBlur:O,onFocus:G,style:Object.assign(Object.assign({},A),g),styles:Object.assign(Object.assign({},D),S),suffix:J,allowClear:te,className:ve(E,y,L,v,z,M),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({},C),N),{input:ve({[`${H}-sm`]:_==="small",[`${H}-lg`]:_==="large",[`${H}-rtl`]:m==="rtl"},C?.input,N.input,B),variant:ve({[`${H}-${ie}`]:ce},Ms(H,$)),affixWrapper:ve({[`${H}-affix-wrapper-sm`]:_==="small",[`${H}-affix-wrapper-lg`]:_==="large",[`${H}-affix-wrapper-rtl`]:m==="rtl"},B),wrapper:ve({[`${H}-group-rtl`]:m==="rtl"},B),groupWrapper:ve({[`${H}-group-wrapper-sm`]:_==="small",[`${H}-group-wrapper-lg`]:_==="large",[`${H}-group-wrapper-rtl`]:m==="rtl",[`${H}-group-wrapper-${ie}`]:ce},Ms(`${H}-group-wrapper`,$,ne),B)})}))))});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
165
|
&-allow-clear > ${r},
|
|
166
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:
|
|
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:S,onMouseDown:y,onResize:j}=t,C=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:I,allowClear:w,autoComplete:m,className:R,style:T,classNames:M,styles:A}=qo("textArea"),N=b.useContext(zn),D=l??N,{status:H,hasFeedback:U,feedbackIcon:v}=b.useContext(Fn),k=Qd(H,c),B=b.useRef(null);b.useImperativeHandle(r,()=>{var te;return{resizableTextArea:(te=B.current)===null||te===void 0?void 0:te.resizableTextArea,focus:ie=>{var ce,pe;Gd((pe=(ce=B.current)===null||ce===void 0?void 0:ce.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,ie)},blur:()=>{var ie;return(ie=B.current)===null||ie===void 0?void 0:ie.blur()}}});const L=P("input",o),V=Zd(L),[Q,z,_]=su(L,h),[Y]=t0(L,V),{compactSize:ee,compactItemClassnames:oe}=_d(L,I),ne=Ad(te=>{var ie;return(ie=a??ee)!==null&&ie!==void 0?ie:te}),[fe,$]=Jd("textArea",g,i),K=Xd(d??w),[Z,X]=b.useState(!1),[O,G]=b.useState(!1),W=te=>{X(!0),y?.(te);const ie=()=>{X(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},J=te=>{var ie,ce;if(j?.(te),Z&&typeof getComputedStyle=="function"){const pe=(ce=(ie=B.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(b.createElement(kx,Object.assign({autoComplete:m},C,{style:Object.assign(Object.assign({},T),x),styles:Object.assign(Object.assign({},A),E),disabled:D,allowClear:K,className:ve(_,V,f,h,oe,R,O&&`${L}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},p),M),{textarea:ve({[`${L}-sm`]:ne==="small",[`${L}-lg`]:ne==="large"},z,p?.textarea,M.textarea,Z&&`${L}-mouse-active`),variant:ve({[`${L}-${fe}`]:$},Ms(L,k)),affixWrapper:ve(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:I==="rtl",[`${L}-affix-wrapper-sm`]:ne==="small",[`${L}-affix-wrapper-lg`]:ne==="large",[`${L}-textarea-show-count`]:S||((n=t.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:L,suffix:U&&b.createElement("span",{className:`${L}-textarea-suffix`},v),showCount:S,ref:B,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
168
|
h${o}&,
|
|
169
169
|
div&-h${o},
|
|
170
170
|
div&-h${o} > textarea,
|
|
171
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:
|
|
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:Oo[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(),insetBlockStart:t.calc(o).div(-2).add(1).equal(),marginBottom:t.calc(o).div(2).sub(2).equal()},[`${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
173
|
& + h1${r},
|
|
174
174
|
& + h2${r},
|
|
175
175
|
& + h3${r},
|
|
@@ -180,66 +180,66 @@ html body {
|
|
|
180
180
|
${r}-collapse,
|
|
181
181
|
${r}-edit,
|
|
182
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(`,
|
|
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=b.createElement(Ud,null)}=t,g=b.useRef(null),S=b.useRef(!1),y=b.useRef(null),[j,C]=b.useState(d);b.useEffect(()=>{C(d)},[d]),b.useEffect(()=>{var U;if(!((U=g.current)===null||U===void 0)&&U.resizableTextArea){const{textArea:v}=g.current.resizableTextArea;v.focus();const{length:k}=v.value;v.setSelectionRange(k,k)}},[]);const P=({target:U})=>{C(U.value.replace(/[\n\r]/g,""))},I=()=>{S.current=!0},w=()=>{S.current=!1},m=({keyCode:U})=>{S.current||(y.current=U)},R=()=>{p(j.trim())},T=({keyCode:U,ctrlKey:v,altKey:k,metaKey:B,shiftKey:L})=>{y.current!==U||S.current||v||k||B||L||(U===Ml.ENTER?(R(),f?.()):U===Ml.ESC&&h())},M=()=>{R()},[A,N,D]=au(r),H=ve(r,`${r}-edit-content`,{[`${r}-rtl`]:a==="rtl",[`${r}-${x}`]:!!x},o,N,D);return A(b.createElement("div",{className:H,style:i},b.createElement(n0,{ref:g,maxLength:l,value:j,onChange:P,onKeyDown:m,onKeyUp:T,onCompositionStart:I,onCompositionEnd:w,onBlur:M,"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(S){if(S.stopPropagation(),l.format)if(S.preventDefault(),typeof S.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=r[l.format]||r.default;window.clipboardData.setData(y,a)}else S.clipboardData.clearData(),S.clipboardData.setData(l.format,a);l.onCopy&&(S.preventDefault(),l.onCopy(S.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(S){c&&console.error("unable to copy using execCommand: ",S),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",a),l.onCopy&&l.onCopy(window.clipboardData),E=!0}catch(y){c&&console.error("unable to copy using clipboardData: ",y),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]=b.useState(!1),[i,a]=b.useState(!1),l=b.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},d={};t.format&&(d.format=t.format),b.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 b.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=b.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}=qo("typography"),S=d??x,y=l?Wn(r,l):r,j=f("typography",n);process.env.NODE_ENV!=="production"&&Gt("Typography").deprecated(!l,"setContentRef","ref");const[C,P,I]=au(j),w=ve(j,E,{[`${j}-rtl`]:S==="rtl"},i,a,P,I),m=Object.assign(Object.assign({},g),p);return C(b.createElement(o,Object.assign({className:w,style:m,ref:y},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 b.createElement(or,nt({},r,{ref:n,icon:j0}))},du=b.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 b.createElement(or,nt({},r,{ref:n,icon:R0}))},uu=b.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 b.createElement(or,nt({},r,{ref:n,icon:E0}))},pu=b.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),S=typeof g=="string"?g:E;return b.createElement(Qn,{title:g},b.createElement("button",{type:"button",className:ve(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:o}),onClick:c,"aria-label":S,tabIndex:l},r?Hi(h[1],b.createElement(du,null),!0):Hi(h[0],d?b.createElement(pu,null):b.createElement(uu,null),!0)))},Co=b.forwardRef(({style:t,children:r},n)=>{const o=b.useRef(null);return b.useImperativeHandle(n,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),b.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)}),M0=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 B0(t){const{enableMeasure:r,width:n,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:d}=t,p=b.useMemo(()=>Bn(o),[o]),h=b.useMemo(()=>M0(p),[o]),f=b.useMemo(()=>i(p,!1),[o]),[x,E]=b.useState(null),g=b.useRef(null),S=b.useRef(null),y=b.useRef(null),j=b.useRef(null),C=b.useRef(null),[P,I]=b.useState(!1),[w,m]=b.useState(Vi),[R,T]=b.useState(0),[M,A]=b.useState(null);Ge(()=>{m(r&&n&&h?Wi:Vi)},[n,o,a,r,p]),Ge(()=>{var U,v,k,B;if(w===Wi){m(Ui);const L=S.current&&getComputedStyle(S.current).whiteSpace;A(L)}else if(w===Ui){const L=!!(!((U=y.current)===null||U===void 0)&&U.isExceed());m(L?Gi:Hl),E(L?[0,h]:null),I(L);const V=((v=y.current)===null||v===void 0?void 0:v.getHeight())||0,Q=a===1?0:((k=j.current)===null||k===void 0?void 0:k.getHeight())||0,z=((B=C.current)===null||B===void 0?void 0:B.getHeight())||0,_=Math.max(V,Q+z);T(_+1),d(L)}},[w]);const N=x?Math.ceil((x[0]+x[1])/2):0;Ge(()=>{var U;const[v,k]=x||[0,0];if(v!==k){const L=(((U=g.current)===null||U===void 0?void 0:U.getHeight())||0)>R;let V=N;k-v===1&&(V=L?v:k),E(L?[v,V]:[V,k])}},[x,N]);const D=b.useMemo(()=>{if(!r)return i(p,!1);if(w!==Gi||!x||x[0]!==x[1]){const U=i(p,!1);return[Hl,Vi].includes(w)?U:b.createElement("span",{style:Object.assign(Object.assign({},wo),{WebkitLineClamp:a})},U)}return i(l?p:Fl(p,x[0]),P)},[l,w,x,p].concat(at(c))),H={width:n,margin:0,padding:0,whiteSpace:M==="nowrap"?"normal":"inherit"};return b.createElement(b.Fragment,null,D,w===Ui&&b.createElement(b.Fragment,null,b.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},H),wo),{WebkitLineClamp:a}),ref:y},f),b.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},H),wo),{WebkitLineClamp:a-1}),ref:j},f),b.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},H),wo),{WebkitLineClamp:1}),ref:C},i([],!0))),w===Gi&&x&&x[0]!==x[1]&&b.createElement(Co,{style:Object.assign(Object.assign({},H),{top:400}),ref:g},i(Fl(p,N),!0)),w===Wi&&b.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const fu=({enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:o})=>!o?.title||!t?n:b.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=b.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=b.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:S,direction:y}=b.useContext(rr),[j]=Mh("Text"),C=b.useRef(null),P=b.useRef(null),I=S("typography",o),w=Ac(g,Vl),[m,R]=Fi(h),[T,M]=Wr(!1,{value:R.editing}),{triggerType:A=["icon"]}=R,N=he=>{var me;he&&((me=R.onStart)===null||me===void 0||me.call(R)),M(he)},D=b0(T);Ge(()=>{var he;!T&&D&&((he=P.current)===null||he===void 0||he.focus())},[T]);const H=he=>{he?.preventDefault(),N(!0)},U=he=>{var me;(me=R.onChange)===null||me===void 0||me.call(R,he),N(!1)},v=()=>{var he;(he=R.onCancel)===null||he===void 0||he.call(R),N(!1)},[k,B]=Fi(f),{copied:L,copyLoading:V,onClick:Q}=y0({copyConfig:B,children:d}),[z,_]=b.useState(!1),[Y,ee]=b.useState(!1),[oe,ne]=b.useState(!1),[fe,$]=b.useState(!1),[K,Z]=b.useState(!0),[X,O]=Fi(p,{expandable:!1,symbol:he=>he?j?.collapse:j?.expand}),[G,W]=Wr(O.defaultExpanded||!1,{value:O.expanded}),J=X&&(!G||O.expandable==="collapsible"),{rows:te=1}=O,ie=b.useMemo(()=>J&&(O.suffix!==void 0||O.onEllipsis||O.expandable||m||k),[J,O,m,k]);Ge(()=>{X&&!ie&&(_(Fa("webkitLineClamp")),ee(Fa("textOverflow")))},[ie,X]);const[ce,pe]=b.useState(J),ye=b.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,ke]=b.useState(0),et=({offsetWidth:he})=>{ke(he)},ze=he=>{var me;ne(he),oe!==he&&((me=O.onEllipsis)===null||me===void 0||me.call(O,he))};b.useEffect(()=>{const he=C.current;if(X&&ce&&he){const me=I0(he);fe!==me&&$(me)}},[X,ce,d,ge,K,je]),b.useEffect(()=>{const he=C.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=b.useMemo(()=>{if(!(!X||ce))return[R.text,d,E,Le.title].find(ta)},[X,ce,E,Le.title,we]);if(T)return b.createElement(f0,{value:(n=R.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:U,onCancel:v,onEnd:R.onEnd,prefixCls:I,className:i,style:a,direction:y,component:x,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const Fe=()=>{const{expandable:he,symbol:me}=O;return he?b.createElement("button",{type:"button",key:"expand",className:`${I}-${G?"collapse":"expand"}`,onClick:qe=>de(qe,{expanded:!G}),"aria-label":G?j.collapse:j?.expand},typeof me=="function"?me(G):me):null},Ue=()=>{if(!m)return;const{icon:he,tooltip:me,tabIndex:qe}=R,Kt=Bn(me)[0]||j?.edit,vr=typeof Kt=="string"?Kt:"";return A.includes("icon")?b.createElement(Qn,{key:"edit",title:me===!1?"":Kt},b.createElement("button",{type:"button",ref:P,className:`${I}-edit`,onClick:H,"aria-label":vr,tabIndex:qe},he||b.createElement(Sc,{role:"button"}))):null},De=()=>k?b.createElement(P0,Object.assign({key:"copy"},B,{prefixCls:I,copied:L,locale:j,onCopy:Q,loading:V,iconOnly:d==null})):null,Ce=he=>[he&&Fe(),Ue(),De()],He=he=>[he&&!G&&b.createElement("span",{"aria-hidden":!0,key:"ellipsis"},D0),O.suffix,Ce(he)];return b.createElement(Jr,{onResize:et,disabled:!J},he=>b.createElement(fu,{tooltipProps:Le,enableEllipsis:J,isEllipsis:we},b.createElement(cu,Object.assign({className:ve({[`${I}-${l}`]:l,[`${I}-disabled`]:c,[`${I}-ellipsis`]:X,[`${I}-ellipsis-single-line`]:Re,[`${I}-ellipsis-multiple-line`]:ge},i),prefixCls:o,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ge?te:void 0}),component:x,ref:Wn(he,C,r),direction:y,onClick:A.includes("text")?H:void 0,"aria-label":Se?.toString(),title:E},w),b.createElement(B0,{enableMeasure:J&&!ce,text:d,rows:te,width:je,onEllipsis:ze,expanded:G,miscDeps:[L,G,V,m,k,j].concat(at(Vl.map(me=>t[me])))},(me,qe)=>O0(t,b.createElement(b.Fragment,null,me.length>0&&qe&&!G&&Se?b.createElement("span",{key:"show-content","aria-hidden":!0},me):me,He(qe)))))))}),$0=b.forwardRef((t,r)=>b.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,S]=u.useState(""),[y,j]=u.useState("ADD"),[C,P]=u.useState(!1),[I,w]=u.useState("");u.useEffect(()=>{t&&E(o)},[t]),u.useEffect(()=>{const T=m(n,o);f(T)},[n]),u.useEffect(()=>{C&&I&&(p.current.setFieldValue("prntBkmkId",I),p.current.setFieldValue("prntBkmkNm",n[I]?.bkmkNm??"-")),C&&y==="EDIT"&&(p.current.setFieldValue("bkmkId",I),p.current.setFieldValue("bkmkNm",n[I]?.bkmkNm)),!C&&y=="ADD"&&E(T=>[...T,I]),!C&&p.current&&(w("-"),p.current.resetFields())},[C,y,I,n]);const m=(T,M)=>{const A=(N,D="-")=>{const H=T[N];if(!H)return null;const U={key:H.bkmkId,type:H.type,title:H.type==="F"?H.bkmkNm:H.menuNm?`${H.menuNm} (${H.menuId})`:H.menuId,parentId:D,sortOrdr:H.sortOrdr??0};if(H.type==="F"){const k=(H.children??[]).map(B=>A(B,H.bkmkId)).filter(Boolean);return{...U,children:k}}return U};return M.map(N=>A(N,"-")).filter(Boolean)},R=()=>{if(j("ADD"),!g){w("-"),P(!0);return}const T=n[g];if(!T){w("-"),P(!0);return}T.type==="F"?w(T.bkmkId):w(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(M=>M.type==="F").map(M=>M.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:M})=>{const A=T.type==="F";return M===0?A:!0},onDrop:T=>{const{dragNode:M,node:A,dropPosition:N,dropToGap:D}=T;if(M.key===A.key||gu(M,A.key))return;let H,U;if(D){const k=hu(h,A.key).ctx,B=k.index;H=k.parent?k.parent.key:"-",U=N>0?B+1:B}else{if(A.type!=="F")return;const k=A.children||[];H=A.key,U=k.length}const v=se.getUserId();if(M.type==="F")d({bkmkId:M.key,newPrntBkmkId:H,sortOrdr:U,userId:v}).catch(()=>{s.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(H==="-"){s.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}d({bkmkId:M.key,newPrntBkmkId:H,sortOrdr:U,userId:v}).catch(()=>{s.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}D===!1&&E(k=>Array.from(new Set([...k,A.key])))},showLine:!0,treeData:h,selectedKeys:[g],expandedKeys:x,onExpand:E,onSelect:T=>S(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:()=>{j("ADD"),w(T.key),P(!0)}}),e.jsx(q.EditOutlined,{style:{opacity:.8},onClick:()=>{j("EDIT"),w(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:y==="ADD"?"#0958d9":"#d46b08",headerBg:y==="ADD"?"#e6f4ff":"#fff7e6"}}},children:e.jsx(s.Modal,{title:e.jsxs(e.Fragment,{children:[y==="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:["폴더",y==="ADD"?" 추가":"명 수정"]})]}),open:C,okText:"저장",onOk:()=>{const T=p.current.getFieldValue("bkmkNm"),M=se.getUserId();if(y==="ADD"){const A=__SYS_CD__??"KH",N=p.current.getFieldValue("prntBkmkId");i(T,N,A,M).then(()=>{P(!1)})}else{const A=p.current.getFieldValue("bkmkId");a(A,M,T).then(()=>{P(!1)})}},centered:!0,width:400,onCancel:()=>P(!1),children:e.jsxs(F.BwgForm,{ref:p,children:[e.jsx(F.BwgInput,{itemProps:{name:y==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),e.jsx(F.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:I==="-"||y==="EDIT"},inputProps:{disabled:!0}}),e.jsx(F.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),[S,y]=u.useState(!1),[j,C]=u.useState(null);ut.useFavoriteStore(V=>V.treeNodes);const{nodes:P,getPrntBkmkIdByMenuId:I,getNodeByMenuId:w,isMenuBookmarked:m,removeMenuByMenuId:R,addMenuToFolder:T,convertToAntTreeData:M}=ut.useFavoriteStore(),A=ut.useFavoriteStore(V=>V.rootIds),N=u.useMemo(()=>M(P,A,o,!0),[P,A,o]),D=ut.useMenuViewStore(V=>V.activeMenuItem??{menuId:"",menuNm:""}),H=u.useMemo(()=>{if(!D?.menuId)return"";const V=w(D.menuId);if(!V)return"";if(V.fullPath)return V.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 ::::: ",V),console.log(Q(V.bkmkId)),Q(V.bkmkId)},[D?.menuId,w,P]);u.useEffect(()=>{r&&D?.menuId&&m(D.menuId)?h([I(D.menuId)]):r&&D?.menuId&&!m(D.menuId)?h(A):(h([]),d([]),C(null),y(!1))},[r,D?.menuId,m,I]),u.useEffect(()=>{if(!S||!D?.menuId)return;const V=I(D.menuId);!V||!P[V]||(i(""),d([V]),C(V))},[S,D?.menuId,P,I]);const U=(V,Q)=>{T(V,Q).then(z=>{console.log("AddMenuToFolder ::::: ",z),z||h(_=>_.includes(V)?_:[..._,V])})},v=V=>{R(V)},k=async V=>{D?.menuId&&(await R(D.menuId),await T(V,D),y(!1),C(null),h(Q=>Q.includes(V)?Q:[...Q,V]))},B=()=>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:()=>y(!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:()=>{y(!1),C(null)},children:"취소"}),e.jsx(s.Button,{type:"primary",disabled:!j,onClick:()=>j&&k(String(j)),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:V=>i(V.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 V=Object.values(P).filter(Q=>Q.type==="F").map(Q=>Q.bkmkId);h(V)},title:"모두 확장"}),e.jsx(s.Button,{icon:e.jsx(q.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>h([]),title:"모두 축소"})]})]}),N.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:N,selectedKeys:c,expandedKeys:p,onExpand:h,onSelect:V=>{d(V),C(V[0])},autoExpandParent:!0,titleRender:V=>{const Q=String(V.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:V.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:S?B():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:`📁 > ${H}`||"알 수 없음"})]}):L(),e.jsxs(Be,{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 V=String(c[0]);let Q="-";V&&P[V]&&(Q=P[V].type=="M"?P[V].prntBkmkId:V),U(Q,D)},children:"추가"}):e.jsxs(Be,{layoutAlign:"between",children:[e.jsx(s.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:e.jsx(q.FolderOpenOutlined,{}),onClick:()=>y(!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:()=>v(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}=pt.useSearchBox();return e.jsx(Vn,{ref:n,reqRows:t,subRows:r})},ht=({children:t,searchBox:r,title:n,preRenderEvents:o=[],postRenderEvents:i=[],loading:a=!1,error:l=null,grantEvent:c={},customEvent:d={},buttons:p})=>{pt.useServiceCodeValue("AUTH_BTNS");const{user:h}=ut.useUserStore(),{activeMenuItem:f}=ut.useMenuViewStore(),{loadFavoritesIfNeeded:x,isMenuBookmarked:E}=ut.useFavoriteStore(),{loading:g}=ut.useLoadingStore(),[S,y]=u.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),{openCorePopup:j}=pt.usePopup(),C=async()=>{if(o.length===0){y(A=>({...A,preRenderComplete:!0}));return}try{for(const A of o)await A();y(A=>({...A,preRenderComplete:!0}))}catch(A){y(N=>({...N,error:A instanceof Error?A.message:"사전 렌더링 실패",preRenderComplete:!0}))}},P=async()=>{if(i.length===0){y(A=>({...A,postRenderComplete:!0}));return}try{for(const A of i)await A();y(A=>({...A,postRenderComplete:!0}))}catch(A){y(N=>({...N,error:A instanceof Error?A.message:"사후 렌더링 실패",postRenderComplete:!0}))}};u.useEffect(()=>{if(S.isInitialized)return;(async()=>{try{await C(),y(N=>({...N,isInitialized:!0,loading:!1}))}catch(N){console.error("BwgView 초기화 실패:",N),y(D=>({...D,isInitialized:!0,loading:!1}))}})()},[]),u.useEffect(()=>{h?.userId&&x(h.userId)},[x,h?.userId]),u.useEffect(()=>{S.isInitialized&&S.preRenderComplete&&!S.isReady&&setTimeout(async()=>{await P(),y(N=>({...N,isReady:!0}))},100)},[S.isInitialized,S.preRenderComplete,S.isReady]),u.useEffect(()=>{l&&y(A=>({...A,error:l}))},[l]);const I=()=>e.jsxs("div",{className:"bwgview-header-container",children:[e.jsxs("div",{className:"bwgview-header",children:[e.jsx("div",{className:"bwgview-header-left",children:M.LEFT}),e.jsx("div",{className:"bwgview-header-right",children:M.RIGHT})]}),r&&e.jsx(L0,{reqRows:r.reqRows,subRows:r.subRows})]});if(u.useEffect(()=>{},[h,f]),S.error||l)return e.jsx("div",{style:{padding:"24px"},children:e.jsx(s.Alert,{message:"오류 발생",description:S.error||l,type:"error",showIcon:!0})});const w=()=>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=A=>e.jsx(q,{component:w,...A}),T=A=>e.jsx(q,{component:m,...A}),M={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 A="";return n?.useMenuTitle&&f?A=f.menuNm:n?.text?A=n.text:f&&(A=f.menuPrntId==="CM00"?f.menuNm.substring(f.menuNm.indexOf(" ")+1):f.menuNm),n?.prefix&&(A=`${n.prefix} ${A}`),n?.suffix&&(A=`${A} ${n.suffix}`),A})()}),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:()=>j("CORE_REPORT"),icon:e.jsx(q.BugFilled,{style:{color:"#1890ff"}})})})]})]}),f?.scrnId&&se.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:[I(),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}),(S.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 C=()=>{const P=window.innerHeight,w=Math.max(64,(P-300)/3);n({x:0,y:w});const m=P/2;h(w<m)};return C(),window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const E=C=>{if(C.preventDefault(),C.stopPropagation(),f.current){const P=f.current.getBoundingClientRect();l({x:C.clientX-P.left,y:C.clientY-P.top}),i(!0)}},g=C=>{if(o){const P=C.clientY-a.y,I=window.innerHeight-24,m=Math.max(64,Math.min(I,P));n({x:r.x,y:m});const R=window.innerHeight/2;h(m<R)}},S=()=>{i(!1)},y=()=>{d(!c)},j=C=>{C.onClick&&C.onClick()};return u.useEffect(()=>{if(o)return document.addEventListener("mousemove",g),document.addEventListener("mouseup",S),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",S)}},[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(C=>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:()=>j(C),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:C.color,marginBottom:"5px"},children:C.icon}),e.jsx("div",{className:"quick-tab-items-title",children:C.title})]})},C.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:C=>{},onMouseLeave:C=>{},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:C=>E(C)}),e.jsx(s.Button,{className:`quick-tab-toggle-btn ${c?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:y})]})},G0=()=>{const{verifyWithToken:t}=pt.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}=pt.usePopup(),n=u.useRef(null),o=u.useRef(null),i=u.useRef(null),a=u.useRef(null),[l,c]=u.useState(!1),[d]=u.useState(null),[p,h]=u.useState("common"),{getCodeColor:f,getCodeName:x,getCodeList:E}=pt.useCommonCode(),g=u.useMemo(()=>Ns((v,k,B,L,V)=>{const Q=k.value,z=f?.(Q)||"blue",_=x?.(Q)||Q,Y=Q?e.jsx(s.Tag,{color:z,style:{fontSize:"11px"},children:_}):null;V.render(e.jsx("div",{style:{padding:"4px"},children:Y}))}),[f,x]),[S,y]=u.useState({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),[j,C]=u.useState(!1),P=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"}}],[]),I={container:{check:!0,indicator:!0,footer:!0}},w={onCurrentRowChanged(v,k,B){console.log("공통 버튼 그리드 - 현재 행 변경:",{oldRow:k,newRow:B,activeTabKey:p})}},m={onCurrentRowChanged(v,k,B){console.log("커스텀 버튼 그리드 - 현재 행 변경:",{oldRow:k,newRow:B,activeTabKey:p})}},R=v=>{h(v)};u.useEffect(()=>{},[]),u.useEffect(()=>{const v=o.current?.vw?.getCurrent().itemIndex??-1;if(v<0)return;const k=o.current?.vw?.getValues(v);A.SCMAUTH00201({crprCd:k.crprCd,systId:k.systId,authId:k.authId,menuId:k.authMenu,grpId:p==="common"?"DEFAULT":"CUSTOM"})},[p]);const T=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}],[]),M={onCurrentRowChanged(v,k,B){if(B<0)return;const L=v.getValues(B);console.log("권한 선택:",L),console.log("현재 activeTabKey:",p),n.current?.setFieldsValue(L),A.SCMAUTH00201({crprCd:L.crprCd,systId:L.systId,authId:L.authId,menuId:L.authMenu,grpId:p==="common"?"DEFAULT":"CUSTOM"})}},A={SCMAUTH00101:()=>{se.callService("SCMAUTH00101",{crprCd:se.getCrprCd()},{},t.appCd).then(v=>{o.current?.addAllData(v.data)})},SCMAUTH00102:v=>{se.callService("SCMAUTH00102",{...v},{},t.appCd).then(k=>{k.result||n.current?.setFields([{name:"authId",errors:[k.message]}])})},SCMAUTH00201:v=>{se.callService("SCMAUTH00201",{...v},{},t.appCd).then(k=>{p==="common"?i.current?.addAllData(k.data):a.current?.addAllData(k.data)}).catch(k=>{console.error("SCMAUTH00201 호출 실패:",k)})},SCMAUTH00301:async v=>{try{const k=await se.callService("SCMAUTH00301",{...v,crprCd:se.getCrprCd()},{},t.appCd);return console.log("권한 정보 저장 성공:",k),C(!1),A.SCMAUTH00101(),k}catch(k){throw console.error("권한 정보 저장 실패:",k),k}},SCMAUTH00401:async v=>{try{const k=await se.callService("SCMAUTH00401",{...v,crprCd:se.getCrprCd()},{},t.appCd);return console.log("권한 정보 수정 성공:",k),C(!1),A.SCMAUTH00101(),k}catch(k){throw console.error("권한 정보 수정 실패:",k),k}}},N={search:()=>{A.SCMAUTH00101()},new:()=>{C(!1),y({crprCd:String(se.getCrprCd()||""),systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),c(!0)},edit:()=>{const v=o.current?.getCurrentRow();v&&typeof v=="object"&&(C(!0),y({crprCd:v.crprCd||String(se.getCrprCd()||""),systId:v.systId||"",authId:v.authId||"",authNm:v.authNm||"",authDscr:v.authDscr||"",authMenu:v.authMenu||"",enblYn:v.enblYn||"Y"}),c(!0))}},D={openPopup:v=>{r("CMDprtSrchP02",{isDefault:v})},add:()=>{console.log("add")},modify:()=>{console.log("edit")},delete:()=>{console.log("delete")}},H=(v,k)=>{y(B=>({...B,[v]:k}))},U=async()=>{try{j||await A.SCMAUTH00102({auth:n.current?.getFieldsValue()})}catch(v){console.error("권한 정보 처리 실패:",v)}};return u.useEffect(()=>{A.SCMAUTH00101()},[]),u.useEffect(()=>{},[o.current?.getGridInstance()?.gridView]),e.jsx(ht,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{N.search()}},{id:"new",label:"신규",onClick:()=>{N.new()}},{id:"edit",label:"수정",onClick:()=>{N.edit()}}]},children:e.jsxs(Be,{children:[e.jsxs(be,{className:"w40",children:[e.jsx(Te,{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:()=>D.openPopup(!0),children:"공통권한버튼"}),e.jsx(s.Button,{onClick:()=>D.openPopup(!1),children:"커스텀 버튼"})]}),placement:"bottom",children:e.jsx(s.Button,{icon:e.jsx(q.SettingTwoTone,{}),title:"버튼관리",children:"버튼관리"})})}),e.jsx(Oe,{type:"nrml",ref:o,gridColumns:T,renderers:[{name:"tag",renderer:g}],gridOptions:{container:{indicator:!0,check:!0,checkAll:!0}},gridEvents:M})]}),e.jsx(be,{className:"w60",border:!0,children:e.jsxs(Ut,{title:"권한 상세",children:[e.jsxs(F.BwgForm,{ref:n,style:{padding:"10px 20px"},children:[e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:8,children:e.jsx(F.BwgSelect,{itemProps:{label:"업무분류",name:"systId"},selectProps:{variant:"borderless",options:E("SYST"),copyable:!0,disabled:!0}})}),e.jsx(s.Col,{span:8,children:e.jsx(F.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(F.BwgFormItem,{label:"권한ID",name:"authId",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})})}),e.jsx(s.Col,{span:16,children:e.jsx(F.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(F.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(F.BwgFormItem,{label:"권한설명",name:"authDscr",children:e.jsx(s.Input.TextArea,{variant:"borderless",readOnly:!0})})})})]}),e.jsx(xt,{size:"small",activeKey:p,onChange:R,items:[{key:"common",label:"공통버튼",children:e.jsxs(be,{children:[e.jsx(Te,{title:"공통 버튼 매핑",children:e.jsx(Qi,{grpId:"AUTH",menuId:"CM010303",btnEvent:D})}),e.jsx(Oe,{ref:i,type:"nrml",gridColumns:P,gridOptions:I,gridEvents:w})]})},{key:"custom",label:"커스텀",children:e.jsxs(be,{children:[e.jsx(Te,{title:"커스텀 버튼 매핑",children:e.jsx(Qi,{grpId:"AUTH2",menuId:"CM010303"})}),e.jsx(Oe,{ref:a,type:"nrml",gridColumns:P,gridOptions:I,gridEvents:m})]})}],tabPosition:"left"})]})}),e.jsx(Xr,{title:`권한별 메뉴 관리 - ${d?.authNm||""}`,open:l,placement:"right",onClose:()=>{c(!1),y({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),C(!1)},width:"40%",size:"large",afterOpenChange:v=>{console.log("afterOpenChange:",v)},footer:e.jsxs("div",{className:"drawer-footer-btn-group",children:[e.jsx(s.Button,{onClick:()=>{c(!1),n.current?.resetFields(),C(!1)},className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:U,className:"bwg-btn",children:"저장"})]}),children:e.jsxs(F.BwgForm,{ref:n,initialValues:S,children:[e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgSearch,{itemProps:{name:["crprCd","crprNm"],label:"회사 코드"},placeholder:["회사 코드","회사 명칭"],popuCd:"CMAuthMstrP01"})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgSelect,{itemProps:{name:"systId",label:"시스템 ID"},selectProps:{variant:"borderless",options:E("SYST"),copyable:!0,disabled:!0}})})]}),e.jsxs(s.Row,{gutter:16,children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgFormItem,{name:"authId",label:"권한 ID",children:e.jsx(s.Input,{onChange:v=>H("authId",v.target.value),placeholder:"권한 ID를 입력하세요",disabled:j})})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgFormItem,{name:"enblYn",label:"사용여부",children:e.jsx(s.Select,{onChange:v=>H("enblYn",v),options:[{value:"Y",label:"사용"},{value:"N",label:"미사용"}]})})})]}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(F.BwgFormItem,{name:"authNm",label:"권한 명칭",children:e.jsx(s.Input,{onChange:v=>H("authNm",v.target.value),placeholder:"권한 명칭을 입력하세요"})})})}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(F.BwgFormItem,{name:"authDscr",label:"권한 설명",children:e.jsx(s.Input.TextArea,{onChange:v=>H("authDscr",v.target.value),placeholder:"권한 설명을 입력하세요",rows:2})})})}),e.jsx(s.Row,{gutter:16,children:e.jsx(s.Col,{span:24,children:e.jsx(F.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,S,y,j,C)=>{const P=g.getValue(S.index?.itemIndex,"systId"),I=g.getValue(S.index?.itemIndex,"roleId"),w=g.getValue(S.index?.itemIndex,"roleNm"),m=g.getValue(S.index?.itemIndex,"enblYn"),R=g.getValue(S.index?.itemIndex,"roleDscr");C.render(e.jsx(s.Card,{size:"small",style:{height:"95px"},children:e.jsxs(s.Flex,{style:{height:"95px"},children:[e.jsxs(be,{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:w}),e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translateX(-50%)",fontSize:"13px",color:"#8c8c8c",fontFamily:"monospace"},children:I}),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(be,{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,S,y){if(y<0)return;const j=g.getValues(y);switch(i){case"menu":break;case"dept":x.SCMROLE00103(j.roleId);break;case"user":x.SCMROLE00104(j.roleId);break}}},x={SCMROLE00101:()=>{se.callService("SCMROLE00101",{crprCd:se.getCrprCd()},{},t.appCd).then(g=>{console.log("SCMROLE00101:",g),r.current?.addAllData(g.data)})},SCMROLE00102:g=>{se.callService("SCMROLE00102",{crprCd:se.getCrprCd(),roleId:g},{},t.appCd).then(S=>{console.log("SCMROLE00102:",S)})},SCMROLE00103:g=>{se.callService("SCMROLE00103",{crprCd:se.getCrprCd(),roleId:g},{},t.appCd).then(S=>{console.log("SCMROLE00103:",S),n.current?.addAllData(S.data)})},SCMROLE00104:g=>{se.callService("SCMROLE00104",{crprCd:se.getCrprCd(),roleId:g},{},t.appCd).then(S=>{console.log("SCMROLE00104:",S),o.current?.addAllData(S.data)})}},E={search:()=>{x.SCMROLE00101()}};return u.useEffect(()=>{const g=r.current?.getCurrentIndex()??-1;if(g<0)return;const S=r.current?.vw?.getValue(g,"roleId");switch(i){case"menu":break;case"dept":x.SCMROLE00103(S);break;case"user":x.SCMROLE00104(S);break}},[i]),e.jsx(ht,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{E.search()}}]},children:e.jsxs(Be,{children:[e.jsxs(be,{className:"w40",children:[e.jsx(Te,{title:"역할 목록",icons:{type:"antd"}}),e.jsx(Oe,{ref:r,type:"nrml",gridColumns:c,gridOptions:h,gridEvents:f,renderers:[{name:"systCard",renderer:l}]})]}),e.jsxs(be,{className:"w60",children:[e.jsx(Te,{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(Oe,{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(Be,{children:[e.jsx(be,{className:"w50",children:e.jsx(Oe,{ref:n,type:"nrml",gridColumns:d,gridOptions:{display:{rowHeight:40}}})}),e.jsx(be,{className:"w50",border:!0,children:e.jsx(Ut,{title:"부서정보",children:"123"})})]})},{key:"user",label:"역할별 사용자",icon:e.jsx(q.UserOutlined,{}),children:e.jsxs(Be,{children:[e.jsx(be,{className:"w50",children:e.jsx(Oe,{ref:o,type:"nrml",gridColumns:p,gridOptions:{display:{rowHeight:40}}})}),e.jsx(be,{className:"w50",border:!0,children:e.jsx(Ut,{title:"사용자정보",children:"123"})})]})}]})]})]})})};var wn={},Wl;function q0(){if(Wl)return wn;Wl=1;function t(w){"@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(w)}Object.defineProperty(wn,"__esModule",{value:!0}),wn.CopyToClipboard=void 0;var r=i(u),n=i(lu()),o=["text","onCopy","options","children"];function i(w){return w&&w.__esModule?w:{default:w}}function a(w,m){var R=Object.keys(w);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(w);m&&(T=T.filter(function(M){return Object.getOwnPropertyDescriptor(w,M).enumerable})),R.push.apply(R,T)}return R}function l(w){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(w,T,R[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(R)):a(Object(R)).forEach(function(T){Object.defineProperty(w,T,Object.getOwnPropertyDescriptor(R,T))})}return w}function c(w,m){if(w==null)return{};var R=d(w,m),T,M;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(w);for(M=0;M<A.length;M++)T=A[M],!(m.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(w,T)&&(R[T]=w[T])}return R}function d(w,m){if(w==null)return{};var R={},T=Object.keys(w),M,A;for(A=0;A<T.length;A++)M=T[A],!(m.indexOf(M)>=0)&&(R[M]=w[M]);return R}function p(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function h(w,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(w,T.key,T)}}function f(w,m,R){return m&&h(w.prototype,m),Object.defineProperty(w,"prototype",{writable:!1}),w}function x(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(m&&m.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),m&&E(w,m)}function E(w,m){return E=Object.setPrototypeOf||function(T,M){return T.__proto__=M,T},E(w,m)}function g(w){var m=j();return function(){var T=C(w),M;if(m){var A=C(this).constructor;M=Reflect.construct(T,arguments,A)}else M=T.apply(this,arguments);return S(this,M)}}function S(w,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 y(w)}function y(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function j(){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 C(w){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},C(w)}function P(w,m,R){return m in w?Object.defineProperty(w,m,{value:R,enumerable:!0,configurable:!0,writable:!0}):w[m]=R,w}var I=(function(w){x(R,w);var m=g(R);function R(){var T;p(this,R);for(var M=arguments.length,A=new Array(M),N=0;N<M;N++)A[N]=arguments[N];return T=m.call.apply(m,[this].concat(A)),P(y(T),"onClick",function(D){var H=T.props,U=H.text,v=H.onCopy,k=H.children,B=H.options,L=r.default.Children.only(k),V=(0,n.default)(U,B);v&&v(U,V),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(D)}),T}return f(R,[{key:"render",value:function(){var M=this.props,A=M.children,N=c(M,o),D=r.default.Children.only(A);return r.default.cloneElement(D,l(l({},N),{},{onClick:this.onClick}))}}]),R})(r.default.PureComponent);return wn.CopyToClipboard=I,P(I,"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
184
|
`),c=`<${n}
|
|
185
185
|
itemProps={{
|
|
186
186
|
${l}
|
|
187
187
|
}}
|
|
188
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([]),[
|
|
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([]),[S,y]=u.useState([]),[j,C]=u.useState([]),[P,I]=u.useState([]),[w,m]=u.useState([]),[R,T]=u.useState([]),[M,A]=u.useState([]),[N,D]=u.useState([]),[H,U]=u.useState([]),[v,k]=u.useState([]),[B,L]=u.useState([]),[V,Q]=u.useState([]),[z,_]=u.useState([]),[Y,ee]=u.useState([]),[oe,ne]=u.useState([]),[fe,$]=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(Vo,{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(Te,{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(F.BwgInput,{inputProps:{placeholder:"기본 속성 적용"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgInput,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgInput,{inputProps:{placeholder:"allowClear 속성 적용, 입력 후 클리어 버튼 표시",allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgInput,{inputProps:{placeholder:"maxLength 속성 적용 ( 10자 제한 )",maxLength:10}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:6,children:e.jsx(F.BwgInput,{inputProps:{variant:"outlined",placeholder:"variant 속성 적용 ( outlined )"}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgInput,{inputProps:{variant:"filled",placeholder:"variant 속성 적용 ( filled )"}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgInput,{inputProps:{variant:"borderless",placeholder:"variant 속성 적용 ( borderless )"}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgInput,{inputProps:{variant:"underlined",placeholder:"variant 속성 적용 ( underlined )"}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgInput,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgInput,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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:[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:"10",variant:"'outlined'",status:"'warning'"},W=`<BwgInput
|
|
190
190
|
inputProps={{
|
|
191
|
-
${
|
|
191
|
+
${M.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
192
192
|
`)}
|
|
193
193
|
}}
|
|
194
|
-
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:
|
|
194
|
+
/>`;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)=>{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:"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(F.BwgTextArea,{inputProps:{placeholder:"기본 속성 적용"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgTextArea,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgTextArea,{inputProps:{placeholder:"allowClear 속성 적용, 입력 후 클리어 버튼 표시",allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgTextArea,{inputProps:{placeholder:"maxLength 속성 적용 ( 100자 제한 )",maxLength:100}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgTextArea,{inputProps:{placeholder:"rows 속성 적용 ( 4줄 )",rows:4}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgTextArea,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgTextArea,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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:[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:"100",rows:"4",autoSize:"{ minRows: 2, maxRows: 6 }",status:"'warning'"},W=`<BwgTextArea
|
|
195
195
|
inputProps={{
|
|
196
|
-
${
|
|
196
|
+
${N.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
197
197
|
`)}
|
|
198
198
|
}}
|
|
199
|
-
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:
|
|
199
|
+
/>`;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)=>{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(F.BwgNumber,{inputProps:{placeholder:"기본 속성 적용"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgNumber,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgNumber,{inputProps:{placeholder:"min, max 속성 적용 (0-100)",min:0,max:100}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgNumber,{inputProps:{placeholder:"precision 속성 적용 (소수점 2자리)",precision:2}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgNumber,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgNumber,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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:[H.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[H.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(H.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
200
|
inputProps={{
|
|
201
|
-
${
|
|
201
|
+
${H.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
202
202
|
`)}
|
|
203
203
|
}}
|
|
204
|
-
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:
|
|
205
|
-
${
|
|
204
|
+
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:H.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:H,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(F.BwgSearch,{placeholder:"기본 검색"})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgSearch,{placeholder:"disabled 속성 적용",disabled:!0})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgSearch,{placeholder:"allowClear 속성 적용",allowClear:!0})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgSearch,{placeholder:"팝업 검색 기능",popuCd:"example"})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:6,children:e.jsx(F.BwgSearch,{placeholder:"기본 검색"})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgSearch,{placeholder:"클리어 가능",allowClear:!0})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgSearch,{placeholder:"비활성화",disabled:!0})}),e.jsx(s.Col,{span:6,children:e.jsx(F.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(F.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(F.BwgSearch,{itemProps:{label:"일반"},placeholder:"일반"})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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:[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",allowClear:"true",onSearch:"value => message.info(`검색: ${value}`)",status:"'warning'"},W=`<BwgSearch
|
|
205
|
+
${v.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
206
206
|
`)}
|
|
207
|
-
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:
|
|
207
|
+
/>`;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)=>{k(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(F.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(F.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(F.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(F.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(F.BwgSelect,{selectProps:{placeholder:"showSearch 속성 적용",showSearch:!0,options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgSelect,{itemProps:{label:"일반"},selectProps:{placeholder:"일반",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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:[B.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[B.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(B.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
208
|
selectProps={{
|
|
209
|
-
${
|
|
209
|
+
${B.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
210
210
|
`)}
|
|
211
211
|
}}
|
|
212
|
-
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:
|
|
212
|
+
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:B.length===0,type:"primary",icon:e.jsx(q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:B,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(F.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(F.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(F.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(F.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(F.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(F.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(F.BwgMultiSelect,{itemProps:{label:"일반"},inputProps:{placeholder:"일반",list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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:[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",allowClear:"true",maxTagCount:"3",addField:"'ALL'",list:"[{ label: '옵션 1', value: '1' }, { label: '옵션 2', value: '2' }]"},W=`<BwgMultiSelect
|
|
213
213
|
inputProps={{
|
|
214
|
-
${
|
|
214
|
+
${V.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
215
215
|
`)}
|
|
216
216
|
}}
|
|
217
|
-
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:
|
|
217
|
+
/>`;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)=>{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(F.BwgDatePicker,{inputProps:{placeholder:"기본 날짜 선택"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgDatePicker,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgDatePicker,{inputProps:{placeholder:"allowClear 속성 적용",allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgDatePicker,{inputProps:{placeholder:"showToday 속성 적용",showToday:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgDatePicker,{inputProps:{placeholder:"format 속성 적용",format:"YYYY-MM-DD"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgDatePicker,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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
218
|
inputProps={{
|
|
219
219
|
${z.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
220
220
|
`)}
|
|
221
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:
|
|
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:S,onSelectionChange:y,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(F.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],allowClear:!0}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],format:"YYYY-MM-DD"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgRangePicker,{itemProps:{label:"일반"},inputProps:{placeholder:["시작일","종료일"]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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
223
|
inputProps={{
|
|
224
224
|
${Y.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
225
225
|
`)}
|
|
226
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:
|
|
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:j,onSelectionChange:C,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(F.BwgCheck,{inputProps:{children:"체크박스"}})]}),e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"disabled: true"}),e.jsx(F.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(F.BwgCheck,{inputProps:{children:"부분 선택 체크박스",indeterminate:!0}})]}),e.jsxs(s.Col,{span:12,children:[e.jsx(s.Typography.Text,{strong:!0,children:"status: 'warning'"}),e.jsx(F.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(F.BwgCheck,{itemProps:{label:"일반"},inputProps:{children:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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
228
|
inputProps={{
|
|
229
229
|
${oe.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
230
230
|
`)}
|
|
231
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:
|
|
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:I,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(F.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgCheckList,{itemProps:{label:"일반"},inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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
233
|
inputProps={{
|
|
234
234
|
${fe.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
235
235
|
`)}
|
|
236
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)=>{
|
|
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)=>{$(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:w,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(F.BwgRadio,{inputProps:{children:"기본 라디오 버튼"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.BwgRadio,{inputProps:{children:"disabled 속성 적용",disabled:!0}})})]}),e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgRadio,{inputProps:{children:"status 속성 적용 (warning)"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.BwgRadio,{itemProps:{label:"일반"},inputProps:{children:"일반"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(xt,{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
238
|
inputProps={{
|
|
239
239
|
${K.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
240
240
|
`)}
|
|
241
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={{
|
|
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(F.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(F.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(F.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(F.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,S)=>(S?.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,S)=>(S?.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}=pt.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),S=u.useRef(null),y=u.useRef(null),j=u.useRef(null),C=u.useRef(null),[P,I]=u.useState(null),w=u.useRef(null),m=u.useRef(null),R=u.useRef(null),T=u.useRef(null),[M,A]=u.useState(!1),[N,D]=u.useState(!1),[H,U]=u.useState(!1),[v,k]=u.useState(!1),B=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)},V=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(F.BwgInput,{...W});case"BwgSelect":return e.jsx(F.BwgSelect,{...W});case"BwgSearch":return e.jsx(F.BwgSearch,{...W});case"BwgDatePicker":return e.jsx(F.BwgDatePicker,{...W});case"BwgRangePicker":return e.jsx(F.BwgRangePicker,{...W});case"BwgRadio":return e.jsx(F.BwgRadio,{...W});case"BwgCheck":return e.jsx(F.BwgCheck,{...W});case"BwgCheckList":return e.jsx(F.BwgCheckList,{...W});case"BwgTextArea":return e.jsx(F.BwgTextArea,{...W});case"BwgNumber":return e.jsx(F.BwgNumber,{...W});case"BwgMultiSelect":return e.jsx(F.BwgMultiSelect,{...W});case"BwgMaskedInput":return e.jsx(F.BwgMaskedInput,{...W,mask:"0000-00-00"});case"BwgMaskedPicker":return e.jsx(F.BwgMaskedPicker,{...W});case"BwgButton":return e.jsx(F.BwgButton,{...W,children:"버튼"});case"BwgUploader":return e.jsx(F.BwgUploader,{...W});case"BwgLargeUploader":return e.jsx(F.BwgLargeUploader,{...W});default:return e.jsx(F.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(F.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
243
|
`,G.required){const{components:ie,size:ce}=G.required,pe=ce==="100%"?1:ce==="50%"?2:ce==="33%"?3:4;W+=` reqArea: {
|
|
244
244
|
`,W+=` row1: [
|
|
245
245
|
`,ie.forEach((ye,we)=>{W+=` <${ye} itemProps={{ label: '예제', name: 'exam' }} />,
|
|
@@ -295,19 +295,19 @@ ${K.map(J=>` ${J}: ${O[J]||"true"}`).join(`,
|
|
|
295
295
|
</ContentLayOut>`}return`// 아래 코드를 return 영역에 붙여 넣으시기 바랍니다.
|
|
296
296
|
<BwgView${W?" "+W:""}>
|
|
297
297
|
${J}
|
|
298
|
-
</BwgView>`}
|
|
298
|
+
</BwgView>`},$=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:()=>w.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
299
|
search: () => {
|
|
300
300
|
// getFormData() 함수는 searchBox의 모든 컴포넌트의 값을 가져옵니다.
|
|
301
301
|
console.log('search :: ', getFormData());
|
|
302
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
|
|
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:()=>{k(!0)},style:{background:"#28a745",borderColor:"#28a745",borderRadius:"6px",fontSize:"13px",padding:"6px 16px",height:"auto"},children:"예제드로어 열어보기"})})]}),target:()=>T.current}];return e.jsxs(Vo,{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(Te,{title:e.jsx("div",{children:"개요"})})}),e.jsx("div",{id:"nav-container",style:{padding:"10px"},children:e.jsx(Qt,{id:"readmeBtn",onClick:()=>{I("readmeBtn"),B("readme")},isActive:n==="readme",children:"준비하기"})}),e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(Te,{title:e.jsx("div",{children:"템플릿 목록"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(Qt,{id:"bwgpageTmpl01Btn",onClick:()=>{I("bwgpageTmpl01Btn"),B("bwgpageTmpl01")},isActive:n==="bwgpageTmpl01",children:"검색+그리드"}),e.jsx(Qt,{id:"bwgpageTmpl02Btn",onClick:()=>{I("bwgpageTmpl02Btn"),B("bwgpageTmpl02")},isActive:n==="bwgpageTmpl02",children:"검색+그리드(좌)+상세(우)"}),e.jsx(Qt,{id:"bwgpageTmpl03Btn",onClick:()=>{I("bwgpageTmpl03Btn"),B("bwgpageTmpl03")},isActive:n==="bwgpageTmpl03",children:"검색+그리드(상)+상세(하)"}),e.jsx(Qt,{id:"bwgpageTmpl04Btn",onClick:()=>{I("bwgpageTmpl04Btn"),B("bwgpageTmpl04")},isActive:n==="bwgpageTmpl04",children:"검색+그리드(좌)+그리드(우)"}),e.jsx(Qt,{id:"bwgpageTmpl05Btn",onClick:()=>{I("bwgpageTmpl05Btn"),B("bwgpageTmpl05")},isActive:n==="bwgpageTmpl05",children:"검색+그리드(상)+그리드(하)"})]}),e.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(Te,{title:e.jsx("div",{children:"공통기능 활용"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(Qt,{id:"buttonsBtn",onClick:()=>{I("buttonsBtn"),B("application"),A(!0)},isActive:n==="buttons",children:"공통버튼 활용하기"}),e.jsx(Qt,{id:"popupBtn",onClick:()=>{I("popupBtn"),B("application"),D(!0)},isActive:n==="popup",children:"팝업 활용하기"}),e.jsx(Qt,{id:"drawerBtn",onClick:()=>{I("drawerBtn"),B("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:()=>V("bwgpageTmpl01"),onCopyCode:()=>$("bwgpageTmpl01")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl01"),children:e.jsx(Be,{children:e.jsx(be,{style:{height:"300px"},children:e.jsx(Oe,{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:()=>V("bwgpageTmpl02"),onAddPermissionButton:()=>{console.log("템플릿02 - 권한버튼 추가")},onCopyCode:()=>$("bwgpageTmpl02")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl02"),children:e.jsxs(Be,{children:[e.jsx(be,{className:"w50 mr20",style:{height:"300px"},children:e.jsx(Oe,{ref:E,gridColumns:pr})}),e.jsx(be,{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:()=>V("bwgpageTmpl03"),onAddPermissionButton:()=>{console.log("템플릿03 - 권한버튼 추가")},onCopyCode:()=>$("bwgpageTmpl03")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl03"),children:e.jsxs(Be,{type:"vertical",children:[e.jsx(be,{style:{height:"300px"},className:"mb20",children:e.jsx(Oe,{ref:g,gridColumns:pr})}),e.jsx(be,{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:()=>V("bwgpageTmpl04"),onAddPermissionButton:()=>{console.log("템플릿04 - 권한버튼 추가")},onCopyCode:()=>$("bwgpageTmpl04")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl04"),children:e.jsxs(Be,{children:[e.jsx(be,{className:"w50 mr20",style:{height:"300px"},children:e.jsx(Oe,{ref:S,gridColumns:pr})}),e.jsx(be,{className:"w50",style:{height:"300px"},children:e.jsx(Oe,{ref:S,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:()=>V("bwgpageTmpl05"),onAddPermissionButton:()=>{console.log("템플릿05 - 권한버튼 추가")},onCopyCode:()=>$("bwgpageTmpl05")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl05"),children:e.jsxs(Be,{type:"vertical",children:[e.jsx(be,{style:{height:"300px"},className:"mb20",children:e.jsx(Oe,{ref:y,gridColumns:pr})}),e.jsx(be,{style:{height:"300px"},children:e.jsx(Oe,{ref:y,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:()=>{k(!0)},children:"드로어열기"})]}),e.jsx(s.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:e.jsx(s.Divider,{type:"vertical"})}),e.jsxs(s.Flex,{ref:w,gap:8,className:"permission-buttons",children:[e.jsx(s.Button,{ref:m,className:"bwg-btn",onClick:()=>{},children:"조회"}),e.jsx(s.Button,{ref:C,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(Be,{children:e.jsx(be,{style:{height:"300px"},children:e.jsx(Oe,{ref:j,gridColumns:pr})})})})})]})})})})]})]}),e.jsx(s.Tour,{open:M,onClose:()=>A(!1),steps:K}),e.jsx(s.Tour,{open:N,onClose:()=>D(!1),steps:Z}),e.jsx(s.Tour,{open:H,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:v,onClose:()=>{k(!1),U(!1)},placement:"right",zIndex:1500,children:e.jsxs(Be,{type:"vertical",children:[e.jsxs(s.Card,{className:"w100 mb20",children:[e.jsx(Te,{title:"예제 코드 : 컴포넌트 안에 입력하세요."}),e.jsx(jo,{importText:"const [drawerOpen, setDrawerOpen] = useState<boolean>(false);"})]}),e.jsxs(s.Card,{className:"w100",children:[e.jsx(Te,{title:"예제 코드 : BwgView 안에 입력하세요."}),e.jsx(jo,{importText:`<BwgDrawer
|
|
304
304
|
title="드로어 예제"
|
|
305
305
|
open={drawerOpen}
|
|
306
306
|
onClose={() => {
|
|
307
307
|
setDrawerOpen(false);
|
|
308
308
|
}}
|
|
309
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';
|
|
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(Vo,{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(Te,{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(Te,{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(Te,{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
311
|
|
|
312
312
|
const MyComponent = () => {
|
|
313
313
|
// [현재값, 값을변경하는함수] = useState(초기값)
|
|
@@ -1025,4 +1025,4 @@ const Parent = () => {
|
|
|
1025
1025
|
<button onClick={handleGetValue}>값 가져오기</button>
|
|
1026
1026
|
</div>
|
|
1027
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&ⅇ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;
|
|
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("");pt.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,S,y)=>{if(!y)return"0 Bytes";const j=Number(y);if(isNaN(j)||j===0)return"0 Bytes";const C=1024,P=["Bytes","KB","MB","GB","TB"],I=Math.floor(Math.log(j)/Math.log(C));return parseFloat((j/Math.pow(C,I)).toFixed(2))+" "+P[I]}},{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,S,y)=>{if(!y)return"0 Bytes";const j=Number(y);if(isNaN(j)||j===0)return"0 Bytes";const C=1024,P=["Bytes","KB","MB","GB","TB"],I=Math.floor(Math.log(j)/Math.log(C));return parseFloat((j/Math.pow(C,I)).toFixed(2))+" "+P[I]}},{fieldName:"filePath",header:{text:"파일 경로"},width:100,styleName:"right"}],[]),h={onCurrentRowChanged(g,S,y){if(y<0)return;let j=g.getDataSource().getJsonRow(y);a(j.fileGrpKey),j.mltpYn=="Y"?se.callService("SCMFILE00106",{crprCd:se.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:j.fileGrpKey,fileKey:j.fileKey},{},t.appCd).then(C=>{o.current?.addAllData(C.sub)}):o.current?.dp?.clearRows()}},f={container:{check:!0,checkAll:!0,indicator:!0,footer:!0}},x={SCMFILE00101:()=>{se.callService("SCMFILE00101",{crprCd:se.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());se.downloadByFileKey(g.fileKey)}};return e.jsx(ht,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{E.search()}},{id:"download",label:"다운로드",onClick:()=>{E.download()}}]},children:e.jsxs(Be,{type:"horizontal",children:[e.jsxs(be,{className:"w60",children:[e.jsx(Te,{title:"파일 목록",children:e.jsx("div",{style:{float:"right"},children:e.jsx(s.Space,{children:e.jsx(F.BwgButton,{onClick:()=>E.download(),children:"다운로드"})})})}),e.jsx(Oe,{ref:n,gridColumns:p,gridOptions:f,gridEvents:h})]}),e.jsx(be,{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(Te,{title:"dtls 그리드"}),e.jsx(Oe,{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(F.BwgInput,{itemProps:{label:"파일 그룹키 (fileGrpKey)"},inputProps:{value:i,onChange:g=>a(g.target.value)}}),e.jsx(F.BwgUploader,{fileGrpKey:i}),e.jsx(s.Divider,{orientation:"left",style:{borderColor:"#7cb305"},children:"파일업로드시 fileGrpKey 채번 및 연동"}),e.jsx(F.BwgInput,{itemProps:{label:"채번 그룹키 (fileGrpKey2)"},inputProps:{value:l,disabled:!0}}),e.jsx(F.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(F.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=y=>{y.key==="Enter"&&h()},x=()=>{console.log("selectedRows:",c),c.length>0?n?.(c[0]):n?.({})},E=()=>{i.onCancel?.(),o?.()},g=u.useMemo(()=>({SCMPRGR00101:()=>{const y={...a.current?.getFormData()};se.callService("SCMPRGR00101",y).then(j=>{console.log("response.programs:",j.data),l.current?.addAllData(j.data||[])}).catch(j=>{console.error("오류:",j)})}}),[]),S={onCurrentRowChanged:(y,j,C)=>{if(C>=0){const P=l.current?.vw?.getItemIndex(C),I=l.current?.vw?.getValues(P||0);d([I])}},onCellDblClicked:(y,j)=>{const C=j.itemIndex;if(C>=0){const P=l.current?.vw?.getValues(C);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(F.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(F.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(Oe,{ref:l,gridColumns:p,gridOptions:{container:{radio:!0,footer:!1}},gridEvents:S,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(C,P,I){const w=C.getValue(P.index,"menuGbCd");if(w==="CMPRGRM")return{style:{background:"#e8f0ff"}};if(w==="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=()=>{S.SCMMENU00104()},f=j=>{j.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?.()},S=u.useMemo(()=>({SCMMENU00104:()=>{const j={crprCd:se.getCrprCd(),...a.current?.getFormData()};se.callService("SCMMENU00104",j).then(C=>{console.log("response.menus:",C.sub),l.current?.addAllData(C.sub,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(C=>{console.error("오류:",C)})}}),[]),y=u.useMemo(()=>({onCurrentRowChanged:(j,C,P)=>{if(P>=0){const I=l.current?.vw?.getItemIndex(P),w=l?.current?.vw?.getValues(I||0);d([w])}},onCellDblClicked:(j,C)=>{const P=C.itemIndex;if(P>=0){const I=l.current?.vw?.getValues(P);console.log(I),d([I]),n?.(I)}}}),[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(F.BwgButton,{onClick:()=>S.SCMMENU00104(),style:{marginRight:8},children:"검색"},"search"),e.jsx(F.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(F.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:S.SCMMENU00104}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.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(F.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(Oe,{ref:l,type:"tree",gridColumns:p,gridOptions:{container:{radio:!0,footer:!1}},gridEvents:y,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),[S,y]=u.useState({}),[j,C]=u.useState(!1),[P,I]=u.useState({});u.useEffect(()=>{const M=n.getFieldValue("sysCd"),A=n.getFieldValue("appCd"),N=n.getFieldValue("menuGbCd"),D=n.getFieldValue("deftMenuNo");i(M??null),l(A??null),h(N??"CMPRGRP"),x(D??!0),M&&Lr[M]?d(Lr[M]):d([])},[n]);const w=M=>{i(M),M&&Lr[M]?d(Lr[M]):d([]),n.resetFields(["appCd","scrnId","scrnNm","menuPrntId","menuPrntNm"])},m=M=>{x(M),M&&n.setFieldsValue({menuNo:""})},R=M=>{M&&n.setFieldsValue({menuPrntId:M.menuId,menuPrntNm:M.menuNm}),g(!1),y({})},T=M=>{M&&n.setFieldsValue({scrnId:M.prgrId,scrnNm:M.prgrNm}),C(!1),I({})};return e.jsxs(e.Fragment,{children:[e.jsx(s.Row,{gutter:12,children:e.jsx(s.Col,{span:24,children:e.jsx(F.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:M=>{h(M.target.value)}}})})}),e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:12,children:e.jsx(F.BwgSelect,{itemProps:{name:"sysCd",label:"시스템"},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],onChange:w,disabled:t||r==="EDIT",placeholder:"시스템을 선택하세요"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.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(F.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(F.BwgSearch,{itemProps:{label:"프로그램ID",name:["scrnId","scrnNm"]},readOnly:t,popupConfig:!0,onSearch:()=>{o?(C(!0),I({sysCd:o,keyword:n.getFieldValue("scrnNm")})):se.showWarning("시스템을 선택하세요")}})})}),p!=="CMPRGRM"&&e.jsx(s.Row,{gutter:24,children:e.jsx(s.Col,{span:24,children:e.jsx(F.BwgSearch,{itemProps:{label:"상위 메뉴",name:["menuPrntId","menuPrntNm"]},readOnly:t,onSearch:()=>{console.log("formSysCd:",o),o?(g(!0),y({sysCd:o,keyword:n.getFieldValue("menuPrntNm")})):se.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(F.BwgFormItem,{name:"menuNo",label:"메뉴번호",children:e.jsx(s.Input.OTP,{length:4,formatter:M=>M.replace(/\D/g,""),disabled:r=="NEW"?f:t,style:{width:"180px"}})})}),r=="NEW"&&e.jsx(s.Col,{span:3,offset:1,children:e.jsx(F.BwgCheck,{itemProps:{name:"isAutoMenuNo",label:"자동채번"},inputProps:{defaultChecked:!0,onChange:M=>m(M.target.checked)}})})]}),e.jsx(s.Col,{span:6,children:e.jsx(F.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(F.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(F.BwgInput,{itemProps:{name:"iconCd",label:"아이콘명"},inputProps:{readOnly:t,variant:t?"borderless":"outlined"}})})]}),e.jsx(F.BwgTextArea,{itemProps:{name:"menuDscr",label:"메뉴 설명"},inputProps:{disabled:t,rows:3}}),e.jsx(mu,{open:j,searchContext:P,onOk:T,onClose:()=>{C(!1),I({})}}),e.jsx(xu,{open:E,searchContext:S,onOk:R,onClose:()=>{g(!1),y({})}})]})},cv=t=>{const r=u.useRef(null),n=u.useRef(null),o=u.useRef(null),i=ut.useCodeStore(),{getFormData:a,setFormData:l}=pt.useSearchBox(),[c,d]=u.useState([]),[p,h]=u.useState(!1),[f,x]=u.useState(""),[E,g]=u.useState(-1),S=u.useCallback(T=>{h(!0),x(T)},[]),y=u.useCallback(()=>{h(!1),x("")},[]),j=u.useMemo(()=>i.getGridLookup("CMPRGR"),[i]),C=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",...j},{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}],[j]);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 M=o.current?.vw?.getValues(T);n.current?.setFieldsValue(M)}}else n.current?.resetFields()},[f]),u.useEffect(()=>{setTimeout(()=>{o.current?.vw&&o.current.vw.setRowStyleCallback(function(M,A,N){const D=M.getValue(A.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:""}),w.SCMMENU00101()},I=()=>{n.current?.validateFields().then(T=>{console.log("Form values:",T),(f==="NEW"||f==="EDIT")&&w.SCMMENU00102()}).catch(T=>{console.log("Validation failed:",T)})},w={SCMMENU00101:()=>{const T={crprCd:se.getCrprCd(),...a()};console.log("Search data:",T),se.callService("SCMMENU00101",T,{},t.appCd).then(M=>{o.current?.addAllData(M.menus,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(M=>{console.error("오류:",M)})},SCMMENU00102:()=>{const T={iudFlag:f==="EDIT"?"U":"I",crprCd:se.getCrprCd(),...n?.current?.getFieldsValue()};delete T.scrnNm,delete T.menuPrntNm,se.callService("SCMMENU00102",T,{},t.appCd).then(M=>{console.log("Save response:",M),M.result>0&&(y(),w.SCMMENU00101())}).catch(M=>{console.error("저장 오류:",M)})},SCMMENU00103:()=>{const T={},M=o.current?.vw?.getCheckedRows(!1),A=[];M?.forEach(N=>{const D=o.current?.dp?.getJsonRow(N);A.push({crprCd:D.crprCd,sysCd:D.sysCd,appCd:D.appCd,menuId:D.menuId,menuGbCd:D.menuGbCd})}),T.sub=A,se.callService("SCMMENU00103",T,{},t.appCd).then(N=>{console.log(N),N?.result>0&&w.SCMMENU00101()})}},m={search:()=>{w.SCMMENU00101()},new:()=>{S("NEW")},delete:()=>{const T=o.current?.vw?.getCheckedRows(!1);if(T?.length==0){se.showWarning("삭제할 행을 체크하세요");return}else{let M=0,A=0,N=0;T?.forEach(D=>{const H=o.current?.dp?.getValue(D,"menuGbCd");H==="CMPRGRM"?M++:H==="CMPRGRS"?A++:H==="CMPRGRP"&&N++}),s.Modal.confirm({title:"삭제 안내",content:e.jsxs(e.Fragment,{children:[M>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"blue",children:["메인메뉴: ",M,"개"]})}),A>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"green",children:["서브메뉴: ",A,"개"]})}),N>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"orange",children:["프로그램: ",N,"개"]})}),"를 삭제하시겠습니까?"]}),onOk:()=>{w.SCMMENU00103()},onCancel:()=>{}})}}},R=u.useMemo(()=>({onCurrentRowChanged:(T,M,A)=>{g(A)},onItemChecked:(T,M,A)=>{if(!T._isUpdatingChildren)try{T._isUpdatingChildren=!0;const N=(D,H)=>{const U=T.getChildren(D);U&&U.length>0&&U.forEach(v=>{T.isCheckedItem(v)!==H&&(T.checkItem(v,H),N(v,H))})};N(M,A)}finally{setTimeout(()=>{T._isUpdatingChildren=!1},0)}}}),[]);return e.jsxs(ht,{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(F.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(F.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션",initialValue:""},selectProps:{options:c,placeholder:"시스템코드를 먼저 선택해주세요",onChange:m.search}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgInput,{itemProps:{name:"keyword",label:"검색어"},inputProps:{placeholder:"메뉴ID/메뉴명을 입력하세요.",onPressEnter:m.search}})})]})},children:[e.jsxs(Be,{type:"horizontal",children:[e.jsxs(be,{className:"w65 mr20",children:[e.jsx(Te,{title:"메뉴 트리"}),e.jsx(Oe,{ref:o,type:"tree",gridColumns:C,gridOptions:lv,gridEvents:R,bindRef:r})]}),e.jsx(be,{className:"w35",border:!0,overflow:{x:"auto",y:"auto"},children:e.jsx(Ut,{title:"메뉴 상세",titleChildren:e.jsx(e.Fragment,{children:E>=0&&e.jsx(F.BwgButton,{color:"gold",onClick:()=>S("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:y,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:y,className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:I,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}=pt.usePopup(),{getFormData:l}=pt.useSearchBox(),[c,d]=u.useState(!1),[p,h]=u.useState("new"),[f,x]=u.useState(null),[E,g]=u.useState([]),[S,y]=u.useState(""),[j,C]=u.useState(!1),[P,I]=u.useState(["조회","닫기"]),[w,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([]),y(""),C(!1),I(["조회","닫기"]),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}},M={SCMPOPU00101:()=>{se.callService("SCMPOPU00101",{},{},t.appCd).then(z=>{console.log("SCMPOPU00101:",z.data)}).catch(z=>{console.error("오류:",z)})},SCMPOPU00102:z=>{se.callService("SCMPOPU00102",z,{},t.appCd).then(_=>{console.log("SCMPOPU00102:",_.data),r.current?.addAllData(_.data)}).catch(_=>{console.error("오류:",_)})},SCMPOPU00103:z=>{console.log("save params:",z),se.callService("SCMPOPU00103",z,{},t.appCd).then(_=>{console.log("response:",_),_.result?(se.showSuccess(p==="new"?"팝업이 등록되었습니다.":"팝업이 수정되었습니다."),d(!1),x(null),g([]),y(""),o.current?.resetFields(),M.SCMPOPU00102()):(se.showDuplicateError("팝업코드"),o.current?.setFields([{name:"popuCd",errors:["이미 사용중인 팝업코드입니다."]}]))}).catch(_=>{console.error("오류:",_),se.showError("저장 중 오류가 발생했습니다.")})}},A={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(""),M.SCMPOPU00103({edit:p!=="new",info:{crprCd:se.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,_]),y(_.key)},openDefaultModal:()=>{C(!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]),C(!1)},previewPopup:async()=>{let z=f;if(!z){const _=r.current?.getCurrentRow();if(_===void 0||_<0){se.showError("미리보기할 팝업을 선택해주세요.");return}if(z=r.current?.vw?.getDataSource()?.getJsonRow(_),!z){se.showError("팝업 데이터를 가져올 수 없습니다.");return}}try{console.log("미리보기 팝업 실행:",z.popuCd),await a(z.popuCd,{popupData:z,isPreview:!0}),console.log("미리보기 팝업 열기 완료")}catch(_){console.error("미리보기 팝업 열기 실패:",_),se.showError("미리보기 팝업을 열 수 없습니다.")}}},N={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:se.getUserInfo()?.userId};console.log("검색 파라미터:",_),M.SCMPOPU00102(_)}catch(z){console.error("SearchBox formData 접근 오류:",z),M.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)}}},H={previewPopup:A.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:()=>V(_.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===S,ee=!z||z.trim()==="",oe=w&ⅇreturn Y?e.jsx(s.Input,{value:z,status:oe?"error":void 0,onChange:ne=>{const fe=[...E],$=fe.find(K=>_.key===K.key);$&&($.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===S?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===S?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===S?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===S?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===S?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:()=>B()})}),e.jsx(s.Tooltip,{title:"취소",children:e.jsx(s.Button,{type:"link",size:"small",icon:e.jsx(q.RedoOutlined,{}),onClick:k})})]}):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:()=>v(_)})}),e.jsx(s.Tooltip,{title:"삭제",children:e.jsx(s.Button,{type:"link",size:"small",danger:!0,icon:e.jsx(q.RestOutlined,{}),onClick:()=>L(_.key)})})]})}],v=z=>{y(z.key)},k=()=>{y("")},B=z=>{y("")},L=z=>{g(_=>_.filter(Y=>Y.key!==z))},V=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:",H),console.log("grantEvent.update 함수 존재 여부:",!!D.update),e.jsx(ht,{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:()=>{H.previewPopup()}}]},searchBox:{reqRows:[e.jsx(F.BwgFormItem,{name:"systId",label:"시스템ID",children:e.jsx(s.Select,{options:i.getCodeList("SYST"),placeholder:"검색어를 입력하세요",allowClear:!0},"input1")}),e.jsx(F.BwgFormItem,{name:"keyword",label:"검색어",children:e.jsx(s.Input,{placeholder:"프로그램ID, 프로그램명, 페이지URL"})}),e.jsx(e.Fragment,{}),e.jsx(e.Fragment,{})]},children:e.jsxs(Be,{type:"horizontal",children:[e.jsxs(be,{className:"w60",children:[e.jsx(Te,{title:"팝업 목록",icons:{type:"antd"}}),e.jsx(Oe,{type:"nrml",gridColumns:R,gridOptions:T,gridEvents:N,ref:r})]}),e.jsx(be,{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(F.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(F.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(F.BwgFormItem,{label:"팝업코드",name:"popuCd",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.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(F.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(F.BwgFormItem,{label:"팝업호출URL",name:"popuUrl",children:e.jsx(s.Input,{variant:"borderless",readOnly:!0})}),e.jsx(F.BwgFormItem,{label:"비고",name:"rmrk",children:e.jsx(s.Input.TextArea,{variant:"borderless",readOnly:!0,rows:3})}),e.jsx(F.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([]),y("")},children:e.jsxs(F.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(F.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(F.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(F.BwgFormItem,{label:"팝업코드",name:"popuCd",rules:[{required:!0,message:"팝업코드를 입력하세요"}],children:e.jsx(s.Input,{placeholder:"팝업코드를 입력하세요"})})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.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(F.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(F.BwgFormItem,{label:"팝업호출URL",name:"popuUrl",rules:[{required:!0,message:"팝업호출URL을 입력하세요"}],children:e.jsx(s.Input,{placeholder:"팝업 URL을 입력하세요 (예: cm/TestPopup)",addonBefore:"popup/"})}),e.jsx(F.BwgFormItem,{label:"비고",name:"rmrk",children:e.jsx(s.Input.TextArea,{placeholder:"비고를 입력하세요",rows:3})}),e.jsxs(Te,{title:"버튼 목록",iconVisible:!1,children:[e.jsx(s.Button,{icon:e.jsx(q.SettingTwoTone,{}),onClick:A.openDefaultModal,children:"기본값"}),e.jsx(s.Button,{icon:e.jsx(q.PlusOutlined,{}),onClick:A.addButton,children:"추가"})]}),e.jsx(s.Table,{columns:U,dataSource:E,pagination:!1,size:"small",bordered:!0,scroll:{x:600},rowKey:"key"}),w&&e.jsxs("div",{style:{marginTop:"8px",padding:"8px 12px",backgroundColor:"#fff2f0",border:"1px solid #ffccc7",borderRadius:"6px",color:"#cf1322",fontSize:"14px"},children:["⚠️ ",w]}),e.jsxs("div",{style:{textAlign:"right",marginTop:"16px"},children:[e.jsx(s.Button,{type:"primary",onClick:A.formFinish,style:{marginRight:"8px"},children:"저장"}),e.jsx(s.Button,{onClick:()=>{d(!1),x(null)},children:"취소"})]})]})}),e.jsxs(s.Modal,{title:"기본 버튼 선택",open:j,onOk:A.applyDefaultButtons,onCancel:()=>C(!1),okText:"적용",cancelText:"취소",children:[e.jsx("p",{children:"추가할 기본 버튼을 선택하세요:"}),e.jsx(s.Checkbox.Group,{value:P,onChange:z=>I(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(F.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(F.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(F.BwgInput,{itemProps:{name:"prgrId",label:"프로그램 코드"},inputProps:{disabled:r==="EDIT",readOnly:t,variant:t?"borderless":"outlined"}})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.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(F.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(F.BwgInput,{itemProps:{name:"prgrUrl",label:"프로그램 URL"},inputProps:{readOnly:t,variant:t?"borderless":"outlined",placeholder:"/cm/rsrc/파일명 (.tsx 생략)"}}),e.jsx(F.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}=pt.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)},[]),S=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 y=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}),C.search()},[a]),j=u.useCallback(()=>{P.SCMPRGR00102()},[h]),C={search:()=>{P.SCMPRGR00101()},new:()=>{g("NEW")},delete:()=>{const m=r.current?.vw?.getCheckedRows(!1)??[];if(m.length==0){se.showWarning("삭제할 행을 체크하세요");return}uv({title:"삭제 안내",content:`${m.length}개 행을 삭제하시겠습니까?`,onOk:()=>{P.SCMPRGR00103()}})}},P={SCMPRGR00101:()=>{se.callService("SCMPRGR00101",i(),{},t.appCd).then(m=>{r.current?.addAllData(m.data)})},SCMPRGR00102:()=>{const m={iudFlag:h==="EDIT"?"U":"I",...o.current?.getFieldsValue()??{}};se.callService("SCMPRGR00102",m,{},t.appCd).then(R=>{R.result>0?(S(),P.SCMPRGR00101()):se.showError(R.message)}).catch(R=>{console.error("오류:",R)})},SCMPRGR00103:()=>{const m={},R=r.current?.vw?.getCheckedRows(!1)??[],T=[];R.forEach(M=>{const A=r.current?.dp?.getJsonRow(M);T.push({sysCd:A.sysCd,appCd:A.appCd,prgrId:A.prgrId})}),m.sub=T,se.callServiceBySysCd("SCMPRGR00103",m).then(M=>{M.result>0&&P.SCMPRGR00101()}).catch(M=>{console.error("오류:",M)})}},I={editForm:()=>{if((r.current?.getCurrentRow()??-1)<0){se.showWarning("행 선택 후 변경 가능합니다.");return}g("EDIT")}},w={onCurrentRowChanged(m,R,T){E(T)}};return e.jsxs(ht,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{C.search()}},{id:"new",label:"신규",onClick:()=>{C.new()}},{id:"delete",label:"삭제",onClick:()=>{C.delete()}}]},searchBox:{reqRows:e.jsxs(s.Row,{gutter:12,children:[e.jsx(s.Col,{span:6,children:e.jsx(F.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:y}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션"},selectProps:{options:l,placeholder:"시스템코드를 먼저 선택해주세요",onChange:C.search}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgInput,{itemProps:{name:"keyword",label:"프로그램명"},inputProps:{placeholder:"프로그램ID/프로그램명을 입력하세요.",onPressEnter:C.search}})}),e.jsx(s.Col,{span:6,children:e.jsx(F.BwgRadio,{itemProps:{name:"enblYn",label:"사용여부"},inputProps:{defaultValue:"",size:"small",options:[{label:"전체",value:""},{label:"Y",value:"Y"},{label:"N",value:"N"}]}})})]})},children:[e.jsxs(Be,{type:"horizontal",children:[e.jsxs(be,{className:"w60 mr20",children:[e.jsx(Te,{title:"프로그램 목록",icons:{type:"antd"}}),e.jsx(Oe,{ref:r,gridColumns:pv,gridOptions:fv,gridEvents:w,bindRef:n})]}),e.jsx(be,{className:"w40",border:!0,children:e.jsx(Ut,{title:"프로그램 상세",titleChildren:e.jsx(e.Fragment,{children:x>=0&&e.jsx(F.BwgButton,{type:"dashed",onClick:I.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:S,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:()=>{S()},className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:j,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}},S=j=>{n(j)},y=j=>{i(j),j==="group"&&l(null)};return u.useEffect(()=>{r&&se.callService("SCMSYST00101",{crprCd:se.getCrprCd(),applCd:r},{},t.appCd).then(j=>{console.log({SCMSYST00101:j.data}),c.current?.addAllData(j.data)})},[r]),u.useEffect(()=>{r&&se.callService("SCMCODE00101",{crprCd:se.getCrprCd(),srchGb:o==="group"?"group":"detail"},{},t.appCd).then(j=>{console.log({SCMCODE00101:j.data}),o==="group"?d.current?.addAllData(j.data):p.current?.addAllData(j.data)})},[o,r]),e.jsxs(ht,{children:[e.jsx(be,{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:j=>e.jsx(s.List.Item,{children:e.jsx(s.Card,{hoverable:!0,style:{height:"100%",cursor:"pointer",border:r===j.id?"2px solid #1890ff":"1px solid #f0f0f0",backgroundColor:r===j.id?"#f0f8ff":"#ffffff",boxShadow:r===j.id?"0 4px 12px rgba(24, 144, 255, 0.15)":"0 2px 8px rgba(0, 0, 0, 0.06)",position:"relative",zIndex:r===j.id?1:0},onClick:()=>S(j.id),actions:[e.jsx(s.Tag,{color:j.color,children:j.status==="active"?"활성":"비활성"},"status")],children:e.jsx(s.Card.Meta,{avatar:e.jsx("div",{style:{fontSize:"24px",color:j.color==="blue"?"#1890ff":j.color==="green"?"#52c41a":"#fa8c16"},children:j.icon}),title:e.jsxs(s.Space,{children:[e.jsx("span",{style:{fontWeight:"bold",color:r===j.id?"#1890ff":"#333"},children:j.name}),e.jsx(s.Tag,{color:j.color,children:j.id})]}),description:e.jsx("div",{style:{marginTop:"8px"},children:e.jsx("p",{style:{color:r===j.id?"#1890ff":"#666",margin:0},children:j.description})})})})})})}),e.jsx(be,{border:!0,children:e.jsxs(Be,{type:"horizontal",children:[e.jsxs(be,{className:"w40",children:[e.jsxs(Te,{title:"업무코드 목록",children:[e.jsx(s.Button,{children:"신규"}),e.jsx(s.Button,{children:"변경"})]}),e.jsx(Oe,{ref:c,type:"nrml",gridColumns:f,gridOptions:g})]}),e.jsxs(be,{className:"w60",children:[e.jsxs(Te,{title:"시스템 공통코드 목록",tooltip:{title:"시스템 전역에 배포될 코드 목록입니다."},children:[e.jsx(s.Button,{children:"신규"}),e.jsx(s.Button,{children:"변경"})]}),e.jsx(xt,{defaultActiveKey:"group",size:"small",tabPosition:"left",style:{height:"100%"},activeKey:o,onChange:y,items:[{key:"group",label:"그룹코드",icon:e.jsx(q.GroupOutlined,{}),children:e.jsx(Be,{children:e.jsx(be,{children:e.jsx(Oe,{ref:d,type:"nrml",gridColumns:x,gridOptions:g})})})},{key:"detail",label:"상세코드",icon:e.jsx(q.UngroupOutlined,{}),children:e.jsx(Oe,{ref:p,type:"nrml",gridColumns:E,gridOptions:g})}]})]})]})})]})},xv=()=>{const t=u.useRef(null),r=u.useRef(null),n=u.useRef(null),{showPopup:o}=pt.usePopup(),i=u.useMemo(()=>[{fieldName:"seq",header:{text:"순번"},width:60,styleName:"center",visible:!1},{fieldName:"stndYmd",header:{text:"휴일일자"},width:100,styleName:"center",required:!0},{fieldName:"hldyDscr",header:{text:"휴일명"},width:150,styleName:"left",required:!0},{fieldName:"hldyYn",header:{text:"휴일여부"},width:100,styleName:"center"},{fieldName:"lglHldyYn",header:{text:"법정휴일여부"},width:100,styleName:"center"}],[]),a=u.useMemo(()=>[{fieldName:"seq",header:{text:"순번"},width:60,styleName:"center",visible:!1},{fieldName:"stndYmd",header:{text:"휴일일자"},width:100,styleName:"center",required:!0},{fieldName:"hldyDscr",header:{text:"휴일명"},width:150,styleName:"left",required:!0},{fieldName:"hldyYn",header:{text:"휴일여부"},width:100,styleName:"center",renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{fieldName:"lglHldyYn",header:{text:"법정휴일여부"},width:100,styleName:"center",renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),l={edit:{editable:!1},container:{indicator:!0,footer:!0}},c={edit:{editable:!0},container:{check:!0,checkAll:!0,indicator:!0,footer:!0,state:!0}},d={search:()=>{p.SCMHLDY00101()},edit:()=>{p.SCMHLDY00102()}};u.useEffect(()=>{n.current?.setFormData({stndYmd:So().format("YYYY")}),d.search()},[]);const p={SCMHLDY00101:()=>{se.callService("SCMHLDY00101",{...n.current?.getFormData()||{},crprCd:se.getCrprCd(),sysCd:__SYS_CD__}).then(h=>{t.current?.addAllData(h.sub.filter(f=>f.sysCd==="CM")||[]),r.current?.addAllData(h.sub.filter(f=>f.sysCd!=="CM")||[])})},SCMHLDY00102:()=>{const h=r.current?.getGridSaveData();se.callService("SCMHLDY00102",{sub:h,crprCd:se.getCrprCd(),sysCd:__SYS_CD__}).then(f=>{d.search()})}};return e.jsx(ht,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{d.search()}},{id:"edit",label:"수정",onClick:()=>{d.edit()}}]},children:e.jsxs(Be,{type:"horizontal",children:[e.jsxs(be,{className:"w50",children:[e.jsx(Te,{title:"국경일/공휴일 API"}),e.jsx(Oe,{ref:t,type:"nrml",gridColumns:i,gridOptions:l})]}),e.jsxs(be,{className:"w50",border:!0,children:[e.jsxs(Te,{title:"사업장 휴일",children:[e.jsx(F.BwgButton,{type:"primary",onClick:()=>{r.current?.dp?.addRow?.({iudFlag:"I"})},children:"추가"}),e.jsx(F.BwgButton,{type:"primary",onClick:()=>{r.current?.deleteGridData()},children:"삭제"}),e.jsx(F.BwgButton,{onClick:()=>{o("CMHldyMstrP01")},children:"조회팝업"})]}),e.jsx(Oe,{ref:r,type:"nrml",gridColumns:a,gridOptions:c})]})]})})},vv=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(ht,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{}}]},searchBox:{},children:e.jsx(Be,{children:e.jsx(be,{style:{height:"300px"},children:e.jsx(Oe,{ref:r,gridColumns:n})})})})},yv=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:yv(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 bv(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 Cv(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 se.callService("SCMUTIL00103",{...t?.popupParams,...m}),T=Array.isArray(R?.data)?R.data:Array.isArray(R?.deptList)?R.deptList:Array.isArray(R)?R:[],M=bv(T);p(M);const A=Cv(T);a(A);const N=M[0]?.deptCd||kn(T.find(D=>kn(D).deptLvl===1)||{}).deptCd||kn(T[0]||{}).deptCd||"";c(N?[N]:[])}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 M=E(T.children,R);if(M)return M}}return null},[]),g=u.useMemo(()=>{const m=l[0];return m?E(d,m):null},[l,d,E]),S=u.useMemo(()=>{const m=T=>T.map(M=>({title:M.deptNm,key:M.deptCd,meta:M,children:M.children?m(M.children):void 0}));return m(d)},[d]),y=u.useMemo(()=>{const m=n.trim().toLowerCase();if(!m)return S;const R=T=>T.map(M=>{const A=M.meta,N=(A?.deptNm||"").toLowerCase().includes(m)||(A?.deptCd||"").toLowerCase().includes(m),D=M.children?R(M.children):void 0;return N||D&&D.length?{...M,children:D}:null}).filter(Boolean);return R(S)},[S,n]),j=u.useCallback(m=>{c(m.slice(0,1).map(String))},[]),C=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(M=>T?M.filter(A=>A!==R.key):[...M,R.key])},[i]),I=u.useCallback(()=>c([]),[]),w={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:()=>{w.confirm()}}],popupEvent:w,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Be,{children:e.jsx(be,{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(Te,{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:y,expandedKeys:i,selectedKeys:l,onSelect:j,onExpand:C,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:I,icon:e.jsx(q.RestOutlined,{style:{fontSize:24,color:"#FF6363"}})})]}):e.jsx("div",{style:{color:"#999",fontSize:14},children:"부서를 선택해주세요."})]})})]})})})})},wv=Object.freeze(Object.defineProperty({__proto__:null,default:vu},Symbol.toStringTag,{value:"Module"})),jv=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:jv(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 Sv(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 Rv(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,S]=u.useState([]),[y,j]=u.useState(!1),C=u.useCallback(async v=>{try{j(!0);const k=await se.callService("SCMUTIL00103",{...t?.popupParams,...v}),B=Array.isArray(k?.data)?k.data:Array.isArray(k?.deptList)?k.deptList:Array.isArray(k)?k:[],L=Sv(B);S(L);const V=Rv(B);c(V);const Q=L[0]?.deptCd||In(B.find(z=>In(z).deptLvl===1)||{}).deptCd||In(B[0]||{}).deptCd||"";p(Q?[Q]:[])}catch{s.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{j(!1)}},[t?.popupParams]);u.useEffect(()=>{C()},[C]);const P=u.useCallback((v,k)=>{for(const B of v){if(B.deptCd===k)return B;if(B.children){const L=P(B.children,k);if(L)return L}}return null},[g]),I=u.useMemo(()=>h.map(v=>{const k=P(g,v);if(!k)return null;const{children:B,...L}=k;return L}).filter(Boolean),[h,g,P]),w=u.useMemo(()=>{const v=k=>k.map(B=>({title:B.deptNm,key:B.deptCd,meta:B,children:B.children?v(B.children):void 0,isLeaf:!B.children||B.children.length===0}));return v(g)},[g]),m=u.useMemo(()=>{const v=n.trim().toLowerCase();if(!v)return w;const k=B=>B.map(L=>{const V=L.meta,Q=(V?.deptNm||"").toLowerCase().includes(v)||(V?.deptCd||"").toLowerCase().includes(v),z=L.children?k(L.children):void 0;return Q||z&&z.length>0?{...L,children:z}:null}).filter(Boolean);return k(w)},[w,n]),R=u.useCallback(v=>{const k=[],B=L=>{for(const V of L)if(V.deptCd===v&&V.children){const Q=z=>{for(const _ of z)k.push(_.deptCd),_.children&&Q(_.children)};Q(V.children)}else V.children&&B(V.children)};return B(g),k},[g]),T=u.useCallback((v,k)=>{let B=Array.isArray(v)?v:v?.checked??[];if(x&&k?.node?.key){const L=k.node.key,V=R(L);if(k.checked){const Q=new Set(B);for(const z of V)Q.add(z);B=Array.from(Q)}else{const Q=new Set([L,...V]);B=B.filter(z=>!Q.has(z))}}f(B)},[x,R]),M=u.useCallback(v=>{const k=v.map(String);if(p(k),k.length>0){const B=k[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},V=L(g,B);V&&a(V)}},[g]),A=u.useCallback(v=>c(v.map(String)),[]),N=u.useCallback((v,k)=>{if(v.stopPropagation(),k.children&&k.children.length>0){const B=l.includes(k.key);c(L=>B?L.filter(V=>V!==k.key):[...L,k.key])}},[l]),D=u.useCallback(v=>{f(k=>k.filter(B=>B!==v))},[]),H=u.useCallback(()=>{f([])},[]),U={confirm:()=>{if(h.length===0){s.message.error("부서를 선택해주세요.");return}const k=Array.from(new Set(h)).map(L=>{const V=P(g,L);return V?{deptCd:V.deptCd,deptNm:V.deptNm,hrnkDeptCd:V.hrnkDeptCd,hrnkDeptNm:V.hrnkDeptNm}:null}).filter(Boolean),B=t?.config;B?.onSelect?B.onSelect(k):t?.config?.callback&&t.config.callback(JSON.stringify(k)),B?.onClose&&B.onClose(),t?.close?.()},cancel:()=>{const v=t?.config;v?.onCancel&&v.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(Be,{children:e.jsx(be,{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(Te,{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:v=>o(v.target.value)})}),e.jsx(s.Col,{span:6,style:{justifyContent:"center",display:"flex",alignItems:"center"},children:e.jsx(s.Checkbox,{checked:x,onChange:v=>E(v.target.checked),children:"하위까지 선택"})})]})]})}),e.jsx("div",{style:{padding:16,overflowY:"hidden"},children:e.jsx(s.Spin,{spinning:y,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:M,onExpand:A,onCheck:T,onDoubleClick:N,style:{overflow:"hidden"},titleRender:v=>{const k=v.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(v.key)?"bold":"normal"},children:k.deptNm}),e.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:k.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:["선택된 부서 (",I.length,"개)"]}),I.length>0&&e.jsx("button",{onClick:H,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:I.length===0?e.jsx("div",{style:{color:"#999",fontSize:14},children:"선택된 부서가 없습니다."}):I.map(v=>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:`${v.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:v.deptNm}),e.jsx("span",{style:{fontSize:11,color:"#8c8c8c",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:v.deptCd})]}),e.jsx("button",{onClick:()=>D(v.deptCd),style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",padding:2,lineHeight:0},"aria-label":`${v.deptNm} 선택 해제`,title:"선택 해제",children:"×"})]},v.deptCd))})]})})]})})})})},Tv=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,S]=u.useState(!1),y=u.useCallback(async()=>{try{S(!0);const N=await se.callService("SCMUTIL00105",{...t?.popupParams});console.log("📊 조직도 API 응답:",N);const D=Array.isArray(N?.data)?N.data:Array.isArray(N?.orgnList)?N.orgnList:Array.isArray(N)?N:[];if(D.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const H=j(D);console.log("🌳 구성된 조직도 트리:",H),E(H);const U=D.filter(v=>v.deptLvl<=2).map(v=>v.deptCd);if(c(U),H.length>0){const v=H[0];p([v.deptCd]),a(v.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(N){console.error("❌ 조직도 데이터 로딩 실패:",N),s.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{S(!1)}},[t?.popupParams]),j=u.useCallback(N=>{const D=[...N].sort((k,B)=>k.deptLvl-B.deptLvl||k.orgSortOrd-B.orgSortOrd||k.deptCd.localeCompare(B.deptCd)),H=new Map;for(const k of D)H.set(k.deptCd,{...k,children:[]});const U=[];for(const k of D){const B=H.get(k.deptCd),L=k.hrnkDeptCd;L&&H.has(L)?H.get(L).children.push(B):U.push(B)}const v=k=>{if(!k.children||k.children.length===0){delete k.children;return}k.children.forEach(v)};return U.forEach(v),U},[]);u.useEffect(()=>{y()},[y]);const C=u.useMemo(()=>{const N=U=>{let v=[];return U.forEach(k=>{k.employees&&(v=v.concat(k.employees)),k.children&&(v=v.concat(N(k.children)))}),v},D=N(x),H=D.filter((U,v,k)=>v===k.findIndex(B=>B.empNo===U.empNo));return console.log(`👥 전체 사원 수: ${D.length}, 중복 제거 후: ${H.length}`),H},[x]),P=u.useMemo(()=>{const N=D=>D.map(H=>({title:H.deptNm,key:H.deptCd,children:H.children?N(H.children):void 0,isLeaf:!H.children||H.children.length===0}));return N(x)},[x]),I=u.useMemo(()=>{if(!n.trim())return P;const N=D=>D.map(H=>{const U=H.title.toLowerCase().includes(n.toLowerCase()),v=H.children?N(H.children):void 0;return U||v&&v.length>0?{...H,children:v}:null}).filter(Boolean);return N(P)},[P,n]),w=u.useMemo(()=>{if(!n.trim()){const N=k=>{let B=[];return k.forEach(L=>{L.employees&&(B=B.concat(L.employees)),L.children&&(B=B.concat(N(L.children)))}),B},D=(k,B)=>{for(const L of k){if(L.deptCd===B){let V=[...L.employees||[]];return L.children&&(V=V.concat(N(L.children))),V}if(L.children){const V=D(L.children,B);if(V.length>0)return V}}return[]},H=d[0];if(!H)return[];const U=D(x,H),v=U.filter((k,B,L)=>B===L.findIndex(V=>V.empNo===k.empNo));return console.log(`🔍 선택된 부서: ${H}, 반환된 사원 수: ${U.length}, 중복 제거 후: ${v.length}`),v}return C.filter(N=>N.empNm.toLowerCase().includes(n.toLowerCase())||N.empNo.toLowerCase().includes(n.toLowerCase())||N.deptNm.toLowerCase().includes(n.toLowerCase())||N.jbpsCd.includes(n)||N.jbgdCd.includes(n)||N.emplyStCd.includes(n))},[n,d,C,x]),m=u.useCallback(N=>{f(N)},[]),R=u.useCallback(N=>{const D=N.map(String);if(console.log(`🌳 트리 선택: ${D.join(", ")}`),p(D),D.length>0){const H=D[0],U=(k,B)=>{for(const L of k){if(L.deptCd===B)return L.deptNm;if(L.children){const V=U(L.children,B);if(V)return V}}return null},v=U(x,H);v&&a(v)}},[x]),T=u.useCallback(N=>{c(N.map(String))},[]),M=u.useCallback((N,D)=>{if(N.stopPropagation(),D.children&&D.children.length>0){const H=l.includes(D.key);c(H?U=>U.filter(v=>v!==D.key):U=>[...U,D.key])}},[l]),A={confirm:()=>{if(h){const N=t?.config;N?.onSelect?N.onSelect(h):t?.popupParams?.onSelect?t.popupParams.onSelect(h):t?.config?.callback&&t.config.callback(JSON.stringify(h,null,2)),N?.onClose&&N.onClose(),t?.close?.()}else s.message.error("사원을 선택해주세요.")},cancel:()=>{const N=t?.config;N?.onCancel&&N.onCancel(),t?.close?.()}};return e.jsx(Qr,{popup:t,buttons:[{id:"confirm",label:"확인",onClick:()=>{A.confirm()}}],popupEvent:A,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Be,{children:e.jsx(be,{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(Te,{title:"조직도"}),e.jsx(s.Input,{placeholder:"이름, 소속, 전화번호 검색",prefix:e.jsx(q.SearchOutlined,{}),value:n,allowClear:!0,onChange:N=>o(N.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:I,expandedKeys:l,selectedKeys:d,onSelect:R,onExpand:T,onDoubleClick:M,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:N=>e.jsx("span",{style:{padding:"4px 8px",borderRadius:"4px",fontWeight:d.includes(N.key)?"bold":"normal",display:"inline-block",width:"100%"},children:N.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:[w.map(N=>e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"12px",border:"1px solid #e0e0e0",borderRadius:"8px",marginBottom:"8px",cursor:"pointer",backgroundColor:h&&h.crprCd===N.crprCd&&h.wkplCd===N.wkplCd&&h.empNo===N.empNo&&h.jbpsCd===N.jbpsCd&&h.jbgdCd===N.jbgdCd&&h.empMarkOrd===N.empMarkOrd?"#efebff":"white"},onClick:()=>m(N),children:[e.jsx("div",{style:{marginRight:"12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},onClick:D=>{D.stopPropagation(),f(N)},children:h&&h.crprCd===N.crprCd&&h.wkplCd===N.wkplCd&&h.empNo===N.empNo&&h.jbpsCd===N.jbpsCd&&h.jbgdCd===N.jbgdCd&&h.empMarkOrd===N.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:[N.empNm,e.jsxs("span",{style:{fontSize:"12px",fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",N.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:"12px",color:"#666",marginBottom:"2px"},children:[N.deptNm," (",N.deptCd,") | 직급:"," ",N.jbpsCd," | 등급: ",N.jbgdCd]})]})]},`emp-${N.crprCd}-${N.wkplCd}-${N.empNo}-${N.jbpsCd}-${N.jbgdCd}-${N.empMarkOrd}`)),w.length===0&&e.jsx("div",{style:{textAlign:"center",padding:"40px",color:"#999",fontSize:"14px"},children:n?"검색 결과가 없습니다.":"해당 부서에 직원이 없습니다."})]})]})})]})})})})},Ev=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,S]=u.useState({}),y=u.useCallback(async()=>{try{E(!0);const v=await se.callService("SCMUTIL00105",{...t?.popupParams});console.log("📊 조직도 API 응답:",v);const k=Array.isArray(v?.data)?v.data:Array.isArray(v?.orgnList)?v.orgnList:Array.isArray(v)?v:[];if(k.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const B=j(k);console.log("🌳 구성된 조직도 트리:",B),f(B);const L=k.filter(V=>V.deptLvl<=2).map(V=>V.deptCd);if(c(L),B.length>0){const V=B[0];p([V.deptCd]),a(V.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(v){console.error("❌ 조직도 데이터 로딩 실패:",v),s.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{E(!1)}},[t?.popupParams]),j=u.useCallback(v=>{const k=[...v].sort((Q,z)=>Q.deptLvl-z.deptLvl||Q.orgSortOrd-z.orgSortOrd||Q.deptCd.localeCompare(z.deptCd)),B=new Map;for(const Q of k)B.set(Q.deptCd,{...Q,children:[]});const L=[];for(const Q of k){const z=B.get(Q.deptCd),_=Q.hrnkDeptCd;_&&B.has(_)?B.get(_).children.push(z):L.push(z)}const V=Q=>{if(!Q.children||Q.children.length===0){delete Q.children;return}Q.children.forEach(V)};return L.forEach(V),L},[]);u.useEffect(()=>{y()},[y]);const C=u.useMemo(()=>{const v=L=>{let V=[];return L.forEach(Q=>{Q.employees&&(V=V.concat(Q.employees)),Q.children&&(V=V.concat(v(Q.children)))}),V},k=v(h),B=k.filter((L,V,Q)=>V===Q.findIndex(z=>z.empNo===L.empNo));return console.log(`👥 전체 사원 수: ${k.length}, 중복 제거 후: ${B.length}`),B},[h]),P=u.useMemo(()=>{const v=k=>k.map(B=>({title:B.deptNm,key:B.deptCd,children:B.children?v(B.children):void 0,isLeaf:!B.children||B.children.length===0}));return v(h)},[h]),I=u.useMemo(()=>{if(!n.trim())return P;const v=k=>k.map(B=>{const L=B.title.toLowerCase().includes(n.toLowerCase()),V=B.children?v(B.children):void 0;return L||V&&V.length>0?{...B,children:V}:null}).filter(Boolean);return v(P)},[P,n]),w=u.useMemo(()=>{if(!n.trim()){const v=Q=>{let z=[];return Q.forEach(_=>{_.employees&&(z=z.concat(_.employees)),_.children&&(z=z.concat(v(_.children)))}),z},k=(Q,z)=>{for(const _ of Q){if(_.deptCd===z){let Y=[..._.employees||[]];return _.children&&(Y=Y.concat(v(_.children))),Y}if(_.children){const Y=k(_.children,z);if(Y.length>0)return Y}}return[]},B=d[0];if(!B)return[];const L=k(h,B),V=L.filter((Q,z,_)=>z===_.findIndex(Y=>Y.empNo===Q.empNo));return console.log(`🔍 선택된 부서: ${B}, 반환된 사원 수: ${L.length}, 중복 제거 후: ${V.length}`),V}return C.filter(v=>v.empNm.toLowerCase().includes(n.toLowerCase())||v.empNo.toLowerCase().includes(n.toLowerCase())||v.deptNm.toLowerCase().includes(n.toLowerCase())||v.jbpsCd.includes(n)||v.jbgdCd.includes(n)||v.emplyStCd.includes(n))},[n,d,C,h]),m=u.useCallback(v=>{S(k=>{const B={...k};return B[v.empNo]?delete B[v.empNo]:B[v.empNo]=v,B})},[]),R=u.useCallback(v=>{S(k=>{const B={...k};return delete B[v],B})},[]),T=u.useCallback(()=>S({}),[]),M=u.useCallback(()=>{S(v=>{const k={...v};for(const B of w)k[B.empNo]=B;return k})},[w]),A=u.useCallback(()=>{S(v=>{const k={...v};for(const B of w)delete k[B.empNo];return k})},[w]),N=u.useCallback(v=>{const k=v.map(String);if(console.log(`🌳 트리 선택: ${k.join(", ")}`),p(k),k.length>0){const B=k[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},V=L(h,B);V&&a(V)}},[h]),D=u.useCallback(v=>{c(v.map(String))},[]),H=u.useCallback((v,k)=>{if(v.stopPropagation(),!k.children||!k.children.length)return;const B=l.includes(k.key);c(L=>B?L.filter(V=>V!==k.key):[...L,k.key])},[l]),U={confirm:()=>{const v=Object.values(g).map(B=>({crprCd:B.crprCd,wkplCd:B.wkplCd,empNo:B.empNo,deptCd:B.deptCd,deptNm:B.deptNm,empNm:B.empNm,jbpsCd:B.jbpsCd,jbgdCd:B.jbgdCd,empMarkOrd:B.empMarkOrd,emplyStCd:B.emplyStCd}));if(v.length===0){s.message.error("직원을 선택해주세요.");return}const k=t?.config;k?.onSelect?k.onSelect(v):t?.config?.callback&&t.config.callback(JSON.stringify(v)),k?.onClose&&k.onClose(),t?.close?.()},cancel:()=>{const v=t?.config;v?.onCancel&&v.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(Be,{children:e.jsx(be,{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(Te,{title:"조직도"}),e.jsx(s.Input,{placeholder:"이름, 소속, 직급/직위, 사번 검색",prefix:e.jsx(q.SearchOutlined,{}),value:n,allowClear:!0,onChange:v=>o(v.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:I,expandedKeys:l,selectedKeys:d,onSelect:N,onExpand:D,onDoubleClick:H,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:v=>e.jsx("span",{style:{padding:"4px 8px",borderRadius:4,fontWeight:d.includes(v.key)?"bold":"normal",display:"inline-block",width:"100%"},children:v.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:M,children:"현재 목록 전체 선택"}),e.jsx(s.Button,{size:"small",onClick:A,children:"현재 목록 전체 해제"})]})]}),e.jsx(s.Divider,{style:{margin:"8px 0"}}),e.jsxs("div",{style:{overflowY:"auto"},children:[w.map(v=>{const k=!!g[v.empNo];return e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,cursor:"pointer",background:k?"#efebff":"#fff"},onClick:()=>m(v),children:[e.jsx("div",{style:{marginRight:12,width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},onClick:B=>{B.stopPropagation(),m(v)},children:k?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:[v.empNm,e.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",v.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:12,color:"#666"},children:[v.deptNm," (",v.deptCd,") | 직급: ",v.jbpsCd," ","| 등급: ",v.jbgdCd]})]})]},`emp-${v.crprCd}-${v.wkplCd}-${v.empNo}-${v.jbpsCd}-${v.jbgdCd}-${v.empMarkOrd}`)}),w.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(Te,{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(v=>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:[v.empNm,e.jsxs("span",{style:{fontSize:11,fontWeight:"normal",color:"#666",marginLeft:"6px"},children:["(",v.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:12,color:"#666"},children:[v.deptNm," (",v.deptCd,") | 직급: ",v.jbpsCd," | 등급: ",v.jbgdCd]})]}),e.jsx(s.Button,{type:"text",shape:"circle",icon:e.jsx(q.CloseOutlined,{}),onClick:()=>R(v.empNo)})]},`selected-${v.crprCd}-${v.wkplCd}-${v.empNo}-${v.jbpsCd}-${v.jbgdCd}-${v.empMarkOrd}`)),Object.keys(g).length===0&&e.jsx("div",{style:{color:"#999",fontSize:14,textAlign:"center",padding:24},children:"선택된 사용자가 없습니다."})]})]})})]})})})})},kv=Object.freeze(Object.defineProperty({__proto__:null,default:Cu},Symbol.toStringTag,{value:"Module"})),{Text:Jl,Title:Iv}=s.Typography,Pv=({popup:t})=>{const[r,n]=u.useState(So()),[o,i]=u.useState(So()),[a,l]=u.useState([]),[c,d]=u.useState([]),[p,h]=u.useState("month");ut.useCodeStore();const{token:f}=s.theme.useToken(),x=(j,C,P=p)=>{const I=C.filter(w=>{if(P==="year"){const m=w.stndYmd.substring(0,6),R=j.format("YYYYMM");return m===R}else{const m=j.format("YYYYMMDD");return w.stndYmd===m}});l(I)},E=j=>{n(j),x(j,c,p)},g=(j,C)=>{i(j),h(C),y.SCMHLDY00101(C,j)};u.useEffect(()=>{y.SCMHLDY00101()},[]);const S=j=>{const C=c.filter(P=>{if(p==="year"){const I=P.stndYmd.substring(0,6),w=j.format("YYYYMM");return I===w}else{const I=j.format("YYYYMMDD");return P.stndYmd===I}});return C.length>0?e.jsx("div",{style:{position:"absolute",bottom:"1px",left:"1px",right:"1px",height:"3px",display:"flex",gap:"1px"},children:C.map((P,I)=>e.jsx("div",{style:{flex:1,height:"3px",background:P.hldyYn==="Y"?f.colorError:f.colorSuccess,borderRadius:"1px"}},I))}):null},y={SCMHLDY00101:async(j=p,C=r)=>{try{let P;j==="year"?P=C.format("YYYY"):P=C.format("YYYYMM");const I=await se.callService("SCMHLDY00101",{crprCd:se.getUserInfo()?.crprCd||"",sysCd:__SYS_CD__,stndYmd:P});d(I.sub||[]),x(C,I.sub||[],j)}catch(P){console.error("휴일 데이터 로드 실패:",P),s.message.error("휴일 데이터를 불러오는데 실패했습니다.")}}};return e.jsx(Qr,{popup:t,children:e.jsx(Be,{children:e.jsx(be,{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:S,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((j,C)=>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(Iv,{level:5,style:{margin:0,color:f.colorPrimary},children:j.hldyDscr||"휴일명 미입력"}),j.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:So(j.stndYmd).format("YYYY년 MM월 DD일 dddd")})}),j.hldyDscr&&e.jsx("div",{children:e.jsx(Jl,{style:{fontSize:f.fontSizeSM+1},children:j.hldyDscr})})]})},C))}):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=Oe;exports.BwgInfoArea=Ut;exports.BwgPagination=Bs;exports.BwgPopup=Qr;exports.BwgReactGuideM01=sv;exports.BwgRow=tp;exports.BwgSpace=Vo;exports.BwgTable=rp;exports.BwgTabs=xt;exports.BwgTitleBox=Te;exports.BwgView=ht;exports.CMAuthMstrM01=K0;exports.CMFileMstrM01=av;exports.CMHldyCfg=xv;exports.CMHldyMstrP01=Pv;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=vv;exports.ContentBox=be;exports.ContentLayOut=Be;exports.GlobalConfigProvider=F0;exports.QuickServiceToggle=U0;exports.SSOHandler=G0;exports.SearchBox=Vn;exports.SearchDepartmentP01=vu;exports.SearchDepartmentP01$1=wv;exports.SearchDepartmentP02=yu;exports.SearchDepartmentP02$1=Tv;exports.SearchOrganizationP01=bu;exports.SearchOrganizationP01$1=Ev;exports.SearchOrganizationP02=Cu;exports.SearchOrganizationP02$1=kv;exports.commonjsGlobal=Tu;exports.createBwgGridRenderer=Ns;exports.getAugmentedNamespace=Eu;exports.getDefaultExportFromCjs=Hn;
|