PageSourceSearch

https://app.worked.im/_next/static/chunks/pages/loan/early-repayment-735c6517679b88cc.js

js worked.im collected 2026-10-05 06:55:44 UTC 26,210 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]="b85a2a7d-99e0-4414-a33e-4637697ff55e",e._sentryDebugIdIdentifier="sentry-dbid-b85a2a7d-99e0-4414-a33e-4637697ff55e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1184],{85273:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/loan/early-repayment",function(){return t(63277)}])},13440:function(e,n,t){"use strict";var r=t(30139),o=t(85893);n.Z=(0,r.Z)((0,o.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline")},85413:function(e,n,t){"use strict";var r=t(30139),o=t(85893);n.Z=(0,r.Z)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},65393:function(e,n,t){"use strict";var r=t(30139),o=t(85893);n.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked")},18195:function(e,n,t){"use strict";var r=t(30139),o=t(85893);n.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked")},19865:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var r=t(82729),o=t(85893),i=t(70917),l=t(16829),a=t(75861),s=t(96096),c=t(65393),d=t(18195),u=t(31925),p=t(89189);function h(){let e=(0,r._)(["\n  cursor: pointer;\n\n  width: 100%;\n  min-width: ","px;\n  height: ",";\n\n  background-color: ",";\n\n  border: 1px solid\n    ",";\n\n  padding: 8px;\n\n  border-radius: ",";\n\n  display: flex;\n  align-items: center;\n\n  &:disabled {\n    background-color: ",";\n  }\n"]);return h=function(){return e},e}function x(){let e=(0,r._)(["\n  padding: 24px;\n"]);return x=function(){return e},e}function m(){let e=(0,r._)(["\n  width: 24px;\n  height: 24px;\n\n  margin-right: 12px;\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  margin-left: ",";\n"]);return m=function(){return e},e}function y(){let e=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n"]);return y=function(){return e},e}function g(){let e=(0,r._)(["\n  text-align: left;\n  ","\n"]);return g=function(){return e},e}function f(){let e=(0,r._)(["\n  ","\n"]);return f=function(){return e},e}function j(){let e=(0,r._)(["\n  ",";\n"]);return j=function(){return e},e}function Z(){let e=(0,r._)(["\n      & > * {\n        color: ",";\n      }\n    "]);return Z=function(){return e},e}function _(){let e=(0,r._)(["\n  width: 100%;\n  position: relative;\n  display: flex;\n\n  align-items: flex-start;\n\n  margin-top: 4px;\n\n  ","\n\n  &:hover .badge-alert {\n    display: block;\n  }\n"]);return _=function(){return e},e}function b(){let e=(0,r._)(["\n  ","\n"]);return b=function(){return e},e}function v(){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 v=function(){return e},e}let w=e=>"house"===e?"주거안정자금":"life"===e?"생활안정자금":"",k={width:"40px",height:"40px",marginRight:"12px"},D=e=>"house"===e?(0,o.jsx)(a.Z,{sx:k}):"life"===e?(0,o.jsx)(s.Z,{sx:k}):null;function C(e){let{title:n,description:t,checked:r,onClick:i,height:l,type:a,disabled:s,checkedColor:h,borderRadius:x,isError:m=!1,hasErrorIcon:y=!1,errorMessage:g,minWidth:f}=e;return a?(0,o.jsxs)(L,{checked:r,onClick:s?()=>{}:i,height:l,disabled:s,isError:m,minWidth:f,children:[D(a),"large"===a&&(0,o.jsx)(M,{children:n}),"large"!==a&&(0,o.jsx)(M,{children:w(a)}),(0,o.jsx)(R,{marginLeft:"auto",children:r?(0,o.jsx)(c.Z,{sx:{width:32,height:32,color:h||p.Z.primaryBlue.main}}):(0,o.jsx)(d.Z,{sx:{width:32,height:32,color:p.Z.text.secondary}})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(B,{checked:r,onClick:s?()=>{}:i,height:l,disabled:s,checkedColor:h,isError:m,borderRadius:x,minWidth:f,children:[(0,o.jsx)(R,{children:r?(0,o.jsx)(c.Z,{sx:{width:24,height:24,color:h||p.Z.primaryBlue.main}}):(0,o.jsx)(d.Z,{sx:{width:24,height:24,color:p.Z.text.secondary}})}),(0,o.jsxs)(S,{children:[(0,o.jsx)(E,{children:n}),t&&(0,o.jsx)(F,{children:t})]})]}
1),(null==g?void 0:g.trim())&&(0,o.jsxs)(I,{isError:!0,children:[y&&(0,o.jsx)(q,{children:(0,o.jsx)(u.Z,{sx:{width:16,height:16,color:p.Z.error.main}})}),(0,o.jsx)(z,{children:g})]})]})}let B=l.Z.button(h(),e=>e.minWidth,e=>e.height?"".concat(e.height,"px"):"auto",e=>e.isError?e.theme.colors.error.light:e.checked?e.checkedColor?"white":e.theme.colors.primaryBlue[300]:e.theme.colors.common.white,e=>e.isError?e.theme.colors.error.main:e.checked?e.checkedColor?e.checkedColor:e.theme.colors.primaryBlue.main:e.theme.colors.gray[400],e=>e.borderRadius?"".concat(e.borderRadius,"px"):"12px",e=>e.theme.colors.gray[100]),L=(0,l.Z)(B)(x()),R=l.Z.div(m(),e=>e.marginLeft?e.marginLeft:"0px"),S=l.Z.div(y()),E=l.Z.div(g(),e=>e.theme.typo.body2.medium),F=l.Z.div(f(),e=>e.theme.typo.body2.regular),M=l.Z.div(j(),e=>e.theme.typo.body1.bold),I=l.Z.div(_(),e=>e.isError&&(0,i.iv)(Z(),e.theme.colors.error.main)),z=l.Z.span(b(),e=>e.theme.typo.body3.regular),q=l.Z.div(v())},14148:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(82729),o=t(85893);function i(){let e=(0,r._)(["\n  width: 100%;\n  display: flex;\n  flex-direction: ",";\n  gap: ","px;\n"]);return i=function(){return e},e}function l(e){let{children:n,direction:t="row",gap:r=16,...i}=e;return(0,o.jsx)(a,{direction:t,gap:r,...i,children:n})}let a=t(16829).Z.div(i(),e=>e.direction,e=>e.gap)},63277:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eD}});var r=t(82729),o=t(85893),i=t(67294),l=t(16829),a=t(30139),s=(0,a.Z)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-2 14-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"}),"AssignmentTurnedIn"),c=(0,a.Z)((0,o.jsx)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2m0 14H4v-6h16zm0-10H4V6h16z"}),"CreditCard"),d=(0,a.Z)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),u=t(85413),p=t(65489),h=(0,a.Z)((0,o.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History"),x=t(13440),m=t(85945),y=t(17e3),g=t(48228),f=t(27484),j=t.n(f),Z=t(4480),_=t(59475),b=t(46041);let v={earlyRepaymentType:"general",resignDate:"",uuid:"",createAt:"",loanAmountRequested:0,balance:"",repaymentMethod:"",contractInterestRatePercent:"",endLoanDate:"",calcEndDate:"",interest:0,principal:0,repaymentAmount:0,applicantMemo:""},w=(0,Z.cn)({key:"selectedEarlyRepaymentFormAtom",default:v});var k=t(99292),D=t(64499),C=t(12796),B=t(16168),L=t(19865),R=t(14148),S=t(6914),E=t(25479),F=t(43),M=t(23296),I=t(24689),z=t(49715),q=t(96781),T=t(68457),O=t(15615),W=t(50484),K=t(89189),A=t(23384),H=t(66103),N=t(86640);function V(){let e=(0,r._)(["\n  max-width: 960px;\n  margin: 0 auto;\n  width: 100%;\n"]);return V=function(){return e},e}function P(){let e=(0,r._)(["\n  padding: 24px;\n  border-radius: 16px;\n  background: ",";\n  border: 1px solid ",";\n"]);return P=function(){return e},e}function U(){let e=(0,r._)(["\n  list-style: disc;\n  padding-left: 20px;\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n\n  li {\n    ","\n    color: ",";\n    line-height: 1.5;\n  }\n"]);return U=function(){return e},e}function X(){let e=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 20px;\n"]);return X=function(){return e},e}function Q(){let e=(0,r._)(["\n  border-radius: 16px;\n  border: 1.5px solid\n    ",";\n  background: ",";\n  overflow: hidden;\n  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);\n\n  &:hover {\n    border-color: ",";\n    transform: translateY(-2px);\n    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);\n  }\n"]);return Q=function(){return e},e}function Y(){let e=(0,r._)(["\n  padding: 24px 32px;\n"]);return Y=function(){return e},e}function G(){let e=(0,r._)(["\n  display: grid;\n  grid-template-columns: 80px 1fr;\n  row-gap: 4px;\n  column-gap: 12px;\n  margin-top: 4px;\n"]);return G=function(){return e},e}function J(){let e=(0,r._)(["\n  ","\n  color: ",";\n"]);return J=function(){return e},e}function $(){let e=(0,r._)(["\n  ","\n"]);return $=function(){return e},e}function ee(){let e=(0,r._)(["\n  all: unset;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  padding: 12px 20px;\n  border-radius: 12px;\n  flex-shrink: 0;\n\n  ","\n  color: ",";\n  background: ",";\n  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n\n  &:hover {\n    transform: scale(1.02);\n    background: ",";\n  }\n\n  &:active {\n    transform: scale(0.98);\n  }\n\n  svg {\n    transition: transform 0.2s ease;\n  }\n"]);return ee=function(){return e},e}function en(){let e=(0,r._)(["\n  padding: 8px 16px;\n  border-radius: 10px;\n  background: ",";\n  ","\n  color: ",";\n  flex-shrink: 0;\n"]);return en=function(){return e},e}function et(){let e=(0,r._)(["\n  padding: 6px 12px;\n  border-radius: 8px;\n  background: ",";\n  ","\n  color: ",";\n  flex-shrink: 0;\n  white-space: nowrap;\n  box-shadow: 0 2px 4px rgba(230, 81, 0, 0.1);\n"]);return et=function(){return e},e}function er(){let e=(0,r._)(["\n  padding: 20px;\n  border-top: 1px dashed ",";\n  background: ",";\n"]);return er=function(){return e},e}function eo(){let e=(0,r._)(["\n  ","\n"]);return eo=function(){return e},e}function ei(){let e=(0,r._)(["\n  list-style: disc;\n  padding-left: 18px;\n  display: flex;\n  flex-direction: column;\n  gap: 2px;\n\n  li {\n    ","\n    color: ",";\n  }\n"]);return ei=function(){return e},e}function el(){let e=(0,r._)(["\n  padding: 16px;\n  border-radius: 10px;\n  background: ",";\n  border: 1px solid ",";\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n"]);return el=function(){return e},e}function ea(){let e=(0,r._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n"]);return ea=function(){return e},e}function es(){let e=(0,r._)(["\n  border: none;\n  border-top: 1px solid ",";\n  margin: 4px 0;\n"]);return es=function(){return e},e}function ec(){let e=(0,r._)(["\n  ","\n  color: ",";\n  margin-top: 4px;\n"]);return ec=function(){return e},e}function ed(){let e=(0,r._)(["\n  width: 100%;\n  padding: 80px 0;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 16px;\n"]);return ed=function(){return e},e}function eu(){let e=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n"]);return eu=function(){return e},e}function ep(){let e=(0,r._)(["\n  ",";\n  color: ",";\n"]);return ep=function(){return e},e}function eh(){let e=(0,r._)(["\n  ",";\n  color: ",";\n  font-weight: 400;\n"]);return eh=function(){return e},e}function ex(){let e=(0,r._)(["\n  width: 100%;\n  resize: vertical;\n  min-height: 80px;\n  border: 1.5px solid ",";\n  border-radius: 10px;\n  padding: 12px 14px;\n  font-size: 14px;\n  line-height: 1.6;\n  color: ",";\n  background: ",";\n  outline: none;\n  transition: border-color 0.15s;\n  box-sizing: border-box;\n  font-family: inherit;\n\n  &:focus {\n    border-color: ",";\n    box-shadow: 0 0 0 3px ",";\n  }\n\n  &::placeholder {\n    color: ",";\n  }\n"]);return ex=function(){return e},e}function em(){let e=(0,r._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n"]);return em=function(){return e},e}function ey(){let e=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n"]);return ey=function(){return e},e}function eg(){let e=(0,r._)(["\n  border-radius: 12px;\n  border: 1px solid ",";\n  background: ",";\n  overflow: hidden;\n"]);return eg=function(){return e},e}function ef(){let e=(0,r._)(["\n  padding: 12px 20px;\n  background: ",";\n  border-bottom: 1px solid ",";\n"]);return ef=function(){return e},e}function ej(){let e=(0,r._)(["\n  padding: 16px 20px;\n"]);return ej=function(){return e},e}function eZ(){let e=(0,r._)(["\n  display: grid;\n  grid-template-columns: 90px 1fr;\n  row-gap: 8px;\n  column-gap: 16px;\n  align-items: start;\n"]);return eZ=function(){return e},e}function e_(){let e=(0,r._)(["\n  ",";\n  color: ",";\n  padding-top: 1px;\n"]);return e_=function(){return e},e}function eb(){let e=(0,r._)(["\n  ",";\n  color: ",";\n  font-weight: ",";\n"]);return eb=function(){return e},e}function ev(){let e=(0,r._)(["\n  width: 100%;\n  padding: 32px 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: 12px;\n  border: 1px dashed ",";\n  background: ",";\n"]);return ev=function(){return e},e}function ew(e){var n;let{loanUuid:t,loanCreatedAt:r,loanBalance:l,loanAmountRequested:a,repaymentMethod:c,contractInterestRatePercent:d,endLoanDateSelectStart:u,endLoanDateSelectEnd:p,endWorkDateSelectStart:h,endWorkDateSelectEnd:x,onSuccess:f}=e,[B,F]=(0,i.useState)("general"),{showSnackbar:M}=(0,O.D)(),I=(0,m.NL)(),[,z]=(0,Z.FV)(w),q=(0,T.Z)("","date",{emptyMessage:"회사와 협의된 퇴사일자를 입력해 주세요",minDate:h,maxDate:x}),V=(0,T.Z)("","date",{emptyMessage:"중도 상환일자를 선택해주세요",minDate:u,maxDate:p}),[P,U]=(0,i.useState)(""),X=null!==(n=(0,y.a)({queryKey:b.u.earlyRepayment.calculate(t,V.value),queryFn:()=>_.Z.employee.loan.earlyRepayment.calculate({application_uuid:t,end_loan_date:V.value}),enabled:!!t&&!!V.value}).data)&&void 0!==n?n:null,Q=(0,g.D)(_.Z.employee.loan.earlyRepayment.apply,{onSuccess:()=>{M({message:"".concat((0,H.ju)(r)," 대출건의 중도상환 신청이 완료되었습니다.")}),z(v),I.refetchQueries(b.u.earlyRepayment.availableList),f()},onError:()=>{M({message:"중도상환 신청에 실패하였습니다. 다시 시도해주세요.",type:"error"})}}),Y=(0,W.Z)(()=>{("resign"!==B||q.validate())&&V.validate()&&Q.mutate({application_uuid:t,end_work_date:"resign"===B?q.value:null,end_loan_date:V.value,applicant_memo:P})});return(0,o.jsxs)(eO,{children:[(0,o.jsx)(eW,{children:"1. 상환 방식 선택"}),(0,o.jsx)(S.Z,{space:8}),(0,o.jsxs)(R.Z,{gap:8,children:[(0,o.jsx)(L.Z,{checked:"general"===B,onClick:()=>F("general"),title:"일반 중도상환",height:60}),(0,o.jsx)(L.Z,{checked:"resign"===B,onClick:()=>F("resign"),title:"퇴사(예정) 중도상환",height:60})]}),"resign"===B&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(S.Z,{space:20}),(0,o.jsx)(eW,{children:"2. 퇴사일자"}),(0,o.jsx)(S.Z,{space:8}),(0,o.jsx)(D.Z,{...q,placeholder:"회사와 협의된 퇴사일자 선택",value:q.value,minDate:j()(h).toDate(),maxDate:j()(x).toDate()})]}),(0,o.jsx)(S.Z,{space:20}),(0,o.jsxs)(eW,{children:["resign"===B?"3":"2",". 중도상환 희망일자"]}),(0,o.jsx)(S.Z,{space:4}),(0,o.jsxs)(eK,{children:[(0,o.jsx)("li",{children:"오늘 +3일 이후 일자부터 선택 가능합니다."}),(0,o.jsx)("li",{children:"주말/공휴일 제외 영업일을 선택해주세요."})]}),(0,o.jsx)(S.Z,{space:8}),(0,o.jsx)(D.Z,{...V,placeholder:"중도 상환일자 선택",value:V.value,message:V.value?"선택한 날짜로 상환 신청을 하고 싶다면 신청하기 버튼을 눌러주세요":void 0,minDate:j()(u).toDate(),maxDate:j()(p).toDate()}),X&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(S.Z,{space:16}),(0,o.jsxs)(eA,{children:[(0,o.jsxs)(eH,{children:[(0,o.jsx)(E.Z,{typography:A.Z.body2.regular,color:K.Z.text.secondary,children:"대출 금액"}),(0,o.jsxs)(E.Z,{typography:A.Z.body2.medium,children:[(0,N.T)(X.loan_amount_requested)," 원"]})]}),(0,o.jsxs)(eH,{children:[(0,o.jsx)(E.Z,{typography:A.Z.body2.regular,color:K.Z.text.secondary,children:"잔여 원금"}),(0,o.jsxs)(E.Z,{typography:A.Z.body2.medium,children:[(0,N.T)(X.principal)," 원"]})]}),(0,o.jsxs)(eH,{children:[(0,o.jsx)(E.Z,{typography:A.Z.body2.regular,color:K.Z.text.secondary,children:"발생 이자"}),(0,o.jsxs)(E.Z,{typography:A.Z.body2.medium,children:[(0,N.T)(X.interest)," 원"]})]}),(0,o.jsx)(eN,{}),(0,o.jsxs)(eH,{children:[(0,o.jsx)(E.Z,{typography:A.Z.body2.medium,children:"총 상환 예정 금액"}),(0,o.jsxs)(E.Z,{typography:A.Z.body1.bold,color:K.Z.primaryBlue[500],children:[(0,N.T)(X.repayment_amount)," 원"]})]}),(0,o.jsxs)(eV,{children:[(0,H.kK)(X.end_loan_date)," 상환 기준 / 이자계산일 ",(0,H.kK)(X.calc_end_date)]})]})]}),(0,o.jsx)(S.Z,{space:20}),(0,o.jsxs)(eU,{children:[(0,o.jsxs)(eX,{children:["요청사항 ",(0,o.jsx)(eQ,{children:"(선택)"})]}),(0,o.jsx)(eY,{value:P,onChange:e=>
1U(e.target.value),placeholder:"관리자에게 전달할 내용을 자유롭게 입력해주세요.",rows:3})]}),(0,o.jsx)(S.Z,{space:20}),(0,o.jsx)(k.Z,{isFullWidth:!0,onClick:Y,disabled:Q.isLoading,size:"medium",children:(0,o.jsxs)(C.Z,{gap:6,children:[(0,o.jsx)(s,{sx:{width:18,height:18}}),"중도상환 신청하기"]})})]})}function ek(e){var n;let{item:t,endLoanDateSelectStart:r,endLoanDateSelectEnd:l,endWorkDateSelectStart:a,endWorkDateSelectEnd:s}=e,[p,h]=(0,i.useState)(!1),{showSnackbar:x}=(0,O.D)(),m=t.status===z.Uu.상환중||t.status===z.Uu.지급완료,y=null===(n=t.can_apply)||void 0===n||n;return(0,o.jsxs)(eS,{isOpen:p,children:[(0,o.jsx)(eE,{children:(0,o.jsxs)(C.Z,{justifyContent:"space-between",alignItems:"center",style:{width:"100%"},children:[(0,o.jsxs)(C.Z,{flexDirection:"column",alignItems:"flex-start",style:{flex:1},children:[(0,o.jsxs)(C.Z,{alignItems:"center",gap:8,style:{marginBottom:16,whiteSpace:"nowrap"},children:[(0,o.jsx)(M.Z,{status:t.status,type:"loan"}),(0,o.jsx)(E.Z,{typography:A.Z.body3.medium,color:K.Z.text.disabled,children:"|"}),(0,o.jsxs)(E.Z,{typography:A.Z.body2.medium,color:K.Z.text.secondary,children:[(0,H.ju)(t.created_at)," 신청"]})]}),(0,o.jsxs)(eF,{children:[(0,o.jsx)(eM,{children:"대출 금액"}),(0,o.jsxs)(eI,{children:[(0,N.T)(t.loan_amount_requested)," 원"]}),(0,o.jsx)(eM,{children:"대출 잔액"}),(0,o.jsxs)(eI,{children:[(0,N.T)(t.balance)," 원"]}),(0,o.jsx)(eM,{children:"상환 방식"}),(0,o.jsxs)(eI,{children:[t.repayment_method," /"," ",Number(t.contract_interest_rate_percent).toFixed(2),"%"]})]})]}),(0,o.jsx)(C.Z,{flexDirection:"column",alignItems:"flex-end",gap:12,children:m?(0,o.jsxs)(o.Fragment,{children:[!y&&t.available_from&&(0,o.jsxs)(eT,{children:[t.available_from,"부터 신청 가능"]}),(0,o.jsxs)(ez,{isOpen:p,onClick:()=>{if(!y){var e;x({message:"".concat(null!==(e=t.available_from)&&void 0!==e?e:"내일","부터 중도상환 신청이 가능합니다."),type:"error"});return}h(e=>!e)},children:[(0,o.jsx)(c,{sx:{width:18,height:18}}),p?"닫기":"중도상환 신청",p?(0,o.jsx)(d,{sx:{width:18,height:18}}):(0,o.jsx)(u.Z,{sx:{width:18,height:18}})]})]}):(0,o.jsx)(eq,{children:"상환중\xb7지급완료 건만 신청 가능"})})]})}),p&&m&&y&&(0,o.jsx)(ew,{loanUuid:t.uuid,loanCreatedAt:t.created_at,loanBalance:t.balance,loanAmountRequested:t.loan_amount_requested,repaymentMethod:t.repayment_method,contractInterestRatePercent:t.contract_interest_rate_percent,endLoanDateSelectStart:r,endLoanDateSelectEnd:l,endWorkDateSelectStart:a,endWorkDateSelectEnd:s,onSuccess:()=>h(!1)})]})}function eD(){let{isLoggedIn:e}=(0,q.Z)(),{data:n,isLoading:t,isError:r,refetch:i}=(0,y.a)({queryKey:b.u.earlyRepayment.availableList,queryFn:_.Z.employee.loan.earlyRepayment.availableList,enabled:e}),l=(0,y.a)({queryKey:b.u.earlyRepayment.history,queryFn:_.Z.employee.loan.earlyRepayment.history,enabled:e});if(r)return(0,o.jsx)(F.Z,{title:"중도상환 신청",isFullMain:!0,children:(0,o.jsx)(I.Z,{onClickRetry:i})});if(t||!n)return(0,o.jsx)(F.Z,{title:"중도상환 신청",isFullMain:!0,children:(0,o.jsx)(B.Z,{})});let a=n.company_loan_application;return(0,o.jsx)(F.Z,{title:"중도상환 신청",isFullMain:!0,children:(0,o.jsxs)(eC,{children:[(0,o.jsx)(S.Z,{space:32}),(0,o.jsxs)(eB,{children:[(0,o.jsx)(E.Z,{typography:A.Z.body1.bold,children:"중도상환 신청 안내"}),(0,o.jsx)(S.Z,{space:8}),(0,o.jsx)(eL,{children:(n.early_repayment_guide||"").split("\n").map((e,n)=>(0,o.jsx)("li",{children:e},n))})]}),(0,o.jsx)(S.Z,{space:24}),(0,o.jsx)(C.Z,{justifyContent:"space-between",alignItems:"center",children:(0,o.jsxs)(E.Z,{typography:A.Z.body2.regular,color:K.Z.text.secondary,children:["총 ",(0,o.jsxs)("strong",{children:[a.length,"건"]}),"의 대출 내역"]})}),(0,o.jsx)(S.Z,{space:12}),0===a.length?(0,o.jsxs)(eP,{children:[(0,o.jsx)(p.Z,{sx:{width:56,height:56,color:K.Z.text.disabled}}),(0,o.jsx)(E.Z,{typography:A.Z.body1.medium,color:K.Z.text.secondary,children:"대출 신청 내역이 없습니다"})]}):(0,o.jsx)(eR,{children:a.map(e=>(0,o.jsx)(ek,{item:e,endLoanDateSelectStart:n.end_loan_date_select_start_date,endLoanDateSelectEnd:n.end_loan_date_select_end_date,endWorkDateSelectStart:n.end_w
1ork_date_select_start_date,endWorkDateSelectEnd:n.end_work_date_select_end_date},e.uuid))}),(0,o.jsx)(S.Z,{space:40}),(0,o.jsxs)(eG,{children:[(0,o.jsxs)(C.Z,{alignItems:"center",gap:8,children:[(0,o.jsx)(h,{sx:{width:20,height:20,color:K.Z.text.secondary}}),(0,o.jsx)(E.Z,{typography:A.Z.body1.bold,children:"중도상환 신청 이력"})]}),l.data&&l.data.length>0&&(0,o.jsxs)(E.Z,{typography:A.Z.body2.regular,color:K.Z.text.secondary,children:["총 ",l.data.length,"건"]})]}),(0,o.jsx)(S.Z,{space:12}),l.isLoading?(0,o.jsx)(B.Z,{}):l.data&&0!==l.data.length?(0,o.jsx)(eJ,{children:l.data.map(e=>{var n;return(0,o.jsxs)(e$,{children:[(0,o.jsx)(e0,{children:(0,o.jsxs)(C.Z,{alignItems:"center",gap:8,children:[(0,o.jsx)(M.Z,{status:null!==(n=e.deposit_status)&&void 0!==n?n:"",type:"earlyRepayment"}),(0,o.jsxs)(E.Z,{typography:A.Z.body3.regular,color:K.Z.text.secondary,children:["신청일:"," ",e.early_repayment_created_at?(0,H.ju)(e.early_repayment_created_at):"-"]})]})}),(0,o.jsx)(e1,{children:(0,o.jsxs)(e2,{children:[(0,o.jsx)(e8,{children:"대출 용도"}),(0,o.jsx)(e4,{children:e.purpose_name}),e.end_work&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e8,{style:{color:"#c62828"},children:"퇴사일"}),(0,o.jsx)(e4,{style:{color:"#c62828",fontWeight:600},children:(0,H.kK)(e.end_work)})]}),(0,o.jsx)(e8,{children:"상환 예정일"}),(0,o.jsx)(e4,{children:e.repayment_date?(0,H.kK)(e.repayment_date):"-"}),(0,o.jsx)(e8,{children:"상환 금액"}),(0,o.jsx)(e4,{highlight:!0,children:e.repayment_amount?"".concat((0,N.T)(e.repayment_amount),"원"):"-"}),(e.deposit_bank_name||e.deposit_account_number)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e8,{children:"입금 계좌"}),(0,o.jsx)(e4,{children:[e.deposit_bank_name,e.deposit_account_number].filter(Boolean).join(" ")})]}),e.deposit_date&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e8,{children:"입금 확인일"}),(0,o.jsx)(e4,{children:(0,o.jsxs)(C.Z,{alignItems:"center",gap:4,children:[(0,o.jsx)(x.Z,{sx:{width:14,height:14,color:"#2e7d32"}}),(0,H.kK)(e.deposit_date)]})})]}),e.applicant_memo&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e8,{children:"요청 멘트"}),(0,o.jsx)(e4,{style:{color:K.Z.text.secondary,whiteSpace:"pre-wrap"},children:e.applicant_memo})]})]})})]},e.id)})}):(0,o.jsx)(e3,{children:(0,o.jsx)(E.Z,{typography:A.Z.body2.regular,color:K.Z.text.secondary,children:"신청 이력이 없습니다"})}),(0,o.jsx)(S.Z,{space:40})]})})}let eC=l.Z.div(V()),eB=l.Z.div(P(),e=>e.theme.colors.primaryBlue[100],e=>e.theme.colors.primaryBlue[300]),eL=l.Z.ul(U(),e=>e.theme.typo.body2.regular,e=>e.theme.colors.text.secondary),eR=l.Z.div(X()),eS=l.Z.div(Q(),e=>e.isOpen?e.theme.colors.primaryBlue[500]:e.theme.colors.gray.stroke,e=>e.theme.colors.common.white,e=>e.isOpen?e.theme.colors.primaryBlue[500]:e.theme.colors.primaryBlue[300]),eE=l.Z.div(Y()),eF=l.Z.div(G()),eM=l.Z.span(J(),e=>e.theme.typo.body2.regular,e=>e.theme.colors.text.secondary),eI=l.Z.span($(),e=>e.theme.typo.body2.medium),ez=l.Z.button(ee(),e=>e.theme.typo.body2.bold,e=>e.isOpen?e.theme.colors.text.secondary:e.theme.colors.common.white,e=>e.isOpen?e.theme.colors.gray[200]:e.theme.colors.primaryBlue[500],e=>e.isOpen?e.theme.colors.gray[300]:e.theme.colors.primaryBlue[600]),eq=l.Z.span(en(),e=>e.theme.colors.gray[100],e=>e.theme.typo.body3.medium,e=>e.theme.colors.text.disabled),eT=l.Z.span(et(),e=>e.theme.colors.chip.orangeLight,e=>e.theme.typo.body3.bold,e=>e.theme.colors.chip.orangeMain),eO=l.Z.div(er(),e=>e.theme.colors.primaryBlue[400],e=>e.theme.colors.gray[100]),eW=l.Z.p(eo(),e=>e.theme.typo.body1.bold),eK=l.Z.ul(ei(),e=>e.theme.typo.body3.regular,e=>e.theme.colors.text.secondary),eA=l.Z.div(el(),e=>e.theme.colors.primaryBlue[100],e=>e.theme.colors.primaryBlue[400]),eH=l.Z.div(ea()),eN=l.Z.hr(es(),e=>e.theme.colors.primaryBlue[300]),eV=l.Z.p(ec(),e=>e.theme.typo.small.regular,e=>e.theme.colors.text.secondary),eP=l.Z.div(ed()),eU=l.Z.div(eu()),eX=l.Z.label(ep(),e=>e.theme.typo.body1.bold,e=>e.theme.colors.text.primary),eQ=l.Z.span(eh(),e=>e.theme.typo.body2.regular,e=>e.theme.colors.text.secondary),eY=l.Z.textarea(ex(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.text.primary,e=>e.theme.colors.common.white,e=>e.theme.colors.primaryBlue[500],e=>e.theme.colors.primaryBlue[100],e=>e.theme.colors.text.placeholder),eG=l.Z.div(em()),eJ=l.Z.div(ey()),e$=l.Z.div(eg(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.common.white),e0=l.Z.div(ef(),e=>e.theme.colors.gray[100],e=>e.theme.colors.gray.stroke),e1=l.Z.div(ej()),e2=l.Z.div(eZ()),e8=l.Z.span(e_(),e=>e.theme.typo.body2.regular,e=>e.theme.colors.text.secondary),e4=l.Z.span(eb(),e=>e.theme.typo.body2.medium,e=>e.highlight?e.theme.colors.primaryBlue[500]:e.theme.colors.text.primary,e=>e.highlight?700:void 0),e3=l.Z.div(ev(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.gray[100])}},function(e){e.O(0,[1664,3868,7975,8066,2412,8099,43,2888,9774,179],function(){return e(e.s=85273)}),_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.