@bwg-ui/core 1.2.20 → 1.2.21
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-ByLduwwZ.js → MenuReport-D-gxEaXb.js} +1 -1
- package/dist/chunks/{MenuReport-D5nIx5g9.cjs → MenuReport-DbGZz84g.cjs} +1 -1
- package/dist/chunks/{common-components-CyxuMobg.js → common-components-BLgaNCNY.js} +2934 -2997
- package/dist/chunks/{common-components-BXjzima0.cjs → common-components-CeY5flj3.cjs} +37 -37
- package/dist/chunks/layout-components-C_HvgcCg.cjs +35 -0
- package/dist/chunks/{layout-components-CyKRhOdT.js → layout-components-IvmBzdev.js} +25 -25
- package/dist/components/common/BwgGrid.d.ts +7 -3
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/guide/BwgPracticeGuideS00.d.ts.map +1 -1
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +60 -66
- 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/pages/auth/CMAuthMstrM01.d.ts.map +1 -1
- package/dist/components/pages/auth/CMRoleMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMMenuMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMPopuMstrM01.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +248 -250
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +1 -1
- package/dist/utils/commonUtils.d.ts +23 -84
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/gwUtils.d.ts +20 -1
- package/dist/utils/gwUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +12 -14
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1129 -977
- package/package.json +1 -1
- package/dist/chunks/layout-components-CfFi4fiJ.cjs +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
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"),Bo=require("react-dom"),Ze=require("realgrid"),ia=require("realgrid-react"),Su=require("react-rnd"),Ru=require("./layout-components-CfFi4fiJ.cjs"),H=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(T=>{const g=String(T?.btnId||"").trim();if(!g)return;const S=T?.enblYn==null?!0:String(T.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),T=p||x,g=e.jsx(s.Button,{type:d.type,disabled:T,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 ku=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Tu(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,T]=u.useState(!0),[g,S]=u.useState(null),[y,j]=u.useState({}),w=async()=>{try{T(!0),S(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",t,r);const C=await se.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,k)=>R.btnSq-k.btnSq);f(m)}else f([])}catch(C){console.error("버튼 권한 조회 실패:",C),S("버튼 권한을 조회하는 중 오류가 발생했습니다."),f([])}finally{T(!1)}};u.useEffect(()=>{w()},[t,r]);const P=async(C,m)=>{j(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{j(R=>({...R,[C]:{loading:!1}}))}},I=C=>{const m=y[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(I)})})},Eu=({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(T=>T&&T.length>0),p=u.useMemo(()=>{const T=d[0];if(!T||T.length===0)return{totalCols:0,baseWidth:0};let g=0;const S=[];T.forEach(j=>{const w=j,P=w?.props?.["data-colspan"]?parseInt(String(w.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=(T,g,S)=>{const y=T,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 w=p.baseWidth*j;return Math.max(o,Math.min(i,w))}},f=T=>{if(!T||typeof T!="object")return T;const g=T;if(!g.props)return T;const y={...g.props.style||{},width:"100%"};return u.cloneElement(g,{...g.props,style:y})},x=(T,g)=>{if(!T||T.length===0)return null;const S=T.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:T.map((y,j)=>{const w=y?.props?.["data-colspan"]?parseInt(String(y.props["data-colspan"])):1,P=f(y);return e.jsx("div",{style:{gridColumn:`span ${w}`,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:T.map((y,j)=>{const w=h(y,j,S),P=f(y),I=r==="flex"?{width:`${w}px`,minWidth:`${o}px`,maxWidth:`${i}px`,flexShrink:0}:{width:`${w}%`,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((T,g)=>x(T,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=Fn(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)",buttonSolidCheckedBg:"var(--button-solid)",buttonSolidCheckedHoverBg:"var(--button-solid-hover)",buttonSolidCheckedActiveBg:"var(--button-solid-hover)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},Switch:{colorPrimary:"var(--switch-primary)",colorPrimaryHover:"var(--switch-primary)"},Tabs:{inkBarColor:"var(--primary-color)",itemSelectedColor:"var(--primary-color)",itemHoverColor:"var(--button-solid-hover)",itemActiveColor:"var(--button-solid-hover)",itemColor:"var(--text-primary)",horizontalItemGutter:0,horizontalItemPadding:"11px 24px"},Button:{borderColorDisabled:"var(--border-color)",defaultShadow:"none",dangerShadow:"none",iconGap:4},...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})},Hu=({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 j=l.placement;return j==="left"||j==="right"||j==="top"||j==="bottom"?j:"bottom"}),[f,x]=u.useState(!1),g=(j=>{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(j){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),S={wrapper:{...g?.wrapper,...a?.wrapper},content:{...g?.content,...a?.content},header:{...g?.header,...a?.header}},y=()=>{const j=[];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(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(Me,{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 Mo=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),T=u.useMemo(()=>{const I={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?{...I,imageResize:{parchment:ec.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:I},[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??""),w=S?n:y,P=u.useCallback((I,C,m,R)=>{const k=Mo(I??"");S||j(k),i?.(k,C,m,R)},[S,i]);return u.useImperativeHandle(d,()=>({getHTML:()=>w??"",getText:()=>x.current?.getEditor()?.getText()??"",insertHTML:I=>{const C=x.current?.getEditor();if(!C)return;const m=C.getSelection(!0),R=Mo(I??"");C.clipboard.dangerouslyPasteHTML(m?m.index:C.getLength(),R)},insertImage:(I,C)=>{const m=x.current?.getEditor();if(!m)return;const R=m.getSelection(!0),k=typeof I=="string"?I:"";m.insertEmbed(R?R.index:m.getLength(),"image",k,"user")},getQuill:()=>x.current?.getEditor?.()??null})),e.jsx(be,{border:t,style:{opacity:l?.6:1,pointerEvents:l?"none":"auto",height:typeof f=="number"?`${f}px`:f,minHeight:0},children:e.jsxs("div",{className:"bwg-editor-wrap",style:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},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:T,formats:g,style:{width:"100%",display:"flex",flexDirection:"column",minHeight:0,flex:"1"},placeholder:c},p?"snow":"bubble")]})})}),Fu=(t,r,n,o)=>Mo(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:Fu,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=Mo(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=Bo;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,T]=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=>{T(D),d?.(D,g)},setPageSize:D=>{S(D),T(1),d?.(1,D)},setTotalData:D=>{j(D)},reset:()=>{T(1),S(n),j(0)}}),[x,g,y,d,n]);const w=c==="client",P=w?(t||0)+1:x,I=w?(r||0)>0:y>0,m=w?I?Math.ceil((o||0)/h):0:Math.ceil(y/g),R=w?I&&o||0:y,k=Math.min(P,m||1),O=`${h}-${m}-${k}`,_=D=>{w?i?.(D-1):(T(D),d?.(D,g))},N=D=>{if(w){f(D);try{l?.current?.gridView?(l.current.gridView.setPaging(!0,D),l.current.gridView.setPage(0)):i?.(0)}catch(F){console.warn("페이지 사이즈 변경 중 오류:",F),i?.(0)}}else S(D),T(1),d?.(1,D)};return e.jsxs("div",{className:"bwg-pagination-container",style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",borderTop:"1px solid #dddddd",position:"relative"},children:[e.jsxs("div",{style:{position:"absolute",left:10,display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontSize:"12px",color:"#333333"},children:"페이지당"}),e.jsx("select",{value:w?h:g,onChange:D=>N(Number(D.target.value)),disabled:!I,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"6px",fontSize:"12px",color:"#333333",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.jsx("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultBorderColor:"#e8e8e8",defaultHoverBorderColor:"var(--primary-color)",defaultHoverColor:"var(--text-primary)",contentFontSize:13,defaultColor:"var(--text-primary)",paddingInline:0}}},children:[e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[e.jsx(s.Button,{onClick:()=>_(1),disabled:!I||k===1,style:{width:"26px",height:"26px",border:0,background:!I||k===1?"#f1f1f1":"white",cursor:!I||k===1?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[e.jsx("path",{d:"M12 17L7 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M17 17L12 12L17 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})}),e.jsx(s.Button,{onClick:()=>_(k-1),disabled:!I||k===1,style:{width:"26px",height:"26px",border:0,background:!I||k===1?"#f1f1f1":"white",cursor:!I||k===1?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M14 17L9 12L14 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:6},children:(()=>{if(!I||m===0)return e.jsx(s.Button,{disabled:!0,style:{width:"26px",height:"26px"},children:"1"});const D=5;let F=1,U=Math.min(D,m);k>3&&m>D&&(F=Math.max(1,k-2),U=Math.min(m,F+D-1),U===m&&(F=Math.max(1,U-D+1)));const v=[];for(let E=F;E<=U;E++)v.push(e.jsx(s.Button,{onClick:()=>_(E),style:{width:"26px",height:"26px",background:k===E?"var(--primary-color)":"#ffffff",color:k===E?"#ffffff":"#333333",cursor:"pointer"},children:E},E));return v})()},O),e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[e.jsx(s.Button,{onClick:()=>_(k+1),disabled:!I||k>=m,style:{width:"26px",height:"26px",border:0,background:!I||k>=m?"#f1f1f1":"white",cursor:!I||k>=m?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M10 17L15 12L10 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),e.jsx(s.Button,{onClick:()=>_(m),disabled:!I||k>=m,style:{width:"26px",height:"26px",border:0,background:!I||k>=m?"#f1f1f1":"white",cursor:!I||k>=m?"not-allowed":"pointer",opacity:I?1:.5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[e.jsx("path",{d:"M12 17L17 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M7 17L12 12L7 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})]})]})})]})});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 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),T=(A,K,Z,q)=>{let M=[],G=[];const W="treeNode";for(let J in A){let te=A[J];M[te[Z]]=A[J];let ie=M[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=q=>{const M=[];return q.forEach(G=>{G.children&&G.children.length>0?M.push(...K(G.children)):M.push(G)}),M};return K(A).map(q=>({fieldName:q.fieldName,dataType:q.dataType||"text"}))},[]),S=u.useCallback(A=>{const K=q=>{const M=[];return q.forEach(G=>{G.children&&G.children.length>0?M.push(...K(G.children)):M.push(G)}),M};return K(A).map(q=>({...q,header:{template:q.required?`<img src='${qu}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:q.editable?`<img src='${Yu}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:q.header?.text??""},text:q.header?.text||""},styleName:q.dataType==="number"?"right":q.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(q){console.error("fillJsonData 오류:",q)}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 q={rows:"treeNode"};try{f.current?.gridView.showLoading();let M=T(A,K.treeOption?.parentField,K.treeOption?.dataField);f.current.dataProvider.fillJsonData({treeNode:M},q),K.treeOption.isExpand&&f.current.gridView?.expandAll()}catch(M){console.error("fillJsonData 오류:",M)}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 q=f.current?.dataProvider?.getJsonRow(A.created[Z]);q={...q,iudFlag:"I"},K.push(q)}if(A.updated!==void 0&&A.updated.length>0)for(const Z in A.updated){let q=f.current?.dataProvider?.getJsonRow(A.updated[Z]);q={...q,iudFlag:"U"},K.push(q)}if(A.deleted!==void 0&&A.deleted.length>0)for(const Z in A.deleted){let q=f.current?.dataProvider?.getJsonRow(A.deleted[Z]);q={...q,iudFlag:"D"},K.push(q)}return K},deleteGridData:()=>{f?.current?.gridView?.getCheckedItems()?.map(K=>{let Z=f?.current?.gridView?.getDataRow(K)??-1;const q=f?.current?.dataProvider?.getRowState(Z);q==Ze.RowState.DELETED?(f?.current?.dataProvider?.setRowState(Z,x.current.get(K)??Ze.RowState.NONE),x.current.delete(K)):q==Ze.RowState.CREATED?f?.current?.dataProvider?.setRowState(Z,Ze.RowState.CREATE_AND_DELETED):q==Ze.RowState.CREATE_AND_DELETED?f?.current?.dataProvider?.setRowState(Z,Ze.RowState.CREATED):(x.current.set(K,q??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((A,K,Z)=>{if(l!==void 0&&Z>=0){let q=A.getDataSource().getJsonRow(Z);l?.current?.setFieldsValue(q)}else l!==void 0&&Z<0&&l?.current?.resetFields();A.setCurrent({dataRow:0}),a?.onCurrentRowChanged&&a?.onCurrentRowChanged(A,K,Z)},[l,a]),j=u.useCallback((A,K,Z)=>{const q=K.fieldName??"";l?.current?.getFieldInstance(q)&&l?.current.setFieldValue(q,Z),a?.onEditChange&&a?.onEditChange(A,K,Z)},[l,a]),w=u.useCallback((A,K,Z)=>{const q=A.getOrgFieldName(Z),M=A.getValue(K,Z);l?.current?.setFieldValue(q,M)},[l]),P=u.useCallback((A,K,Z,q)=>{const M=A.getColumn(q).name??"",G=A.getValue(K,q);l?.current?.getFieldInstance(M)&&l?.current.setFieldValue(M,G),a?.onCellEdited&&a?.onCellEdited(A,K,Z,q)},[l,a]),I=u.useCallback((A,K,Z,q)=>{if(typeof K.dataRow=="number"&&K.dataRow!=-1){var M=A.getDataSource().getRowState(K.dataRow);if(M=="deleted"||M=="createAndDeleted")return!1}return a?.onShowEditor!=null&&a?.onShowEditor(A,K,Z,q),!0},[l,a]),C=u.useCallback(A=>{if(!f.current)return;const K=f.current.gridView,Z=K.getDataSource();if(i?.container?.page){const q=K.getPage(),M=K.getPageCount(),G=Z.getRowCount();z({currentPage:q,totalPages:M,totalData:G})}},[i?.container?.page]),m=u.useCallback(()=>{if(!f.current)return;const A=f.current.gridView,K=A.getDataSource(),Z=["onKeyDown"],q=["onRowInserted"];Object.keys(a??{}).map(M=>{Z.includes(M)?A[M+"Add"]=a?.[M]:A[M]=a?.[M],q.includes(M)?K[M+"Add"]=a?.[M]:K[M]=a?.[M]}),K instanceof Ze.LocalDataProvider&&(K.onRowInserted=(M,G)=>{G<0||(setTimeout(function(){A?.setCurrent({dataRow:G})},1),M.onRowInsertedAdd!==void 0&&M.onRowInsertedAdd(M,G))}),A.onKeyDown=function(M,G){if(G.code=="Space"){let W=M.getSelectedItems(!0);for(const J in W)M.isCheckable(W[J])&&(M.isCheckedItem(W[J])?M.checkItem(W[J],!1,!1):M.checkItem(W[J],!0,!1))}return M.onKeyDownAdd!==void 0&&M.onKeyDownAdd(M,G),!0},f.current.gridView.onCurrentRowChanged=y,f.current.gridView.onEditChange=j,f.current.gridView.getDataSource().onValueChanged=w,f.current.gridView.onCellEdited=P,f.current.gridView.onShowEditor=I,f.current.gridView.onDataLoadComplated=C},[y,j,w,P,I,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,q){if(!(!q||!q.column)){if(Z.tag=="excel")F(K,{isTitle:!1},c?.excel);else if(Z.tag=="showIndentExcel")F(K,{isTitle:!1,treeBlank:!0},c?.excel);else if(Z.tag=="withTitleExcel")F(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(q.column);K.setFixedOptions({colCount:G})}else if(Z.tag=="fixedRow")K.setFixedOptions({rowCount:(q.itemIndex||0)+1});else if(Z.tag=="fixedCancel")K.setFixedOptions({colCount:0,rowCount:0});else if(Z.tag=="hide")K.setColumnProperty(q.column,"visible",!1),K._hideCols[K._hideCols.length]=q.column;else if(Z.tag=="hideClear")for(var M=0;M<K._hideCols.length;M++)K.setColumnProperty(K._hideCols[M],"visible",!0)}}}catch(K){console.log("컨텍스트 설정 중 오류:",K)}}},[i]),k=A=>{if(!(!d||d.length===0))try{d.forEach(K=>{const{name:Z,renderer:q}=K;if(Z&&q){const M=typeof q=="function"?new q:q;A.gridView.registerCustomRenderer(Z,M)}})}catch(K){console.error("커스텀 렌더러 초기화 중 오류:",K)}},O=A=>{A.onPageChanged=(K,Z)=>{z(q=>({...q,currentPage:Z}))},A.onPageCountChanged=(K,Z)=>{z(q=>({...q,totalPages:Z}))}},_=A=>{f.current?.gridView&&f.current.gridView.setPage(A)},N=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 q=K.span;Z.spanCallback=function(M,G,W){return q}}}),o&&o.length>0&&o.some(Z=>Z.children&&Z.children.length>0))try{(()=>{const q=JSON.parse(JSON.stringify(o)),M=[],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};q.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};M.push(pe)}else M.push(W.fieldName)}),console.log("Final Layout!!",M),A.gridView.setColumnLayout(M)})()}catch(Z){console.error("컬럼 레이아웃 설정 오류:",Z)}},D=()=>{if(f.current){if(t==="nrml"){const A=f.current;if(R(A),k(A),o&&o.length>0){const K=g(o),Z=S(o);A.gridView.getDataSource().setFields(K),A.gridView.setColumns(Z)}if(N(A),i?.container?.page){const K=i?.pagingOption?.pageSize||10;A.gridView.setPaging(!0,K),O(A.gridView)}}else{const A=f.current;if(R(A),k(A),o&&o.length>0){const K=g(o),Z=S(o);A.gridView.getDataSource().setFields(K),A.gridView.setColumns(Z)}N(f.current)}setTimeout(()=>{if(p){const A=typeof h=="object"&&h!==null?h.current:null;p(A)}},0)}},F=(A,K,Z)=>{const q=A.getDataSource();let M=Z?.footer==null?"default":Z.footer;q.getRowCount()<1&&(M="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:M,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:Z?.fileName||"sample.xlsx"};q 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"})),A.exportGrid(G)},U=(A,K)=>{const Z=A.getDataSource(),q=Z.getOrgFieldNames();if(K.checked)for(var M=0;M<q.length;M++){let W=[],J=Z.getDistinctValues(q[M])??[];if(J.length==0)continue;let te=A.columnByName(q[M]);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})}A.setColumnFilters(q[M],W)}else for(var M=0;M<q.length;M++)A.clearColumnFilters(q[M]),A.activateAllColumnFilters(q[M],!1),A.clearColumnFilters(q[M])};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[v,E]=u.useState(!1),[B,L]=u.useState(""),V=u.useRef(null),[X,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 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(),se.isEmpty(A))return;const Z=K?.getCurrent().itemIndex??-1;if(Z<0)return;const q={value:A,startIndex:Z+1,wrap:!0,caseSensitive:!1,partialMatch:!0},M=K?.searchCell(q);K?.setCurrent(M)},[]),ee=u.useCallback(A=>{A.key==="Escape"&&(A.preventDefault(),E(!1))},[]),oe=u.useCallback(A=>{A.ctrlKey&&A.code==="KeyF"&&(A.preventDefault(),L(""),E(!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:A=>ne.handleSearch(A),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: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:()=>E(!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:X.currentPage,totalPages:X.totalPages,pageSize:i?.pagingOption?.pageSize,totalData:X.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(Me,{type:"vertical",children:[e.jsx(ke,{title:t,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:o}),e.jsx(be,{border:!1,children:e.jsx(s.ConfigProvider,{theme:i,children:n})})]})}),Me=({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),T=u.useMemo(()=>{const I=Math.max(0,(window.innerWidth-c)/2),C=Math.max(0,(window.innerHeight-d)/2);return{x:I,y:C}},[c,d]),[g,S]=u.useState(T),y=(I,C)=>{const m=ja({x:C.x,y:C.y},{width:p,height:f});S(m)},j=(I,C,m,R,k)=>{const O={width:parseInt(m.style.width,10),height:parseInt(m.style.height,10)},_=ja(k,O);h(O.width),x(O.height),S(_)},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: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:w,children:e.jsx(Me,{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.
|
|
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"),Bo=require("react-dom"),Ze=require("realgrid"),ia=require("realgrid-react"),Su=require("react-rnd"),Ru=require("./layout-components-C_HvgcCg.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),y=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(T=>{const g=String(T?.btnId||"").trim();if(!g)return;const j=T?.enblYn==null?!0:String(T.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),T=p||x,g=e.jsx(s.Button,{type:d.type,disabled:T,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 ku=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Tu(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,T]=u.useState(!0),[g,j]=u.useState(null),[v,w]=u.useState({}),C=async()=>{try{T(!0),j(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",t,r);const b=await se.callService(d,{userId:p?.userId,crprCd:p?.crprCd,grpId:t.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",b),b?.data&&Array.isArray(b.data)){const m=b.data.sort((R,k)=>R.btnSq-k.btnSq);f(m)}else f([])}catch(b){console.error("버튼 권한 조회 실패:",b),j("버튼 권한을 조회하는 중 오류가 발생했습니다."),f([])}finally{T(!1)}};u.useEffect(()=>{C()},[t,r]);const B=async(b,m)=>{w(R=>({...R,[b]:{loading:!0}}));try{const R=n?.[b];R?await R():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${b}`),c&&c(b,m,t)}catch(R){console.error("버튼 이벤트 실행 실패:",R),s.message.error("작업 중 오류가 발생했습니다.")}finally{w(R=>({...R,[b]:{loading:!1}}))}},P=b=>{const m=v[b.btnId]||{loading:!1};return e.jsxs(s.Button,{size:i,loading:m.loading,onClick:()=>B(b.btnId,b.btnNm),className:"bwg-btn",style:{...b.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[b.iconVal&&e.jsxs(e.Fragment,{children:[b.iconType==="ANTD"&&Sn[b.iconVal]&&u.createElement(Sn[b.iconVal],{style:{fontSize:"14px"}}),b.iconType!=="ANTD"&&e.jsx("span",{className:b.iconVal,style:{fontSize:"14px"}})]}),b.btnNm]},b.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(P)})})},Eu=({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(T=>T&&T.length>0),p=u.useMemo(()=>{const T=d[0];if(!T||T.length===0)return{totalCols:0,baseWidth:0};let g=0;const j=[];T.forEach(w=>{const C=w,B=C?.props?.["data-colspan"]?parseInt(String(C.props["data-colspan"])):1;g+=B,j.push(B)});const v=g>0?100/g:0;return{totalCols:g,baseWidth:v,componentWidths:j}},[d]),h=(T,g,j)=>{const v=T,w=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*w;case"flex":default:const C=p.baseWidth*w;return Math.max(o,Math.min(i,C))}},f=T=>{if(!T||typeof T!="object")return T;const g=T;if(!g.props)return T;const v={...g.props.style||{},width:"100%"};return u.cloneElement(g,{...g.props,style:v})},x=(T,g)=>{if(!T||T.length===0)return null;const j=T.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:T.map((v,w)=>{const C=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1,B=f(v);return e.jsx("div",{style:{gridColumn:`span ${C}`,minWidth:`${o}px`},className:"form-component-wrapper",children:B},`row-${g}-col-${w}`)})},`row-${g}`):e.jsx(s.Flex,{gap:n,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:T.map((v,w)=>{const C=h(v,w,j),B=f(v),P=r==="flex"?{width:`${C}px`,minWidth:`${o}px`,maxWidth:`${i}px`,flexShrink:0}:{width:`${C}%`,minWidth:`${o}px`};return e.jsx("div",{style:P,className:"form-component-wrapper",children:B},`row-${g}-col-${w}`)})},`row-${g}`)};return e.jsx(s.Flex,{gap:"small",vertical:!0,style:a,className:l,children:d.map((T,g)=>x(T,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=Fn(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)",buttonSolidCheckedBg:"var(--button-solid)",buttonSolidCheckedHoverBg:"var(--button-solid-hover)",buttonSolidCheckedActiveBg:"var(--button-solid-hover)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},Switch:{colorPrimary:"var(--switch-primary)",colorPrimaryHover:"var(--switch-primary)"},Tabs:{inkBarColor:"var(--primary-color)",itemSelectedColor:"var(--primary-color)",itemHoverColor:"var(--button-solid-hover)",itemActiveColor:"var(--button-solid-hover)",itemColor:"var(--text-primary)",horizontalItemGutter:0,horizontalItemPadding:"11px 24px"},Button:{borderColorDisabled:"var(--border-color)",defaultShadow:"none",dangerShadow:"none",iconGap:4},...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})},Hu=({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 w=l.placement;return w==="left"||w==="right"||w==="top"||w==="bottom"?w:"bottom"}),[f,x]=u.useState(!1),g=(w=>{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(w){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),j={wrapper:{...g?.wrapper,...a?.wrapper},content:{...g?.content,...a?.content},header:{...g?.header,...a?.header}},v=()=>{const w=[];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,{})}],B=e.jsx(s.Space.Compact,{children:C.map(P=>e.jsx(s.Button,{type:p===P.key?"primary":"default",size:"small",onClick:()=>{h(P.key),x(!1)},icon:P.icon},P.key))});w.push(e.jsx(s.Popover,{content:B,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&&w.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&&w.push(e.jsx("div",{style:{margin:"0 8px"},children:l.extra},"extra")),n&&w.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")),w};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:w=>{w||(d(!0),h(l.placement)),l.afterOpenChange?.(w)},destroyOnHidden:!0,children:r?e.jsxs(Me,{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 Mo=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),T=u.useMemo(()=>{const P={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?{...P,imageResize:{parchment:ec.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:P},[p]),g=u.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),j=n!==void 0,[v,w]=u.useState(o??""),C=j?n:v,B=u.useCallback((P,b,m,R)=>{const k=Mo(P??"");j||w(k),i?.(k,b,m,R)},[j,i]);return u.useImperativeHandle(d,()=>({getHTML:()=>C??"",getText:()=>x.current?.getEditor()?.getText()??"",insertHTML:P=>{const b=x.current?.getEditor();if(!b)return;const m=b.getSelection(!0),R=Mo(P??"");b.clipboard.dangerouslyPasteHTML(m?m.index:b.getLength(),R)},insertImage:(P,b)=>{const m=x.current?.getEditor();if(!m)return;const R=m.getSelection(!0),k=typeof P=="string"?P:"";m.insertEmbed(R?R.index:m.getLength(),"image",k,"user")},getQuill:()=>x.current?.getEditor?.()??null})),e.jsx(be,{border:t,style:{opacity:l?.6:1,pointerEvents:l?"none":"auto",height:typeof f=="number"?`${f}px`:f,minHeight:0},children:e.jsxs("div",{className:"bwg-editor-wrap",style:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},children:[h&&e.jsx(ke,{...h,paddingBottom:10}),e.jsx(ju,{ref:x,theme:p?"snow":"bubble",readOnly:!p,value:C,onChange:B,onBlur:a,modules:T,formats:g,style:{width:"100%",display:"flex",flexDirection:"column",minHeight:0,flex:"1"},placeholder:c},p?"snow":"bubble")]})})}),Fu=(t,r,n,o)=>Mo(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:Fu,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=Mo(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=Bo;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,T]=u.useState(1),[g,j]=u.useState(n),[v,w]=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=>{T(D),d?.(D,g)},setPageSize:D=>{j(D),T(1),d?.(1,D)},setTotalData:D=>{w(D)},reset:()=>{T(1),j(n),w(0)}}),[x,g,v,d,n]);const C=c==="client",B=C?(t||0)+1:x,P=C?(r||0)>0:v>0,m=C?P?Math.ceil((o||0)/h):0:Math.ceil(v/g),R=C?P&&o||0:v,k=Math.min(B,m||1),N=`${h}-${m}-${k}`,_=D=>{C?i?.(D-1):(T(D),d?.(D,g))},O=D=>{if(C){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),T(1),d?.(1,D)};return e.jsxs("div",{className:"bwg-pagination-container",style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",borderTop:"1px solid #dddddd",position:"relative"},children:[e.jsxs("div",{style:{position:"absolute",left:10,display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontSize:"12px",color:"#333333"},children:"페이지당"}),e.jsx("select",{value:C?h:g,onChange:D=>O(Number(D.target.value)),disabled:!P,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"6px",fontSize:"12px",color:"#333333",opacity:P?1:.5},children:a.map(D=>e.jsxs("option",{value:D,children:[D,"개"]},D))}),e.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:P?1:.5},children:["/ 총 ",R,"개"]})]}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultBorderColor:"#e8e8e8",defaultHoverBorderColor:"var(--primary-color)",defaultHoverColor:"var(--text-primary)",contentFontSize:13,defaultColor:"var(--text-primary)",paddingInline:0}}},children:[e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[e.jsx(s.Button,{onClick:()=>_(1),disabled:!P||k===1,style:{width:"26px",height:"26px",border:0,background:!P||k===1?"#f1f1f1":"white",cursor:!P||k===1?"not-allowed":"pointer",opacity:P?1:.5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[e.jsx("path",{d:"M12 17L7 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M17 17L12 12L17 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})}),e.jsx(s.Button,{onClick:()=>_(k-1),disabled:!P||k===1,style:{width:"26px",height:"26px",border:0,background:!P||k===1?"#f1f1f1":"white",cursor:!P||k===1?"not-allowed":"pointer",opacity:P?1:.5},icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M14 17L9 12L14 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:6},children:(()=>{if(!P||m===0)return e.jsx(s.Button,{disabled:!0,style:{width:"26px",height:"26px"},children:"1"});const D=5;let V=1,U=Math.min(D,m);k>3&&m>D&&(V=Math.max(1,k-2),U=Math.min(m,V+D-1),U===m&&(V=Math.max(1,U-D+1)));const E=[];for(let S=V;S<=U;S++)E.push(e.jsx(s.Button,{onClick:()=>_(S),style:{width:"26px",height:"26px",background:k===S?"var(--primary-color)":"#ffffff",color:k===S?"#ffffff":"#333333",cursor:"pointer"},children:S},S));return E})()},N),e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[e.jsx(s.Button,{onClick:()=>_(k+1),disabled:!P||k>=m,style:{width:"26px",height:"26px",border:0,background:!P||k>=m?"#f1f1f1":"white",cursor:!P||k>=m?"not-allowed":"pointer",opacity:P?1:.5},icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M10 17L15 12L10 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),e.jsx(s.Button,{onClick:()=>_(m),disabled:!P||k>=m,style:{width:"26px",height:"26px",border:0,background:!P||k>=m?"#f1f1f1":"white",cursor:!P||k>=m?"not-allowed":"pointer",opacity:P?1:.5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[e.jsx("path",{d:"M12 17L17 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M7 17L12 12L7 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})]})]})})]})});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 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),T=(A,K,Z,q)=>{let M=[],G=[];const W="treeNode";for(let J in A){let te=A[J];M[te[Z]]=A[J];let ie=M[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=q=>{const M=[];return q.forEach(G=>{G.children&&G.children.length>0?M.push(...K(G.children)):M.push(G)}),M};return K(A).map(q=>({fieldName:q.fieldName,dataType:q.dataType||"text"}))},[]),j=u.useCallback(A=>{const K=q=>{const M=[];return q.forEach(G=>{G.children&&G.children.length>0?M.push(...K(G.children)):M.push(G)}),M};return K(A).map(q=>({...q,header:{...q.header,template:q.required?`<img src='${qu}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:q.editable?`<img src='${Yu}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:q.header?.text??""},text:q.header?.text||""},styleName:q.dataType==="number"?"right":q.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(q){console.error("fillJsonData 오류:",q)}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 q={rows:"treeNode"};try{f.current?.gridView.showLoading();let M=T(A,K.treeOption?.parentField,K.treeOption?.dataField);f.current.dataProvider.fillJsonData({treeNode:M},q),K.treeOption.isExpand&&f.current.gridView?.expandAll()}catch(M){console.error("fillJsonData 오류:",M)}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 q=f.current?.dataProvider?.getJsonRow(A.created[Z]);q={...q,iudFlag:"I"},K.push(q)}if(A.updated!==void 0&&A.updated.length>0)for(const Z in A.updated){let q=f.current?.dataProvider?.getJsonRow(A.updated[Z]);q={...q,iudFlag:"U"},K.push(q)}if(A.deleted!==void 0&&A.deleted.length>0)for(const Z in A.deleted){let q=f.current?.dataProvider?.getJsonRow(A.deleted[Z]);q={...q,iudFlag:"D"},K.push(q)}return K},deleteGridData:()=>{f?.current?.gridView?.getCheckedItems()?.map(K=>{let Z=f?.current?.gridView?.getDataRow(K)??-1;const q=f?.current?.dataProvider?.getRowState(Z);q==Ze.RowState.DELETED?(f?.current?.dataProvider?.setRowState(Z,x.current.get(K)??Ze.RowState.NONE),x.current.delete(K)):q==Ze.RowState.CREATED?f?.current?.dataProvider?.setRowState(Z,Ze.RowState.CREATE_AND_DELETED):q==Ze.RowState.CREATE_AND_DELETED?f?.current?.dataProvider?.setRowState(Z,Ze.RowState.CREATED):(x.current.set(K,q??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 q=A.getDataSource().getJsonRow(Z);l?.current?.setFieldsValue(q)}else l!==void 0&&Z<0&&l?.current?.resetFields();A.setCurrent({dataRow:0}),a?.onCurrentRowChanged&&a?.onCurrentRowChanged(A,K,Z)},[l,a]),w=u.useCallback((A,K,Z)=>{const q=K.fieldName??"";l?.current?.getFieldInstance(q)&&l?.current.setFieldValue(q,Z),a?.onEditChange&&a?.onEditChange(A,K,Z)},[l,a]),C=u.useCallback((A,K,Z)=>{const q=A.getOrgFieldName(Z),M=A.getValue(K,Z);l?.current?.setFieldValue(q,M)},[l]),B=u.useCallback((A,K,Z,q)=>{const M=A.getColumn(q).name??"",G=A.getValue(K,q);l?.current?.getFieldInstance(M)&&l?.current.setFieldValue(M,G),a?.onCellEdited&&a?.onCellEdited(A,K,Z,q)},[l,a]),P=u.useCallback((A,K,Z,q)=>{if(typeof K.dataRow=="number"&&K.dataRow!=-1){var M=A.getDataSource().getRowState(K.dataRow);if(M=="deleted"||M=="createAndDeleted")return!1}return a?.onShowEditor!=null&&a?.onShowEditor(A,K,Z,q),!0},[l,a]),b=u.useCallback(A=>{if(!f.current)return;const K=f.current.gridView,Z=K.getDataSource();if(i?.container?.page){const q=K.getPage(),M=K.getPageCount(),G=Z.getRowCount();z({currentPage:q,totalPages:M,totalData:G})}},[i?.container?.page]),m=u.useCallback(()=>{if(!f.current)return;const A=f.current.gridView,K=A.getDataSource(),Z=["onKeyDown"],q=["onRowInserted"];Object.keys(a??{}).map(M=>{Z.includes(M)?A[M+"Add"]=a?.[M]:A[M]=a?.[M],q.includes(M)?K[M+"Add"]=a?.[M]:K[M]=a?.[M]}),K instanceof Ze.LocalDataProvider&&(K.onRowInserted=(M,G)=>{G<0||(setTimeout(function(){A?.setCurrent({dataRow:G})},1),M.onRowInsertedAdd!==void 0&&M.onRowInsertedAdd(M,G))}),A.onKeyDown=function(M,G){if(G.code=="Space"){let W=M.getSelectedItems(!0);for(const J in W)M.isCheckable(W[J])&&(M.isCheckedItem(W[J])?M.checkItem(W[J],!1,!1):M.checkItem(W[J],!0,!1))}return M.onKeyDownAdd!==void 0&&M.onKeyDownAdd(M,G),!0},f.current.gridView.onCurrentRowChanged=v,f.current.gridView.onEditChange=w,f.current.gridView.getDataSource().onValueChanged=C,f.current.gridView.onCellEdited=B,f.current.gridView.onShowEditor=P,f.current.gridView.onDataLoadComplated=b},[v,w,C,B,P,b]),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,showTooltip:i?.container?.headerShowTooltip||!1}),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,q){if(!(!q||!q.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(q.column);K.setFixedOptions({colCount:G})}else if(Z.tag=="fixedRow")K.setFixedOptions({rowCount:(q.itemIndex||0)+1});else if(Z.tag=="fixedCancel")K.setFixedOptions({colCount:0,rowCount:0});else if(Z.tag=="hide")K.setColumnProperty(q.column,"visible",!1),K._hideCols[K._hideCols.length]=q.column;else if(Z.tag=="hideClear")for(var M=0;M<K._hideCols.length;M++)K.setColumnProperty(K._hideCols[M],"visible",!0)}}}catch(K){console.log("컨텍스트 설정 중 오류:",K)}}},[i]),k=A=>{if(!(!d||d.length===0))try{d.forEach(K=>{const{name:Z,renderer:q}=K;if(Z&&q){const M=typeof q=="function"?new q:q;A.gridView.registerCustomRenderer(Z,M)}})}catch(K){console.error("커스텀 렌더러 초기화 중 오류:",K)}},N=A=>{A.onPageChanged=(K,Z)=>{z(q=>({...q,currentPage:Z}))},A.onPageCountChanged=(K,Z)=>{z(q=>({...q,totalPages:Z}))}},_=A=>{f.current?.gridView&&f.current.gridView.setPage(A)},O=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 q=K.span;Z.spanCallback=function(M,G,W){return q}}}),o&&o.length>0&&o.some(Z=>Z.children&&Z.children.length>0))try{(()=>{const q=JSON.parse(JSON.stringify(o)),M=[],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};q.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};M.push(pe)}else M.push(W.fieldName)}),console.log("Final Layout!!",M),A.gridView.setColumnLayout(M)})()}catch(Z){console.error("컬럼 레이아웃 설정 오류:",Z)}},D=()=>{if(f.current){if(t==="nrml"){const A=f.current;if(R(A),k(A),o&&o.length>0){const K=g(o),Z=j(o);A.gridView.getDataSource().setFields(K),A.gridView.setColumns(Z)}if(O(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),k(A),o&&o.length>0){const K=g(o),Z=j(o);A.gridView.getDataSource().setFields(K),A.gridView.setColumns(Z)}O(f.current)}setTimeout(()=>{if(p){const A=typeof h=="object"&&h!==null?h.current:null;p(A)}},0)}},V=(A,K,Z)=>{const q=A.getDataSource();let M=Z?.footer==null?"default":Z.footer;q.getRowCount()<1&&(M="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:M,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:Z?.fileName||"sample.xlsx"};q 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"})),A.exportGrid(G)},U=(A,K)=>{const Z=A.getDataSource(),q=Z.getOrgFieldNames();if(K.checked)for(var M=0;M<q.length;M++){let W=[],J=Z.getDistinctValues(q[M])??[];if(J.length==0)continue;let te=A.columnByName(q[M]);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})}A.setColumnFilters(q[M],W)}else for(var M=0;M<q.length;M++)A.clearColumnFilters(q[M]),A.activateAllColumnFilters(q[M],!1),A.clearColumnFilters(q[M])};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[E,S]=u.useState(!1),[I,L]=u.useState(""),H=u.useRef(null),[X,z]=u.useState({currentPage:0,totalPages:0,totalData:0});u.useEffect(()=>{z({currentPage:0,totalPages:0,totalData:0})},[]),u.useEffect(()=>{E&&setTimeout(()=>{H.current?.focus?.()},0)},[E]),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(),se.isEmpty(A))return;const Z=K?.getCurrent().itemIndex??-1;if(Z<0)return;const q={value:A,startIndex:Z+1,wrap:!0,caseSensitive:!1,partialMatch:!0},M=K?.searchCell(q);K?.setCurrent(M)},[]),ee=u.useCallback(A=>{A.key==="Escape"&&(A.preventDefault(),S(!1))},[]),oe=u.useCallback(A=>{A.ctrlKey&&A.code==="KeyF"&&(A.preventDefault(),L(""),S(!E))},[E]),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:[E&&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:H,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:X.currentPage,totalPages:X.totalPages,pageSize:i?.pagingOption?.pageSize,totalData:X.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(Me,{type:"vertical",children:[e.jsx(ke,{title:t,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:o}),e.jsx(be,{border:!1,children:e.jsx(s.ConfigProvider,{theme:i,children:n})})]})}),Me=({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),T=u.useMemo(()=>{const P=Math.max(0,(window.innerWidth-c)/2),b=Math.max(0,(window.innerHeight-d)/2);return{x:P,y:b}},[c,d]),[g,j]=u.useState(T),v=(P,b)=>{const m=ja({x:b.x,y:b.y},{width:p,height:f});j(m)},w=(P,b,m,R,k)=>{const N={width:parseInt(m.style.width,10),height:parseInt(m.style.height,10)},_=ja(k,N);h(N.width),x(N.height),j(_)},C=()=>a.current??document.body,B=typeof t?.zIndex=="number"?t.zIndex:3e3;return e.jsxs("div",{style:{position:"fixed",inset:0,zIndex:B},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:w,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(Me,{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
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(t,r){return cc(t)||sp(t,r)||Os(t,r)||dc()}function Te(t){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Te(t)}function ap(t,r){if(Te(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,r);if(Te(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function uc(t){var r=ap(t,"string");return Te(r)=="symbol"?r:r+""}function 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.
|
|
@@ -61,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
61
|
}
|
|
62
62
|
`,kp=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=Ao(c);tr(l,"@ant-design-icons",{prepend:!a,csp:o,attachTo:d})},[])},Tp=["icon","className","onClick","style","primaryColor","secondaryColor"],Rn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ep(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,Tp),p=
|
|
64
|
+
}`)),u.useEffect(function(){var c=r.current,d=Ao(c);tr(l,"@ant-design-icons",{prepend:!a,csp:o,attachTo:d})},[])},Tp=["icon","className","onClick","style","primaryColor","secondaryColor"],Rn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ep(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,Tp),p=y.useRef(),h=Rn;if(l&&(h={primaryColor:l,secondaryColor:c||Cc(l)}),kp(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=Ep;function jc(t){var r=wc(t),n=le(r,2),o=n[0],i=n[1];return Zr.setTwoToneColors({primaryColor:o,secondaryColor:i})}function Pp(){var t=Zr.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var Bp=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jc(Do.primary);var or=y.forwardRef(function(t,r){var n=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,c=t.onClick,d=t.twoToneColor,p=$t(t,Bp),h=y.useContext(Ds),f=h.prefixCls,x=f===void 0?"anticon":f,T=h.rootClassName,g=ve(T,x,ae(ae({},"".concat(x,"-").concat(o.name),!!o.name),"".concat(x,"-spin"),!!i||o.name==="loading"),n),j=l;j===void 0&&c&&(j=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=wc(d),C=le(w,2),B=C[0],P=C[1];return y.createElement("span",nt({role:"img","aria-label":o.name},p,{ref:r,tabIndex:j,onClick:c,className:g}),y.createElement(Zr,{icon:o,primaryColor:B,secondaryColor:P,style:v}))});or.displayName="AntdIcon";or.getTwoToneColor=Pp;or.setTwoToneColor=jc;var Mp=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:ip}))},Sc=y.forwardRef(Mp);process.env.NODE_ENV!=="production"&&(Sc.displayName="EditOutlined");var Np=Symbol.for("react.element"),Op=Symbol.for("react.transitional.element"),Dp=Symbol.for("react.fragment");function Rc(t){return t&&Te(t)==="object"&&(t.$$typeof===Np||t.$$typeof===Op)&&t.type===Dp}function Mn(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return u.Children.forEach(t,function(o){o==null&&!r.keepEmpty||(Array.isArray(o)?n=n.concat(Mn(o)):Rc(o)&&o.props?n=n.concat(Mn(o.props.children,r)):n.push(o))}),n}function Nn(t){return t instanceof HTMLElement||t instanceof SVGElement}function Ap(t){return t&&Te(t)==="object"&&Nn(t.nativeElement)?t.nativeElement:Nn(t)?t:null}function Ro(t){var r=Ap(t);if(r)return r;if(t instanceof u.Component){var n;return(n=Bo.findDOMNode)===null||n===void 0?void 0:n.call(Bo,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"),T=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"),T=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function j(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case n:case i:case o:case p:case h:return v;default:switch(v=v&&v.$$typeof,v){case c:case l:case d:case x:case f:case a:return v;default:return w}}case r:return w}}}return Pe.ContextConsumer=l,Pe.ContextProvider=a,Pe.Element=t,Pe.ForwardRef=d,Pe.Fragment=n,Pe.Lazy=x,Pe.Memo=f,Pe.Portal=r,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=p,Pe.SuspenseList=h,Pe.isAsyncMode=function(){return!1},Pe.isConcurrentMode=function(){return!1},Pe.isContextConsumer=function(v){return j(v)===l},Pe.isContextProvider=function(v){return j(v)===a},Pe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Pe.isForwardRef=function(v){return j(v)===d},Pe.isFragment=function(v){return j(v)===n},Pe.isLazy=function(v){return j(v)===x},Pe.isMemo=function(v){return j(v)===f},Pe.isPortal=function(v){return j(v)===r},Pe.isProfiler=function(v){return j(v)===i},Pe.isStrictMode=function(v){return j(v)===o},Pe.isSuspense=function(v){return j(v)===p},Pe.isSuspenseList=function(v){return j(v)===h},Pe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===i||v===o||v===p||v===h||v===T||typeof v=="object"&&v!==null&&(v.$$typeof===x||v.$$typeof===f||v.$$typeof===a||v.$$typeof===l||v.$$typeof===d||v.$$typeof===g||v.getModuleId!==void 0)},Pe.typeOf=j,Pe}var Be={};/**
|
|
73
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"),T=Symbol.for("react.offscreen"),g=!1,S=!1,y=!1,j=!1,w=!1,P;P=Symbol.for("react.module.reference");function I(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===i||w||W===o||W===p||W===h||j||W===T||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 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,k=t,O=d,_=n,N=x,D=f,F=r,U=i,v=o,E=p,B=h,L=!1,V=!1;function X(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 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 q(W){return C(W)===o}function M(W){return C(W)===p}function G(W){return C(W)===h}Be.ContextConsumer=m,Be.ContextProvider=R,Be.Element=k,Be.ForwardRef=O,Be.Fragment=_,Be.Lazy=N,Be.Memo=D,Be.Portal=F,Be.Profiler=U,Be.StrictMode=v,Be.Suspense=E,Be.SuspenseList=B,Be.isAsyncMode=X,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=q,Be.isSuspense=M,Be.isSuspenseList=G,Be.isValidElementType=I,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=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):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]})})},Uo=function(r){var n,o;if(!r)return!1;if(kc(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 kc(t){return u.isValidElement(t)&&!Rc(t)}var Hs=function(r){if(r&&kc(r)){var n=r;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},fs=b.createContext(null);function Hp(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 Tc=(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")()})(),Fp=(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(){Fp(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})(),Ec=(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 Ec(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);Ec(this,{target:r,contentRect:o})}return t})(),of=(function(){function t(r,n,o){if(this.activeObservations_=[],this.observations_=new Tc,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 Tc,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 _o.ResizeObserver<"u"?_o.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 Et(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 kn(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 kn(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 Et(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?Hs(d):null,x=Ls(f,i),T=function(){var j;return Ro(i.current)||(i.current&&Te(i.current)==="object"?Ro((j=i.current)===null||j===void 0?void 0:j.nativeElement):null)||Ro(a.current)};b.useImperativeHandle(r,function(){return T()});var g=b.useRef(t);g.current=t;var S=b.useCallback(function(y){var j=g.current,w=j.onResize,P=j.data,I=y.getBoundingClientRect(),C=I.width,m=I.height,R=y.offsetWidth,k=y.offsetHeight,O=Math.floor(C),_=Math.floor(m);if(p.current.width!==O||p.current.height!==_||p.current.offsetWidth!==R||p.current.offsetHeight!==k){var N={width:O,height:_,offsetWidth:R,offsetHeight:k};p.current=N;var D=R===Math.round(C)?C:R,F=k===Math.round(m)?m:k,U=re(re({},N),{},{offsetWidth:D,offsetHeight:F});l?.(U,y,P),w&&Promise.resolve().then(function(){w(U,y)})}},[]);return b.useEffect(function(){var y=T();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]:Mn(n);return process.env.NODE_ENV!=="production"&&(o.length>1?Fr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Fr(!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=Hp;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,T=wt(a),g=On([f]),S=le(g,2),y=S[0],j=S[1];La(function(){var P=y[0];p!==P&&T(p,P)},[y]),La(function(){Ri(i)||h(i)},[i]);var w=wt(function(P,I){h(P,I),j([f],I)});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(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 Ha(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){Et(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 Fs=(function(){function t(){Et(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(Fs,"MAX_CACHE_SIZE",20);ae(Fs,"MAX_CACHE_OFFSET",5);var Fa=0,_c=(function(){function t(r){Et(this,t),ae(this,"derivatives",void 0),ae(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=Fa,r.length===0&&Fr(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Fa+=1}return It(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(o,i){return i(n,o)},void 0)}}]),t})(),ki=new Fs;function xs(t){var r=Array.isArray(t)?t:[t];return ki.has(r)||ki.set(r,new _c(r)),ki.get(r)}var wf=new WeakMap,Ti={};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(Ti)||n.set(Ti,t()),n.get(Ti)}var Va=new WeakMap;function Tn(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+=Tn(o):r+=o}),r=Dn(r),Va.set(t,r)),r}function Wa(t,r){return Dn("".concat(r,"_").concat(Tn(t)))}var vs=gt();function _e(t){return typeof t=="number"?"".concat(t,"px"):t}var ko=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,T=ko(h,o?.prefix);i[T]=typeof f=="number"&&!(o!=null&&(x=o.unitless)!==null&&x!==void 0&&x[h])?"".concat(f,"px"):String(f),a[h]="var(".concat(T,")")}}),[a,Sf(i,n,{scope:o?.scope})]},Rf=re({},b),Ua=Rf.useInsertionEffect,kf=function(r,n,o){b.useMemo(r,o),Ge(function(){return n(!0)},o)},Tf=Ua?function(t,r,n){return Ua(function(){return t(),r()},n)}:kf,Ef=re({},b),If=Ef.useInsertionEffect,Pf=function(r){var n=[],o=!1;function i(a){if(o){process.env.NODE_ENV!=="production"&&Fr(!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},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=b.useContext(Kn),l=a.cache,c=[t].concat(at(r)),d=ms(c),p=Mf([d]),h=Df(),f=function(S){l.opUpdate(d,function(y){var j=y||[void 0,void 0],w=le(j,2),P=w[0],I=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(),k=[I,R];return S?S(k):k})};b.useMemo(function(){f()},[d]);var x=l.opGet(d);process.env.NODE_ENV!=="production"&&!x&&(f(),x=l.opGet(d));var T=x[1];return Tf(function(){i?.(T)},function(g){return f(function(S){var y=le(S,2),j=y[0],w=y[1];return g&&j===0&&i?.(T),[j+1,w]}),function(){l.opUpdate(d,function(S){var y=S||[],j=le(y,2),w=j[0],P=w===void 0?0:w,I=j[1],C=P-1;return C===0?(p(function(){(g||!l.opGet(d))&&o?.(I,!1)}),null):[P-1,I]})}},[d]),T}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 Hf=0;function Ff(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>Hf&&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,T=jf(function(){return Object.assign.apply(Object,[{}].concat(at(r)))},r),g=Tn(T),S=Tn(p),y=x?Tn(x):"",j=Vs(Wf,[c,t.id,g,S,y],function(){var w,P=f?f(T,p,t):Vf(T,p,t,h),I=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 k=Wa(P,c);P._tokenKey=k,I._tokenKey=Wa(I,c);var O=(w=x?.key)!==null&&w!==void 0?w:k;P._themeKey=O,zf(O);var _="".concat($f,"-").concat(Dn(k));return P._hashId=_,[P,_,I,C,x?.key||""]},function(w){Ff(w[0]._themeKey,i)},function(w){var P=le(w,4),I=P[0],C=P[3];if(x&&C){var m=tr(C,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",Hc="decl",Kf="@import",Yf="@namespace",qf="@keyframes",Xf="@layer",Fc=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 Hr(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,Tt=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=Tt>0?Hr(en,--Tt):0,Gr--,Je===10&&(Gr=1,Ko--),Je}function _t(){return Je=Tt<Wc?Hr(en,Tt++):0,Gr++,Je===10&&(Gr=1,Ko++),Je}function xr(){return Hr(en,Tt)}function Eo(){return Tt}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),Tt=0,[]}function rh(t){return en="",t}function Ei(t){return Vc(Yo(Tt-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,Eo()+(r<6&&xr()==32&&_t()==32))}function bs(t){for(;_t();)switch(Je){case t:return Tt;case 34:case 39:t!==34&&t!==39&&bs(Je);break;case 40:t===41&&bs(t);break;case 92:_t();break}return Tt}function ih(t,r){for(;_t()&&t+Je!==57;)if(t+Je===84&&xr()===47)break;return"/*"+Yo(r,Tt-1)+"*"+Ws(t===47?t:_t())}function sh(t){for(;!_n(xr());)_t();return Yo(t,Tt)}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,T=0,g=0,S=1,y=1,j=1,w=0,P="",I=i,C=a,m=o,R=P;y;)switch(g=w,w=_t()){case 40:if(g!=108&&Hr(R,f-1)==58){Qf(R+=To(Ei(w),"&","&\f"),"&\f",Fc(p?c[p-1]:0))!=-1&&(j=-1);break}case 34:case 39:case 91:R+=Ei(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*S:c[p++]=Vt(R)*j;case 125*S:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+h:j==-1&&(R=To(R,/\f/g,"")),T>0&&(Vt(R)-f||S===0&&g===47)&&ho(T>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,I=[],C=[],f,a),a),w===123)if(h===0)Io(R,r,m,m,I,a,f,c,C);else{switch(x){case 99:if(Hr(R,3)===110)break;case 108:if(Hr(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,C),C),i,C,f,c,o?I:C):Io(R,m,m,m,[""],C,0,c,C)}}p=h=T=0,S=j=1,P=R="",f=l;break;case 58:f=1+Vt(R),T=g;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&eh()==125)continue}switch(R+=Ws(w),w*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+=Ei(_t())),x=xr(),h=f=Vt(P=R+=sh(Eo())),w++;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,T=i===0?a:[""],g=Zf(T),S=0,y=0,j=0;S<o;++S)for(var w=0,P=Ur(t,x+1,x=Fc(y=l[S])),I=t;w<g;++w)(I=Vc(y>0?T[w]+" "+P:To(P,/&\f/g,T[w])))&&(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,Hc,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 Hc: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__",Tr,Kc=!0;function ph(){if(!Tr&&(Tr={},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];Tr[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(),!!Tr[t]}function hh(t){var r=Tr[t],n=null;if(r&>())if(Kc)n=Gc;else{var o=document.querySelector("style[".concat(Wt,'="').concat(Tr[t],'"]'));o?n=o.innerHTML:delete Tr[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,T=n.linters,g=T===void 0?[]:T,S="",y={};function j(I){var C=I.getName(c);if(!y[C]){var m=t(I.style,n,{root:!1,parentSelectors:l}),R=le(m,1),k=R[0];y[C]="@keyframes ".concat(I.getName(c)).concat(k)}}function w(I){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return I.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(I){var C=typeof I=="string"&&!i?{}:I;if(typeof C=="string")S+="".concat(C,`
|
|
81
|
-
`);else if(
|
|
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,T=h.defaultCache,g=h.hashPriority,S=h.container,y=h.ssrInline,j=h.transformers,w=h.linters,P=h.cache,I=h.layer,C=n._tokenKey,m=[C];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 k=Vs(vh,m,function(){var F=m.join("|");if(fh(F)){var U=hh(F),v=le(U,2),E=v[0],B=v[1];if(E)return[E,C,B,{},c,p]}var L=r(),V=mh(L,{hashId:i,hashPriority:g,layer:I?a:void 0,path:o.join("-"),transformers:j,linters:w}),X=le(V,2),z=X[0],$=X[1],Y=Ii(z),ee=Xc(m,Y);return[Y,C,ee,$,c,p]},function(F,U){var v=le(F,3),E=v[2];(U||f)&&vs&&Bn(E,{mark:Wt,attachTo:S})},function(F){var U=le(F,4),v=U[0],E=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 X=[],z=[];Object.keys(B).forEach(function(Y){Y.startsWith("@layer")?X.push(Y):z.push(Y)}),X.forEach(function(Y){tr(Ii(B[Y]),"_layer-".concat(Y),re(re({},L),{},{prepend:!0}))});var $=tr(v,E,L);$[mr]=P.instanceId,$.setAttribute(An,C),process.env.NODE_ENV!=="production"&&$.setAttribute(yf,m.join("|")),z.forEach(function(Y){tr(Ii(B[Y]),"_effect-".concat(Y),L)})}}),O=le(k,3),_=O[0],N=O[1],D=O[2];return function(F){var U;return!y||R||!T?U=b.createElement(xh,null):U=b.createElement("style",nt({},ae(ae({},An,N),Wt,D),{dangerouslySetInnerHTML:{__html:_}})),b.createElement(b.Fragment,null,U,F)}}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,T=c._tokenKey,g=[].concat(at(r.path),[o,p,T]),S=Vs(yh,g,function(){var y=n(),j=$c(y,o,{prefix:i,unitless:a,ignore:l,scope:p}),w=le(j,2),P=w[0],I=w[1],C=Xc(g,I);return[P,I,C,o]},function(y){var j=le(y,3),w=j[2];vs&&Bn(w,{mark:Wt,attachTo:x})},function(y){var j=le(y,3),w=j[1],P=j[2];if(w){var I=tr(w,P,{mark:Wt,prepend:"queue",attachTo:x,priority:-999});I[mr]=f,I.setAttribute(An,o)}});return S},Pt=(function(){function t(r,n){Et(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 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=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},kh=u.createContext(void 0);var Th={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"},Eh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Ih=re(re({},Eh),{},{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:Th,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),Bh=(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,
|
|
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"),T=Symbol.for("react.offscreen"),g=!1,j=!1,v=!1,w=!1,C=!1,B;B=Symbol.for("react.module.reference");function P(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===i||C||W===o||W===p||W===h||w||W===T||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===B||W.getModuleId!==void 0))}function b(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,k=t,N=d,_=n,O=x,D=f,V=r,U=i,E=o,S=p,I=h,L=!1,H=!1;function X(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 H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(W){return b(W)===l}function Y(W){return b(W)===a}function ee(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function oe(W){return b(W)===d}function ne(W){return b(W)===n}function fe(W){return b(W)===x}function A(W){return b(W)===f}function K(W){return b(W)===r}function Z(W){return b(W)===i}function q(W){return b(W)===o}function M(W){return b(W)===p}function G(W){return b(W)===h}Be.ContextConsumer=m,Be.ContextProvider=R,Be.Element=k,Be.ForwardRef=N,Be.Fragment=_,Be.Lazy=O,Be.Memo=D,Be.Portal=V,Be.Profiler=U,Be.StrictMode=E,Be.Suspense=S,Be.SuspenseList=I,Be.isAsyncMode=X,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=q,Be.isSuspense=M,Be.isSuspenseList=G,Be.isValidElementType=P,Be.typeOf=b})()),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]})})},Uo=function(r){var n,o;if(!r)return!1;if(kc(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 kc(t){return u.isValidElement(t)&&!Rc(t)}var Hs=function(r){if(r&&kc(r)){var n=r;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},fs=y.createContext(null);function Hp(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 Tc=(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")()})(),Fp=(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(){Fp(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})(),Ec=(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 Ec(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);Ec(this,{target:r,contentRect:o})}return t})(),of=(function(){function t(r,n,o){if(this.activeObservations_=[],this.observations_=new Tc,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 Tc,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 _o.ResizeObserver<"u"?_o.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 Et(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 kn(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 kn(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 Et(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)&&Uo(d),f=h?Hs(d):null,x=Ls(f,i),T=function(){var w;return Ro(i.current)||(i.current&&Te(i.current)==="object"?Ro((w=i.current)===null||w===void 0?void 0:w.nativeElement):null)||Ro(a.current)};y.useImperativeHandle(r,function(){return T()});var g=y.useRef(t);g.current=t;var j=y.useCallback(function(v){var w=g.current,C=w.onResize,B=w.data,P=v.getBoundingClientRect(),b=P.width,m=P.height,R=v.offsetWidth,k=v.offsetHeight,N=Math.floor(b),_=Math.floor(m);if(p.current.width!==N||p.current.height!==_||p.current.offsetWidth!==R||p.current.offsetHeight!==k){var O={width:N,height:_,offsetWidth:R,offsetHeight:k};p.current=O;var D=R===Math.round(b)?b:R,V=k===Math.round(m)?m:k,U=re(re({},O),{},{offsetWidth:D,offsetHeight:V});l?.(U,v,B),C&&Promise.resolve().then(function(){C(U,v)})}},[]);return y.useEffect(function(){var v=T();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?Fr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Fr(!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=Hp;var za=process.env.NODE_ENV!=="test"&>()?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,T=wt(a),g=On([f]),j=le(g,2),v=j[0],w=j[1];La(function(){var B=v[0];p!==B&&T(p,B)},[v]),La(function(){Ri(i)||h(i)},[i]);var C=wt(function(B,P){h(B,P),w([f],P)});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 Ha(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){Et(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=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 Fs=(function(){function t(){Et(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(Fs,"MAX_CACHE_SIZE",20);ae(Fs,"MAX_CACHE_OFFSET",5);var Fa=0,_c=(function(){function t(r){Et(this,t),ae(this,"derivatives",void 0),ae(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=Fa,r.length===0&&Fr(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Fa+=1}return It(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(o,i){return i(n,o)},void 0)}}]),t})(),ki=new Fs;function xs(t){var r=Array.isArray(t)?t:[t];return ki.has(r)||ki.set(r,new _c(r)),ki.get(r)}var wf=new WeakMap,Ti={};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(Ti)||n.set(Ti,t()),n.get(Ti)}var Va=new WeakMap;function Tn(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+=Tn(o):r+=o}),r=Dn(r),Va.set(t,r)),r}function Wa(t,r){return Dn("".concat(r,"_").concat(Tn(t)))}var vs=gt();function _e(t){return typeof t=="number"?"".concat(t,"px"):t}var ko=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,T=ko(h,o?.prefix);i[T]=typeof f=="number"&&!(o!=null&&(x=o.unitless)!==null&&x!==void 0&&x[h])?"".concat(f,"px"):String(f),a[h]="var(".concat(T,")")}}),[a,Sf(i,n,{scope:o?.scope})]},Rf=re({},y),Ua=Rf.useInsertionEffect,kf=function(r,n,o){y.useMemo(r,o),Ge(function(){return n(!0)},o)},Tf=Ua?function(t,r,n){return Ua(function(){return t(),r()},n)}:kf,Ef=re({},y),If=Ef.useInsertionEffect,Pf=function(r){var n=[],o=!1;function i(a){if(o){process.env.NODE_ENV!=="production"&&Fr(!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 w=v||[void 0,void 0],C=le(w,2),B=C[0],P=B===void 0?0:B,b=C[1],m=b;process.env.NODE_ENV!=="production"&&b&&h&&(o?.(m,h),m=null);var R=m||n(),k=[P,R];return j?j(k):k})};y.useMemo(function(){f()},[d]);var x=l.opGet(d);process.env.NODE_ENV!=="production"&&!x&&(f(),x=l.opGet(d));var T=x[1];return Tf(function(){i?.(T)},function(g){return f(function(j){var v=le(j,2),w=v[0],C=v[1];return g&&w===0&&i?.(T),[w+1,C]}),function(){l.opUpdate(d,function(j){var v=j||[],w=le(v,2),C=w[0],B=C===void 0?0:C,P=w[1],b=B-1;return b===0?(p(function(){(g||!l.opGet(d))&&o?.(P,!1)}),null):[B-1,P]})}},[d]),T}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 Hf=0;function Ff(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>Hf&&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,T=jf(function(){return Object.assign.apply(Object,[{}].concat(at(r)))},r),g=Tn(T),j=Tn(p),v=x?Tn(x):"",w=Vs(Wf,[c,t.id,g,j,v],function(){var C,B=f?f(T,p,t):Vf(T,p,t,h),P=re({},B),b="";if(x){var m=$c(B,x.key,{prefix:x.prefix,ignore:x.ignore,unitless:x.unitless,preserve:x.preserve}),R=le(m,2);B=R[0],b=R[1]}var k=Wa(B,c);B._tokenKey=k,P._tokenKey=Wa(P,c);var N=(C=x?.key)!==null&&C!==void 0?C:k;B._themeKey=N,zf(N);var _="".concat($f,"-").concat(Dn(k));return B._hashId=_,[B,_,P,b,x?.key||""]},function(C){Ff(C[0]._themeKey,i)},function(C){var B=le(C,4),P=B[0],b=B[3];if(x&&b){var m=tr(b,Dn("css-variables-".concat(P._themeKey)),{mark:Wt,prepend:"queue",attachTo:a,priority:-999});m[mr]=i,m.setAttribute(An,P._themeKey)}});return w}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",Hc="decl",Kf="@import",Yf="@namespace",qf="@keyframes",Xf="@layer",Fc=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 Hr(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,Tt=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=Tt>0?Hr(en,--Tt):0,Gr--,Je===10&&(Gr=1,Ko--),Je}function _t(){return Je=Tt<Wc?Hr(en,Tt++):0,Gr++,Je===10&&(Gr=1,Ko++),Je}function xr(){return Hr(en,Tt)}function Eo(){return Tt}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),Tt=0,[]}function rh(t){return en="",t}function Ei(t){return Vc(Yo(Tt-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,Eo()+(r<6&&xr()==32&&_t()==32))}function bs(t){for(;_t();)switch(Je){case t:return Tt;case 34:case 39:t!==34&&t!==39&&bs(Je);break;case 40:t===41&&bs(t);break;case 92:_t();break}return Tt}function ih(t,r){for(;_t()&&t+Je!==57;)if(t+Je===84&&xr()===47)break;return"/*"+Yo(r,Tt-1)+"*"+Ws(t===47?t:_t())}function sh(t){for(;!_n(xr());)_t();return Yo(t,Tt)}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,T=0,g=0,j=1,v=1,w=1,C=0,B="",P=i,b=a,m=o,R=B;v;)switch(g=C,C=_t()){case 40:if(g!=108&&Hr(R,f-1)==58){Qf(R+=To(Ei(C),"&","&\f"),"&\f",Fc(p?c[p-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:R+=Ei(C);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)*w;case 125*j:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+h:w==-1&&(R=To(R,/\f/g,"")),T>0&&(Vt(R)-f||j===0&&g===47)&&ho(T>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,B,P=[],b=[],f,a),a),C===123)if(h===0)Io(R,r,m,m,P,a,f,c,b);else{switch(x){case 99:if(Hr(R,3)===110)break;case 108:if(Hr(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,B,i,P=[],f,b),b),i,b,f,c,o?P:b):Io(R,m,m,m,[""],b,0,c,b)}}p=h=T=0,j=w=1,B=R="",f=l;break;case 58:f=1+Vt(R),T=g;default:if(j<1){if(C==123)--j;else if(C==125&&j++==0&&eh()==125)continue}switch(R+=Ws(C),C*j){case 38:w=h>0?1:(R+="\f",-1);break;case 44:c[p++]=(Vt(R)-1)*w,w=1;break;case 64:xr()===45&&(R+=Ei(_t())),x=xr(),h=f=Vt(B=R+=sh(Eo())),C++;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,T=i===0?a:[""],g=Zf(T),j=0,v=0,w=0;j<o;++j)for(var C=0,B=Ur(t,x+1,x=Fc(v=l[j])),P=t;C<g;++C)(P=Vc(v>0?T[C]+" "+B:To(B,/&\f/g,T[C])))&&(d[w++]=P);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,Hc,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 Hc: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__",Tr,Kc=!0;function ph(){if(!Tr&&(Tr={},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];Tr[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(),!!Tr[t]}function hh(t){var r=Tr[t],n=null;if(r&>())if(Kc)n=Gc;else{var o=document.querySelector("style[".concat(Wt,'="').concat(Tr[t],'"]'));o?n=o.innerHTML:delete Tr[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,T=n.linters,g=T===void 0?[]:T,j="",v={};function w(P){var b=P.getName(c);if(!v[b]){var m=t(P.style,n,{root:!1,parentSelectors:l}),R=le(m,1),k=R[0];v[b]="@keyframes ".concat(P.getName(c)).concat(k)}}function C(P){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return P.forEach(function(m){Array.isArray(m)?C(m,b):m&&b.push(m)}),b}var B=C(Array.isArray(r)?r:[r]);return B.forEach(function(P){var b=typeof P=="string"&&!i?{}:P;if(typeof b=="string")j+="".concat(b,`
|
|
81
|
+
`);else if(b._keyframe)w(b);else{var m=x.reduce(function(R,k){var N;return(k==null||(N=k.visit)===null||N===void 0?void 0:N.call(k,R))||R},b);Object.keys(m).forEach(function(R){var k=m[R];if(Te(k)==="object"&&k&&(R!=="animationName"||!k._keyframe)&&!gh(k)){var N=!1,_=R.trim(),O=!1;(i||a)&&c?_.startsWith("@")?N=!0:_==="&"?_=qa("",c,h):_=qa(R,c,h):i&&!c&&(_==="&"||_==="")&&(_="",O=!0);var D=t(k,n,{root:O,injectHash:N,parentSelectors:[].concat(at(l),[_])}),V=le(D,2),U=V[0],E=V[1];v=re(re({},v),E),j+="".concat(_).concat(U)}else{let L=function(H,X){process.env.NODE_ENV!=="production"&&(Te(k)!=="object"||!(k!=null&&k[Yc]))&&[dh,uh].concat(at(g)).forEach(function(Y){return Y(H,X,{path:p,hashId:c,parentSelectors:l})});var z=H.replace(/[A-Z]/g,function(Y){return"-".concat(Y.toLowerCase())}),$=X;!Gf[H]&&typeof $=="number"&&$!==0&&($="".concat($,"px")),H==="animationName"&&X!==null&&X!==void 0&&X._keyframe&&(w(X),$=X.getName(c)),j+="".concat(z,":").concat($,";")};var S,I=(S=k?.value)!==null&&S!==void 0?S:k;Te(k)==="object"&&k!==null&&k!==void 0&&k[qc]&&Array.isArray(I)?I.forEach(function(H){L(R,H)}):L(R,I)}})}}),i?d&&(j&&(j="@layer ".concat(d.name," {").concat(j,"}")),d.dependencies&&(v["@layer ".concat(d.name)]=d.dependencies.map(function(P){return"@layer ".concat(P,", ").concat(d.name,";")}).join(`
|
|
82
|
+
`))):j="{".concat(j,"}"),[j,v]};function Xc(t,r){return Dn("".concat(t.join("%")).concat(r))}function xh(){return null}var vh="style";function ws(t,r){var n=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,c=t.clientOnly,d=t.order,p=d===void 0?0:d,h=y.useContext(Kn),f=h.autoClear,x=h.mock,T=h.defaultCache,g=h.hashPriority,j=h.container,v=h.ssrInline,w=h.transformers,C=h.linters,B=h.cache,P=h.layer,b=n._tokenKey,m=[b];P&&m.push("layer"),m.push.apply(m,at(o));var R=vs;process.env.NODE_ENV!=="production"&&x!==void 0&&(R=x==="client");var k=Vs(vh,m,function(){var V=m.join("|");if(fh(V)){var U=hh(V),E=le(U,2),S=E[0],I=E[1];if(S)return[S,b,I,{},c,p]}var L=r(),H=mh(L,{hashId:i,hashPriority:g,layer:P?a:void 0,path:o.join("-"),transformers:w,linters:C}),X=le(H,2),z=X[0],$=X[1],Y=Ii(z),ee=Xc(m,Y);return[Y,b,ee,$,c,p]},function(V,U){var E=le(V,3),S=E[2];(U||f)&&vs&&Bn(S,{mark:Wt,attachTo:j})},function(V){var U=le(V,4),E=U[0],S=U[2],I=U[3];if(R&&E!==Gc){var L={mark:Wt,prepend:P?!1:"queue",attachTo:j,priority:p},H=typeof l=="function"?l():l;H&&(L.csp={nonce:H});var X=[],z=[];Object.keys(I).forEach(function(Y){Y.startsWith("@layer")?X.push(Y):z.push(Y)}),X.forEach(function(Y){tr(Ii(I[Y]),"_layer-".concat(Y),re(re({},L),{},{prepend:!0}))});var $=tr(E,S,L);$[mr]=B.instanceId,$.setAttribute(An,b),process.env.NODE_ENV!=="production"&&$.setAttribute(yf,m.join("|")),z.forEach(function(Y){tr(Ii(I[Y]),"_effect-".concat(Y),L)})}}),N=le(k,3),_=N[0],O=N[1],D=N[2];return function(V){var U;return!v||R||!T?U=y.createElement(xh,null):U=y.createElement("style",nt({},ae(ae({},An,O),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,T=c._tokenKey,g=[].concat(at(r.path),[o,p,T]),j=Vs(yh,g,function(){var v=n(),w=$c(v,o,{prefix:i,unitless:a,ignore:l,scope:p}),C=le(w,2),B=C[0],P=C[1],b=Xc(g,P);return[B,P,b,o]},function(v){var w=le(v,3),C=w[2];vs&&Bn(C,{mark:Wt,attachTo:x})},function(v){var w=le(v,3),C=w[1],B=w[2];if(C){var P=tr(C,B,{mark:Wt,prepend:"queue",attachTo:x,priority:-999});P[mr]=f,P.setAttribute(An,o)}});return j},Pt=(function(){function t(r,n){Et(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 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},kh=u.createContext(void 0);var Th={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"},Eh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Ih=re(re({},Eh),{},{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:Th,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),Bh=(t,r)=>{const n=y.useContext(Gs),o=y.useMemo(()=>{var a;const l=Kr[t],c=(a=n?.[t])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),c||{})},[t,r,n]),i=y.useMemo(()=>{const a=n?.locale;return n?.exist&&!a?Kr.locale:a},[n]);return[o,i]},rd="internalMark",nd=t=>{const{locale:r={},children:n,_ANT_MARK__:o}=t;if(process.env.NODE_ENV!=="production"){const a=Gt("LocaleProvider");process.env.NODE_ENV!=="production"&&a(o===rd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}y.useEffect(()=>Ph(r?.Modal),[r]);const i=y.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return y.createElement(Gs.Provider,{value:i},n)};process.env.NODE_ENV!=="production"&&(nd.displayName="LocaleProvider");const od={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$n=Object.assign(Object.assign({},od),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
83
83
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
84
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Mh(t,{generateColorPalettes:r,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:d,colorTextBase:p}=t,h=r(c),f=r(o),x=r(i),T=r(a),g=r(l),
|
|
84
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Mh(t,{generateColorPalettes:r,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:d,colorTextBase:p}=t,h=r(c),f=r(o),x=r(i),T=r(a),g=r(l),j=n(d,p),v=t.colorLink||t.colorInfo,w=r(v),C=new rt(T[1]).mix(new rt(T[3]),50).toHexString();return Object.assign(Object.assign({},j),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:T[1],colorErrorBgHover:T[2],colorErrorBgFilledHover:C,colorErrorBgActive:T[3],colorErrorBorder:T[3],colorErrorBorderHover:T[4],colorErrorHover:T[5],colorError:T[6],colorErrorActive:T[7],colorErrorTextHover:T[8],colorErrorText:T[9],colorErrorTextActive:T[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:w[4],colorLink:w[6],colorLinkActive:w[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]}},Hh=(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 Fh(t){wi.pink=wi.magenta,ji.pink=ji.magenta;const r=Object.keys(od).map(n=>{const o=t[n]===wi[n]?ji[n]:Pn(t[n]);return Array.from({length:10},()=>1).reduce((i,a,l)=>(i[`${n}-${l+1}`]=o[l],i[`${n}${l+1}`]=o[l],i),{})}).reduce((n,o)=>(n=Object.assign(Object.assign({},n),o),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),r),Mh(t,{generateColorPalettes:Lh,generateNeutralColorPalettes:Hh})),$h(t.fontSize)),zh(t)),Dh(t)),Oh(t))}const id=xs(Fh),Ss={token:$n,override:{override:$n},hashed:!0},sd=u.createContext(Ss),Rs="ant",Ks="anticon",Vh=["outlined","borderless","filled","underlined"],Wh=(t,r)=>r||(t?`${Rs}-${t}`:Rs),rr=y.createContext({getPrefixCls:Wh,iconPrefixCls:Ks}),Ja={};function qo(t){const r=y.useContext(rr),{getPrefixCls:n,direction:o,getPopupContainer:i}=r,a=r[t];return Object.assign(Object.assign({classNames:Ja,styles:Ja},a),{getPrefixCls:n,direction:o,getPopupContainer:i})}const Uh=`-ant-${Date.now()}-${Math.random()}`;function Gh(t,r){const n={},o=(l,c)=>{let d=l.clone();return d=c?.(d)||d,d.toRgbString()},i=(l,c)=>{const d=new rt(l),p=Pn(d.toRgbString());n[`${c}-color`]=o(d),n[`${c}-color-disabled`]=p[1],n[`${c}-color-hover`]=p[4],n[`${c}-color-active`]=p[6],n[`${c}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=p[0],n[`${c}-color-deprecated-border`]=p[2]};if(r.primaryColor){i(r.primaryColor,"primary");const l=new rt(r.primaryColor),c=Pn(l.toRgbString());c.forEach((p,h)=>{n[`primary-${h+1}`]=p}),n["primary-color-deprecated-l-35"]=o(l,p=>p.lighten(35)),n["primary-color-deprecated-l-20"]=o(l,p=>p.lighten(20)),n["primary-color-deprecated-t-20"]=o(l,p=>p.tint(20)),n["primary-color-deprecated-t-50"]=o(l,p=>p.tint(50)),n["primary-color-deprecated-f-12"]=o(l,p=>p.setA(p.a*.12));const d=new rt(c[0]);n["primary-color-active-deprecated-f-30"]=o(d,p=>p.setA(p.a*.3)),n["primary-color-active-deprecated-d-02"]=o(d,p=>p.darken(2))}return r.successColor&&i(r.successColor,"success"),r.warningColor&&i(r.warningColor,"warning"),r.errorColor&&i(r.errorColor,"error"),r.infoColor&&i(r.infoColor,"info"),`
|
|
85
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);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(){Et(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;Et(this,n),a=r.call(this),ae(kn(a),"result",""),ae(kn(a),"unitlessCssVar",void 0),ae(kn(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 Et(this,n),i=r.call(this),ae(kn(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",ks=!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));ks=!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]}})})}}),ks=!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(ks){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(){Et(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&&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,T,g,S){var y=Array.isArray(x)?x[0]:x;function j(k){return"".concat(String(y)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var w=S?.unitless||{},P=typeof c=="function"?c(x):{},I=re(re({},P),{},ae({},j("zIndexPopup"),!0));Object.keys(w).forEach(function(k){I[j(k)]=w[k]});var C=re(re({},S),{},{unitless:I,prefixToken:j}),m=h(x,T,g,C),R=p(y,g,C);return function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,_=m(k,O),N=le(_,2),D=N[1],F=R(O),U=le(F,2),v=U[0],E=U[1];return[v,D,E]}}function p(x,T,g){var S=g.unitless,y=g.injectStyle,j=y===void 0?!0:y,w=g.prefixToken,P=g.ignore,I=function(R){var k=R.rootCls,O=R.cssVar,_=O===void 0?{}:O,N=o(),D=N.realToken;return bh({path:[x],prefix:_.prefix,key:_.key,unitless:S,ignore:P,token:D,scope:k},function(){var F=nl(x,D,T),U=tl(x,D,F,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(F).forEach(function(v){U[w(v)]=U[v],delete U[v]}),U}),null},C=function(R){var k=o(),O=k.cssVar;return[function(_){return j&&O?u.createElement(u.Fragment,null,u.createElement(I,{rootCls:R,cssVar:O,component:x}),_):_},O?.key]};return C}function h(x,T,g){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(x)?x:[x,x],j=le(y,1),w=j[0],P=y.join("-"),I=t.layer||{name:"antd"};return function(C){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,R=o(),k=R.theme,O=R.realToken,_=R.hashId,N=R.token,D=R.cssVar,F=i(),U=F.rootPrefixCls,v=F.iconPrefixCls,E=n(),B=D?"css":"js",L=sg(function(){var ee=new Set;return D&&Object.keys(S.unitless||{}).forEach(function(oe){ee.add(ko(oe,D.prefix)),ee.add(ko(oe,el(w,D.prefix)))}),eg(B,ee)},[B,w,D?.prefix]),V=ng(B),X=V.max,z=V.min,$={theme:k,token:N,hashId:_,nonce:function(){return E.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:E})});var Y=ws(re(re({},$),{},{path:[P,C,v]}),function(){if(S.injectStyle===!1)return[];var ee=rg(N),oe=ee.token,ne=ee.flush,fe=nl(w,O,g),A=".".concat(C),K=tl(w,O,fe,{deprecatedTokens:S.deprecatedTokens});D&&fe&&Te(fe)==="object"&&Object.keys(fe).forEach(function(G){fe[G]="var(".concat(ko(G,el(w,D.prefix)),")")});var Z=ir(oe,{componentCls:A,prefixCls:C,iconCls:".".concat(v),antCls:".".concat(U),calc:L,max:X,min:z},D?fe:K),q=T(Z,{hashId:_,prefixCls:C,rootPrefixCls:U,iconPrefixCls:v});ne(w,K);var M=typeof l=="function"?l(Z,C,m,S.resetFont):null;return[S.resetStyle===!1?null:M,q]});return[Y,_]}}function f(x,T,g){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=h(x,T,g,re({resetStyle:!1,order:-998},S)),j=function(P){var I=P.prefixCls,C=P.rootCls,m=C===void 0?I:C;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 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=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(){Et(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;Et(this,n),a=r.call(this),ae(kn(a),"result",""),ae(kn(a),"unitlessCssVar",void 0),ae(kn(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 Et(this,n),i=r.call(this),ae(kn(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",ks=!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));ks=!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]}})})}}),ks=!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(ks){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(){Et(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&&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,T,g,j){var v=Array.isArray(x)?x[0]:x;function w(k){return"".concat(String(v)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var C=j?.unitless||{},B=typeof c=="function"?c(x):{},P=re(re({},B),{},ae({},w("zIndexPopup"),!0));Object.keys(C).forEach(function(k){P[w(k)]=C[k]});var b=re(re({},j),{},{unitless:P,prefixToken:w}),m=h(x,T,g,b),R=p(v,g,b);return function(k){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,_=m(k,N),O=le(_,2),D=O[1],V=R(N),U=le(V,2),E=U[0],S=U[1];return[E,D,S]}}function p(x,T,g){var j=g.unitless,v=g.injectStyle,w=v===void 0?!0:v,C=g.prefixToken,B=g.ignore,P=function(R){var k=R.rootCls,N=R.cssVar,_=N===void 0?{}:N,O=o(),D=O.realToken;return bh({path:[x],prefix:_.prefix,key:_.key,unitless:j,ignore:B,token:D,scope:k},function(){var V=nl(x,D,T),U=tl(x,D,V,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(V).forEach(function(E){U[C(E)]=U[E],delete U[E]}),U}),null},b=function(R){var k=o(),N=k.cssVar;return[function(_){return w&&N?u.createElement(u.Fragment,null,u.createElement(P,{rootCls:R,cssVar:N,component:x}),_):_},N?.key]};return b}function h(x,T,g){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(x)?x:[x,x],w=le(v,1),C=w[0],B=v.join("-"),P=t.layer||{name:"antd"};return function(b){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,R=o(),k=R.theme,N=R.realToken,_=R.hashId,O=R.token,D=R.cssVar,V=i(),U=V.rootPrefixCls,E=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(ko(oe,D.prefix)),ee.add(ko(oe,el(C,D.prefix)))}),eg(I,ee)},[I,C,D?.prefix]),H=ng(I),X=H.max,z=H.min,$={theme:k,token:O,hashId:_,nonce:function(){return S.nonce},clientOnly:j.clientOnly,layer:P,order:j.order||-999};typeof a=="function"&&ws(re(re({},$),{},{clientOnly:!1,path:["Shared",U]}),function(){return a(O,{prefix:{rootPrefixCls:U,iconPrefixCls:E},csp:S})});var Y=ws(re(re({},$),{},{path:[B,b,E]}),function(){if(j.injectStyle===!1)return[];var ee=rg(O),oe=ee.token,ne=ee.flush,fe=nl(C,N,g),A=".".concat(b),K=tl(C,N,fe,{deprecatedTokens:j.deprecatedTokens});D&&fe&&Te(fe)==="object"&&Object.keys(fe).forEach(function(G){fe[G]="var(".concat(ko(G,el(C,D.prefix)),")")});var Z=ir(oe,{componentCls:A,prefixCls:b,iconCls:".".concat(E),antCls:".".concat(U),calc:L,max:X,min:z},D?fe:K),q=T(Z,{hashId:_,prefixCls:b,rootPrefixCls:U,iconPrefixCls:E});ne(C,K);var M=typeof l=="function"?l(Z,b,m,j.resetFont):null;return[j.resetStyle===!1?null:M,q]});return[Y,_]}}function f(x,T,g){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=h(x,T,g,re({resetStyle:!1,order:-998},j)),w=function(B){var P=B.prefixCls,b=B.rootCls,m=b===void 0?P:b;return v(P,m),null};return process.env.NODE_ENV!=="production"&&(w.displayName="SubStyle_".concat(String(Array.isArray(x)?x.join("."):x))),w}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 Mi(t){return t>=0&&t<=255}function go(t,r){const{r:n,g:o,b:i,a}=new rt(t).toRgb();if(a<1)return t;const{r:l,g:c,b:d}=new rt(r).toRgb();for(let p=.01;p<=1;p+=.01){const h=Math.round((n-l*(1-p))/p),f=Math.round((o-c*(1-p))/p),x=Math.round((i-d*(1-p))/p);if(Mi(h)&&Mi(f)&&Mi(x))return new rt({r:h,g:f,b:x,a:Math.round(p*100)/100}).toRgbString()}return new rt({r:n,g:o,b:i,a:1}).toRgbString()}var dg=exports&&exports.__rest||function(t,r){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function dd(t){const{override:r}=t,n=dg(t,["override"]),o=Object.assign({},r);Object.keys($n).forEach(x=>{delete o[x]});const i=Object.assign(Object.assign({},n),o),a=480,l=576,c=768,d=992,p=1200,h=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:go(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:go(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:go(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:go(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
90
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:`${_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,"")}`,T=((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:T})},[l,c],(p,h)=>p.some((f,x)=>{const T=h[x];return!mf(f,T,!0)}))}var Rg=["children"],gd=b.createContext({});function kg(t){var r=t.children,n=$t(t,Rg);return b.createElement(gd.Provider,{value:n},r)}var Tg=(function(t){Un(n,t);var r=Gn(n);function n(){return Et(this,n),r.apply(this,arguments)}return It(n,[{key:"render",value:function(){return this.props.children}}]),n})(b.Component);function Eg(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 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 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 kd(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 T=x.indexOf(a),g=x[T+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,T=o.onEnterPrepare,g=o.onLeavePrepare,S=o.onAppearStart,y=o.onEnterStart,j=o.onLeaveStart,w=o.onAppearActive,P=o.onEnterActive,I=o.onLeaveActive,C=o.onAppearEnd,m=o.onEnterEnd,R=o.onLeaveEnd,k=o.onVisibleChanged,O=On(),_=le(O,2),N=_[0],D=_[1],F=Eg(gr),U=le(F,2),v=U[0],E=U[1],B=On(null),L=le(B,2),V=L[0],X=L[1],z=v(),$=u.useRef(!1),Y=u.useRef(null);function ee(){return n()}var oe=u.useRef(!1);function ne(){E(gr),X(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=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],q=function(Re){switch(Re){case mo:return ae(ae(ae({},At,x),$r,S),zr,w);case xo:return ae(ae(ae({},At,T),$r,y),zr,P);case vo:return ae(ae(ae({},At,g),$r,j),zr,I);default:return{}}},M=b.useMemo(function(){return q(z)},[z]),G=$g(z,!t,function(we){if(we===At){var Re=M[At];return Re?Re(ee()):Rd}if(te in M){var ge;X(((ge=M[te])===null||ge===void 0?void 0:ge.call(M,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=kd(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=q(Re);Re&&(t||ge[At])?(E(Re),J()):E(gr),ce.current=r}},[r]),u.useEffect(function(){(z===mo&&!c||z===xo&&!a||z===vo&&!p)&&E(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)&&k?.(N),pe.current=!0)},[N,z]);var ye=V;return M[At]&&te===$r&&(ye=re({transition:"none"},ye)),[z,te,ye,N??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=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,T=i.leavedClassName,g=i.eventProps,S=b.useContext(gd),y=S.motion,j=n(i,y),w=u.useRef(),P=u.useRef();function I(){try{return w.current instanceof HTMLElement?w.current:Ro(P.current)}catch{return null}}var C=zg(j,c,I,i),m=le(C,4),R=m[0],k=m[1],O=m[2],_=m[3],N=b.useRef(_);_&&(N.current=!0);var D=b.useCallback(function(L){w.current=L,zs(a,L)},[a]),F,U=re(re({},g),{},{visible:c});if(!f)F=null;else if(R===gr)_?F=f(re({},U),D):!p&&N.current&&T?F=f(re(re({},U),{},{className:T}),D):h||!p&&!T?F=f(re(re({},U),{},{style:{display:"none"}}),D):F=null;else{var v;k===At?v="prepare":kd(k)?v="active":k===$r&&(v="start");var E=ul(x,"".concat(R,"-").concat(v));F=f(re(re({},U),{},{className:ve(ul(x,R),ae(ae({},E,E&&v),x,typeof x=="string")),style:O}),D)}if(b.isValidElement(F)&&Uo(F)){var B=Hs(F);B||(F=b.cloneElement(F,{ref:D}))}return b.createElement(Tg,{ref:P},F)});return o.displayName="CSSMotion",o}const Td=Lg(Mg),Ts=b.createContext(!0);process.env.NODE_ENV!=="production"&&(Ts.displayName="MotionCacheContext");function Hg(t){const r=b.useContext(Ts),{children:n}=t,[,o]=tn(),{motion:i}=o,a=b.useRef(!1);return a.current||(a.current=r!==i),a.current?b.createElement(Ts.Provider,{value:i},b.createElement(kg,{motion:i},n)):n}const Ed=b.memo(({dropdownMatchSelectWidth:t})=>(Gt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Ed.displayName="PropWarning");const Fg=process.env.NODE_ENV!=="production"?Ed:()=>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 Es=!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:T,popupMatchSelectWidth:g,popupOverflow:S,legacyLocale:y,parentContext:j,iconPrefixCls:w,theme:P,componentDisabled:I,segmented:C,statistic:m,spin:R,calendar:k,carousel:O,cascader:_,collapse:N,typography:D,checkbox:F,descriptions:U,divider:v,drawer:E,skeleton:B,steps:L,image:V,layout:X,list:z,mentions:$,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:A,pagination:K,input:Z,textArea:q,empty:M,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:He,flex:Ue,wave:De,dropdown:Ce,warning:Fe,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:Er,variant:nn,inputNumber:Ir,treeSelect:Bt}=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=w||j.iconPrefixCls||Ks,Yt=n||j.csp;bg(Xe,Yt);const ct=Sg(P,j.theme,{prefixCls:lt("")});process.env.NODE_ENV!=="production"&&(Es=Es||!!ct);const Ne={csp:Yt,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||y,direction:p,space:h,splitter:f,virtual:x,popupMatchSelectWidth:g??T,popupOverflow:S,getPrefixCls:lt,iconPrefixCls:Xe,theme:ct,segmented:C,statistic:m,spin:R,calendar:k,carousel:O,cascader:_,collapse:N,typography:D,checkbox:F,descriptions:U,divider:v,drawer:E,skeleton:B,steps:L,image:V,input:Z,textArea:q,layout:X,list:z,mentions:$,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:A,pagination:K,empty:M,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:He,flex:Ue,wave:De,dropdown:Ce,warning:Fe,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:Er,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({},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(Fg,{dropdownMatchSelectWidth:T}),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(kh.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(Hg,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"]),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 Ht=Object.assign(Object.assign({},$n),ft);return Object.assign(Object.assign({},Pr),{theme:Mt,token:Ht,components:jt,override:Object.assign({override:Ht},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 Bd=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(Bd),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 T(){var g;(g=i.parentElement)===null||g===void 0||g.removeChild(i),a.current=!1}return Ge(function(){return t?l?l(x):x():T(),T},[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({},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,"")}`,T=((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:T})},[l,c],(p,h)=>p.some((f,x)=>{const T=h[x];return!mf(f,T,!0)}))}var Rg=["children"],gd=y.createContext({});function kg(t){var r=t.children,n=$t(t,Rg);return y.createElement(gd.Provider,{value:n},r)}var Tg=(function(t){Un(n,t);var r=Gn(n);function n(){return Et(this,n),r.apply(this,arguments)}return It(n,[{key:"render",value:function(){return this.props.children}}]),n})(y.Component);function Eg(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(gt(),typeof window<"u"?window:{}),xd={};if(gt()){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=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=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 kd(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 T=x.indexOf(a),g=x[T+1],j=n(a);j===Rd?l(g,!0):g&&p(function(v){function w(){v.isCanceled()||l(g,!0)}j===!0?w():Promise.resolve(j).then(w)})}},[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,T=o.onEnterPrepare,g=o.onLeavePrepare,j=o.onAppearStart,v=o.onEnterStart,w=o.onLeaveStart,C=o.onAppearActive,B=o.onEnterActive,P=o.onLeaveActive,b=o.onAppearEnd,m=o.onEnterEnd,R=o.onLeaveEnd,k=o.onVisibleChanged,N=On(),_=le(N,2),O=_[0],D=_[1],V=Eg(gr),U=le(V,2),E=U[0],S=U[1],I=On(null),L=le(I,2),H=L[0],X=L[1],z=E(),$=u.useRef(!1),Y=u.useRef(null);function ee(){return n()}var oe=u.useRef(!1);function ne(){S(gr),X(null,!0)}var fe=wt(function(we){var Re=E();if(Re!==gr){var ge=ee();if(!(we&&!we.deadline&&we.target!==ge)){var de=oe.current,je;Re===mo&&de?je=b?.(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],q=function(Re){switch(Re){case mo:return ae(ae(ae({},At,x),$r,j),zr,C);case xo:return ae(ae(ae({},At,T),$r,v),zr,B);case vo:return ae(ae(ae({},At,g),$r,w),zr,P);default:return{}}},M=y.useMemo(function(){return q(z)},[z]),G=$g(z,!t,function(we){if(we===At){var Re=M[At];return Re?Re(ee()):Rd}if(te in M){var ge;X(((ge=M[te])===null||ge===void 0?void 0:ge.call(M,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=kd(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=q(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(){O&&(pe.current=!0),O!==void 0&&z===gr&&((pe.current||O)&&k?.(O),pe.current=!0)},[O,z]);var ye=H;return M[At]&&te===$r&&(ye=re({transition:"none"},ye)),[z,te,ye,O??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,T=i.leavedClassName,g=i.eventProps,j=y.useContext(gd),v=j.motion,w=n(i,v),C=u.useRef(),B=u.useRef();function P(){try{return C.current instanceof HTMLElement?C.current:Ro(B.current)}catch{return null}}var b=zg(w,c,P,i),m=le(b,4),R=m[0],k=m[1],N=m[2],_=m[3],O=y.useRef(_);_&&(O.current=!0);var D=y.useCallback(function(L){C.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&&O.current&&T?V=f(re(re({},U),{},{className:T}),D):h||!p&&!T?V=f(re(re({},U),{},{style:{display:"none"}}),D):V=null;else{var E;k===At?E="prepare":kd(k)?E="active":k===$r&&(E="start");var S=ul(x,"".concat(R,"-").concat(E));V=f(re(re({},U),{},{className:ve(ul(x,R),ae(ae({},S,S&&E),x,typeof x=="string")),style:N}),D)}if(y.isValidElement(V)&&Uo(V)){var I=Hs(V);I||(V=y.cloneElement(V,{ref:D}))}return y.createElement(Tg,{ref:B},V)});return o.displayName="CSSMotion",o}const Td=Lg(Mg),Ts=y.createContext(!0);process.env.NODE_ENV!=="production"&&(Ts.displayName="MotionCacheContext");function Hg(t){const r=y.useContext(Ts),{children:n}=t,[,o]=tn(),{motion:i}=o,a=y.useRef(!1);return a.current||(a.current=r!==i),a.current?y.createElement(Ts.Provider,{value:i},y.createElement(kg,{motion:i},n)):n}const Ed=y.memo(({dropdownMatchSelectWidth:t})=>(Gt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Ed.displayName="PropWarning");const Fg=process.env.NODE_ENV!=="production"?Ed:()=>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 Es=!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:T,popupMatchSelectWidth:g,popupOverflow:j,legacyLocale:v,parentContext:w,iconPrefixCls:C,theme:B,componentDisabled:P,segmented:b,statistic:m,spin:R,calendar:k,carousel:N,cascader:_,collapse:O,typography:D,checkbox:V,descriptions:U,divider:E,drawer:S,skeleton:I,steps:L,image:H,layout:X,list:z,mentions:$,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:A,pagination:K,input:Z,textArea:q,empty:M,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:He,flex:Ue,wave:De,dropdown:Ce,warning:Fe,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:Er,variant:nn,inputNumber:Ir,treeSelect:Bt}=t,lt=y.useCallback((Ae,Qe)=>{const{prefixCls:ft}=t;if(Qe)return Qe;const dt=ft||w.getPrefixCls("");return Ae?`${dt}-${Ae}`:dt},[w.getPrefixCls,t.prefixCls]),Xe=C||w.iconPrefixCls||Ks,Yt=n||w.csp;bg(Xe,Yt);const ct=Sg(B,w.theme,{prefixCls:lt("")});process.env.NODE_ENV!=="production"&&(Es=Es||!!ct);const Ne={csp:Yt,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||v,direction:p,space:h,splitter:f,virtual:x,popupMatchSelectWidth:g??T,popupOverflow:j,getPrefixCls:lt,iconPrefixCls:Xe,theme:ct,segmented:b,statistic:m,spin:R,calendar:k,carousel:N,cascader:_,collapse:O,typography:D,checkbox:V,descriptions:U,divider:E,drawer:S,skeleton:I,steps:L,image:H,input:Z,textArea:q,layout:X,list:z,mentions:$,modal:Y,progress:ee,result:oe,slider:ne,breadcrumb:fe,menu:A,pagination:K,empty:M,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:He,flex:Ue,wave:De,dropdown:Ce,warning:Fe,tour:he,tooltip:me,popover:qe,popconfirm:Kt,floatButton:vr,floatButtonGroup:Er,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({},w);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}=y.useContext(Kn),mt=y.useMemo(()=>({prefixCls:Xe,csp:Yt,layer:zt?"antd":void 0}),[Xe,Yt,zt]);let Ke=y.createElement(y.Fragment,null,y.createElement(Fg,{dropdownMatchSelectWidth:T}),r);const sr=y.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=y.createElement(kh.Provider,{value:sr},Ke)),c&&(Ke=y.createElement(nd,{locale:c,_ANT_MARK__:rd},Ke)),Ke=y.createElement(Ds.Provider,{value:mt},Ke),d&&(Ke=y.createElement(qh,{size:d},Ke)),Ke=y.createElement(Hg,null,Ke);const qt=y.useMemo(()=>{const Ae=ct||{},{algorithm:Qe,token:ft,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 Ht=Object.assign(Object.assign({},$n),ft);return Object.assign(Object.assign({},Pr),{theme:Mt,token:Ht,components:jt,override:Object.assign({override:Ht},jt),cssVar:Lt})},[ct]);return B&&(Ke=y.createElement(sd.Provider,{value:qt},Ke)),ot.warning&&(Ke=y.createElement(ed.Provider,{value:ot.warning},Ke)),P!==void 0&&(Ke=y.createElement(Yh,{disabled:P},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(!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=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 T(){var g;(g=i.parentElement)===null||g===void 0||g.removeChild(i),a.current=!1}return Ge(function(){return t?l?l(x):x():T(),T},[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,T=t&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Bn(r),{width:x,height:T}}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=
|
|
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,T=t&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Bn(r),{width:x,height:T}}function Qg(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:Xg(t)}function Zg(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Jg="rc-util-locker-".concat(Date.now()),hl=0;function em(t){var r=!!t,n=y.useState(function(){return hl+=1,"".concat(Jg,"_").concat(hl)}),o=le(n,1),i=o[0];Ge(function(){if(r){var a=Qg(document.body).width,l=Zg();tr(`
|
|
126
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:!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],T=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 w=qg(T&&!y,a),P=le(w,2),I=P[0],C=P[1],m=y??I;em(o&&n&>()&&(m===I||m===document.body));var R=null;if(d&&Uo(d)&&r){var k=d;R=k.ref}var O=Ls(R,r);if(!T||!gt()||y===void 0)return null;var _=m===!1||rm(),N=d;return r&&(N=b.cloneElement(d,{ref:O})),b.createElement(Bd.Provider,{value:C},_?N:Bo.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 Md=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 T={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],S=n.points[1],y=g[0],j=g[1],w=S[0],P=S[1];y===w||!["t","b"].includes(y)?T.top=f:y==="t"?T.top=0:T.bottom=0,j===P||!["l","r"].includes(j)?T.left=p:j==="l"?T.left=0:T.right=0}return b.createElement("div",{ref:x,className:ve("".concat(r,"-arrow"),l),style:T},c)}function sm(t){var r=t.prefixCls,n=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?b.createElement(Td,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,T=t.arrow,g=t.arrowPos,S=t.align,y=t.motion,j=t.maskMotion,w=t.forceRender,P=t.getPopupContainer,I=t.autoDestroy,C=t.portal,m=t.zIndex,R=t.onMouseEnter,k=t.onMouseLeave,O=t.onPointerEnter,_=t.onPointerDownCapture,N=t.ready,D=t.offsetX,F=t.offsetY,U=t.offsetR,v=t.offsetB,E=t.onAlign,B=t.onPrepare,L=t.stretch,V=t.targetWidth,X=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 A="auto",K={left:"-1000vw",top:"-1000vh",right:A,bottom:A};if(N||!d){var Z,q=S.points,M=S.dynamicInset||((Z=S._experimental)===null||Z===void 0?void 0:Z.dynamicInset),G=M&&q[0][1]==="r",W=M&&q[0][0]==="b";G?(K.right=U,K.left=A):(K.left=D,K.right=A),W?(K.bottom=v,K.top=A):(K.top=F,K.bottom=A)}var J={};return L&&(L.includes("height")&&X?J.height=X:L.includes("minHeight")&&X&&(J.minHeight=X),L.includes("width")&&V?J.width=V:L.includes("minWidth")&&V&&(J.minWidth=V)),d||(J.pointerEvents="none"),b.createElement(C,{open:w||$,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:E,disabled:!d},function(te){return b.createElement(Td,nt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,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:k,onPointerEnter:O,onClick:f,onPointerDownCapture:_},T&&b.createElement(im,{prefixCls:i,arrow:T,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,Hs(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,T=o.clientHeight,g=o.offsetWidth,S=o.clientWidth,y=bn(c),j=bn(d),w=bn(p),P=bn(h),I=Ln(Math.round(f.width/g*1e3)/1e3),C=Ln(Math.round(f.height/x*1e3)/1e3),m=(g-S-w-P)*I,R=(x-T-y-j)*C,k=y*C,O=j*C,_=w*I,N=P*I,D=0,F=0;if(a==="clip"){var U=bn(l);D=U*I,F=U*C}var v=f.x+_-D,E=f.y+k-F,B=v+f.width+2*D-_-N-m,L=E+f.height+2*F-k-O-R;n.left=Math.max(n.left,v),n.top=Math.max(n.top,E),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]),T=b.useRef({}),g=function(){T.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(){Mt=$.y+Ie,jt=Mt+G,Ht=$.x+Ne,Nt=Ht+W};var w,P,I,C,m=r,R=m.ownerDocument,k=Xn(m),O=k.getComputedStyle(m),_=O.position,N=m.style.left,D=m.style.top,F=m.style.right,U=m.style.bottom,v=m.style.overflow,E=re(re({},i[o]),a),B=R.createElement("div");(w=m.parentElement)===null||w===void 0||w.appendChild(B),B.style.left="".concat(m.offsetLeft,"px"),B.style.top="".concat(m.offsetTop,"px"),B.style.position=_,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,X,z=n.getBoundingClientRect();z.x=(V=z.x)!==null&&V!==void 0?V:z.left,z.y=(X=z.y)!==null&&X!==void 0?X:z.top,L={x:z.x,y:z.y,width:z.width,height:z.height}}var $=m.getBoundingClientRect(),Y=k.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,A=ne.clientHeight,K=ne.scrollWidth,Z=ne.scrollHeight,q=ne.scrollTop,M=ne.scrollLeft,G=$.height,W=$.width,J=L.height,te=L.width,ie={left:0,top:0,right:fe,bottom:A},ce={left:-M,top:-q,right:K-M,bottom:Z-q},pe=E.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=N,m.style.top=D,m.style.right=F,m.style.bottom=U,m.style.overflow=v,(C=m.parentElement)===null||C===void 0||C.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=E.offset,He=E.targetOffset,Ue=jl($,Se),De=le(Ue,2),Ce=De[0],Fe=De[1],he=jl(L,He),me=le(he,2),qe=me[0],Kt=me[1];L.x-=qe,L.y-=Kt;var vr=E.points||[],Er=le(vr,2),nn=Er[0],Ir=Er[1],Bt=Sl(Ir),lt=Sl(nn),Xe=Dr(L,Bt),Yt=Dr($,lt),ct=re({},E),Ne=Xe.x-Yt.x+Ce,Ie=Xe.y-Yt.y+Fe,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=E.overflow||{},Qe=Ae.adjustX,ft=Ae.adjustY,dt=Ae.shiftX,Lt=Ae.shiftY,Pr=function(Xt){return typeof Xt=="boolean"?Xt:Xt>=0},Mt,jt,Ht,Nt;Nr();var Br=Pr(ft),Ve=lt[0]===Bt[0];if(Br&<[0]==="t"&&(jt>Ee.bottom||T.current.bt)){var yr=Ie;Ve?yr-=G-J:yr=mt.y-qt.y-Fe;var Zn=St(Ne,yr),Zo=St(Ne,yr,de);Zn>ot||Zn===ot&&(!Re||Zo>=zt)?(T.current.bt=!0,Ie=yr,Fe=-Fe,ct.points=[ur(lt,0),ur(Bt,0)]):T.current.bt=!1}if(Br&<[0]==="b"&&(Mt<Ee.top||T.current.tb)){var br=Ie;Ve?br+=G-J:br=sr.y-Ke.y-Fe;var Jn=St(Ne,br),Jo=St(Ne,br,de);Jn>ot||Jn===ot&&(!Re||Jo>=zt)?(T.current.tb=!0,Ie=br,Fe=-Fe,ct.points=[ur(lt,0),ur(Bt,0)]):T.current.tb=!1}var eo=Pr(Qe),to=lt[1]===Bt[1];if(eo&<[1]==="l"&&(Nt>Ee.right||T.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)?(T.current.rl=!0,Ne=Cr,Ce=-Ce,ct.points=[ur(lt,1),ur(Bt,1)]):T.current.rl=!1}if(eo&<[1]==="r"&&(Ht<Ee.left||T.current.lr)){var jr=Ne;to?jr+=W-te:jr=sr.x-Ke.x-Ce;var sn=St(jr,Ie),Mr=St(jr,Ie,de);sn>ot||sn===ot&&(!Re||Mr>=zt)?(T.current.lr=!0,Ne=jr,Ce=-Ce,ct.points=[ur(lt,1),ur(Bt,1)]):T.current.lr=!1}Nr();var Ot=dt===!0?0:dt;typeof Ot=="number"&&(Ht<de.left&&(Ne-=Ht-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"&&(Mt<de.top&&(Ie-=Mt-de.top-Fe,L.y+J<de.top+ar&&(Ie+=L.y-de.top+J-ar)),jt>de.bottom&&(Ie-=jt-de.bottom-Fe,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 Ft=et.right-$.x-(Ne+$.width),ln=et.bottom-$.y-(Ie+$.height);ze===1&&(Ne=Math.round(Ne),Ft=Math.round(Ft)),Le===1&&(Ie=Math.round(Ie),ln=Math.round(ln));var li={ready:!0,offsetX:Ne/ze,offsetY:Ie/Le,offsetR:Ft/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 C;d.current&&!l(((C=I.composedPath)===null||C===void 0||(C=C.call(I))===null||C===void 0?void 0:C[0])||I.target)&&!p.current&&c(!1)},T=Xn(o);T.addEventListener("pointerdown",f,!0),T.addEventListener("mousedown",x,!0),T.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),w=(y=o.getRootNode)===null||y===void 0?void 0:y.call(o);Fr(j===w,"trigger element and popup element should in same shadow root.")}return function(){T.removeEventListener("pointerdown",f,!0),T.removeEventListener("mousedown",x,!0),T.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,T=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,S=n.mouseEnterDelay,y=n.mouseLeaveDelay,j=y===void 0?.1:y,w=n.focusDelay,P=n.blurDelay,I=n.mask,C=n.maskClosable,m=C===void 0?!0:C,R=n.getPopupContainer,k=n.forceRender,O=n.autoDestroy,_=n.destroyPopupOnHide,N=n.popup,D=n.popupClassName,F=n.popupStyle,U=n.popupPlacement,v=n.builtinPlacements,E=v===void 0?{}:v,B=n.popupAlign,L=n.zIndex,V=n.stretch,X=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,q=n.maskAnimation,M=n.className,G=n.getTriggerDOMNode,W=$t(n,hm),J=O||_||!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=Md(),de=b.useState(null),je=le(de,2),Ee=je[0],et=je[1],ze=b.useRef(null),Le=wt(function(ue){ze.current=ue,Nn(ue)&&Ee!==ue&&et(ue),we?.registerSubPopup(ge,ue)}),Se=b.useState(null),He=le(Se,2),Ue=He[0],De=He[1],Ce=b.useRef(null),Fe=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||Ee?.contains(ue)||((We=Ao(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),Er=bl(a,fe,q,Z),nn=b.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=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),T?.(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),Mt=le(Pr,2),jt=Mt[0],Ht=Mt[1],Nt=function(xe){Ht([xe.clientX,xe.clientY])},Br=um(Xe,Ee,$&&jt!==null?jt:Ue,U,E,B,ee),Ve=le(Br,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),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&&mt(!1)};pm(Xe,Ue,Ee,cr,an),Ge(function(){cr()},[jt,U]),Ge(function(){Xe&&!(E!=null&&E[U])&&cr()},[JSON.stringify(B)]);var ei=b.useMemo(function(){var ue=dm(E,a,wr,$);return ve(ue,X?.(wr))},[wr,X,E,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 Ft(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,Ee,I,m,Kt,mt),li=Mr.has("hover"),St=Ot.has("hover"),Nr,cn;li&&(Ft("onMouseEnter",!0,S,function(ue){Nt(ue)}),Ft("onPointerEnter",!0,S,function(ue){Nt(ue)}),Nr=function(xe){(Xe||qt)&&Ee!==null&&Ee!==void 0&&Ee.contains(xe.target)&&mt(!0,S)},$&&(qe.onMouseMove=function(ue){var xe;(xe=me.onMouseMove)===null||xe===void 0||xe.call(me,ue)})),St&&(Ft("onMouseLeave",!1,j),Ft("onPointerLeave",!1,j),cn=function(){mt(!1,j)}),Mr.has("focus")&&Ft("onFocus",!0,w),Ot.has("focus")&&Ft("onBlur",!1,P),Mr.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))}),M&&(qe.className=ve(me.className,M));var Xt=b.useRef(!1);Xt.current||(Xt.current=k||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:Fe,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:F,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:Er,onVisibleChanged:si,onPrepare:ai,forceRender:k,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},kt=[0,0],xm={left:{points:["cr","cl"],overflow:_r,offset:[-4,0],targetOffset:kt},right:{points:["cl","cr"],overflow:_r,offset:[4,0],targetOffset:kt},top:{points:["bc","tc"],overflow:Ar,offset:[0,-4],targetOffset:kt},bottom:{points:["tc","bc"],overflow:Ar,offset:[0,4],targetOffset:kt},topLeft:{points:["bl","tl"],overflow:Ar,offset:[0,-4],targetOffset:kt},leftTop:{points:["tr","tl"],overflow:_r,offset:[-4,0],targetOffset:kt},topRight:{points:["br","tr"],overflow:Ar,offset:[0,-4],targetOffset:kt},rightTop:{points:["tl","tr"],overflow:_r,offset:[4,0],targetOffset:kt},bottomRight:{points:["tr","br"],overflow:Ar,offset:[0,4],targetOffset:kt},rightBottom:{points:["bl","br"],overflow:_r,offset:[4,0],targetOffset:kt},bottomLeft:{points:["tl","bl"],overflow:Ar,offset:[0,4],targetOffset:kt},leftBottom:{points:["br","bl"],overflow:_r,offset:[-4,0],targetOffset:kt}},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,T=r.children,g=r.onVisibleChange,S=r.afterVisibleChange,y=r.transitionName,j=r.animation,w=r.motion,P=r.placement,I=P===void 0?"right":P,C=r.align,m=C===void 0?{}:C,R=r.destroyTooltipOnHide,k=R===void 0?!1:R,O=r.defaultVisible,_=r.getTooltipContainer,N=r.overlayInnerStyle,D=r.overlay,F=r.id,U=r.showArrow,v=U===void 0?!0:U,E=r.classNames,B=r.styles,L=$t(r,vm),V=Md(F),X=u.useRef(null);u.useImperativeHandle(n,function(){return X.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:E?.body,overlayInnerStyle:re(re({},N),B?.body)},D)},Y=function(){var oe=b.Children.only(T),ne=oe?.props||{},fe=re(re({},ne),{},{"aria-describedby":D?V:null});return b.cloneElement(T,fe)};return b.createElement(mm,nt({popupClassName:ve(o,E?.root),prefixCls:x,popup:$,action:a,builtinPlacements:xm,popupPlacement:I,ref:X,popupAlign:m,getPopupContainer:_,onPopupVisibleChange:g,afterPopupVisibleChange:S,popupTransitionName:y,popupAnimation:j,popupMotion:w,defaultPopupVisible:O,autoDestroy:k,mouseLeaveDelay:p,popupStyle:re(re({},h),B?.root),mouseEnterDelay:c,arrow:v},z),Y())};const bm=u.forwardRef(ym),Hn=b.createContext({});process.env.NODE_ENV!=="production"&&(Hn.displayName="FormItemInputContext");const Cm=({children:t,status:r,override:n})=>{const o=b.useContext(Hn),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(Hn.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,km=Rm+Jt,zd={Modal:Jt,Drawer:Jt,Popover:Jt,Popconfirm:Jt,Tooltip:Jt,Tour:Jt,FloatButton:Jt},Tm={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Em(t){return t in zd}const Im=(t,r)=>{const[,n]=tn(),o=u.useContext(Qs),i=Em(t);let a;if(r!==void 0)a=[r,r];else{let l=o??0;i?l+=(o?0:n.zIndexPopupBase)+zd[t]:l+=Tm[t],a=[o===void 0?r:l,l]}if(process.env.NODE_ENV!=="production"){const l=Gt(t),c=n.zIndexPopupBase+km,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,T=2*i-c,g=d,S=2*i-a,y=l,j=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%)`,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 ${T} ${g} A ${o} ${o} 0 0 0 ${S} ${y} Z')`;return{arrowShadowWidth:j,arrowPath:I,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 ${_e(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Ld=8;function Hd(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% - ${_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=Hd({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 Fd(t,r){return zm(t,t,r)}const Lm=t=>({animationDuration:t,animationFillMode:"both"}),Hm=t=>({animationDuration:t,animationFillMode:"both"}),Fm=(t,r,n,o,i=!1)=>{const a=i?"&":"";return{[`
|
|
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:!gt()||!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],T=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."),y.useEffect(function(){(c||n)&&x(n)},[n,c]);var g=y.useState(function(){return gl(i)}),j=le(g,2),v=j[0],w=j[1];y.useEffect(function(){var D=gl(i);w(D??null)});var C=qg(T&&!v,a),B=le(C,2),P=B[0],b=B[1],m=v??P;em(o&&n&>()&&(m===P||m===document.body));var R=null;if(d&&Uo(d)&&r){var k=d;R=k.ref}var N=Ls(R,r);if(!T||!gt()||v===void 0)return null;var _=m===!1||rm(),O=d;return r&&(O=y.cloneElement(d,{ref:N})),y.createElement(Bd.Provider,{value:b},_?O:Bo.createPortal(O,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 T={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],j=n.points[1],v=g[0],w=g[1],C=j[0],B=j[1];v===C||!["t","b"].includes(v)?T.top=f:v==="t"?T.top=0:T.bottom=0,w===B||!["l","r"].includes(w)?T.left=p:w==="l"?T.left=0:T.right=0}return y.createElement("div",{ref:x,className:ve("".concat(r,"-arrow"),l),style:T},c)}function sm(t){var r=t.prefixCls,n=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?y.createElement(Td,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,T=t.arrow,g=t.arrowPos,j=t.align,v=t.motion,w=t.maskMotion,C=t.forceRender,B=t.getPopupContainer,P=t.autoDestroy,b=t.portal,m=t.zIndex,R=t.onMouseEnter,k=t.onMouseLeave,N=t.onPointerEnter,_=t.onPointerDownCapture,O=t.ready,D=t.offsetX,V=t.offsetY,U=t.offsetR,E=t.offsetB,S=t.onAlign,I=t.onPrepare,L=t.stretch,H=t.targetWidth,X=t.targetHeight,z=typeof n=="function"?n():n,$=d||p,Y=B?.length>0,ee=y.useState(!B||!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(O||!d){var Z,q=j.points,M=j.dynamicInset||((Z=j._experimental)===null||Z===void 0?void 0:Z.dynamicInset),G=M&&q[0][1]==="r",W=M&&q[0][0]==="b";G?(K.right=U,K.left=A):(K.left=D,K.right=A),W?(K.bottom=E,K.top=A):(K.top=V,K.bottom=A)}var J={};return L&&(L.includes("height")&&X?J.height=X:L.includes("minHeight")&&X&&(J.minHeight=X),L.includes("width")&&H?J.width=H:L.includes("minWidth")&&H&&(J.minWidth=H)),d||(J.pointerEvents="none"),y.createElement(b,{open:C||$,getContainer:B&&function(){return B(l)},autoDestroy:P},y.createElement(sm,{prefixCls:i,open:d,zIndex:m,mask:x,motion:w}),y.createElement(Jr,{onResize:S,disabled:!d},function(te){return y.createElement(Td,nt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,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:k,onPointerEnter:N,onClick:f,onPointerDownCapture:_},T&&y.createElement(im,{prefixCls:i,arrow:T,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=Uo(n),a=y.useCallback(function(c){zs(r,o?o(c):c)},[o]),l=Ls(a,Hs(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,T=o.clientHeight,g=o.offsetWidth,j=o.clientWidth,v=bn(c),w=bn(d),C=bn(p),B=bn(h),P=Ln(Math.round(f.width/g*1e3)/1e3),b=Ln(Math.round(f.height/x*1e3)/1e3),m=(g-j-C-B)*P,R=(x-T-v-w)*b,k=v*b,N=w*b,_=C*P,O=B*P,D=0,V=0;if(a==="clip"){var U=bn(l);D=U*P,V=U*b}var E=f.x+_-D,S=f.y+k-V,I=E+f.width+2*D-_-O-m,L=S+f.height+2*V-k-N-R;n.left=Math.max(n.left,E),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]),T=y.useRef({}),g=function(){T.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,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(){Mt=$.y+Ie,jt=Mt+G,Ht=$.x+Ne,Nt=Ht+W};var C,B,P,b,m=r,R=m.ownerDocument,k=Xn(m),N=k.getComputedStyle(m),_=N.position,O=m.style.left,D=m.style.top,V=m.style.right,U=m.style.bottom,E=m.style.overflow,S=re(re({},i[o]),a),I=R.createElement("div");(C=m.parentElement)===null||C===void 0||C.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 H,X,z=n.getBoundingClientRect();z.x=(H=z.x)!==null&&H!==void 0?H:z.left,z.y=(X=z.y)!==null&&X!==void 0?X:z.top,L={x:z.x,y:z.y,width:z.width,height:z.height}}var $=m.getBoundingClientRect(),Y=k.getComputedStyle(m),ee=Y.height,oe=Y.width;$.x=(B=$.x)!==null&&B!==void 0?B:$.left,$.y=(P=$.y)!==null&&P!==void 0?P:$.top;var ne=R.documentElement,fe=ne.clientWidth,A=ne.clientHeight,K=ne.scrollWidth,Z=ne.scrollHeight,q=ne.scrollTop,M=ne.scrollLeft,G=$.height,W=$.width,J=L.height,te=L.width,ie={left:0,top:0,right:fe,bottom:A},ce={left:-M,top:-q,right:K-M,bottom:Z-q},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=O,m.style.top=D,m.style.right=V,m.style.bottom=U,m.style.overflow=E,(b=m.parentElement)===null||b===void 0||b.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,He=S.targetOffset,Ue=jl($,Se),De=le(Ue,2),Ce=De[0],Fe=De[1],he=jl(L,He),me=le(he,2),qe=me[0],Kt=me[1];L.x-=qe,L.y-=Kt;var vr=S.points||[],Er=le(vr,2),nn=Er[0],Ir=Er[1],Bt=Sl(Ir),lt=Sl(nn),Xe=Dr(L,Bt),Yt=Dr($,lt),ct=re({},S),Ne=Xe.x-Yt.x+Ce,Ie=Xe.y-Yt.y+Fe,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=S.overflow||{},Qe=Ae.adjustX,ft=Ae.adjustY,dt=Ae.shiftX,Lt=Ae.shiftY,Pr=function(Xt){return typeof Xt=="boolean"?Xt:Xt>=0},Mt,jt,Ht,Nt;Nr();var Br=Pr(ft),Ve=lt[0]===Bt[0];if(Br&<[0]==="t"&&(jt>Ee.bottom||T.current.bt)){var yr=Ie;Ve?yr-=G-J:yr=mt.y-qt.y-Fe;var Zn=St(Ne,yr),Zo=St(Ne,yr,de);Zn>ot||Zn===ot&&(!Re||Zo>=zt)?(T.current.bt=!0,Ie=yr,Fe=-Fe,ct.points=[ur(lt,0),ur(Bt,0)]):T.current.bt=!1}if(Br&<[0]==="b"&&(Mt<Ee.top||T.current.tb)){var br=Ie;Ve?br+=G-J:br=sr.y-Ke.y-Fe;var Jn=St(Ne,br),Jo=St(Ne,br,de);Jn>ot||Jn===ot&&(!Re||Jo>=zt)?(T.current.tb=!0,Ie=br,Fe=-Fe,ct.points=[ur(lt,0),ur(Bt,0)]):T.current.tb=!1}var eo=Pr(Qe),to=lt[1]===Bt[1];if(eo&<[1]==="l"&&(Nt>Ee.right||T.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)?(T.current.rl=!0,Ne=Cr,Ce=-Ce,ct.points=[ur(lt,1),ur(Bt,1)]):T.current.rl=!1}if(eo&<[1]==="r"&&(Ht<Ee.left||T.current.lr)){var jr=Ne;to?jr+=W-te:jr=sr.x-Ke.x-Ce;var sn=St(jr,Ie),Mr=St(jr,Ie,de);sn>ot||sn===ot&&(!Re||Mr>=zt)?(T.current.lr=!0,Ne=jr,Ce=-Ce,ct.points=[ur(lt,1),ur(Bt,1)]):T.current.lr=!1}Nr();var Ot=dt===!0?0:dt;typeof Ot=="number"&&(Ht<de.left&&(Ne-=Ht-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"&&(Mt<de.top&&(Ie-=Mt-de.top-Fe,L.y+J<de.top+ar&&(Ie+=L.y-de.top+J-ar)),jt>de.bottom&&(Ie-=jt-de.bottom-Fe,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 Ft=et.right-$.x-(Ne+$.width),ln=et.bottom-$.y-(Ie+$.height);ze===1&&(Ne=Math.round(Ne),Ft=Math.round(Ft)),Le===1&&(Ie=Math.round(Ie),ln=Math.round(ln));var li={ready:!0,offsetX:Ne/ze,offsetY:Ie/Le,offsetR:Ft/ze,offsetB:ln/Le,arrowX:oi/ze,arrowY:ai/Le,scaleX:ze,scaleY:Le,align:ct};h(li)}}),v=function(){f.current+=1;var B=f.current;Promise.resolve().then(function(){f.current===B&&j()})},w=function(){h(function(B){return re(re({},B),{},{ready:!1})})};return Ge(w,[o]),Ge(function(){t||w()},[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(P){var b;d.current&&!l(((b=P.composedPath)===null||b===void 0||(b=b.call(P))===null||b===void 0?void 0:b[0])||P.target)&&!p.current&&c(!1)},T=Xn(o);T.addEventListener("pointerdown",f,!0),T.addEventListener("mousedown",x,!0),T.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 j,v,w=n==null||(j=n.getRootNode)===null||j===void 0?void 0:j.call(n),C=(v=o.getRootNode)===null||v===void 0?void 0:v.call(o);Fr(w===C,"trigger element and popup element should in same shadow root.")}return function(){T.removeEventListener("pointerdown",f,!0),T.removeEventListener("mousedown",x,!0),T.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,T=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,j=n.mouseEnterDelay,v=n.mouseLeaveDelay,w=v===void 0?.1:v,C=n.focusDelay,B=n.blurDelay,P=n.mask,b=n.maskClosable,m=b===void 0?!0:b,R=n.getPopupContainer,k=n.forceRender,N=n.autoDestroy,_=n.destroyPopupOnHide,O=n.popup,D=n.popupClassName,V=n.popupStyle,U=n.popupPlacement,E=n.builtinPlacements,S=E===void 0?{}:E,I=n.popupAlign,L=n.zIndex,H=n.stretch,X=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,q=n.maskAnimation,M=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),He=le(Se,2),Ue=He[0],De=He[1],Ce=y.useRef(null),Fe=wt(function(ue){Nn(ue)&&Ue!==ue&&(De(ue),Ce.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=Ao(tt))===null||xe===void 0?void 0:xe.host)===ue||ue===tt||Ee?.contains(ue)||((We=Ao(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),Er=bl(a,fe,q,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 Ne=y.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),T?.(ue))}),ot=y.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)};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),ft=le(Qe,2),dt=ft[0],Lt=ft[1],Pr=y.useState(null),Mt=le(Pr,2),jt=Mt[0],Ht=Mt[1],Nt=function(xe){Ht([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],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),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&&mt(!1)};pm(Xe,Ue,Ee,cr,an),Ge(function(){cr()},[jt,U]),Ge(function(){Xe&&!(S!=null&&S[U])&&cr()},[JSON.stringify(I)]);var ei=y.useMemo(function(){var ue=dm(S,a,wr,$);return ve(ue,X?.(wr))},[wr,X,S,a,$]);y.useImperativeHandle(o,function(){return{nativeElement:Ce.current,popupElement:ze.current,forceAlign:cr}});var ro=y.useState(0),no=le(ro,2),oo=no[0],ti=no[1],ri=y.useState(0),io=le(ri,2),ni=io[0],oi=io[1],so=function(){if(H&&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 Ft(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,Ee,P,m,Kt,mt),li=Mr.has("hover"),St=Ot.has("hover"),Nr,cn;li&&(Ft("onMouseEnter",!0,j,function(ue){Nt(ue)}),Ft("onPointerEnter",!0,j,function(ue){Nt(ue)}),Nr=function(xe){(Xe||qt)&&Ee!==null&&Ee!==void 0&&Ee.contains(xe.target)&&mt(!0,j)},$&&(qe.onMouseMove=function(ue){var xe;(xe=me.onMouseMove)===null||xe===void 0||xe.call(me,ue)})),St&&(Ft("onMouseLeave",!1,w),Ft("onPointerLeave",!1,w),cn=function(){mt(!1,w)}),Mr.has("focus")&&Ft("onFocus",!0,C),Ot.has("focus")&&Ft("onBlur",!1,B),Mr.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))}),M&&(qe.className=ve(me.className,M));var Xt=y.useRef(!1);Xt.current||(Xt.current=k||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=y.cloneElement(he,re(re({},dr),dn)),di={x:Jo,y:eo},ui=oe?re({},oe!==!0?oe:{}):null;return y.createElement(y.Fragment,null,y.createElement(Jr,{disabled:!Xe,ref:Fe,onResize:ii},y.createElement(Dd,{getTriggerDOMNode:G},ci)),Xt.current&&y.createElement(vl.Provider,{value:Re},y.createElement(Od,{portal:t,ref:Le,prefixCls:a,popup:O,className:ve(D,ei),style:V,target:Ue,onMouseEnter:Nr,onMouseLeave:cn,onPointerEnter:Nr,zIndex:L,open:Xe,keepDom:qt,fresh:z,onClick:Y,onPointerDownCapture:ln,mask:P,motion:vr,maskMotion:Er,onVisibleChanged:si,onPrepare:ai,forceRender:k,autoDestroy:J,getPopupContainer:R,align:wr,arrow:ui,arrowPos:di,ready:yr,offsetX:Zn,offsetY:Zo,offsetR:br,offsetB:Jn,onAlign:cr,stretch:H,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},kt=[0,0],xm={left:{points:["cr","cl"],overflow:_r,offset:[-4,0],targetOffset:kt},right:{points:["cl","cr"],overflow:_r,offset:[4,0],targetOffset:kt},top:{points:["bc","tc"],overflow:Ar,offset:[0,-4],targetOffset:kt},bottom:{points:["tc","bc"],overflow:Ar,offset:[0,4],targetOffset:kt},topLeft:{points:["bl","tl"],overflow:Ar,offset:[0,-4],targetOffset:kt},leftTop:{points:["tr","tl"],overflow:_r,offset:[-4,0],targetOffset:kt},topRight:{points:["br","tr"],overflow:Ar,offset:[0,-4],targetOffset:kt},rightTop:{points:["tl","tr"],overflow:_r,offset:[4,0],targetOffset:kt},bottomRight:{points:["tr","br"],overflow:Ar,offset:[0,4],targetOffset:kt},rightBottom:{points:["bl","br"],overflow:_r,offset:[4,0],targetOffset:kt},bottomLeft:{points:["tl","bl"],overflow:Ar,offset:[0,4],targetOffset:kt},leftBottom:{points:["br","bl"],overflow:_r,offset:[-4,0],targetOffset:kt}},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,T=r.children,g=r.onVisibleChange,j=r.afterVisibleChange,v=r.transitionName,w=r.animation,C=r.motion,B=r.placement,P=B===void 0?"right":B,b=r.align,m=b===void 0?{}:b,R=r.destroyTooltipOnHide,k=R===void 0?!1:R,N=r.defaultVisible,_=r.getTooltipContainer,O=r.overlayInnerStyle,D=r.overlay,V=r.id,U=r.showArrow,E=U===void 0?!0:U,S=r.classNames,I=r.styles,L=$t(r,vm),H=Md(V),X=u.useRef(null);u.useImperativeHandle(n,function(){return X.current});var z=re({},L);"visible"in r&&(z.popupVisible=r.visible);var $=function(){return y.createElement(Pd,{key:"content",prefixCls:x,id:H,bodyClassName:S?.body,overlayInnerStyle:re(re({},O),I?.body)},D)},Y=function(){var oe=y.Children.only(T),ne=oe?.props||{},fe=re(re({},ne),{},{"aria-describedby":D?H:null});return y.cloneElement(T,fe)};return y.createElement(mm,nt({popupClassName:ve(o,S?.root),prefixCls:x,popup:$,action:a,builtinPlacements:xm,popupPlacement:P,ref:X,popupAlign:m,getPopupContainer:_,onPopupVisibleChange:g,afterPopupVisibleChange:j,popupTransitionName:v,popupAnimation:w,popupMotion:C,defaultPopupVisible:N,autoDestroy:k,mouseLeaveDelay:p,popupStyle:re(re({},h),I?.root),mouseEnterDelay:c,arrow:E},z),Y())};const bm=u.forwardRef(ym),Hn=y.createContext({});process.env.NODE_ENV!=="production"&&(Hn.displayName="FormItemInputContext");const Cm=({children:t,status:r,override:n})=>{const o=y.useContext(Hn),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(Hn.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,km=Rm+Jt,zd={Modal:Jt,Drawer:Jt,Popover:Jt,Popconfirm:Jt,Tooltip:Jt,Tour:Jt,FloatButton:Jt},Tm={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Em(t){return t in zd}const Im=(t,r)=>{const[,n]=tn(),o=u.useContext(Qs),i=Em(t);let a;if(r!==void 0)a=[r,r];else{let l=o??0;i?l+=(o?0:n.zIndexPopupBase)+zd[t]:l+=Tm[t],a=[o===void 0?r:l,l]}if(process.env.NODE_ENV!=="production"){const l=Gt(t),c=n.zIndexPopupBase+km,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,T=2*i-c,g=d,j=2*i-a,v=l,w=i*Math.sqrt(2)+o*(Math.sqrt(2)-2),C=o*(Math.sqrt(2)-1),B=`polygon(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,P=`path('M ${a} ${l} A ${o} ${o} 0 0 0 ${c} ${d} L ${p} ${h} A ${n} ${n} 0 0 1 ${f} ${x} L ${T} ${g} A ${o} ${o} 0 0 0 ${j} ${v} Z')`;return{arrowShadowWidth:w,arrowPath:P,arrowPolygon:B}}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 ${_e(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Ld=8;function Hd(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% - ${_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=Hd({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 Fd(t,r){return zm(t,t,r)}const Lm=t=>({animationDuration:t,animationFillMode:"both"}),Hm=t=>({animationDuration:t,animationFillMode:"both"}),Fm=(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({},Hm(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}}),kl=new Pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tl=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:kl,outKeyframes:Tl},"zoom-big-fast":{inKeyframes:kl,outKeyframes:Tl},"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[Fm(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:T}=t,g=r(l).add(T).add(x).equal(),S=r(l).mul(2).add(T).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},Hd({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=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 El=(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,El);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(r){const n=Ni(r,El);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&&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 Et(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){Et(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),T=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:T},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:T,arrow:g=!0,title:S,overlay:y,builtinPlacements:j,arrowPointAtCenter:w=!1,autoAdjustOverflow:P=!0,getPopupContainer:I,placement:C="top",mouseEnterDelay:m=.1,mouseLeaveDelay:R=.1,overlayStyle:k,rootClassName:O,overlayClassName:_,styles:N,classNames:D}=t,F=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:E,getPrefixCls:B,direction:L,className:V,style:X,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,He;return{forceAlign:oe,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:(Se=ee.current)===null||Se===void 0?void 0:Se.nativeElement,popupElement:(He=ee.current)===null||He===void 0?void 0:He.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,He])=>{Y.deprecated(!(Se in t),Se,He)}),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=!S&&!y&&S!==0,K=Se=>{var He,Ue;fe(A?!1:Se),A||((He=t.onOpenChange)===null||He===void 0||He.call(t,Se),(Ue=t.onVisibleChange)===null||Ue===void 0||Ue.call(t,Se))},Z=b.useMemo(()=>{var Se,He;let Ue=w;return typeof g=="object"&&(Ue=(He=(Se=g.pointAtCenter)!==null&&Se!==void 0?Se:g.arrowPointAtCenter)!==null&&He!==void 0?He:w),j||_m({arrowPointAtCenter:Ue,autoAdjustOverflow:P,arrowWidth:U?v.sizePopupArrow:0,borderRadius:v.borderRadius,offset:v.marginXXS})},[w,g,j,v]),q=b.useMemo(()=>S===0?S:y||S||"",[y,S]),M=b.createElement(Ps,{space:!0},typeof q=="function"?q():q),G=B("tooltip",i),W=B(),J=t["data-popover-inject"];let te=ne;!("open"in t)&&!("visible"in t)&&A&&(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(_,{[`${G}-rtl`]:L==="rtl"},ge.className,O,we,Re,V,z.root,D?.root),Ee=ve(z.body,D?.body),[et,ze]=Im("Tooltip",F.zIndex),Le=b.createElement(bm,Object.assign({},F,{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),X),k),N?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},$.body),d),N?.body),ge.overlayStyle)},getTooltipContainer:I||l||E,ref:ee,builtinPlacements:Z,overlay:M,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:T??!!x}),te?Fd(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 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 Ho(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,T=t.style,g=t.disabled,S=t.readOnly,y=t.focused,j=t.triggerFocus,w=t.allowClear,P=t.value,I=t.handleReset,C=t.hidden,m=t.classes,R=t.classNames,k=t.dataAttrs,O=t.styles,_=t.components,N=t.onClear,D=l??a,F=_?.affixWrapper||"span",U=_?.groupWrapper||"span",v=_?.wrapper||"span",E=_?.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),X=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(w){var Y=!g&&!S&&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){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&&w&&P),m?.affixWrapper,R?.affixWrapper,R?.variant),A=(p||w)&&u.createElement("span",{className:ve("".concat(c,"-suffix"),R?.suffix),style:O?.suffix},$,p);X=u.createElement(F,nt({className:fe,style:O?.affixWrapper,onClick:L},k?.affixWrapper,{ref:B}),d&&u.createElement("span",{className:ve("".concat(c,"-prefix"),R?.prefix),style:O?.prefix},d),X,A)}if(mx(t)){var K="".concat(c,"-group"),Z="".concat(K,"-addon"),q="".concat(K,"-wrapper"),M=ve("".concat(c,"-wrapper"),K,m?.wrapper,R?.wrapper),G=ve(q,ae({},"".concat(q,"-disabled"),g),m?.group,R?.groupWrapper);X=u.createElement(U,{className:G,ref:z},u.createElement(v,{className:M},h&&u.createElement(E,{className:Z},h),X,f&&u.createElement(E,{className:Z},f)))}return u.cloneElement(X,{className:ve((o=X.props)===null||o===void 0?void 0:o.className,x)||null,style:re(re({},(i=X.props)===null||i===void 0?void 0:i.style),T),hidden:C})}),vx=["show"];function Yd(t,r){return b.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,T=t.className,g=t.maxLength,S=t.suffix,y=t.showCount,j=t.count,w=t.type,P=w===void 0?"text":w,I=t.classes,C=t.classNames,m=t.styles,R=t.onCompositionStart,k=t.onCompositionEnd,O=$t(t,yx),_=u.useState(!1),N=le(_,2),D=N[0],F=N[1],U=u.useRef(!1),v=u.useRef(!1),E=u.useRef(null),B=u.useRef(null),L=function(de){E.current&&Gd(E.current,de)},V=Wr(t.defaultValue,{value:t.value}),X=le(V,2),z=X[0],$=X[1],Y=z==null?"":String(z),ee=u.useState(null),oe=le(ee,2),ne=oe[0],fe=oe[1],A=Yd(j,y),K=A.max||g,Z=A.strategy(Y),q=!!K&&Z>K;u.useImperativeHandle(r,function(){var ge;return{focus:L,blur:function(){var je;(je=E.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,Ee,et){var ze;(ze=E.current)===null||ze===void 0||ze.setSelectionRange(je,Ee,et)},select:function(){var je;(je=E.current)===null||je===void 0||je.select()},input:E.current,nativeElement:((ge=B.current)===null||ge===void 0?void 0:ge.nativeElement)||E.current}}),u.useEffect(function(){v.current&&(v.current=!1),F(function(ge){return ge&&f?!1:ge})},[f]);var M=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=E.current)===null||ze===void 0?void 0:ze.selectionStart)||0,((Le=E.current)===null||Le===void 0?void 0:Le.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;$(et),E.current&&Ho(E.current,de,o,et)};u.useEffect(function(){if(ne){var ge;(ge=E.current)===null||ge===void 0||ge.setSelectionRange.apply(ge,at(ne))}},[ne]);var G=function(de){M(de,de.target.value,{source:"change"})},W=function(de){U.current=!1,M(de,de.currentTarget.value,{source:"compositionEnd"}),k?.(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){F(!0),i?.(de)},ce=function(de){v.current&&(v.current=!1),F(!1),a?.(de)},pe=function(de){$(""),L(),E.current&&Ho(E.current,de,o)},ye=q&&"".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),C?.input),style:m?.input,ref:E,size:x,type:P,onCompositionStart:function(Ee){U.current=!0,R?.(Ee)},onCompositionEnd:W}))},Re=function(){var de=Number(K)>0;if(S||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"),ae({},"".concat(h,"-show-count-has-suffix"),!!S),C?.count),style:re({},m?.count)},je),S)}return null};return u.createElement(Kd,nt({},O,{prefixCls:h,className:ve(T,ye),handleReset:pe,value:Y,focused:D,triggerFocus:L,suffix:Re(),disabled:f,classes:I,classNames:C,styles:m,ref:B}),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:T}=t,g=r(l).add(T).add(x).equal(),j=r(l).mul(2).add(T).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:`${_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,(v,{darkColor:w})=>({[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}))),{"&-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},Hd({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=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 El=(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,El);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(r){const n=Ni(r,El);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&&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 Et(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){Et(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),T=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:T},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:T,arrow:g=!0,title:j,overlay:v,builtinPlacements:w,arrowPointAtCenter:C=!1,autoAdjustOverflow:B=!0,getPopupContainer:P,placement:b="top",mouseEnterDelay:m=.1,mouseLeaveDelay:R=.1,overlayStyle:k,rootClassName:N,overlayClassName:_,styles:O,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,[,E]=tn(),{getPopupContainer:S,getPrefixCls:I,direction:L,className:H,style:X,classNames:z,styles:$}=qo("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,He;return{forceAlign:oe,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:(Se=ee.current)===null||Se===void 0?void 0:Se.nativeElement,popupElement:(He=ee.current)===null||He===void 0?void 0:He.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,He])=>{Y.deprecated(!(Se in t),Se,He)}),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 He,Ue;fe(A?!1:Se),A||((He=t.onOpenChange)===null||He===void 0||He.call(t,Se),(Ue=t.onVisibleChange)===null||Ue===void 0||Ue.call(t,Se))},Z=y.useMemo(()=>{var Se,He;let Ue=C;return typeof g=="object"&&(Ue=(He=(Se=g.pointAtCenter)!==null&&Se!==void 0?Se:g.arrowPointAtCenter)!==null&&He!==void 0?He:C),w||_m({arrowPointAtCenter:Ue,autoAdjustOverflow:B,arrowWidth:U?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS})},[C,g,w,E]),q=y.useMemo(()=>j===0?j:v||j||"",[v,j]),M=y.createElement(Ps,{space:!0},typeof q=="function"?q():q),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,H,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:b,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),X),k),O?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},$.body),d),O?.body),ge.overlayStyle)},getTooltipContainer:P||l||S,ref:ee,builtinPlacements:Z,overlay:M,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:T??!!x}),te?Fd(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 Ho(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,T=t.style,g=t.disabled,j=t.readOnly,v=t.focused,w=t.triggerFocus,C=t.allowClear,B=t.value,P=t.handleReset,b=t.hidden,m=t.classes,R=t.classNames,k=t.dataAttrs,N=t.styles,_=t.components,O=t.onClear,D=l??a,V=_?.affixWrapper||"span",U=_?.groupWrapper||"span",E=_?.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)&&w?.()},H=xx(t),X=u.cloneElement(D,{value:B,className:ve((n=D.props)===null||n===void 0?void 0:n.className,!H&&R?.variant)||null}),z=u.useRef(null);if(u.useImperativeHandle(r,function(){return{nativeElement:z.current||I.current}}),H){var $=null;if(C){var Y=!g&&!j&&B,ee="".concat(c,"-clear-icon"),oe=Te(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";$=u.createElement("button",{type:"button",tabIndex:-1,onClick:function(J){P?.(J),O?.()},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"),v),"".concat(ne,"-readonly"),j),"".concat(ne,"-input-with-clear-btn"),p&&C&&B),m?.affixWrapper,R?.affixWrapper,R?.variant),A=(p||C)&&u.createElement("span",{className:ve("".concat(c,"-suffix"),R?.suffix),style:N?.suffix},$,p);X=u.createElement(V,nt({className:fe,style:N?.affixWrapper,onClick:L},k?.affixWrapper,{ref:I}),d&&u.createElement("span",{className:ve("".concat(c,"-prefix"),R?.prefix),style:N?.prefix},d),X,A)}if(mx(t)){var K="".concat(c,"-group"),Z="".concat(K,"-addon"),q="".concat(K,"-wrapper"),M=ve("".concat(c,"-wrapper"),K,m?.wrapper,R?.wrapper),G=ve(q,ae({},"".concat(q,"-disabled"),g),m?.group,R?.groupWrapper);X=u.createElement(U,{className:G,ref:z},u.createElement(E,{className:M},h&&u.createElement(S,{className:Z},h),X,f&&u.createElement(S,{className:Z},f)))}return u.cloneElement(X,{className:ve((o=X.props)===null||o===void 0?void 0:o.className,x)||null,style:re(re({},(i=X.props)===null||i===void 0?void 0:i.style),T),hidden:b})}),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,T=t.className,g=t.maxLength,j=t.suffix,v=t.showCount,w=t.count,C=t.type,B=C===void 0?"text":C,P=t.classes,b=t.classNames,m=t.styles,R=t.onCompositionStart,k=t.onCompositionEnd,N=$t(t,yx),_=u.useState(!1),O=le(_,2),D=O[0],V=O[1],U=u.useRef(!1),E=u.useRef(!1),S=u.useRef(null),I=u.useRef(null),L=function(de){S.current&&Gd(S.current,de)},H=Wr(t.defaultValue,{value:t.value}),X=le(H,2),z=X[0],$=X[1],Y=z==null?"":String(z),ee=u.useState(null),oe=le(ee,2),ne=oe[0],fe=oe[1],A=Yd(w,v),K=A.max||g,Z=A.strategy(Y),q=!!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(){E.current&&(E.current=!1),V(function(ge){return ge&&f?!1:ge})},[f]);var M=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&&Ho(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){M(de,de.target.value,{source:"change"})},W=function(de){U.current=!1,M(de,de.currentTarget.value,{source:"compositionEnd"}),k?.(de)},J=function(de){l&&de.key==="Enter"&&!E.current&&(E.current=!0,l(de)),c?.(de)},te=function(de){de.key==="Enter"&&(E.current=!1),d?.(de)},ie=function(de){V(!0),i?.(de)},ce=function(de){E.current&&(E.current=!1),V(!1),a?.(de)},pe=function(de){$(""),L(),S.current&&Ho(S.current,de,o)},ye=q&&"".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),b?.input),style:m?.input,ref:S,size:x,type:B,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"),ae({},"".concat(h,"-show-count-has-suffix"),!!j),b?.count),style:re({},m?.count)},je),j)}return null};return u.createElement(Kd,nt({},N,{prefixCls:h,className:ve(T,ye),handleReset:pe,value:Y,focused:D,triggerFocus:L,suffix:Re(),disabled:f,classes:P,classNames:b,styles:m,ref:I}),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 T=yt.scrollHeight-a;n!==null&&(p=T*n,c==="border-box"&&(p=p+a+l),x=Math.max(p,x)),o!==null&&(h=T*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,kx=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,T=$t(n,Rx),g=Wr(i,{value:a,postState:function(ee){return ee??""}}),S=le(g,2),y=S[0],j=S[1],w=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&&Te(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),C=le(I,2),m=C[0],R=C[1],k=!!l,O=b.useState($i),_=le(O,2),N=_[0],D=_[1],F=b.useState(),U=le(F,2),v=U[0],E=U[1],B=function(){D(Ai),process.env.NODE_ENV==="test"&&x?.()};Ge(function(){k&&B()},[a,m,R,k]),Ge(function(){if(N===Ai)D(_i);else if(N===_i){var Y=Sx(P.current,!1,m,R);D($i),E(Y)}},[N]);var L=b.useRef(),V=function(){qr.cancel(L.current)},X=function(ee){N===$i&&(c?.(ee),l&&(V(),L.current=qr(function(){B()})))};b.useEffect(function(){return V},[]);var z=k?v:null,$=re(re({},p),z);return(N===Ai||N===_i)&&($.overflowY="hidden",$.overflowX="hidden"),b.createElement(Jr,{onResize:X,disabled:!(l||c)},b.createElement("textarea",nt({},T,{ref:P,style:$,className:ve(o,d,ae({},"".concat(o,"-disabled"),h)),disabled:h,value:y,onChange:w})))}),Tx=["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"],Ex=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,T=t.prefixCls,g=T===void 0?"rc-textarea":T,S=t.showCount,y=t.count,j=t.className,w=t.style,P=t.disabled,I=t.hidden,C=t.classNames,m=t.styles,R=t.onResize,k=t.onClear,O=t.onPressEnter,_=t.readOnly,N=t.autoSize,D=t.onKeyDown,F=$t(t,Tx),U=Wr(o,{value:i,defaultValue:o}),v=le(U,2),E=v[0],B=v[1],L=E==null?"":String(E),V=u.useState(!1),X=le(V,2),z=X[0],$=X[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 Ce;return(Ce=K.current)===null||Ce===void 0?void 0:Ce.textArea},q=function(){Z().focus()};u.useImperativeHandle(r,function(){var De;return{resizableTextArea:K.current,focus:q,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 M=u.useState(null),G=le(M,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,Fe){var he=Fe;!Y.current&&te.exceedFormatter&&te.max&&te.strategy(Fe)>te.max&&(he=te.exceedFormatter(Fe,{max:te.max}),Fe!==he&&J([Z().selectionStart||0,Z().selectionEnd||0])),B(he),Ho(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"&&O&&O(Ce),D?.(Ce)},Ee=function(Ce){$(!0),a?.(Ce)},et=function(Ce){$(!1),l?.(Ce)},ze=function(Ce){B(""),q(),Ho(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"),C?.count),style:m?.count},Se)));var He=function(Ce){var Fe;R?.(Ce),(Fe=Z())!==null&&Fe!==void 0&&Fe.style.height&&fe(!0)},Ue=!N&&!S&&!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,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({},w),ne&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:I,readOnly:_,onClear:k},u.createElement(kx,nt({},F,{autoSize:N,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:He,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 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 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}=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 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:T,colorPrimary:g,controlOutlineWidth:S,controlOutline:y,colorErrorOutline:j,colorWarningOutline:w,colorBgContainer:P,inputFontSize:I,inputFontSizeLG:C,inputFontSizeSM:m}=t,R=I||n,k=m||R,O=C||c,_=Math.round((r-R*o)/2*10)/10-i,N=Math.round((a-k*o)/2*10)/10-i,D=Math.ceil((l-O*d)/2*10)/10-i;return{paddingBlock:Math.max(_,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:T,activeShadow:`0 0 0 ${S}px ${y}`,errorActiveShadow:`0 0 0 ${S}px ${j}`,warningActiveShadow:`0 0 0 ${S}px ${w}`,hoverBg:P,activeBg:P,inputFontSize:R,inputFontSizeLG:O,inputFontSizeSM:k}},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`}}),Hx=(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)}),Fx=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}`},Fx(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},[`
|
|
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 T=yt.scrollHeight-a;n!==null&&(p=T*n,c==="border-box"&&(p=p+a+l),x=Math.max(p,x)),o!==null&&(h=T*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,kx=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,T=$t(n,Rx),g=Wr(i,{value:a,postState:function(ee){return ee??""}}),j=le(g,2),v=j[0],w=j[1],C=function(ee){w(ee.target.value),f?.(ee)},B=y.useRef();y.useImperativeHandle(r,function(){return{textArea:B.current}});var P=y.useMemo(function(){return l&&Te(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),b=le(P,2),m=b[0],R=b[1],k=!!l,N=y.useState($i),_=le(N,2),O=_[0],D=_[1],V=y.useState(),U=le(V,2),E=U[0],S=U[1],I=function(){D(Ai),process.env.NODE_ENV==="test"&&x?.()};Ge(function(){k&&I()},[a,m,R,k]),Ge(function(){if(O===Ai)D(_i);else if(O===_i){var Y=Sx(B.current,!1,m,R);D($i),S(Y)}},[O]);var L=y.useRef(),H=function(){qr.cancel(L.current)},X=function(ee){O===$i&&(c?.(ee),l&&(H(),L.current=qr(function(){I()})))};y.useEffect(function(){return H},[]);var z=k?E:null,$=re(re({},p),z);return(O===Ai||O===_i)&&($.overflowY="hidden",$.overflowX="hidden"),y.createElement(Jr,{onResize:X,disabled:!(l||c)},y.createElement("textarea",nt({},T,{ref:B,style:$,className:ve(o,d,ae({},"".concat(o,"-disabled"),h)),disabled:h,value:v,onChange:C})))}),Tx=["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"],Ex=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,T=t.prefixCls,g=T===void 0?"rc-textarea":T,j=t.showCount,v=t.count,w=t.className,C=t.style,B=t.disabled,P=t.hidden,b=t.classNames,m=t.styles,R=t.onResize,k=t.onClear,N=t.onPressEnter,_=t.readOnly,O=t.autoSize,D=t.onKeyDown,V=$t(t,Tx),U=Wr(o,{value:i,defaultValue:o}),E=le(U,2),S=E[0],I=E[1],L=S==null?"":String(S),H=u.useState(!1),X=le(H,2),z=X[0],$=X[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 Ce;return(Ce=K.current)===null||Ce===void 0?void 0:Ce.textArea},q=function(){Z().focus()};u.useImperativeHandle(r,function(){var De;return{resizableTextArea:K.current,focus:q,blur:function(){Z().blur()},nativeElement:((De=A.current)===null||De===void 0?void 0:De.nativeElement)||Z()}}),u.useEffect(function(){$(function(De){return!B&&De})},[B]);var M=u.useState(null),G=le(M,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(Ce,Fe){var he=Fe;!Y.current&&te.exceedFormatter&&te.max&&te.strategy(Fe)>te.max&&(he=te.exceedFormatter(Fe,{max:te.max}),Fe!==he&&J([Z().selectionStart||0,Z().selectionEnd||0])),I(he),Ho(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"&&N&&N(Ce),D?.(Ce)},Ee=function(Ce){$(!0),a?.(Ce)},et=function(Ce){$(!1),l?.(Ce)},ze=function(Ce){I(""),q(),Ho(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"),b?.count),style:m?.count},Se)));var He=function(Ce){var Fe;R?.(Ce),(Fe=Z())!==null&&Fe!==void 0&&Fe.style.height&&fe(!0)},Ue=!O&&!j&&!d;return u.createElement(Kd,{ref:A,value:L,allowClear:d,handleReset:ze,suffix:Le,prefixCls:g,classNames:re(re({},b),{},{affixWrapper:ve(b?.affixWrapper,ae(ae({},"".concat(g,"-show-count"),j),"".concat(g,"-textarea-allow-clear"),d))}),disabled:B,focused:z,className:ve(w,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:P,readOnly:_,onClear:k},u.createElement(kx,nt({},V,{autoSize:O,maxLength:p,onKeyDown:je,onChange:de,onFocus:Ee,onBlur:et,onCompositionStart:Re,onCompositionEnd:ge,className:ve(b?.textarea),style:re(re({},m?.textarea),{},{resize:C?.resize}),disabled:B,prefixCls:g,onResize:He,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:T,colorPrimary:g,controlOutlineWidth:j,controlOutline:v,colorErrorOutline:w,colorWarningOutline:C,colorBgContainer:B,inputFontSize:P,inputFontSizeLG:b,inputFontSizeSM:m}=t,R=P||n,k=m||R,N=b||c,_=Math.round((r-R*o)/2*10)/10-i,O=Math.round((a-k*o)/2*10)/10-i,D=Math.ceil((l-N*d)/2*10)/10-i;return{paddingBlock:Math.max(_,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(D,0),paddingInline:p-i,paddingInlineSM:h-i,paddingInlineLG:f-i,addonBg:x,activeBorderColor:g,hoverBorderColor:T,activeShadow:`0 0 0 ${j}px ${v}`,errorActiveShadow:`0 0 0 ${j}px ${w}`,warningActiveShadow:`0 0 0 ${j}px ${C}`,hoverBg:B,activeBg:B,inputFontSize:R,inputFontSizeLG:N,inputFontSizeSM:k}},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`}}),Hx=(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)}),Fx=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}`},Fx(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
|
|
@@ -161,10 +161,10 @@ html body {
|
|
|
161
161
|
& > ${n}-cascader-picker:last-child ${r},
|
|
162
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)),Hx(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:T,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:T,style:g,styles:j,rootClassName:v,onChange:w,classNames:C,variant:B}=t,P=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:b,direction:m,allowClear:R,autoComplete:k,className:N,style:_,classNames:O,styles:D}=qo("input"),V=b("input",n),U=u.useRef(null),E=Zd(V),[S,I,L]=su(V,v),[H]=Xx(V,E),{compactSize:X,compactItemClassnames:z}=$d(V,m),$=Ad(pe=>{var ye;return(ye=a??X)!==null&&ye!==void 0?ye:pe}),Y=u.useContext(zn),ee=l??Y,{status:oe,hasFeedback:ne,feedbackIcon:fe}=u.useContext(Hn),A=Qd(oe,i),K=Qx(t)||!!ne,Z=u.useRef(K);if(process.env.NODE_ENV!=="production"){const pe=Gt("Input");u.useEffect(()=>{var ye;K&&!Z.current&&process.env.NODE_ENV!=="production"&&pe(document.activeElement===((ye=U.current)===null||ye===void 0?void 0:ye.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Z.current=K},[K])}const q=Bx(U),M=pe=>{q(),c?.(pe)},G=pe=>{q(),d?.(pe)},W=pe=>{q(),w?.(pe)},J=(ne||p)&&u.createElement(u.Fragment,null,p,ne&&fe),te=Xd(h??R),[ie,ce]=Jd("input",B,o);return S(H(u.createElement(bx,Object.assign({ref:Wn(r,U),prefixCls:V,autoComplete:k},P,{disabled:ee,onBlur:M,onFocus:G,style:Object.assign(Object.assign({},_),g),styles:Object.assign(Object.assign({},D),j),suffix:J,allowClear:te,className:ve(T,v,L,E,z,N),onChange:W,addonBefore:x&&u.createElement(Ps,{form:!0,space:!0},x),addonAfter:f&&u.createElement(Ps,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),O),{input:ve({[`${V}-sm`]:$==="small",[`${V}-lg`]:$==="large",[`${V}-rtl`]:m==="rtl"},C?.input,O.input,I),variant:ve({[`${V}-${ie}`]:ce},Bs(V,A)),affixWrapper:ve({[`${V}-affix-wrapper-sm`]:$==="small",[`${V}-affix-wrapper-lg`]:$==="large",[`${V}-affix-wrapper-rtl`]:m==="rtl"},I),wrapper:ve({[`${V}-group-rtl`]:m==="rtl"},I),groupWrapper:ve({[`${V}-group-wrapper-sm`]:$==="small",[`${V}-group-wrapper-lg`]:$==="large",[`${V}-group-wrapper-rtl`]:m==="rtl",[`${V}-group-wrapper-${ie}`]:ce},Bs(`${V}-group-wrapper`,A,ne),I)})}))))});process.env.NODE_ENV!=="production"&&(Jx.displayName="Input");const e0=t=>{const{componentCls:r,paddingLG:n}=t,o=`${r}-textarea`;return{[`textarea${r}`]:{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}`,resize:"vertical",[`&${r}-mouse-active`]:{transition:`all ${t.motionDurationSlow}, height 0s, width 0s`}},[`${r}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{position:"relative","&-show-count":{[`${r}-data-count`]:{position:"absolute",bottom:t.calc(t.fontSize).mul(t.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:t.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
165
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:T,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:T,variant:g,showCount:j,onMouseDown:v,onResize:w}=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:B,direction:P,allowClear:b,autoComplete:m,className:R,style:k,classNames:N,styles:_}=qo("textArea"),O=y.useContext(zn),D=l??O,{status:V,hasFeedback:U,feedbackIcon:E}=y.useContext(Hn),S=Qd(V,c),I=y.useRef(null);y.useImperativeHandle(r,()=>{var te;return{resizableTextArea:(te=I.current)===null||te===void 0?void 0:te.resizableTextArea,focus:ie=>{var ce,pe;Gd((pe=(ce=I.current)===null||ce===void 0?void 0:ce.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,ie)},blur:()=>{var ie;return(ie=I.current)===null||ie===void 0?void 0:ie.blur()}}});const L=B("input",o),H=Zd(L),[X,z,$]=su(L,h),[Y]=t0(L,H),{compactSize:ee,compactItemClassnames:oe}=$d(L,P),ne=Ad(te=>{var ie;return(ie=a??ee)!==null&&ie!==void 0?ie:te}),[fe,A]=Jd("textArea",g,i),K=Xd(d??b),[Z,q]=y.useState(!1),[M,G]=y.useState(!1),W=te=>{q(!0),v?.(te);const ie=()=>{q(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},J=te=>{var ie,ce;if(w?.(te),Z&&typeof getComputedStyle=="function"){const pe=(ce=(ie=I.current)===null||ie===void 0?void 0:ie.nativeElement)===null||ce===void 0?void 0:ce.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&G(!0)}};return X(Y(y.createElement(Ex,Object.assign({autoComplete:m},C,{style:Object.assign(Object.assign({},k),x),styles:Object.assign(Object.assign({},_),T),disabled:D,allowClear:K,className:ve($,H,f,h,oe,R,M&&`${L}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},p),N),{textarea:ve({[`${L}-sm`]:ne==="small",[`${L}-lg`]:ne==="large"},z,p?.textarea,N.textarea,Z&&`${L}-mouse-active`),variant:ve({[`${L}-${fe}`]:A},Bs(L,S)),affixWrapper:ve(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:P==="rtl",[`${L}-affix-wrapper-sm`]:ne==="small",[`${L}-affix-wrapper-lg`]:ne==="large",[`${L}-textarea-show-count`]:j||((n=t.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:L,suffix:U&&y.createElement("span",{className:`${L}-textarea-suffix`},E),showCount:j,ref:I,onResize:J,onMouseDown:W}))))}),o0=(t,r,n,o)=>{const{titleMarginBottom:i,fontWeightStrong:a}=o;return{marginBottom:i,color:n,fontWeight:a,fontSize:t,lineHeight:r}},i0=t=>{const r=[1,2,3,4,5],n={};return r.forEach(o=>{n[`
|
|
168
168
|
h${o}&,
|
|
169
169
|
div&-h${o},
|
|
170
170
|
div&-h${o} > textarea,
|
|
@@ -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:T=b.createElement(Ud,null)}=t,g=b.useRef(null),S=b.useRef(!1),y=b.useRef(null),[j,w]=b.useState(d);b.useEffect(()=>{w(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:E}=v.value;v.setSelectionRange(E,E)}},[]);const P=({target:U})=>{w(U.value.replace(/[\n\r]/g,""))},I=()=>{S.current=!0},C=()=>{S.current=!1},m=({keyCode:U})=>{S.current||(y.current=U)},R=()=>{p(j.trim())},k=({keyCode:U,ctrlKey:v,altKey:E,metaKey:B,shiftKey:L})=>{y.current!==U||S.current||v||E||B||L||(U===Bl.ENTER?(R(),f?.()):U===Bl.ESC&&h())},O=()=>{R()},[_,N,D]=au(r),F=ve(r,`${r}-edit-content`,{[`${r}-rtl`]:a==="rtl",[`${r}-${x}`]:!!x},o,N,D);return _(b.createElement("div",{className:F,style:i},b.createElement(n0,{ref:g,maxLength:l,value:j,onChange:P,onKeyDown:m,onKeyUp:k,onCompositionStart:I,onCompositionEnd:C,onBlur:O,"aria-label":n,rows:1,autoSize:c}),T!==null?Fd(T,{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,T=!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");T=!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),T=!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 T}return Li=i,Li}var g0=lu();const m0=Fn(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 Hi(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:T,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[w,P,I]=au(j),C=ve(j,T,{[`${j}-rtl`]:S==="rtl"},i,a,P,I),m=Object.assign(Object.assign({},g),p);return w(b.createElement(o,Object.assign({className:C,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"},k0=function(r,n){return b.createElement(or,nt({},r,{ref:n,icon:R0}))},uu=b.forwardRef(k0);process.env.NODE_ENV!=="production"&&(uu.displayName="CopyOutlined");var T0={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"},E0=function(r,n){return b.createElement(or,nt({},r,{ref:n,icon:T0}))},pu=b.forwardRef(E0);process.env.NODE_ENV!=="production"&&(pu.displayName="LoadingOutlined");function Ll(t){return t===!1?[!1,!1]:Array.isArray(t)?t:[t]}function Fi(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??{},T=r?f:x,g=Fi(p[r?1:0],T),S=typeof g=="string"?g:T;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?Fi(h[1],b.createElement(du,null),!0):Fi(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)}),B0=t=>t.reduce((r,n)=>r+(ta(n)?String(n).length:1),0);function Hl(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,Fl=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=b.useMemo(()=>Mn(o),[o]),h=b.useMemo(()=>B0(p),[o]),f=b.useMemo(()=>i(p,!1),[o]),[x,T]=b.useState(null),g=b.useRef(null),S=b.useRef(null),y=b.useRef(null),j=b.useRef(null),w=b.useRef(null),[P,I]=b.useState(!1),[C,m]=b.useState(Vi),[R,k]=b.useState(0),[O,_]=b.useState(null);Ge(()=>{m(r&&n&&h?Wi:Vi)},[n,o,a,r,p]),Ge(()=>{var U,v,E,B;if(C===Wi){m(Ui);const L=S.current&&getComputedStyle(S.current).whiteSpace;_(L)}else if(C===Ui){const L=!!(!((U=y.current)===null||U===void 0)&&U.isExceed());m(L?Gi:Fl),T(L?[0,h]:null),I(L);const V=((v=y.current)===null||v===void 0?void 0:v.getHeight())||0,X=a===1?0:((E=j.current)===null||E===void 0?void 0:E.getHeight())||0,z=((B=w.current)===null||B===void 0?void 0:B.getHeight())||0,$=Math.max(V,X+z);k($+1),d(L)}},[C]);const N=x?Math.ceil((x[0]+x[1])/2):0;Ge(()=>{var U;const[v,E]=x||[0,0];if(v!==E){const L=(((U=g.current)===null||U===void 0?void 0:U.getHeight())||0)>R;let V=N;E-v===1&&(V=L?v:E),T(L?[v,V]:[V,E])}},[x,N]);const D=b.useMemo(()=>{if(!r)return i(p,!1);if(C!==Gi||!x||x[0]!==x[1]){const U=i(p,!1);return[Fl,Vi].includes(C)?U:b.createElement("span",{style:Object.assign(Object.assign({},wo),{WebkitLineClamp:a})},U)}return i(l?p:Hl(p,x[0]),P)},[l,C,x,p].concat(at(c))),F={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return b.createElement(b.Fragment,null,D,C===Ui&&b.createElement(b.Fragment,null,b.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},F),wo),{WebkitLineClamp:a}),ref:y},f),b.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},F),wo),{WebkitLineClamp:a-1}),ref:j},f),b.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},F),wo),{WebkitLineClamp:1}),ref:w},i([],!0))),C===Gi&&x&&x[0]!==x[1]&&b.createElement(Co,{style:Object.assign(Object.assign({},F),{top:400}),ref:g},i(Hl(p,N),!0)),C===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:T}=t,g=N0(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:y}=b.useContext(rr),[j]=Bh("Text"),w=b.useRef(null),P=b.useRef(null),I=S("typography",o),C=Ac(g,Vl),[m,R]=Hi(h),[k,O]=Wr(!1,{value:R.editing}),{triggerType:_=["icon"]}=R,N=he=>{var me;he&&((me=R.onStart)===null||me===void 0||me.call(R)),O(he)},D=b0(k);Ge(()=>{var he;!k&&D&&((he=P.current)===null||he===void 0||he.focus())},[k]);const F=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)},[E,B]=Hi(f),{copied:L,copyLoading:V,onClick:X}=y0({copyConfig:B,children:d}),[z,$]=b.useState(!1),[Y,ee]=b.useState(!1),[oe,ne]=b.useState(!1),[fe,A]=b.useState(!1),[K,Z]=b.useState(!0),[q,M]=Hi(p,{expandable:!1,symbol:he=>he?j?.collapse:j?.expand}),[G,W]=Wr(M.defaultExpanded||!1,{value:M.expanded}),J=q&&(!G||M.expandable==="collapsible"),{rows:te=1}=M,ie=b.useMemo(()=>J&&(M.suffix!==void 0||M.onEllipsis||M.expandable||m||E),[J,M,m,E]);Ge(()=>{q&&!ie&&($(Ha("webkitLineClamp")),ee(Ha("textOverflow")))},[ie,q]);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=M.onExpand)===null||qe===void 0||qe.call(M,he,me)},[je,Ee]=b.useState(0),et=({offsetWidth:he})=>{Ee(he)},ze=he=>{var me;ne(he),oe!==he&&((me=M.onEllipsis)===null||me===void 0||me.call(M,he))};b.useEffect(()=>{const he=w.current;if(q&&ce&&he){const me=I0(he);fe!==me&&A(me)}},[q,ce,d,ge,K,je]),b.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(M.tooltip,R.text,d),Se=b.useMemo(()=>{if(!(!q||ce))return[R.text,d,T,Le.title].find(ta)},[q,ce,T,Le.title,we]);if(k)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 He=()=>{const{expandable:he,symbol:me}=M;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=Mn(me)[0]||j?.edit,vr=typeof Kt=="string"?Kt:"";return _.includes("icon")?b.createElement(Qn,{key:"edit",title:me===!1?"":Kt},b.createElement("button",{type:"button",ref:P,className:`${I}-edit`,onClick:F,"aria-label":vr,tabIndex:qe},he||b.createElement(Sc,{role:"button"}))):null},De=()=>E?b.createElement(P0,Object.assign({key:"copy"},B,{prefixCls:I,copied:L,locale:j,onCopy:X,loading:V,iconOnly:d==null})):null,Ce=he=>[he&&He(),Ue(),De()],Fe=he=>[he&&!G&&b.createElement("span",{"aria-hidden":!0,key:"ellipsis"},D0),M.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`]:q,[`${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,w,r),direction:y,onClick:_.includes("text")?F:void 0,"aria-label":Se?.toString(),title:T},C),b.createElement(M0,{enableMeasure:J&&!ce,text:d,rows:te,width:je,onEllipsis:ze,expanded:G,miscDeps:[L,G,V,m,E,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,Fe(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,T]=u.useState([]),[g,S]=u.useState(""),[y,j]=u.useState("ADD"),[w,P]=u.useState(!1),[I,C]=u.useState("");u.useEffect(()=>{t&&T(o)},[t]),u.useEffect(()=>{const k=m(n,o);f(k)},[n]),u.useEffect(()=>{w&&I&&(p.current.setFieldValue("prntBkmkId",I),p.current.setFieldValue("prntBkmkNm",n[I]?.bkmkNm??"-")),w&&y==="EDIT"&&(p.current.setFieldValue("bkmkId",I),p.current.setFieldValue("bkmkNm",n[I]?.bkmkNm)),!w&&y=="ADD"&&T(k=>[...k,I]),!w&&p.current&&(C("-"),p.current.resetFields())},[w,y,I,n]);const m=(k,O)=>{const _=(N,D="-")=>{const F=k[N];if(!F)return null;const U={key:F.bkmkId,type:F.type,title:F.type==="F"?F.bkmkNm:F.menuNm?`${F.menuNm} (${F.menuId})`:F.menuId,parentId:D,sortOrdr:F.sortOrdr??0};if(F.type==="F"){const E=(F.children??[]).map(B=>_(B,F.bkmkId)).filter(Boolean);return{...U,children:E}}return U};return O.map(N=>_(N,"-")).filter(Boolean)},R=()=>{if(j("ADD"),!g){C("-"),P(!0);return}const k=n[g];if(!k){C("-"),P(!0);return}k.type==="F"?C(k.bkmkId):C(k.prntBkmkId),P(!0)};return e.jsxs(s.ConfigProvider,{theme:{components:{Modal:{wireframe:!0},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:[e.jsxs(s.Modal,{open:t,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:12,paddingBottom:12}},title:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:e.jsx(s.Typography.Text,{style:{fontSize:18},children:"북마크 관리"})}),onCancel:r,children:[e.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[e.jsx(s.Button,{type:"primary",variant:"solid",className:"bwg-btn",icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsxs("g",{"clip-path":"url(#clip0_1298_1781)",children:[e.jsx("path",{d:"M9.3002 14.26H13.5702C14.4002 14.26 15.0702 13.59 15.0702 12.76V7.45999C15.0702 6.89999 14.6102 6.43999 14.0502 6.43999H8.8302L7.7102 3.48999H4.1702C3.6402 3.48999 3.2002 3.92999 3.2002 4.45999V8.10999",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M8.18018 4.58997H14.0502C14.6102 4.58997 15.0702 5.04997 15.0702 5.60997V8.25997",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M5.43018 9.52002V14.52",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M7.93018 12.01H2.93018",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1298_1781",children:e.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),style:{padding:"0 10px",boxShadow:"none"},onClick:R,children:"새 폴더"}),e.jsx("div",{children:e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:[e.jsx(s.Tooltip,{title:"펼치기",children:e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const k=Object.values(n).filter(O=>O.type==="F").map(O=>O.bkmkId);T(k)}})}),e.jsx(s.Tooltip,{title:"접기",children:e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28,marginLeft:5},onClick:()=>T([])})})]})})]}),e.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #e0e0e0",borderRadius:8,padding:10},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:k,dropPosition:O})=>{const _=k.type==="F";return O===0?_:!0},onDrop:k=>{const{dragNode:O,node:_,dropPosition:N,dropToGap:D}=k;if(O.key===_.key||gu(O,_.key))return;let F,U;if(D){const E=hu(h,_.key).ctx,B=E.index;F=E.parent?E.parent.key:"-",U=N>0?B+1:B}else{if(_.type!=="F")return;const E=_.children||[];F=_.key,U=E.length}const v=se.getUserId();if(O.type==="F")d({bkmkId:O.key,newPrntBkmkId:F,sortOrdr:U,userId:v}).catch(()=>{s.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(F==="-"){s.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}d({bkmkId:O.key,newPrntBkmkId:F,sortOrdr:U,userId:v}).catch(()=>{s.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}D===!1&&T(E=>Array.from(new Set([...E,_.key])))},showLine:!0,treeData:h,selectedKeys:[g],expandedKeys:x,onExpand:T,onSelect:k=>S(k[0]),titleRender:k=>e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("span",{children:[k.type==="F"?"📁":"📄"," ",k.title,k.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:[k.type==="F"&&e.jsxs(e.Fragment,{children:[e.jsx(Q.PlusOutlined,{style:{opacity:.8},onClick:()=>{j("ADD"),C(k.key),P(!0)}}),e.jsx(Q.EditOutlined,{style:{opacity:.8},onClick:()=>{j("EDIT"),C(k.key),P(!0)}})]}),e.jsx(Q.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{k.type==="F"?s.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>l(k.key)}):s.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>c(k.key)})}})]})]})})]})]}),e.jsx(s.ConfigProvider,{theme:{components:{Modal:{titleColor:y==="ADD"?"var(--primary-color)":"#ff6767",headerBg:y==="ADD"?"var(--drawer-header-bg)":"#fff0f0",titleFontSize:18},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:e.jsx(s.Modal,{title:e.jsx(e.Fragment,{children:e.jsxs(s.Typography.Text,{style:{fontSize:16,display:"flex",alignItems:"center",gap:6},children:[y==="ADD"?e.jsx("span",{className:"bookmark-folder-modal-icon ico-new-folder"}):e.jsx("span",{className:"bookmark-folder-modal-icon ico-edit-folder"}),"폴더",y==="ADD"?" 추가":"명 수정"]})}),open:w,okText:"저장",onOk:()=>{const k=p.current.getFieldValue("bkmkNm"),O=se.getUserId();if(y==="ADD"){const _=__SYS_CD__??"KH",N=p.current.getFieldValue("prntBkmkId");i(k,N,_,O).then(()=>{P(!1)})}else{const _=p.current.getFieldValue("bkmkId");a(_,O,k).then(()=>{P(!1)})}},centered:!0,width:400,onCancel:()=>P(!1),okButtonProps:{className:"bwg-btn"},cancelButtonProps:{className:"bwg-btn"},styles:{body:{padding:20}},children:e.jsxs(H.BwgForm,{ref:p,style:{padding:0},children:[e.jsx(H.BwgInput,{itemProps:{name:y==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),e.jsx(H.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:I==="-"||y==="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),[T,g]=u.useState(!1),[S,y]=u.useState(!1),[j,w]=u.useState(null);ut.useFavoriteStore(V=>V.treeNodes);const{nodes:P,getPrntBkmkIdByMenuId:I,getNodeByMenuId:C,isMenuBookmarked:m,removeMenuByMenuId:R,addMenuToFolder:k,convertToAntTreeData:O}=ut.useFavoriteStore(),_=ut.useFavoriteStore(V=>V.rootIds),N=u.useMemo(()=>O(P,_,o,!0),[P,_,o]),D=ut.useMenuViewStore(V=>V.activeMenuItem??{menuId:"",menuNm:""}),F=u.useMemo(()=>{if(!D?.menuId)return"";const V=C(D.menuId);if(!V)return"";if(V.fullPath)return V.fullPath;const X=z=>{const $=P[z];if(!$)return"";if($.prntBkmkId==="-")return`${$.bkmkNm||D?.menuNm}`;const Y=X($.prntBkmkId);return Y?`${Y} > ${$.bkmkNm||D?.menuNm}`:$.bkmkNm||D?.menuNm};return console.log("bookmarkNode ::::: ",V),console.log(X(V.bkmkId)),X(V.bkmkId)},[D?.menuId,C,P]);u.useEffect(()=>{r&&D?.menuId&&m(D.menuId)?h([I(D.menuId)]):r&&D?.menuId&&!m(D.menuId)?h(_):(h([]),d([]),w(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]),w(V))},[S,D?.menuId,P,I]);const U=(V,X)=>{k(V,X).then(z=>{console.log("AddMenuToFolder ::::: ",z),z||h($=>$.includes(V)?$:[...$,V])})},v=V=>{R(V)},E=async V=>{D?.menuId&&(await R(D.menuId),await k(V,D),y(!1),w(null),h(X=>X.includes(V)?X:[...X,V]))},B=()=>e.jsxs("div",{className:"bookmark-popover-wrap",style:{width:360},children:[e.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[e.jsxs(s.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[e.jsx(s.Button,{type:"text",icon:e.jsx(Q.ArrowLeftOutlined,{}),onClick:()=>y(!1),style:{width:26,height:26}}),"폴더 변경"]}),D&&e.jsxs(s.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",e.jsx("b",{children:D.menuNm})," ",e.jsxs("span",{style:{color:"#939393"},children:["(",D.menuId,")"]})]})]})}),L(),e.jsxs("div",{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee",display:"flex",justifyContent:"flex-end",gap:8},children:[e.jsx(s.Button,{type:"default",className:"bwg-btn",onClick:()=>{y(!1),w(null)},children:"취소"}),e.jsx(s.Button,{type:"primary",className:"bwg-btn",disabled:!j,onClick:()=>j&&E(String(j)),children:"이동"})]})]}),L=()=>e.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:"15px 20px 20px"},children:[e.jsxs(s.Space,{style:{width:"100%",marginBottom:12,display:"flex",justifyContent:"space-between",columnGap:10},children:[e.jsx(s.Input,{placeholder:"검색(폴더명)",prefix:e.jsx(Q.SearchOutlined,{}),allowClear:!0,value:o,onChange:V=>i(V.target.value),style:{width:"250px",height:28}}),e.jsx(s.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5},children:[e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const V=Object.values(P).filter(X=>X.type==="F").map(X=>X.bkmkId);h(V)},title:"모두 확장"}),e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>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),w(V[0])},autoExpandParent:!0,titleRender:V=>{const X=String(V.key),z=a===X;return e.jsxs("div",{onMouseEnter:()=>l(X),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.ConfigProvider,{theme:{components:{Button:{defaultColor:"rgba(0,0,0,0.5)",defaultHoverColor:"rgba(0,0,0,0.8)"}}},children:e.jsx(s.Button,{size:"small",type:"link",onClick:$=>{$.stopPropagation(),U(X,D)},style:{color:"rgba(0,0,0,0.5)"},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,boxShadow:"0 12px 32px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.2)",background:"#ffffff",zIndex:1e3}},content:S?B():e.jsxs("div",{style:{width:360},children:[e.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[e.jsxs(s.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[e.jsx("span",{className:`bookmark-title-icon ${m(D?.menuId)?"saved":"add"}`}),"북마크"," ",m(D?.menuId)?"저장됨":"추가"]}),D&&e.jsxs(s.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",e.jsx("b",{children:D.menuNm})," ",e.jsxs("span",{style:{color:"#939393"},children:["(",D.menuId,")"]})]})]})}),m(D?.menuId)?e.jsxs("div",{style:{padding:"10px 12px",margin:"15px 20px",borderRadius:8,backgroundColor:"#f7f6fB"},children:[e.jsx(s.Typography.Text,{type:"secondary",style:{fontSize:13},children:"저장 위치"}),e.jsx("div",{style:{marginTop:4},children:`📁 > ${F}`||"알 수 없음"})]}):L(),e.jsxs(Me,{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee"},layoutAlign:"right",children:[D&&!m(D.menuId)?e.jsx(s.Button,{style:{padding:"0 10px"},type:"primary",className:"bwg-btn",icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M3 9H15M9 3V15",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>{const V=String(c[0]);let X="-";V&&P[V]&&(X=P[V].type=="M"?P[V].prntBkmkId:V),U(X,D)},children:"추가"}):e.jsxs(Me,{layoutAlign:"between",children:[e.jsx(s.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsxs("g",{"clip-path":"url(#clip0_1289_1745)",children:[e.jsx("path",{d:"M13.9198 6.57H8.69982L7.57982 3.62H4.03982C3.50982 3.62 3.06982 4.06 3.06982 4.59V12.89C3.06982 13.72 3.73982 14.39 4.56982 14.39H13.4398C14.2698 14.39 14.9398 13.72 14.9398 12.89V7.59C14.9398 7.03 14.4798 6.57 13.9198 6.57Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M8.0498 4.72H13.9198C14.4798 4.72 14.9398 5.18 14.9398 5.74V8.39",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1289_1745",children:e.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),onClick:()=>y(!0),children:"폴더 변경"}),e.jsx(s.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},color:"danger",variant:"solid",icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M7.5 7.5V12M10.5 7.5V12M13.5 4.5V13.5C13.5 14.3284 12.8284 15 12 15H6C5.17157 15 4.5 14.3284 4.5 13.5V4.5M3 4.5H15M11.25 4.5V3.75C11.25 2.92157 10.5784 2.25 9.75 2.25H8.25C7.42157 2.25 6.75 2.92157 6.75 3.75V4.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>v(D.menuId),children:"삭제"})]}),e.jsx(s.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px",marginLeft:5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsx("path",{d:"M8.25 2.25H9.75C10.1642 2.25 10.5 2.58579 10.5 3V3.42659C10.5 3.74744 10.7153 4.02619 11.0117 4.14921C11.3081 4.27229 11.6532 4.22538 11.8802 3.99842L12.182 3.69668C12.4748 3.40379 12.9497 3.40379 13.2426 3.69668L14.3033 4.75734C14.5962 5.05023 14.5962 5.52511 14.3033 5.818L14.0016 6.1197C13.7746 6.34667 13.7277 6.69185 13.8508 6.98831C13.9738 7.28465 14.2526 7.5 14.5734 7.5L15 7.5C15.4142 7.5 15.75 7.83579 15.75 8.25V9.75C15.75 10.1642 15.4142 10.5 15 10.5H14.5734C14.2526 10.5 13.9738 10.7153 13.8508 11.0117C13.7277 11.3081 13.7746 11.6533 14.0016 11.8803L14.3033 12.182C14.5962 12.4749 14.5962 12.9497 14.3033 13.2426L13.2426 14.3033C12.9497 14.5962 12.4749 14.5962 12.182 14.3033L11.8803 14.0016C11.6533 13.7746 11.3081 13.7277 11.0117 13.8508C10.7153 13.9738 10.5 14.2526 10.5 14.5734V15C10.5 15.4142 10.1642 15.75 9.75 15.75H8.25C7.83579 15.75 7.5 15.4142 7.5 15V14.5734C7.5 14.2526 7.28465 13.9738 6.98831 13.8508C6.69185 13.7277 6.34667 13.7746 6.1197 14.0016L5.81799 14.3033C5.5251 14.5962 5.05022 14.5962 4.75733 14.3033L3.69667 13.2426C3.40378 12.9497 3.40378 12.4749 3.69667 12.182L3.99842 11.8802C4.22538 11.6532 4.27229 11.3081 4.14921 11.0117C4.02619 10.7153 3.74744 10.5 3.42659 10.5H3C2.58579 10.5 2.25 10.1642 2.25 9.75V8.25C2.25 7.83579 2.58579 7.5 3 7.5L3.42657 7.5C3.74743 7.5 4.02619 7.28466 4.14922 6.98832C4.2723 6.69188 4.22539 6.34671 3.99842 6.11975L3.69668 5.818C3.40379 5.52511 3.40379 5.05024 3.69668 4.75734L4.75734 3.69668C5.05023 3.40379 5.52511 3.40379 5.818 3.69668L6.11974 3.99842C6.34671 4.22539 6.69187 4.2723 6.98832 4.14922C7.28466 4.02619 7.5 3.74743 7.5 3.42657V3C7.5 2.58579 7.83579 2.25 8.25 2.25Z",stroke:"currentColor"}),e.jsx("path",{d:"M10.5 9C10.5 9.82843 9.82843 10.5 9 10.5C8.17157 10.5 7.5 9.82843 7.5 9C7.5 8.17157 8.17157 7.5 9 7.5C9.82843 7.5 10.5 8.17157 10.5 9Z",stroke:"currentColor"})]}),onClick:()=>{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),T&&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:T}=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(),w=async()=>{if(o.length===0){y(_=>({..._,preRenderComplete:!0}));return}try{for(const _ of o)await _();y(_=>({..._,preRenderComplete:!0}))}catch(_){y(N=>({...N,error:_ instanceof Error?_.message:"사전 렌더링 실패",preRenderComplete:!0}))}},P=async()=>{if(i.length===0){y(_=>({..._,postRenderComplete:!0}));return}try{for(const _ of i)await _();y(_=>({..._,postRenderComplete:!0}))}catch(_){y(N=>({...N,error:_ instanceof Error?_.message:"사후 렌더링 실패",postRenderComplete:!0}))}};u.useEffect(()=>{if(S.isInitialized)return;(async()=>{try{await w(),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(_=>({..._,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:O.LEFT}),e.jsx("div",{className:"bwgview-header-right",children:O.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 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,..._}),k=_=>e.jsx(Q,{component:m,..._}),O={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:T(f.menuId)?e.jsx(R,{className:"bookmark-icon",style:{color:"#faad14"}}):e.jsx(k,{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:()=>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,{dimStyle:"light",text:g?"처리 중...":"화면 로드 중..."})]})})]})},H0=({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})},F0="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:F0,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 T=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,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=w=>{w.onClick&&w.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(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:()=>j(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("span",{className:"quick-tab-add-icon",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=>T(w)}),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:T}=pt.useCommonCode(),g=u.useMemo(()=>Ns((v,E,B,L,V)=>{const X=E.value,z=f?.(X)||"blue",$=x?.(X)||X,Y=X?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,w]=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}},C={onCurrentRowChanged(v,E,B){console.log("공통 버튼 그리드 - 현재 행 변경:",{oldRow:E,newRow:B,activeTabKey:p})}},m={onCurrentRowChanged(v,E,B){console.log("커스텀 버튼 그리드 - 현재 행 변경:",{oldRow:E,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 E=o.current?.vw?.getValues(v);_.SCMAUTH00201({crprCd:E.crprCd,systId:E.systId,authId:E.authId,menuId:E.authMenu,grpId:p==="common"?"DEFAULT":"CUSTOM"})},[p]);const k=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}],[]),O={onCurrentRowChanged(v,E,B){if(B<0)return;const L=v.getValues(B);console.log("권한 선택:",L),console.log("현재 activeTabKey:",p),n.current?.setFieldsValue(L),_.SCMAUTH00201({crprCd:L.crprCd,systId:L.systId,authId:L.authId,menuId:L.authMenu,grpId:p==="common"?"DEFAULT":"CUSTOM"})}},_={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(E=>{E.result||n.current?.setFields([{name:"authId",errors:[E.message]}])})},SCMAUTH00201:v=>{se.callService("SCMAUTH00201",{...v},{},t.appCd).then(E=>{p==="common"?i.current?.addAllData(E.data):a.current?.addAllData(E.data)}).catch(E=>{console.error("SCMAUTH00201 호출 실패:",E)})},SCMAUTH00301:async v=>{try{const E=await se.callService("SCMAUTH00301",{...v,crprCd:se.getCrprCd()},{},t.appCd);return console.log("권한 정보 저장 성공:",E),w(!1),_.SCMAUTH00101(),E}catch(E){throw console.error("권한 정보 저장 실패:",E),E}},SCMAUTH00401:async v=>{try{const E=await se.callService("SCMAUTH00401",{...v,crprCd:se.getCrprCd()},{},t.appCd);return console.log("권한 정보 수정 성공:",E),w(!1),_.SCMAUTH00101(),E}catch(E){throw console.error("권한 정보 수정 실패:",E),E}}},N={search:()=>{_.SCMAUTH00101()},new:()=>{w(!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"&&(w(!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")}},F=(v,E)=>{y(B=>({...B,[v]:E}))},U=async()=>{try{j||await _.SCMAUTH00102({auth:n.current?.getFieldsValue()})}catch(v){console.error("권한 정보 처리 실패:",v)}};return u.useEffect(()=>{_.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(Me,{children:[e.jsxs(be,{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:()=>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:k,renderers:[{name:"tag",renderer:g}],gridOptions:{container:{indicator:!0,check:!0,checkAll:!0}},gridEvents:O})]}),e.jsx(be,{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:T("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(xt,{size:"small",activeKey:p,onChange:R,items:[{key:"common",label:"공통버튼",children:e.jsxs(be,{children:[e.jsx(ke,{title:"공통 버튼 매핑",children:e.jsx(Qi,{grpId:"AUTH",menuId:"CM010303",btnEvent:D})}),e.jsx(Oe,{ref:i,type:"nrml",gridColumns:P,gridOptions:I,gridEvents:C})]})},{key:"custom",label:"커스텀",children:e.jsxs(be,{children:[e.jsx(ke,{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"}),w(!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(),w(!1)},className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:U,className:"bwg-btn",children:"저장"})]}),children:e.jsxs(H.BwgForm,{ref:n,initialValues:S,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:T("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:v=>F("authId",v.target.value),placeholder:"권한 ID를 입력하세요",disabled:j})})}),e.jsx(s.Col,{span:12,children:e.jsx(H.BwgFormItem,{name:"enblYn",label:"사용여부",children:e.jsx(s.Select,{onChange:v=>F("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(H.BwgFormItem,{name:"authNm",label:"권한 명칭",children:e.jsx(s.Input,{onChange:v=>F("authNm",v.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:v=>F("authDscr",v.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,S,y,j,w)=>{const P=g.getValue(S.index?.itemIndex,"systId"),I=g.getValue(S.index?.itemIndex,"roleId"),C=g.getValue(S.index?.itemIndex,"roleNm"),m=g.getValue(S.index?.itemIndex,"enblYn"),R=g.getValue(S.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(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:C}),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)})}},T={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:()=>{T.search()}}]},children:e.jsxs(Me,{children:[e.jsxs(be,{className:"w40",children:[e.jsx(ke,{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(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(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(Me,{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(Me,{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(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 k=Object.getOwnPropertySymbols(C);m&&(k=k.filter(function(O){return Object.getOwnPropertyDescriptor(C,O).enumerable})),R.push.apply(R,k)}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(k){P(C,k,R[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(R)):a(Object(R)).forEach(function(k){Object.defineProperty(C,k,Object.getOwnPropertyDescriptor(R,k))})}return C}function c(C,m){if(C==null)return{};var R=d(C,m),k,O;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(C);for(O=0;O<_.length;O++)k=_[O],!(m.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(C,k)&&(R[k]=C[k])}return R}function d(C,m){if(C==null)return{};var R={},k=Object.keys(C),O,_;for(_=0;_<k.length;_++)O=k[_],!(m.indexOf(O)>=0)&&(R[O]=C[O]);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 k=m[R];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(C,k.key,k)}}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&&T(C,m)}function T(C,m){return T=Object.setPrototypeOf||function(k,O){return k.__proto__=O,k},T(C,m)}function g(C){var m=j();return function(){var k=w(C),O;if(m){var _=w(this).constructor;O=Reflect.construct(k,arguments,_)}else O=k.apply(this,arguments);return S(this,O)}}function S(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 y(C)}function y(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}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 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 I=(function(C){x(R,C);var m=g(R);function R(){var k;p(this,R);for(var O=arguments.length,_=new Array(O),N=0;N<O;N++)_[N]=arguments[N];return k=m.call.apply(m,[this].concat(_)),P(y(k),"onClick",function(D){var F=k.props,U=F.text,v=F.onCopy,E=F.children,B=F.options,L=r.default.Children.only(E),V=(0,n.default)(U,B);v&&v(U,V),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(D)}),k}return f(R,[{key:"render",value:function(){var O=this.props,_=O.children,N=c(O,o),D=r.default.Children.only(_);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=Fn(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:T=y.createElement(Ud,null)}=t,g=y.useRef(null),j=y.useRef(!1),v=y.useRef(null),[w,C]=y.useState(d);y.useEffect(()=>{C(d)},[d]),y.useEffect(()=>{var U;if(!((U=g.current)===null||U===void 0)&&U.resizableTextArea){const{textArea:E}=g.current.resizableTextArea;E.focus();const{length:S}=E.value;E.setSelectionRange(S,S)}},[]);const B=({target:U})=>{C(U.value.replace(/[\n\r]/g,""))},P=()=>{j.current=!0},b=()=>{j.current=!1},m=({keyCode:U})=>{j.current||(v.current=U)},R=()=>{p(w.trim())},k=({keyCode:U,ctrlKey:E,altKey:S,metaKey:I,shiftKey:L})=>{v.current!==U||j.current||E||S||I||L||(U===Bl.ENTER?(R(),f?.()):U===Bl.ESC&&h())},N=()=>{R()},[_,O,D]=au(r),V=ve(r,`${r}-edit-content`,{[`${r}-rtl`]:a==="rtl",[`${r}-${x}`]:!!x},o,O,D);return _(y.createElement("div",{className:V,style:i},y.createElement(n0,{ref:g,maxLength:l,value:w,onChange:B,onKeyDown:m,onKeyUp:k,onCompositionStart:P,onCompositionEnd:b,onBlur:N,"aria-label":n,rows:1,autoSize:c}),T!==null?Fd(T,{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,T=!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");T=!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),T=!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 T}return Li=i,Li}var g0=lu();const m0=Fn(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 Hi(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:T,style:g}=qo("typography"),j=d??x,v=l?Wn(r,l):r,w=f("typography",n);process.env.NODE_ENV!=="production"&&Gt("Typography").deprecated(!l,"setContentRef","ref");const[C,B,P]=au(w),b=ve(w,T,{[`${w}-rtl`]:j==="rtl"},i,a,B,P),m=Object.assign(Object.assign({},g),p);return C(y.createElement(o,Object.assign({className:b,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"},k0=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:R0}))},uu=y.forwardRef(k0);process.env.NODE_ENV!=="production"&&(uu.displayName="CopyOutlined");var T0={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"},E0=function(r,n){return y.createElement(or,nt({},r,{ref:n,icon:T0}))},pu=y.forwardRef(E0);process.env.NODE_ENV!=="production"&&(pu.displayName="LoadingOutlined");function Ll(t){return t===!1?[!1,!1]:Array.isArray(t)?t:[t]}function Fi(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??{},T=r?f:x,g=Fi(p[r?1:0],T),j=typeof g=="string"?g:T;return y.createElement(Qn,{title:g},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?Fi(h[1],y.createElement(du,null),!0):Fi(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 Hl(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,Fl=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,T]=y.useState(null),g=y.useRef(null),j=y.useRef(null),v=y.useRef(null),w=y.useRef(null),C=y.useRef(null),[B,P]=y.useState(!1),[b,m]=y.useState(Vi),[R,k]=y.useState(0),[N,_]=y.useState(null);Ge(()=>{m(r&&n&&h?Wi:Vi)},[n,o,a,r,p]),Ge(()=>{var U,E,S,I;if(b===Wi){m(Ui);const L=j.current&&getComputedStyle(j.current).whiteSpace;_(L)}else if(b===Ui){const L=!!(!((U=v.current)===null||U===void 0)&&U.isExceed());m(L?Gi:Fl),T(L?[0,h]:null),P(L);const H=((E=v.current)===null||E===void 0?void 0:E.getHeight())||0,X=a===1?0:((S=w.current)===null||S===void 0?void 0:S.getHeight())||0,z=((I=C.current)===null||I===void 0?void 0:I.getHeight())||0,$=Math.max(H,X+z);k($+1),d(L)}},[b]);const O=x?Math.ceil((x[0]+x[1])/2):0;Ge(()=>{var U;const[E,S]=x||[0,0];if(E!==S){const L=(((U=g.current)===null||U===void 0?void 0:U.getHeight())||0)>R;let H=O;S-E===1&&(H=L?E:S),T(L?[E,H]:[H,S])}},[x,O]);const D=y.useMemo(()=>{if(!r)return i(p,!1);if(b!==Gi||!x||x[0]!==x[1]){const U=i(p,!1);return[Fl,Vi].includes(b)?U:y.createElement("span",{style:Object.assign(Object.assign({},wo),{WebkitLineClamp:a})},U)}return i(l?p:Hl(p,x[0]),B)},[l,b,x,p].concat(at(c))),V={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return y.createElement(y.Fragment,null,D,b===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:w},f),y.createElement(Co,{style:Object.assign(Object.assign(Object.assign({},V),wo),{WebkitLineClamp:1}),ref:C},i([],!0))),b===Gi&&x&&x[0]!==x[1]&&y.createElement(Co,{style:Object.assign(Object.assign({},V),{top:400}),ref:g},i(Hl(p,O),!0)),b===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:T}=t,g=N0(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:j,direction:v}=y.useContext(rr),[w]=Bh("Text"),C=y.useRef(null),B=y.useRef(null),P=j("typography",o),b=Ac(g,Vl),[m,R]=Hi(h),[k,N]=Wr(!1,{value:R.editing}),{triggerType:_=["icon"]}=R,O=he=>{var me;he&&((me=R.onStart)===null||me===void 0||me.call(R)),N(he)},D=b0(k);Ge(()=>{var he;!k&&D&&((he=B.current)===null||he===void 0||he.focus())},[k]);const V=he=>{he?.preventDefault(),O(!0)},U=he=>{var me;(me=R.onChange)===null||me===void 0||me.call(R,he),O(!1)},E=()=>{var he;(he=R.onCancel)===null||he===void 0||he.call(R),O(!1)},[S,I]=Hi(f),{copied:L,copyLoading:H,onClick:X}=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),[q,M]=Hi(p,{expandable:!1,symbol:he=>he?w?.collapse:w?.expand}),[G,W]=Wr(M.defaultExpanded||!1,{value:M.expanded}),J=q&&(!G||M.expandable==="collapsible"),{rows:te=1}=M,ie=y.useMemo(()=>J&&(M.suffix!==void 0||M.onEllipsis||M.expandable||m||S),[J,M,m,S]);Ge(()=>{q&&!ie&&($(Ha("webkitLineClamp")),ee(Ha("textOverflow")))},[ie,q]);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=M.onExpand)===null||qe===void 0||qe.call(M,he,me)},[je,Ee]=y.useState(0),et=({offsetWidth:he})=>{Ee(he)},ze=he=>{var me;ne(he),oe!==he&&((me=M.onEllipsis)===null||me===void 0||me.call(M,he))};y.useEffect(()=>{const he=C.current;if(q&&ce&&he){const me=I0(he);fe!==me&&A(me)}},[q,ce,d,ge,K,je]),y.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(M.tooltip,R.text,d),Se=y.useMemo(()=>{if(!(!q||ce))return[R.text,d,T,Le.title].find(ta)},[q,ce,T,Le.title,we]);if(k)return y.createElement(f0,{value:(n=R.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:U,onCancel:E,onEnd:R.onEnd,prefixCls:P,className:i,style:a,direction:v,component:x,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const He=()=>{const{expandable:he,symbol:me}=M;return he?y.createElement("button",{type:"button",key:"expand",className:`${P}-${G?"collapse":"expand"}`,onClick:qe=>de(qe,{expanded:!G}),"aria-label":G?w.collapse:w?.expand},typeof me=="function"?me(G):me):null},Ue=()=>{if(!m)return;const{icon:he,tooltip:me,tabIndex:qe}=R,Kt=Mn(me)[0]||w?.edit,vr=typeof Kt=="string"?Kt:"";return _.includes("icon")?y.createElement(Qn,{key:"edit",title:me===!1?"":Kt},y.createElement("button",{type:"button",ref:B,className:`${P}-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:P,copied:L,locale:w,onCopy:X,loading:H,iconOnly:d==null})):null,Ce=he=>[he&&He(),Ue(),De()],Fe=he=>[he&&!G&&y.createElement("span",{"aria-hidden":!0,key:"ellipsis"},D0),M.suffix,Ce(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({[`${P}-${l}`]:l,[`${P}-disabled`]:c,[`${P}-ellipsis`]:q,[`${P}-ellipsis-single-line`]:Re,[`${P}-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:v,onClick:_.includes("text")?V:void 0,"aria-label":Se?.toString(),title:T},b),y.createElement(M0,{enableMeasure:J&&!ce,text:d,rows:te,width:je,onEllipsis:ze,expanded:G,miscDeps:[L,G,H,m,S,w].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,Fe(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,T]=u.useState([]),[g,j]=u.useState(""),[v,w]=u.useState("ADD"),[C,B]=u.useState(!1),[P,b]=u.useState("");u.useEffect(()=>{t&&T(o)},[t]),u.useEffect(()=>{const k=m(n,o);f(k)},[n]),u.useEffect(()=>{C&&P&&(p.current.setFieldValue("prntBkmkId",P),p.current.setFieldValue("prntBkmkNm",n[P]?.bkmkNm??"-")),C&&v==="EDIT"&&(p.current.setFieldValue("bkmkId",P),p.current.setFieldValue("bkmkNm",n[P]?.bkmkNm)),!C&&v=="ADD"&&T(k=>[...k,P]),!C&&p.current&&(b("-"),p.current.resetFields())},[C,v,P,n]);const m=(k,N)=>{const _=(O,D="-")=>{const V=k[O];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(O=>_(O,"-")).filter(Boolean)},R=()=>{if(w("ADD"),!g){b("-"),B(!0);return}const k=n[g];if(!k){b("-"),B(!0);return}k.type==="F"?b(k.bkmkId):b(k.prntBkmkId),B(!0)};return e.jsxs(s.ConfigProvider,{theme:{components:{Modal:{wireframe:!0},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:[e.jsxs(s.Modal,{open:t,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:12,paddingBottom:12}},title:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:e.jsx(s.Typography.Text,{style:{fontSize:18},children:"북마크 관리"})}),onCancel:r,children:[e.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[e.jsx(s.Button,{type:"primary",variant:"solid",className:"bwg-btn",icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsxs("g",{"clip-path":"url(#clip0_1298_1781)",children:[e.jsx("path",{d:"M9.3002 14.26H13.5702C14.4002 14.26 15.0702 13.59 15.0702 12.76V7.45999C15.0702 6.89999 14.6102 6.43999 14.0502 6.43999H8.8302L7.7102 3.48999H4.1702C3.6402 3.48999 3.2002 3.92999 3.2002 4.45999V8.10999",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M8.18018 4.58997H14.0502C14.6102 4.58997 15.0702 5.04997 15.0702 5.60997V8.25997",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M5.43018 9.52002V14.52",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M7.93018 12.01H2.93018",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1298_1781",children:e.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),style:{padding:"0 10px",boxShadow:"none"},onClick:R,children:"새 폴더"}),e.jsx("div",{children:e.jsxs(s.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:[e.jsx(s.Tooltip,{title:"펼치기",children:e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const k=Object.values(n).filter(N=>N.type==="F").map(N=>N.bkmkId);T(k)}})}),e.jsx(s.Tooltip,{title:"접기",children:e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28,marginLeft:5},onClick:()=>T([])})})]})})]}),e.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #e0e0e0",borderRadius:8,padding:10},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:k,dropPosition:N})=>{const _=k.type==="F";return N===0?_:!0},onDrop:k=>{const{dragNode:N,node:_,dropPosition:O,dropToGap:D}=k;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=O>0?I+1:I}else{if(_.type!=="F")return;const S=_.children||[];V=_.key,U=S.length}const E=se.getUserId();if(N.type==="F")d({bkmkId:N.key,newPrntBkmkId:V,sortOrdr:U,userId:E}).catch(()=>{s.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(V==="-"){s.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}d({bkmkId:N.key,newPrntBkmkId:V,sortOrdr:U,userId:E}).catch(()=>{s.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}D===!1&&T(S=>Array.from(new Set([...S,_.key])))},showLine:!0,treeData:h,selectedKeys:[g],expandedKeys:x,onExpand:T,onSelect:k=>j(k[0]),titleRender:k=>e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("span",{children:[k.type==="F"?"📁":"📄"," ",k.title,k.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:[k.type==="F"&&e.jsxs(e.Fragment,{children:[e.jsx(Q.PlusOutlined,{style:{opacity:.8},onClick:()=>{w("ADD"),b(k.key),B(!0)}}),e.jsx(Q.EditOutlined,{style:{opacity:.8},onClick:()=>{w("EDIT"),b(k.key),B(!0)}})]}),e.jsx(Q.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{k.type==="F"?s.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>l(k.key)}):s.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>c(k.key)})}})]})]})})]})]}),e.jsx(s.ConfigProvider,{theme:{components:{Modal:{titleColor:v==="ADD"?"var(--primary-color)":"#ff6767",headerBg:v==="ADD"?"var(--drawer-header-bg)":"#fff0f0",titleFontSize:18},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:e.jsx(s.Modal,{title:e.jsx(e.Fragment,{children:e.jsxs(s.Typography.Text,{style:{fontSize:16,display:"flex",alignItems:"center",gap:6},children:[v==="ADD"?e.jsx("span",{className:"bookmark-folder-modal-icon ico-new-folder"}):e.jsx("span",{className:"bookmark-folder-modal-icon ico-edit-folder"}),"폴더",v==="ADD"?" 추가":"명 수정"]})}),open:C,okText:"저장",onOk:()=>{const k=p.current.getFieldValue("bkmkNm"),N=se.getUserId();if(v==="ADD"){const _=__SYS_CD__??"KH",O=p.current.getFieldValue("prntBkmkId");i(k,O,_,N).then(()=>{B(!1)})}else{const _=p.current.getFieldValue("bkmkId");a(_,N,k).then(()=>{B(!1)})}},centered:!0,width:400,onCancel:()=>B(!1),okButtonProps:{className:"bwg-btn"},cancelButtonProps:{className:"bwg-btn"},styles:{body:{padding:20}},children:e.jsxs(F.BwgForm,{ref:p,style:{padding:0},children:[e.jsx(F.BwgInput,{itemProps:{name:v==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),e.jsx(F.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:P==="-"||v==="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),[T,g]=u.useState(!1),[j,v]=u.useState(!1),[w,C]=u.useState(null);ut.useFavoriteStore(H=>H.treeNodes);const{nodes:B,getPrntBkmkIdByMenuId:P,getNodeByMenuId:b,isMenuBookmarked:m,removeMenuByMenuId:R,addMenuToFolder:k,convertToAntTreeData:N}=ut.useFavoriteStore(),_=ut.useFavoriteStore(H=>H.rootIds),O=u.useMemo(()=>N(B,_,o,!0),[B,_,o]),D=ut.useMenuViewStore(H=>H.activeMenuItem??{menuId:"",menuNm:""}),V=u.useMemo(()=>{if(!D?.menuId)return"";const H=b(D.menuId);if(!H)return"";if(H.fullPath)return H.fullPath;const X=z=>{const $=B[z];if(!$)return"";if($.prntBkmkId==="-")return`${$.bkmkNm||D?.menuNm}`;const Y=X($.prntBkmkId);return Y?`${Y} > ${$.bkmkNm||D?.menuNm}`:$.bkmkNm||D?.menuNm};return console.log("bookmarkNode ::::: ",H),console.log(X(H.bkmkId)),X(H.bkmkId)},[D?.menuId,b,B]);u.useEffect(()=>{r&&D?.menuId&&m(D.menuId)?h([P(D.menuId)]):r&&D?.menuId&&!m(D.menuId)?h(_):(h([]),d([]),C(null),v(!1))},[r,D?.menuId,m,P]),u.useEffect(()=>{if(!j||!D?.menuId)return;const H=P(D.menuId);!H||!B[H]||(i(""),d([H]),C(H))},[j,D?.menuId,B,P]);const U=(H,X)=>{k(H,X).then(z=>{console.log("AddMenuToFolder ::::: ",z),z||h($=>$.includes(H)?$:[...$,H])})},E=H=>{R(H)},S=async H=>{D?.menuId&&(await R(D.menuId),await k(H,D),v(!1),C(null),h(X=>X.includes(H)?X:[...X,H]))},I=()=>e.jsxs("div",{className:"bookmark-popover-wrap",style:{width:360},children:[e.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[e.jsxs(s.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[e.jsx(s.Button,{type:"text",icon:e.jsx(Q.ArrowLeftOutlined,{}),onClick:()=>v(!1),style:{width:26,height:26}}),"폴더 변경"]}),D&&e.jsxs(s.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",e.jsx("b",{children:D.menuNm})," ",e.jsxs("span",{style:{color:"#939393"},children:["(",D.menuId,")"]})]})]})}),L(),e.jsxs("div",{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee",display:"flex",justifyContent:"flex-end",gap:8},children:[e.jsx(s.Button,{type:"default",className:"bwg-btn",onClick:()=>{v(!1),C(null)},children:"취소"}),e.jsx(s.Button,{type:"primary",className:"bwg-btn",disabled:!w,onClick:()=>w&&S(String(w)),children:"이동"})]})]}),L=()=>e.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:"15px 20px 20px"},children:[e.jsxs(s.Space,{style:{width:"100%",marginBottom:12,display:"flex",justifyContent:"space-between",columnGap:10},children:[e.jsx(s.Input,{placeholder:"검색(폴더명)",prefix:e.jsx(Q.SearchOutlined,{}),allowClear:!0,value:o,onChange:H=>i(H.target.value),style:{width:"250px",height:28}}),e.jsx(s.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5},children:[e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const H=Object.values(B).filter(X=>X.type==="F").map(X=>X.bkmkId);h(H)},title:"모두 확장"}),e.jsx(s.Button,{icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>h([]),title:"모두 축소"})]})})]}),O.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:O,selectedKeys:c,expandedKeys:p,onExpand:h,onSelect:H=>{d(H),C(H[0])},autoExpandParent:!0,titleRender:H=>{const X=String(H.key),z=a===X;return e.jsxs("div",{onMouseEnter:()=>l(X),onMouseLeave:()=>l(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsx("div",{children:H.title}),!m(D?.menuId)&&D&&z&&e.jsx(s.ConfigProvider,{theme:{components:{Button:{defaultColor:"rgba(0,0,0,0.5)",defaultHoverColor:"rgba(0,0,0,0.8)"}}},children:e.jsx(s.Button,{size:"small",type:"link",onClick:$=>{$.stopPropagation(),U(X,D)},style:{color:"rgba(0,0,0,0.5)"},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,boxShadow:"0 12px 32px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.2)",background:"#ffffff",zIndex:1e3}},content:j?I():e.jsxs("div",{style:{width:360},children:[e.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:e.jsxs(s.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[e.jsxs(s.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[e.jsx("span",{className:`bookmark-title-icon ${m(D?.menuId)?"saved":"add"}`}),"북마크"," ",m(D?.menuId)?"저장됨":"추가"]}),D&&e.jsxs(s.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",e.jsx("b",{children:D.menuNm})," ",e.jsxs("span",{style:{color:"#939393"},children:["(",D.menuId,")"]})]})]})}),m(D?.menuId)?e.jsxs("div",{style:{padding:"10px 12px",margin:"15px 20px",borderRadius:8,backgroundColor:"#f7f6fB"},children:[e.jsx(s.Typography.Text,{type:"secondary",style:{fontSize:13},children:"저장 위치"}),e.jsx("div",{style:{marginTop:4},children:`📁 > ${V}`||"알 수 없음"})]}):L(),e.jsxs(Me,{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee"},layoutAlign:"right",children:[D&&!m(D.menuId)?e.jsx(s.Button,{style:{padding:"0 10px"},type:"primary",className:"bwg-btn",icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M3 9H15M9 3V15",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>{const H=String(c[0]);let X="-";H&&B[H]&&(X=B[H].type=="M"?B[H].prntBkmkId:H),U(X,D)},children:"추가"}):e.jsxs(Me,{layoutAlign:"between",children:[e.jsx(s.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsxs("g",{"clip-path":"url(#clip0_1289_1745)",children:[e.jsx("path",{d:"M13.9198 6.57H8.69982L7.57982 3.62H4.03982C3.50982 3.62 3.06982 4.06 3.06982 4.59V12.89C3.06982 13.72 3.73982 14.39 4.56982 14.39H13.4398C14.2698 14.39 14.9398 13.72 14.9398 12.89V7.59C14.9398 7.03 14.4798 6.57 13.9198 6.57Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M8.0498 4.72H13.9198C14.4798 4.72 14.9398 5.18 14.9398 5.74V8.39",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1289_1745",children:e.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),onClick:()=>v(!0),children:"폴더 변경"}),e.jsx(s.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},color:"danger",variant:"solid",icon:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M7.5 7.5V12M10.5 7.5V12M13.5 4.5V13.5C13.5 14.3284 12.8284 15 12 15H6C5.17157 15 4.5 14.3284 4.5 13.5V4.5M3 4.5H15M11.25 4.5V3.75C11.25 2.92157 10.5784 2.25 9.75 2.25H8.25C7.42157 2.25 6.75 2.92157 6.75 3.75V4.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>E(D.menuId),children:"삭제"})]}),e.jsx(s.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px",marginLeft:5},icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[e.jsx("path",{d:"M8.25 2.25H9.75C10.1642 2.25 10.5 2.58579 10.5 3V3.42659C10.5 3.74744 10.7153 4.02619 11.0117 4.14921C11.3081 4.27229 11.6532 4.22538 11.8802 3.99842L12.182 3.69668C12.4748 3.40379 12.9497 3.40379 13.2426 3.69668L14.3033 4.75734C14.5962 5.05023 14.5962 5.52511 14.3033 5.818L14.0016 6.1197C13.7746 6.34667 13.7277 6.69185 13.8508 6.98831C13.9738 7.28465 14.2526 7.5 14.5734 7.5L15 7.5C15.4142 7.5 15.75 7.83579 15.75 8.25V9.75C15.75 10.1642 15.4142 10.5 15 10.5H14.5734C14.2526 10.5 13.9738 10.7153 13.8508 11.0117C13.7277 11.3081 13.7746 11.6533 14.0016 11.8803L14.3033 12.182C14.5962 12.4749 14.5962 12.9497 14.3033 13.2426L13.2426 14.3033C12.9497 14.5962 12.4749 14.5962 12.182 14.3033L11.8803 14.0016C11.6533 13.7746 11.3081 13.7277 11.0117 13.8508C10.7153 13.9738 10.5 14.2526 10.5 14.5734V15C10.5 15.4142 10.1642 15.75 9.75 15.75H8.25C7.83579 15.75 7.5 15.4142 7.5 15V14.5734C7.5 14.2526 7.28465 13.9738 6.98831 13.8508C6.69185 13.7277 6.34667 13.7746 6.1197 14.0016L5.81799 14.3033C5.5251 14.5962 5.05022 14.5962 4.75733 14.3033L3.69667 13.2426C3.40378 12.9497 3.40378 12.4749 3.69667 12.182L3.99842 11.8802C4.22538 11.6532 4.27229 11.3081 4.14921 11.0117C4.02619 10.7153 3.74744 10.5 3.42659 10.5H3C2.58579 10.5 2.25 10.1642 2.25 9.75V8.25C2.25 7.83579 2.58579 7.5 3 7.5L3.42657 7.5C3.74743 7.5 4.02619 7.28466 4.14922 6.98832C4.2723 6.69188 4.22539 6.34671 3.99842 6.11975L3.69668 5.818C3.40379 5.52511 3.40379 5.05024 3.69668 4.75734L4.75734 3.69668C5.05023 3.40379 5.52511 3.40379 5.818 3.69668L6.11974 3.99842C6.34671 4.22539 6.69187 4.2723 6.98832 4.14922C7.28466 4.02619 7.5 3.74743 7.5 3.42657V3C7.5 2.58579 7.83579 2.25 8.25 2.25Z",stroke:"currentColor"}),e.jsx("path",{d:"M10.5 9C10.5 9.82843 9.82843 10.5 9 10.5C8.17157 10.5 7.5 9.82843 7.5 9C7.5 8.17157 8.17157 7.5 9 7.5C9.82843 7.5 10.5 8.17157 10.5 9Z",stroke:"currentColor"})]}),onClick:()=>{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),T&&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:T}=ut.useFavoriteStore(),{loading:g}=ut.useLoadingStore(),[j,v]=u.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),{openCorePopup:w}=pt.usePopup(),C=async()=>{if(o.length===0){v(_=>({..._,preRenderComplete:!0}));return}try{for(const _ of o)await _();v(_=>({..._,preRenderComplete:!0}))}catch(_){v(O=>({...O,error:_ instanceof Error?_.message:"사전 렌더링 실패",preRenderComplete:!0}))}},B=async()=>{if(i.length===0){v(_=>({..._,postRenderComplete:!0}));return}try{for(const _ of i)await _();v(_=>({..._,postRenderComplete:!0}))}catch(_){v(O=>({...O,error:_ instanceof Error?_.message:"사후 렌더링 실패",postRenderComplete:!0}))}};u.useEffect(()=>{if(j.isInitialized)return;(async()=>{try{await C(),v(O=>({...O,isInitialized:!0,loading:!1}))}catch(O){console.error("BwgView 초기화 실패:",O),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 B(),v(O=>({...O,isReady:!0}))},100)},[j.isInitialized,j.preRenderComplete,j.isReady]),u.useEffect(()=>{l&&v(_=>({..._,error:l}))},[l]);const P=()=>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 b=()=>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:b,..._}),k=_=>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:T(f.menuId)?e.jsx(R,{className:"bookmark-icon",style:{color:"#faad14"}}):e.jsx(k,{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:()=>w("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:[P(),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,{dimStyle:"light",text:g?"처리 중...":"화면 로드 중..."})]})})]})},H0=({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})},F0="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:F0,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 B=window.innerHeight,b=Math.max(64,(B-300)/3);n({x:0,y:b});const m=B/2;h(b<m)};return C(),window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const T=C=>{if(C.preventDefault(),C.stopPropagation(),f.current){const B=f.current.getBoundingClientRect();l({x:C.clientX-B.left,y:C.clientY-B.top}),i(!0)}},g=C=>{if(o){const B=C.clientY-a.y,P=window.innerHeight-24,m=Math.max(64,Math.min(P,B));n({x:r.x,y:m});const R=window.innerHeight/2;h(m<R)}},j=()=>{i(!1)},v=()=>{d(!c)},w=C=>{C.onClick&&C.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(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:()=>w(C),onMouseEnter:B=>{},onMouseLeave:B=>{},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("span",{className:"quick-tab-add-icon",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=>T(C)}),e.jsx(s.Button,{className:`quick-tab-toggle-btn ${c?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:v})]})},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:T}=pt.useCommonCode(),g=u.useMemo(()=>Ns((S,I,L,H,X)=>{const z=I.value,$=f?.(z)||"blue",Y=x?.(z)||z,ee=z?e.jsx(s.Tag,{color:$,style:{fontSize:"11px"},children:Y}):null;X.render(e.jsx("div",{style:{padding:"4px"},children:ee}))}),[f,x]),[j,v]=u.useState({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),[w,C]=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"}}],[]),P={container:{check:!0,indicator:!0,footer:!0}},b={onCurrentRowChanged(S,I,L){console.log("공통 버튼 그리드 - 현재 행 변경:",{oldRow:I,newRow:L,activeTabKey:p})}},m={onCurrentRowChanged(S,I,L){console.log("커스텀 버튼 그리드 - 현재 행 변경:",{oldRow:I,newRow:L,activeTabKey:p})}},R=S=>{h(S)};u.useEffect(()=>{},[]),u.useEffect(()=>{const S=o.current?.vw?.getCurrent().itemIndex??-1;if(S<0)return;const I=o.current?.vw?.getValues(S);_.SCMAUTH00201({crprCd:I.crprCd,systId:I.systId,authId:I.authId,menuId:I.authMenu,grpId:p==="common"?"DEFAULT":"CUSTOM"})},[p]);const k=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}],[]),N={onCurrentRowChanged(S,I,L){if(L<0)return;const H=S.getValues(L);console.log("권한 선택:",H),console.log("현재 activeTabKey:",p),n.current?.setFieldsValue(H),_.SCMAUTH00201({crprCd:H.crprCd,systId:H.systId,authId:H.authId,menuId:H.authMenu,grpId:p==="common"?"DEFAULT":"CUSTOM"})}},_={SCMAUTH00101:()=>{se.callService("SCMAUTH00101",{crprCd:se.getCrprCd()},{},t.appCd).then(S=>{o.current?.addAllData(S.data)})},SCMAUTH00102:S=>{se.callService("SCMAUTH00102",{...S},{},t.appCd).then(I=>{I.result||n.current?.setFields([{name:"authId",errors:[I.message]}])})},SCMAUTH00201:S=>{se.callService("SCMAUTH00201",{...S},{},t.appCd).then(I=>{p==="common"?i.current?.addAllData(I.data):a.current?.addAllData(I.data)}).catch(I=>{console.error("SCMAUTH00201 호출 실패:",I)})},SCMAUTH00301:async S=>{try{const I=await se.callService("SCMAUTH00301",{...S,crprCd:se.getCrprCd()},{},t.appCd);return console.log("권한 정보 저장 성공:",I),C(!1),_.SCMAUTH00101(),I}catch(I){throw console.error("권한 정보 저장 실패:",I),I}},SCMAUTH00401:async S=>{try{const I=await se.callService("SCMAUTH00401",{...S,crprCd:se.getCrprCd()},{},t.appCd);return console.log("권한 정보 수정 성공:",I),C(!1),_.SCMAUTH00101(),I}catch(I){throw console.error("권한 정보 수정 실패:",I),I}}},O={search:()=>{_.SCMAUTH00101()},new:()=>{C(!1),v({crprCd:String(se.getCrprCd()||""),systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),c(!0)},edit:()=>{const S=o.current?.getCurrentRow();S&&typeof S=="object"&&(C(!0),v({crprCd:S.crprCd||String(se.getCrprCd()||""),systId:S.systId||"",authId:S.authId||"",authNm:S.authNm||"",authDscr:S.authDscr||"",authMenu:S.authMenu||"",enblYn:S.enblYn||"Y"}),c(!0))}},D={test:()=>{console.log("test")}},V={openPopup:S=>{r("CMDprtSrchP02",{isDefault:S})},add:()=>{console.log("add")},modify:()=>{console.log("edit")},delete:()=>{console.log("delete")}},U=(S,I)=>{v(L=>({...L,[S]:I}))},E=async()=>{try{w||await _.SCMAUTH00102({auth:n.current?.getFieldsValue()})}catch(S){console.error("권한 정보 처리 실패:",S)}};return u.useEffect(()=>{_.SCMAUTH00101()},[]),u.useEffect(()=>{},[o.current?.getGridInstance()?.gridView]),e.jsx(ht,{grantEvent:O,customEvent:D,children:e.jsxs(Me,{children:[e.jsxs(be,{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(Oe,{type:"nrml",ref:o,gridColumns:k,renderers:[{name:"tag",renderer:g}],gridOptions:{container:{indicator:!0,check:!0,checkAll:!0}},gridEvents:N})]}),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:T("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(ke,{title:"공통 버튼 매핑",children:e.jsx(Qi,{grpId:"AUTH",menuId:"CM010303",btnEvent:V})}),e.jsx(Oe,{ref:i,type:"nrml",gridColumns:B,gridOptions:P,gridEvents:b})]})},{key:"custom",label:"커스텀",children:e.jsxs(be,{children:[e.jsx(ke,{title:"커스텀 버튼 매핑",children:e.jsx(Qi,{grpId:"AUTH2",menuId:"CM010303"})}),e.jsx(Oe,{ref:a,type:"nrml",gridColumns:B,gridOptions:P,gridEvents:m})]})}],tabPosition:"left"})]})}),e.jsx(Xr,{title:`권한별 메뉴 관리 - ${d?.authNm||""}`,open:l,placement:"right",onClose:()=>{c(!1),v({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),C(!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(),C(!1)},className:"bwg-btn",children:"취소"}),e.jsx(s.Button,{type:"primary",onClick:E,className:"bwg-btn",children:"저장"})]}),children:e.jsxs(F.BwgForm,{ref:n,initialValues:j,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:T("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:S=>U("authId",S.target.value),placeholder:"권한 ID를 입력하세요",disabled:w})})}),e.jsx(s.Col,{span:12,children:e.jsx(F.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(F.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(F.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(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,j,v,w,C)=>{const B=g.getValue(j.index?.itemIndex,"systId"),P=g.getValue(j.index?.itemIndex,"roleId"),b=g.getValue(j.index?.itemIndex,"roleNm"),m=g.getValue(j.index?.itemIndex,"enblYn"),R=g.getValue(j.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:B})}),e.jsx("div",{style:{position:"absolute",top:"30%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"16px",fontWeight:"bold",color:"#262626",textAlign:"center"},children:b}),e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translateX(-50%)",fontSize:"13px",color:"#8c8c8c",fontFamily:"monospace"},children:P}),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,j,v){if(v<0)return;const w=g.getValues(v);switch(i){case"menu":break;case"dept":x.SCMROLE00103(w.roleId);break;case"user":x.SCMROLE00104(w.roleId);break}}},x={SCMROLE00101:()=>{se.callService("SCMROLE00101",{crprCd:se.getCrprCd()}).then(g=>{console.log("SCMROLE00101:",g),r.current?.addAllData(g.data)})},SCMROLE00102:g=>{se.callService("SCMROLE00102",{crprCd:se.getCrprCd(),roleId:g}).then(j=>{console.log("SCMROLE00102:",j)})},SCMROLE00103:g=>{se.callService("SCMROLE00103",{crprCd:se.getCrprCd(),roleId:g}).then(j=>{console.log("SCMROLE00103:",j),n.current?.addAllData(j.data)})},SCMROLE00104:g=>{se.callService("SCMROLE00104",{crprCd:se.getCrprCd(),roleId:g}).then(j=>{console.log("SCMROLE00104:",j),o.current?.addAllData(j.data)})}},T={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(ht,{grantEvent:T,children:e.jsxs(Me,{children:[e.jsxs(be,{className:"w40",children:[e.jsx(ke,{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(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(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(Me,{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(Me,{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(b){"@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(b)}Object.defineProperty(wn,"__esModule",{value:!0}),wn.CopyToClipboard=void 0;var r=i(u),n=i(lu()),o=["text","onCopy","options","children"];function i(b){return b&&b.__esModule?b:{default:b}}function a(b,m){var R=Object.keys(b);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(b);m&&(k=k.filter(function(N){return Object.getOwnPropertyDescriptor(b,N).enumerable})),R.push.apply(R,k)}return R}function l(b){for(var m=1;m<arguments.length;m++){var R=arguments[m]!=null?arguments[m]:{};m%2?a(Object(R),!0).forEach(function(k){B(b,k,R[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(R)):a(Object(R)).forEach(function(k){Object.defineProperty(b,k,Object.getOwnPropertyDescriptor(R,k))})}return b}function c(b,m){if(b==null)return{};var R=d(b,m),k,N;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(b);for(N=0;N<_.length;N++)k=_[N],!(m.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(b,k)&&(R[k]=b[k])}return R}function d(b,m){if(b==null)return{};var R={},k=Object.keys(b),N,_;for(_=0;_<k.length;_++)N=k[_],!(m.indexOf(N)>=0)&&(R[N]=b[N]);return R}function p(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function h(b,m){for(var R=0;R<m.length;R++){var k=m[R];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(b,k.key,k)}}function f(b,m,R){return m&&h(b.prototype,m),Object.defineProperty(b,"prototype",{writable:!1}),b}function x(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),m&&T(b,m)}function T(b,m){return T=Object.setPrototypeOf||function(k,N){return k.__proto__=N,k},T(b,m)}function g(b){var m=w();return function(){var k=C(b),N;if(m){var _=C(this).constructor;N=Reflect.construct(k,arguments,_)}else N=k.apply(this,arguments);return j(this,N)}}function j(b,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(b)}function v(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function w(){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(b){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},C(b)}function B(b,m,R){return m in b?Object.defineProperty(b,m,{value:R,enumerable:!0,configurable:!0,writable:!0}):b[m]=R,b}var P=(function(b){x(R,b);var m=g(R);function R(){var k;p(this,R);for(var N=arguments.length,_=new Array(N),O=0;O<N;O++)_[O]=arguments[O];return k=m.call.apply(m,[this].concat(_)),B(v(k),"onClick",function(D){var V=k.props,U=V.text,E=V.onCopy,S=V.children,I=V.options,L=r.default.Children.only(S),H=(0,n.default)(U,I);E&&E(U,H),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(D)}),k}return f(R,[{key:"render",value:function(){var N=this.props,_=N.children,O=c(N,o),D=r.default.Children.only(_);return r.default.cloneElement(D,l(l({},O),{},{onClick:this.onClick}))}}]),R})(r.default.PureComponent);return wn.CopyToClipboard=P,B(P,"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=Fn(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([]),[T,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([]),[T,g]=u.useState([]),[j,v]=u.useState([]),[w,C]=u.useState([]),[B,P]=u.useState([]),[b,m]=u.useState([]),[R,k]=u.useState([]),[N,_]=u.useState([]),[O,D]=u.useState([]),[V,U]=u.useState([]),[E,S]=u.useState([]),[I,L]=u.useState([]),[H,X]=u.useState([]),[z,$]=u.useState([]),[Y,ee]=u.useState([]),[oe,ne]=u.useState([]),[fe,A]=u.useState([]),[K,Z]=u.useState([]);u.useState([]),u.useState([]);const q=M=>{const G=document.getElementById(M);G&&t.current&&(t.current.scrollTo({top:G.offsetTop-20,behavior:"smooth"}),n(M))};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(ke,{title:e.jsx("div",{children:"컴포넌트 목록"})})}),e.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[e.jsx(bt,{onClick:()=>q("ex_bwg_input"),isActive:r==="ex_bwg_input",children:"BwgInput"}),e.jsx(bt,{onClick:()=>q("ex_bwg_textarea"),isActive:r==="ex_bwg_textarea",children:"BwgTextArea"}),e.jsx(bt,{onClick:()=>q("ex_bwg_number"),isActive:r==="ex_bwg_number",children:"BwgNumber"}),e.jsx(bt,{onClick:()=>q("ex_bwg_search"),isActive:r==="ex_bwg_search",children:"BwgSearch"}),e.jsx(bt,{onClick:()=>q("ex_bwg_select"),isActive:r==="ex_bwg_select",children:"BwgSelect"}),e.jsx(bt,{onClick:()=>q("ex_bwg_multiselect"),isActive:r==="ex_bwg_multiselect",children:"BwgMultiSelect"}),e.jsx(bt,{onClick:()=>q("ex_bwg_datepicker"),isActive:r==="ex_bwg_datepicker",children:"BwgDatePicker"}),e.jsx(bt,{onClick:()=>q("ex_bwg_rangepicker"),isActive:r==="ex_bwg_rangepicker",children:"BwgRangePicker"}),e.jsx(bt,{onClick:()=>q("ex_bwg_check"),isActive:r==="ex_bwg_check",children:"BwgCheck"}),e.jsx(bt,{onClick:()=>q("ex_bwg_checklist"),isActive:r==="ex_bwg_checklist",children:"BwgCheckList"}),e.jsx(bt,{onClick:()=>q("ex_bwg_radio"),isActive:r==="ex_bwg_radio",children:"BwgRadio"}),e.jsx(bt,{onClick:()=>q("ex_bwg_uploader"),isActive:r==="ex_bwg_uploader",children:"BwgUploader"}),e.jsx(bt,{onClick:()=>q("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:[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 M={placeholder:"'텍스트를 입력하세요'",disabled:"false",allowClear:"true",maxLength:"10",variant:"'outlined'",status:"'warning'"},W=`<BwgInput
|
|
190
190
|
inputProps={{
|
|
191
|
-
${
|
|
191
|
+
${N.map(J=>` ${J}: ${M[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:N.length===0,type:"primary",icon:e.jsx(Q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:N,onChange:(M,G)=>{_(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:[O.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[O.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(O.length===0){s.message.warning("선택된 속성이 없습니다!");return}const M={placeholder:"'텍스트를 입력하세요'",disabled:"false",allowClear:"true",maxLength:"100",rows:"4",autoSize:"{ minRows: 2, maxRows: 6 }",status:"'warning'"},W=`<BwgTextArea
|
|
195
195
|
inputProps={{
|
|
196
|
-
${
|
|
196
|
+
${O.map(J=>` ${J}: ${M[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:O.length===0,type:"primary",icon:e.jsx(Q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:O,onChange:(M,G)=>{D(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:M=>`₩ ${M}`.replace(/\B(?=(\d{3})+(?!\d))/g,","),parser:M=>M.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:[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 M={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
|
+
${V.map(J=>` ${J}: ${M[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:V.length===0,type:"primary",icon:e.jsx(Q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:V,onChange:(M,G)=>{U(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:[E.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[E.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(E.length===0){s.message.warning("선택된 속성이 없습니다!");return}const M={placeholder:"'검색어를 입력하세요'",disabled:"false",allowClear:"true",onSearch:"value => message.info(`검색: ${value}`)",status:"'warning'"},W=`<BwgSearch
|
|
205
|
+
${E.map(J=>` ${J}: ${M[J]||"true"}`).join(`,
|
|
206
206
|
`)}
|
|
207
|
-
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:
|
|
207
|
+
/>`;navigator.clipboard.writeText(W),s.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:E.length===0,type:"primary",icon:e.jsx(Q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:E,onChange:(M,G)=>{S(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:[I.length>0&&e.jsxs(s.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[I.length,"개 속성 선택됨"]}),e.jsx(s.Button,{onClick:()=>{if(I.length===0){s.message.warning("선택된 속성이 없습니다!");return}const M={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
|
+
${I.map(J=>` ${J}: ${M[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:I.length===0,type:"primary",icon:e.jsx(Q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:I,onChange:(M,G)=>{L(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:[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 M={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
|
+
${H.map(J=>` ${J}: ${M[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:H.length===0,type:"primary",icon:e.jsx(Q.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),e.jsx(s.Table,{rowSelection:{type:"checkbox",selectedRowKeys:H,onChange:(M,G)=>{X(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:T,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 M={placeholder:"'날짜를 선택하세요'",disabled:"false",allowClear:"true",format:"'YYYY-MM-DD'",showTime:"false"},W=`<BwgDatePicker
|
|
218
218
|
inputProps={{
|
|
219
219
|
${z.map(J=>` ${J}: ${M[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:(M,G)=>{$(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:(M,G)=>{$(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"날짜 선택 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"날짜 선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"format",type:"string",description:"날짜 형식 (예: YYYY-MM-DD)"},{property:"showTime",type:"boolean",description:"시간 선택 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:e.jsx(Dt,{selectedRowKeys:j,onSelectionChange:v,componentName:"BwgDatePicker"})}]})})]})]})}),e.jsx("div",{id:"ex_bwg_rangepicker",style:{marginBottom:"60px"},children:e.jsxs(s.Card,{title:e.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgRangePicker"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(Q.ReadOutlined,{}),"설명"]}),e.jsx(s.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:e.jsx("blockquote",{children:"BwgRangePicker 컴포넌트는 날짜 범위 선택을 위한 컴포넌트입니다."})})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[e.jsx(Q.RocketOutlined,{}),"Import 하기"]}),e.jsx(Ct,{importText:"import { BwgRangePicker } from '@bwg/ui/core';"})]}),e.jsxs("div",{style:{marginBottom:"32px"},children:[e.jsxs(s.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[e.jsx(Q.ExperimentOutlined,{}),"사용 방법"]}),e.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:e.jsxs(s.Flex,{vertical:!0,gap:"16",children:[e.jsxs(s.Row,{gutter:[16,16],children:[e.jsx(s.Col,{span:12,children:e.jsx(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 M={placeholder:"['시작일', '종료일']",disabled:"false",allowClear:"true",format:"'YYYY-MM-DD'",showTime:"false"},W=`<BwgRangePicker
|
|
223
223
|
inputProps={{
|
|
224
224
|
${Y.map(J=>` ${J}: ${M[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:(M,G)=>{ee(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:(M,G)=>{ee(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:w,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 M={children:"'체크박스 라벨'",disabled:"false",indeterminate:"true",status:"'warning'"},W=`<BwgCheck
|
|
228
228
|
inputProps={{
|
|
229
229
|
${oe.map(J=>` ${J}: ${M[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:(M,G)=>{ne(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:
|
|
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:(M,G)=>{ne(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:B,onSelectionChange:P,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 M={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}: ${M[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:(M,G)=>{A(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:
|
|
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:(M,G)=>{A(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:b,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 M={children:"'라디오 버튼 라벨'",disabled:"false",status:"'warning'"},W=`<BwgRadio
|
|
238
238
|
inputProps={{
|
|
239
239
|
${K.map(J=>` ${J}: ${M[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:(M,G)=>{Z(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:k,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:M=>{s.message.success(`[onUploadComplete] ${M.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:M=>{s.message.success(`[onUploadComplete] ${M.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:M=>{s.message.success(`[onUploadComplete] ${M.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,T=()=>{i([]),l("100%"),r()};return e.jsx(s.Modal,{title:"필수검색 행 추가",open:t,onOk:p,onCancel:T,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,T=()=>{i([]),l("100%"),r()};return e.jsx(s.Modal,{title:"일반검색 행 추가",open:t,onOk:p,onCancel:T,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),T=u.useRef(null),g=u.useRef(null),S=u.useRef(null),y=u.useRef(null),j=u.useRef(null),w=u.useRef(null),[P,I]=u.useState(null),C=u.useRef(null),m=u.useRef(null),R=u.useRef(null),k=u.useRef(null),[O,_]=u.useState(!1),[N,D]=u.useState(!1),[F,U]=u.useState(!1),[v,E]=u.useState(!1),B=M=>{const G=document.getElementById(M);G&&r.current&&(r.current.scrollTo({top:G.offsetTop-20,behavior:"smooth"}),o(M))},L=M=>{p(M),a(!0)},V=M=>{p(M),c(!0)},X=(M,G)=>{console.log(`템플릿 ${d}에 필수검색으로 ${M.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(W=>({...W,[d]:{...W[d],required:{components:M,size:G}}})),a(!1)},z=(M,G)=>{console.log(`템플릿 ${d}에 일반검색으로 ${M.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(W=>({...W,[d]:{...W[d],general:{components:M,size:G}}})),c(!1)},$=(M,G)=>{const W={itemProps:{label:"예제",name:"exam"},key:`${M}_${G}`};switch(M){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=M=>{const G=h[M];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=M=>{f(G=>({...G,[M]:void 0}))},fe=M=>{const G=h[M];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:(M,G)=>{Z(M),console.log(`selectedRowKeys: ${M}`,"selectedRows: ",G)}},rowKey:M=>M.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:k,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:M=>{s.message.success(`[onUploadComplete] ${M.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:M=>{s.message.success(`[onUploadComplete] ${M.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:M=>{s.message.success(`[onUploadComplete] ${M.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,T=()=>{i([]),l("100%"),r()};return e.jsx(s.Modal,{title:"필수검색 행 추가",open:t,onOk:p,onCancel:T,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,T=()=>{i([]),l("100%"),r()};return e.jsx(s.Modal,{title:"일반검색 행 추가",open:t,onOk:p,onCancel:T,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}=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),T=u.useRef(null),g=u.useRef(null),j=u.useRef(null),v=u.useRef(null),w=u.useRef(null),C=u.useRef(null),[B,P]=u.useState(null),b=u.useRef(null),m=u.useRef(null),R=u.useRef(null),k=u.useRef(null),[N,_]=u.useState(!1),[O,D]=u.useState(!1),[V,U]=u.useState(!1),[E,S]=u.useState(!1),I=M=>{const G=document.getElementById(M);G&&r.current&&(r.current.scrollTo({top:G.offsetTop-20,behavior:"smooth"}),o(M))},L=M=>{p(M),a(!0)},H=M=>{p(M),c(!0)},X=(M,G)=>{console.log(`템플릿 ${d}에 필수검색으로 ${M.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(W=>({...W,[d]:{...W[d],required:{components:M,size:G}}})),a(!1)},z=(M,G)=>{console.log(`템플릿 ${d}에 일반검색으로 ${M.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(W=>({...W,[d]:{...W[d],general:{components:M,size:G}}})),c(!1)},$=(M,G)=>{const W={itemProps:{label:"예제",name:"exam"},key:`${M}_${G}`};switch(M){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=M=>{const G=h[M];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=M=>{f(G=>({...G,[M]:void 0}))},fe=M=>{const G=h[M];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,12 +295,12 @@ ${K.map(J=>` ${J}: ${M[J]||"true"}`).join(`,
|
|
|
295
295
|
</ContentLayOut>`}return`// 아래 코드를 return 영역에 붙여 넣으시기 바랍니다.
|
|
296
296
|
<BwgView${W?" "+W:""}>
|
|
297
297
|
${J}
|
|
298
|
-
</BwgView>`},A=M=>{const G=fe(M);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:()=>
|
|
298
|
+
</BwgView>`},A=M=>{const G=fe(M);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:()=>b.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}],q=[{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:()=>{E(!0)},style:{background:"#28a745",borderColor:"#28a745",borderRadius:"6px",fontSize:"13px",padding:"6px 16px",height:"auto"},children:"예제드로어 열어보기"})})]}),target:()=>k.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(ke,{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(ke,{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(ke,{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"),_(!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:()=>A("bwgpageTmpl01")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl01"),children:e.jsx(Me,{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:()=>A("bwgpageTmpl02")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl02"),children:e.jsxs(Me,{children:[e.jsx(be,{className:"w50 mr20",style:{height:"300px"},children:e.jsx(Oe,{ref:T,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:()=>A("bwgpageTmpl03")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl03"),children:e.jsxs(Me,{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:()=>A("bwgpageTmpl04")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl04"),children:e.jsxs(Me,{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:()=>A("bwgpageTmpl05")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl05"),children:e.jsxs(Me,{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:k,className:"bwg-btn",onClick:()=>{E(!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(Me,{children:e.jsx(be,{style:{height:"300px"},children:e.jsx(Oe,{ref:j,gridColumns:pr})})})})})]})})})})]})]}),e.jsx(s.Tour,{open:O,onClose:()=>_(!1),steps:K}),e.jsx(s.Tour,{open:N,onClose:()=>D(!1),steps:Z}),e.jsx(s.Tour,{open:F,onClose:()=>U(!1),steps:q}),e.jsx(J0,{visible:i,onCancel:ee,onOk:X}),e.jsx(ev,{visible:l,onCancel:oe,onOk:z}),e.jsx(Xr,{title:"드로어 예제",width:600,open:v,onClose:()=>{E(!1),U(!1)},placement:"right",zIndex:1500,children:e.jsxs(Me,{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}],q=[{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:()=>k.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(ke,{title:e.jsx("div",{children:"개요"})})}),e.jsx("div",{id:"nav-container",style:{padding:"10px"},children:e.jsx(Qt,{id:"readmeBtn",onClick:()=>{P("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:()=>{P("bwgpageTmpl01Btn"),I("bwgpageTmpl01")},isActive:n==="bwgpageTmpl01",children:"검색+그리드"}),e.jsx(Qt,{id:"bwgpageTmpl02Btn",onClick:()=>{P("bwgpageTmpl02Btn"),I("bwgpageTmpl02")},isActive:n==="bwgpageTmpl02",children:"검색+그리드(좌)+상세(우)"}),e.jsx(Qt,{id:"bwgpageTmpl03Btn",onClick:()=>{P("bwgpageTmpl03Btn"),I("bwgpageTmpl03")},isActive:n==="bwgpageTmpl03",children:"검색+그리드(상)+상세(하)"}),e.jsx(Qt,{id:"bwgpageTmpl04Btn",onClick:()=>{P("bwgpageTmpl04Btn"),I("bwgpageTmpl04")},isActive:n==="bwgpageTmpl04",children:"검색+그리드(좌)+그리드(우)"}),e.jsx(Qt,{id:"bwgpageTmpl05Btn",onClick:()=>{P("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:()=>{P("buttonsBtn"),I("application"),_(!0)},isActive:n==="buttons",children:"공통버튼 활용하기"}),e.jsx(Qt,{id:"popupBtn",onClick:()=>{P("popupBtn"),I("application"),D(!0)},isActive:n==="popup",children:"팝업 활용하기"}),e.jsx(Qt,{id:"drawerBtn",onClick:()=>{P("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:()=>H("bwgpageTmpl01"),onCopyCode:()=>A("bwgpageTmpl01")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl01"),children:e.jsx(Me,{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:()=>H("bwgpageTmpl02"),onAddPermissionButton:()=>{console.log("템플릿02 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl02")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl02"),children:e.jsxs(Me,{children:[e.jsx(be,{className:"w50 mr20",style:{height:"300px"},children:e.jsx(Oe,{ref:T,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:()=>H("bwgpageTmpl03"),onAddPermissionButton:()=>{console.log("템플릿03 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl03")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl03"),children:e.jsxs(Me,{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:()=>H("bwgpageTmpl04"),onAddPermissionButton:()=>{console.log("템플릿04 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl04")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl04"),children:e.jsxs(Me,{children:[e.jsx(be,{className:"w50 mr20",style:{height:"300px"},children:e.jsx(Oe,{ref:j,gridColumns:pr})}),e.jsx(be,{className:"w50",style:{height:"300px"},children:e.jsx(Oe,{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:()=>H("bwgpageTmpl05"),onAddPermissionButton:()=>{console.log("템플릿05 - 권한버튼 추가")},onCopyCode:()=>A("bwgpageTmpl05")})]}),e.jsx(ht,{searchBox:Y("bwgpageTmpl05"),children:e.jsxs(Me,{type:"vertical",children:[e.jsx(be,{style:{height:"300px"},className:"mb20",children:e.jsx(Oe,{ref:v,gridColumns:pr})}),e.jsx(be,{style:{height:"300px"},children:e.jsx(Oe,{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:k,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:b,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(Me,{children:e.jsx(be,{style:{height:"300px"},children:e.jsx(Oe,{ref:w,gridColumns:pr})})})})})]})})})})]})]}),e.jsx(s.Tour,{open:N,onClose:()=>_(!1),steps:K}),e.jsx(s.Tour,{open:O,onClose:()=>D(!1),steps:Z}),e.jsx(s.Tour,{open:V,onClose:()=>U(!1),steps:q}),e.jsx(J0,{visible:i,onCancel:ee,onOk:X}),e.jsx(ev,{visible:l,onCancel:oe,onOk:z}),e.jsx(Xr,{title:"드로어 예제",width:600,open:E,onClose:()=>{S(!1),U(!1)},placement:"right",zIndex:1500,children:e.jsxs(Me,{type:"vertical",children:[e.jsxs(s.Card,{className:"w100 mb20",children:[e.jsx(ke,{title:"예제 코드 : 컴포넌트 안에 입력하세요."}),e.jsx(jo,{importText:"const [drawerOpen, setDrawerOpen] = useState<boolean>(false);"})]}),e.jsxs(s.Card,{className:"w100",children:[e.jsx(ke,{title:"예제 코드 : BwgView 안에 입력하세요."}),e.jsx(jo,{importText:`<BwgDrawer
|
|
304
304
|
title="드로어 예제"
|
|
305
305
|
open={drawerOpen}
|
|
306
306
|
onClose={() => {
|
|
@@ -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(()=>{T.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 w=1024,P=["Bytes","KB","MB","GB","TB"],I=Math.floor(Math.log(j)/Math.log(w));return parseFloat((j/Math.pow(w,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 w=1024,P=["Bytes","KB","MB","GB","TB"],I=Math.floor(Math.log(j)/Math.log(w));return parseFloat((j/Math.pow(w,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(w=>{o.current?.addAllData(w.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)})}},T={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:()=>{T.search()}},{id:"download",label:"다운로드",onClick:()=>{T.download()}}]},children:e.jsxs(Me,{type:"horizontal",children:[e.jsxs(be,{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:()=>T.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(ke,{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(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=y=>{y.key==="Enter"&&h()},x=()=>{console.log("selectedRows:",c),c.length>0?n?.(c[0]):n?.({})},T=()=>{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,w)=>{if(w>=0){const P=l.current?.vw?.getItemIndex(w),I=l.current?.vw?.getValues(P||0);d([I])}},onCellDblClicked:(y,j)=>{const w=j.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:T,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(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(w,P,I){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=()=>{S.SCMMENU00104()},f=j=>{j.key==="Enter"&&h()},x=()=>{a.current?.setFormData({sysCd:"",appCd:"",keyword:""})},T=()=>{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(w=>{console.log("response.menus:",w.sub),l.current?.addAllData(w.sub,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(w=>{console.error("오류:",w)})}}),[]),y=u.useMemo(()=>({onCurrentRowChanged:(j,w,P)=>{if(P>=0){const I=l.current?.vw?.getItemIndex(P),C=l?.current?.vw?.getValues(I||0);d([C])}},onCellDblClicked:(j,w)=>{const P=w.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:T,onCancel:g,children:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsx(Vn,{border:!0,header:{title:"메뉴 선택",buttons:[e.jsx(H.BwgButton,{onClick:()=>S.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:S.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(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),[T,g]=u.useState(!1),[S,y]=u.useState({}),[j,w]=u.useState(!1),[P,I]=u.useState({});u.useEffect(()=>{const O=n.getFieldValue("sysCd"),_=n.getFieldValue("appCd"),N=n.getFieldValue("menuGbCd"),D=n.getFieldValue("deftMenuNo");i(O??null),l(_??null),h(N??"CMPRGRP"),x(D??!0),O&&Lr[O]?d(Lr[O]):d([])},[n]);const C=O=>{i(O),O&&Lr[O]?d(Lr[O]):d([]),n.resetFields(["appCd","scrnId","scrnNm","menuPrntId","menuPrntNm"])},m=O=>{x(O),O&&n.setFieldsValue({menuNo:""})},R=O=>{O&&n.setFieldsValue({menuPrntId:O.menuId,menuPrntNm:O.menuNm}),g(!1),y({})},k=O=>{O&&n.setFieldsValue({scrnId:O.prgrId,scrnNm:O.prgrNm}),w(!1),I({})};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:O=>{h(O.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),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(H.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(H.BwgFormItem,{name:"menuNo",label:"메뉴번호",children:e.jsx(s.Input.OTP,{length:4,formatter:O=>O.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:O=>m(O.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:j,searchContext:P,onOk:k,onClose:()=>{w(!1),I({})}}),e.jsx(xu,{open:T,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(""),[T,g]=u.useState(-1),S=u.useCallback(k=>{h(!0),x(k)},[]),y=u.useCallback(()=>{h(!1),x("")},[]),j=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",...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 k=o.current?.getCurrentIndex();if(k!==void 0&&k>=0){const O=o.current?.vw?.getValues(k);n.current?.setFieldsValue(O)}}else n.current?.resetFields()},[f]),u.useEffect(()=>{setTimeout(()=>{o.current?.vw&&o.current.vw.setRowStyleCallback(function(O,_,N){const D=O.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=k=>{k&&Lr[k]?d([{label:"전체",value:""},...Lr[k]]):d([{label:"전체",value:""}]),l({appCd:""}),C.SCMMENU00101()},I=()=>{n.current?.validateFields().then(k=>{console.log("Form values:",k),(f==="NEW"||f==="EDIT")&&C.SCMMENU00102()}).catch(k=>{console.log("Validation failed:",k)})},C={SCMMENU00101:()=>{const k={crprCd:se.getCrprCd(),...a()};console.log("Search data:",k),se.callService("SCMMENU00101",k,{},t.appCd).then(O=>{o.current?.addAllData(O.menus,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(O=>{console.error("오류:",O)})},SCMMENU00102:()=>{const k={iudFlag:f==="EDIT"?"U":"I",crprCd:se.getCrprCd(),...n?.current?.getFieldsValue()};delete k.scrnNm,delete k.menuPrntNm,se.callService("SCMMENU00102",k,{},t.appCd).then(O=>{console.log("Save response:",O),O.result>0&&(y(),C.SCMMENU00101())}).catch(O=>{console.error("저장 오류:",O)})},SCMMENU00103:()=>{const k={},O=o.current?.vw?.getCheckedRows(!1),_=[];O?.forEach(N=>{const D=o.current?.dp?.getJsonRow(N);_.push({crprCd:D.crprCd,sysCd:D.sysCd,appCd:D.appCd,menuId:D.menuId,menuGbCd:D.menuGbCd})}),k.sub=_,se.callService("SCMMENU00103",k,{},t.appCd).then(N=>{console.log(N),N?.result>0&&C.SCMMENU00101()})}},m={search:()=>{C.SCMMENU00101()},new:()=>{S("NEW")},delete:()=>{const k=o.current?.vw?.getCheckedRows(!1);if(k?.length==0){se.showWarning("삭제할 행을 체크하세요");return}else{let O=0,_=0,N=0;k?.forEach(D=>{const F=o.current?.dp?.getValue(D,"menuGbCd");F==="CMPRGRM"?O++:F==="CMPRGRS"?_++:F==="CMPRGRP"&&N++}),s.Modal.confirm({title:"삭제 안내",content:e.jsxs(e.Fragment,{children:[O>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"blue",children:["메인메뉴: ",O,"개"]})}),_>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"green",children:["서브메뉴: ",_,"개"]})}),N>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"orange",children:["프로그램: ",N,"개"]})}),"를 삭제하시겠습니까?"]}),onOk:()=>{C.SCMMENU00103()},onCancel:()=>{}})}}},R=u.useMemo(()=>({onCurrentRowChanged:(k,O,_)=>{g(_)},onItemChecked:(k,O,_)=>{if(!k._isUpdatingChildren)try{k._isUpdatingChildren=!0;const N=(D,F)=>{const U=k.getChildren(D);U&&U.length>0&&U.forEach(v=>{k.isCheckedItem(v)!==F&&(k.checkItem(v,F),N(v,F))})};N(O,_)}finally{setTimeout(()=>{k._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(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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w65 mr20",children:[e.jsx(ke,{title:"메뉴 트리"}),e.jsx(Oe,{ref:o,type:"tree",gridColumns:w,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:T>=0&&e.jsx(H.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:k=>{console.log("Drawer afterOpenChange:",k)},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),[T,g]=u.useState([]),[S,y]=u.useState(""),[j,w]=u.useState(!1),[P,I]=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([]),y(""),w(!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}],[]),k={display:{},edit:{editable:!1},copy:{singleMode:!0},container:{state:!0,check:!0,checkAll:!0,indicator:!0}},O={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(),O.SCMPOPU00102()):(se.showDuplicateError("팝업코드"),o.current?.setFields([{name:"popuCd",errors:["이미 사용중인 팝업코드입니다."]}]))}).catch($=>{console.error("오류:",$),se.showError("저장 중 오류가 발생했습니다.")})}},_={formFinish:async()=>{try{const z=await o.current?.validateFields();if(T.length>0&&T.filter(Y=>!Y.btnId||Y.btnId.trim()==="").length>0){m("버튼ID가 입력되지 않은 버튼이 있습니다. 모든 버튼의 버튼ID를 입력해주세요.");return}m(""),O.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:T}})}catch(z){console.error("폼 유효성 검사 실패:",z)}},addButton:()=>{const z=T.length>0?Math.max(...T.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:()=>{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"}},$=T.length>0?Math.max(...T.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){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("검색 파라미터:",$),O.SCMPOPU00102($)}catch(z){console.error("SearchBox formData 접근 오류:",z),O.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)}}},F={previewPopup:_.previewPopup},U=[{title:"순서",key:"order",width:80,align:"center",render:(z,$)=>{const Y=T.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===T.length-1,onClick:()=>X($.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=C&ⅇreturn Y?e.jsx(s.Input,{value:z,status:oe?"error":void 0,onChange:ne=>{const fe=[...T],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===S?e.jsx(s.Input,{value:z,onChange:ee=>{const oe=[...T],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=[...T],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=[...T],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=[...T],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:E})})]}):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)},E=()=>{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 $})},X=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:",F),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:()=>{F.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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w60",children:[e.jsx(ke,{title:"팝업 목록",icons:{type:"antd"}}),e.jsx(Oe,{type:"nrml",gridColumns:R,gridOptions:k,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(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([]),y("")},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:T,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:j,onOk:_.applyDefaultButtons,onCancel:()=>w(!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,kr={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&&kr[d]?l(kr[d]):l([])},[n]);const c=d=>{i(d??null),d&&kr[d]?l(kr[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}=pt.useSearchBox(),[l,c]=u.useState([]),[d,p]=u.useState(!1),[h,f]=u.useState(""),[x,T]=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(kr).flat();c(R)}else m&&kr[m]?c(kr[m]):c([]);a({appCd:null}),w.search()},[a]),j=u.useCallback(()=>{P.SCMPRGR00102()},[h]),w={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)??[],k=[];R.forEach(O=>{const _=r.current?.dp?.getJsonRow(O);k.push({sysCd:_.sysCd,appCd:_.appCd,prgrId:_.prgrId})}),m.sub=k,se.callServiceBySysCd("SCMPRGR00103",m).then(O=>{O.result>0&&P.SCMPRGR00101()}).catch(O=>{console.error("오류:",O)})}},I={editForm:()=>{if((r.current?.getCurrentRow()??-1)<0){se.showWarning("행 선택 후 변경 가능합니다.");return}g("EDIT")}},C={onCurrentRowChanged(m,R,k){T(k)}};return e.jsxs(ht,{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:y}})}),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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w60 mr20",children:[e.jsx(ke,{title:"프로그램 목록",icons:{type:"antd"}}),e.jsx(Oe,{ref:r,gridColumns:pv,gridOptions:fv,gridEvents:C,bindRef:n})]}),e.jsx(be,{className:"w40",border:!0,children:e.jsx(Ut,{title:"프로그램 상세",titleChildren:e.jsx(e.Fragment,{children:x>=0&&e.jsx(H.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"}}],[]),T=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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w40",children:[e.jsxs(ke,{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(ke,{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(Me,{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:T,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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w50",children:[e.jsx(ke,{title:"국경일/공휴일 API"}),e.jsx(Oe,{ref:t,type:"nrml",gridColumns:i,gridOptions:l})]}),e.jsxs(be,{className:"w50",border:!0,children:[e.jsxs(ke,{title:"사업장 휴일",children:[e.jsx(H.BwgButton,{type:"primary",onClick:()=>{r.current?.dp?.addRow?.({iudFlag:"I"})},children:"추가"}),e.jsx(H.BwgButton,{type:"primary",onClick:()=>{r.current?.deleteGridData()},children:"삭제"}),e.jsx(H.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(Me,{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 En(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(En).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(En),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}),k=Array.isArray(R?.data)?R.data:Array.isArray(R?.deptList)?R.deptList:Array.isArray(R)?R:[],O=bv(k);p(O);const _=Cv(k);a(_);const N=O[0]?.deptCd||En(k.find(D=>En(D).deptLvl===1)||{}).deptCd||En(k[0]||{}).deptCd||"";c(N?[N]:[])}catch{s.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{f(!1)}},[t?.popupParams]);u.useEffect(()=>{x()},[x]);const T=u.useCallback((m,R)=>{for(const k of m){if(k.deptCd===R)return k;if(k.children){const O=T(k.children,R);if(O)return O}}return null},[]),g=u.useMemo(()=>{const m=l[0];return m?T(d,m):null},[l,d,T]),S=u.useMemo(()=>{const m=k=>k.map(O=>({title:O.deptNm,key:O.deptCd,meta:O,children:O.children?m(O.children):void 0}));return m(d)},[d]),y=u.useMemo(()=>{const m=n.trim().toLowerCase();if(!m)return S;const R=k=>k.map(O=>{const _=O.meta,N=(_?.deptNm||"").toLowerCase().includes(m)||(_?.deptCd||"").toLowerCase().includes(m),D=O.children?R(O.children):void 0;return N||D&&D.length?{...O,children:D}:null}).filter(Boolean);return R(S)},[S,n]),j=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 k=i.includes(R.key);a(O=>k?O.filter(_=>_!==R.key):[...O,R.key])},[i]),I=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(Me,{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(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:y,expandedKeys:i,selectedKeys:l,onSelect:j,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: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,T]=u.useState(!1),[g,S]=u.useState([]),[y,j]=u.useState(!1),w=u.useCallback(async v=>{try{j(!0);const E=await se.callService("SCMUTIL00103",{...t?.popupParams,...v}),B=Array.isArray(E?.data)?E.data:Array.isArray(E?.deptList)?E.deptList:Array.isArray(E)?E:[],L=Sv(B);S(L);const V=Rv(B);c(V);const X=L[0]?.deptCd||In(B.find(z=>In(z).deptLvl===1)||{}).deptCd||In(B[0]||{}).deptCd||"";p(X?[X]:[])}catch{s.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{j(!1)}},[t?.popupParams]);u.useEffect(()=>{w()},[w]);const P=u.useCallback((v,E)=>{for(const B of v){if(B.deptCd===E)return B;if(B.children){const L=P(B.children,E);if(L)return L}}return null},[g]),I=u.useMemo(()=>h.map(v=>{const E=P(g,v);if(!E)return null;const{children:B,...L}=E;return L}).filter(Boolean),[h,g,P]),C=u.useMemo(()=>{const v=E=>E.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 C;const E=B=>B.map(L=>{const V=L.meta,X=(V?.deptNm||"").toLowerCase().includes(v)||(V?.deptCd||"").toLowerCase().includes(v),z=L.children?E(L.children):void 0;return X||z&&z.length>0?{...L,children:z}:null}).filter(Boolean);return E(C)},[C,n]),R=u.useCallback(v=>{const E=[],B=L=>{for(const V of L)if(V.deptCd===v&&V.children){const X=z=>{for(const $ of z)E.push($.deptCd),$.children&&X($.children)};X(V.children)}else V.children&&B(V.children)};return B(g),E},[g]),k=u.useCallback((v,E)=>{let B=Array.isArray(v)?v:v?.checked??[];if(x&&E?.node?.key){const L=E.node.key,V=R(L);if(E.checked){const X=new Set(B);for(const z of V)X.add(z);B=Array.from(X)}else{const X=new Set([L,...V]);B=B.filter(z=>!X.has(z))}}f(B)},[x,R]),O=u.useCallback(v=>{const E=v.map(String);if(p(E),E.length>0){const B=E[0],L=(X,z)=>{for(const $ of X){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]),_=u.useCallback(v=>c(v.map(String)),[]),N=u.useCallback((v,E)=>{if(v.stopPropagation(),E.children&&E.children.length>0){const B=l.includes(E.key);c(L=>B?L.filter(V=>V!==E.key):[...L,E.key])}},[l]),D=u.useCallback(v=>{f(E=>E.filter(B=>B!==v))},[]),F=u.useCallback(()=>{f([])},[]),U={confirm:()=>{if(h.length===0){s.message.error("부서를 선택해주세요.");return}const E=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(E):t?.config?.callback&&t.config.callback(JSON.stringify(E)),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(Me,{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(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: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=>T(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:O,onExpand:_,onCheck:k,onDoubleClick:N,style:{overflow:"hidden"},titleRender:v=>{const E=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:E.deptNm}),e.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:E.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:F,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))})]})})]})})})})},kv=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,T]=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 F=j(D);console.log("🌳 구성된 조직도 트리:",F),T(F);const U=D.filter(v=>v.deptLvl<=2).map(v=>v.deptCd);if(c(U),F.length>0){const v=F[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((E,B)=>E.deptLvl-B.deptLvl||E.orgSortOrd-B.orgSortOrd||E.deptCd.localeCompare(B.deptCd)),F=new Map;for(const E of D)F.set(E.deptCd,{...E,children:[]});const U=[];for(const E of D){const B=F.get(E.deptCd),L=E.hrnkDeptCd;L&&F.has(L)?F.get(L).children.push(B):U.push(B)}const v=E=>{if(!E.children||E.children.length===0){delete E.children;return}E.children.forEach(v)};return U.forEach(v),U},[]);u.useEffect(()=>{y()},[y]);const w=u.useMemo(()=>{const N=U=>{let v=[];return U.forEach(E=>{E.employees&&(v=v.concat(E.employees)),E.children&&(v=v.concat(N(E.children)))}),v},D=N(x),F=D.filter((U,v,E)=>v===E.findIndex(B=>B.empNo===U.empNo));return console.log(`👥 전체 사원 수: ${D.length}, 중복 제거 후: ${F.length}`),F},[x]),P=u.useMemo(()=>{const N=D=>D.map(F=>({title:F.deptNm,key:F.deptCd,children:F.children?N(F.children):void 0,isLeaf:!F.children||F.children.length===0}));return N(x)},[x]),I=u.useMemo(()=>{if(!n.trim())return P;const N=D=>D.map(F=>{const U=F.title.toLowerCase().includes(n.toLowerCase()),v=F.children?N(F.children):void 0;return U||v&&v.length>0?{...F,children:v}:null}).filter(Boolean);return N(P)},[P,n]),C=u.useMemo(()=>{if(!n.trim()){const N=E=>{let B=[];return E.forEach(L=>{L.employees&&(B=B.concat(L.employees)),L.children&&(B=B.concat(N(L.children)))}),B},D=(E,B)=>{for(const L of E){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[]},F=d[0];if(!F)return[];const U=D(x,F),v=U.filter((E,B,L)=>B===L.findIndex(V=>V.empNo===E.empNo));return console.log(`🔍 선택된 부서: ${F}, 반환된 사원 수: ${U.length}, 중복 제거 후: ${v.length}`),v}return w.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,w,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 F=D[0],U=(E,B)=>{for(const L of E){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,F);v&&a(v)}},[x]),k=u.useCallback(N=>{c(N.map(String))},[]),O=u.useCallback((N,D)=>{if(N.stopPropagation(),D.children&&D.children.length>0){const F=l.includes(D.key);c(F?U=>U.filter(v=>v!==D.key):U=>[...U,D.key])}},[l]),_={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:()=>{_.confirm()}}],popupEvent:_,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Me,{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(ke,{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:k,onDoubleClick:O,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:[C.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}`)),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,T]=u.useState(!1),[g,S]=u.useState({}),y=u.useCallback(async()=>{try{T(!0);const v=await se.callService("SCMUTIL00105",{...t?.popupParams});console.log("📊 조직도 API 응답:",v);const E=Array.isArray(v?.data)?v.data:Array.isArray(v?.orgnList)?v.orgnList:Array.isArray(v)?v:[];if(E.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const B=j(E);console.log("🌳 구성된 조직도 트리:",B),f(B);const L=E.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{T(!1)}},[t?.popupParams]),j=u.useCallback(v=>{const E=[...v].sort((X,z)=>X.deptLvl-z.deptLvl||X.orgSortOrd-z.orgSortOrd||X.deptCd.localeCompare(z.deptCd)),B=new Map;for(const X of E)B.set(X.deptCd,{...X,children:[]});const L=[];for(const X of E){const z=B.get(X.deptCd),$=X.hrnkDeptCd;$&&B.has($)?B.get($).children.push(z):L.push(z)}const V=X=>{if(!X.children||X.children.length===0){delete X.children;return}X.children.forEach(V)};return L.forEach(V),L},[]);u.useEffect(()=>{y()},[y]);const w=u.useMemo(()=>{const v=L=>{let V=[];return L.forEach(X=>{X.employees&&(V=V.concat(X.employees)),X.children&&(V=V.concat(v(X.children)))}),V},E=v(h),B=E.filter((L,V,X)=>V===X.findIndex(z=>z.empNo===L.empNo));return console.log(`👥 전체 사원 수: ${E.length}, 중복 제거 후: ${B.length}`),B},[h]),P=u.useMemo(()=>{const v=E=>E.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=E=>E.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]),C=u.useMemo(()=>{if(!n.trim()){const v=X=>{let z=[];return X.forEach($=>{$.employees&&(z=z.concat($.employees)),$.children&&(z=z.concat(v($.children)))}),z},E=(X,z)=>{for(const $ of X){if($.deptCd===z){let Y=[...$.employees||[]];return $.children&&(Y=Y.concat(v($.children))),Y}if($.children){const Y=E($.children,z);if(Y.length>0)return Y}}return[]},B=d[0];if(!B)return[];const L=E(h,B),V=L.filter((X,z,$)=>z===$.findIndex(Y=>Y.empNo===X.empNo));return console.log(`🔍 선택된 부서: ${B}, 반환된 사원 수: ${L.length}, 중복 제거 후: ${V.length}`),V}return w.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,w,h]),m=u.useCallback(v=>{S(E=>{const B={...E};return B[v.empNo]?delete B[v.empNo]:B[v.empNo]=v,B})},[]),R=u.useCallback(v=>{S(E=>{const B={...E};return delete B[v],B})},[]),k=u.useCallback(()=>S({}),[]),O=u.useCallback(()=>{S(v=>{const E={...v};for(const B of C)E[B.empNo]=B;return E})},[C]),_=u.useCallback(()=>{S(v=>{const E={...v};for(const B of C)delete E[B.empNo];return E})},[C]),N=u.useCallback(v=>{const E=v.map(String);if(console.log(`🌳 트리 선택: ${E.join(", ")}`),p(E),E.length>0){const B=E[0],L=(X,z)=>{for(const $ of X){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))},[]),F=u.useCallback((v,E)=>{if(v.stopPropagation(),!E.children||!E.children.length)return;const B=l.includes(E.key);c(L=>B?L.filter(V=>V!==E.key):[...L,E.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 E=t?.config;E?.onSelect?E.onSelect(v):t?.config?.callback&&t.config.callback(JSON.stringify(v)),E?.onClose&&E.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(Me,{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(ke,{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:F,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:O,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(v=>{const E=!!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:E?"#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:E?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}`)}),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:k,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:"선택된 사용자가 없습니다."})]})]})})]})})})})},Ev=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,w,P=p)=>{const I=w.filter(C=>{if(P==="year"){const m=C.stndYmd.substring(0,6),R=j.format("YYYYMM");return m===R}else{const m=j.format("YYYYMMDD");return C.stndYmd===m}});l(I)},T=j=>{n(j),x(j,c,p)},g=(j,w)=>{i(j),h(w),y.SCMHLDY00101(w,j)};u.useEffect(()=>{y.SCMHLDY00101()},[]);const S=j=>{const w=c.filter(P=>{if(p==="year"){const I=P.stndYmd.substring(0,6),C=j.format("YYYYMM");return I===C}else{const I=j.format("YYYYMMDD");return P.stndYmd===I}});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,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,w=r)=>{try{let P;j==="year"?P=w.format("YYYY"):P=w.format("YYYYMM");const I=await se.callService("SCMHLDY00101",{crprCd:se.getUserInfo()?.crprCd||"",sysCd:__SYS_CD__,stndYmd:P});d(I.sub||[]),x(w,I.sub||[],j)}catch(P){console.error("휴일 데이터 로드 실패:",P),s.message.error("휴일 데이터를 불러오는데 실패했습니다.")}}};return e.jsx(Qr,{popup:t,children:e.jsx(Me,{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:T,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,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(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})})]})},w))}):e.jsx(s.Empty,{description:"선택된 날짜에 등록된 휴일이 없습니다.",style:{marginTop:"100px"}})})})})]})})})})};exports.ButtonAccessController=Xi;exports.BwgButtonGroup=Qi;exports.BwgCmptArea=Eu;exports.BwgCol=Iu;exports.BwgComponentGuideM01=Z0;exports.BwgConfigProvider=sc;exports.BwgDetail=Hu;exports.BwgDeveloperGuideM01=tv;exports.BwgDrawer=Xr;exports.BwgEditor=Uu;exports.BwgGrid=Oe;exports.BwgInfoArea=Ut;exports.BwgPagination=Ms;exports.BwgPopup=Qr;exports.BwgReactGuideM01=sv;exports.BwgRow=tp;exports.BwgSpace=Vo;exports.BwgTable=rp;exports.BwgTabs=xt;exports.BwgTitleBox=ke;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=Me;exports.GlobalConfigProvider=H0;exports.QuickServiceToggle=U0;exports.SSOHandler=G0;exports.SearchBox=Vn;exports.SearchDepartmentP01=vu;exports.SearchDepartmentP01$1=wv;exports.SearchDepartmentP02=yu;exports.SearchDepartmentP02$1=kv;exports.SearchOrganizationP01=bu;exports.SearchOrganizationP01$1=Tv;exports.SearchOrganizationP02=Cu;exports.SearchOrganizationP02$1=Ev;exports.commonjsGlobal=ku;exports.createBwgGridRenderer=Ns;exports.getAugmentedNamespace=Tu;exports.getDefaultExportFromCjs=Fn;
|
|
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(()=>{T.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,j,v)=>{if(!v)return"0 Bytes";const w=Number(v);if(isNaN(w)||w===0)return"0 Bytes";const C=1024,B=["Bytes","KB","MB","GB","TB"],P=Math.floor(Math.log(w)/Math.log(C));return parseFloat((w/Math.pow(C,P)).toFixed(2))+" "+B[P]}},{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 w=Number(v);if(isNaN(w)||w===0)return"0 Bytes";const C=1024,B=["Bytes","KB","MB","GB","TB"],P=Math.floor(Math.log(w)/Math.log(C));return parseFloat((w/Math.pow(C,P)).toFixed(2))+" "+B[P]}},{fieldName:"filePath",header:{text:"파일 경로"},width:100,styleName:"right"}],[]),h={onCurrentRowChanged(g,j,v){if(v<0)return;let w=g.getDataSource().getJsonRow(v);a(w.fileGrpKey),w.mltpYn=="Y"?se.callService("SCMFILE00106",{crprCd:se.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:w.fileGrpKey,fileKey:w.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)})}},T={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:()=>{T.search()}},{id:"download",label:"다운로드",onClick:()=>{T.download()}}]},children:e.jsxs(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w60",children:[e.jsx(ke,{title:"파일 목록",children:e.jsx("div",{style:{float:"right"},children:e.jsx(s.Space,{children:e.jsx(F.BwgButton,{onClick:()=>T.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(ke,{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=v=>{v.key==="Enter"&&h()},x=()=>{console.log("selectedRows:",c),c.length>0?n?.(c[0]):n?.({})},T=()=>{i.onCancel?.(),o?.()},g=u.useMemo(()=>({SCMPRGR00101:()=>{const v={...a.current?.getFormData()};se.callService("SCMPRGR00101",v).then(w=>{console.log("response.programs:",w.data),l.current?.addAllData(w.data||[])}).catch(w=>{console.error("오류:",w)})}}),[]),j={onCurrentRowChanged:(v,w,C)=>{if(C>=0){const B=l.current?.vw?.getItemIndex(C),P=l.current?.vw?.getValues(B||0);d([P])}},onCellDblClicked:(v,w)=>{const C=w.itemIndex;if(C>=0){const B=l.current?.vw?.getValues(C);console.log(B),d([B]),n?.(B)}}};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:T,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: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(C,B,P){const b=C.getValue(B.index,"menuGbCd");if(b==="CMPRGRM")return{style:{background:"#e8f0ff"}};if(b==="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=w=>{w.key==="Enter"&&h()},x=()=>{a.current?.setFormData({sysCd:"",appCd:"",keyword:""})},T=()=>{console.log("selectedRows:",c),c.length>0?n?.(c[0]):n?.({})},g=()=>{i.onCancel?.(),o?.()},j=u.useMemo(()=>({SCMMENU00104:()=>{const w={crprCd:se.getCrprCd(),...a.current?.getFormData()};se.callService("SCMMENU00104",w).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)})}}),[]),v=u.useMemo(()=>({onCurrentRowChanged:(w,C,B)=>{if(B>=0){const P=l.current?.vw?.getItemIndex(B),b=l?.current?.vw?.getValues(P||0);d([b])}},onCellDblClicked:(w,C)=>{const B=C.itemIndex;if(B>=0){const P=l.current?.vw?.getValues(B);console.log(P),d([P]),n?.(P)}}}),[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:T,onCancel:g,children:e.jsxs("div",{style:{padding:"8px 0"},children:[e.jsx(Vn,{border:!0,header:{title:"메뉴 선택",buttons:[e.jsx(F.BwgButton,{onClick:()=>j.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:j.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: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),[T,g]=u.useState(!1),[j,v]=u.useState({}),[w,C]=u.useState(!1),[B,P]=u.useState({});u.useEffect(()=>{const N=n.getFieldValue("sysCd"),_=n.getFieldValue("appCd"),O=n.getFieldValue("menuGbCd"),D=n.getFieldValue("deftMenuNo");i(N??null),l(_??null),h(O??"CMPRGRP"),x(D??!0),N&&Lr[N]?d(Lr[N]):d([])},[n]);const b=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({})},k=N=>{N&&n.setFieldsValue({scrnId:N.prgrId,scrnNm:N.prgrNm}),C(!1),P({})};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:N=>{h(N.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:b,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),P({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),v({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: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(F.BwgCheck,{itemProps:{name:"isAutoMenuNo",label:"자동채번"},inputProps:{defaultChecked:!0,onChange:N=>m(N.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:w,searchContext:B,onOk:k,onClose:()=>{C(!1),P({})}}),e.jsx(xu,{open:T,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}=pt.useSearchBox(),[c,d]=u.useState([]),[p,h]=u.useState(!1),[f,x]=u.useState(""),[T,g]=u.useState(-1),j=u.useCallback(k=>{h(!0),x(k)},[]),v=u.useCallback(()=>{h(!1),x("")},[]),w=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",...w},{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}],[w]);u.useEffect(()=>{if(f==="NEW")n.current?.setFieldsValue({useYn:"Y",deftMenuNo:!0,menuGbCd:"CMPRGRP"});else if(f==="EDIT"){const k=o.current?.getCurrentIndex();if(k!==void 0&&k>=0){const N=o.current?.vw?.getValues(k);n.current?.setFieldsValue(N)}}else n.current?.resetFields()},[f]),u.useEffect(()=>{setTimeout(()=>{o.current?.vw&&o.current.vw.setRowStyleCallback(function(N,_,O){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 B=k=>{k&&Lr[k]?d([{label:"전체",value:""},...Lr[k]]):d([{label:"전체",value:""}]),l({appCd:""}),b.SCMMENU00101()},P=()=>{n.current?.validateFields().then(k=>{console.log("Form values:",k),(f==="NEW"||f==="EDIT")&&b.SCMMENU00102()}).catch(k=>{console.log("Validation failed:",k)})},b={SCMMENU00101:()=>{const k={crprCd:se.getCrprCd(),...a()};console.log("Search data:",k),se.callService("SCMMENU00101",k,{},t.appCd).then(N=>{o.current?.addAllData(N.menus,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(N=>{console.error("오류:",N)})},SCMMENU00102:()=>{const k={iudFlag:f==="EDIT"?"U":"I",crprCd:se.getCrprCd(),...n?.current?.getFieldsValue()};delete k.scrnNm,delete k.menuPrntNm,se.callService("SCMMENU00102",k,{},t.appCd).then(N=>{console.log("Save response:",N),N.result>0&&(v(),b.SCMMENU00101())}).catch(N=>{console.error("저장 오류:",N)})},SCMMENU00103:()=>{const k={},N=o.current?.vw?.getCheckedRows(!1),_=[];N?.forEach(O=>{const D=o.current?.dp?.getJsonRow(O);_.push({crprCd:D.crprCd,sysCd:D.sysCd,appCd:D.appCd,menuId:D.menuId,menuGbCd:D.menuGbCd})}),k.sub=_,se.callService("SCMMENU00103",k,{},t.appCd).then(O=>{console.log(O),O?.result>0&&b.SCMMENU00101()})}},m={search:()=>{b.SCMMENU00101()},new:()=>{j("NEW")},delete:()=>{const k=o.current?.vw?.getCheckedRows(!1);if(k?.length==0){se.showWarning("삭제할 행을 체크하세요");return}else{let N=0,_=0,O=0;k?.forEach(D=>{const V=o.current?.dp?.getValue(D,"menuGbCd");V==="CMPRGRM"?N++:V==="CMPRGRS"?_++:V==="CMPRGRP"&&O++}),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:["서브메뉴: ",_,"개"]})}),O>0&&e.jsx(e.Fragment,{children:e.jsxs(s.Tag,{color:"orange",children:["프로그램: ",O,"개"]})}),"를 삭제하시겠습니까?"]}),onOk:()=>{b.SCMMENU00103()},onCancel:()=>{}})}}},R=u.useMemo(()=>({onCurrentRowChanged:(k,N,_)=>{g(_)},onItemChecked:(k,N,_)=>{if(!k._isUpdatingChildren)try{k._isUpdatingChildren=!0;const O=(D,V)=>{const U=k.getChildren(D);U&&U.length>0&&U.forEach(E=>{k.isCheckedItem(E)!==V&&(k.checkItem(E,V),O(E,V))})};O(N,_)}finally{setTimeout(()=>{k._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:B}})}),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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w65 mr20",children:[e.jsx(ke,{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:T>=0&&e.jsx(F.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:k=>{console.log("Drawer afterOpenChange:",k)},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:P,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),[T,g]=u.useState([]),[j,v]=u.useState(""),[w,C]=u.useState(!1),[B,P]=u.useState(["조회","닫기"]),[b,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(""),C(!1),P(["조회","닫기"]),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}],[]),k={display:{},edit:{editable:!1},copy:{singleMode:!0},container:{state:!0,check:!0,checkAll:!0,indicator:!0}},N={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([]),v(""),o.current?.resetFields(),N.SCMPOPU00102()):(se.showDuplicateError("팝업코드"),o.current?.setFields([{name:"popuCd",errors:["이미 사용중인 팝업코드입니다."]}]))}).catch($=>{console.error("오류:",$),se.showError("저장 중 오류가 발생했습니다.")})}},_={formFinish:async()=>{try{const z=await o.current?.validateFields();if(T.length>0&&T.filter(Y=>!Y.btnId||Y.btnId.trim()==="").length>0){m("버튼ID가 입력되지 않은 버튼이 있습니다. 모든 버튼의 버튼ID를 입력해주세요.");return}m(""),N.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:T}})}catch(z){console.error("폼 유효성 검사 실패:",z)}},addButton:()=>{const z=T.length>0?Math.max(...T.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:()=>{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"}},$=T.length>0?Math.max(...T.map(ee=>ee.btnSq||0)):0,Y=B.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("미리보기 팝업을 열 수 없습니다.")}}},O={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("검색 파라미터:",$),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=T.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:()=>H($.key)}),e.jsx(s.Button,{type:"link",size:"small",icon:e.jsx(Q.DownOutlined,{}),disabled:Y===T.length-1,onClick:()=>X($.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=b&ⅇreturn Y?e.jsx(s.Input,{value:z,status:oe?"error":void 0,onChange:ne=>{const fe=[...T],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=[...T],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=[...T],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=[...T],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=[...T],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:()=>E($)})}),e.jsx(s.Tooltip,{title:"삭제",children:e.jsx(s.Button,{type:"link",size:"small",danger:!0,icon:e.jsx(Q.RestOutlined,{}),onClick:()=>L($.key)})})]})}],E=z=>{v(z.key)},S=()=>{v("")},I=z=>{v("")},L=z=>{g($=>$.filter(Y=>Y.key!==z))},H=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 $})},X=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(ht,{buttons:{grant:[{id:"search",label:"조회",onClick:D.search},{id:"new",label:"신규",onClick:D.new},{id:"update",label:"변경",onClick:D.update}],custom:[{id:"preview",label:"미리보기",onClick:V.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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w60",children:[e.jsx(ke,{title:"팝업 목록",icons:{type:"antd"}}),e.jsx(Oe,{type:"nrml",gridColumns:R,gridOptions:k,gridEvents:O,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([]),v("")},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(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:T,pagination:!1,size:"small",bordered:!0,scroll:{x:600},rowKey:"key"}),b&&e.jsxs("div",{style:{marginTop:"8px",padding:"8px 12px",backgroundColor:"#fff2f0",border:"1px solid #ffccc7",borderRadius:"6px",color:"#cf1322",fontSize:"14px"},children:["⚠️ ",b]}),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:w,onOk:_.applyDefaultButtons,onCancel:()=>C(!1),okText:"적용",cancelText:"취소",children:[e.jsx("p",{children:"추가할 기본 버튼을 선택하세요:"}),e.jsx(s.Checkbox.Group,{value:B,onChange:z=>P(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,kr={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&&kr[d]?l(kr[d]):l([])},[n]);const c=d=>{i(d??null),d&&kr[d]?l(kr[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,T]=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(kr).flat();c(R)}else m&&kr[m]?c(kr[m]):c([]);a({appCd:null}),C.search()},[a]),w=u.useCallback(()=>{B.SCMPRGR00102()},[h]),C={search:()=>{B.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:()=>{B.SCMPRGR00103()}})}},B={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?(j(),B.SCMPRGR00101()):se.showError(R.message)}).catch(R=>{console.error("오류:",R)})},SCMPRGR00103:()=>{const m={},R=r.current?.vw?.getCheckedRows(!1)??[],k=[];R.forEach(N=>{const _=r.current?.dp?.getJsonRow(N);k.push({sysCd:_.sysCd,appCd:_.appCd,prgrId:_.prgrId})}),m.sub=k,se.callServiceBySysCd("SCMPRGR00103",m).then(N=>{N.result>0&&B.SCMPRGR00101()}).catch(N=>{console.error("오류:",N)})}},P={editForm:()=>{if((r.current?.getCurrentRow()??-1)<0){se.showWarning("행 선택 후 변경 가능합니다.");return}g("EDIT")}},b={onCurrentRowChanged(m,R,k){T(k)}};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:v}})}),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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w60 mr20",children:[e.jsx(ke,{title:"프로그램 목록",icons:{type:"antd"}}),e.jsx(Oe,{ref:r,gridColumns:pv,gridOptions:fv,gridEvents:b,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:P.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:w,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"}}],[]),T=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=w=>{n(w)},v=w=>{i(w),w==="group"&&l(null)};return u.useEffect(()=>{r&&se.callService("SCMSYST00101",{crprCd:se.getCrprCd(),applCd:r},{},t.appCd).then(w=>{console.log({SCMSYST00101:w.data}),c.current?.addAllData(w.data)})},[r]),u.useEffect(()=>{r&&se.callService("SCMCODE00101",{crprCd:se.getCrprCd(),srchGb:o==="group"?"group":"detail"},{},t.appCd).then(w=>{console.log({SCMCODE00101:w.data}),o==="group"?d.current?.addAllData(w.data):p.current?.addAllData(w.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:w=>e.jsx(s.List.Item,{children:e.jsx(s.Card,{hoverable:!0,style:{height:"100%",cursor:"pointer",border:r===w.id?"2px solid #1890ff":"1px solid #f0f0f0",backgroundColor:r===w.id?"#f0f8ff":"#ffffff",boxShadow:r===w.id?"0 4px 12px rgba(24, 144, 255, 0.15)":"0 2px 8px rgba(0, 0, 0, 0.06)",position:"relative",zIndex:r===w.id?1:0},onClick:()=>j(w.id),actions:[e.jsx(s.Tag,{color:w.color,children:w.status==="active"?"활성":"비활성"},"status")],children:e.jsx(s.Card.Meta,{avatar:e.jsx("div",{style:{fontSize:"24px",color:w.color==="blue"?"#1890ff":w.color==="green"?"#52c41a":"#fa8c16"},children:w.icon}),title:e.jsxs(s.Space,{children:[e.jsx("span",{style:{fontWeight:"bold",color:r===w.id?"#1890ff":"#333"},children:w.name}),e.jsx(s.Tag,{color:w.color,children:w.id})]}),description:e.jsx("div",{style:{marginTop:"8px"},children:e.jsx("p",{style:{color:r===w.id?"#1890ff":"#666",margin:0},children:w.description})})})})})})}),e.jsx(be,{border:!0,children:e.jsxs(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w40",children:[e.jsxs(ke,{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(ke,{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:v,items:[{key:"group",label:"그룹코드",icon:e.jsx(Q.GroupOutlined,{}),children:e.jsx(Me,{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:T,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(Me,{type:"horizontal",children:[e.jsxs(be,{className:"w50",children:[e.jsx(ke,{title:"국경일/공휴일 API"}),e.jsx(Oe,{ref:t,type:"nrml",gridColumns:i,gridOptions:l})]}),e.jsxs(be,{className:"w50",border:!0,children:[e.jsxs(ke,{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(Me,{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 En(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(En).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(En),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}),k=Array.isArray(R?.data)?R.data:Array.isArray(R?.deptList)?R.deptList:Array.isArray(R)?R:[],N=bv(k);p(N);const _=Cv(k);a(_);const O=N[0]?.deptCd||En(k.find(D=>En(D).deptLvl===1)||{}).deptCd||En(k[0]||{}).deptCd||"";c(O?[O]:[])}catch{s.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{f(!1)}},[t?.popupParams]);u.useEffect(()=>{x()},[x]);const T=u.useCallback((m,R)=>{for(const k of m){if(k.deptCd===R)return k;if(k.children){const N=T(k.children,R);if(N)return N}}return null},[]),g=u.useMemo(()=>{const m=l[0];return m?T(d,m):null},[l,d,T]),j=u.useMemo(()=>{const m=k=>k.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=k=>k.map(N=>{const _=N.meta,O=(_?.deptNm||"").toLowerCase().includes(m)||(_?.deptCd||"").toLowerCase().includes(m),D=N.children?R(N.children):void 0;return O||D&&D.length?{...N,children:D}:null}).filter(Boolean);return R(j)},[j,n]),w=u.useCallback(m=>{c(m.slice(0,1).map(String))},[]),C=u.useCallback(m=>a(m.map(String)),[]),B=u.useCallback((m,R)=>{if(m.stopPropagation(),!R.children||R.children.length===0)return;const k=i.includes(R.key);a(N=>k?N.filter(_=>_!==R.key):[...N,R.key])},[i]),P=u.useCallback(()=>c([]),[]),b={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:()=>{b.confirm()}}],popupEvent:b,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Me,{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(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:w,onExpand:C,onDoubleClick:B,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:P,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,T]=u.useState(!1),[g,j]=u.useState([]),[v,w]=u.useState(!1),C=u.useCallback(async E=>{try{w(!0);const S=await se.callService("SCMUTIL00103",{...t?.popupParams,...E}),I=Array.isArray(S?.data)?S.data:Array.isArray(S?.deptList)?S.deptList:Array.isArray(S)?S:[],L=Sv(I);j(L);const H=Rv(I);c(H);const X=L[0]?.deptCd||In(I.find(z=>In(z).deptLvl===1)||{}).deptCd||In(I[0]||{}).deptCd||"";p(X?[X]:[])}catch{s.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{w(!1)}},[t?.popupParams]);u.useEffect(()=>{C()},[C]);const B=u.useCallback((E,S)=>{for(const I of E){if(I.deptCd===S)return I;if(I.children){const L=B(I.children,S);if(L)return L}}return null},[g]),P=u.useMemo(()=>h.map(E=>{const S=B(g,E);if(!S)return null;const{children:I,...L}=S;return L}).filter(Boolean),[h,g,B]),b=u.useMemo(()=>{const E=S=>S.map(I=>({title:I.deptNm,key:I.deptCd,meta:I,children:I.children?E(I.children):void 0,isLeaf:!I.children||I.children.length===0}));return E(g)},[g]),m=u.useMemo(()=>{const E=n.trim().toLowerCase();if(!E)return b;const S=I=>I.map(L=>{const H=L.meta,X=(H?.deptNm||"").toLowerCase().includes(E)||(H?.deptCd||"").toLowerCase().includes(E),z=L.children?S(L.children):void 0;return X||z&&z.length>0?{...L,children:z}:null}).filter(Boolean);return S(b)},[b,n]),R=u.useCallback(E=>{const S=[],I=L=>{for(const H of L)if(H.deptCd===E&&H.children){const X=z=>{for(const $ of z)S.push($.deptCd),$.children&&X($.children)};X(H.children)}else H.children&&I(H.children)};return I(g),S},[g]),k=u.useCallback((E,S)=>{let I=Array.isArray(E)?E:E?.checked??[];if(x&&S?.node?.key){const L=S.node.key,H=R(L);if(S.checked){const X=new Set(I);for(const z of H)X.add(z);I=Array.from(X)}else{const X=new Set([L,...H]);I=I.filter(z=>!X.has(z))}}f(I)},[x,R]),N=u.useCallback(E=>{const S=E.map(String);if(p(S),S.length>0){const I=S[0],L=(X,z)=>{for(const $ of X){if($.deptCd===z)return $.deptNm;if($.children){const Y=L($.children,z);if(Y)return Y}}return null},H=L(g,I);H&&a(H)}},[g]),_=u.useCallback(E=>c(E.map(String)),[]),O=u.useCallback((E,S)=>{if(E.stopPropagation(),S.children&&S.children.length>0){const I=l.includes(S.key);c(L=>I?L.filter(H=>H!==S.key):[...L,S.key])}},[l]),D=u.useCallback(E=>{f(S=>S.filter(I=>I!==E))},[]),V=u.useCallback(()=>{f([])},[]),U={confirm:()=>{if(h.length===0){s.message.error("부서를 선택해주세요.");return}const S=Array.from(new Set(h)).map(L=>{const H=B(g,L);return H?{deptCd:H.deptCd,deptNm:H.deptNm,hrnkDeptCd:H.hrnkDeptCd,hrnkDeptNm:H.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 E=t?.config;E?.onCancel&&E.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(Me,{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(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:E=>o(E.target.value)})}),e.jsx(s.Col,{span:6,style:{justifyContent:"center",display:"flex",alignItems:"center"},children:e.jsx(s.Checkbox,{checked:x,onChange:E=>T(E.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:k,onDoubleClick:O,style:{overflow:"hidden"},titleRender:E=>{const S=E.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(E.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:["선택된 부서 (",P.length,"개)"]}),P.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:P.length===0?e.jsx("div",{style:{color:"#999",fontSize:14},children:"선택된 부서가 없습니다."}):P.map(E=>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:`${E.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:E.deptNm}),e.jsx("span",{style:{fontSize:11,color:"#8c8c8c",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:E.deptCd})]}),e.jsx("button",{onClick:()=>D(E.deptCd),style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",padding:2,lineHeight:0},"aria-label":`${E.deptNm} 선택 해제`,title:"선택 해제",children:"×"})]},E.deptCd))})]})})]})})})})},kv=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,T]=u.useState([]),[g,j]=u.useState(!1),v=u.useCallback(async()=>{try{j(!0);const O=await se.callService("SCMUTIL00105",{...t?.popupParams});console.log("📊 조직도 API 응답:",O);const D=Array.isArray(O?.data)?O.data:Array.isArray(O?.orgnList)?O.orgnList:Array.isArray(O)?O:[];if(D.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const V=w(D);console.log("🌳 구성된 조직도 트리:",V),T(V);const U=D.filter(E=>E.deptLvl<=2).map(E=>E.deptCd);if(c(U),V.length>0){const E=V[0];p([E.deptCd]),a(E.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(O){console.error("❌ 조직도 데이터 로딩 실패:",O),s.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{j(!1)}},[t?.popupParams]),w=u.useCallback(O=>{const D=[...O].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 E=S=>{if(!S.children||S.children.length===0){delete S.children;return}S.children.forEach(E)};return U.forEach(E),U},[]);u.useEffect(()=>{v()},[v]);const C=u.useMemo(()=>{const O=U=>{let E=[];return U.forEach(S=>{S.employees&&(E=E.concat(S.employees)),S.children&&(E=E.concat(O(S.children)))}),E},D=O(x),V=D.filter((U,E,S)=>E===S.findIndex(I=>I.empNo===U.empNo));return console.log(`👥 전체 사원 수: ${D.length}, 중복 제거 후: ${V.length}`),V},[x]),B=u.useMemo(()=>{const O=D=>D.map(V=>({title:V.deptNm,key:V.deptCd,children:V.children?O(V.children):void 0,isLeaf:!V.children||V.children.length===0}));return O(x)},[x]),P=u.useMemo(()=>{if(!n.trim())return B;const O=D=>D.map(V=>{const U=V.title.toLowerCase().includes(n.toLowerCase()),E=V.children?O(V.children):void 0;return U||E&&E.length>0?{...V,children:E}:null}).filter(Boolean);return O(B)},[B,n]),b=u.useMemo(()=>{if(!n.trim()){const O=S=>{let I=[];return S.forEach(L=>{L.employees&&(I=I.concat(L.employees)),L.children&&(I=I.concat(O(L.children)))}),I},D=(S,I)=>{for(const L of S){if(L.deptCd===I){let H=[...L.employees||[]];return L.children&&(H=H.concat(O(L.children))),H}if(L.children){const H=D(L.children,I);if(H.length>0)return H}}return[]},V=d[0];if(!V)return[];const U=D(x,V),E=U.filter((S,I,L)=>I===L.findIndex(H=>H.empNo===S.empNo));return console.log(`🔍 선택된 부서: ${V}, 반환된 사원 수: ${U.length}, 중복 제거 후: ${E.length}`),E}return C.filter(O=>O.empNm.toLowerCase().includes(n.toLowerCase())||O.empNo.toLowerCase().includes(n.toLowerCase())||O.deptNm.toLowerCase().includes(n.toLowerCase())||O.jbpsCd.includes(n)||O.jbgdCd.includes(n)||O.emplyStCd.includes(n))},[n,d,C,x]),m=u.useCallback(O=>{f(O)},[]),R=u.useCallback(O=>{const D=O.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 H=U(L.children,I);if(H)return H}}return null},E=U(x,V);E&&a(E)}},[x]),k=u.useCallback(O=>{c(O.map(String))},[]),N=u.useCallback((O,D)=>{if(O.stopPropagation(),D.children&&D.children.length>0){const V=l.includes(D.key);c(V?U=>U.filter(E=>E!==D.key):U=>[...U,D.key])}},[l]),_={confirm:()=>{if(h){const O=t?.config;O?.onSelect?O.onSelect(h):t?.popupParams?.onSelect?t.popupParams.onSelect(h):t?.config?.callback&&t.config.callback(JSON.stringify(h,null,2)),O?.onClose&&O.onClose(),t?.close?.()}else s.message.error("사원을 선택해주세요.")},cancel:()=>{const O=t?.config;O?.onCancel&&O.onCancel(),t?.close?.()}};return e.jsx(Qr,{popup:t,buttons:[{id:"confirm",label:"확인",onClick:()=>{_.confirm()}}],popupEvent:_,onClose:()=>{t?.close?.(),r?.()},children:e.jsx(Me,{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(ke,{title:"조직도"}),e.jsx(s.Input,{placeholder:"이름, 소속, 전화번호 검색",prefix:e.jsx(Q.SearchOutlined,{}),value:n,allowClear:!0,onChange:O=>o(O.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:P,expandedKeys:l,selectedKeys:d,onSelect:R,onExpand:k,onDoubleClick:N,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:O=>e.jsx("span",{style:{padding:"4px 8px",borderRadius:"4px",fontWeight:d.includes(O.key)?"bold":"normal",display:"inline-block",width:"100%"},children:O.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:[b.map(O=>e.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"12px",border:"1px solid #e0e0e0",borderRadius:"8px",marginBottom:"8px",cursor:"pointer",backgroundColor:h&&h.crprCd===O.crprCd&&h.wkplCd===O.wkplCd&&h.empNo===O.empNo&&h.jbpsCd===O.jbpsCd&&h.jbgdCd===O.jbgdCd&&h.empMarkOrd===O.empMarkOrd?"#efebff":"white"},onClick:()=>m(O),children:[e.jsx("div",{style:{marginRight:"12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},onClick:D=>{D.stopPropagation(),f(O)},children:h&&h.crprCd===O.crprCd&&h.wkplCd===O.wkplCd&&h.empNo===O.empNo&&h.jbpsCd===O.jbpsCd&&h.jbgdCd===O.jbgdCd&&h.empMarkOrd===O.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:[O.empNm,e.jsxs("span",{style:{fontSize:"12px",fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",O.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:"12px",color:"#666",marginBottom:"2px"},children:[O.deptNm," (",O.deptCd,") | 직급:"," ",O.jbpsCd," | 등급: ",O.jbgdCd]})]})]},`emp-${O.crprCd}-${O.wkplCd}-${O.empNo}-${O.jbpsCd}-${O.jbgdCd}-${O.empMarkOrd}`)),b.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,T]=u.useState(!1),[g,j]=u.useState({}),v=u.useCallback(async()=>{try{T(!0);const E=await se.callService("SCMUTIL00105",{...t?.popupParams});console.log("📊 조직도 API 응답:",E);const S=Array.isArray(E?.data)?E.data:Array.isArray(E?.orgnList)?E.orgnList:Array.isArray(E)?E:[];if(S.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const I=w(S);console.log("🌳 구성된 조직도 트리:",I),f(I);const L=S.filter(H=>H.deptLvl<=2).map(H=>H.deptCd);if(c(L),I.length>0){const H=I[0];p([H.deptCd]),a(H.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(E){console.error("❌ 조직도 데이터 로딩 실패:",E),s.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{T(!1)}},[t?.popupParams]),w=u.useCallback(E=>{const S=[...E].sort((X,z)=>X.deptLvl-z.deptLvl||X.orgSortOrd-z.orgSortOrd||X.deptCd.localeCompare(z.deptCd)),I=new Map;for(const X of S)I.set(X.deptCd,{...X,children:[]});const L=[];for(const X of S){const z=I.get(X.deptCd),$=X.hrnkDeptCd;$&&I.has($)?I.get($).children.push(z):L.push(z)}const H=X=>{if(!X.children||X.children.length===0){delete X.children;return}X.children.forEach(H)};return L.forEach(H),L},[]);u.useEffect(()=>{v()},[v]);const C=u.useMemo(()=>{const E=L=>{let H=[];return L.forEach(X=>{X.employees&&(H=H.concat(X.employees)),X.children&&(H=H.concat(E(X.children)))}),H},S=E(h),I=S.filter((L,H,X)=>H===X.findIndex(z=>z.empNo===L.empNo));return console.log(`👥 전체 사원 수: ${S.length}, 중복 제거 후: ${I.length}`),I},[h]),B=u.useMemo(()=>{const E=S=>S.map(I=>({title:I.deptNm,key:I.deptCd,children:I.children?E(I.children):void 0,isLeaf:!I.children||I.children.length===0}));return E(h)},[h]),P=u.useMemo(()=>{if(!n.trim())return B;const E=S=>S.map(I=>{const L=I.title.toLowerCase().includes(n.toLowerCase()),H=I.children?E(I.children):void 0;return L||H&&H.length>0?{...I,children:H}:null}).filter(Boolean);return E(B)},[B,n]),b=u.useMemo(()=>{if(!n.trim()){const E=X=>{let z=[];return X.forEach($=>{$.employees&&(z=z.concat($.employees)),$.children&&(z=z.concat(E($.children)))}),z},S=(X,z)=>{for(const $ of X){if($.deptCd===z){let Y=[...$.employees||[]];return $.children&&(Y=Y.concat(E($.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),H=L.filter((X,z,$)=>z===$.findIndex(Y=>Y.empNo===X.empNo));return console.log(`🔍 선택된 부서: ${I}, 반환된 사원 수: ${L.length}, 중복 제거 후: ${H.length}`),H}return C.filter(E=>E.empNm.toLowerCase().includes(n.toLowerCase())||E.empNo.toLowerCase().includes(n.toLowerCase())||E.deptNm.toLowerCase().includes(n.toLowerCase())||E.jbpsCd.includes(n)||E.jbgdCd.includes(n)||E.emplyStCd.includes(n))},[n,d,C,h]),m=u.useCallback(E=>{j(S=>{const I={...S};return I[E.empNo]?delete I[E.empNo]:I[E.empNo]=E,I})},[]),R=u.useCallback(E=>{j(S=>{const I={...S};return delete I[E],I})},[]),k=u.useCallback(()=>j({}),[]),N=u.useCallback(()=>{j(E=>{const S={...E};for(const I of b)S[I.empNo]=I;return S})},[b]),_=u.useCallback(()=>{j(E=>{const S={...E};for(const I of b)delete S[I.empNo];return S})},[b]),O=u.useCallback(E=>{const S=E.map(String);if(console.log(`🌳 트리 선택: ${S.join(", ")}`),p(S),S.length>0){const I=S[0],L=(X,z)=>{for(const $ of X){if($.deptCd===z)return $.deptNm;if($.children){const Y=L($.children,z);if(Y)return Y}}return null},H=L(h,I);H&&a(H)}},[h]),D=u.useCallback(E=>{c(E.map(String))},[]),V=u.useCallback((E,S)=>{if(E.stopPropagation(),!S.children||!S.children.length)return;const I=l.includes(S.key);c(L=>I?L.filter(H=>H!==S.key):[...L,S.key])},[l]),U={confirm:()=>{const E=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(E.length===0){s.message.error("직원을 선택해주세요.");return}const S=t?.config;S?.onSelect?S.onSelect(E):t?.config?.callback&&t.config.callback(JSON.stringify(E)),S?.onClose&&S.onClose(),t?.close?.()},cancel:()=>{const E=t?.config;E?.onCancel&&E.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(Me,{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(ke,{title:"조직도"}),e.jsx(s.Input,{placeholder:"이름, 소속, 직급/직위, 사번 검색",prefix:e.jsx(Q.SearchOutlined,{}),value:n,allowClear:!0,onChange:E=>o(E.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:P,expandedKeys:l,selectedKeys:d,onSelect:O,onExpand:D,onDoubleClick:V,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:E=>e.jsx("span",{style:{padding:"4px 8px",borderRadius:4,fontWeight:d.includes(E.key)?"bold":"normal",display:"inline-block",width:"100%"},children:E.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:[b.map(E=>{const S=!!g[E.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(E),children:[e.jsx("div",{style:{marginRight:12,width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},onClick:I=>{I.stopPropagation(),m(E)},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:[E.empNm,e.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",E.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:12,color:"#666"},children:[E.deptNm," (",E.deptCd,") | 직급: ",E.jbpsCd," ","| 등급: ",E.jbgdCd]})]})]},`emp-${E.crprCd}-${E.wkplCd}-${E.empNo}-${E.jbpsCd}-${E.jbgdCd}-${E.empMarkOrd}`)}),b.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:k,children:"전체 해제"})]}),e.jsx(s.Divider,{style:{margin:"8px 0"}}),e.jsxs("div",{style:{overflowY:"auto",flex:1},children:[Object.values(g).map(E=>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:[E.empNm,e.jsxs("span",{style:{fontSize:11,fontWeight:"normal",color:"#666",marginLeft:"6px"},children:["(",E.empNo,")"]})]}),e.jsxs("div",{style:{fontSize:12,color:"#666"},children:[E.deptNm," (",E.deptCd,") | 직급: ",E.jbpsCd," | 등급: ",E.jbgdCd]})]}),e.jsx(s.Button,{type:"text",shape:"circle",icon:e.jsx(Q.CloseOutlined,{}),onClick:()=>R(E.empNo)})]},`selected-${E.crprCd}-${E.wkplCd}-${E.empNo}-${E.jbpsCd}-${E.jbgdCd}-${E.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: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=(w,C,B=p)=>{const P=C.filter(b=>{if(B==="year"){const m=b.stndYmd.substring(0,6),R=w.format("YYYYMM");return m===R}else{const m=w.format("YYYYMMDD");return b.stndYmd===m}});l(P)},T=w=>{n(w),x(w,c,p)},g=(w,C)=>{i(w),h(C),v.SCMHLDY00101(C,w)};u.useEffect(()=>{v.SCMHLDY00101()},[]);const j=w=>{const C=c.filter(B=>{if(p==="year"){const P=B.stndYmd.substring(0,6),b=w.format("YYYYMM");return P===b}else{const P=w.format("YYYYMMDD");return B.stndYmd===P}});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((B,P)=>e.jsx("div",{style:{flex:1,height:"3px",background:B.hldyYn==="Y"?f.colorError:f.colorSuccess,borderRadius:"1px"}},P))}):null},v={SCMHLDY00101:async(w=p,C=r)=>{try{let B;w==="year"?B=C.format("YYYY"):B=C.format("YYYYMM");const P=await se.callService("SCMHLDY00101",{crprCd:se.getUserInfo()?.crprCd||"",sysCd:__SYS_CD__,stndYmd:B});d(P.sub||[]),x(C,P.sub||[],w)}catch(B){console.error("휴일 데이터 로드 실패:",B),s.message.error("휴일 데이터를 불러오는데 실패했습니다.")}}};return e.jsx(Qr,{popup:t,children:e.jsx(Me,{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:T,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((w,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:w.hldyDscr||"휴일명 미입력"}),w.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(w.stndYmd).format("YYYY년 MM월 DD일 dddd")})}),w.hldyDscr&&e.jsx("div",{children:e.jsx(Jl,{style:{fontSize:f.fontSizeSM+1},children:w.hldyDscr})})]})},C))}):e.jsx(s.Empty,{description:"선택된 날짜에 등록된 휴일이 없습니다.",style:{marginTop:"100px"}})})})})]})})})})};exports.ButtonAccessController=Xi;exports.BwgButtonGroup=Qi;exports.BwgCmptArea=Eu;exports.BwgCol=Iu;exports.BwgComponentGuideM01=Z0;exports.BwgConfigProvider=sc;exports.BwgDetail=Hu;exports.BwgDeveloperGuideM01=tv;exports.BwgDrawer=Xr;exports.BwgEditor=Uu;exports.BwgGrid=Oe;exports.BwgInfoArea=Ut;exports.BwgPagination=Ms;exports.BwgPopup=Qr;exports.BwgReactGuideM01=sv;exports.BwgRow=tp;exports.BwgSpace=Vo;exports.BwgTable=rp;exports.BwgTabs=xt;exports.BwgTitleBox=ke;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=Me;exports.GlobalConfigProvider=H0;exports.QuickServiceToggle=U0;exports.SSOHandler=G0;exports.SearchBox=Vn;exports.SearchDepartmentP01=vu;exports.SearchDepartmentP01$1=wv;exports.SearchDepartmentP02=yu;exports.SearchDepartmentP02$1=kv;exports.SearchOrganizationP01=bu;exports.SearchOrganizationP01$1=Tv;exports.SearchOrganizationP02=Cu;exports.SearchOrganizationP02$1=Ev;exports.commonjsGlobal=ku;exports.createBwgGridRenderer=Ns;exports.getAugmentedNamespace=Tu;exports.getDefaultExportFromCjs=Fn;
|