@bwg-ui/core 1.1.20 → 1.1.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/{BwgDownload-CF_Zo2oU.js → BwgDownload-COsACbpJ.js} +3 -3
- package/dist/chunks/{BwgDownload-CF_Zo2oU.js.map → BwgDownload-COsACbpJ.js.map} +1 -1
- package/dist/chunks/{BwgDownload-DvCaLWCL.cjs → BwgDownload-i6w7ZD-i.cjs} +2 -2
- package/dist/chunks/{BwgDownload-DvCaLWCL.cjs.map → BwgDownload-i6w7ZD-i.cjs.map} +1 -1
- package/dist/chunks/{SSOHandler-Cr04mtMm.js → SSOHandler-BHJ5NexT.js} +4 -4
- package/dist/chunks/{SSOHandler-Cr04mtMm.js.map → SSOHandler-BHJ5NexT.js.map} +1 -1
- package/dist/chunks/{SSOHandler-C7echUZs.cjs → SSOHandler-BtrmIPzQ.cjs} +2 -2
- package/dist/chunks/{SSOHandler-C7echUZs.cjs.map → SSOHandler-BtrmIPzQ.cjs.map} +1 -1
- package/dist/chunks/{SearchBoxContext-C2ECWG9l.js → SearchBoxContext-BxJN-x3-.js} +2 -2
- package/dist/chunks/{SearchBoxContext-C2ECWG9l.js.map → SearchBoxContext-BxJN-x3-.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-aMXi2JmO.cjs → SearchBoxContext-DnQGaRgo.cjs} +2 -2
- package/dist/chunks/{SearchBoxContext-aMXi2JmO.cjs.map → SearchBoxContext-DnQGaRgo.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-DI7hvDi-.cjs → ViewContainer-HSyLfryI.cjs} +2 -2
- package/dist/chunks/{ViewContainer-DI7hvDi-.cjs.map → ViewContainer-HSyLfryI.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-DxhY26m3.js → ViewContainer-x2yzKkIG.js} +2 -2
- package/dist/chunks/{ViewContainer-DxhY26m3.js.map → ViewContainer-x2yzKkIG.js.map} +1 -1
- package/dist/chunks/apiUtils-CudW_FKE.cjs +3 -0
- package/dist/chunks/apiUtils-CudW_FKE.cjs.map +1 -0
- package/dist/chunks/apiUtils-DfPv_gmI.js +2064 -0
- package/dist/chunks/apiUtils-DfPv_gmI.js.map +1 -0
- package/dist/chunks/{codeStore-kuUEfWSS.js → codeStore-DefmZVgs.js} +2 -2
- package/dist/chunks/{codeStore-kuUEfWSS.js.map → codeStore-DefmZVgs.js.map} +1 -1
- package/dist/chunks/{codeStore-WWRT65Zk.cjs → codeStore-pQbDqWkZ.cjs} +2 -2
- package/dist/chunks/{codeStore-WWRT65Zk.cjs.map → codeStore-pQbDqWkZ.cjs.map} +1 -1
- package/dist/chunks/{favoriteStore-DdGoghEn.cjs → favoriteStore-BXBziAgB.cjs} +2 -2
- package/dist/chunks/{favoriteStore-DdGoghEn.cjs.map → favoriteStore-BXBziAgB.cjs.map} +1 -1
- package/dist/chunks/{favoriteStore-D40XfOmq.js → favoriteStore-DAPC01iF.js} +2 -2
- package/dist/chunks/{favoriteStore-D40XfOmq.js.map → favoriteStore-DAPC01iF.js.map} +1 -1
- package/dist/chunks/{popupStore-DKpp0bmC.cjs → popupStore-BV632k5p.cjs} +2 -2
- package/dist/chunks/{popupStore-DKpp0bmC.cjs.map → popupStore-BV632k5p.cjs.map} +1 -1
- package/dist/chunks/{popupStore-axohgTV-.js → popupStore-CcQg9AvK.js} +2 -2
- package/dist/chunks/{popupStore-axohgTV-.js.map → popupStore-CcQg9AvK.js.map} +1 -1
- package/dist/chunks/{usePopup-Dftb7Bbl.js → usePopup-Cw5xsOaH.js} +3 -3
- package/dist/chunks/{usePopup-Dftb7Bbl.js.map → usePopup-Cw5xsOaH.js.map} +1 -1
- package/dist/chunks/{usePopup-DYnRe9Th.cjs → usePopup-DoVGuobp.cjs} +2 -2
- package/dist/chunks/{usePopup-DYnRe9Th.cjs.map → usePopup-DoVGuobp.cjs.map} +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +9 -9
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +6 -6
- package/dist/utils/commonUtils.d.ts +0 -6
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/apiUtils-BRaXRbjE.js +0 -1428
- package/dist/chunks/apiUtils-BRaXRbjE.js.map +0 -1
- package/dist/chunks/apiUtils-DL43X2ta.cjs +0 -3
- package/dist/chunks/apiUtils-DL43X2ta.cjs.map +0 -1
- package/dist/chunks/core-D7JhyoYH.cjs +0 -2
- package/dist/chunks/core-D7JhyoYH.cjs.map +0 -1
- package/dist/chunks/core-DLGhqegD.js +0 -514
- package/dist/chunks/core-DLGhqegD.js.map +0 -1
- package/dist/chunks/enc-base64-96WlVdPN.js +0 -102
- package/dist/chunks/enc-base64-96WlVdPN.js.map +0 -1
- package/dist/chunks/enc-base64-b9mIy966.cjs +0 -2
- package/dist/chunks/enc-base64-b9mIy966.cjs.map +0 -1
- package/dist/chunks/sha256-BMg1y0Py.js +0 -79
- package/dist/chunks/sha256-BMg1y0Py.js.map +0 -1
- package/dist/chunks/sha256-BxdSMFca.cjs +0 -2
- package/dist/chunks/sha256-BxdSMFca.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const P=require("./jsx-runtime-CeSfJrVB.cjs"),Ce=require("@ant-design/icons"),X=require("antd"),z=require("react"),Xi=require("./SearchBoxContext-aMXi2JmO.cjs"),Fe=require("./apiUtils-DL43X2ta.cjs"),eh=require("react-rnd"),$n=require("react-dom"),Nn=require("./favoriteStore-DdGoghEn.cjs"),qv=require("./LoadingOverlay-NX9Mo_6n.cjs"),Vv=require("dayjs"),Ct=require("realgrid"),gu=require("realgrid-react"),We=require("./BwgCheck-Dtzr-6rg.cjs"),zv=require("./AuthContext-CXng9fj0.cjs"),yu=require("react-router-dom");function th(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const In=th(Ce),M=th(z),Hv=({grpId:e,menuId:r,btnEvent:t,layout:i="horizontal",size:n="middle",style:o,className:a,onButtonClick:s})=>{const f=Xi.useServiceCodeValue("AUTH_BTNS"),{user:d}=Fe.useUserStore(),[c,l]=z.useState([]),[u,h]=z.useState(!0),[v,g]=z.useState(null),[p,y]=z.useState({}),m=async()=>{try{h(!0),g(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const E=await Fe.callService(f,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",E),E?.data&&Array.isArray(E.data)){const S=E.data.sort((w,_)=>w.btnSq-_.btnSq);l(S)}else l([])}catch(E){console.error("버튼 권한 조회 실패:",E),g("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};z.useEffect(()=>{m()},[e,r]);const x=async(E,S)=>{y(w=>({...w,[E]:{loading:!0}}));try{const w=t?.[E];w?await w():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${E}`),s&&s(E,S,e)}catch(w){console.error("버튼 이벤트 실행 실패:",w),X.message.error("작업 중 오류가 발생했습니다.")}finally{y(w=>({...w,[E]:{loading:!1}}))}},b=E=>{const S=p[E.btnId]||{loading:!1};return P.jsxRuntimeExports.jsxs(X.Button,{size:n,loading:S.loading,onClick:()=>x(E.btnId,E.btnNm),className:"bwg-btn",style:{...E.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[E.iconVal&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[E.iconType==="ANTD"&&In[E.iconVal]&&z.createElement(In[E.iconVal],{style:{fontSize:"14px"}}),E.iconType!=="ANTD"&&P.jsxRuntimeExports.jsx("span",{className:E.iconVal,style:{fontSize:"14px"}})]}),E.btnNm]},E.btnId)};return u?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Space,{direction:i==="vertical"?"vertical":"horizontal",size:n,children:P.jsxRuntimeExports.jsx(X.Button,{loading:!0,size:n,children:"권한 조회 중..."})})}):v?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"권한 오류",description:v,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):c.length===0?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Flex,{gap:3,children:c.map(b)})})},Uv=({content:e,layout:r="flex",gap:t=16,minWidth:i=120,maxWidth:n=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return P.jsxRuntimeExports.jsx("div",{style:o,className:a,children:e});const f=e.filter(h=>h&&h.length>0),d=z.useMemo(()=>{const h=f[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let v=0;const g=[];h.forEach(y=>{const m=y,x=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;v+=x,g.push(x)});const p=v>0?100/v:0;return{totalCols:v,baseWidth:p,componentWidths:g}},[f]),c=(h,v,g)=>{const p=h,y=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(r){case"equal":return 100/g;case"auto":return 100/g;case"grid":return 100/d.totalCols*y;case"flex":default:const m=d.baseWidth*y;return Math.max(i,Math.min(n,m))}},l=h=>{if(!h||typeof h!="object")return h;const v=h;if(!v.props)return h;const p={...v.props.style||{},width:"100%"};return z.cloneElement(v,{...v.props,style:p})},u=(h,v)=>{if(!h||h.length===0)return null;const g=h.length;return r==="grid"?P.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((p,y)=>{const m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,x=l(p);return P.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${m}`,minWidth:`${i}px`},className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`):P.jsxRuntimeExports.jsx(X.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((p,y)=>{const m=c(p,y,g),x=l(p),b=r==="flex"?{width:`${m}px`,minWidth:`${i}px`,maxWidth:`${n}px`,flexShrink:0}:{width:`${m}%`,minWidth:`${i}px`};return P.jsxRuntimeExports.jsx("div",{style:b,className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`)};return P.jsxRuntimeExports.jsx(X.Flex,{gap:"small",vertical:!0,style:o,className:a,children:f.map((h,v)=>u(h,v+1))})},Wv=({children:e,...r})=>P.jsxRuntimeExports.jsx(X.Col,{...r,className:"bwg-col",children:e});var bn={},To={exports:{}},bu;function Zi(){return bu||(bu=1,(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(To)),To.exports}var xn={},xu;function Kv(){if(xu)return xn;xu=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var e={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 xn.default=e,xn}var En={},wn={},Sn={},ko={exports:{}},Po={exports:{}},No={exports:{}},Io={exports:{}},Eu;function rh(){return Eu||(Eu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Io)),Io.exports}var Mo={exports:{}},wu;function Gv(){return wu||(wu=1,(function(e){var r=rh().default;function t(i,n){if(r(i)!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,n||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Mo)),Mo.exports}var Su;function Yv(){return Su||(Su=1,(function(e){var r=rh().default,t=Gv();function i(n){var o=t(n,"string");return r(o)=="symbol"?o:o+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(No)),No.exports}var _u;function Xv(){return _u||(_u=1,(function(e){var r=Yv();function t(i,n,o){return(n=r(n))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Po)),Po.exports}var Cu;function Zv(){return Cu||(Cu=1,(function(e){var r=Xv();function t(n,o){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);o&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),a.push.apply(a,s)}return a}function i(n){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?t(Object(a),!0).forEach(function(s){r(n,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(a,s))})}return n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(ko)),ko.exports}var _n={},Ou;function Qv(){return Ou||(Ou=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.commonLocale=void 0,_n.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),_n}var Ru;function Jv(){if(Ru)return Sn;Ru=1;var e=Zi().default;Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var r=e(Zv()),t=Qv(),i=(0,r.default)((0,r.default)({},t.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 Sn.default=i,Sn}var Cn={},ju;function nh(){if(ju)return Cn;ju=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Cn.default=e,Cn}var Au;function ih(){if(Au)return wn;Au=1;var e=Zi().default;Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var r=e(Jv()),t=e(nh());const i={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({},t.default)};return wn.default=i,wn}var Tu;function em(){if(Tu)return En;Tu=1;var e=Zi().default;Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0;var r=e(ih());return En.default=r.default,En}var ku;function tm(){if(ku)return bn;ku=1;var e=Zi().default;Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var r=e(Kv()),t=e(em()),i=e(ih()),n=e(nh());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:i.default,TimePicker:n.default,Calendar:t.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:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},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 bn.default=a,bn}var Lo,Pu;function rm(){return Pu||(Pu=1,Lo=tm()),Lo}var nm=rm();const oh=Fe.getDefaultExportFromCjs(nm),Dl=({children:e,customTheme:r,customComponentSize:t="middle",layout:i="comfortable",getPopupContainer:n})=>{const a=(()=>{const f={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:X.theme.defaultAlgorithm};switch(i){case"compact":return{...f,token:{...f.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...f,token:{...f.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...f,token:{...f.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),s={...a,...r,token:{...a.token,...r?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...r?.components??{}}};return P.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:oh,theme:s,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:n,children:e})},im=({children:e})=>{const{activeDetailItem:r}=Fe.useMenuViewStore();return P.jsxRuntimeExports.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:P.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[P.jsxRuntimeExports.jsx(X.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},Qi=({title:e,icons:r,tooltip:t,iconVisible:i=!0,paddingBottom:n=0,marginBottom:o=0,children:a})=>{const s=In.AppstoreTwoTone;return z.useMemo(()=>r?.type==="antd"&&r.icon&&In[r.icon]||s,[r?.type,r?.icon]),P.jsxRuntimeExports.jsx(X.Flex,{vertical:!0,style:{width:"100%"},children:P.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${n?`pb${n}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[P.jsxRuntimeExports.jsx(X.Typography.Title,{level:4,children:P.jsxRuntimeExports.jsx("span",{children:e})}),t&&P.jsxRuntimeExports.jsx(X.Tooltip,{title:t.title,placement:t.placement,children:P.jsxRuntimeExports.jsx(In.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:P.jsxRuntimeExports.jsx(X.Flex,{gap:6,children:a})})]})})},{Panel:Nu}=X.Collapse,Ji=z.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:i,header:n},o)=>{const[a]=X.Form.useForm(),[s,f]=z.useState("1"),d=()=>i?{flex:i.md||i.lg||i.sm||"100px"}:{flex:"100px"};z.useImperativeHandle(o,()=>({getFormData:()=>a.getFieldsValue(),setFormData:l=>{a.setFieldsValue(l)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(l){return{success:!1,error:l}}}}));const c=()=>{f(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return P.jsxRuntimeExports.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[n&&P.jsxRuntimeExports.jsx(Qi,{title:n.title,children:n.buttons}),P.jsxRuntimeExports.jsx(X.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||r?"10px":"0px"},labelCol:d(),labelAlign:"left",children:P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?P.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})}):P.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})})}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Collapse:{}}},children:P.jsxRuntimeExports.jsxs(X.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:f,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),om=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:i=!1,shotSettingButton:n=!0,styles:o,...a})=>{const[s,f]=z.useState(!0),[d,c]=z.useState(()=>{const y=a.placement;return y==="left"||y==="right"||y==="top"||y==="bottom"?y:"bottom"}),[l,u]=z.useState(!1),v=(y=>{const m={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(y){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(d),g={wrapper:{...v?.wrapper,...o?.wrapper},content:{...v?.content,...o?.content},header:{...v?.header,...o?.header}},p=()=>{const y=[];if(n){const m=[{key:"top",label:"상단",icon:P.jsxRuntimeExports.jsx(Ce.CaretUpOutlined,{})},{key:"right",label:"우측",icon:P.jsxRuntimeExports.jsx(Ce.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:P.jsxRuntimeExports.jsx(Ce.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:P.jsxRuntimeExports.jsx(Ce.CaretLeftOutlined,{})}],x=P.jsxRuntimeExports.jsx(X.Space.Compact,{children:m.map(b=>P.jsxRuntimeExports.jsx(X.Button,{type:d===b.key?"primary":"default",size:"small",onClick:()=>{c(b.key),u(!1)},icon:b.icon},b.key))});y.push(P.jsxRuntimeExports.jsx(X.Popover,{content:x,trigger:"click",placement:"left",open:l,onOpenChange:u,children:P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return i&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>f(!s)})},"eyes")),a.extra&&y.push(P.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),y};return P.jsxRuntimeExports.jsx(X.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:g,maskClosable:!1,closable:!1,mask:s,extra:P.jsxRuntimeExports.jsx(X.Space,{size:"small",align:"center",children:p()}),afterOpenChange:y=>{y||(f(!0),c(a.placement)),a.afterOpenChange?.(y)},destroyOnHidden:!0,children:r?P.jsxRuntimeExports.jsxs(jr,{type:"vertical",children:[P.jsxRuntimeExports.jsxs(X.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[P.jsxRuntimeExports.jsx("div",{children:r.title}),P.jsxRuntimeExports.jsx(X.Flex,{gap:2,children:r.extra})]}),P.jsxRuntimeExports.jsx(Ji,{...r.searchBox}),P.jsxRuntimeExports.jsx(X.Divider,{}),e]}):e})};var ki={exports:{}},am=ki.exports,Iu;function sm(){return Iu||(Iu=1,(function(e,r){(function(t,i){e.exports=i()})(am,function(){return(function(t){function i(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var n={};return i.m=t,i.c=n,i.i=function(o){return o},i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=38)})([function(t,i){function n(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=n},function(t,i,n){var o=n(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,i){function n(o){return o!=null&&typeof o=="object"}t.exports=n},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(75),s=n(76),f=n(77),d=n(78),c=n(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(s,f){for(var d=s.length;d--;)if(a(s[d][0],f))return d;return-1}var a=n(8);t.exports=o},function(t,i,n){function o(u){return u==null?u===void 0?c:d:l&&l in Object(u)?s(u):f(u)}var a=n(16),s=n(64),f=n(87),d="[object Null]",c="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,i,n){function o(s,f){var d=s.__data__;return a(f)?d[typeof f=="string"?"string":"hash"]:d.map}var a=n(73);t.exports=o},function(t,i,n){var o=n(11),a=o(Object,"create");t.exports=a},function(t,i){function n(o,a){return o===a||o!==o&&a!==a}t.exports=n},function(t,i,n){function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}n.d(i,"a",function(){return a});var a=function s(f){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=f.overlay,this.img=f.img,this.options=f.options,this.requestUpdate=f.onUpdate}},function(t,i,n){function o(s,f,d){f=="__proto__"&&a?a(s,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[f]=d}var a=n(21);t.exports=o},function(t,i,n){function o(f,d){var c=s(f,d);return a(c)?c:void 0}var a=n(48),s=n(65);t.exports=o},function(t,i,n){function o(f){return f!=null&&s(f.length)&&!a(f)}var a=n(13),s=n(30);t.exports=o},function(t,i,n){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==c||h==f||h==l}var a=n(5),s=n(0),f="[object AsyncFunction]",d="[object Function]",c="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,i){t.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(t,i,n){var o=n(11),a=n(1),s=o(a,"Map");t.exports=s},function(t,i,n){var o=n(1),a=o.Symbol;t.exports=a},function(t,i){function n(o,a,s){switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}t.exports=n},function(t,i,n){function o(f,d,c){(c===void 0||s(f[d],c))&&(c!==void 0||d in f)||a(f,d,c)}var a=n(10),s=n(8);t.exports=o},function(t,i,n){function o(u,h,v,g,p){u!==h&&f(h,function(y,m){if(c(y))p||(p=new a),d(u,h,m,v,o,g,p);else{var x=g?g(u[m],y,m+"",u,h,p):void 0;x===void 0&&(x=y),s(u,m,x)}},l)}var a=n(41),s=n(18),f=n(46),d=n(51),c=n(0),l=n(32);t.exports=o},function(t,i,n){function o(d,c){return f(s(d,c,a),d+"")}var a=n(26),s=n(89),f=n(90);t.exports=o},function(t,i,n){var o=n(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,i,n){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(i,n(107))},function(t,i,n){var o=n(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,i){function n(s,f){return!!(f=f??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<f}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,i){function n(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=n},function(t,i){function n(o){return o}t.exports=n},function(t,i,n){var o=n(47),a=n(2),s=Object.prototype,f=s.hasOwnProperty,d=s.propertyIsEnumerable,c=o((function(){return arguments})())?o:function(l){return a(l)&&f.call(l,"callee")&&!d.call(l,"callee")};t.exports=c},function(t,i){var n=Array.isArray;t.exports=n},function(t,i,n){(function(o){var a=n(1),s=n(102),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(i,n(14)(t))},function(t,i){function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=n},function(t,i,n){var o=n(49),a=n(54),s=n(86),f=s&&s.isTypedArray,d=f?a(f):o;t.exports=d},function(t,i,n){function o(d){return f(d)?a(d,!0):s(d)}var a=n(43),s=n(50),f=n(12);t.exports=o},function(t,i,n){i.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.display=document.createElement("div"),Object.assign(v.display.style,v.options.displayStyles),v.overlay.appendChild(v.display)},v.onDestroy=function(){},v.onUpdate=function(){if(v.display&&v.img){var x=v.getCurrentSize();if(v.display.innerHTML=x.join(" × "),x[0]>120&&x[1]>30)Object.assign(v.display.style,{right:"4px",bottom:"4px",left:"auto"});else if(v.img.style.float=="right"){var b=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"auto",bottom:"-"+(b.height+4)+"px",left:"-"+(b.width+4)+"px"})}else{var E=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"-"+(E.width+4)+"px",bottom:"-"+(E.height+4)+"px",left:"auto"})}}},v.getCurrentSize=function(){return[v.img.width,Math.round(v.img.width/v.img.naturalWidth*v.img.naturalHeight)]},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.boxes=[],v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.positionBoxes()},v.onDestroy=function(){v.setCursor("")},v.positionBoxes=function(){var x=-parseFloat(v.options.handleStyles.width)/2+"px",b=-parseFloat(v.options.handleStyles.height)/2+"px";[{left:x,top:b},{right:x,top:b},{right:x,bottom:b},{left:x,bottom:b}].forEach(function(E,S){Object.assign(v.boxes[S].style,E)})},v.addBox=function(x){var b=document.createElement("div");Object.assign(b.style,v.options.handleStyles),b.style.cursor=x,b.style.width=v.options.handleStyles.width+"px",b.style.height=v.options.handleStyles.height+"px",b.addEventListener("mousedown",v.handleMousedown,!1),v.overlay.appendChild(b),v.boxes.push(b)},v.handleMousedown=function(x){v.dragBox=x.target,v.dragStartX=x.clientX,v.preDragWidth=v.img.width||v.img.naturalWidth,v.setCursor(v.dragBox.style.cursor),document.addEventListener("mousemove",v.handleDrag,!1),document.addEventListener("mouseup",v.handleMouseup,!1)},v.handleMouseup=function(){v.setCursor(""),document.removeEventListener("mousemove",v.handleDrag),document.removeEventListener("mouseup",v.handleMouseup)},v.handleDrag=function(x){if(v.img){var b=x.clientX-v.dragStartX;v.dragBox===v.boxes[0]||v.dragBox===v.boxes[3]?v.img.width=Math.round(v.preDragWidth-b):v.img.width=Math.round(v.preDragWidth+b),v.requestUpdate()}},v.setCursor=function(x){[document.body,v.img].forEach(function(b){b.style.cursor=x})},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function a(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||typeof E!="object"&&typeof E!="function"?b:E}function s(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var f=n(105),d=n.n(f),c=n(104),l=n.n(c),u=n(106),h=n.n(u),v=n(9);n.d(i,"a",function(){return x});var g={},p={},y={},m={},x=(function(b){function E(){var S,w,_,A;o(this,E);for(var R=arguments.length,C=Array(R),O=0;O<R;O++)C[O]=arguments[O];return w=_=a(this,(S=E.__proto__||Object.getPrototypeOf(E)).call.apply(S,[this].concat(C))),_.onCreate=function(j){g=j,p=new g.Attributor.Style("float","float"),y=new g.Attributor.Style("margin","margin"),m=new g.Attributor.Style("display","display"),_.toolbar=document.createElement("div"),Object.assign(_.toolbar.style,_.options.toolbarStyles),_.overlay.appendChild(_.toolbar),_._defineAlignments(),_._addToolbarButtons()},_.onDestroy=function(){},_.onUpdate=function(){},_._defineAlignments=function(){_.alignments=[{icon:d.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"left"),y.add(_.img,"0 1em 1em 0")},isApplied:function(){return p.value(_.img)=="left"}},{icon:l.a,apply:function(){m.add(_.img,"block"),p.remove(_.img),y.add(_.img,"auto")},isApplied:function(){return y.value(_.img)=="auto"}},{icon:h.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"right"),y.add(_.img,"0 0 1em 1em")},isApplied:function(){return p.value(_.img)=="right"}}]},_._addToolbarButtons=function(){var j=[];_.alignments.forEach(function(k,I){var B=document.createElement("span");j.push(B),B.innerHTML=k.icon,B.addEventListener("click",function(){j.forEach(function(V){return V.style.filter=""}),k.isApplied()?(p.remove(_.img),y.remove(_.img),m.remove(_.img)):(_._selectButton(B),k.apply()),_.requestUpdate()}),Object.assign(B.style,_.options.toolbarButtonStyles),I>0&&(B.style.borderLeftWidth="0"),Object.assign(B.children[0].style,_.options.toolbarButtonSvgStyles),k.isApplied()&&_._selectButton(B),_.toolbar.appendChild(B)})},_._selectButton=function(j){j.style.filter="invert(20%)"},A=w,a(_,A)}return s(E,b),E})(v.a)},function(t,i,n){var o=n(17),a=n(20),s=n(63),f=n(101),d=a(function(c){return c.push(void 0,s),o(f,void 0,c)});t.exports=d},function(t,i,n){function o(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0});var a=n(37),s=n.n(a),f=n(33),d=n(34),c=n(36),l=n(35),u={DisplaySize:d.a,Toolbar:c.a,Resize:l.a},h=function v(g){var p=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,v),this.initializeModules=function(){p.removeModules(),p.modules=p.moduleClasses.map(function(x){return new(u[x]||x)(p)}),p.modules.forEach(function(x){x.onCreate(p.parchment)}),p.onUpdate()},this.onUpdate=function(){p.repositionElements(),p.modules.forEach(function(x){x.onUpdate()})},this.removeModules=function(){p.modules.forEach(function(x){x.onDestroy()}),p.modules=[]},this.handleClick=function(x){if(x.target&&x.target.tagName&&x.target.tagName.toUpperCase()==="IMG"){if(p.img===x.target)return;p.img&&p.hide(),p.show(x.target)}else p.img&&p.hide()},this.show=function(x){p.img=x,p.showOverlay(),p.initializeModules()},this.showOverlay=function(){p.overlay&&p.hideOverlay(),p.quill.setSelection(null),p.setUserSelect("none"),document.addEventListener("keyup",p.checkImage,!0),p.quill.root.addEventListener("input",p.checkImage,!0),p.overlay=document.createElement("div"),Object.assign(p.overlay.style,p.options.overlayStyles),p.quill.root.parentNode.appendChild(p.overlay),p.repositionElements()},this.hideOverlay=function(){p.overlay&&(p.quill.root.parentNode.removeChild(p.overlay),p.overlay=void 0,document.removeEventListener("keyup",p.checkImage),p.quill.root.removeEventListener("input",p.checkImage),p.setUserSelect(""))},this.repositionElements=function(){if(p.overlay&&p.img){var x=p.quill.root.parentNode,b=p.img.getBoundingClientRect(),E=x.getBoundingClientRect();Object.assign(p.overlay.style,{left:b.left-E.left-1+x.scrollLeft+"px",top:b.top-E.top+x.scrollTop+"px",width:b.width+"px",height:b.height+"px"})}},this.hide=function(){p.hideOverlay(),p.removeModules(),p.img=void 0},this.setUserSelect=function(x){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(b){p.quill.root.style[b]=x,document.documentElement.style[b]=x})},this.checkImage=function(x){p.img&&(x.keyCode!=46&&x.keyCode!=8||window.Quill.find(p.img).deleteAt(0),p.hide())},this.quill=g;var m=!1;y.modules&&(m=y.modules.slice()),y.parchment&&(this.parchment=y.parchment),this.options=s()({},y,f.a),m!==!1&&(this.options.modules=m),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};i.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(66),s=n(67),f=n(68),d=n(69),c=n(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(80),s=n(81),f=n(82),d=n(83),c=n(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=n(3),s=n(92),f=n(93),d=n(94),c=n(95),l=n(96);o.prototype.clear=s,o.prototype.delete=f,o.prototype.get=d,o.prototype.has=c,o.prototype.set=l,t.exports=o},function(t,i,n){var o=n(1),a=o.Uint8Array;t.exports=a},function(t,i,n){function o(v,g){var p=f(v),y=!p&&s(v),m=!p&&!y&&d(v),x=!p&&!y&&!m&&l(v),b=p||y||m||x,E=b?a(v.length,String):[],S=E.length;for(var w in v)!g&&!h.call(v,w)||b&&(w=="length"||m&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||c(w,S))||E.push(w);return E}var a=n(53),s=n(27),f=n(28),d=n(29),c=n(24),l=n(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,i,n){function o(c,l,u){var h=c[l];d.call(c,l)&&s(h,u)&&(u!==void 0||l in c)||a(c,l,u)}var a=n(10),s=n(8),f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){var o=n(0),a=Object.create,s=(function(){function f(){}return function(d){if(!o(d))return{};if(a)return a(d);f.prototype=d;var c=new f;return f.prototype=void 0,c}})();t.exports=s},function(t,i,n){var o=n(62),a=o();t.exports=a},function(t,i,n){function o(d){return s(d)&&a(d)==f}var a=n(5),s=n(2),f="[object Arguments]";t.exports=o},function(t,i,n){function o(p){return!(!f(p)||s(p))&&(a(p)?g:c).test(d(p))}var a=n(13),s=n(74),f=n(0),d=n(97),c=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,v=u.hasOwnProperty,g=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,i,n){function o(c){return f(c)&&s(c.length)&&!!d[a(c)]}var a=n(5),s=n(30),f=n(2),d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Arguments]"]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d["[object Map]"]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1,t.exports=o},function(t,i,n){function o(l){if(!a(l))return f(l);var u=s(l),h=[];for(var v in l)(v!="constructor"||!u&&c.call(l,v))&&h.push(v);return h}var a=n(0),s=n(25),f=n(85),d=Object.prototype,c=d.hasOwnProperty;t.exports=o},function(t,i,n){function o(b,E,S,w,_,A,R){var C=b[S],O=E[S],j=R.get(O);if(j)return void a(b,S,j);var k=A?A(C,O,S+"",b,E,R):void 0,I=k===void 0;if(I){var B=u(O),V=!B&&v(O),W=!B&&!V&&m(O);k=O,B||V||W?u(C)?k=C:h(C)?k=d(C):V?(I=!1,k=s(O,!0)):W?(I=!1,k=f(O,!0)):k=[]:y(O)||l(O)?(k=C,l(C)?k=x(C):(!p(C)||w&&g(C))&&(k=c(O))):I=!1}I&&(R.set(O,k),_(k,O,w,A,R),R.delete(O)),a(b,S,k)}var a=n(18),s=n(56),f=n(57),d=n(58),c=n(71),l=n(27),u=n(28),h=n(99),v=n(29),g=n(13),p=n(0),y=n(100),m=n(31),x=n(103);t.exports=o},function(t,i,n){var o=n(98),a=n(21),s=n(26),f=a?function(d,c){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(c),writable:!0})}:s;t.exports=f},function(t,i){function n(o,a){for(var s=-1,f=Array(o);++s<o;)f[s]=a(s);return f}t.exports=n},function(t,i){function n(o){return function(a){return o(a)}}t.exports=n},function(t,i,n){function o(s){var f=new s.constructor(s.byteLength);return new a(f).set(new a(s)),f}var a=n(42);t.exports=o},function(t,i,n){(function(o){function a(h,v){if(v)return h.slice();var g=h.length,p=u?u(g):new h.constructor(g);return h.copy(p),p}var s=n(1),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(i,n(14)(t))},function(t,i,n){function o(s,f){var d=f?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=n(55);t.exports=o},function(t,i){function n(o,a){var s=-1,f=o.length;for(a||(a=Array(f));++s<f;)a[s]=o[s];return a}t.exports=n},function(t,i,n){function o(f,d,c,l){var u=!c;c||(c={});for(var h=-1,v=d.length;++h<v;){var g=d[h],p=l?l(c[g],f[g],g,c,f):void 0;p===void 0&&(p=f[g]),u?s(c,g,p):a(c,g,p)}return c}var a=n(44),s=n(10);t.exports=o},function(t,i,n){var o=n(1),a=o["__core-js_shared__"];t.exports=a},function(t,i,n){function o(f){return a(function(d,c){var l=-1,u=c.length,h=u>1?c[u-1]:void 0,v=u>2?c[2]:void 0;for(h=f.length>3&&typeof h=="function"?(u--,h):void 0,v&&s(c[0],c[1],v)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var g=c[l];g&&f(d,g,l,h)}return d})}var a=n(20),s=n(72);t.exports=o},function(t,i){function n(o){return function(a,s,f){for(var d=-1,c=Object(a),l=f(a),u=l.length;u--;){var h=l[o?u:++d];if(s(c[h],h,c)===!1)break}return a}}t.exports=n},function(t,i,n){function o(f,d,c,l,u,h){return s(f)&&s(d)&&(h.set(d,f),a(f,d,void 0,o,h),h.delete(d)),f}var a=n(19),s=n(0);t.exports=o},function(t,i,n){function o(l){var u=f.call(l,c),h=l[c];try{l[c]=void 0}catch{}var v=d.call(l);return u?l[c]=h:delete l[c],v}var a=n(16),s=Object.prototype,f=s.hasOwnProperty,d=s.toString,c=a?a.toStringTag:void 0;t.exports=o},function(t,i){function n(o,a){return o?.[a]}t.exports=n},function(t,i,n){function o(){this.__data__=a?a(null):{},this.size=0}var a=n(7);t.exports=o},function(t,i){function n(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=n},function(t,i,n){function o(c){var l=this.__data__;if(a){var u=l[c];return u===s?void 0:u}return d.call(l,c)?l[c]:void 0}var a=n(7),s="__lodash_hash_undefined__",f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){function o(d){var c=this.__data__;return a?c[d]!==void 0:f.call(c,d)}var a=n(7),s=Object.prototype,f=s.hasOwnProperty;t.exports=o},function(t,i,n){function o(f,d){var c=this.__data__;return this.size+=this.has(f)?0:1,c[f]=a&&d===void 0?s:d,this}var a=n(7),s="__lodash_hash_undefined__";t.exports=o},function(t,i,n){function o(d){return typeof d.constructor!="function"||f(d)?{}:a(s(d))}var a=n(45),s=n(23),f=n(25);t.exports=o},function(t,i,n){function o(c,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&f(l,u.length):h=="string"&&l in u)&&a(u[l],c)}var a=n(8),s=n(12),f=n(24),d=n(0);t.exports=o},function(t,i){function n(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=n},function(t,i,n){function o(f){return!!s&&s in f}var a=n(60),s=(function(){var f=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})();t.exports=o},function(t,i){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,i,n){function o(d){var c=this.__data__,l=a(c,d);return!(l<0)&&(l==c.length-1?c.pop():f.call(c,l,1),--this.size,!0)}var a=n(4),s=Array.prototype,f=s.splice;t.exports=o},function(t,i,n){function o(s){var f=this.__data__,d=a(f,s);return d<0?void 0:f[d][1]}var a=n(4);t.exports=o},function(t,i,n){function o(s){return a(this.__data__,s)>-1}var a=n(4);t.exports=o},function(t,i,n){function o(s,f){var d=this.__data__,c=a(d,s);return c<0?(++this.size,d.push([s,f])):d[c][1]=f,this}var a=n(4);t.exports=o},function(t,i,n){function o(){this.size=0,this.__data__={hash:new a,map:new(f||s),string:new a}}var a=n(39),s=n(3),f=n(15);t.exports=o},function(t,i,n){function o(s){var f=a(this,s).delete(s);return this.size-=f?1:0,f}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).get(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).has(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s,f){var d=a(this,s),c=d.size;return d.set(s,f),this.size+=d.size==c?0:1,this}var a=n(6);t.exports=o},function(t,i){function n(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=n},function(t,i,n){(function(o){var a=n(22),s=typeof i=="object"&&i&&!i.nodeType&&i,f=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=f&&f.exports===s,c=d&&a.process,l=(function(){try{return c&&c.binding&&c.binding("util")}catch{}})();o.exports=l}).call(i,n(14)(t))},function(t,i){function n(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=n},function(t,i){function n(o,a){return function(s){return o(a(s))}}t.exports=n},function(t,i,n){function o(f,d,c){return d=s(d===void 0?f.length-1:d,0),function(){for(var l=arguments,u=-1,h=s(l.length-d,0),v=Array(h);++u<h;)v[u]=l[d+u];u=-1;for(var g=Array(d+1);++u<d;)g[u]=l[u];return g[d]=c(v),a(f,this,g)}}var a=n(17),s=Math.max;t.exports=o},function(t,i,n){var o=n(52),a=n(91),s=a(o);t.exports=s},function(t,i){function n(f){var d=0,c=0;return function(){var l=s(),u=a-(l-c);if(c=l,u>0){if(++d>=o)return arguments[0]}else d=0;return f.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=n},function(t,i,n){function o(){this.__data__=new a,this.size=0}var a=n(3);t.exports=o},function(t,i){function n(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=n},function(t,i){function n(o){return this.__data__.get(o)}t.exports=n},function(t,i){function n(o){return this.__data__.has(o)}t.exports=n},function(t,i,n){function o(c,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([c,l]),this.size=++u.size,this;u=this.__data__=new f(h)}return u.set(c,l),this.size=u.size,this}var a=n(3),s=n(15),f=n(40),d=200;t.exports=o},function(t,i){function n(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=n},function(t,i){function n(o){return function(){return o}}t.exports=n},function(t,i,n){function o(f){return s(f)&&a(f)}var a=n(12),s=n(2);t.exports=o},function(t,i,n){function o(g){if(!f(g)||a(g)!=d)return!1;var p=s(g);if(p===null)return!0;var y=h.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==v}var a=n(5),s=n(23),f=n(2),d="[object Object]",c=Function.prototype,l=Object.prototype,u=c.toString,h=l.hasOwnProperty,v=u.call(Object);t.exports=o},function(t,i,n){var o=n(19),a=n(61),s=a(function(f,d,c,l){o(f,d,c,l)});t.exports=s},function(t,i){function n(){return!1}t.exports=n},function(t,i,n){function o(f){return a(f,s(f))}var a=n(59),s=n(32);t.exports=o},function(t,i){t.exports=`<svg viewbox="0 0 18 18">
|
|
1
|
+
"use strict";const P=require("./jsx-runtime-CeSfJrVB.cjs"),Ce=require("@ant-design/icons"),X=require("antd"),z=require("react"),Xi=require("./SearchBoxContext-DnQGaRgo.cjs"),Fe=require("./apiUtils-CudW_FKE.cjs"),eh=require("react-rnd"),$n=require("react-dom"),Nn=require("./favoriteStore-BXBziAgB.cjs"),qv=require("./LoadingOverlay-NX9Mo_6n.cjs"),Vv=require("dayjs"),Ct=require("realgrid"),gu=require("realgrid-react"),We=require("./BwgCheck-Dtzr-6rg.cjs"),zv=require("./AuthContext-CXng9fj0.cjs"),yu=require("react-router-dom");function th(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const In=th(Ce),M=th(z),Hv=({grpId:e,menuId:r,btnEvent:t,layout:i="horizontal",size:n="middle",style:o,className:a,onButtonClick:s})=>{const f=Xi.useServiceCodeValue("AUTH_BTNS"),{user:d}=Fe.useUserStore(),[c,l]=z.useState([]),[u,h]=z.useState(!0),[v,g]=z.useState(null),[p,y]=z.useState({}),m=async()=>{try{h(!0),g(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const E=await Fe.callService(f,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",E),E?.data&&Array.isArray(E.data)){const S=E.data.sort((w,_)=>w.btnSq-_.btnSq);l(S)}else l([])}catch(E){console.error("버튼 권한 조회 실패:",E),g("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};z.useEffect(()=>{m()},[e,r]);const x=async(E,S)=>{y(w=>({...w,[E]:{loading:!0}}));try{const w=t?.[E];w?await w():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${E}`),s&&s(E,S,e)}catch(w){console.error("버튼 이벤트 실행 실패:",w),X.message.error("작업 중 오류가 발생했습니다.")}finally{y(w=>({...w,[E]:{loading:!1}}))}},b=E=>{const S=p[E.btnId]||{loading:!1};return P.jsxRuntimeExports.jsxs(X.Button,{size:n,loading:S.loading,onClick:()=>x(E.btnId,E.btnNm),className:"bwg-btn",style:{...E.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[E.iconVal&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[E.iconType==="ANTD"&&In[E.iconVal]&&z.createElement(In[E.iconVal],{style:{fontSize:"14px"}}),E.iconType!=="ANTD"&&P.jsxRuntimeExports.jsx("span",{className:E.iconVal,style:{fontSize:"14px"}})]}),E.btnNm]},E.btnId)};return u?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Space,{direction:i==="vertical"?"vertical":"horizontal",size:n,children:P.jsxRuntimeExports.jsx(X.Button,{loading:!0,size:n,children:"권한 조회 중..."})})}):v?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"권한 오류",description:v,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):c.length===0?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Flex,{gap:3,children:c.map(b)})})},Uv=({content:e,layout:r="flex",gap:t=16,minWidth:i=120,maxWidth:n=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return P.jsxRuntimeExports.jsx("div",{style:o,className:a,children:e});const f=e.filter(h=>h&&h.length>0),d=z.useMemo(()=>{const h=f[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let v=0;const g=[];h.forEach(y=>{const m=y,x=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;v+=x,g.push(x)});const p=v>0?100/v:0;return{totalCols:v,baseWidth:p,componentWidths:g}},[f]),c=(h,v,g)=>{const p=h,y=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(r){case"equal":return 100/g;case"auto":return 100/g;case"grid":return 100/d.totalCols*y;case"flex":default:const m=d.baseWidth*y;return Math.max(i,Math.min(n,m))}},l=h=>{if(!h||typeof h!="object")return h;const v=h;if(!v.props)return h;const p={...v.props.style||{},width:"100%"};return z.cloneElement(v,{...v.props,style:p})},u=(h,v)=>{if(!h||h.length===0)return null;const g=h.length;return r==="grid"?P.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((p,y)=>{const m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,x=l(p);return P.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${m}`,minWidth:`${i}px`},className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`):P.jsxRuntimeExports.jsx(X.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((p,y)=>{const m=c(p,y,g),x=l(p),b=r==="flex"?{width:`${m}px`,minWidth:`${i}px`,maxWidth:`${n}px`,flexShrink:0}:{width:`${m}%`,minWidth:`${i}px`};return P.jsxRuntimeExports.jsx("div",{style:b,className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`)};return P.jsxRuntimeExports.jsx(X.Flex,{gap:"small",vertical:!0,style:o,className:a,children:f.map((h,v)=>u(h,v+1))})},Wv=({children:e,...r})=>P.jsxRuntimeExports.jsx(X.Col,{...r,className:"bwg-col",children:e});var bn={},To={exports:{}},bu;function Zi(){return bu||(bu=1,(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(To)),To.exports}var xn={},xu;function Kv(){if(xu)return xn;xu=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var e={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 xn.default=e,xn}var En={},wn={},Sn={},ko={exports:{}},Po={exports:{}},No={exports:{}},Io={exports:{}},Eu;function rh(){return Eu||(Eu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Io)),Io.exports}var Mo={exports:{}},wu;function Gv(){return wu||(wu=1,(function(e){var r=rh().default;function t(i,n){if(r(i)!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,n||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Mo)),Mo.exports}var Su;function Yv(){return Su||(Su=1,(function(e){var r=rh().default,t=Gv();function i(n){var o=t(n,"string");return r(o)=="symbol"?o:o+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(No)),No.exports}var _u;function Xv(){return _u||(_u=1,(function(e){var r=Yv();function t(i,n,o){return(n=r(n))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Po)),Po.exports}var Cu;function Zv(){return Cu||(Cu=1,(function(e){var r=Xv();function t(n,o){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);o&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),a.push.apply(a,s)}return a}function i(n){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?t(Object(a),!0).forEach(function(s){r(n,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(a,s))})}return n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(ko)),ko.exports}var _n={},Ou;function Qv(){return Ou||(Ou=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.commonLocale=void 0,_n.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),_n}var Ru;function Jv(){if(Ru)return Sn;Ru=1;var e=Zi().default;Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var r=e(Zv()),t=Qv(),i=(0,r.default)((0,r.default)({},t.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 Sn.default=i,Sn}var Cn={},ju;function nh(){if(ju)return Cn;ju=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Cn.default=e,Cn}var Au;function ih(){if(Au)return wn;Au=1;var e=Zi().default;Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var r=e(Jv()),t=e(nh());const i={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({},t.default)};return wn.default=i,wn}var Tu;function em(){if(Tu)return En;Tu=1;var e=Zi().default;Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0;var r=e(ih());return En.default=r.default,En}var ku;function tm(){if(ku)return bn;ku=1;var e=Zi().default;Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var r=e(Kv()),t=e(em()),i=e(ih()),n=e(nh());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:i.default,TimePicker:n.default,Calendar:t.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:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},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 bn.default=a,bn}var Lo,Pu;function rm(){return Pu||(Pu=1,Lo=tm()),Lo}var nm=rm();const oh=Fe.getDefaultExportFromCjs(nm),Dl=({children:e,customTheme:r,customComponentSize:t="middle",layout:i="comfortable",getPopupContainer:n})=>{const a=(()=>{const f={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:X.theme.defaultAlgorithm};switch(i){case"compact":return{...f,token:{...f.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...f,token:{...f.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...f,token:{...f.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),s={...a,...r,token:{...a.token,...r?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...r?.components??{}}};return P.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:oh,theme:s,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:n,children:e})},im=({children:e})=>{const{activeDetailItem:r}=Fe.useMenuViewStore();return P.jsxRuntimeExports.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:P.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[P.jsxRuntimeExports.jsx(X.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},Qi=({title:e,icons:r,tooltip:t,iconVisible:i=!0,paddingBottom:n=0,marginBottom:o=0,children:a})=>{const s=In.AppstoreTwoTone;return z.useMemo(()=>r?.type==="antd"&&r.icon&&In[r.icon]||s,[r?.type,r?.icon]),P.jsxRuntimeExports.jsx(X.Flex,{vertical:!0,style:{width:"100%"},children:P.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${n?`pb${n}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[P.jsxRuntimeExports.jsx(X.Typography.Title,{level:4,children:P.jsxRuntimeExports.jsx("span",{children:e})}),t&&P.jsxRuntimeExports.jsx(X.Tooltip,{title:t.title,placement:t.placement,children:P.jsxRuntimeExports.jsx(In.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:P.jsxRuntimeExports.jsx(X.Flex,{gap:6,children:a})})]})})},{Panel:Nu}=X.Collapse,Ji=z.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:i,header:n},o)=>{const[a]=X.Form.useForm(),[s,f]=z.useState("1"),d=()=>i?{flex:i.md||i.lg||i.sm||"100px"}:{flex:"100px"};z.useImperativeHandle(o,()=>({getFormData:()=>a.getFieldsValue(),setFormData:l=>{a.setFieldsValue(l)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(l){return{success:!1,error:l}}}}));const c=()=>{f(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return P.jsxRuntimeExports.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[n&&P.jsxRuntimeExports.jsx(Qi,{title:n.title,children:n.buttons}),P.jsxRuntimeExports.jsx(X.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||r?"10px":"0px"},labelCol:d(),labelAlign:"left",children:P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?P.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})}):P.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})})}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Collapse:{}}},children:P.jsxRuntimeExports.jsxs(X.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:f,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),om=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:i=!1,shotSettingButton:n=!0,styles:o,...a})=>{const[s,f]=z.useState(!0),[d,c]=z.useState(()=>{const y=a.placement;return y==="left"||y==="right"||y==="top"||y==="bottom"?y:"bottom"}),[l,u]=z.useState(!1),v=(y=>{const m={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(y){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(d),g={wrapper:{...v?.wrapper,...o?.wrapper},content:{...v?.content,...o?.content},header:{...v?.header,...o?.header}},p=()=>{const y=[];if(n){const m=[{key:"top",label:"상단",icon:P.jsxRuntimeExports.jsx(Ce.CaretUpOutlined,{})},{key:"right",label:"우측",icon:P.jsxRuntimeExports.jsx(Ce.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:P.jsxRuntimeExports.jsx(Ce.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:P.jsxRuntimeExports.jsx(Ce.CaretLeftOutlined,{})}],x=P.jsxRuntimeExports.jsx(X.Space.Compact,{children:m.map(b=>P.jsxRuntimeExports.jsx(X.Button,{type:d===b.key?"primary":"default",size:"small",onClick:()=>{c(b.key),u(!1)},icon:b.icon},b.key))});y.push(P.jsxRuntimeExports.jsx(X.Popover,{content:x,trigger:"click",placement:"left",open:l,onOpenChange:u,children:P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return i&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>f(!s)})},"eyes")),a.extra&&y.push(P.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),y};return P.jsxRuntimeExports.jsx(X.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:g,maskClosable:!1,closable:!1,mask:s,extra:P.jsxRuntimeExports.jsx(X.Space,{size:"small",align:"center",children:p()}),afterOpenChange:y=>{y||(f(!0),c(a.placement)),a.afterOpenChange?.(y)},destroyOnHidden:!0,children:r?P.jsxRuntimeExports.jsxs(jr,{type:"vertical",children:[P.jsxRuntimeExports.jsxs(X.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[P.jsxRuntimeExports.jsx("div",{children:r.title}),P.jsxRuntimeExports.jsx(X.Flex,{gap:2,children:r.extra})]}),P.jsxRuntimeExports.jsx(Ji,{...r.searchBox}),P.jsxRuntimeExports.jsx(X.Divider,{}),e]}):e})};var ki={exports:{}},am=ki.exports,Iu;function sm(){return Iu||(Iu=1,(function(e,r){(function(t,i){e.exports=i()})(am,function(){return(function(t){function i(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var n={};return i.m=t,i.c=n,i.i=function(o){return o},i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=38)})([function(t,i){function n(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=n},function(t,i,n){var o=n(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,i){function n(o){return o!=null&&typeof o=="object"}t.exports=n},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(75),s=n(76),f=n(77),d=n(78),c=n(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(s,f){for(var d=s.length;d--;)if(a(s[d][0],f))return d;return-1}var a=n(8);t.exports=o},function(t,i,n){function o(u){return u==null?u===void 0?c:d:l&&l in Object(u)?s(u):f(u)}var a=n(16),s=n(64),f=n(87),d="[object Null]",c="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,i,n){function o(s,f){var d=s.__data__;return a(f)?d[typeof f=="string"?"string":"hash"]:d.map}var a=n(73);t.exports=o},function(t,i,n){var o=n(11),a=o(Object,"create");t.exports=a},function(t,i){function n(o,a){return o===a||o!==o&&a!==a}t.exports=n},function(t,i,n){function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}n.d(i,"a",function(){return a});var a=function s(f){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=f.overlay,this.img=f.img,this.options=f.options,this.requestUpdate=f.onUpdate}},function(t,i,n){function o(s,f,d){f=="__proto__"&&a?a(s,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[f]=d}var a=n(21);t.exports=o},function(t,i,n){function o(f,d){var c=s(f,d);return a(c)?c:void 0}var a=n(48),s=n(65);t.exports=o},function(t,i,n){function o(f){return f!=null&&s(f.length)&&!a(f)}var a=n(13),s=n(30);t.exports=o},function(t,i,n){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==c||h==f||h==l}var a=n(5),s=n(0),f="[object AsyncFunction]",d="[object Function]",c="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,i){t.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(t,i,n){var o=n(11),a=n(1),s=o(a,"Map");t.exports=s},function(t,i,n){var o=n(1),a=o.Symbol;t.exports=a},function(t,i){function n(o,a,s){switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}t.exports=n},function(t,i,n){function o(f,d,c){(c===void 0||s(f[d],c))&&(c!==void 0||d in f)||a(f,d,c)}var a=n(10),s=n(8);t.exports=o},function(t,i,n){function o(u,h,v,g,p){u!==h&&f(h,function(y,m){if(c(y))p||(p=new a),d(u,h,m,v,o,g,p);else{var x=g?g(u[m],y,m+"",u,h,p):void 0;x===void 0&&(x=y),s(u,m,x)}},l)}var a=n(41),s=n(18),f=n(46),d=n(51),c=n(0),l=n(32);t.exports=o},function(t,i,n){function o(d,c){return f(s(d,c,a),d+"")}var a=n(26),s=n(89),f=n(90);t.exports=o},function(t,i,n){var o=n(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,i,n){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(i,n(107))},function(t,i,n){var o=n(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,i){function n(s,f){return!!(f=f??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<f}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,i){function n(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=n},function(t,i){function n(o){return o}t.exports=n},function(t,i,n){var o=n(47),a=n(2),s=Object.prototype,f=s.hasOwnProperty,d=s.propertyIsEnumerable,c=o((function(){return arguments})())?o:function(l){return a(l)&&f.call(l,"callee")&&!d.call(l,"callee")};t.exports=c},function(t,i){var n=Array.isArray;t.exports=n},function(t,i,n){(function(o){var a=n(1),s=n(102),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(i,n(14)(t))},function(t,i){function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=n},function(t,i,n){var o=n(49),a=n(54),s=n(86),f=s&&s.isTypedArray,d=f?a(f):o;t.exports=d},function(t,i,n){function o(d){return f(d)?a(d,!0):s(d)}var a=n(43),s=n(50),f=n(12);t.exports=o},function(t,i,n){i.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.display=document.createElement("div"),Object.assign(v.display.style,v.options.displayStyles),v.overlay.appendChild(v.display)},v.onDestroy=function(){},v.onUpdate=function(){if(v.display&&v.img){var x=v.getCurrentSize();if(v.display.innerHTML=x.join(" × "),x[0]>120&&x[1]>30)Object.assign(v.display.style,{right:"4px",bottom:"4px",left:"auto"});else if(v.img.style.float=="right"){var b=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"auto",bottom:"-"+(b.height+4)+"px",left:"-"+(b.width+4)+"px"})}else{var E=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"-"+(E.width+4)+"px",bottom:"-"+(E.height+4)+"px",left:"auto"})}}},v.getCurrentSize=function(){return[v.img.width,Math.round(v.img.width/v.img.naturalWidth*v.img.naturalHeight)]},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.boxes=[],v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.positionBoxes()},v.onDestroy=function(){v.setCursor("")},v.positionBoxes=function(){var x=-parseFloat(v.options.handleStyles.width)/2+"px",b=-parseFloat(v.options.handleStyles.height)/2+"px";[{left:x,top:b},{right:x,top:b},{right:x,bottom:b},{left:x,bottom:b}].forEach(function(E,S){Object.assign(v.boxes[S].style,E)})},v.addBox=function(x){var b=document.createElement("div");Object.assign(b.style,v.options.handleStyles),b.style.cursor=x,b.style.width=v.options.handleStyles.width+"px",b.style.height=v.options.handleStyles.height+"px",b.addEventListener("mousedown",v.handleMousedown,!1),v.overlay.appendChild(b),v.boxes.push(b)},v.handleMousedown=function(x){v.dragBox=x.target,v.dragStartX=x.clientX,v.preDragWidth=v.img.width||v.img.naturalWidth,v.setCursor(v.dragBox.style.cursor),document.addEventListener("mousemove",v.handleDrag,!1),document.addEventListener("mouseup",v.handleMouseup,!1)},v.handleMouseup=function(){v.setCursor(""),document.removeEventListener("mousemove",v.handleDrag),document.removeEventListener("mouseup",v.handleMouseup)},v.handleDrag=function(x){if(v.img){var b=x.clientX-v.dragStartX;v.dragBox===v.boxes[0]||v.dragBox===v.boxes[3]?v.img.width=Math.round(v.preDragWidth-b):v.img.width=Math.round(v.preDragWidth+b),v.requestUpdate()}},v.setCursor=function(x){[document.body,v.img].forEach(function(b){b.style.cursor=x})},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function a(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||typeof E!="object"&&typeof E!="function"?b:E}function s(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var f=n(105),d=n.n(f),c=n(104),l=n.n(c),u=n(106),h=n.n(u),v=n(9);n.d(i,"a",function(){return x});var g={},p={},y={},m={},x=(function(b){function E(){var S,w,_,A;o(this,E);for(var R=arguments.length,C=Array(R),O=0;O<R;O++)C[O]=arguments[O];return w=_=a(this,(S=E.__proto__||Object.getPrototypeOf(E)).call.apply(S,[this].concat(C))),_.onCreate=function(j){g=j,p=new g.Attributor.Style("float","float"),y=new g.Attributor.Style("margin","margin"),m=new g.Attributor.Style("display","display"),_.toolbar=document.createElement("div"),Object.assign(_.toolbar.style,_.options.toolbarStyles),_.overlay.appendChild(_.toolbar),_._defineAlignments(),_._addToolbarButtons()},_.onDestroy=function(){},_.onUpdate=function(){},_._defineAlignments=function(){_.alignments=[{icon:d.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"left"),y.add(_.img,"0 1em 1em 0")},isApplied:function(){return p.value(_.img)=="left"}},{icon:l.a,apply:function(){m.add(_.img,"block"),p.remove(_.img),y.add(_.img,"auto")},isApplied:function(){return y.value(_.img)=="auto"}},{icon:h.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"right"),y.add(_.img,"0 0 1em 1em")},isApplied:function(){return p.value(_.img)=="right"}}]},_._addToolbarButtons=function(){var j=[];_.alignments.forEach(function(k,I){var B=document.createElement("span");j.push(B),B.innerHTML=k.icon,B.addEventListener("click",function(){j.forEach(function(V){return V.style.filter=""}),k.isApplied()?(p.remove(_.img),y.remove(_.img),m.remove(_.img)):(_._selectButton(B),k.apply()),_.requestUpdate()}),Object.assign(B.style,_.options.toolbarButtonStyles),I>0&&(B.style.borderLeftWidth="0"),Object.assign(B.children[0].style,_.options.toolbarButtonSvgStyles),k.isApplied()&&_._selectButton(B),_.toolbar.appendChild(B)})},_._selectButton=function(j){j.style.filter="invert(20%)"},A=w,a(_,A)}return s(E,b),E})(v.a)},function(t,i,n){var o=n(17),a=n(20),s=n(63),f=n(101),d=a(function(c){return c.push(void 0,s),o(f,void 0,c)});t.exports=d},function(t,i,n){function o(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0});var a=n(37),s=n.n(a),f=n(33),d=n(34),c=n(36),l=n(35),u={DisplaySize:d.a,Toolbar:c.a,Resize:l.a},h=function v(g){var p=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,v),this.initializeModules=function(){p.removeModules(),p.modules=p.moduleClasses.map(function(x){return new(u[x]||x)(p)}),p.modules.forEach(function(x){x.onCreate(p.parchment)}),p.onUpdate()},this.onUpdate=function(){p.repositionElements(),p.modules.forEach(function(x){x.onUpdate()})},this.removeModules=function(){p.modules.forEach(function(x){x.onDestroy()}),p.modules=[]},this.handleClick=function(x){if(x.target&&x.target.tagName&&x.target.tagName.toUpperCase()==="IMG"){if(p.img===x.target)return;p.img&&p.hide(),p.show(x.target)}else p.img&&p.hide()},this.show=function(x){p.img=x,p.showOverlay(),p.initializeModules()},this.showOverlay=function(){p.overlay&&p.hideOverlay(),p.quill.setSelection(null),p.setUserSelect("none"),document.addEventListener("keyup",p.checkImage,!0),p.quill.root.addEventListener("input",p.checkImage,!0),p.overlay=document.createElement("div"),Object.assign(p.overlay.style,p.options.overlayStyles),p.quill.root.parentNode.appendChild(p.overlay),p.repositionElements()},this.hideOverlay=function(){p.overlay&&(p.quill.root.parentNode.removeChild(p.overlay),p.overlay=void 0,document.removeEventListener("keyup",p.checkImage),p.quill.root.removeEventListener("input",p.checkImage),p.setUserSelect(""))},this.repositionElements=function(){if(p.overlay&&p.img){var x=p.quill.root.parentNode,b=p.img.getBoundingClientRect(),E=x.getBoundingClientRect();Object.assign(p.overlay.style,{left:b.left-E.left-1+x.scrollLeft+"px",top:b.top-E.top+x.scrollTop+"px",width:b.width+"px",height:b.height+"px"})}},this.hide=function(){p.hideOverlay(),p.removeModules(),p.img=void 0},this.setUserSelect=function(x){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(b){p.quill.root.style[b]=x,document.documentElement.style[b]=x})},this.checkImage=function(x){p.img&&(x.keyCode!=46&&x.keyCode!=8||window.Quill.find(p.img).deleteAt(0),p.hide())},this.quill=g;var m=!1;y.modules&&(m=y.modules.slice()),y.parchment&&(this.parchment=y.parchment),this.options=s()({},y,f.a),m!==!1&&(this.options.modules=m),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};i.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(66),s=n(67),f=n(68),d=n(69),c=n(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(80),s=n(81),f=n(82),d=n(83),c=n(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=n(3),s=n(92),f=n(93),d=n(94),c=n(95),l=n(96);o.prototype.clear=s,o.prototype.delete=f,o.prototype.get=d,o.prototype.has=c,o.prototype.set=l,t.exports=o},function(t,i,n){var o=n(1),a=o.Uint8Array;t.exports=a},function(t,i,n){function o(v,g){var p=f(v),y=!p&&s(v),m=!p&&!y&&d(v),x=!p&&!y&&!m&&l(v),b=p||y||m||x,E=b?a(v.length,String):[],S=E.length;for(var w in v)!g&&!h.call(v,w)||b&&(w=="length"||m&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||c(w,S))||E.push(w);return E}var a=n(53),s=n(27),f=n(28),d=n(29),c=n(24),l=n(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,i,n){function o(c,l,u){var h=c[l];d.call(c,l)&&s(h,u)&&(u!==void 0||l in c)||a(c,l,u)}var a=n(10),s=n(8),f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){var o=n(0),a=Object.create,s=(function(){function f(){}return function(d){if(!o(d))return{};if(a)return a(d);f.prototype=d;var c=new f;return f.prototype=void 0,c}})();t.exports=s},function(t,i,n){var o=n(62),a=o();t.exports=a},function(t,i,n){function o(d){return s(d)&&a(d)==f}var a=n(5),s=n(2),f="[object Arguments]";t.exports=o},function(t,i,n){function o(p){return!(!f(p)||s(p))&&(a(p)?g:c).test(d(p))}var a=n(13),s=n(74),f=n(0),d=n(97),c=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,v=u.hasOwnProperty,g=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,i,n){function o(c){return f(c)&&s(c.length)&&!!d[a(c)]}var a=n(5),s=n(30),f=n(2),d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Arguments]"]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d["[object Map]"]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1,t.exports=o},function(t,i,n){function o(l){if(!a(l))return f(l);var u=s(l),h=[];for(var v in l)(v!="constructor"||!u&&c.call(l,v))&&h.push(v);return h}var a=n(0),s=n(25),f=n(85),d=Object.prototype,c=d.hasOwnProperty;t.exports=o},function(t,i,n){function o(b,E,S,w,_,A,R){var C=b[S],O=E[S],j=R.get(O);if(j)return void a(b,S,j);var k=A?A(C,O,S+"",b,E,R):void 0,I=k===void 0;if(I){var B=u(O),V=!B&&v(O),W=!B&&!V&&m(O);k=O,B||V||W?u(C)?k=C:h(C)?k=d(C):V?(I=!1,k=s(O,!0)):W?(I=!1,k=f(O,!0)):k=[]:y(O)||l(O)?(k=C,l(C)?k=x(C):(!p(C)||w&&g(C))&&(k=c(O))):I=!1}I&&(R.set(O,k),_(k,O,w,A,R),R.delete(O)),a(b,S,k)}var a=n(18),s=n(56),f=n(57),d=n(58),c=n(71),l=n(27),u=n(28),h=n(99),v=n(29),g=n(13),p=n(0),y=n(100),m=n(31),x=n(103);t.exports=o},function(t,i,n){var o=n(98),a=n(21),s=n(26),f=a?function(d,c){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(c),writable:!0})}:s;t.exports=f},function(t,i){function n(o,a){for(var s=-1,f=Array(o);++s<o;)f[s]=a(s);return f}t.exports=n},function(t,i){function n(o){return function(a){return o(a)}}t.exports=n},function(t,i,n){function o(s){var f=new s.constructor(s.byteLength);return new a(f).set(new a(s)),f}var a=n(42);t.exports=o},function(t,i,n){(function(o){function a(h,v){if(v)return h.slice();var g=h.length,p=u?u(g):new h.constructor(g);return h.copy(p),p}var s=n(1),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(i,n(14)(t))},function(t,i,n){function o(s,f){var d=f?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=n(55);t.exports=o},function(t,i){function n(o,a){var s=-1,f=o.length;for(a||(a=Array(f));++s<f;)a[s]=o[s];return a}t.exports=n},function(t,i,n){function o(f,d,c,l){var u=!c;c||(c={});for(var h=-1,v=d.length;++h<v;){var g=d[h],p=l?l(c[g],f[g],g,c,f):void 0;p===void 0&&(p=f[g]),u?s(c,g,p):a(c,g,p)}return c}var a=n(44),s=n(10);t.exports=o},function(t,i,n){var o=n(1),a=o["__core-js_shared__"];t.exports=a},function(t,i,n){function o(f){return a(function(d,c){var l=-1,u=c.length,h=u>1?c[u-1]:void 0,v=u>2?c[2]:void 0;for(h=f.length>3&&typeof h=="function"?(u--,h):void 0,v&&s(c[0],c[1],v)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var g=c[l];g&&f(d,g,l,h)}return d})}var a=n(20),s=n(72);t.exports=o},function(t,i){function n(o){return function(a,s,f){for(var d=-1,c=Object(a),l=f(a),u=l.length;u--;){var h=l[o?u:++d];if(s(c[h],h,c)===!1)break}return a}}t.exports=n},function(t,i,n){function o(f,d,c,l,u,h){return s(f)&&s(d)&&(h.set(d,f),a(f,d,void 0,o,h),h.delete(d)),f}var a=n(19),s=n(0);t.exports=o},function(t,i,n){function o(l){var u=f.call(l,c),h=l[c];try{l[c]=void 0}catch{}var v=d.call(l);return u?l[c]=h:delete l[c],v}var a=n(16),s=Object.prototype,f=s.hasOwnProperty,d=s.toString,c=a?a.toStringTag:void 0;t.exports=o},function(t,i){function n(o,a){return o?.[a]}t.exports=n},function(t,i,n){function o(){this.__data__=a?a(null):{},this.size=0}var a=n(7);t.exports=o},function(t,i){function n(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=n},function(t,i,n){function o(c){var l=this.__data__;if(a){var u=l[c];return u===s?void 0:u}return d.call(l,c)?l[c]:void 0}var a=n(7),s="__lodash_hash_undefined__",f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){function o(d){var c=this.__data__;return a?c[d]!==void 0:f.call(c,d)}var a=n(7),s=Object.prototype,f=s.hasOwnProperty;t.exports=o},function(t,i,n){function o(f,d){var c=this.__data__;return this.size+=this.has(f)?0:1,c[f]=a&&d===void 0?s:d,this}var a=n(7),s="__lodash_hash_undefined__";t.exports=o},function(t,i,n){function o(d){return typeof d.constructor!="function"||f(d)?{}:a(s(d))}var a=n(45),s=n(23),f=n(25);t.exports=o},function(t,i,n){function o(c,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&f(l,u.length):h=="string"&&l in u)&&a(u[l],c)}var a=n(8),s=n(12),f=n(24),d=n(0);t.exports=o},function(t,i){function n(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=n},function(t,i,n){function o(f){return!!s&&s in f}var a=n(60),s=(function(){var f=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})();t.exports=o},function(t,i){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,i,n){function o(d){var c=this.__data__,l=a(c,d);return!(l<0)&&(l==c.length-1?c.pop():f.call(c,l,1),--this.size,!0)}var a=n(4),s=Array.prototype,f=s.splice;t.exports=o},function(t,i,n){function o(s){var f=this.__data__,d=a(f,s);return d<0?void 0:f[d][1]}var a=n(4);t.exports=o},function(t,i,n){function o(s){return a(this.__data__,s)>-1}var a=n(4);t.exports=o},function(t,i,n){function o(s,f){var d=this.__data__,c=a(d,s);return c<0?(++this.size,d.push([s,f])):d[c][1]=f,this}var a=n(4);t.exports=o},function(t,i,n){function o(){this.size=0,this.__data__={hash:new a,map:new(f||s),string:new a}}var a=n(39),s=n(3),f=n(15);t.exports=o},function(t,i,n){function o(s){var f=a(this,s).delete(s);return this.size-=f?1:0,f}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).get(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).has(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s,f){var d=a(this,s),c=d.size;return d.set(s,f),this.size+=d.size==c?0:1,this}var a=n(6);t.exports=o},function(t,i){function n(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=n},function(t,i,n){(function(o){var a=n(22),s=typeof i=="object"&&i&&!i.nodeType&&i,f=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=f&&f.exports===s,c=d&&a.process,l=(function(){try{return c&&c.binding&&c.binding("util")}catch{}})();o.exports=l}).call(i,n(14)(t))},function(t,i){function n(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=n},function(t,i){function n(o,a){return function(s){return o(a(s))}}t.exports=n},function(t,i,n){function o(f,d,c){return d=s(d===void 0?f.length-1:d,0),function(){for(var l=arguments,u=-1,h=s(l.length-d,0),v=Array(h);++u<h;)v[u]=l[d+u];u=-1;for(var g=Array(d+1);++u<d;)g[u]=l[u];return g[d]=c(v),a(f,this,g)}}var a=n(17),s=Math.max;t.exports=o},function(t,i,n){var o=n(52),a=n(91),s=a(o);t.exports=s},function(t,i){function n(f){var d=0,c=0;return function(){var l=s(),u=a-(l-c);if(c=l,u>0){if(++d>=o)return arguments[0]}else d=0;return f.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=n},function(t,i,n){function o(){this.__data__=new a,this.size=0}var a=n(3);t.exports=o},function(t,i){function n(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=n},function(t,i){function n(o){return this.__data__.get(o)}t.exports=n},function(t,i){function n(o){return this.__data__.has(o)}t.exports=n},function(t,i,n){function o(c,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([c,l]),this.size=++u.size,this;u=this.__data__=new f(h)}return u.set(c,l),this.size=u.size,this}var a=n(3),s=n(15),f=n(40),d=200;t.exports=o},function(t,i){function n(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=n},function(t,i){function n(o){return function(){return o}}t.exports=n},function(t,i,n){function o(f){return s(f)&&a(f)}var a=n(12),s=n(2);t.exports=o},function(t,i,n){function o(g){if(!f(g)||a(g)!=d)return!1;var p=s(g);if(p===null)return!0;var y=h.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==v}var a=n(5),s=n(23),f=n(2),d="[object Object]",c=Function.prototype,l=Object.prototype,u=c.toString,h=l.hasOwnProperty,v=u.call(Object);t.exports=o},function(t,i,n){var o=n(19),a=n(61),s=a(function(f,d,c,l){o(f,d,c,l)});t.exports=s},function(t,i){function n(){return!1}t.exports=n},function(t,i,n){function o(f){return a(f,s(f))}var a=n(59),s=n(32);t.exports=o},function(t,i){t.exports=`<svg viewbox="0 0 18 18">
|
|
2
2
|
<line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
3
3
|
<line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>
|
|
4
4
|
<line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>
|
|
@@ -233,4 +233,4 @@ html body {
|
|
|
233
233
|
${r}-edit,
|
|
234
234
|
${r}-copy
|
|
235
235
|
`]:Object.assign(Object.assign({},Cp(e)),{marginInlineStart:e.marginXXS})}),i2(e)),o2(e)),a2()),{"&-rtl":{direction:"rtl"}})}},l2=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Nv=ei("Typography",s2,l2),u2=e=>{const{prefixCls:r,"aria-label":t,className:i,style:n,direction:o,maxLength:a,autoSize:s=!0,value:f,onSave:d,onCancel:c,onEnd:l,component:u,enterIcon:h=M.createElement(gv,null)}=e,v=M.useRef(null),g=M.useRef(!1),p=M.useRef(null),[y,m]=M.useState(f);M.useEffect(()=>{m(f)},[f]),M.useEffect(()=>{var k;if(!((k=v.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:I}=v.current.resizableTextArea;I.focus();const{length:B}=I.value;I.setSelectionRange(B,B)}},[]);const x=({target:k})=>{m(k.value.replace(/[\n\r]/g,""))},b=()=>{g.current=!0},E=()=>{g.current=!1},S=({keyCode:k})=>{g.current||(p.current=k)},w=()=>{d(y.trim())},_=({keyCode:k,ctrlKey:I,altKey:B,metaKey:V,shiftKey:W})=>{p.current!==k||g.current||I||B||V||W||(k===Bd.ENTER?(w(),l?.()):k===Bd.ESC&&c())},A=()=>{w()},[R,C,O]=Nv(r),j=ye(r,`${r}-edit-content`,{[`${r}-rtl`]:o==="rtl",[`${r}-${u}`]:!!u},i,C,O);return R(M.createElement("div",{className:j,style:n},M.createElement(Jw,{ref:v,maxLength:a,value:y,onChange:x,onKeyDown:S,onKeyUp:_,onCompositionStart:b,onCompositionEnd:E,onBlur:A,"aria-label":t,rows:1,autoSize:s}),h!==null?lv(h,{className:`${r}-edit-content-confirm`}):null))};var Fs,Kd;function c2(){return Kd||(Kd=1,Fs=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],i=0;i<e.rangeCount;i++)t.push(e.getRangeAt(i));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(n){e.addRange(n)}),r&&r.focus()}}),Fs}var $s,Gd;function f2(){if(Gd)return $s;Gd=1;var e=c2(),r={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function i(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function n(o,a){var s,f,d,c,l,u,h=!1;a||(a={}),s=a.debug||!1;try{d=e(),c=document.createRange(),l=document.getSelection(),u=document.createElement("span"),u.textContent=o,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(g){if(g.stopPropagation(),a.format)if(g.preventDefault(),typeof g.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=r[a.format]||r.default;window.clipboardData.setData(p,o)}else g.clipboardData.clearData(),g.clipboardData.setData(a.format,o);a.onCopy&&(g.preventDefault(),a.onCopy(g.clipboardData))}),document.body.appendChild(u),c.selectNodeContents(u),l.addRange(c);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");h=!0}catch(g){s&&console.error("unable to copy using execCommand: ",g),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),h=!0}catch(p){s&&console.error("unable to copy using clipboardData: ",p),s&&console.error("falling back to prompt"),f=i("message"in a?a.message:t),window.prompt(f,o)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(c):l.removeAllRanges()),u&&document.body.removeChild(u),d()}return h}return $s=n,$s}var d2=f2();const h2=Fe.getDefaultExportFromCjs(d2),p2=(e,r=!1)=>r&&e==null?[]:Array.isArray(e)?e:[e];var v2=function(e,r,t,i){function n(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(c){try{d(i.next(c))}catch(l){a(l)}}function f(c){try{d(i.throw(c))}catch(l){a(l)}}function d(c){c.done?o(c.value):n(c.value).then(s,f)}d((i=i.apply(e,r||[])).next())})};const m2=({copyConfig:e,children:r})=>{const[t,i]=M.useState(!1),[n,o]=M.useState(!1),a=M.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},f={};e.format&&(f.format=e.format),M.useEffect(()=>s,[]);const d=mt(c=>v2(void 0,void 0,void 0,function*(){var l;c?.preventDefault(),c?.stopPropagation(),o(!0);try{const u=typeof e.text=="function"?yield e.text():e.text;h2(u||p2(r,!0).join("")||"",f),o(!1),i(!0),s(),a.current=setTimeout(()=>{i(!1)},3e3),(l=e.onCopy)===null||l===void 0||l.call(e,c)}catch(u){throw o(!1),u}}));return{copied:t,copyLoading:n,onClick:d}};function Ds(e,r){return M.useMemo(()=>{const t=!!e;return[t,Object.assign(Object.assign({},r),t&&typeof e=="object"?e:null)]},[e])}const g2=e=>{const r=z.useRef(void 0);return z.useEffect(()=>{r.current=e}),r.current},y2=(e,r,t)=>z.useMemo(()=>e===!0?{title:r??t}:z.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:r??t},e):{title:e},[e,r,t]);var b2=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Iv=M.forwardRef((e,r)=>{const{prefixCls:t,component:i="article",className:n,rootClassName:o,setContentRef:a,children:s,direction:f,style:d}=e,c=b2(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:l,direction:u,className:h,style:v}=fo("typography"),g=f??u,p=a?Zn(r,a):r,y=l("typography",t);process.env.NODE_ENV!=="production"&&Kt("Typography").deprecated(!a,"setContentRef","ref");const[m,x,b]=Nv(y),E=ye(y,h,{[`${y}-rtl`]:g==="rtl"},n,o,x,b),S=Object.assign(Object.assign({},v),d);return m(M.createElement(i,Object.assign({className:E,style:S,ref:p},c),s))});process.env.NODE_ENV!=="production"&&(Iv.displayName="Typography");var x2={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"},E2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:x2}))},Mv=M.forwardRef(E2);process.env.NODE_ENV!=="production"&&(Mv.displayName="CheckOutlined");var w2={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"},S2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:w2}))},Lv=M.forwardRef(S2);process.env.NODE_ENV!=="production"&&(Lv.displayName="CopyOutlined");var _2={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"},C2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:_2}))},Fv=M.forwardRef(C2);process.env.NODE_ENV!=="production"&&(Fv.displayName="LoadingOutlined");function Yd(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Bs(e,r,t){return e===!0||e===void 0?r:e||t&&r}function O2(e){const r=document.createElement("em");e.appendChild(r),process.env.NODE_ENV!=="production"&&(r.className="ant-typography-css-ellipsis-content-measure");const t=e.getBoundingClientRect(),i=r.getBoundingClientRect();return e.removeChild(r),t.left>i.left||i.right>t.right||t.top>i.top||i.bottom>t.bottom}const vu=e=>["string","number"].includes(typeof e),R2=({prefixCls:e,copied:r,locale:t,iconOnly:i,tooltips:n,icon:o,tabIndex:a,onCopy:s,loading:f})=>{const d=Yd(n),c=Yd(o),{copied:l,copy:u}=t??{},h=r?l:u,v=Bs(d[r?1:0],h),g=typeof v=="string"?v:h;return M.createElement(oi,{title:v,getPopupContainer:p=>p.parentNode},M.createElement("button",{type:"button",className:ye(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:i}),onClick:s,"aria-label":g,tabIndex:a},r?Bs(c[1],M.createElement(Mv,null),!0):Bs(c[0],f?M.createElement(Fv,null):M.createElement(Lv,null),!0)))},Ai=M.forwardRef(({style:e,children:r},t)=>{const i=M.useRef(null);return M.useImperativeHandle(t,()=>({isExceed:()=>{const n=i.current;return n.scrollHeight>n.clientHeight},getHeight:()=>i.current.clientHeight})),M.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},r)}),j2=e=>e.reduce((r,t)=>r+(vu(t)?String(t).length:1),0);function Xd(e,r){let t=0;const i=[];for(let n=0;n<e.length;n+=1){if(t===r)return i;const o=e[n],s=vu(o)?String(o).length:1,f=t+s;if(f>r){const d=r-t;return i.push(String(o).slice(0,d)),i}i.push(o),t=f}return e}const qs=0,Vs=1,zs=2,Hs=3,Zd=4,Ti={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function A2(e){const{enableMeasure:r,width:t,text:i,children:n,rows:o,expanded:a,miscDeps:s,onEllipsis:f}=e,d=M.useMemo(()=>Xr(i),[i]),c=M.useMemo(()=>j2(d),[i]),l=M.useMemo(()=>n(d,!1),[i]),[u,h]=M.useState(null),v=M.useRef(null),g=M.useRef(null),p=M.useRef(null),y=M.useRef(null),m=M.useRef(null),[x,b]=M.useState(!1),[E,S]=M.useState(qs),[w,_]=M.useState(0),[A,R]=M.useState(null);Ge(()=>{S(r&&t&&c?Vs:qs)},[t,i,o,r,d]),Ge(()=>{var k,I,B,V;if(E===Vs){S(zs);const W=g.current&&getComputedStyle(g.current).whiteSpace;R(W)}else if(E===zs){const W=!!(!((k=p.current)===null||k===void 0)&&k.isExceed());S(W?Hs:Zd),h(W?[0,c]:null),b(W);const F=((I=p.current)===null||I===void 0?void 0:I.getHeight())||0,$=o===1?0:((B=y.current)===null||B===void 0?void 0:B.getHeight())||0,N=((V=m.current)===null||V===void 0?void 0:V.getHeight())||0,L=Math.max(F,$+N);_(L+1),f(W)}},[E]);const C=u?Math.ceil((u[0]+u[1])/2):0;Ge(()=>{var k;const[I,B]=u||[0,0];if(I!==B){const W=(((k=v.current)===null||k===void 0?void 0:k.getHeight())||0)>w;let F=C;B-I===1&&(F=W?I:B),h(W?[I,F]:[F,B])}},[u,C]);const O=M.useMemo(()=>{if(!r)return n(d,!1);if(E!==Hs||!u||u[0]!==u[1]){const k=n(d,!1);return[Zd,qs].includes(E)?k:M.createElement("span",{style:Object.assign(Object.assign({},Ti),{WebkitLineClamp:o})},k)}return n(a?d:Xd(d,u[0]),x)},[a,E,u,d].concat(ge(s))),j={width:t,margin:0,padding:0,whiteSpace:A==="nowrap"?"normal":"inherit"};return M.createElement(M.Fragment,null,O,E===zs&&M.createElement(M.Fragment,null,M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:o}),ref:p},l),M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:o-1}),ref:y},l),M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:1}),ref:m},n([],!0))),E===Hs&&u&&u[0]!==u[1]&&M.createElement(Ai,{style:Object.assign(Object.assign({},j),{top:400}),ref:v},n(Xd(d,C),!0)),E===Vs&&M.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const $v=({enableEllipsis:e,isEllipsis:r,children:t,tooltipProps:i})=>!i?.title||!e?t:M.createElement(oi,Object.assign({open:r?void 0:!1},i),t);process.env.NODE_ENV!=="production"&&($v.displayName="EllipsisTooltip");var T2=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function k2({mark:e,code:r,underline:t,delete:i,strong:n,keyboard:o,italic:a},s){let f=s;function d(c,l){l&&(f=M.createElement(c,{},f))}return d("strong",n),d("u",t),d("del",i),d("code",r),d("mark",e),d("kbd",o),d("i",a),f}const P2="...",Qd=["delete","mark","code","underline","strong","keyboard","italic"],N2=M.forwardRef((e,r)=>{var t;const{prefixCls:i,className:n,style:o,type:a,disabled:s,children:f,ellipsis:d,editable:c,copyable:l,component:u,title:h}=e,v=T2(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:p}=M.useContext(Gt),[y]=vb("Text"),m=M.useRef(null),x=M.useRef(null),b=g("typography",i),E=Hh(v,Qd),[S,w]=Ds(c),[_,A]=Ar(!1,{value:w.editing}),{triggerType:R=["icon"]}=w,C=me=>{var xe;me&&((xe=w.onStart)===null||xe===void 0||xe.call(w)),A(me)},O=g2(_);Ge(()=>{var me;!_&&O&&((me=x.current)===null||me===void 0||me.focus())},[_]);const j=me=>{me?.preventDefault(),C(!0)},k=me=>{var xe;(xe=w.onChange)===null||xe===void 0||xe.call(w,me),C(!1)},I=()=>{var me;(me=w.onCancel)===null||me===void 0||me.call(w),C(!1)},[B,V]=Ds(l),{copied:W,copyLoading:F,onClick:$}=m2({copyConfig:V,children:f}),[N,L]=M.useState(!1),[q,K]=M.useState(!1),[G,T]=M.useState(!1),[D,H]=M.useState(!1),[U,Y]=M.useState(!0),[ee,ie]=Ds(d,{expandable:!1,symbol:me=>me?y?.collapse:y?.expand}),[oe,re]=Ar(ie.defaultExpanded||!1,{value:ie.expanded}),ue=ee&&(!oe||ie.expandable==="collapsible"),{rows:ce=1}=ie,he=M.useMemo(()=>ue&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||S||B),[ue,ie,S,B]);Ge(()=>{ee&&!he&&(L(Df("webkitLineClamp")),K(Df("textOverflow")))},[he,ee]);const[Q,J]=M.useState(ue),le=M.useMemo(()=>he?!1:ce===1?q:N,[he,q,N]);Ge(()=>{J(le&&ue)},[le,ue]);const se=ue&&(Q?D:G),ne=ue&&ce===1&&Q,de=ue&&ce>1&&Q,ae=(me,xe)=>{var Ze;re(xe.expanded),(Ze=ie.onExpand)===null||Ze===void 0||Ze.call(ie,me,xe)},[pe,_e]=M.useState(0),Me=({offsetWidth:me})=>{_e(me)},be=me=>{var xe;T(me),G!==me&&((xe=ie.onEllipsis)===null||xe===void 0||xe.call(ie,me))};M.useEffect(()=>{const me=m.current;if(ee&&Q&&me){const xe=O2(me);D!==xe&&H(xe)}},[ee,Q,f,de,U,pe]),M.useEffect(()=>{const me=m.current;if(typeof IntersectionObserver>"u"||!me||!Q||!ue)return;const xe=new IntersectionObserver(()=>{Y(!!me.offsetParent)});return xe.observe(me),()=>{xe.disconnect()}},[Q,ue]);const qe=y2(ie.tooltip,w.text,f),Oe=M.useMemo(()=>{if(!(!ee||Q))return[w.text,f,h,qe.title].find(vu)},[ee,Q,h,qe.title,se]);if(_)return M.createElement(u2,{value:(t=w.text)!==null&&t!==void 0?t:typeof f=="string"?f:"",onSave:k,onCancel:I,onEnd:w.onEnd,prefixCls:b,className:n,style:o,direction:p,component:u,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const je=()=>{const{expandable:me,symbol:xe}=ie;return me?M.createElement("button",{type:"button",key:"expand",className:`${b}-${oe?"collapse":"expand"}`,onClick:Ze=>ae(Ze,{expanded:!oe}),"aria-label":oe?y.collapse:y?.expand},typeof xe=="function"?xe(oe):xe):null},ke=()=>{if(!S)return;const{icon:me,tooltip:xe,tabIndex:Ze}=w,Yt=Xr(xe)[0]||y?.edit,yr=typeof Yt=="string"?Yt:"";return R.includes("icon")?M.createElement(oi,{key:"edit",title:xe===!1?"":Yt},M.createElement("button",{type:"button",ref:x,className:`${b}-edit`,onClick:j,"aria-label":yr,tabIndex:Ze},me||M.createElement(Nh,{role:"button"}))):null},Te=()=>B?M.createElement(R2,Object.assign({key:"copy"},V,{prefixCls:b,copied:W,locale:y,onCopy:$,loading:F,iconOnly:f==null})):null,Se=me=>[me&&je(),ke(),Te()],ze=me=>[me&&!oe&&M.createElement("span",{"aria-hidden":!0,key:"ellipsis"},P2),ie.suffix,Se(me)];return M.createElement(ln,{onResize:Me,disabled:!ue},me=>M.createElement($v,{tooltipProps:qe,enableEllipsis:ue,isEllipsis:se},M.createElement(Iv,Object.assign({className:ye({[`${b}-${a}`]:a,[`${b}-disabled`]:s,[`${b}-ellipsis`]:ee,[`${b}-ellipsis-single-line`]:ne,[`${b}-ellipsis-multiple-line`]:de},n),prefixCls:i,style:Object.assign(Object.assign({},o),{WebkitLineClamp:de?ce:void 0}),component:u,ref:Zn(me,m,r),direction:p,onClick:R.includes("text")?j:void 0,"aria-label":Oe?.toString(),title:h},E),M.createElement(A2,{enableMeasure:ue&&!Q,text:f,rows:ce,width:pe,onEllipsis:be,expanded:oe,miscDeps:[W,oe,F,S,B,y].concat(ge(Qd.map(xe=>e[xe])))},(xe,Ze)=>k2(e,M.createElement(M.Fragment,null,xe.length>0&&Ze&&!oe&&Oe?M.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,ze(Ze)))))))}),I2=M.forwardRef((e,r)=>M.createElement(N2,Object.assign({ref:r},e,{component:"div"}))),Jd=(e,r)=>{const t=window.innerWidth,i=window.innerHeight,n=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,i-r.height));return{x:n,y:o}},M2=({title:e="팝업",width:r=800,height:t=600,minWidth:i=400,minHeight:n=300,onClose:o,children:a,footer:s,showMask:f=!0,maskStyle:d={backgroundColor:"rgba(0,0,0,0.3)"},buttons:c=[]})=>{const[l,u]=z.useState(r),[h,v]=z.useState(t),g=z.useRef(null),p=z.useMemo(()=>{const w=Math.max(0,(window.innerWidth-r)/2),_=Math.max(0,(window.innerHeight-t)/2);return{x:w,y:_}},[r,t]),[y,m]=z.useState(p),x=(w,_)=>{const A=Jd({x:_.x,y:_.y},{width:l,height:h});m(A)},b=(w,_,A,R,C)=>{const O={width:parseInt(A.style.width,10),height:parseInt(A.style.height,10)},j=Jd(C,O);u(O.width),v(O.height),m(j)},E=()=>g.current??document.body,S=[...c,{key:"CLOSE",text:"닫기",type:"default",danger:!1,disabled:!1,onClick:o}];return P.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[f&&P.jsxRuntimeExports.jsx("div",{onClick:o,style:{position:"absolute",inset:0,...d,zIndex:0}}),P.jsxRuntimeExports.jsxs(eh.Rnd,{className:"bwg-draggable",size:{width:l,height:h},position:y,bounds:"window",minWidth:i,minHeight:n,onDragStop:x,onResizeStop:b,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:20,boxShadow:"0 4px 15px rgba(0,0,0,0.25)",overflow:"visible",position:"absolute",zIndex:1},children:[P.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:P.jsxRuntimeExports.jsx(Dl,{getPopupContainer:E,children:P.jsxRuntimeExports.jsx(jr,{type:"vertical",children:P.jsxRuntimeExports.jsxs(X.Card,{className:"popup-drag-container",title:P.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:e}),style:{width:"100%",height:"100%"},styles:{body:{height:s?"calc(100% - 120px)":"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:8},children:S.map(w=>P.jsxRuntimeExports.jsx(X.Button,{type:w.type,danger:w.danger,disabled:w.disabled,className:"bwg-btn",onClick:w.onClick,children:w.text},w.key))}),children:[P.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:a}),s&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"16px 20px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa",borderRadius:"0 0 8px 8px"},children:s})]})})})}),P.jsxRuntimeExports.jsx("div",{ref:g,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:L2}=X.Input,F2=({open:e,onClose:r})=>{const{searchBoxRef:t}=Xi.useSearchBox(),{user:i}=Fe.useUserStore(),{activeMenuItem:n}=Fe.useMenuViewStore(),[o]=X.Form.useForm(),[a,s]=z.useState(!1),[f,d]=z.useState(!1),[c,l]=z.useState("list"),[u,h]=z.useState(null),[v,g]=z.useState([]),p=z.useRef(null),[y,m]=z.useState([]),[x,b]=z.useState(""),[E,S]=z.useState(!1),[w,_]=z.useState(15),A=z.useRef(null),R=[{label:"문의",value:"INQR"},{label:"요청",value:"RQST"},{label:"신고",value:"RPRT"},{label:"건의",value:"SGSN"}],C=async()=>{s(!0);try{const T=[{id:1,type:"INQR",typeNm:"문의",title:"화면 오류 문의",content:"화면에서 데이터가 제대로 표시되지 않습니다.",status:"PENDING",statusNm:"대기",regDt:"2024-01-15 10:30:00",regUser:"홍길동",scrnId:n?.scrnId,processor:null,processDt:null,dueDate:"2024-01-20"},{id:2,type:"RPRT",typeNm:"신고",title:"시스템 버그 신고",content:"특정 조건에서 시스템이 멈춥니다.",status:"PROCESSING",statusNm:"처리중",regDt:"2024-01-14 14:20:00",regUser:"김철수",scrnId:n?.scrnId,processor:"이영희",processDt:"2024-01-16 09:15:00",dueDate:null},{id:3,type:"INQR",typeNm:"문의",title:"급한 문의사항",content:"시스템 접속이 안됩니다.",status:"PENDING",statusNm:"대기",regDt:"2024-01-18 15:30:00",regUser:"박민수",scrnId:n?.scrnId,processor:null,processDt:null,dueDate:"2024-01-19"},...Array.from({length:25},(D,H)=>({id:H+4,type:"INQR",typeNm:"문의",title:`테스트 문의 ${H+1}`,content:`테스트 내용 ${H+1}`,status:"PENDING",statusNm:"대기",regDt:`2024-01-${String(20+H).padStart(2,"0")} 10:00:00`,regUser:`사용자${H+1}`,scrnId:n?.scrnId,processor:null,processDt:null,dueDate:null}))];g(T),setTimeout(()=>{A.current&&A.current.addAllData(T)},100)}catch(T){console.error("문의 목록 조회 실패:",T),X.message.error("문의 목록을 불러오는데 실패했습니다.")}finally{s(!1)}},O=T=>{if(!T)return null;const D=new Date,H=new Date(T),U=new Date;Math.ceil((H.getTime()-U.getTime())/(1e3*60*60*24));const Y=Math.ceil((H.getTime()-D.getTime())/(1e3*60*60*24));return Y<=0?{percent:100,status:"exception"}:Y<=1?{percent:90,status:"exception"}:Y<=2?{percent:70,status:"active"}:Y<=3?{percent:50,status:"normal"}:{percent:30,status:"normal"}},j=[{fieldName:"type",width:80,visible:!1},{fieldName:"typeNm",header:{text:"구분"},width:80},{fieldName:"title",header:{text:"제목"},width:200},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{fieldName:"statusNm",header:{text:"상태"},width:80},{fieldName:"regUser",header:{text:"등록자"},width:100},{fieldName:"regDt",header:{text:"등록일시"},width:150},{fieldName:"dueDate",header:{text:"마감요청일"},width:100},{fieldName:"processor",header:{text:"처리담당자"},width:100},{fieldName:"processDt",header:{text:"처리일자"},width:120}],k={onCellDblClicked:(T,D)=>{const H=D.itemIndex??-1;if(H<0)return;const U=T.getValues(H);h(U),l("detail")}},I=async T=>{s(!0);try{o.validateFields().then(D=>{console.log("문의/신고 제출:",D),X.message.success(D.type==="INQUIRY"?"문의가 등록되었습니다.":"신고가 등록되었습니다."),o.resetFields(),l("list"),C()}).catch(D=>{console.error("문의/신고 제출 실패:",D)})}catch(D){console.error("문의/신고 제출 실패:",D),X.message.error("제출 중 오류가 발생했습니다.")}finally{s(!1)}},B=()=>{o.resetFields(),c==="new"?l("list"):r()},V=()=>{(c==="detail"||c==="new")&&l("list")},W=()=>{o.resetFields(),l("new")},F=()=>{console.log("댓글 수동 새로고침"),_(15)},$=()=>{if(!x.trim()){X.message.warning("댓글 상세내용 작성");return}b(""),setTimeout(()=>{p.current&&(p.current.scrollTop=p.current.scrollHeight)},100)},N=T=>{const D=y.find(H=>H.id===T);if(D&&D.regUserId!==i?.emplNo){X.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}};z.useEffect(()=>{e&&setTimeout(()=>{C()},100)},[e]),z.useEffect(()=>{c==="list"&&A.current&&v.length>0&&setTimeout(()=>{A.current&&A.current.addAllData(v)},50)},[c,v]);const L=()=>P.jsxRuntimeExports.jsxs(Cr,{border:!1,children:[P.jsxRuntimeExports.jsx(Ji,{border:!0,ref:t,reqRows:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:12,children:P.jsxRuntimeExports.jsx(We.BwgRangePicker,{itemProps:{label:"등록일자",name:"regDt"}})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{name:"myArticle",label:"내 글만",children:P.jsxRuntimeExports.jsx(X.Switch,{})})})]}),P.jsxRuntimeExports.jsx(X.Row,{children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),P.jsxRuntimeExports.jsx(mh,{ref:A,gridColumns:j,gridEvents:k,gridOptions:{container:{page:!0,indicator:!0}}})]}),q=()=>{const T=u?.dueDate?O(u.dueDate):null;return P.jsxRuntimeExports.jsxs(X.Splitter,{children:[P.jsxRuntimeExports.jsx(X.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:P.jsxRuntimeExports.jsx(Cr,{children:P.jsxRuntimeExports.jsxs(X.Form,{form:o,onFinish:I,labelCol:{flex:"100px"},children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:16,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"화면 정보",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성자",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNo",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성일자",name:"regDt",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:T&&P.jsxRuntimeExports.jsxs(X.Flex,{vertical:!0,gap:2,children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"12px",color:"#595959"},children:"진척률"}),P.jsxRuntimeExports.jsx(X.Progress,{percent:T.percent,status:T.status,size:"small",format:D=>`${D}%`})]})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"처리일자",name:"processDt",children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})})]}),P.jsxRuntimeExports.jsx(X.Row,{gutter:[16,8],children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.Input,{})})})}),P.jsxRuntimeExports.jsx(Us,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})})}),P.jsxRuntimeExports.jsx(X.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:P.jsxRuntimeExports.jsxs(Cr,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[P.jsxRuntimeExports.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[P.jsxRuntimeExports.jsx(X.Button,{type:"text",icon:P.jsxRuntimeExports.jsx(Ce.ReloadOutlined,{spin:E}),onClick:F,disabled:E,size:"small",style:{fontSize:"12px",color:"#595959",height:"24px",padding:"0 8px"}}),P.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:E?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:w})]})]}),P.jsxRuntimeExports.jsx("div",{ref:p,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0},children:P.jsxRuntimeExports.jsx(X.List,{dataSource:y,renderItem:D=>P.jsxRuntimeExports.jsxs(X.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[P.jsxRuntimeExports.jsx(X.List.Item.Meta,{avatar:P.jsxRuntimeExports.jsx(X.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:D.author[0]}),title:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:D.author}),P.jsxRuntimeExports.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:D.regDt})]}),description:P.jsxRuntimeExports.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:D.content})}),D.regUserId===i?.emplNo&&P.jsxRuntimeExports.jsx(X.Button,{type:"text",danger:!0,icon:P.jsxRuntimeExports.jsx(Ce.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>N(D.id),style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:.5,height:"24px",width:"24px",padding:0},onMouseEnter:H=>{H.currentTarget.style.opacity="1"},onMouseLeave:H=>{H.currentTarget.style.opacity="0.5"}})]},D.id)})}),P.jsxRuntimeExports.jsxs("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:"#fafafa",flexShrink:0,marginTop:"auto"},children:[P.jsxRuntimeExports.jsx("div",{style:{marginBottom:"8px"},children:P.jsxRuntimeExports.jsx(L2,{rows:2,placeholder:"댓글을 입력하세요...",value:x,onChange:D=>b(D.target.value),maxLength:300,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:"#ffffff"},onFocus:D=>{D.target.style.borderColor="#1890ff",D.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)"},onBlur:D=>{D.target.style.borderColor="#d9d9d9",D.target.style.boxShadow="none"}})}),P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[P.jsxRuntimeExports.jsxs("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:[x.length," / 300자"]}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",onClick:$,size:"small",style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!x.trim(),children:"등록"})]})]})]})})]})},K=()=>P.jsxRuntimeExports.jsx(Cr,{children:P.jsxRuntimeExports.jsxs(We.BwgForm,{form:o,onFinish:I,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:16,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"화면 정보",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성자",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNo",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성일자",name:"regDt",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{disabled:!0})})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})}),P.jsxRuntimeExports.jsx(X.Col,{span:4,children:P.jsxRuntimeExports.jsx(We.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),P.jsxRuntimeExports.jsx(X.Row,{gutter:[16,8],children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:P.jsxRuntimeExports.jsx(X.Input,{})})})}),P.jsxRuntimeExports.jsx(Us,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})});z.useEffect(()=>{c==="new"&&(d(!0),o.setFieldsValue({type:"INQR",scrnId:n?.scrnId,scrnNm:n?.menuNm,emplNo:i?.emplNo,emplNm:i?.userNm,regDt:Vv(),content:""}))},[c,o,n,i]),z.useEffect(()=>{c==="detail"&&u&&o.setFieldsValue({scrnId:u.scrnId||n?.scrnId,scrnNm:u.scrnNm||n?.menuNm,emplNo:u.emplNo||i?.emplNo,emplNm:u.emplNm||i?.userNm,type:u.type,title:u.title,content:u.content})},[c,u,o,n,i]);const G=()=>{switch(c){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:C,disabled:a},{key:"NEW",text:"신규 등록",type:"primary",onClick:W}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:V}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>o.submit(),disabled:a},{key:"CANCEL",text:"취소",type:"default",onClick:B}];default:return[]}};return e?P.jsxRuntimeExports.jsxs(M2,{title:"문의 및 신고",width:1400,height:800,minWidth:600,minHeight:400,onClose:B,buttons:G(),children:[c==="list"&&L(),c==="detail"&&q(),c==="new"&&K()]}):null},Dv=(e,r,t=null)=>{for(let i=0;i<e.length;i++){const n=e[i];if(n.key===r)return{node:n,ctx:{parent:t,index:i,siblings:e}};if(n.children?.length){const o=Dv(n.children,r,n);if(o.node)return o}}return{node:null,ctx:null}},Bv=(e,r)=>{if(!e.children)return!1;for(const t of e.children)if(t.key===r||Bv(t,r))return!0;return!1};function $2({open:e,onClose:r}){const{nodes:t,rootIds:i,addFolder:n,editFolder:o,removeFolder:a,removeMenu:s,moveNode:f}=Nn.useFavoriteStore(),d=z.useRef(null),[c,l]=z.useState([]),[u,h]=z.useState([]),[v,g]=z.useState(""),[p,y]=z.useState("ADD"),[m,x]=z.useState(!1),[b,E]=z.useState("");z.useEffect(()=>{e&&h(i)},[e]),z.useEffect(()=>{const _=S(t,i);l(_)},[t]),z.useEffect(()=>{m&&b&&(d.current.setFieldValue("prntBkmkId",b),d.current.setFieldValue("prntBkmkNm",t[b]?.bkmkNm??"-")),m&&p==="EDIT"&&(d.current.setFieldValue("bkmkId",b),d.current.setFieldValue("bkmkNm",t[b]?.bkmkNm)),!m&&p=="ADD"&&h(_=>[..._,b]),!m&&d.current&&(E("-"),d.current.resetFields())},[m,p,b,t]);const S=(_,A)=>{const R=(C,O="-")=>{const j=_[C];if(!j)return null;const k={key:j.bkmkId,type:j.type,title:j.type==="F"?j.bkmkNm:j.menuNm?`${j.menuNm} (${j.menuId})`:j.menuId,parentId:O,sortOrdr:j.sortOrdr??0};if(j.type==="F"){const B=(j.children??[]).map(V=>R(V,j.bkmkId)).filter(Boolean);return{...k,children:B}}return k};return A.map(C=>R(C,"-")).filter(Boolean)},w=()=>{if(y("ADD"),!v){E("-"),x(!0);return}const _=t[v];if(!_){E("-"),x(!0);return}_.type==="F"?E(_.bkmkId):E(_.prntBkmkId),x(!0)};return P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[P.jsxRuntimeExports.jsxs(X.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:[P.jsxRuntimeExports.jsx(Ce.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:r,children:[P.jsxRuntimeExports.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[P.jsxRuntimeExports.jsx(X.Button,{color:"blue",variant:"outlined",icon:P.jsxRuntimeExports.jsx(Ce.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:w,children:"새 폴더"}),P.jsxRuntimeExports.jsxs("div",{children:[P.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const _=Object.values(t).filter(A=>A.type==="F").map(A=>A.bkmkId);h(_)}})}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>h([])})})]})]}),P.jsxRuntimeExports.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[c.length==0&&P.jsxRuntimeExports.jsx(X.Empty,{description:P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",P.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),P.jsxRuntimeExports.jsx(X.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:_,dropPosition:A})=>{const R=_.type==="F";return A===0?R:!0},onDrop:_=>{const{dragNode:A,node:R,dropPosition:C,dropToGap:O}=_;if(A.key===R.key||Bv(A,R.key))return;let j,k;if(O){const B=Dv(c,R.key).ctx;B.siblings;const V=B.index;j=B.parent?B.parent.key:"-",k=C>0?V+1:V}else{if(R.type!=="F")return;const B=R.children||[];j=R.key,k=B.length}const I=Fe.getUserId();if(A.type==="F")f({bkmkId:A.key,newPrntBkmkId:j,sortOrdr:k,userId:I}).catch(()=>{X.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(j==="-"){X.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}f({bkmkId:A.key,newPrntBkmkId:j,sortOrdr:k,userId:I}).catch(()=>{X.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}O===!1&&h(B=>Array.from(new Set([...B,R.key])))},showLine:!0,treeData:c,selectedKeys:[v],expandedKeys:u,onExpand:h,onSelect:_=>g(_[0]),titleRender:_=>P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[P.jsxRuntimeExports.jsxs("span",{children:[_.type==="F"?"📁":"📄"," ",_.title,_.isNew?P.jsxRuntimeExports.jsx(X.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),P.jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",gap:8},children:[_.type==="F"&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{style:{opacity:.8},onClick:()=>{y("ADD"),E(_.key),x(!0)}}),P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{opacity:.8},onClick:()=>{y("EDIT"),E(_.key),x(!0)}})]}),P.jsxRuntimeExports.jsx(Ce.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{_.type==="F"?X.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a(_.key)}):X.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>s(_.key)})}})]})]})})]})]}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Modal:{titleColor:p==="ADD"?"#0958d9":"#d46b08",headerBg:p==="ADD"?"#e6f4ff":"#fff7e6"}}},children:P.jsxRuntimeExports.jsx(X.Modal,{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[p==="ADD"?P.jsxRuntimeExports.jsx(Ce.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",p==="ADD"?" 추가":"명 수정"]})]}),open:m,okText:"저장",onOk:()=>{const _=d.current.getFieldValue("bkmkNm"),A=Fe.getUserId();if(p==="ADD"){const R=__SYS_CD__??"KH",C=d.current.getFieldValue("prntBkmkId");n(_,C,R,A).then(()=>{x(!1)})}else{const R=d.current.getFieldValue("bkmkId");o(R,A,_).then(()=>{x(!1)})}},centered:!0,width:400,onCancel:()=>x(!1),children:P.jsxRuntimeExports.jsxs(We.BwgForm,{ref:d,children:[P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{name:p==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:b==="-"||p==="EDIT"},inputProps:{disabled:!0}}),P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function D2({triggerIcon:e}){const[r,t]=z.useState(!1),[i,n]=z.useState(""),[o,a]=z.useState(null),[s,f]=z.useState([]),[d,c]=z.useState([]),[l,u]=z.useState(!1),[h,v]=z.useState(!1),[g,p]=z.useState(!1),[y,m]=z.useState(null);Nn.useFavoriteStore(F=>F.treeNodes);const{nodes:x,getPrntBkmkIdByMenuId:b,getNodeByMenuId:E,isMenuBookmarked:S,removeMenuByMenuId:w,addMenuToFolder:_,convertToAntTreeData:A}=Nn.useFavoriteStore(),R=Nn.useFavoriteStore(F=>F.rootIds),C=z.useMemo(()=>A(x,R,i,!0),[x,R,i]),O=Fe.useMenuViewStore(F=>F.activeMenuItem??{menuId:"",menuNm:""}),j=z.useMemo(()=>{if(!O?.menuId)return"";const F=E(O.menuId);if(!F)return"";if(F.fullPath)return F.fullPath;const $=N=>{const L=x[N];if(!L)return"";if(L.prntBkmkId==="-")return`${L.bkmkNm||O?.menuNm}`;const q=$(L.prntBkmkId);return q?`${q} > ${L.bkmkNm||O?.menuNm}`:L.bkmkNm||O?.menuNm};return console.log("bookmarkNode ::::: ",F),console.log($(F.bkmkId)),$(F.bkmkId)},[O?.menuId,E,x]);z.useEffect(()=>{r&&O?.menuId&&S(O.menuId)?c([b(O.menuId)]):r&&O?.menuId&&!S(O.menuId)?c(R):(c([]),f([]),m(null),p(!1))},[r,O?.menuId,S,b]),z.useEffect(()=>{if(!g||!O?.menuId)return;const F=b(O.menuId);!F||!x[F]||(n(""),f([F]),m(F))},[g,O?.menuId,x,b]);const k=(F,$)=>{_(F,$).then(N=>{console.log("AddMenuToFolder ::::: ",N),N||c(L=>L.includes(F)?L:[...L,F])})},I=F=>{w(F)},B=async F=>{O?.menuId&&(await w(O.menuId),await _(F,O),p(!1),m(null),c($=>$.includes(F)?$:[...$,F]))},V=()=>P.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[P.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:P.jsxRuntimeExports.jsxs(X.Space,{direction:"vertical",style:{width:"100%"},children:[P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:[P.jsxRuntimeExports.jsx(X.Button,{type:"text",icon:P.jsxRuntimeExports.jsx(Ce.ArrowLeftOutlined,{}),onClick:()=>p(!1),style:{marginRight:4}}),"폴더 변경"]}),O&&P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",children:["현재 화면: ",P.jsxRuntimeExports.jsx("b",{children:O.menuNm})," ",P.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),W(),P.jsxRuntimeExports.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>{p(!1),m(null)},children:"취소"}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",disabled:!y,onClick:()=>y&&B(String(y)),children:"이동"})]})]}),W=()=>P.jsxRuntimeExports.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[P.jsxRuntimeExports.jsxs(X.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx(X.Input,{placeholder:"검색(폴더명)",prefix:P.jsxRuntimeExports.jsx(Ce.SearchOutlined,{}),allowClear:!0,value:i,onChange:F=>n(F.target.value),style:{width:"260px",height:28}}),P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const F=Object.values(x).filter($=>$.type==="F").map($=>$.bkmkId);c(F)},title:"모두 확장"}),P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>c([]),title:"모두 축소"})]})]}),C.length===0?P.jsxRuntimeExports.jsx(X.Empty,{description:P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",P.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:X.Empty.PRESENTED_IMAGE_SIMPLE}):P.jsxRuntimeExports.jsx(X.Tree,{blockNode:!0,showLine:!0,treeData:C,selectedKeys:s,expandedKeys:d,onExpand:c,onSelect:F=>{f(F),m(F[0])},autoExpandParent:!0,titleRender:F=>{const $=String(F.key),N=o===$;return P.jsxRuntimeExports.jsxs("div",{onMouseEnter:()=>a($),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[P.jsxRuntimeExports.jsx("div",{children:F.title}),!S(O?.menuId)&&O&&N&&P.jsxRuntimeExports.jsx(X.Button,{size:"small",type:"link",onClick:L=>{L.stopPropagation(),k($,O)},children:"+ 현재화면 추가"})]})}})]});return P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(X.Popover,{open:r&&!l,onOpenChange:t,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,border:"1px solid #e8edf5",boxShadow:"0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08)",background:"#fcfcff",zIndex:1e3}},content:g?V():P.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[P.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:P.jsxRuntimeExports.jsxs(X.Space,{direction:"vertical",style:{width:"100%"},children:[P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",S(O?.menuId)?"저장됨":"추가"]}),O&&P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",children:["현재 화면: ",P.jsxRuntimeExports.jsx("b",{children:O.menuNm})," ",P.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),S(O?.menuId)?P.jsxRuntimeExports.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[P.jsxRuntimeExports.jsx(X.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),P.jsxRuntimeExports.jsx("div",{style:{marginTop:4},children:`📁 > ${j}`||"알 수 없음"})]}):W(),P.jsxRuntimeExports.jsxs(jr,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[O&&!S(O.menuId)?P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{}),onClick:()=>{const F=String(s[0]);let $="-";F&&x[F]&&($=x[F].type=="M"?x[F].prntBkmkId:F),k($,O)},children:"추가"}):P.jsxRuntimeExports.jsxs(jr,{layoutAlign:"between",children:[P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:P.jsxRuntimeExports.jsx(Ce.FolderOpenOutlined,{}),onClick:()=>p(!0),children:"폴더 변경"}),P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:P.jsxRuntimeExports.jsx(Ce.MinusOutlined,{}),onClick:()=>I(O.menuId),children:"삭제"})]}),P.jsxRuntimeExports.jsx(X.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),onClick:()=>{v(r),u(!0)},children:"관리"})]})]}),children:P.jsxRuntimeExports.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),P.jsxRuntimeExports.jsx($2,{open:l,onClose:()=>{u(!1),h&&t(!0)}})]})}const B2=({reqRows:e,subRows:r})=>{const{searchBoxRef:t}=Xi.useSearchBox();return P.jsxRuntimeExports.jsx(Ji,{ref:t,reqRows:e,subRows:r})},q2=({children:e,searchBox:r,title:t,preRenderEvents:i=[],postRenderEvents:n=[],loading:o=!1,error:a=null,grantEvent:s={},customEvent:f={}})=>{const d=Xi.useServiceCodeValue("AUTH_BTNS"),{user:c,isLoggedIn:l}=Fe.useUserStore(),{activeMenuItem:u}=Fe.useMenuViewStore(),{loadFavoritesIfNeeded:h,isMenuBookmarked:v,addMenuToFolder:g}=Nn.useFavoriteStore(),{loading:p}=Fe.useLoadingStore(),[y,m]=z.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[x,b]=z.useState(null),[E,S]=z.useState([]),[w,_]=z.useState([]),[A,R]=z.useState(!1),C=async()=>{if(i.length===0){m(F=>({...F,preRenderComplete:!0}));return}try{for(const F of i)await F();m(F=>({...F,preRenderComplete:!0}))}catch(F){m($=>({...$,error:F instanceof Error?F.message:"사전 렌더링 실패",preRenderComplete:!0}))}},O=async()=>{if(n.length===0){m(F=>({...F,postRenderComplete:!0}));return}try{for(const F of n)await F();m(F=>({...F,postRenderComplete:!0}))}catch(F){m($=>({...$,error:F instanceof Error?F.message:"사후 렌더링 실패",postRenderComplete:!0}))}};z.useEffect(()=>{if(y.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const $=await Fe.callService(d,{crprCd:c?.crprCd,userId:c?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",$),$?.data&&$.data.length>0){const N=$.data?.filter(q=>q.grpId?.toUpperCase()==="DEFAULT").map(q=>({id:q.btnId,label:q.btnNm,type:"default",disabled:!1,onClick:s[q.btnId]||void 0}))||[];S(N);const L=$.data?.filter(q=>q.grpId?.toUpperCase()==="CUSTOM").map(q=>({id:q.btnId,label:q.btnNm,type:"default",disabled:!1,onClick:f[q.btnId]||void 0}))||[];_(L)}else S([]),_([])}catch($){console.error("SCMSIGN00202 권한 서비스 호출 실패:",$),S([]),_([])}await C(),m($=>({...$,isInitialized:!0,loading:!1}))}catch($){console.error("BwgView 초기화 실패:",$),m(N=>({...N,isInitialized:!0,loading:!1}))}})()},[]),z.useEffect(()=>{c?.userId&&h(c.userId)},[h,c?.userId]),z.useEffect(()=>{y.isInitialized&&y.preRenderComplete&&!y.isReady&&setTimeout(async()=>{await O(),m($=>({...$,isReady:!0}))},100)},[y.isInitialized,y.preRenderComplete,y.isReady]),z.useEffect(()=>{a&&m(F=>({...F,error:a}))},[a]);const j=()=>P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:W.LEFT}),P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:W.RIGHT})]}),r&&P.jsxRuntimeExports.jsx(B2,{reqRows:r.reqRows,subRows:r.subRows})]});if(z.useEffect(()=>{},[c,u]),y.error||a)return P.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:P.jsxRuntimeExports.jsx(X.Alert,{message:"오류 발생",description:y.error||a,type:"error",showIcon:!0})});const k=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.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"})}),I=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.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"})}),B=F=>P.jsxRuntimeExports.jsx(Ce,{component:k,...F}),V=F=>P.jsxRuntimeExports.jsx(Ce,{component:I,...F}),W={LEFT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[P.jsxRuntimeExports.jsxs(X.Space,{children:[u&&P.jsxRuntimeExports.jsx(D2,{triggerIcon:v(u.menuId)?P.jsxRuntimeExports.jsx(B,{className:"bookmark-icon",style:{color:"#faad14"}}):P.jsxRuntimeExports.jsx(V,{className:"bookmark-icon"})}),P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{alignItems:"center"},children:[P.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{console.log("activeMenUItem::::: ",u);let F="";return t?.useMenuTitle&&u?F=u.menuNm:t?.text?F=t.text:u&&(F=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),t?.prefix&&(F=`${t.prefix} ${F}`),t?.suffix&&(F=`${F} ${t.suffix}`),F})()}),u?.menuNo&&P.jsxRuntimeExports.jsx(X.Tag,{className:"page-num-tag",children:u?.menuNo}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"도움말",color:"geekblue",children:P.jsxRuntimeExports.jsx(X.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:P.jsxRuntimeExports.jsx("span",{className:"bwgHelpIcon",style:{color:"orange"}})})}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"문의 및 신고",color:"geekblue",children:P.jsxRuntimeExports.jsx(X.Button,{variant:"text",type:"text",onClick:()=>R(!0),icon:P.jsxRuntimeExports.jsx(Ce.BugFilled,{style:{color:"#1890ff"}})})})]})]}),u?.scrnId&&Fe.isLocal&&P.jsxRuntimeExports.jsx(X.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:P.jsxRuntimeExports.jsx(I2,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:P.jsxRuntimeExports.jsxs(X.Space,{children:[P.jsxRuntimeExports.jsx(X.Flex,{gap:8}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:P.jsxRuntimeExports.jsx(X.Divider,{type:"vertical"})}),P.jsxRuntimeExports.jsx(X.Flex,{gap:8,className:"permission-buttons",children:P.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return P.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[j(),P.jsxRuntimeExports.jsxs("div",{className:"bwgview-content",children:[P.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(y.loading||o||p)&&P.jsxRuntimeExports.jsx(qv.LoadingOverlay,{text:p?"처리 중...":"화면 로드 중..."})]}),P.jsxRuntimeExports.jsx(F2,{open:A,onClose:()=>R(!1)})]})},V2=({children:e,customTheme:r,customComponentSize:t="middle"})=>{const i={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:X.theme.defaultAlgorithm},n={...i,...r,token:{...i.token,...r?.token}};return P.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:oh,theme:n,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},z2="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",H2="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",U2="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",W2=({children:e})=>{const[r,t]=z.useState({x:0,y:0}),[i,n]=z.useState(!1),[o,a]=z.useState({x:0,y:0}),[s,f]=z.useState(!1),[d,c]=z.useState(!0),l=z.useRef(null),u=[{id:"overtime",title:"시간 외 근무신청",icon:P.jsxRuntimeExports.jsx("img",{src:z2,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:P.jsxRuntimeExports.jsx("img",{src:H2,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:P.jsxRuntimeExports.jsx("img",{src:U2,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:P.jsxRuntimeExports.jsx(Ce.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:P.jsxRuntimeExports.jsx(Ce.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];z.useEffect(()=>{const m=()=>{const x=window.innerHeight,E=Math.max(64,(x-300)/3);t({x:0,y:E});const S=x/2;c(E<S)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const h=m=>{if(m.preventDefault(),m.stopPropagation(),l.current){const x=l.current.getBoundingClientRect();a({x:m.clientX-x.left,y:m.clientY-x.top}),n(!0)}},v=m=>{if(i){const x=m.clientY-o.y,b=window.innerHeight-24,S=Math.max(64,Math.min(b,x));t({x:r.x,y:S});const w=window.innerHeight/2;c(S<w)}},g=()=>{n(!1)},p=()=>{f(!s)},y=m=>{m.onClick&&m.onClick()};return z.useEffect(()=>{if(i)return document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g)}},[i,o]),P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:l,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[P.jsxRuntimeExports.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:d?0:"auto",bottom:d?"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:d?`calc(100vh - ${r.y+12}px)`:`${r.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&r.y<100?"32px":"0",marginBottom:!d&&r.y>window.innerHeight-100?"8px":"0"},children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${r.y+120}px)`:`${r.y-60}px`,padding:"14px 0"},children:u.map(m=>P.jsxRuntimeExports.jsx(X.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:()=>y(m),onMouseEnter:x=>{},onMouseLeave:x=>{},children:P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:m.color,marginBottom:"5px"},children:m.icon}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:m.title})]})},m.id))}),P.jsxRuntimeExports.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:m=>{},onMouseLeave:m=>{},children:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:i?"grabbing":"grab",zIndex:1001},onMouseDown:h}),P.jsxRuntimeExports.jsx(X.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:p})]})},K2=()=>{const{verifyWithToken:e}=zv.useAuth(),r=yu.useNavigate(),t=yu.useLocation();return z.useEffect(()=>{const n=new URLSearchParams(t.search).get("token");if(!n){r("/login",{replace:!0});return}(async()=>{const o=await e(n);r(o?"/main":"/login",{replace:!0})})()},[t.search]),P.jsxRuntimeExports.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:P.jsxRuntimeExports.jsx(X.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Hv;exports.BwgCmptArea=Uv;exports.BwgCol=Wv;exports.BwgConfigProvider=Dl;exports.BwgDetail=im;exports.BwgDrawer=om;exports.BwgEditor=Us;exports.BwgGrid=mh;exports.BwgInfoArea=Dg;exports.BwgPopup=qg;exports.BwgRow=Vg;exports.BwgTable=zg;exports.BwgTabs=Hg;exports.BwgTitleBox=Qi;exports.BwgView=q2;exports.ContentBox=Cr;exports.ContentLayOut=jr;exports.GlobalConfigProvider=V2;exports.QuickServiceToggle=W2;exports.SSOHandler=K2;exports.SearchBox=Ji;exports.createBwgGridRenderer=$g;
|
|
236
|
-
//# sourceMappingURL=SSOHandler-
|
|
236
|
+
//# sourceMappingURL=SSOHandler-BtrmIPzQ.cjs.map
|