PageSourceSearch

https://app.worked.im/_next/static/chunks/pages/admin/loan/document-9edb64b6457fa7cf.js

js worked.im collected 2026-10-05 06:52:56 UTC 25,423 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="83671026-b297-4b35-a70d-58d136370faf",e._sentryDebugIdIdentifier="sentry-dbid-83671026-b297-4b35-a70d-58d136370faf")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6183],{44347:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/loan/document",function(){return t(51186)}])},87717:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(82729),o=t(85893),i=t(67294),l=t(70917),d=t(16829),s=t(31925),c=t(73935),a=t(89189),u=t(818);function h(){let e=(0,r._)(["\n  position: relative;\n  width: 100%;\n"]);return h=function(){return e},e}function m(){let e=(0,r._)(["\n  width: 100%;\n  height: ",";\n\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  gap: 8px;\n\n  padding: 12px;\n\n  border: 1px solid\n    ",";\n  border-left-width: ",";\n  border-top-left-radius: ",";\n  border-bottom-left-radius: ",";\n  border-top-right-radius: ",";\n  border-bottom-right-radius: ",";\n\n  ","\n\n  &:hover {\n    border-color: ",";\n    cursor: ",";\n  }\n\n  background-color: ",";\n"]);return m=function(){return e},e}function x(){let e=(0,r._)(["\n  ","\n  color: ",";\n"]);return x=function(){return e},e}function p(){let e=(0,r._)(["\n  margin-top: 6px;\n  width: 0;\n  height: 0;\n  border-bottom: 6px solid transparent;\n  border-top: 6px solid\n    ",";\n  border-left: 6px solid transparent;\n  border-right: 6px solid transparent;\n"]);return p=function(){return e},e}function y(){let e=(0,r._)(["\n  width: 100%;\n  ","\n  color: ",";\n"]);return y=function(){return e},e}function Z(){let e=(0,r._)(["\n  z-index: ",";\n  position: absolute;\n  top: ",";\n  left: ",";\n\n  margin-top: 4px;\n  width: ",";\n\n  border: 1px solid ",";\n  border-radius: 8px;\n  overflow: hidden;\n  overflow-y: auto;\n\n  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);\n"]);return Z=function(){return e},e}function g(){let e=(0,r._)(["\n  width: 100%;\n\n  padding: 8px 12px;\n  ",";\n  color: ",";\n  background-color: ",";\n"]);return g=function(){return e},e}function b(){let e=(0,r._)(["\n  width: 100%;\n  padding: 8px 12px;\n  ","\n\n  color: ",";\n\n  background-color: ",";\n  &:hover {\n    cursor: ",";\n    background-color: ",";\n  }\n"]);return b=function(){return e},e}function f(){let e=(0,r._)(["\n      & > * {\n        color: ",";\n      }\n    "]);return f=function(){return e},e}function j(){let e=(0,r._)(["\n      & > * {\n        color: ",";\n      }\n    "]);return j=function(){return e},e}function _(){let e=(0,r._)(["\n      & > * {\n        color: ",";\n      }\n    "]);return _=function(){return e},e}function v(){let e=(0,r._)(["\n  display: flex;\n\n  align-items: flex-start;\n\n  margin-top: 4px;\n\n  ","\n\n  ","\n\n  ","\n"]);return v=function(){return e},e}function w(){let e=(0,r._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-width: 20px;\n  min-height: 20px;\n"]);return w=function(){return e},e}function C(){let e=(0,r._)(["\n  ","\n"]);return C=function(){return e},e}function k(e){var n,t,r;let{disabled:l=!1,value:d,placeholder:h,items:m=[],onClickItem:x=()=>{},message:p,isError:y=!1,errorMessage:Z,borderLeftRadius:g=8,borderRightRadius:b=8,hasBorderLeft:f=!0,borderColor:j=a.Z.gray[600],bgColor:_,isPortal:v=!1,portalzIndex:w=u.Z.zIndex.dropdown+2,height:C,dropdownLabel:k,itemWidth:L}=e,A=(0,i.useRef)(null),P=(0,i.useRef)(null),[W,D]=(0,i.useState)(!1),[M,V]=(0,i.useState)({top:0,left:0}),O=(0,i.useCallback)(e=>{e.stopPropagation(),D(e=>!e)},[]),U=()=>{if(P.current){let e=P.current.getBoundingClientRect();V({top:e.bottom+window.scrollY,left:e.left+window.scrollX})}};return(0,i.useEffect)(()=>{let e=e=>{W&&A.current&&!A.current.contains(e.target)&&D(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[W]),(0,i.useEffect)(()=>{v&&W&&U()},[W,v]),(0,o.jsxs)(B,{ref:P,children:[(0,o.jsx)(I,{onClick:l?()=>{}:O,isError:y||!!Z,disabled:l,borderLeftRadius:g,borderRightRadius:b,hasBorderLeft:f,borderColor:j,height:C,bgColor:null!=_?_:null===(n=m.find(e=>e.value===d))||void 0===n?void 0:n.bgColor,children:d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(R,{disabled:l,textColor:null===(t=m.find(e=>e.value===d))||void 0===t?void 0:t.textColor,children:(null===(r=m.find(e=>e.value===d))||void 0===r?void 0:r.name)||d}),(0,o.jsx)(E,{disabled:l})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(S,{children:h}),(0,o.jsx)(E,{disabled:l})]})}
1),Z&&(0,o.jsxs)(N,{isError:!0,children:[(0,o.jsx)(q,{children:(0,o.jsx)(s.Z,{sx:{width:16,height:16,color:a.Z.error.main}})}),(0,o.jsx)(z,{children:Z})]}),(null==p?void 0:p.trim())&&!y&&(0,o.jsxs)(N,{children:[(0,o.jsx)(q,{children:(0,o.jsx)(s.Z,{style:{width:16,height:16,color:a.Z.text.secondary}})}),(0,o.jsx)(z,{children:p})]}),(null==p?void 0:p.trim())&&y&&(0,o.jsxs)(N,{isError:y,children:[(0,o.jsx)(q,{children:(0,o.jsx)(s.Z,{sx:{width:16,height:16,color:a.Z.error.main}})}),(0,o.jsx)(z,{children:p})]}),v&&W&&(0,c.createPortal)((0,o.jsxs)(T,{ref:A,position:M,isPortal:v,portalzIndex:w,itemWidth:L,children:[k&&(0,o.jsx)(H,{children:k}),m.map((e,n)=>(0,o.jsx)(F,{onClick:n=>{n.stopPropagation(),e.disabled||(x(e.value),D(!1))},disabled:e.disabled,children:e.name},n))]}),document.body),!v&&W&&(0,o.jsxs)(T,{ref:A,itemWidth:L,children:[k&&(0,o.jsx)(H,{children:k}),m.map((e,n)=>(0,o.jsx)(F,{onClick:n=>{n.stopPropagation(),e.disabled||(x(e.value),D(!1))},disabled:e.disabled,children:e.name},n))]})]})}let B=d.Z.div(h()),I=d.Z.div(m(),e=>e.height?"".concat(e.height,"px"):"36px",e=>e.isError?e.theme.colors.error.main:e.borderColor,e=>e.hasBorderLeft?"1px":"0px",e=>e.borderLeftRadius+"px",e=>e.borderLeftRadius+"px",e=>e.borderRightRadius+"px",e=>e.borderRightRadius+"px",e=>e.theme.typo.body1.regular,e=>!e.disabled&&e.theme.colors.text.primary,e=>e.disabled?"no-drop":"pointer",e=>e.disabled?e.bgColor||a.Z.gray[100]:e.bgColor||a.Z.common.white),S=d.Z.div(x(),e=>e.theme.typo.body2.regular,e=>e.theme.colors.text.placeholder),E=d.Z.div(p(),e=>e.disabled?e.theme.colors.gray.disabled:e.theme.colors.text.secondary),R=d.Z.div(y(),e=>e.theme.typo.body2.regular,e=>e.disabled?e.theme.colors.gray.disabled:e.textColor||e.theme.colors.text.primary),T=d.Z.ul(Z(),e=>e.isPortal?e.portalzIndex:e.theme.common.zIndex.dropdown,e=>e.position?"".concat(e.position.top,"px"):"100%",e=>e.position?"".concat(e.position.left,"px"):0,e=>e.itemWidth?"".concat(e.itemWidth,"px"):"128px",e=>e.theme.colors.gray.stroke),H=d.Z.div(g(),e=>e.theme.typo.body1.regular,e=>e.theme.colors.text.placeholder,e=>e.theme.colors.common.white),F=d.Z.li(b(),e=>e.theme.typo.body2.regular,e=>e.disabled?e.theme.colors.gray.disabled:e.theme.colors.text.primary,e=>e.disabled?e.theme.colors.gray[100]:e.theme.colors.common.white,e=>e.disabled?"no-drop":"pointer",e=>e.disabled?e.theme.colors.gray[100]:e.theme.colors.primaryBlue[300]),N=d.Z.div(v(),e=>e.isCheck&&(0,l.iv)(f(),e.theme.colors.text.secondary),e=>e.checked&&(0,l.iv)(j(),e.theme.colors.primaryBlue.main),e=>e.isError&&(0,l.iv)(_(),e.theme.colors.error.main)),q=d.Z.div(w()),z=d.Z.span(C(),e=>e.theme.typo.body3.regular)},68608:function(e,n,t){"use strict";var r=t(82729),o=t(85893),i=t(16829);function l(){let e=(0,r._)(["\n  cursor: pointer;\n\n  height: ",";\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  padding: 16px 30px 8px 30px;\n\n  color: ",";\n  border-bottom: 2px solid\n    ",";\n  background-color: ",";\n\n  ","\n"]);return l=function(){return e},e}function d(){let e=(0,r._)([""]);return d=function(){return e},e}let s=i.Z.li(l(),e=>e.height?"".concat(e.height,"px"):"auto",e=>e.actived?e.theme.colors.text.primary:e.theme.colors.text.secondary,e=>e.actived?e.theme.colors.text.primary:e.theme.colors.divider,e=>e.theme.colors.common.white,e=>e.actived?e.theme.typo.body1.medium:e.theme.typo.body1.regular),c=i.Z.div(d());n.Z=e=>{let{title:n,actived:t=!1,onClick:r,height:i=50,width:l=160}=e;return(0,o.jsx)(s,{actived:t,height:i,width:l,onClick:r,children:(0,o.jsx)(c,{children:n})})}},51186:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return es}});var r=t(85893),o=t(82729),i=t(67294),l=t(16829),d=t(81104),s=t(78731),c=t(17e3),a=t(48228),u=t(27484),h=t.n(u),m=t(11163),x=t(4480),p=t(59475),y=t(5564),Z=t(92331),g=t(10393),b=t(56830),f=t(99292),j=t(21341),_=t(12796),v=t(16168),w=t(6914),C=t(87717),k=t(68608),B=t(67975),I=t(25479),S=t(43),E=t(23296),R=t(24689),T=t(49715),H=t(96781),F=t(50484),N=t(89189),q=t(23384),z=t(16402),L=t(66103);function A(){let e=(0,o._)(["\n  position: relative;\n  width: 100%;\n  display: flex;\n  align-items: center;\n  gap: 8px;\n"]);return A=function(){return e},e}function P(){let e=(0,o._)(["\n  display: flex;\n  justify-content: flex-start;\n  align-items: stretch;\n  gap: 12px;\n  flex: 1;\n  overflow-x: hidden;\n  scroll-behavior: smooth;\n"]);return P=function(){return e},e}function W(){let e=(0,o._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-shrink: 0;\n  width: 32px;\n  height: 32px;\n  border-radius: 50%;\n  border: 1px solid\n    ",";\n  background: ",";\n  cursor: ",";\n  color: ",";\n  font-size: 16px;\n  line-height: 1;\n  transition: all 0.15s ease;\n\n  &:hover:not(:disabled) {\n    border-color: ",";\n    color: ",";\n  }\n"]);return W=function(){return e},e}function D(){let e=(0,o._)(["\n  cursor: pointer;\n  flex-shrink: 0;\n"]);return D=function(){return e},e}function M(){let e=(0,o._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  width: 140px;\n  height: 100px;\n  padding: 0 20px;\n  background-color: ",";\n  border-radius: 12px;\n  border: 1px solid ",";\n  box-shadow: ",";\n  transition: all 0.2s ease-in-out;\n"]);return M=function(){return e},e}function V(){let e=(0,o._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  width: 120px;\n  height: 100px;\n  padding: 0 16px;\n  background-color: ",";\n  border-radius: 12px;\n  border: 1px solid\n    ",";\n  box-shadow: ",";\n  transition: all 0.2s ease-in-out;\n"]);return V=function(){return e},e}function O(){let e=(0,o._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 200px;\n  background-color: ",";\n  border-radius: 12px;\n"]);return O=function(){return e},e}function U(){let e=(0,o._)(["\n  width: 100%;\n  height: 50px;\n  display: flex;\n  border-bottom: 2px solid ",";\n  background-color: ",";\n  list-style: none;\n  padding: 0;\n  margin: 0;\n"]);return U=function(){return e},e}function X(){let e=(0,o._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 4px;\n  width: 100%;\n"]);return X=function(){return e},e}function K(){let e=(0,o._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 0 12px;\n"]);return K=function(){return e},e}let Y=[1,2,3,4,5,6,7,8,9,10,11,12],G={document:"200px 120px 150px 120px 205px minmax(160px, 1fr) 120px 235px",maturity:"200px 120px 150px 185px 1fr"},J=l.Z.div(A()),Q=l.Z.div(P()),$=l.Z.button(W(),e=>{let{theme:n,disabled:t}=e;return t?n.colors.gray[300]:n.colors.gray[400]},e=>{let{theme:n,disabled:t}=e;return t?n.colors.gray[100]:n.colors.common.white},e=>{let{disabled:n}=e;return n?"not-allowed":"pointer"},e=>{let{theme:n,disabled:t}=e;return t?n.colors.text.disabled:n.colors.text.secondary},e=>{let{theme:n}=e;return n.colors.primaryBlue.main},e=>{let{theme:n}=e;return n.colors.primaryBlue.main}),ee=l.Z.div(D()),en=l.Z.div(M(),e=>{let{theme:n,isSelected:t}=e;return t?n.colors.primaryBlue.main:n.colors.primaryBlue[100]},e=>{let{theme:n}=e;return n.colors.primaryBlue.main},e=>{let{isSelected:n}=e;return n?"0px 4px 12px rgba(64, 117, 255, 0.2)":"none"}),et=l.Z.div(V(),e=>{let{theme:n,isSelected:t}=e;return t?n.colors.primaryBlue.main:n.colors.common.white},e=>{let{theme:n,isSelected:t}=e;return t?n.colors.primaryBlue.main:n.colors.gray[200]},e=>{let{isSelected:n}=e;return n?"0px 4px 12px rgba(64, 117, 255, 0.2)":"none"}),er=l.Z.div(O(),e=>{let{theme:n}=e;return n.colors.gray[100]}),eo=l.Z.ul(U(),e=>{let{theme:n}=e;return n.colors.divider},e=>{let{theme:n}=e;return n.colors.common.white}),ei=l.Z.div(X()),el=l.Z.div(K()),ed=()=>{var e,n;let t=(0,m.useRouter)(),o=Number(t.query.year),l=Number(t.query.month),{isLoggedIn:u}=(0,H.Z)(),A=(0,x.Zl)(g.F8),P=(0,x.Zl)(Z.z),[W,D]=(0,i.useState)("document"),M=(0,i.useRef)(null),[V,O]=(0,i.useState)(!1),[U,X]=(0,i.useState)(!0),K=(0,i.useCallback)(()=>{let e=M.current;e&&(O(e.scrollLeft>0),X(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[]),ed=(0,i.useCallback)(e=>{let n=M.current;n&&n.scrollBy({left:"left"===e?-260:260,behavior:"smooth"})},[]);(0,i.useEffect)(()=>{let e=setTimeout(K,50);return()=>clearTimeout(e)},[K]),(0,i.useEffect)(()=>
1{o||l||t.replace({query:{year:h()().year(),month:h()().month()+1}})},[o,t,l]);let es=(0,c.a)({queryKey:y.E.application.documentSubmitSchedule(Number(o),Number(l),""),queryFn:()=>p.Z.admin.loan.application.documentSubmitSchedule(o,l,""),enabled:u&&!isNaN(o)&&!isNaN(l),onSuccess:e=>{if(0!==e.year_list.length&&0!==e.month_list.length&&e.year_list.includes(o)&&e.month_list.includes(l))return},onError:e=>{console.error("document submit schedule error",e)}}),ec=(0,i.useMemo)(()=>{var e,n;return[...((null===(e=es.data)||void 0===e?void 0:e.schedule_list)||[]).filter(e=>e.submit_count>0).map(e=>({...e,itemType:"document"})),...((null===(n=es.data)||void 0===n?void 0:n.maturity_list)||[]).map(e=>({...e,itemType:"maturity",submit_count:"-",total_submit_schedule:"-",documents:[]}))].sort((e,n)=>e.itemType===n.itemType?"maturity"===e.itemType?h()(n.loan_end_date).isAfter(h()(e.loan_end_date))?1:-1:e.user_name<n.user_name?-1:1:"document"===e.itemType?-1:1)},[es.data]),ea=(0,i.useCallback)((e,n)=>{es.data&&A({openModal:!0,applicationId:e,tab:"증빙서류",submitCount:n,isAdmin:!0})},[es.data,A]),[eu,eh]=(0,i.useState)({}),em=(0,i.useCallback)((e,n)=>{eh(t=>({...t,[e]:n}))},[]),[ex,ep]=(0,i.useState)(()=>({[new Date().getMonth()+1]:!0})),ey=e=>{ep(n=>({...n,[e]:!n[e]}))},eZ=(0,i.useMemo)(()=>{if(0!==l)return null;let e={};return Y.forEach(n=>e[n]=[]),ec.forEach(n=>{let t="document"===n.itemType?h()(n.submit_start_date).month()+1:h()(n.loan_end_date).month()+1;e[t]&&e[t].push(n)}),e},[ec,l]),eg=(0,a.D)(p.Z.admin.loan.patch.updateSubmitScheduleStatus),eb=(0,F.Z)(e=>{let{uuid:n,submitCount:t,scheduleUuid:r}=e;if(eg.isLoading)return;let o=eu[r];if(!o)return alert("증빙 상태를 선택해주세요.");let i=(0,z.V9)(T.mp,o);confirm("".concat(i," 상태로 변경하시겠습니까?"))&&(P(!0),eg.mutate({uuid:n,status:o,submit_count:t},{onSuccess:()=>{eh(e=>{let n={...e};return delete n[r],n}),es.refetch(),P(!1),alert("".concat(i," 상태로 변경되었습니다."))},onError:e=>{console.error("update submit schedule error",e),alert("서버 오류가 발생했습니다. 다시 시도해주세요."),P(!1)}}))}),ef=null===(e=es.data)||void 0===e?void 0:e.summary,ej=(null===(n=es.data)||void 0===n?void 0:n.year_list.sort((e,n)=>n-e))||[h()().year()],e_=(0,i.useMemo)(()=>ec.filter(e=>e.itemType===W),[ec,W]),ev=()=>(0,r.jsxs)(B.Z.Row,{gridTemplateColumns:G[W],height:44,padding:"0 16px",selectable:!1,isActiveHover:!1,children:[(0,r.jsx)(B.Z.BodyItem,{textAlign:"left",children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"대상자"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"상태"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"대출용도"})}),"document"===W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"제출회차"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"제출기간"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"제출서류"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"제출내역"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"상태변경"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"만기일자"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:"상태 및 관리"})})]})]}),ew=e=>{let n=e.status===T.Uu.상환종료,t=!n&&!!e.loan_end_date&&h()(e.loan_end_date).isBefore(h()(),"day"),{text:o,color:i}=n?{text:"대출 종료",color:N.Z.chip.grayMain}:t?{text:"만기 처리 대기중",color:N.Z.error.main}:e.status===T.Uu.상환중?{text:"상환중",color:N.Z.text.primary}:{text:"지급 완료",color:N.Z.text.secondary};return(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:i,children:o})},eC=e=>e.map(e=>(0,r.jsxs)(B.Z.Row,{gridTemplateColumns:G[W],height:70,flexibleHeight:!0,selectable:!1,isActiveHover:!1,padding:"0 16px",children:[(0,r.jsx)(B.Z.BodyItem,{textAlign:"left",children:(0,r.jsxs)(I.Z,{typography:q.Z.body2.bold,children:[e.user_name,"(",(0,L.kB)(e.user_start_work),"입사)"]})}),(0,r.jsx)(B.Z.BodyItem,{children:"document"===e.itemType?(0,r.jsx)(E.Z,{status:e.status,type:"document"}):(0,r.jsx)(b.Z,{backgroundColor:N.Z.gray[100],color:N.Z.text.secondary,paddingVH:"2px 6px",children:"만기대상"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,children:e.purpose})}),"document"===W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,children:Number(e.total_submit_schedule)>0?"".concat(e.submit_count," / ").concat(e.total_submit_schedule,"회차"):"-"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsxs)(I.Z,{typography:q.Z.body2.medium,style:{whiteSpace:"nowrap"},children:[(0,L.kB)(e.submit_start_date)," ~"," ",(0,L.kB)(e.submit_end_date)]})}),(0,r.jsx)(B.Z.BodyItem,{textAlign:"left",children:(0,r.jsx)(ei,{children:(e.documents||[]).map(e=>
1{let n=!e.is_submit&&e.is_required&&e.is_exceed_submit_period,t=e.is_submit;return(0,r.jsxs)(_.Z,{gap:4,alignItems:"center",style:{flexWrap:"wrap"},children:[(0,r.jsxs)(I.Z,{typography:q.Z.body3.regular,color:n?N.Z.error.main:t?N.Z.primaryBlue.main:N.Z.text.secondary,children:[e.name,e.is_required&&" (필)"]}),n&&(0,r.jsx)(b.Z,{backgroundColor:N.Z.error.light,color:N.Z.error.main,paddingVH:"1px 5px",rounded:!0,children:"미제출"}),t&&(e.file_list||[]).map((e,n)=>(0,r.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",title:e.name,children:(0,r.jsxs)(I.Z,{typography:q.Z.small.medium,color:N.Z.primaryBlue.main,style:{textDecoration:"underline"},children:["파일",n+1]})},n))]},e.name)})})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(f.Z,{size:"small",width:80,variant:"outlined",onClick:()=>ea(e.id,e.submit_count),children:"서류 확인"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsxs)(el,{children:[(0,r.jsx)(C.Z,{isPortal:!0,placeholder:"상태 변경",value:eu[e.uuid]||"",disabled:e.status===T.mp.확인완료,onClickItem:n=>em(e.uuid,n),items:Object.entries(T.mp).map(n=>{let[t,r]=n;return{name:t,value:r,disabled:e.status===r}})}),(0,r.jsx)(w.Z,{space:5,direction:"horizontal"}),(0,r.jsx)(f.Z,{disabled:e.status===T.mp.확인완료||!eu[e.uuid],variant:"outlined",size:"small",width:54,minWidth:54,onClick:()=>eb({uuid:e.application_uuid||e.uuid,submitCount:e.submit_count,scheduleUuid:e.uuid}),children:"저장"})]})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,children:e.loan_end_date?(0,L.kK)(e.loan_end_date):"-"})}),(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsxs)(_.Z,{justifyContent:"center",alignItems:"center",gap:12,children:[ew(e),(0,r.jsx)(f.Z,{size:"small",width:100,variant:"outlined",onClick:()=>ea(e.id,0),children:"신청 정보"})]})})]})]},"".concat(e.uuid,"-").concat(e.itemType)));return(0,r.jsxs)(S.Z,{title:"대출 사후 관리 (증빙/만기)",isFullMain:!0,titleRight:(0,r.jsx)("div",{style:{marginRight:32},children:(0,r.jsx)(j.Z,{width:194,items:ej.map(e=>({name:"".concat(e,"년"),value:e.toString()})),value:o.toString(),onClickItem:e=>{t.push({query:{...t.query,year:e}})}})}),children:[es.isLoading&&(0,r.jsx)(v.Z,{}),es.isError&&(0,r.jsx)(R.Z,{onClickRetry:es.refetch}),es.data&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{space:32}),(0,r.jsxs)(J,{children:[(0,r.jsx)($,{disabled:!V,onClick:()=>ed("left"),children:"‹"}),(0,r.jsxs)(Q,{ref:M,onScroll:K,children:[(0,r.jsx)(ee,{onClick:()=>t.push({query:{...t.query,month:0}}),children:(0,r.jsxs)(en,{isSelected:0===l,children:[(0,r.jsx)(I.Z,{typography:q.Z.body3.medium,color:0===l?N.Z.common.white:N.Z.primaryBlue.main,children:"연간 전체 대상"}),(0,r.jsxs)(I.Z,{typography:q.Z.h5.bold,color:0===l?N.Z.common.white:N.Z.primaryBlue.main,children:[(null==ef?void 0:ef.yearly_total)||0,"명"]})]})}),Y.map(e=>{var n;let o=null==ef?void 0:null===(n=ef.monthly_targets)||void 0===n?void 0:n.find(n=>n.month===e),i=(null==o?void 0:o.total_count)||0,d=(null==o?void 0:o.document_count)||0,s=(null==o?void 0:o.maturity_count)||0;return(0,r.jsx)(ee,{onClick:()=>t.push({query:{...t.query,month:e}}),children:(0,r.jsxs)(et,{isSelected:e===l,children:[(0,r.jsxs)(I.Z,{typography:q.Z.body3.bold,color:e===l?N.Z.common.white:N.Z.text.primary,children:[e,"월"]}),(0,r.jsx)(w.Z,{space:4}),(0,r.jsxs)(I.Z,{typography:q.Z.body3.medium,color:e===l?N.Z.primaryBlue[100]:N.Z.text.secondary,children:["총 ",i,"명"]}),(0,r.jsxs)(I.Z,{typography:q.Z.small.regular,color:e===l?N.Z.primaryBlue[100]:N.Z.text.secondary,children:["서류 ",d," / 만기 ",s]})]})},e)})]}),(0,r.jsx)($,{disabled:!U,onClick:()=>ed("right"),children:"›"})]}),(0,r.jsx)(w.Z,{space:40}),(0,r.jsxs)(eo,{children:[(0,r.jsx)(k.Z,{title:"증빙 서류 대상",actived:"document"===W,onClick:()=>D("document")}),(0,r.jsx)(k.Z,{title:"대출 만기 대상",actived:"maturity"===W,onClick:()=>D("maturity")})]}),(0,r.jsx)(w.Z,{space:24}),(0,r.jsx)(B.Z.Header,{totalCount:e_.length,totalCountText:"건의 ".concat("document"===W?"증빙 서류":"대출 만기"," 대상")}),(0,r.jsx)(w.Z,{space:16}),0===l?(0,r.jsx)(B.Z,{flex:"1 1 0",children:(0,r.jsx)(B.Z.ScrollContainer,{children:(0,r.jsx)(B.Z.Container,{children:(0,r.jsx)(B.Z.Body,{children:Y.map(e=>{let n=((null==eZ?void 0:eZ[e])||[]).filter(e=>e.itemType===W),t=ex[e];return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(B.Z.Row,{gridTemplateColumns:"1fr",height:48,padding:"0 16px",backgroundColor:N.Z.gray[100],hoverBgColor:N.Z.gray[200],isActiveHover:!0,selectable:!0,onClick:()=>ey(e),children:(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsxs)(_.Z,{justifyContent:"space-between",alignItems:"center",style:{width:"100%"},children:[(0,r.jsxs)(_.Z,{gap:12,alignItems:"center",children:[(0,r.jsxs)(I.Z,{typography:q.Z.body1.bold,children:[e,"월"]}),(0,r.jsxs)(b.Z,{backgroundColor:n.length>0?N.Z.primaryBlue[100]:N.Z.gray[200],color:n.length>0?N.Z.primaryBlue.main:N.Z.text.secondary,paddingVH:"2px 8px",children:[n.length,"건"]})]}),(0,r.jsxs)(_.Z,{gap:4,alignItems:"center",children:[(0,r.jsx)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:t?"접기":"펼치기"}),t?(0,r.jsx)(d.Z,{sx:{width:16,height:16,color:N.Z.text.secondary}}):(0,r.jsx)(s.Z,{sx:{width:16,height:16,color:N.Z.text.secondary}})]})]})})}),t&&(0===n.length?(0,r.jsx)(B.Z.Row,{gridTemplateColumns:"1fr",height:70,padding:"0 16px",selectable:!1,isActiveHover:!1,children:(0,r.jsx)(B.Z.BodyItem,{children:(0,r.jsx)(I.Z,{typography:q.Z.body3.medium,color:N.Z.text.disabled,children:"해당 월의 대상자가 없습니다."})})}):(0,r.jsxs)(r.Fragment,{children:[ev(),eC(n)]}))]},e)})})})})}):(0,r.jsx)(r.Fragment,{children:0===e_.length?(0,r.jsx)(er,{children:(0,r.jsxs)(I.Z,{typography:q.Z.body2.medium,color:N.Z.text.secondary,children:["해당 월에 ","document"===W?"서류 제출":"만기"," ","대상이 없습니다."]})}):(0,r.jsx)(B.Z,{flex:"1 1 0",children:(0,r.jsx)(B.Z.ScrollContainer,{children:(0,r.jsxs)(B.Z.Container,{children:[(0,r.jsx)(B.Z.Sticky,{top:0,children:(0,r.jsx)(B.Z.Head,{children:(0,r.jsxs)(B.Z.Row,{gridTemplateColumns:G[W],height:44,padding:"0 16px",children:[(0,r.jsx)(B.Z.HeadItem,{textAlign:"left",children:"대상자"}),(0,r.jsx)(B.Z.HeadItem,{children:"상태"}),(0,r.jsx)(B.Z.HeadItem,{children:"대출용도"}),"document"===W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Z.HeadItem,{children:"제출회차"}),(0,r.jsx)(B.Z.HeadItem,{children:"제출기간"}),(0,r.jsx)(B.Z.HeadItem,{children:"제출서류"}),(0,r.jsx)(B.Z.HeadItem,{children:"제출내역"}),(0,r.jsx)(B.Z.HeadItem,{children:"상태변경"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Z.HeadItem,{children:"만기일자"}),(0,r.jsx)(B.Z.HeadItem,{children:"상태 및 관리"})]})]})})}),(0,r.jsx)(B.Z.Body,{children:eC(e_)})]})})})}),(0,r.jsx)(w.Z,{space:80})]})]})};var es=()=>(0,r.jsx)(ed,{})}},function(e){e.O(0,[1664,3868,7975,8066,2412,8099,43,2888,9774,179],function(){return e(e.s=44347)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.