PageSourceSearch

https://app.worked.im/_next/static/chunks/pages/kyobo/admin/housing-rental/history/[uuid]-373fabc20dd1147a.js

js worked.im collected 2026-10-05 06:54:17 UTC 145,743 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]="6ee9510b-b666-4e12-81f3-3770c2d35bc7",e._sentryDebugIdIdentifier="sentry-dbid-6ee9510b-b666-4e12-81f3-3770c2d35bc7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5452],{31363:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kyobo/admin/housing-rental/history/[uuid]",function(){return t(13718)}])},6956:function(e,n){"use strict";n.Z={src:"/_next/static/media/kyobo-logo.22ceb85a.svg",height:81,width:192,blurWidth:0,blurHeight:0}},24257:function(e,n){"use strict";n.Z={src:"/_next/static/media/salarify-logo.4c47296a.svg",height:28,width:101,blurWidth:0,blurHeight:0}},20361:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(82729),r=t(85893),o=t(16829),a=t(44771);function l(){let e=(0,i._)(["\n  width: ",";\n  height: ",";\n  border-radius: ",";\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  color: ",";\n  background-color: ",";\n"]);return l=function(){return e},e}function d(e){let{size:n=24,iconSize:t=16}=e;return(0,r.jsx)(s,{size:n,children:(0,r.jsx)(a.Z,{sx:{width:t,height:t}})})}let s=o.Z.div(l(),e=>e.size+"px",e=>e.size+"px",e=>e.size/2+"px",e=>e.theme.colors.text.secondary,e=>e.theme.colors.gray[200])},22952:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(82729),r=t(85893),o=t(16829),a=t(33760);function l(){let e=(0,i._)(["\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  top: 0;\n  background-color: rgba(0, 0, 0, 0.6);\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  z-index: ",";\n"]);return l=function(){return e},e}function d(){return(0,r.jsx)(s,{children:(0,r.jsx)(a.Z,{})})}let s=o.Z.div(l(),e=>e.theme.common.zIndex.modal)},65044:function(e,n,t){"use strict";var i=t(82729),r=t(85893),o=t(16829),a=t(5152),l=t.n(a),d=t(25675),s=t.n(d),c=t(6914),u=t(25479),p=t(69645),h=t(23384),x=t(4225),m=t(42062),_=t(6956),g=t(24257);function y(){let e=(0,i._)(["\n  width: 100%;\n  height: 100%;\n\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n"]);return y=function(){return e},e}function f(){let e=(0,i._)(["\n  width: 343px;\n\n  display: flex;\n  flex-direction: column;\n  text-align: center;\n"]);return f=function(){return e},e}function Z(){let e=(0,i._)(["\n  margin-top: auto;\n"]);return Z=function(){return e},e}let j=l()(()=>Promise.all([t.e(296),t.e(9464)]).then(t.bind(t,79464)),{loadableGenerated:{webpack:()=>[79464]},ssr:!1}),b={loop:!0,autoplay:!0,animationData:m,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},v=o.Z.div(y()),w=o.Z.div(f()),k=o.Z.div(Z());n.Z=function(e){let{text:n="신청 정보를 불러오는 중입니다"}=e,{user:t}=(0,p.ZP)();return(0,r.jsx)(x.Z,{children:(0,r.jsxs)(v,{children:[(0,r.jsx)(c.Z,{space:50}),(0,r.jsx)(s(),{src:_.Z,alt:"kyobo-logo"}),(0,r.jsx)(c.Z,{space:60}),(0,r.jsxs)(u.Z,{typography:h.Z.h6.medium,align:"center",children:["안녕하세요, ",null==t?void 0:t.user_name,"님! ",(0,r.jsx)("br",{}),n]}),(0,r.jsx)(c.Z,{space:16}),(0,r.jsx)(w,{children:(0,r.jsx)(j,{options:b})}),(0,r.jsx)(k,{children:(0,r.jsx)(s(),{src:g.Z,alt:"salarify-logo"})}),(0,r.jsx)(c.Z,{space:32})]})})}},77588:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var i=t(82729),r=t(85893),o=t(16829),a=t(17029),l=t(12796),d=t(25479),s=t(89189),c=t(23384);function u(){let e=(0,i._)(["\n  width: 100%;\n  height: 100%;\n\n  flex-grow: 1;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  padding: 0px 16px 24px 16px;\n\n  background-color: ",";\n"]);return u=function(){return e},e}function p(e){let{text:n="",icon:t}=e;return(0,r.jsx)(h,{children:(0,r.jsxs)(l.Z,{gap:24,flexDirection:"column",children:[t||(0,r.jsx)(a.Z,{sx:{width:60,height:60,color:s.Z.text.disabled}}),(0,r.jsx)(d.Z,{typography:c.Z.body1.regular,color:s.Z.text.secondary,children:n})]})})}let h=o.Z.div(u(),e=>e.theme.colors.gray[100])},45402:function(e,n,t){"use strict";t.d(n,{x:function(){return r}});var i=t(67294);let r=(e,n)=>{let[t,r]=(0,i.useState)(e||""),[o,a]=(0,i.useState)(!1),[l,d]=(0,i.useState)(""),s=(0,i.useCallback)(e=>{r(e),a(!1),d("")},[]),c=(0,i.useCallback)(()=>{r(""),a(!1),d("")},[]),u=(0,i.useCallback)(()=>{let e=!0;return""===t&&(e=!1,d((null==n?void 0:n.emptyMessage)||""),a(!0)),e},[null==n?void 0:n.emptyMessage,t]);
1return{value:t,isError:o,errorMessage:l,onClickItem:s,clearValue:c,validate:u,setError:(0,i.useCallback)(e=>{let{isError:n,errorMessage:t}=e;d(t||""),a(n)},[])}}},73702:function(e,n,t){"use strict";t.d(n,{d:function(){return r}});var i=t(67294);let r=()=>{let[e,n]=(0,i.useState)(!1);return{showModal:e,openModal:(0,i.useCallback)(()=>{n(!0)},[]),closeModal:(0,i.useCallback)(()=>{n(!1)},[])}}},13718:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return on}});var i,r,o=t(85893),a=t(34081),l=t(65044),d=t(82729),s=t(67294),c=t(16829),u=t(17e3),p=t(11163),h=t(2962),x=t(4480),m=t(59475),_=t(15394),g=t(41973),y=t(24689),f=t(69645),Z=t(85945),j=t(31345),b=t(71993),v=t(99292),w=t(87058),k=t(12796),C=t(29901),D=t(25479),S=t(81182),R=t(73702),I=t(15615),A=t(44325),L=t(89189),M=t(23384),E=t(70917),F=t(48415),B=t(66978),T=t(27484),V=t.n(T),H=t(75238),W=t(64499),N=t(21341),O=t(25962),z=t(4044),K=t(99637),U=t(45402),q=t(68457),Y=t(33905),P=t(44498),Q=t(70664),G=t(6914),X=t(14675),J=t(89330);function $(){let e=(0,d._)(["\n  width: 480px;\n  min-width: 480px;\n  min-height: 800px;\n  max-height: 800px;\n  height: 800px;\n\n  display: flex;\n  flex-direction: column;\n\n  @media (max-height: 1080px) {\n    min-height: 600px;\n    max-height: 600px;\n    height: 600px;\n  }\n\n  background-color: white;\n  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);\n  border-radius: 16px;\n\n  overflow: hidden;\n  position: relative;\n"]);return $=function(){return e},e}function ee(){let e=(0,d._)(["\n  width: 100%;\n\n  padding: ",";\n\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n\n  gap: 4px;\n\n  border-bottom: 1px solid ",";\n"]);return ee=function(){return e},e}function en(){let e=(0,d._)(["\n      padding: 24px 16px 0 16px;\n    "]);return en=function(){return e},e}function et(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  flex: 1;\n\n  overflow-y: auto;\n\n  ","\n"]);return et=function(){return e},e}function ei(){let e=(0,d._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n"]);return ei=function(){return e},e}function er(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  align-items: center;\n\n  & > button {\n    border: none;\n\n    :hover {\n      border: none;\n    }\n    :disabled {\n      border: none;\n    }\n  }\n"]);return er=function(){return e},e}function eo(e){let{open:n,title:t,onSave:i,onClose:r}=e,[a,l]=(0,s.useState)(""),[d,c]=(0,s.useState)(""),u=e=>{i(a,e),r()};return n?(0,o.jsx)(C.Z,{children:(0,o.jsxs)(ea,{children:[(0,o.jsx)(el,{hasResult:!!a,children:a?(0,o.jsxs)(k.Z,{gap:4,justifyContent:"flex-start",children:[(0,o.jsx)(Q.Z,{onClick:()=>{l(""),c("")},children:(0,o.jsx)(Y.Z,{sx:{color:L.Z.text.secondary}})}),(0,o.jsx)(D.Z,{typography:M.Z.h6.bold,children:"상세 주소 입력"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(D.Z,{typography:M.Z.h6.bold,children:[t," 주소 검색하기"]}),(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,children:"검색 후 변경할 주소를 선택하여 다음 단계로 넘어갑니다."})]})}),(0,o.jsx)(ed,{hasResult:!!a,children:a?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(X.Z,{address:a}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(G.Z,{space:16}),(0,o.jsxs)(es,{children:[(0,o.jsx)(z.Z,{autoFocus:!0,placeholder:"상세 주소 (선택)",value:d,onChange:e=>c(e.target.value)}),(0,o.jsx)(v.Z,{color:"skyblue",isFullWidth:!0,borderRadius:8,size:"medium",onClick:()=>u(d),children:"저장하기"})]})]}):(0,o.jsx)(P.ZP,{onComplete:e=>{let{fullAddress:n}=(0,J.P)(e);l(n)},autoClose:!1,style:{height:"100%"}})}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(ec,{children:(0,o.jsx)(v.Z,{size:"medium",color:"default",variant:"outlined",isFullWidth:!0,borderRadius:0,onClick:r,children:"닫기"})})]})}):null}let ea=c.Z.div($()),el=c.Z.div(ee(),e=>{let{hasResult:n}=e;return n?"16px":"16px 24px"},e=>e.theme.colors.gray[400]),ed=c.Z.div(et(),e=>{let{hasResult:n}=e;return n&&(0,E.iv)(en())}),es=c.Z.div(ei()),ec=c.Z.div(er());var eu=t(77786),ep=t(94932),eh=t(32712);function ex(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n"]);return ex=function(){return e},e}let em=c.Z.div(ex());function e_(e){let{open:n,onClose:t,onSave:i}
1=e,[r,a]=(0,s.useState)(1),l=(0,s.useCallback)(()=>{a(1),t()},[t]),[d,c]=(0,s.useState)(!0),u=(0,s.useCallback)(e=>{c(e)},[]),p=(0,s.useCallback)(()=>{d?a(2):(a(0),i("","",""))},[d,i]),[h,x]=(0,s.useState)(""),m=(0,s.useCallback)(e=>{x(e),a(3)},[]),_=(0,s.useCallback)((e,n)=>{i(e,h,n),a(0)},[i,h]),g=(0,s.useCallback)(()=>{a(1),c(!0),x("")},[]);return n?(0,o.jsxs)(em,{children:[(0,o.jsx)(eu.Z,{open:1===r,experienced:d,onClickExperienced:u,onSave:p,onClose:l}),(0,o.jsx)(eh.Z,{open:2===r,onSave:m,onClose:l}),(0,o.jsx)(ep.Z,{open:3===r,address:h,onClose:l,onSave:_,onClickResearchButton:g})]}):null}var eg=t(38271);function ey(){let e=(0,d._)(["\n  width: 100%;\n  display: flex;\n  align-items: center;\n  gap: 4px;\n"]);return ey=function(){return e},e}let ef=c.Z.div(ey()),eZ=e=>{var n;let{uuid:t,number:i,checked:r,disabled:a,sidoInput:l,siggInput:d,onChangeChecked:s}=e,c=(0,x.Zl)(g.Al);return(0,o.jsxs)(ef,{children:[(0,o.jsx)(H.Z,{hasContainer:!1,checked:r,contentPadding:"12px 0px",disabled:a,onClick:()=>{s(i-1),c(e=>{let n=e.ownedHomeAddress||[],o={uuid:t,checked:!r,number:i,state:l.value,city:d.value},a=n.filter(e=>e.number!==i);return a.push(o),{...e,ownedHomeAddress:a}})}}),(0,o.jsx)(N.Z,{...l,placeholder:"시/도 선택",items:eg.L.sido.map(e=>({name:e,value:e})),value:l.value,onClickItem:e=>{l.onClickDropdownItem(e),c(n=>{let o=n.ownedHomeAddress||[],a={uuid:t,checked:r,number:i,state:e,city:d.value},l=o.filter(e=>e.number!==i);return l.push(a),{...n,ownedHomeAddress:l}})},disabled:!r}),(0,o.jsx)(N.Z,{...d,placeholder:"시/군/구 선택",items:(null===(n=eg.L.sigg[l.value])||void 0===n?void 0:n.map(e=>({name:e,value:e})))||[],value:d.value,onClickItem:e=>{d.onClickDropdownItem(e),c(n=>{let o=n.ownedHomeAddress||[],a={uuid:t,checked:r,number:i,state:l.value,city:e},d=o.filter(e=>e.number!==i);return d.push(a),{...n,ownedHomeAddress:d}})},disabled:!r})]})};var ej=t(17941),eb=t(7951),ev=t(42567);function ew(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  display: flex;\n"]);return ew=function(){return e},e}let ek=c.Z.div(ew());function eC(e){let{open:n,onClose:t,onSave:i,headerName:r}=e,[a,l]=(0,s.useState)(1),d=(0,s.useCallback)(()=>{l(1),t()},[t]),[c,u]=(0,s.useState)("학교명"),p=(0,s.useCallback)(e=>{u(e)},[]),h=(0,s.useCallback)((e,n,t)=>{if("직접입력"===c)return m(n||""),i(e||"",n||"",t||""),l(1);l(2)},[c,i]),[x,m]=(0,s.useState)(""),_=(0,s.useCallback)((e,n)=>{m(n),l(1),i(e,n,"")},[i]),g=(0,s.useCallback)(e=>{m(e),l(3)},[]),y=(0,s.useCallback)((e,n)=>{i(e,x,n),l(1)},[i,x]),f=(0,s.useCallback)(()=>{l(1),u("학교명"),m("")},[]);return n?(0,o.jsxs)(ek,{children:[(0,o.jsx)(ej.Z,{open:1===a,type:c,onClickType:p,onSave:h,onClose:d,headerName:r}),(0,o.jsx)(ev.Z,{open:2===a&&"학교명"===c,onSave:_,onClose:d,headerName:r}),(0,o.jsx)(eh.Z,{open:2===a&&"주소"===c,onSave:g,onClose:d}),(0,o.jsx)(eb.Z,{open:3===a,address:x,onClose:d,onSave:y,onClickResearchButton:f})]}):null}var eD=t(66103);function eS(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n"]);return eS=function(){return e},e}function eR(){let e=(0,d._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n"]);return eR=function(){return e},e}function eI(){let e=(0,d._)(["\n  display: flex;\n  align-items: center;\n  gap: 12px;\n"]);return eI=function(){return e},e}function eA(){let e=(0,d._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  padding: 4px 8px;\n  border-radius: 4px;\n  background-color: ",";\n  color: ",";\n\n  ",";\n"]);return eA=function(){return e},e}function eL(){let e=(0,d._)(["\n  display: flex;\n  flex-wrap: wrap;\n  row-gap: 8px;\n  column-gap: 16px;\n"]);return eL=function(){return e},e}function eM(){let e=(0,d._)(["\n      flex: 1 1 100%;\n    "]);return eM=function(){return e},e}function eE(){let e=(0,d._)(["\n  flex: 1 1 calc(50% - 16px);\n  display: flex;\n  align-items: center;\n  gap: 4px;\n\n  ","\n"]);return eE=function(){return e},e}function eF(){let e=(0,d._)(["\n  min-width: 121px;\n  max-width: 121px;\n  color: ",";\n\n  ",";\n"]);return eF=function(){return e},e}function eB(){let e=(0,d._)([""]);return eB=function(){return e},e}function eT(){let e=(0,d._)(["\n  text-align: right;\n  list-style: outside;\n  ","\n"]);return eT=function(){return e},e}let eV=[{name:"월세",value:"monthly_house_rental"},{name:"숙박시설",value:"accommodation"},{name:"지인동거",value:"cohabitation"},{name:"별도 주거지 확보 없이 출퇴근 중",value:"homeless"},{name:"기타",value:"etc"}],eH={registered:"본인",spouse:"배우자",mother:"어머니",father:"아버지",current_department:"현소속",dispatch:"파견"},eW=(0,s.forwardRef)((e,n)=>{var t,i,r,a,l,d,c,p,h,_,y,f,Z,j,b,v,C,S,I,A,E,T,Y,P,Q,G,X,J,$,ee,en,et,ei,er,ea,el,ed;let{data:es}=e,{data:ec}=(0,u.a)({queryKey:["branchList"],queryFn:()=>m.Z.kyobo.admin.get.branchList({})}),{data:eu}=(0,u.a)({queryKey:["positionList"],queryFn:()=>m.Z.kyobo.admin.get.positionList()}
1),[ep,eh]=(0,s.useState)([]),[ex,em]=(0,s.useState)([]);(0,s.useEffect)(()=>{Array.isArray(ec)&&eh(ec)},[ec]),(0,s.useEffect)(()=>{Array.isArray(eu)&&em(eu)},[eu]);let[eg,ey]=(0,x.FV)(g.Al),ef=(0,s.useMemo)(()=>V()(es.user.start_work).isAfter("2023-07-01"),[es.user.start_work]),[ej,eb]=(0,s.useState)(eg.is_workplace_check||es.is_workplace_check),[ev,ew]=(0,s.useState)(eg.is_dispatch||es.is_dispatch),ek=(0,q.Z)(eg.appointment_location_residence_type||(null===(t=eV.find(e=>e.name===es.appointment_location_residence_type))||void 0===t?void 0:t.value)||""),eS=(0,q.Z)(eg.appointment_location_residence_etc_reason||es.appointment_location_residence_etc_reason||""),[eR,eI]=(0,s.useState)(eg.is_homeowner||es.is_homeowner),[eA,eL]=(0,s.useState)([,,,,,].fill(!1)),eM=(0,s.useMemo)(()=>ep.sort((e,n)=>e.name.localeCompare(n.name)).map(e=>({name:e.name,value:e.name})),[ep]),eE=(0,s.useMemo)(()=>ex.sort((e,n)=>e.localeCompare(n)).map(e=>({name:e,value:e})),[ex]);(0,s.useEffect)(()=>{eL(e=>e.map((e,n)=>{var t,i;let r=null===(t=eg.ownedHomeAddress)||void 0===t?void 0:t.find(e=>(null==e?void 0:e.number)===n+1);return(null==r?void 0:r.checked)!==void 0?r.checked:!!(null===(i=es.owned_home_address.find(e=>(null==e?void 0:e.number)===n+1))||void 0===i?void 0:i.uuid)}))},[es,eg.ownedHomeAddress]);let eF=e=>{eL(n=>{let t=[...n];return t[e]=!t[e],t})},eB=(0,q.Z)((0,eD.kB)(eg.appointment_date||es.appointment_date||""),"date",{emptyMessage:"현소속 발령일자를 선택해 주세요."});(0,s.useImperativeHandle)(n,()=>({validate:()=>{var e,n,t,i,r;let o=null!==(e=eB.validate())&&void 0!==e&&e,a=null!==(n=eT.validate())&&void 0!==n&&n,l=null!==(t=eG.validate())&&void 0!==t&&t,d=null!==(i=eJ.validate())&&void 0!==i&&i,s=!ev||null!==(r=e0.validate())&&void 0!==r&&r;return o&&a&&l&&d&&s}}));let eT=(0,U.x)(eg.appointment_department_position||es.appointment_department_position||"",{emptyMessage:"직급을 선택해 주세요."}),eW=(0,q.Z)(eg.appointment_department_type||({본사:"head_office",영업:"sales",서비스:"service"})[es.appointment_department_type]||es.appointment_department_type||""),eG=(0,q.Z)(eg.appointment_department_name||es.appointment_department_name||"","text",{emptyMessage:"현소속 정보는 필수입니다. 현소속 정보를 검색해 주세요."}),eX=(0,q.Z)(eg.appointment_department_code||es.appointment_department_code||""),eJ=(0,q.Z)(eg.appointment_location_address||es.appointment_location_address||"","text",{emptyMessage:"현소속 주소를 검색해 주세요."}),e$=(0,q.Z)(eg.appointment_location_detail_address||es.appointment_location_detail_address||""),e0=(0,q.Z)(eg.dispatch_department_name||es.dispatch_department_name||"","text",{emptyMessage:"파견 소속 정보를 검색해 주세요."}),e1=(0,q.Z)(eg.dispatch_department_code||es.dispatch_department_code||""),e2=(0,q.Z)(eg.dispatch_address||es.dispatch_address||""),e3=(0,q.Z)(eg.dispatch_detail_address||es.dispatch_detail_address||""),e6=(0,U.x)(eg.dispatch_residence_type||(null===(i=eV.find(e=>e.name===es.dispatch_residence_type))||void 0===i?void 0:i.value)||""),e4=(0,q.Z)(eg.dispatch_residence_etc_reason||es.dispatch_residence_etc_reason||""),e8=(0,q.Z)((null==eg?void 0:null===(a=eg.ownedHomeAddress)||void 0===a?void 0:null===(r=a[0])||void 0===r?void 0:r.state)||(null===(l=es.owned_home_address[0])||void 0===l?void 0:l.state)||"","text"),e7=(0,q.Z)((null==eg?void 0:null===(c=eg.ownedHomeAddress)||void 0===c?void 0:null===(d=c[0])||void 0===d?void 0:d.city)||(null===(p=es.owned_home_address[0])||void 0===p?void 0:p.city)||"","text"),e5=(0,q.Z)((null==eg?void 0:null===(_=eg.ownedHomeAddress)||void 0===_?void 0:null===(h=_[1])||void 0===h?void 0:h.state)||(null===(y=es.owned_home_address[1])||void 0===y?void 0:y.state)||"","text"),e9=(0,q.Z)((null==eg?void 0:null===(Z=eg.ownedHomeAddress)||void 0===Z?void 0:null===(f=Z[1])||void 0===f?void 0:f.city)||(null===(j=es.owned_home_address[1])||void 0===j?void 0:j.city)||"","text"),ne=(0,q.Z)((null==eg?void 0:null===(v=eg.ownedHomeAddress)||void 0===v?void 0:null===(b=v[2])||void 0===b?void 0:b.state)||(null===(C=es.owned_home_address[2])||void 0===C?void 0:C.state)||"","text"),nn=(0,q.Z)((null==eg?void 0:null===(I=eg.ownedHomeAddress)||void 0===I?void 0:null===(S=I[2])||void 0===S?void 0:S.city)||(null===(A=es.owned_home_address[2])||void 0===A?void 0:A.city)||"","text"),nt=(0,q.Z)((null==eg?void 0:null===(T=eg.ownedHomeAddress)||void 0===T?void 0:null===(E=T[3])||void 0===E?void 0:E.state)||(null===(Y=es.owned_home_address[3])||void 0===Y?void 0:Y.state)||"","text"),ni=(0,q.Z)((null==eg?void 0:null===(Q=eg.ownedHomeAddress)||void 0===Q?void 0:null===(P=Q[3])||void 0===P?void 0:P.city)||(null===(G=es.owned_home_address[3])||void 0===G?void 0:G.city)||"","text"),nr=(0,q.Z)((null==eg?void 0:null===(J=eg.ownedHomeAddress)||void 0===J?void 0:null===(X=J[4])||void 0===X?void 0:X.state)||(null===($=es.owned_home_address[4])||void 0===$?void 0:$.state)||"","text"),no=(0,q.Z)((null==eg?void 0:null===(en=eg.ownedHomeAddress)||void 0===en?void 0:null===(ee=en[4])||void 0===ee?void 0:ee.city)||(null===(et=es.owned_home_address[4])||void 0===et?void 0:et.city)||"","text"),na=(0,q.Z)(eg.registered_address?"".concat(eg.registered_address," ").concat(eg.registered_detail_address):es.registered_full_address||""),nl=(0,q.Z)(eg.spouse_address?"".concat(eg.spouse_address," ").concat(eg.spouse_detail_address):es.spouse_full_address||""),nd=(0,q.Z)(eg.mother_address?"".concat(eg.mother_address," ").concat(eg.mother_detail_address):es.mother_full_address||""),ns=(0,q.Z)(eg.father_address?"".concat(eg.father_address," ").concat(eg.father_detail_address):es.father_full_address||""),nc=(0,q.Z)(eg.final_school_name||es.user.final_school_name),nu=(0,q.Z)(eg.final_school_address?"".concat(eg.final_school_address," ").concat(eg.final_school_detail_address):es.final_school_full_address||""),np=(0,q.Z)(eg.final_company_name_before_join||es.final_company_name_before_join||""),nh=(0,q.Z)(eg.final_company_address_before_join?"".concat(eg.final_company_address_before_join," ").concat(eg.final_company_detail_address_before_join):es.final_company_full_address_before_join||""),{showModal:nx,openModal:nm,closeModal:n_}=(0,R.d)(),{showModal:ng,openModal:ny,closeModal:nf}
1=(0,R.d)(),[nZ,nj]=(0,s.useState)(""),nb=[{label:"특이 사항",rows:[{title:"특이 사례 해당",content:(0,o.jsx)(k.Z,{justifyContent:"flex-end",children:(0,o.jsx)(D.Z,{typography:M.Z.body2.regular,color:es.is_exception?L.Z.text.primary:L.Z.text.disabled,children:es.is_exception?"해당함":"해당하지 않음"})})},{title:"",content:null},{title:"상세 특이사항",content:(0,o.jsx)(k.Z,{justifyContent:"flex-end",children:es.is_exception?(0,o.jsx)(eP,{children:es.exception_list.map(e=>(0,o.jsx)(eQ,{children:e},e))}):(0,o.jsx)(D.Z,{typography:M.Z.body2.regular,color:L.Z.text.disabled,children:"해당하지 않음"})})},{title:"",content:null}]},{idDivider:!0},{label:"발령 정보",rows:[{title:"근무지 확인서 여부",content:(0,o.jsx)(k.Z,{justifyContent:"flex-end",children:(0,o.jsx)(H.Z,{checked:ej,text:(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,color:es.status===K.i1.신청검토중||es.status===K.i1.신청확인완료?L.Z.text.primary:L.Z.text.disabled,children:"근무지 확인서 필요자 해당"}),onClick:()=>{eb(!ej),ey(e=>({...e,is_workplace_check:!ej}))},contentPadding:"12px 0px",disabled:!(es.status===K.i1.신청검토중||es.status===K.i1.신청확인완료)})})},{title:"",content:null},{title:"현소속 발령일자",content:(0,o.jsx)(W.Z,{...eB,onSelectDate:e=>{ey(n=>({...n,appointment_date:e}))},errorMessage:eB.isError?"현소속 발령일자를 선택해 주세요.":""})},{title:"직급",content:(0,o.jsx)(N.Z,{placeholder:"직급",...eT,items:eE,onClickItem:e=>{eT.onClickItem(e),ey(n=>({...n,appointment_department_position:e}))},errorMessage:eT.isError?"직급을 선택해 주세요.":""})},{title:"현소속",content:(0,o.jsx)(O.Z,{...eG,placeholder:"현소속",items:eM,itemTypography:M.Z.body1.lined.medium,onClickItem:e=>{let n=ep.find(n=>n.name===e);n?(eG.updateValue(n.name),eX.updateValue(n.code),eJ.updateValue(n.address),e$.updateValue(n.detail_address),eW.updateValue(n.department_type),ey(e=>({...e,appointment_department_name:n.name,appointment_department_code:n.code,appointment_location_address:n.address,appointment_location_detail_address:n.detail_address,appointment_department_type:n.department_type}))):(eG.updateValue(e),eX.updateValue(""),eJ.updateValue(""),e$.updateValue(""),eW.updateValue(""),ey(n=>({...n,appointment_department_name:e,appointment_department_code:"",appointment_location_address:"",appointment_location_detail_address:"",appointment_department_type:""})))},onClear:()=>{eG.updateValue(""),eX.updateValue(""),eJ.updateValue(""),e$.updateValue(""),eW.updateValue(""),ey(e=>({...e,appointment_department_name:"",appointment_department_code:"",appointment_location_address:"",appointment_location_detail_address:"",appointment_department_type:""}))},errorMessage:eG.isError?"현소속 정보는 필수입니다. 현소속 정보를 검색해 주세요.":""})},{title:"",content:null},{title:"현소속 코드",content:(0,o.jsx)(z.Z,{value:eX.value,textColor:L.Z.text.primary,disabled:!0})},{title:"소속 구분",content:(0,o.jsx)(z.Z,{...eW,value:K.mT[eW.value],textColor:L.Z.text.primary,disabled:!0})},{title:"현소속 주소",content:(0,o.jsxs)(k.Z,{gap:4,flexDirection:"column",children:[(0,o.jsx)(z.Z,{...eJ,displayValue:!eJ.value&&(0,o.jsxs)(k.Z,{gap:8,justifyContent:"flex-start",children:[(0,o.jsx)(F.Z,{sx:{color:L.Z.error.main}}),(0,o.jsx)(D.Z,{typography:M.Z.body2.regular,color:L.Z.error.main,children:"주소 없음 : DB 업데이트 필요 정보"})]}),textColor:L.Z.text.primary,onClick:()=>{nj("current_department")},readOnly:!0,rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}}),errorMessage:eJ.isError?"현소속 주소를 검색해 주세요.":""}),(0,o.jsx)(z.Z,{...e$,placeholder:"상세 주소",onChange:e=>{e$.updateValue(e.target.value),ey(n=>({...n,appointment_location_detail_address:e.target.value}))}})]}),isFullWidth:!0},{title:"발령지 내 주거형태",content:(0,o.jsx)(N.Z,{...ek,value:ek.value,placeholder:"발령지 내 주거형태",items:eV,onClickItem:e=>{ek.onClickDropdownItem(e),ey(n=>({...n,appointment_location_residence_type:e}))}})},{title:"주거형태: 기타사유",content:(0,o.jsx)(z.Z,{...eS,value:"etc"===ek.value?eS.value:"해당하지 않음",textColor:"etc"!==ek.value?L.Z.text.disabled:L.Z.text.primary,disabled:"etc"!==ek.value,onBlur:()=>ey(e=>({...e,appointment_location_residence_etc_reason:eS.value}))})}]},{idDivider:!0},{label:"파견 정보",rows:[{title:"파견 여부",content:(0,o.jsx)(k.Z,{justifyContent:"flex-end",children:(0,o.jsx)(H.Z,{checked:ev,text:(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:"파견 근무에 해당함"}),contentPadding:"12px 0px",onClick:()=>
1{ew(!ev),ev&&(e0.updateValue(""),e1.updateValue(""),e2.updateValue(""),e3.updateValue(""),e6.clearValue(),e4.updateValue("")),ey(e=>({...e,is_dispatch:!ev}))}})})},{title:"",content:null},{title:"파견 소속",content:(0,o.jsx)(O.Z,{...e0,placeholder:"파견 소속",items:eM,itemTypography:M.Z.body1.lined.medium,disabled:!ev,onClickItem:e=>{let n=ep.find(n=>n.name===e);n?(e0.updateValue(n.name),e1.updateValue(n.code),e2.updateValue(n.address),e3.updateValue(n.detail_address),ey(e=>({...e,dispatch_department_name:n.name,dispatch_department_code:n.code,dispatch_address:n.address,dispatch_detail_address:n.detail_address}))):(e0.updateValue(e),e1.updateValue(""),e2.updateValue(""),e3.updateValue(""),ey(n=>({...n,dispatch_department_name:e,dispatch_department_code:"",dispatch_address:"",dispatch_detail_address:""})))},onClear:()=>{e0.updateValue(""),e1.updateValue(""),e2.updateValue(""),e3.updateValue(""),ey(e=>({...e,dispatch_department_name:"",dispatch_department_code:"",dispatch_address:"",dispatch_detail_address:""}))},errorMessage:e0.isError?"파견 소속 정보를 검색해 주세요.":""})},{title:"파견 소속 코드",content:(0,o.jsx)(z.Z,{...e1,placeholder:"파견 소속 정보가 있을 시 표기됩니다.",textColor:e1.value?L.Z.text.primary:L.Z.text.disabled,disabled:!0})},{title:"파견 소속 주소",content:(0,o.jsxs)(k.Z,{gap:4,flexDirection:"column",children:[(0,o.jsx)(z.Z,{...e2,placeholder:"파견 소속 주소",textColor:L.Z.text.primary,onClick:()=>{nj("dispatch")},readOnly:!0,rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}}),disabled:!ev}),(0,o.jsx)(z.Z,{...e3,placeholder:"상세 주소",disabled:!ev,onChange:e=>{e3.updateValue(e.target.value),ey(n=>({...n,dispatch_detail_address:e.target.value}))}})]}),isFullWidth:!0},{title:"파견지 내 주거형태",content:(0,o.jsx)(N.Z,{...e6,placeholder:"파견지 내 주거형태",items:eV,disabled:!ev,borderColor:L.Z.gray[400]})},{title:"주거형태: 기타사유",content:(0,o.jsx)(z.Z,{...e4,placeholder:"기타사유",textColor:es.dispatch_residence_etc_reason?L.Z.text.primary:L.Z.text.disabled,disabled:"etc"!==e6.value})}]},{idDivider:!0},{label:"소유 주택 주소",rows:[{title:"본인 명의 주택 보유",content:(0,o.jsx)(k.Z,{justifyContent:"flex-end",children:(0,o.jsx)(H.Z,{checked:eR,text:(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:"본인 명의 주택 보유중"}),contentPadding:"12px 0px",onClick:()=>{eI(!eR),ey(e=>({...e,is_homeowner:!eR}))}})})},{title:"",content:null},{title:"첫번째 주택 주소",content:(0,o.jsx)(eZ,{uuid:null===(ei=es.owned_home_address[0])||void 0===ei?void 0:ei.uuid,number:1,checked:eA[0],disabled:!eR,sidoInput:e8,siggInput:e7,onChangeChecked:eF})},{title:"두번째 주택 주소",content:(0,o.jsx)(eZ,{uuid:null===(er=es.owned_home_address[1])||void 0===er?void 0:er.uuid,number:2,checked:eA[1],disabled:!eR,sidoInput:e5,siggInput:e9,onChangeChecked:eF})},{title:"세번째 주택 주소",content:(0,o.jsx)(eZ,{uuid:null===(ea=es.owned_home_address[2])||void 0===ea?void 0:ea.uuid,number:3,checked:eA[2],disabled:!eR,sidoInput:ne,siggInput:nn,onChangeChecked:eF})},{title:"네번째 주택 주소",content:(0,o.jsx)(eZ,{uuid:null===(el=es.owned_home_address[3])||void 0===el?void 0:el.uuid,number:4,checked:eA[3],disabled:!eR,sidoInput:nt,siggInput:ni,onChangeChecked:eF})},{title:"다섯번째 주택 주소",content:(0,o.jsx)(eZ,{uuid:null===(ed=es.owned_home_address[4])||void 0===ed?void 0:ed.uuid,number:5,checked:eA[4],disabled:!eR,sidoInput:nr,siggInput:no,onChangeChecked:eF})},{title:"",content:null}]},{label:"주민등록상 주소",labelRight:(0,o.jsx)(eK,{color:L.Z.text.primary,bgColor:L.Z.gray[100],children:es.user.is_married?"기혼":"미혼"}),rows:[{title:"본인 주소",content:(0,o.jsx)(z.Z,{...na,disabledText:!0,onClick:()=>nj("registered"),type:"button",rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}})}),isFullWidth:!0},{title:"배우자 주소",content:(0,o.jsx)(z.Z,{...nl,value:"해당없음"===es.spouse_address_info?"해당하지 않음":nl.value||"배우자 주소",onClick:()=>nj("spouse"),textColor:nl.value?L.Z.text.primary:L.Z.text.disabled,type:"button",style:{color:nl.value?L.Z.text.primary:L.Z.text.disabled},rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}}),disabled:"해당없음"===es.spouse_address_info}),isFullWidth:!0},{title:"어머니 주소",content:(0,o.jsx)(z.Z,{...nd,value:"해당없음"===es.mother_address_info?"해당하지 않음":nd.value||"어머니 주소",disabled:"해당없음"===es.mother_address_info,onClick:()=>nj("mother"),type:"button",style:{color:nd.value?L.Z.text.primary:L.Z.text.disabled},rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}})}),isFullWidth:!0},{title:"아버지 주소",content:(0,o.jsx)(z.Z,{...ns,value:"해당없음"===ns.value?"해당하지 않음":ns.value||"아버지 주소",disabled:"해당없음"===es.father_address_info,onClick:()=>nj("father"),type:"button",style:{color:ns.value?L.Z.text.primary:L.Z.text.disabled},rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}})}),isFullWidth:!0}]},{idDivider:!0},{label:"최종 학교 정보",labelRight:(0,o.jsx)(eK,{color:L.Z.chip.purpleMain,bgColor:L.Z.chip.purpleLight,children:ef?"2023년 7월 ~ 이후 입사자":"2023년 7월 이전 입사자"}),rows:[{title:"학교명 (신청 정보)",content:(0,o.jsx)(z.Z,{...nc,value:nc.value||"학교명",disabledText:!0,style:{color:nc.value?L.Z.text.primary:L.Z.text.disabled},onClick:nm,type:"button",rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}})})},{title:"",content:null},{title:"학교 주소 (신청 정보)",content:(0,o.jsx)(z.Z,{...nu,value:nu.value||"학교 주소",textColor:es.final_school_full_address?L.Z.text.primary:L.Z.text.disabled,disabled:!0})}]},{idDivider:!0},{label:"입사 전 최종 회사 정보",labelRight:(0,o.jsx)(eK,{color:L.Z.chip.purpleMain,bgColor:L.Z.chip.purpleLight,children:ef?"2023년 7월 ~ 이후 입사자":"2023년 7월 이전 입사자"}),rows:[{title:"최종 회사명",content:(0,o.jsx)(z.Z,{...np,value:np.value||"최종 회사명",style:{color:np.value?L.Z.text.primary:L.Z.text.disabled},rightIcon:(0,o.jsx)(B.Z,{sx:{color:es.final_company_full_address_before_join?L.Z.text.secondary:L.Z.text.disabled}}),onClick:ny,type:"button"})},{title:"",content:null},{title:"회사 주소",content:(0,o.jsx)(z.Z,{...nh,value:nh.value?nh.value:"회사 주소",disabledText:!0,onClick:ny,type:"button",textColor:es.final_company_full_address_before_join?L.Z.text.primary:L.Z.text.disabled,disabled:!0})}]}];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(eN,{children:[(0,o.jsxs)(D.Z,{typography:M.Z.body1.bold,children:["신청일시 ",(0,eD.ju)(es.created_at)," 신청건"]}),(0,o.jsx)(w.Z,{height:1,color:L.Z.gray[400]}),nb.map((e,n)=>{var t;return e.idDivider?(0,o.jsx)(w.Z,{height:1,color:L.Z.gray[400]}
1,"divider-".concat(n)):(0,o.jsxs)(eO,{id:"신청정보-".concat(e.label),children:[(0,o.jsxs)(ez,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:e.label}),e.labelRight&&(0,o.jsx)(o.Fragment,{children:e.labelRight})]}),(0,o.jsx)(eU,{children:null===(t=e.rows)||void 0===t?void 0:t.map((e,t)=>e.isDivider?(0,o.jsx)(w.Z,{height:1},"sub-divider-".concat(n,"-").concat(t)):(0,o.jsxs)(eq,{isFullWidth:e.isFullWidth,children:[(0,o.jsx)(eY,{children:e.title}),e.content]},"field-".concat(n,"-").concat(t)))})]},"section-".concat(n))})]}),nZ&&(0,o.jsx)(eo,{open:!!nZ,title:eH[nZ],onClose:()=>nj(""),onSave:(e,n)=>{let t=n?"".concat(e," ").concat(n):e;switch(nZ){case"registered":na.updateValue(t),ey(t=>({...t,registered_address:e,registered_detail_address:n}));break;case"spouse":nl.updateValue(t),ey(t=>({...t,spouse_address:e,spouse_detail_address:n}));break;case"mother":nd.updateValue(t),ey(t=>({...t,mother_address:e,mother_detail_address:n}));break;case"father":ns.updateValue(t),ey(t=>({...t,father_address:e,father_detail_address:n}));break;case"current_department":eJ.updateValue(t),e$.updateValue(n),ey(t=>({...t,appointment_location_address:e,appointment_location_detail_address:n}));break;case"dispatch":e2.updateValue(t),e3.updateValue(n),ey(t=>({...t,dispatch_address:e,dispatch_detail_address:n}))}nj("")}}),nx&&(0,o.jsx)(eC,{open:nx,onSave:(e,n,t)=>{let i=t?"".concat(n," ").concat(t):n;nc.updateValue(e),nu.updateValue(i),ey(i=>({...i,final_school_name:e,final_school_address:n,final_school_detail_address:t})),n_()},onClose:n_}),ng&&(0,o.jsx)(e_,{open:ng,onSave:(e,n,t)=>{let i=t?"".concat(n," ").concat(t):n;np.updateValue(e),nh.updateValue(i),ey(i=>({...i,final_company_name_before_join:e,final_company_address_before_join:n,final_company_detail_address_before_join:t}))},onClose:nf})]})}),eN=c.Z.div(eS()),eO=c.Z.div(eR()),ez=c.Z.div(eI()),eK=c.Z.div(eA(),e=>{let{bgColor:n}=e;return n},e=>{let{color:n}=e;return n},e=>{let{theme:n}=e;return n.typo.body3.regular}),eU=c.Z.div(eL()),eq=c.Z.div(eE(),e=>e.isFullWidth&&(0,E.iv)(eM())),eY=c.Z.label(eF(),e=>{let{theme:n}=e;return n.colors.text.secondary},e=>{let{theme:n}=e;return n.typo.body3.regular}),eP=c.Z.ul(eB()),eQ=c.Z.li(eT(),e=>e.theme.typo.body2.medium);function eG(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n"]);return eG=function(){return e},e}function eX(){let e=(0,d._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n"]);return eX=function(){return e},e}function eJ(){let e=(0,d._)(["\n  display: flex;\n  align-items: center;\n  gap: 12px;\n"]);return eJ=function(){return e},e}function e$(){let e=(0,d._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  padding: 4px 8px;\n  border-radius: 4px;\n  background-color: ",";\n  color: ",";\n\n  ",";\n"]);return e$=function(){return e},e}function e0(){let e=(0,d._)(["\n  display: flex;\n  flex-wrap: wrap;\n  row-gap: 8px;\n  column-gap: 16px;\n"]);return e0=function(){return e},e}function e1(){let e=(0,d._)(["\n  flex: 1 1 calc(50% - 16px);\n  display: flex;\n  align-items: center;\n  gap: 4px;\n"]);return e1=function(){return e},e}function e2(){let e=(0,d._)(["\n  min-width: 121px;\n  max-width: 121px;\n  color: ",";\n\n  ",";\n"]);return e2=function(){return e},e}function e3(e){let{data:n}=e,[t,i]=(0,x.FV)(g.Al),r=(0,q.Z)(t.name||n.user.name,"text"),a=(0,q.Z)(t.english_name||n.user.english_name),l=(0,q.Z)(t.korean_display_english_name||n.user.korean_display_english_name),d=(0,q.Z)(t.phonenumber||n.user.phonenumber,"phoneNumber"),s=(0,q.Z)(t.final_school_name||n.user.final_school_name),c=(0,q.Z)(t.final_school_address?"".concat(t.final_school_address," ").concat(t.final_school_detail_address):n.final_school_full_address||""),{showModal:u,openModal:p,closeModal:h}=(0,R.d)(),m=[{label:"기본정보",labelRight:(0,o.jsx)(e7,{color:L.Z.chip.purpleMain,bgColor:L.Z.chip.purpleLight,children:V()(n.user.start_work).isAfter("2023-07-01")?"2023년 7월 ~ 이후 입사자":"2023년 7월 이전 입사자"}),rows:[{title:"이름",content:(0,o.jsx)(z.Z,{...r,onBlur:()=>
1{r.value!==n.user.name&&i(e=>({...e,name:r.value}))}})},{title:"사번",content:(0,o.jsx)(z.Z,{value:n.user.email.split("@")[0],textColor:L.Z.text.primary,disabled:!0})},{title:"영문 이름",content:(0,o.jsx)(z.Z,{...a,onBlur:()=>{a.value!==n.user.english_name&&i(e=>({...e,english_name:a.value}))}})},{title:"입사일자",content:(0,o.jsx)(W.Z,{value:(0,eD.kB)(n.user.start_work),textColor:L.Z.text.primary,disabled:!0})},{title:"영문 한글 이름",content:(0,o.jsx)(z.Z,{...l,onBlur:()=>{l.value!==n.user.korean_display_english_name&&i(e=>({...e,korean_display_english_name:l.value}))}})},{title:"",content:null}]},{idDivider:!0},{label:"연락처",rows:[{title:"이메일 주소",content:(0,o.jsx)(z.Z,{value:n.user.email,textColor:L.Z.text.primary,disabled:!0})},{title:"휴대전화번호",content:(0,o.jsx)(z.Z,{...d,onBlur:()=>{d.value!==n.user.phonenumber&&i(e=>({...e,phonenumber:d.value}))}})}]},{idDivider:!0},{label:"학력/기타 정보",rows:[{title:"입사 구분",content:(0,o.jsx)(z.Z,{value:n.user.employment_type,textColor:L.Z.text.primary,disabled:!0})},{title:"최종 학교 (KHR)",content:(0,o.jsx)(z.Z,{value:n.khr.final_school_name||"해당하지 않음",textColor:L.Z.text.primary,disabled:!0})},{isDivider:!0},{title:"학교명 (신청 정보)",content:(0,o.jsx)(z.Z,{...s,value:s.value||"해당하지 않음",disabledText:!0,onClick:p,type:"button",rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.secondary}}),style:{color:s.value?L.Z.text.primary:L.Z.text.disabled}})},{title:"",content:null},{title:"학교 주소",content:(0,o.jsx)(z.Z,{...c,value:c.value||"해당하지 않음",textColor:c.value?L.Z.text.primary:L.Z.text.disabled,disabled:!0})},{isDivider:!0},{title:"혼인 여부",content:(0,o.jsx)(z.Z,{value:n.user.is_married?"기혼":"미혼",textColor:L.Z.text.primary,disabled:!0})},{title:"성별",content:(0,o.jsx)(z.Z,{value:n.user.gender,textColor:L.Z.text.primary,disabled:!0})},{title:"연령",content:(0,o.jsx)(z.Z,{value:"".concat(n.user.age,"세"),textColor:L.Z.text.primary,disabled:!0})},{title:"주민등록번호",content:(0,o.jsx)(z.Z,{value:n.user.resident_registration_number,textColor:L.Z.text.primary,disabled:!0})}]}];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e6,{children:m.map((e,n)=>{var t;return e.idDivider?(0,o.jsx)(w.Z,{height:1,color:L.Z.gray[400]},"divider-".concat(n)):(0,o.jsxs)(e4,{id:"기본정보-".concat(e.label),children:[(0,o.jsxs)(e8,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:e.label}),e.labelRight&&(0,o.jsx)(o.Fragment,{children:e.labelRight})]}),(0,o.jsx)(e5,{children:null===(t=e.rows)||void 0===t?void 0:t.map((e,t)=>e.isDivider?(0,o.jsx)(w.Z,{height:1},"sub-divider-".concat(n,"-").concat(t)):(0,o.jsxs)(e9,{children:[(0,o.jsx)(ne,{children:e.title}),e.content]},"field-".concat(n,"-").concat(t)))})]},"section-".concat(n))})}),u&&(0,o.jsx)(eC,{open:u,onSave:(e,n,t)=>{let r=t?"".concat(n," ").concat(t):n;
1s.updateValue(e),c.updateValue(r),i(i=>({...i,final_school_name:e,final_school_address:n,final_school_detail_address:t})),h()},onClose:h})]})}eW.displayName="ApplicationInfoSection";let e6=c.Z.div(eG()),e4=c.Z.div(eX()),e8=c.Z.div(eJ()),e7=c.Z.div(e$(),e=>{let{bgColor:n}=e;return n},e=>{let{color:n}=e;return n},e=>{let{theme:n}=e;return n.typo.body3.regular}),e5=c.Z.div(e0()),e9=c.Z.div(e1()),ne=c.Z.label(e2(),e=>{let{theme:n}=e;return n.colors.text.secondary},e=>{let{theme:n}=e;return n.typo.body3.regular});var nn=t(42173);function nt(e){let{onClose:n,onConfirm:t}=e;return(0,o.jsx)(nn.Z,{title:(0,o.jsxs)(D.Z,{typography:M.Z.h6.bold,children:["변경된 신청 정보가 있습니다.",(0,o.jsx)("br",{}),"그래도"," ",(0,o.jsx)(D.Z,{typography:M.Z.h6.bold,color:L.Z.error.main,children:"닫으시겠습니까"}),"?"]}),content:(0,o.jsxs)(D.Z,{typography:M.Z.body2.regular,children:["창이 닫히면 변경된 정보들은 저장되지 않습니다.",(0,o.jsx)("br",{}),"저장을 하려면 저장하기 버튼을 눌러야 저장이 완료됩니다."]}),actions:[(0,o.jsx)(v.Z,{color:"error",isFullWidth:!0,borderRadius:0,onClick:t,children:"네, 닫습니다."},"confirm"),(0,o.jsx)(v.Z,{variant:"outlined",color:"default",isFullWidth:!0,borderRadius:0,onClick:n,children:"아니오, 닫지 않습니다."},"cancel")]})}function ni(e){let{onClose:n,onConfirm:t}=e;return(0,o.jsx)(nn.Z,{title:(0,o.jsxs)(D.Z,{typography:M.Z.h6.bold,children:["저장되지 않은 변경 정보가 있습니다.",(0,o.jsx)("br",{}),"저장하시겠습니까?"]}),content:(0,o.jsxs)(D.Z,{typography:M.Z.body2.regular,children:["저장하지 않고 페이지 이동 시 변경한 정보들이 저장되지 않습니다.",(0,o.jsx)("br",{}),"저장을 하려면 저장하기 버튼을 눌러야 저장이 완료됩니다."]}),actions:[(0,o.jsx)(v.Z,{variant:"outlined",color:"default",isFullWidth:!0,borderRadius:0,onClick:n,children:"닫기"},"close"),(0,o.jsx)(v.Z,{color:"primaryBlue",isFullWidth:!0,borderRadius:0,onClick:t,children:"네, 저장합니다."},"confirm")]})}var nr=t(17029),no=t(22061);function na(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  flex-direction: column;\n"]);return na=function(){return e},e}let nl=c.Z.div(na());function nd(e){let{open:n,onClose:t,onSave:i}
1=e,[r,a]=(0,s.useState)(""),[l,d]=(0,s.useState)("address"),c=(0,s.useCallback)(e=>{a(e),d("detail")},[]),u=(0,s.useCallback)(e=>{d("address"),i(r,e)},[r,i]),p=(0,s.useCallback)(()=>{d("address"),a("")},[]);return n?(0,o.jsxs)(nl,{children:[(0,o.jsx)(eh.Z,{open:"address"===l,onSave:c,onClose:()=>{d("address"),t()}}),(0,o.jsx)(no.Z,{open:"detail"===l,address:r,onSave:u,onClose:()=>{d("address"),t()},onResearch:p})]}):null}var ns=t(48228),nc=t(87066),nu=t(58102),np=t(50234),nh=t(26988),nx=t(99071),nm=t(55286),n_=t(94378);function ng(){let e=(0,d._)(["\n  width: 100%;\n"]);return ng=function(){return e},e}function ny(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n\n  padding: 16px;\n  border-radius: 8px;\n  background-color: ",";\n\n  ",";\n"]);return ny=function(){return e},e}function nf(){let e=(0,d._)(["\n  width: 76px;\n\n  color: ",";\n  ",";\n"]);return nf=function(){return e},e}let nZ=c.Z.div(ng()),nj=c.Z.div(ny(),e=>e.bgColor,e=>e.theme.typo.body1.regular),nb=c.Z.label(nf(),e=>e.theme.colors.text.secondary,e=>e.theme.typo.body2.regular);var nv=e=>{let{documents:n,residentCertData:t,address:i,uuid:r,target:a,category:l,userAssets:d,ownedHomeAddress:c,onCreateDocuments:u,onDeleteDocuments:p}=e,{user:h}=(0,f.ZP)(),{showSnackbar:x}=(0,I.D)(),_=(0,nm.k)(),g=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(n.length>0){let e=n.map(e=>({uuid:e.uuid,purpose:"",category:e.category,detailCategory:e.file_name,file:new File([],e.file_name,{type:"application/pdf"}),name:e.file_name,url:e.file_path,path:e.file_path,already:!0,uploaderName:e.name,uploaderEmail:e.email,uploadedDate:e.created_at}));_.addDocuments(e)}},[]);let y=(0,A.Z)(m.Z.kyobo.employee.post.uploadDocumentUrl,{onError:()=>{x({message:"파일 업로드중 오류가 발생했습니다.",type:"error",position:"top-center"})}}),Z=(0,s.useCallback)(()=>{var e;null===(e=g.current)||void 0===e||e.click()},[]),j=(0,s.useCallback)(async e=>{if(!e.target.files||0===e.target.files.length)return;if(e.target.files.length+_.documents.length>5){x({message:"첨부 가능한 파일의 최대 개수는 5개 입니다.",type:"error",position:"top-center"});return}let n=Array.from(e.target.files);if(n=n.map(e=>(0,n_.UH)(e)),(n=await Promise.all(n.map(async e=>await (0,n_.S9)(e)))).find(e=>!["application/pdf","image/jpg","image/jpeg","image/png"].includes(e.type))){e.target.value="",x({message:"문서는 pdf, jpg, jpeg, png 만 업로드 가능합니다.",type:"error",position:"top-center"});return}if(n.find(e=>e.name.length>=80)){e.target.value="",x({message:"파일명 길이는 80자 까지만 업로드 가능합니다.",type:"error",position:"top-center"});return}let t=[];for(let e=0;e<n.length;e++){let i=n[e].name,r=i.substring(i.lastIndexOf(".")),o=i.substring(0,i.lastIndexOf(".")),d=1;for(;_.documents.some(e=>e.name===i);)i="".concat(o,"(").concat(d,")").concat(r),d++;let{url:s,file_path:c}=await y.mutateAsync({file_name:n[e].name});try{await nc.default.put(s,n[e],{headers:{"Content-Type":n[e].type}})}catch(e){throw Error("파일 업로드중 오류가 발생했습니다.")}_.addDocument({purpose:"",category:l,detailCategory:i,file:n[e],name:i,url:c,path:c,already:!1,uploaderName:(null==h?void 0:h.user_name)||"",uploaderEmail:(null==h?void 0:h.user_email)||"",uploadedDate:V()().format("YYYY-MM-DD HH:mm")}),t.push({file_path:c,file_name:n[e].name,category:l,target:a})}u(t),e.target.value=""},[null==h?void 0:h.user_email,null==h?void 0:h.user_name,l,n]),b=async(e,n)=>{let t=await m.Z.kyobo.employee.get.document.downloadDocumentUrl({documentUuid:e}),i=await fetch(t.url),r=await i.blob(),o=window.URL.createObjectURL(r),a=document.createElement("a");a.download=n,a.href=o,document.body.append(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(o)},C=e=>{_.deleteDocument(e),p(e)},S=(0,ns.D)(m.Z.kyobo.employee.get.document.downloadDocumentUrl),R=async e=>{S.mutate({documentUuid:e},{onSuccess:e=>{window.open(e.url,"_blank")}})};return(0,o.jsxs)(nZ,{children:[i&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(nj,{bgColor:L.Z.chip.orangeLight,children:["".concat(K.kI[a]," 주소"),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:i})]}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(G.Z,{space:8})]}),c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(nj,{bgColor:L.Z.chip.orangeLight,children:["본인 소유 주택 주소 (1차 신청 정보)",c.length>0?(0,o.jsx)(k.Z,{flexDirection:"column",gap:4,alignItems:"flex-start",children:c.map(e=>(0,o.jsxs)(k.Z,{gap:8,justifyContent:"flex-start",children:[(0,o.jsxs)(nb,{children:[1===e.number&&"첫번째",2===e.number&&"두번째",3===e.number&&"세번째",4===e.number&&"네번째",5===e.number&&"다섯번째"," 주택"]}),(0,o.jsxs)(D.Z,{typography:M.Z.body1.bold,children:[e.state," ",e.city]})]},e.number))}):(0,o.jsx)(D.Z,{typography:M.Z.body1.regular,color:L.Z.text.disabled,align:"center",children:"소유 주택 없음"})]}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(G.Z,{space:8})]}
1),!t&&!d&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(v.Z,{size:"medium",color:"primaryBlue",variant:"outlined",isFullWidth:!0,borderRadius:8,onClick:Z,disabled:_.documents.length>=5,children:["파일 첨부하기 ",_.documents.length,"/5"]}),(0,o.jsx)("input",{ref:g,type:"file",name:"file",accept:".pdf, .jpeg, .jpg, .png",multiple:!0,hidden:!0,onChange:j}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(G.Z,{space:8})]}),t?(0,o.jsx)(nx.K,{data:{target:t.target,address:t.address,createAt:t.created_at,houseHoldLeaderName:t.house_hold_leader_name,houseHoldCompositionReason:t.house_hold_composition_reason,houseHoldCompositionDate:t.house_hold_composition_date,occurrenceDate:t.occurrence_date,reportDate:t.report_date,changeReason:t.change_reason,houseMember:t.house_members}}):d?(0,o.jsx)(nh.q,{data:d}):_.documents.length>0?(0,o.jsx)(np.Z,{children:_.documents.map((e,n)=>(0,o.jsx)(nu.Z,{documentName:e.name,updatedAt:e.uploadedDate||V()().format("YYYY-MM-DD"),userEmail:e.uploaderEmail||(null==h?void 0:h.user_email)||"",userName:e.uploaderName||(null==h?void 0:h.user_name)||"",editable:!0,iconColor:L.Z.primaryBlue[500],onClickDownload:()=>b(e.uuid||"",e.name||""),onClickDocument:()=>R(e.uuid||""),onClickDelete:()=>C(e)},e.uuid||"".concat(n,"-").concat(e.name)))}):(0,o.jsx)(nj,{bgColor:L.Z.gray[100],children:(0,o.jsx)(k.Z,{justifyContent:"flex-end",children:(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,color:L.Z.text.disabled,children:"제출 서류 없음"})})})]})},nw=t(86640);function nk(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n"]);return nk=function(){return e},e}function nC(){let e=(0,d._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n"]);return nC=function(){return e},e}function nD(){let e=(0,d._)(["\n  display: flex;\n  align-items: center;\n  gap: 12px;\n"]);return nD=function(){return e},e}function nS(){let e=(0,d._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  padding: 4px 8px;\n  border-radius: 4px;\n  background-color: ",";\n  color: ",";\n\n  ",";\n"]);return nS=function(){return e},e}function nR(){let e=(0,d._)(["\n  display: flex;\n  flex-wrap: wrap;\n  row-gap: 8px;\n  column-gap: 16px;\n"]);return nR=function(){return e},e}function nI(){let e=(0,d._)(["\n  flex: 1 1 calc(50% - 16px);\n  display: flex;\n  align-items: center;\n  gap: 4px;\n"]);return nI=function(){return e},e}function nA(){let e=(0,d._)(["\n  min-width: 121px;\n  max-width: 121px;\n  color: ",";\n\n  ",";\n"]);return nA=function(){return e},e}function nL(){let e=(0,d._)(["\n    display: flex;\n    flex-direction: column;\n\n    &:not(:last-child) {\n      border-bottom: 1px solid ",";\n    }\n  "]);return nL=function(){return e},e}function nM(){let e=(0,d._)(["\n    display: flex;\n    align-items: center;\n    padding: 0 16px 24px 16px;\n    ",";\n  "]);return nM=function(){return e},e}function nE(){let e=(0,d._)(["\n    display: flex;\n    flex-direction: column;\n    gap: 8px;\n\n    padding: 8px 16px 24px 16px;\n\n    & > div + div {\n      border-top: 1px solid ",";\n    }\n  "]);return nE=function(){return e},e}function nF(){let e=(0,d._)(["\n  width: 100%;\n  height: calc(600px - 350px);\n\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n"]);return nF=function(){return e},e}let nB=(0,s.forwardRef)((e,n)=>{var t,i,r,a,l,d;let{data:c,houseRentalAgreementData:u,isDirectTransfer:p,isAppointmentCapitalArea:h,createdAt:m,isImplicitRenewal:_}=e,[y,f]=(0,x.FV)(g.Al),{showModal:Z,openModal:j,closeModal:b}=(0,R.d)();(0,s.useImperativeHandle)(n,()=>({validate:()=>{var e,n,t,i,r;let o=null!==(e=v.validate())&&void 0!==e&&e,a=null!==(n=k.validate())&&void 0!==n&&n,l=null!==(t=C.validate())&&void 0!==t&&t,d=null!==(i=S.validate())&&void 0!==i&&i,s=null!==(r=I.validate())&&void 0!==r&&r;return o&&a&&l&&d&&s}}));let v=(0,q.Z)((null===(t=y.house_rental_agreement)||void 0===t?void 0:t.monthly_rental_amount)?String(y.house_rental_agreement.monthly_rental_amount):(null==u?void 0:u.monthly_rental_amount)?String(u.monthly_rental_amount):"","amount"),k=(0,q.Z)((null===(i=y.house_rental_agreement)||void 0===i?void 0:i.exclusive_area)?y.house_rental_agreement.exclusive_area:Number(null==u?void 0:u.exclusive_area)>0?u.exclusive_area:"","area"),C=(0,q.Z)((null===(r=y.house_rental_agreement)||void 0===r?void 0:r.contract_months)?String(y.house_rental_agreement.contract_months):(null==u?void 0:u.contract_months)?String(u.contract_months):"","month",{maxValue:24}),S=(0,q.Z)((null===(a=y.house_rental_agreement)||void 0===a?void 0:a.contract_start_date)||(null==u?void 0:u.contract_start_date)||"","date"),I=(0,q.Z)((null===(l=y.house_rental_agreement)||void 0===l?void 0:l.contract_end_date)||(null==u?void 0:u.contract_end_date)||"","date"),A=(0,q.Z)((null===(d=y.house_rental_agreement)||void 0===d?void 0:d.address)?"".concat(y.house_rental_agreement.address," ").concat(y.house_rental_agreement.detail_address):(null==u?void 0:u.address)||"","text"),E=e=>{f(n=>({...n,create_document_list:[...n.create_document_list||[],...e]}))},F=e=>{var n;(null===(n=y.create_document_list)||void 0===n?void 0:n.find(n=>n.file_path===e.path))&&f(n=>{var t;return{...n,create_document_list:null===(t=n.create_document_list)||void 0===t?void 0:t.filter(n=>n.file_path!==e.path)}}),e.uuid&&f(n=>({...n,delete_document_list:[...n.delete_document_list||[],e.uuid]}))},T=[{label:"전월세 계약 정보",labelRight:(0,o.jsx)(nW,{color:L.Z.chip.orangeMain,bgColor:L.Z.chip.orangeLight,children:"발령 근무지 : ".concat(h?"수도권":"비수도권")}),rows:[{title:"계약서상의 전월세 금액",content:(0,o.jsx)(z.Z,{...v,placeholder:"계약서상의 전월세 금액",maxLength:10,value:v.value?(0,nw.T)(v.value):"",rightIcon:(0,o.jsx)(D.Z,{typography:M.Z.body2.regular,children:"원"}),iconWidth:16,textAlign:"end",onBlur:()=>{Number(v.value)!==u.monthly_rental_amount&&f(e=>({...e,house_rental_agreement:{...e.house_rental_agreement,monthly_rental_amount:Number(v.value)}}))}})},{title:"",content:null},{isDivider:!0},{title:"전월세지의 전용면적",content:(0,o.jsx)(z.Z,{...k,placeholder:"전월세지의 전용면적 입력",value:k.value,rightIcon:(0,o.jsx)(D.Z,{typography:M.Z.body2.regular,children:"㎡"}),iconWidth:24,textAlign:"end",onBlur:()=>{1>Number(k.value)||k.value===u.exclusive_area||f(e=>({...e,house_rental_agreement:{...e.house_rental_agreement,exclusive_area:k.value}}))}})},{title:"",content:null},{title:"계약 개월 수",content:(0,o.jsx)(z.Z,{...C,placeholder:"계약 개월 수",maxLength:2,value:C.value,rightIcon:(0,o.jsx)(D.Z,{typography:M.Z.body2.regular,children:"개월"}),iconWidth:28,textAlign:"end",onBlur:()=>{Number(C.value)>24||Number(C.value)===u.contract_months||f(e=>({...e,house_rental_agreement:{...e.house_rental_agreement,contract_months:Number(C.value)}}))}})},{title:"",content:null},{title:"계약 시작일",content:(0,o.jsx)(W.Z,{...S,onSelectDate:e=>{e!==u.contract_start_date&&f(n=>({...n,house_rental_agreement:{...n.house_rental_agreement,contract_start_date:e}}))},minDate:V()(S.value).startOf("month").toDate(),maxDate:V()(S.value).endOf("month").toDate()})},{title:"계약 종료일",content:(0,o.jsx)(W.Z,{...I,onSelectDate:e=>{e!==u.contract_end_date&&f(n=>({...n,house_rental_agreement:{...n.house_rental_agreement,contract_end_date:e}}))},minDate:_?V()(S.value).toDate():V()(I.value).startOf("month").toDate()})},{isDivider:!0},{title:"전/월세지 주소",content:(0,o.jsx)(z.Z,{...A,disabledText:!0,type:"button",onClick:j,rightIcon:(0,o.jsx)(B.Z,{sx:{color:L.Z.text.disabled}})})}]},{idDivider:!0}],H=(e=>{let n=(n,t)=>e.documents.filter(e=>e.category===n&&(!t||e.target===t)),t=(t,i)=>{var r;let a=n(t,i),l=e["".concat("self"===i?"registered":i,"_address")];return(0,o.jsx)(nv,{documents:a,residentCertData:e.registration_certifications.length>0?e.registration_certifications.find(e=>i===e.target):null,address:l,uuid:y.uuid,category:t,target:i||"self",userAssets:t===g.Yn.보유물건지현황&&null!==(r=e.user_assets)&&void 0!==r?r:null,onCreateDocuments:E,onDeleteDocuments:F,ownedHomeAddress:t===g.Yn.보유물건지현황?e.owned_home_address:null})},i=[{title:"(1) 전월세 임대차 계약서",content:t(g.Yn.전월세임대차계약서),emptyText:"제출 서류 없음"},{title:"(2) 전월세 입금 확인서",content:t(g.Yn.전월세입금확인서),emptyText:"제출 서류 없음"},{title:"(3) 보유 주택/건물 현황",content:t(g.Yn.보유물건지현황),emptyText:"제출 서류 없음"}],r=e.resident_cert_submit_target.map((e,n)=>({title:"(".concat(n+4,") ").concat(K.kI[e]," : 주민등록등본"),content:t(g.Yn.주민등록등본,e),emptyText:"제출 서류 없음"})),a={title:"(".concat(p?5:i.length+r.length+1,") 기타 파일"),content:t(g.Yn.기타),emptyText:"제출 서류 없음"};return[...i,...r,a]})(c);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(nT,{children:[(0,o.jsxs)(D.Z,{typography:M.Z.body1.bold,children:["신청일시 ",(0,eD.ju)(m)," 신청건"]}),(0,o.jsx)(w.Z,{height:1,color:L.Z.gray[400]}),c.is_direct_transfer?(0,o.jsxs)(nU,{children:[(0,o.jsx)(nr.Z,{sx:{width:60,height:60,color:L.Z.text.disabled}}),(0,o.jsx)(D.Z,{typography:M.Z.body1.regular,color:L.Z.text.secondary,children:"제출 서류가 없습니다"})]}):(0,o.jsxs)(o.Fragment,{children:[T.map((e,n)=>{var t;return e.idDivider?(0,o.jsx)(w.Z,{height:1,color:L.Z.gray[400]}
1,"divider-".concat(n)):(0,o.jsxs)(nV,{id:"제출서류-".concat(e.label),children:[(0,o.jsxs)(nH,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:e.label}),e.labelRight&&(0,o.jsx)(o.Fragment,{children:e.labelRight})]}),(0,o.jsx)(nN,{children:null===(t=e.rows)||void 0===t?void 0:t.map((e,t)=>e.isDivider?(0,o.jsx)(w.Z,{height:1},"sub-divider-".concat(n,"-").concat(t)):(0,o.jsxs)(nO,{children:[(0,o.jsx)(nz,{children:e.title}),e.content]},"field-".concat(n,"-").concat(t)))})]},"section-".concat(n))}),H.map((e,n)=>(0,o.jsxs)(nK.Section,{id:"제출서류-".concat(e.title),children:[(0,o.jsx)(nK.Title,{children:e.title}),(0,o.jsx)(nK.Content,{children:e.content})]},"document-section-".concat(n)))]})]}),Z&&(0,o.jsx)(nd,{open:Z,onSave:(e,n)=>{let t=n?"".concat(e," ").concat(n):e;A.updateValue(t),f(t=>({...t,house_rental_agreement:{...t.house_rental_agreement,address:e,detail_address:n}})),b()},onClose:b})]})});nB.displayName="DocumentInfoSection";let nT=c.Z.div(nk()),nV=c.Z.div(nC()),nH=c.Z.div(nD()),nW=c.Z.div(nS(),e=>{let{bgColor:n}=e;return n},e=>{let{color:n}=e;return n},e=>{let{theme:n}=e;return n.typo.body3.regular}),nN=c.Z.div(nR()),nO=c.Z.div(nI()),nz=c.Z.label(nA(),e=>{let{theme:n}=e;return n.colors.text.secondary},e=>{let{theme:n}=e;return n.typo.body3.regular}),nK={Section:c.Z.div(nL(),e=>{let{theme:n}=e;return n.colors.gray[400]}),Title:c.Z.div(nM(),e=>{let{theme:n}=e;return n.typo.body1.bold}),Content:c.Z.div(nE(),e=>{let{theme:n}=e;return n.colors.divider})},nU=c.Z.div(nF());function nq(){let e=(0,d._)(["\n  width: 100%;\n  max-width: 1000px;\n  height: ","px;\n  min-height: 600px;\n  max-height: 800px;\n\n  display: flex;\n  flex-direction: column;\n\n  background-color: ",";\n  border-radius: 16px;\n  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.25);\n  overflow: hidden;\n"]);return nq=function(){return e},e}function nY(){let e=(0,d._)(["\n  padding: 32px 24px 24px;\n\n  ",";\n"]);return nY=function(){return e},e}function nP(){let e=(0,d._)(["\n  width: 100%;\n\n  position: relative;\n\n  flex: 1;\n  overflow-y: auto;\n\n  padding: 24px 24px 40px 24px;\n"]);return nP=function(){return e},e}function nQ(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  align-items: center;\n\n  & > button {\n    border: none;\n\n    :hover {\n      border: none;\n    }\n    :disabled {\n      border: none;\n    }\n  }\n"]);return nQ=function(){return e},e}function nG(e){let{detailData:n,documentData:t,uuid:i}=e,r=(0,Z.NL)(),{showSnackbar:a}=(0,I.D)(),[l,d]=(0,x.FV)(g.Al),[c,u]=(0,s.useState)(600);(0,s.useEffect)(()=>{let e=()=>{u(window.innerHeight<800?600:800)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let{showModal:p,openModal:h,closeModal:y}=(0,R.d)(),{showModal:f,openModal:E,closeModal:F}=(0,R.d)(),[B,T]=(0,s.useState)(l.tab||"기본정보"),[V,H]=(0,s.use
1State)({기본정보:0,신청정보:0,제출서류:0}),W={기본정보:(0,s.useRef)(null),신청정보:(0,s.useRef)(null),제출서류:(0,s.useRef)(null)},N=(0,s.useRef)(null),O=(0,s.useRef)(null),z=(0,s.useRef)();(0,s.useEffect)(()=>(clearTimeout(z.current),l.label&&(z.current=setTimeout(()=>{let e=document.getElementById("".concat(l.tab,"-").concat(l.label));if(e){let n=W[B].current;if(n){let t=e.offsetTop-n.clientHeight/2+e.clientHeight/2;n.scrollTo({top:t,behavior:"smooth"}),H(e=>({...e,[B]:t}))}}},300)),()=>{clearTimeout(z.current)}),[B]),(0,s.useEffect)(()=>{let e=W[B].current,n=()=>{H(n=>({...n,[B]:(null==e?void 0:e.scrollTop)||0}))};return e&&(e.removeEventListener("scroll",n),e.scrollTo({top:V[B]}),e.addEventListener("scroll",n)),()=>{e&&e.removeEventListener("scroll",n)}},[B]);let K=e=>{let n=["show","label","uuid","tab","ownedHomeAddress"];if(l&&Object.keys(l).some(e=>!n.includes(e))){d(n=>({...n,tab:e})),E();return}T(e)},U=(0,A.Z)(m.Z.kyobo.admin.patch.updateApplicationInfo,{onSuccess:()=>{a({message:"정보가 수정되었습니다."}),d(e=>({show:!0,tab:e.tab,label:"",uuid:e.uuid})),r.refetchQueries({queryKey:_.a.application.detail(i)}),r.refetchQueries({queryKey:_.a.document.detailList(i)}),r.refetchQueries({queryKey:_.a.application.log(i)})},onError:()=>{a({message:"정보 수정에 실패하였습니다.",type:"error"})}}),q=()=>{if("신청정보"===B&&N.current&&!N.current.validate()||"제출서류"===B&&O.current&&!O.current.validate())return;let e={uuid:i};if(l){var n,t;let i=null===(n=l.ownedHomeAddress)||void 0===n?void 0:n.filter(e=>e.checked).map(e=>{let{number:n,state:t,city:i}=e;return{number:n,state:t,city:i}}),r=null===(t=l.ownedHomeAddress)||void 0===t?void 0:t.filter(e=>!e.checked&&e.uuid).map(e=>{let{uuid:n}=e;return n});i&&i.length>0&&(e.create_owned_home_address=i),r&&r.length>0&&(e.delete_owned_home_address=r),Object.entries(l).forEach(n=>{let[t,i]=n;"show"!==t&&"ownedHomeAddress"!==t&&"label"!==t&&"tab"!==t&&(e[t]=i)})}Object.keys(e).some(e=>"uuid"!==e)?U.mutate(e):a({message:"변경 사항이 없습니다.",type:"error"})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C.Z,{children:(0,o.jsxs)(nX,{modalHeight:c,children:[(0,o.jsx)(nJ,{children:"".concat(n.user.name," (").concat(n.user.email.split("@")[0],") : ").concat((0,eD.ju)(n.created_at)," 신청 정보 변경")}),(0,o.jsxs)(b.Z,{showDivider:!1,children:[(0,o.jsx)(j.Z,{title:"기본 정보",actived:"기본정보"===B,onClick:()=>K("기본정보"),height:49}),(0,o.jsx)(j.Z,{title:"1차 신청 정보",actived:"신청정보"===B,onClick:()=>K("신청정보"),height:49}),(0,o.jsx)(j.Z,{title:"2차 제출 서류 정보",actived:"제출서류"===B,onClick:()=>K("제출서류"),height:49})]}),(0,o.jsxs)(n$,{ref:W[B],children:["기본정보"===B&&(0,o.jsx)(e3,{data:n}),"신청정보"===B&&(0,o.jsx)(eW,{ref:N,data:n}),"제출서류"===B&&(0,o.jsx)(nB,{ref:O,data:t,houseRentalAgreementData:n.house_rental_agreement,isDirectTransfer:n.is_direct_transfer,isAppointmentCapitalArea:n.is_appointment_capital_area,createdAt:n.created_at,isImplicitRenewal:"implicit_renewal"===n.category})]}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsxs)(n0,{children:[(0,o.jsx)(v.Z,{variant:"outlined",color:"default",isFullWidth:!0,borderRadius:0,onClick:()=>{if(l&&Object.keys(l).some(e=>"show"!==e&&"ownedHomeAddress"!==e&&"label"!==e&&"tab"!==e&&"uuid"!==e)){h();return}d({show:!1,tab:"기본정보",label:"",uuid:""})},children:"닫기"}),(0,o.jsx)(v.Z,{variant:"contained",color:"primaryBlue",isFullWidth:!0,borderRadius:0,onClick:q,disabled:U.isLoading,children:U.isLoading?(0,o.jsxs)(k.Z,{gap:4,children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,color:L.Z.text.secondary,children:"저장중"}),(0,o.jsx)(S.p,{size:24})]}):"저장"})]})]})}),p&&(0,o.jsx)(nt,{onClose:y,onConfirm:()=>{d({show:!1,tab:"기본정보",label:"",uuid:""})}}),f&&(0,o.jsx)(ni,{onClose:F,onConfirm:()=>{q(),F(),T(l.tab)}})]})}let nX=c.Z.div(nq(),e=>e.modalHeight,e=>{let{theme:n}=e;return n.colors.common.white}),nJ=c.Z.div(nY(),e=>e.theme.typo.h6.bold),n$=c.Z.div(nP()),n0=c.Z.div(nQ());var n1=t(38444),n2=t(60042),n3=t(67975),n6=t(85852);function n4(){let e=(0,d._)(["\n  from {\n    transform: translateX(100%);\n    opacity: 0;\n  }\n  to {\n    transform: translateX(0); \n    opacity: 1;\n  }\n"]);return n4=function(){return e},e}function n8(){let e=(0,d._)(["\n  from {\n    transform: translateX(0);\n    opacity: 1;\n  }\n  to {\n    transform: translateX(100%);\n    opacity: 0;\n  }\n"]);return n8=function(){return e},e}function n7(){let e=(0,d._)(["\n  position: fixed;\n  top: 0;\n  right: 0;\n\n  width: 600px;\n  max-width: 600px;\n  height: 100vh;\n\n  display: flex;\n  flex-direction: column;\n\n  background-color: ",";\n  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.25);\n  overflow: hidden;
1\n\n  z-index: ",";\n\n  animation: "," 0.3s ease-out;\n"]);return n7=function(){return e},e}function n5(){let e=(0,d._)(["\n  width: 100%;\n\n  padding: 24px 12px;\n\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n\n  border-bottom: 1px solid ",";\n"]);return n5=function(){return e},e}function n9(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  flex-direction: column;\n  flex: 1;\n\n  overflow-y: auto;\n"]);return n9=function(){return e},e}function te(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: 8px;\n\n  flex: 1;\n"]);return te=function(){return e},e}let tn="1fr 160px 160px";function tt(e){let{uuid:n,onClose:t}=e,[i,r]=(0,s.useState)(!0),{data:a}=(0,u.a)({queryKey:_.a.application.log(n),queryFn:()=>m.Z.kyobo.admin.get.application.log(n),enabled:!!n}),l=(0,s.useMemo)(()=>(null==a?void 0:a.logs)&&0!==a.logs.length?[...a.logs].sort((e,n)=>(0,n6.rm)(e.created_at,n.created_at,"desc")):[],[null==a?void 0:a.logs]),d=(0,s.useCallback)(()=>{r(!1),setTimeout(t,300)},[t]);return a?(0,o.jsxs)(to,{isVisible:i,children:[(0,o.jsxs)(ta,{children:[(0,o.jsxs)(D.Z,{typography:M.Z.h6.bold,children:["변경 히스토리 : ",a.name,(0,o.jsxs)(D.Z,{typography:M.Z.h6.regular,children:["(",a.employee_id,")"]})]}),(0,o.jsx)(Q.Z,{onClick:d,children:(0,o.jsx)(n1.Z,{sx:{color:L.Z.text.secondary}})})]}),l.length>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n3.Z.Head,{children:(0,o.jsxs)(n3.Z.Row,{gridTemplateColumns:tn,children:[(0,o.jsx)(n3.Z.HeadItem,{bgColor:L.Z.gray[100],textAlign:"left",children:"변경 내역"}),(0,o.jsx)(n3.Z.HeadItem,{textAlign:"left",children:"변경 일시"}),(0,o.jsx)(n3.Z.HeadItem,{textAlign:"left",children:"관리자 이름 (사번)"})]})}),(0,o.jsx)(tl,{children:l.map(e=>(0,o.jsxs)(n3.Z.Row,{gridTemplateColumns:tn,height:"100%",padding:"8px 12px",children:[(0,o.jsx)(n3.Z.BodyItem,{textAlign:"left",children:(0,o.jsxs)(k.Z,{gap:2,flexDirection:"column",alignItems:"flex-start",autoHeight:!0,children:[e.message_01,(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,color:L.Z.text.secondary,children:e.message_02})]})}),(0,o.jsx)(n3.Z.BodyItem,{textAlign:"left",children:(0,eD.ju)(e.created_at)}),(0,o.jsx)(n3.Z.BodyItem,{textAlign:"left",children:e.editor_name?"".concat(e.editor_name," (").concat(e.editor_employee_id,")"):(0,o.jsx)(D.Z,{typography:M.Z.body2.regular,color:L.Z.text.secondary,children:"- (자동 변경)"})})]},e.created_at))})]}):(0,o.jsxs)(td,{children:[(0,o.jsx)(n2.Z,{sx:{width:40,height:40,color:L.Z.text.disabled}}),(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,color:L.Z.text.secondary,children:"아직 변경된 정보가 없습니다"})]})]}):null}let ti=(0,E.F4)(n4()),tr=(0,E.F4)(n8()),to=c.Z.div(n7(),e=>{let{theme:n}=e;return n.colors.common.white},e=>{let{theme:n}=e;return n.common.zIndex.sideNav},e=>e.isVisible?ti:tr),ta=c.Z.div(n5(),e=>{let{theme:n}=e;return n.colors.gray[400]}),tl=c.Z.div(n9()),td=c.Z.div(te());var ts=t(82836),tc=t(79824),tu=t(20361),tp=t(22952),th=t(9576);function tx(){let e=(0,d._)(["\n  position: fixed;\n\n  top: 80px;\n  right: 0;\n  bottom: 0;\n\n  width: 320px;\n\n  background-color: white;\n\n  border-left: 1px solid ",";\n\n  @media (max-width: ",") {\n    top: ","px;\n  }\n\n  @media (max-width: ",") {\n    top: ","px;\n  }\n"]);return tx=function(){return e},e}function tm(){let e=(0,d._)(["\n  width: 100%;\n  height: 84px;\n\n  display: flex;\n  flex-direction: column;\n\n  padding: 16px;\n\n  background-color: ",";\n"]);return tm=function(){return e},e}function t_(){let e=(0,d._)(["\n  height: calc(100vh - 324px);\n"]);return t_=function(){return e},e}function tg(){let e=(0,d._)(["\n  width: 100%;\n  height: 160px;\n\n  display: flex;\n  flex-direction: column;\n\n  padding: 12px 16px;\n\n  background-color: ",";\n"]);return tg=function(){return e},e}function ty(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n"]);return ty=function(){return e},e}function tf(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n  padding: 16px;
1\n\n  overflow-y: scroll;\n\n  background-color: ",";\n\n  & > li + li {\n    margin-bottom: 16px;\n  }\n\n  display: flex;\n  flex-direction: column-reverse;\n"]);return tf=function(){return e},e}function tZ(){let e=(0,d._)(["\n  border-radius: 8px;\n\n  display: flex;\n  flex-direction: column;\n\n  background-color: ",";\n"]);return tZ=function(){return e},e}function tj(){let e=(0,d._)(["\n  padding: 8px;\n"]);return tj=function(){return e},e}function tb(){let e=(0,d._)(["\n  padding: 0px 8px;\n"]);return tb=function(){return e},e}function tv(){let e=(0,d._)(["\n  padding: 8px;\n"]);return tv=function(){return e},e}let tw=c.Z.div(tx(),e=>e.theme.colors.gray[400],e=>e.theme.common.breakpoint.tablet,120,e=>e.theme.common.breakpoint.mobile,138),tk=c.Z.div(tm(),e=>e.theme.colors.common.white),tC=c.Z.div(t_()),tD=c.Z.div(tg(),e=>e.theme.colors.common.white),tS=c.Z.div(ty()),tR=c.Z.ul(tf(),e=>e.theme.colors.gray[200]),tI=c.Z.li(tZ(),e=>e.theme.colors.common.white),tA=c.Z.div(tj()),tL=c.Z.div(tb()),tM=c.Z.div(tv());function tE(e){let{uuid:n,type:t,memos:i}=e,r=(0,Z.NL)(),a=(0,q.Z)("","textarea",{maxLength:1e3}
1),[l,d]=(0,s.useState)(!1),[c,u]=(0,s.useState)(!1),{showSnackbar:p}=(0,I.D)(),h=(0,ns.D)({mutationFn:m.Z.kyobo.admin.post.createMemo}),x=(0,s.useCallback)(()=>{if(!h.isLoading){if(""===a.value)return p({message:"내용을 입력해주세요.",type:"error"});d(!0),h.mutate({uuid:n,application:t,content:a.value},{onSuccess:()=>{a.clearValue(),"certification"===t?r.refetchQueries(_.a.application.detail(n)):"home_ownership_proof"===t&&r.refetchQueries(_.a.document.detail(n)),p({message:"관리자 메모를 정상적으로 등록하였습니다"}),d(!1)},onError:()=>{p({message:"문제가 발생했습니다.",type:"error"}),d(!1)}})}},[a,h,r,p,t,n]),g=(0,A.Z)(m.Z.kyobo.admin.delete.memo,{onSuccess:()=>{r.refetchQueries(_.a.application.detail(n)),p({message:"해당 메모를 정상적으로 삭제하였습니다."})},onError:()=>{p({message:"문제가 발생했습니다.",type:"error"})}}),y=(0,s.useCallback)(e=>{if(c)return;u(!0);let t=confirm("해당 메모를 삭제하시겠습니까? (삭제하면 이후에 복구할 수 없습니다.)");u(!1),t&&g.mutate({uuid:n,memo_uuid:e})},[g,n,c]);return(0,o.jsxs)(tw,{children:[(0,o.jsxs)(tk,{children:[(0,o.jsxs)(D.Z,{typography:M.Z.h6.bold,children:[(0,o.jsx)(D.Z,{typography:M.Z.h6.bold,color:0===i.length?L.Z.text.secondary:L.Z.primaryBlue.main,children:i.length}),"개의 관리자 메모"]}),(0,o.jsx)(G.Z,{space:2}),0===i.length?(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,color:L.Z.text.secondary,children:"관리자 메모를 간편하게 기록하세요"}):(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,color:L.Z.text.secondary,children:"가장 최근에 등록된 메모부터 확인 가능합니다"})]}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(tC,{children:0===i.length?(0,o.jsxs)(tS,{children:[(0,o.jsx)(ts.Z,{sx:{width:40,height:40,color:L.Z.text.disabled}}),(0,o.jsx)(G.Z,{space:8,direction:"vertical"}),(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,color:L.Z.text.secondary,children:"아직 관리자 메모가 없습니다"}),(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,color:L.Z.text.secondary,children:"필수로 기록해야 할 정보를 남겨주세요"})]}):(0,o.jsx)(tR,{children:[...i].sort((e,n)=>new Date(n.created_at).getTime()-new Date(e.created_at).getTime()).map((e,n)=>(0,o.jsxs)(tI,{children:[(0,o.jsx)(tA,{children:(0,o.jsxs)(k.Z,{justifyContent:"flex-start",children:[(0,o.jsx)(tu.Z,{}),(0,o.jsx)(G.Z,{space:8,direction:"horizontal"}),(0,o.jsx)(D.Z,{typography:M.Z.body3.medium,children:e.is_auto_create?"[자동 발송된 카카오 알림톡]":e.writer_employee_id&&e.writer_name?"".concat(e.writer_name," (").concat(e.writer_employee_id,")"):"삭제된 유저 (-)"})]})}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsx)(tL,{children:(0,o.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-all",overflow:"auto"},children:(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,children:e.content})})}),(0,o.jsx)(tM,{children:(0,o.jsxs)(k.Z,{justifyContent:"flex-end",children:[(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:(0,eD.u_)(e.created_at,!1)}),(0,o.jsx)(G.Z,{space:4,direction:"horizontal"}),(0,o.jsx)(Q.Z,{onClick:()=>y(e.uuid),disabled:e.is_auto_create,children:(0,o.jsx)(tc.Z,{sx:{width:20,height:20}})})]})})]},n))})}),(0,o.jsxs)(tD,{children:[(0,o.jsx)(th.Z,{placeholder:"신청별 정보를 언제든지 관리자 메모란에 기록하세요 (최대 
11,000자)",height:95,value:a.value,onChange:a.onChange}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsxs)(v.Z,{size:"small",variant:"contained",color:"default",isFullWidth:!0,borderRadius:8,onClick:x,children:["등록하기 (",a.value.length,"/1,000자 입력)"]})]}),l&&(0,o.jsx)(tp.Z,{}),g.isLoading&&(0,o.jsx)(tp.Z,{})]})}var tF=t(88477);function tB(){let e=(0,d._)(["\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n\n  width: 100%;\n  height: 80px;\n\n  padding: 32px 16px;\n\n  background-color: #003477;\n\n  z-index: ",";\n\n  display: grid;\n  grid-template-columns: 1fr auto 1fr;\n\n  @media (max-width: ",") {\n    top: ","px;\n  }\n\n  @media (max-width: ",") {\n    top: ","px;\n  }\n"]);return tB=function(){return e},e}function tT(){let e=(0,d._)(["\n  cursor: pointer;\n\n  display: flex;\n  align-items: center;\n  gap: 4px;\n"]);return tT=function(){return e},e}function tV(){let e=(0,d._)(["\n  display: flex;\n  align-items: center;\n  gap: 8px;\n"]);return tV=function(){return e},e}let tH=c.Z.header(tB(),e=>e.theme.common.zIndex.header,e=>e.theme.common.breakpoint.tablet,40,e=>e.theme.common.breakpoint.mobile,58),tW=c.Z.div(tT()),tN=c.Z.div(tV());function tO(e){let{username:n,startWork:t,createdAt:i,onClickBack:r}=e;return(0,o.jsxs)(tH,{children:[(0,o.jsxs)(tW,{onClick:r,children:[(0,o.jsx)(tF.Z,{sx:{width:20,height:20,color:L.Z.common.white}}),(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,color:L.Z.common.white,children:"돌아가기"})]}),(0,o.jsxs)(tN,{children:[(0,o.jsxs)(D.Z,{typography:M.Z.body1.bold,color:L.Z.common.white,children:[n," (",(0,eD.kB)(t),")"]}),(0,o.jsx)(w.Z,{height:16,width:1}),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,color:L.Z.common.white,children:"신청일자 ".concat((0,eD.kB)(i))})]}),(0,o.jsx)("div",{})]})}var tz=t(32607),tK=t(77588),tU=t(19905),tq=t(48795),tY=t(28968),tP=t(53819),tQ=t(27590),tG=t(18195),tX=t(47435),tJ=t(41469),t$=t(80617),t0=t(72268),t1=t(44825),t2=t(6459),t3=t(25218),t6=t(48351);function t4(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 16px;\n\n  border-radius: 8px;\n  background-color: ",";\n"]);return t4=function(){return e},e}function t8(){let e=(0,d._)([""]);return t8=function(){return e},e}function t7(){let e=(0,d._)(["\n  text-align: right;\n  list-style: outside;\n  ","\n"]);return t7=function(){return e},e}function t5(){let e=(0,d._)(["\n  padding: 6px 8px;\n\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-start;\n  gap: 8px;\n\n  background-color: ",";\n"]);return t5=function(){return e},e}function t9(){let e=(0,d._)(["\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  gap: 4px;\n\n  cursor: pointer;\n\n  &:hover {\n    opacity: 0.7;\n  }\n"]);return t9=function(){return e},e}function ie(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  padding: 10px 16px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  background-color: ",";\n"]);return ie=function(){return e},e}function it(e){let{data:n}=e,t=(0,p.useRouter)().query.uuid,i=(0,x.Zl)(g.Al),r=e=>{switch(e){case"new":return"기본 신청 (최초 신청)";case"implicit_renewal":return"묵시적 갱신 (정보 갱신)";case"renewal_contract":return"갱신 계약 (재신청)";case"internal_transfer":return"발령지 내 이동 (재신청)";case"workplace_change":return"발령지 변경 (재신청)";default:return""}},a=e=>{switch(e){case"new":return"신청일자";case"implicit_renewal":return"정보 갱신일자";default:return"재신청일자"}},l=e=>{let{content:n,label:r,hasLine:a=!0}=e;return(0,o.jsxs)(il,{onClick:()=>{i({show:!0,uuid:t,tab:"신청정보",label:r})},children:[(0,o.jsx)(D.Z,{typography:a?M.Z.body1.lined.medium:M.Z.body1.medium,children:n}),(0,o.jsx)(tU.Z,{sx:{color:L.Z.text.secondary}})]})},d=e=>{let{text:n}=e;return(0,o.jsxs)(k.Z,{gap:4,children:[(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,color:L.Z.text.disabled,children:n}),(0,o.jsx)(F.Z,{sx:{color:L.Z.error.main}})]})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t6.Z,{isEmployee:!0,defaultExpand:!0,header:{icon:(0,o.jsx)(tq.Z,{sx:{width:20,height:20}}),title:"신청 구분"},rows:[{direction:"column",title:(0,o.jsx)("div",{}),content:(0,o.jsxs)(k.Z,{flexDirection:"column",children:[(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(w.Z,{height:1,color:L.Z.gray[400]}),(0,o.jsxs)(ia,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:r(n.category)}),(0,o.jsxs)(k.Z,{gap:2,flexDirection:"column",alignItems:"flex-end",autoWidth:!0,children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:(0,eD.T0)("implicit_renewal"===n.category?n.implicit_renewal_datetime:n.created_at)}),(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:a(n.category)})]})]}),"implicit_renewal"===n.category&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.Z,{height:1}),(0,o.jsxs)(ia,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:r("new")}),(0,o.jsxs)(k.Z,{gap:2,flexDirection:"column",alignItems:"flex-end",autoWidth:!0,children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:n.implicit_renewal_datetime?(0,eD.T0)(n.created_at):"-"}),(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:a("new")})]})]})]}),(0,o.jsx)(w.Z,{height:1,color:L.Z.gray[400]}),(0,o.jsx)(G.Z,{space:24})]})}]}),(0,o.jsx)(t6.Z,{defaultExpand:!1,header:{icon:(0,o.jsx)(tY.Z,{sx:{widht:20,height:20}}),title:"신청자 동의 확인"},rows:[{direction:"column",title:(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:"KHR의 비연고지 근무사원 월세 지원규정을 확인했으며 이에 동의합니다."}),(0,o.jsx)(G.Z,{space:32})]}),content:(0,o.jsxs)(k.Z,{flexDirection:"column",children:[(0,o.jsxs)(ii,{bgColor:L.Z.primaryBlue[300],children:[(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,children:"(동의완료)"}),(0,o.jsx)(tP.Z,{sx:{width:24,height:24}})]}),(0,o.jsx)(G.Z,{space:40})]})},{direction:"column",title:(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:"개인정보 수집/처리에 동의합니다."}),(0,o.jsx)(G.Z,{space:32})]}),content:(0,o.jsxs)(k.Z,{flexDirection:"column",children:[(0,o.jsxs)(ii,{bgColor:L.Z.primaryBlue[300],children:[(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,children:"(동의완료)"}),(0,o.jsx)(tP.Z,{sx:{widht:24,height:24}})]}),(0,o.jsx)(G.Z,{space:40})]})}]}),(0,o.jsxs)(k.Z,{gap:16,alignItems:"flex-start",children:[(0,o.jsx)(t6.Z,{defaultExpand:n.is_exception,header:{icon:(0,o.jsx)(tQ.Z,{sx:{widht:20,height:20}}),title:"특이 사항"},rows:[{direction:"column",title:(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:"특이 사례 해당 여부"}),(0,o.jsx)(G.Z,{space:32})]}),content:(0,o.jsxs)(k.Z,{flexDirection:"column",children:[(0,o.jsx)(ii,{bgColor:n.exception_list.length>0?L.Z.chip.orangeLight:"",children:n.is_exception?(0,o.jsx)(tG.Z,{}):(0,o.jsx)(n1.Z,{})}),(0,o.jsx)(G.Z,{space:40})]})},{direction:"column",title:(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(D.Z,{typography:M.Z.body1.regular,color:L.Z.text.secondary,children:"상세 특이사항"}),(0,o.jsx)(G.Z,{space:32})]}),content:(0,o.jsxs)(k.Z,{flexDirection:"column",children:[(0,o.jsx)(ii,{bgColor:n.exception_list.length>0?L.Z.chip.orangeLight:"",children:n.exception_list.length>0?(0,o.jsx)(k.Z,{justifyContent:"flex-end",children:(0,o.jsx)(ir,{children:n.exception_list.map(e=>(0,o.jsx)(io,{children:e},e))})}):(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,color:L.Z.text.disabled,children:"해당하지 않음"})}),(0,o.jsx)(G.Z,{space:40})]})}]}),(0,o.jsx)(t6.Z,{defaultExpand:n.is_homeowner||n.is_support_transportation_fee,header:{icon:(0,o.jsx)(tX.Z,{sx:{widht:20,height:20}}),title:"복지 지원 검토 여부"},rows:[{direction:"column",title:(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:"본인 명의 주택 보유"}),(0,o.jsx)(G.Z,{space:32})]}),content:(0,o.jsxs)(k.Z,{flexDirection:"column",children:[(0,o.jsx)(ii,{bgColor:n.is_homeowner?L.Z.error.light:"",children:n.is_homeowner?(0,o.jsxs)(k.Z,{gap:8,flexDirection:"column",children:[(0,o.jsx)(tG.Z,{}),(0,o.jsxs)(k.Z,{gap:4,children:[(0,o.jsx)(F.Z,{sx:{width:20,height:20,color:L.Z.error.main}}),(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,children:"본인 확인 및 서류 확인 필요"})]})]}):(0,o.jsx)(n1.Z,{})}),(0,o.jsx)(G.Z,{space:40})]})},{direction:"column",title:(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:"원거리 교통비 수혜자"}),(0,o.jsx)(G.Z,{space:32})]}),content:(0,o.jsxs)(k.Z,{flexDirection:"column",children:[(0,o.jsx)(ii,{bgColor:n.is_support_transportation_fee?L.Z.error.light:"",children:n.is_support_transportation_fee?(0,o.jsxs)(k.Z,{gap:8,flexDirection:"column",children:[(0,o.jsx)(tG.Z,{}),(0,o.jsxs)(k.Z,{gap:4,flexDirection:"column",children:[(0,o.jsxs)(k.Z,{gap:4,children:[(0,o.jsx)(F.Z,{sx:{width:20,height:20,color:L.Z.error.main}}),(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,children:"수혜 희망 복지"})]}),(0,o.jsx)(D.Z,{typography:M.Z.body1.bold,children:n.expect_benef
1it})]})]}):(0,o.jsx)(n1.Z,{})}),(0,o.jsx)(G.Z,{space:40})]})}]})]}),(0,o.jsx)(t6.Z,{defaultExpand:!0,header:{icon:(0,o.jsx)(tJ.Z,{sx:{width:20,height:20}}),title:"발령 정보"},items:[{direction:"column",rows:[{customContent:(0,o.jsx)(id,{children:(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,align:"center",children:"임직원이 소속 정보를 수정한 신청인 경우 표기되는 문구입니다."})}),isCustom:n.is_edit_appointment_branch_name||n.is_edit_appointment_date},{title:"현소속",isEdited:n.is_edit_appointment_branch_name,content:(0,o.jsx)(l,{content:n.khr.current_department_name||n.user.current_department_name,label:"발령 정보"})},{title:"현소속 코드",bgColor:n.khr.current_department_code||n.user.current_department_code?"":L.Z.error.light,content:n.khr.current_department_code||n.user.current_department_code,emptyText:(0,o.jsx)(d,{text:"현소속 코드 정보 없음"})},{title:"현소속 발령일자",isEdited:n.is_edit_appointment_date,bgColor:n.khr.current_department_appointment_date||n.user.current_department_appointment_date?"":L.Z.error.light,content:(0,o.jsx)(l,{hasLine:!!n.khr.current_department_appointment_date,content:n.khr.current_department_appointment_date?(0,eD.kB)(n.khr.current_department_appointment_date||n.user.current_department_appointment_date):(0,o.jsx)(d,{text:"발령일자 정보 없음"}),label:"발령 정보"})},{title:"현소속 근무지 주소",bgColor:n.appointment_location_full_address?"":L.Z.error.light,content:(0,o.jsx)(l,{hasLine:!!n.appointment_location_full_address,content:n.appointment_location_full_address||(0,o.jsx)(d,{text:"현소속 주소 정보 없음"}),label:"발령 정보"})},{title:"발령지 내 주거형태",isKhr:!1,content:(0,o.jsx)(l,{hasLine:!!n.appointment_location_residence_type,content:n.appointment_location_residence_type?(0,o.jsxs)(o.Fragment,{children:[n.appointment_location_residence_type,(0,o.jsx)("br",{}),"기타"===n.appointment_location_residence_type&&n.appointment_location_residence_etc_reason&&"(".concat(n.appointment_location_residence_etc_reason,")")]}):(0,o.jsx)(d,{text:"주거형태 정보 없음"}),label:"발령 정보"}),emptyText:"주거형태 정보 없음"}]}]}),n.is_dispatch&&(0,o.jsx)(t6.Z,{defaultExpand:!0,header:{icon:(0,o.jsx)(t$.Z,{sx:{width:20,height:20}}),title:"파견 정보"},items:[{direction:"column",rows:[{customContent:(0,o.jsx)(id,{children:(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,align:"center",children:"임직원이 소속 정보를 수정한 신청인 경우 표기되는 문구입니다."})}),isCustom:n.is_edit_dispatch_branch_name},{title:"파견 여부",isEdited:n.is_edit_is_dispatch,content:(0,o.jsx)(k.Z,{children:n.is_dispatch?(0,o.jsx)(tG.Z,{}):(0,o.jsx)(n1.Z,{})})},{title:"파견 소속",isEdited:n.is_edit_dispatch_branch_name,content:(0,o.jsx)(l,{content:n.khr.dispatch_department_name||n.user.dispatch_department_name,label:"파견 정보"})},{title:"파견 소속 코드",bgColor:n.khr.dispatch_department_code||n.user.dispatch_department_code?"":L.Z.error.light,content:n.khr.dispatch_department_code||n.user.dispatch_department_code,emptyText:(0,o.jsx)(d,{text:"파견 소속 코드 정보 없음"})},{title:"파견 소속 근무지 주소",content:(0,o.jsx)(l,{hasLine:!!n.dispatch_full_address,content:n.dispatch_full_address||(0,o.jsx)(d,{text:"파견 소속 주소 정보 없음"}),label:"파견 정보"}),bgColor:n.dispatch_full_address?"":L.Z.error.light,emptyText:"주소 정보 없음"},{title:"파견지 내 주거형태",isKhr:!1,content:(0,o.jsx)(l,{hasLine:!!n.dispatch_residence_type,content:n.dispatch_residence_type?(0,o.jsxs)(o.Fragment,{children:[n.dispatch_residence_type,(0,o.jsx)("br",{}),"기타"===n.dispatch_residence_type&&n.dispatch_residence_etc_reason&&"(".concat(n.dispatch_residence_etc_reason,")")]}):(0,o.jsx)(d,{text:"주거형태 정보 없음"}),label:"파견 정보"}),emptyText:"주거형태 정보 없음"}]}]}),n.is_homeowner&&(0,o.jsx)(t6.Z,{defaultExpand:!0,header:{icon:(0,o.jsx)(t0.Z,{sx:{width:20,height:20}}),title:"소유 주택 주소"},items:[{direction:"column",rows:[{title:"첫번째 주택",content:(0,o.jsx)(l,{c
1ontent:n.owned_home_address[0]?"".concat(n.owned_home_address[0].state," ").concat(n.owned_home_address[0].city):"",label:"소유 주택 주소"})},{title:"두번째 주택",content:(0,o.jsx)(l,{content:n.owned_home_address[1]?"".concat(n.owned_home_address[1].state," ").concat(n.owned_home_address[1].city):"",label:"소유 주택 주소"})},{title:"세번째 주택",content:(0,o.jsx)(l,{content:n.owned_home_address[2]?"".concat(n.owned_home_address[2].state," ").concat(n.owned_home_address[2].city):"",label:"소유 주택 주소"})},{title:"네번째 주택",content:(0,o.jsx)(l,{content:n.owned_home_address[3]?"".concat(n.owned_home_address[3].state," ").concat(n.owned_home_address[3].city):"",label:"소유 주택 주소"})},{title:"다섯번째 주택",content:(0,o.jsx)(l,{content:n.owned_home_address[4]?"".concat(n.owned_home_address[4].state," ").concat(n.owned_home_address[4].city):"",label:"소유 주택 주소"})}]}]}),(0,o.jsx)(t6.Z,{defaultExpand:!0,header:{icon:(0,o.jsx)(t1.Z,{sx:{width:20,height:20}}),title:"주민등록상 주소"},items:[{label:"주민등록상 주소",direction:"column",rows:[{title:"본인 주소",isK
1hr:!1,content:(0,o.jsx)(l,{hasLine:!!n.registered_full_address,content:n.registered_full_address||(0,o.jsx)(d,{text:"본인 주소 정보 없음"}),label:"주민등록상 주소"}),bgColor:n.registered_full_address?"":L.Z.error.light},{title:"배우자 주소",isKhr:!1,content:(0,o.jsx)(l,{content:n.spouse_full_address,label:"주민등록상 주소"}),addressOption:n.spouse_address_info,unfillableReason:n.spouse_address_un_fillable_reason},{title:"어머니 주소",isKhr:!1,content:(0,o.jsx)(l,{content:n.mother_full_address,label:"주민등록상 주소"}),addressOption:n.mother_address_info,unfillableReason:n.mother_address_un_fillable_reason},{title:"아버지 주소",isKhr:!1,content:(0,o.jsx)(l,{content:n.father_full_address,label:"주민등록상 주소"}),addressOption:n.father_address_info,unfillableReason:n.father_address_un_fillable_reason}]}]}),(0,o.jsx)(t6.Z,{defaultExpand:!0,header:{icon:(0,o.jsx)(t2.Z,{sx:{width:20,height:20}}),title:"최종 학교 정보"},items:[{direction:"column",rows:[{title:"학교명",isKhr:!1,content:n.user.final_school_name?(0,o.jsx)(l,{content:n.user.final_school_name,label:"최종 학교 정보"}):""}
1,{title:" 주소",isKhr:!1,content:n.final_school_full_address}]}]}),(0,o.jsx)(t6.Z,{defaultExpand:!0,header:{icon:(0,o.jsx)(t3.Z,{sx:{width:20,height:20}}),title:"입사 전 최종 회사 정보"},items:[{direction:"column",rows:[{title:"입사 전 최종 회사 정보",isKhr:!1,content:n.final_company_name_before_join?(0,o.jsx)(l,{content:n.final_company_name_before_join,label:"입사 전 최종 회사 정보"}):""},{title:"주소",isKhr:!1,content:n.final_company_full_address_before_join?(0,o.jsx)(l,{content:n.final_company_full_address_before_join,label:"입사 전 최종 회사 주소"}):""}]}]})]})}let ii=c.Z.div(t4(),e=>e.bgColor||e.theme.colors.gray[100]),ir=c.Z.ul(t8()),io=c.Z.li(t7(),e=>e.theme.typo.body2.medium),ia=(0,c.Z)(ii)(t5(),e=>e.theme.colors.common.white),il=c.Z.div(t9()),id=c.Z.div(ie(),e=>e.theme.colors.chip.orangeLight);var is=t(85565),ic=t(59021),iu=t(718),ip=t(34769),ih=t(81808),ix=t(98452),im=t(77521);function i_(){let e=(0,d._)(["\n  width: 480px;\n  min-width: 480px;\n  max-height: 800px;\n\n  @media (max-height: 1080px) {\n    max-height: 600px;\n  }\n\n  background-color: white;\n  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);\n  border-radius: 16px;\n\n  overflow: hidden;\n  position: relative;\n"]);return i_=function(){return e},e}function ig(){let e=(0,d._)(["\n  width: 100%;\n  height: 80px;\n  padding: 16px 24px;\n\n  display: flex;\n  align-items: center;\n\n  gap: 16px;\n\n  border-bottom: 1px solid ",";\n"]);return ig=function(){return e},e}function iy(){let e=(0,d._)(["\n  width: 48px;\n  height: 48px;\n\n  padding: 8px;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  border-radius: 8px;\n  background-color: ",";\n"]);return iy=function(){return e},e}function iZ(){let e=(0,d._)(["\n  padding: 16px;\n\n  border-bottom: 1px solid ",";\n"]);return iZ=function(){return e},e}function ij(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n  max-height: 710px;\n\n  @media (max-height: 1080px) {\n    max-height: 510px;\n  }\n\n  overflow-y: scroll;\n\n  padding-bottom: 45px;\n"]);return ij=function(){return e},e}function ib(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n"]);return ib=function(){return e},e}function iv(){let e=(0,d._)(["\n  position: absolute;\n  bottom: 0;\n\n  width: 100%;\n  height: 45px;\n\n  padding: 10px 16px;\n\n  display: flex;\n  justify-content: center;\n  align-content: center;\n\n  border-top: 1px solid ",";\n  background-color: ",";\n  ","\n\n  cursor: pointer;\n"]);return iv=function(){return e},e}function iw(){let e=(0,d._)(["\n    width: 100%;\n\n    border-radius: 8px;\n    border: 1px solid ",";\n    background-color: ",";\n  "]);return iw=function(){return e},e}function ik(){let e=(0,d._)(["\n    width: 100%;\n    height: 100%;\n    padding: ",";\n  "]);return ik=function(){return e},e}function iC(){let e=(0,d._)(["\n    width: 100%;\n    height: 33px;\n    padding: 6px 8px;\n\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n\n    border-radius: 8px;\n    background-color: ",";\n    color: ",";\n\n    ","\n  "]);return iC=function(){return e},e}function iD(){let e=(0,d._)(["\n    width: 100%;\n\n    align-self: stretch;\n    text-align: center;\n\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-start;\n    align-items: center;\n    gap: 8px;\n  "]);return iD=function(){return e},e}function iS(){let e=(0,d._)(["\n    padding: 4px 8px;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    border-radius: 4px;\n    border: 1px solid ",";\n    background-color: ",";\n\n    color: ",";\n    ","\n  "]);return iS=function(){return e},e}function iR(){let e=(0,d._)(["\n    width: 100%;\n    height: 100%;\n\n    display: grid;\n    grid-template-columns: 1fr 1px 1fr;\n  "]);return iR=function(){return e},e}let iI=e=>{let{status:n}=e;switch(n){case"meets":return(0,o.jsx)(iV.StatusBox,{bgColor:L.Z.chip.greenLight,color:L.Z.chip.greenMain,children:"조건 적합"});
1case"reconsider":return(0,o.jsx)(iV.StatusBox,{bgColor:L.Z.chip.yellowLight,color:L.Z.chip.orangeMain,children:"재검토 필요"});case"not_meet":return(0,o.jsx)(iV.StatusBox,{bgColor:L.Z.error.light,color:L.Z.error.main,children:"조건 미달"});case"none":return(0,o.jsx)(iV.StatusBox,{bgColor:L.Z.error.light,color:L.Z.text.disabled,children:"계산값 없음"});default:return(0,o.jsx)(iV.StatusBox,{bgColor:L.Z.gray[200],color:L.Z.text.disabled,children:"계산값 없음"})}},iA=c.Z.div(i_()),iL=c.Z.div(ig(),e=>e.theme.colors.gray[400]),iM=c.Z.div(iy(),e=>e.theme.colors.primaryBlue[100]),iE=c.Z.div(iZ(),e=>e.theme.colors.gray[400]),iF=c.Z.div(ij()),iB=c.Z.div(ib()),iT=c.Z.div(iv(),e=>e.theme.colors.gray[400],e=>e.theme.colors.common.white,e=>e.theme.typo.body1.medium),iV={Container:c.Z.div(iw(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.common.white),BoxContainer:c.Z.div(ik(),e=>e.padding),StatusBox:c.Z.div(iC(),e=>e.bgColor,e=>e.color,e=>e.theme.typo.body2.medium),AddressContainer:c.Z.div(iD()),LabelBox:c.Z.div(iS(),e=>e.theme.colors.text.primary,e=>e.theme.colors.common.white,e=>e.theme.colors.text.primary,e=>e.theme.typo.body3.medium),DistanceContainer:c.Z.div(iR())};var iH=function(e){var n,t;let{onClose:i}
1=e,r=(0,q.Z)(""),a=(0,q.Z)(""),[l,d]=(0,s.useState)([]),[c,p]=(0,s.useState)([]),[h,x]=(0,s.useState)(),[_,g]=(0,s.useState)(),y=async e=>{let n="start"===e?r.value:a.value;try{let t=await nc.default.get("https://dapi.kakao.com/v2/local/search/address.json?query=".concat(n),{headers:{Authorization:"KakaoAK ".concat("244ed531ad66f5ff5f62d15d6ce4e67b")}});200===t.status&&t.data&&("start"===e?d(t.data.documents.map(e=>e.address?{address_name:e.address_name,x:e.x,y:e.y,address_type:"지명",common_address:{address_name:e.address.address_name,region_1depth_name:e.address.region_1depth_name,region_2depth_name:e.address.region_2depth_name,region_3depth_name:e.address.region_3depth_name,x:e.address.x,y:e.address.y}}:e.road_address?{address_name:e.address_name,x:e.x,y:e.y,address_type:"도로명",common_address:{address_name:e.road_address.address_name,region_1depth_name:e.road_address.region_1depth_name,region_2depth_name:e.road_address.region_2depth_name,region_3depth_name:e.road_address.region_3depth_name,x:e.road_address.x,y:e.road_address.y}}:void 0)):"goal"===e&&p(t.data.documents.map(e=>e.address?{address_name:e.address_name,x:e.x,y:e.y,address_type:"지명",common_address:{address_name:e.address.address_name,region_1depth_name:e.address.region_1depth_name,region_2depth_name:e.address.region_2depth_name,region_3depth_name:e.address.region_3depth_name,x:e.address.x,y:e.address.y}}:e.road_address?{address_name:e.address_name,x:e.x,y:e.y,address_type:"도로명",common_address:{address_name:e.road_address.address_name,region_1depth_name:e.road_address.region_1depth_name,region_2depth_name:e.road_address.region_2depth_name,region_3depth_name:e.road_address.region_3depth_name,x:e.road_address.x,y:e.road_address.y}}:void 0)))}catch(e){}},f=(0,s.useCallback)((e,n,t,i)=>{"start"===e?(r.setValue(n),x({addressName:n,x:t,y:i})):"goal"===e&&(a.setValue(n),g({addressName:n,x:t,y:i}))},[a,r]),Z=(0,u.a)({queryKey:["kyobo","admin","distance-calc",null==h?void 0:h.addressName,null==_?void 0:_.addressName],queryFn:()=>m.Z.kyobo.admin.get.distanceCalc({start_x:h.x,start_y:h.y,goal_x:_.x,goal_y:_.y,work_address:_.addressName}),enabled:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1}),j=(0,s.useCallback)(()=>{let e=!0;""!==r.value&&h||(r.setError("출발지 검색을 완료해주세요"),e=!1),""!==a.value&&_||(a.setError("도착지 검색을 완료해주세요"),e=!1),e&&(Z.isFetching||Z.refetch())},[Z,a,_,r,h]);return(0,s.useEffect)(()=>{""===r.value&&l.length>0&&d([])},[r.value,l]),(0,s.useEffect)(()=>{""===a.value&&c.length>0&&p([])},[a,c]),(0,o.jsxs)(C.Z,{onClickOutside:i,children:[(0,o.jsxs)(iA,{children:[(0,o.jsxs)(iL,{children:[(0,o.jsx)(iM,{children:(0,o.jsx)(tJ.Z,{sx:{width:32,height:32,color:L.Z.primaryBlue.main}})}),(0,o.jsx)(D.Z,{typography:M.Z.h6.bold,children:"다른 주소로 예비 계산해보기"})]}),(0,o.jsxs)(iF,{children:[(0,o.jsxs)(iE,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:"이 모달에서 계산한 내용은 저장되지 않습니다."}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsx)(ih.Z,{type:"start",searchInput:r,searchResults:l,onSubmitSearch:y,onClickResult:f}),(0,o.jsx)(G.Z,{space:8}),(0,o.jsx)(ih.Z,{type:"goal",searchInput:a,searchResults:c,onSubmitSearch:y,onClickResult:f}),(0,o.jsx)(G.Z,{space:24}),(0,o.jsx)(v.Z,{isFullWidth:!0,size:"medium",variant:"outlined",borderRadius:8,onClick:j,children:"계산하기"})]}),(0,o.jsxs)(iB,{children:[(0,o.jsx)(iV.BoxContainer,{padding:"24px 16px",children:(0,o.jsxs)(k.Z,{flexDirection:"column",gap:8,children:[(0,o.jsx)(iI,{status:(null==Z?void 0:null===(n=Z.data)||void 0===n?void 0:n.status)||""}),Z.data&&(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:(null===(t=Z.data)||void 0===t?void 0:t.is_goal_capital_area)?"자동차 소요거리 40km + 대중교통 소요 시간 2시간":"자동차 소요거리 30km 또는 대중교통 소요 시간 2시간"})]})}),(0,o.jsx)(w.Z,{height:3}),(0,o.jsx)(iV.BoxContainer,{padding:"16px 16px 40px 16px",children:Z.data?(0,o.jsxs)(k.Z,{gap:16,flexDirection:"column",children:[(0,o.jsx)(im.Z,{trans:"car",isAttendance:!0,distance:Number(Z.data.car_go_work_distance),time:Z.data.car_go_work_time,conditionStatus:Z.data.car_go_work_condition_status,calculated:!0}),(0,o.jsx)(im.Z,{trans:"car",isAttendance:!1,distance:Number(Z.data.car_leave_work_distance),time:Z.data.car_leave_work_time,conditionStatus:Z.data.car_leave_work_condition_status,calculated:!0}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(im.Z,{trans:"public",isAttendance:!0,distance:Number(Z.data.pub_trans_go_work_distance),time:Z.data.pub_trans_go_work_time,type:Z.data.pub_trans_go_work_type,conditionStatus:Z.data.pub_go_work_condition_status,calculated:!0}),(0,o.jsx)(im.Z,{trans:"public",isAttendance:!1,distance:Number(Z.data.pub_trans_leave_work_distance),time:Z.data.pub_trans_leave_work_time,type:Z.data.pub_trans_leave_work_type,conditionStatus:Z.data.pub_leave_work_condition_status,calculated:!0})]}):(0,o.jsxs)(k.Z,{gap:16,flexDirection:"column",children:[(0,o.jsx)(im.Z,{trans:"car",isAttendance:!0}),(0,o.jsx)(im.Z,{trans:"car",isAttendance:!1}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(im.Z,{trans:"public",isAttendance:!0}),(0,o.jsx)(im.Z,{trans:"public",isAttendance:!1})]})})]})]}),(0,o.jsx)(iT,{onClick:i,children:"닫기"})]}),Z.isFetching&&(0,o.jsx)(ix.Z,{})]})},iW=t(85413);function iN(){let e=(0,d._)(["\n  width: 480px;\n  min-width: 480px;\n  min-height: 800px;\n  max-height: 800px;\n  height: 800px;\n\n  display: flex;\n  flex-direction: column;\n\n  @media (max-height: 1080px) {\n    min-height: 600px;\n    max-height: 600px;\n    height: 600px;\n  }\n\n  background-color: white;\n  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);\n  border-radius: 16px;\n\n  overflow: hidden;\n  position: relative;\n"]);return iN=function(){return e},e}function iO(){let e=(0,d._)(["\n  width: 100%;\n\n  padding: 16px 24px;\n\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n\n  gap: 4px;\n\n  border-bottom: 1px solid ",";\n"]);return iO=function(){return e},e}function iz(){let e=(0,d._)(["\n  width: 48px;\n  height: 48px;\n\n  padding: 8px;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  border-radius: 8px;\n  background-color: ",";\n"]);return iz=function(){return e},e}function iK(){let e=(0,d._)(["\n      padding: 16px 16px 0 16px;\n    "]);return iK=function(){return e},e}function iU(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  flex: 1;\n\n  overflow-y: auto;\n\n  ","\n"]);return iU=function(){return e},e}function iq(){let e=(0,d._)(["\n  width: 100%;\n  height: 105px;\n\n  padding: 24px 8px;\n\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n\n  border-radius: 8px;\n  border: 1px solid\n    ",";\n  background-color: ",";\n"]);return iq=function(){return e},e}function iY(){let e=(0,d._)(["\n  padding: 4px 8px;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  border-radius: 4px;\n  border: 1px solid\n    ",";\n  background-color: ",";\n\n  color: ",";\n  ",";\n"]);return iY=function(){return e},e}function iP(){let e=(0,d._)(["\n  width: 100%;\n\n  display: flex;\n  align-items: center;\n\n  & > button {\n    border: none;\n\n    :hover {\n      border: none;\n    }\n    :disabled {\n      border: none;\n    }\n  }\n"]);return iP=function(){return e},e}function iQ(e){let{appointmentAddress:n,onClose:t}=e,i=(0,Z.NL)(),r=(0,p.useRouter)().query.uuid,{showSnackbar:a}
1=(0,I.D)(),[l,d]=(0,s.useState)(""),[c,u]=(0,s.useState)(!1),h=(0,A.Z)(m.Z.kyobo.admin.post.application.updateAppointmentAddress,{onSuccess:()=>{setTimeout(()=>{u(!1),t(),d(""),a({message:"변경한 발령 주소로 거리/시간 계산 완료되었습니다."}),i.refetchQueries(_.a.application.detail(r))},1e4)},onError:()=>{u(!1),a({message:"변경한 발령 주소로 거리/시간 계산 실패하였습니다.",type:"error"})}});return(0,o.jsx)(C.Z,{children:(0,o.jsxs)(iG,{children:[(0,o.jsxs)(iX,{children:[(0,o.jsxs)(k.Z,{gap:16,justifyContent:"flex-start",children:[(0,o.jsx)(iJ,{children:(0,o.jsx)(iu.Z,{sx:{width:32,height:32,color:L.Z.primaryBlue.main}})}),(0,o.jsx)(D.Z,{typography:M.Z.h6.bold,children:"발령 주소 변경하여 재계산하기"})]}),l?(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,children:"주소 수정이 필요한 경우, 이전 단계로 돌아가 수정하세요."}):(0,o.jsx)(D.Z,{typography:M.Z.body1.medium,children:"주소를 검색한 후 변경할 주소를 선택하여 다음 단계로 넘어갑니다."})]}),(0,o.jsx)(i$,{hasResult:!!l,children:l?(0,o.jsxs)(k.Z,{gap:8,flexDirection:"column",justifyContent:"flex-start",children:[(0,o.jsxs)(i0,{children:[(0,o.jsx)(i1,{children:"현재 발령 근무지"}),(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:n})]}),(0,o.jsx)(iW.Z,{sx:{color:L.Z.text.secondary}}),(0,o.jsxs)(k.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",autoHeight:!0,children:[(0,o.jsx)(D.Z,{typography:M.Z.body1.regular,children:"저장/반영하기 버튼을 클릭하면 변경된 주소로 재계산하여 반영합니다."}),(0,o.jsxs)(i0,{bgColor:L.Z.primaryBlue[100],borderColor:L.Z.primaryBlue[400],children:[(0,o.jsx)(i1,{isPrimary:!0,children:"변경할 발령 근무지"}),(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,children:l})]})]})]}):(0,o.jsx)(P.ZP,{onComplete:e=>{let{fullAddress:n}=(0,J.P)(e);d(n)},autoClose:!1,style:{height:"100%"}})}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsx)(i2,{children:l?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v.Z,{size:"medium",color:"default",variant:"outlined",isFullWidth:!0,borderRadius:0,onClick:()=>d(""),disabled:h.isLoading||c,children:"이전 단계"}),(0,o.jsx)(v.Z,{size:"medium",color:"primaryBlue",variant:"contained",isFullWidth:!0,borderRadius:0,onClick:()=>{h.mutate({application_uuid:r,address:l}),u(!0)},disabled:h.isLoading||c,children:h.isLoading||c?(0,o.jsxs)(k.Z,{gap:4,children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,color:L.Z.text.secondary,children:"반영중"}),(0,o.jsx)(S.p,{size:24})]}):"저장/반영하기"})]}):(0,o.jsx)(v.Z,{size:"medium",color:"default",variant:"outlined",isFullWidth:!0,borderRadius:0,onClick:t,children:"닫기"})})]})})}let iG=c.Z.div(iN()),iX=c.Z.div(iO(),e=>e.theme.colors.gray[400]),iJ=c.Z.div(iz(),e=>e.theme.colors.primaryBlue[100]),i$=c.Z.div(iU(),e=>{let{hasResult:n}=e;return n&&(0,E.iv)(iK())}),i0=c.Z.div(iq(),e=>{let{theme:n,borderColor:t}=e;return t||n.colors.divider},e=>{let{theme:n,bgColor:t}=e;return t||n.colors.gray[100]}),i1=c.Z.div(iY(),e=>e.isPrimary?e.theme.colors.text.primary:e.theme.colors.text.secondary,e=>e.theme.colors.common.white,e=>e.isPrimary?e.theme.colors.text.primary:e.theme.colors.text.secondary,e=>e.theme.typo.body3.medium),i2=c.Z.div(iP());var i3=t(7859),i6=t(48033);function i4(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n"]);return i4=function(){return e},e}function i8(){let e=(0,d._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n\n  padding: 4px;\n"]);return i8=function(){return e},e}function i7(){let e=(0,d._)(["\n  padding: 4px;\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  border-radius: 4px;\n  background-color: ",";\n\n  color: ",";\n"]);return i7=function(){return e},e}function i5(){let e=(0,d._)(["\n  width: 100%;\n  height: 100%;\n\n  padding: 8px;\n\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n  gap: 2px;\n\n  border-radius: 8px;\n  background-color: ",";\n"]);return i5=function(){return e},e}let i9=e=>{let{distance:n,isCalculating:t}=e;return t?(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,color:L.Z.text.primary,children:"계산중..."}):-1===n?(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,color:L.Z.error.main,children:"계산 불가"}):(0,o.jsxs)(D.Z,{typography:M.Z.body2.medium,color:L.Z.text.primary,children:[n,"km"]})},re=e=>{let{time:n,type:t,isCalculating:i,conditionStatus:r}=e;return i?(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,color:L.Z.text.primary,children:"계산중..."}
1):-1===n?"invalid_address"===r?(0,o.jsx)(D.Z,{typography:M.Z.body3.regular,children:"계산 불가 : 유효하지 않은 주소 (주소 확인 필요)"}):(0,o.jsxs)(D.Z,{typography:M.Z.body3.regular,children:["최종 학교"===t&&"계산 불가 : 사용자가 수동으로 입력한 주소","이전 회사"===t&&"계산 불가 : 이전 입사 경험 없음","최종 학교"!==t&&"이전 회사"!==t&&"계산 불가 : 검색 결과가 없음"]}):(0,o.jsxs)(D.Z,{typography:M.Z.body3.regular,color:L.Z.text.primary,children:["(",(0,eD.Os)(n||0),")"]})},rn=e=>{let{isAttendance:n,distance:t,time:i}=e,r=e=>e?"추천 경로 기준, 평일 오전 7시 기준":"추천 경로 기준, 평일 오후 6시 기준";return(0,o.jsx)(o.Fragment,{children:0===i||1>(t||0)&&(t||0)>-1?(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-end",children:[(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:r(n)}),(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,align:"right",children:"거리가 1km 이하로 가까운 경우에는 0으로 표기됩니다."})]}):(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:r(n)})})},rt=e=>{let{isAttendance:n,type:t,distance:i,time:r}=e,a=e=>e?"평일 오전 7시 기준":"평일 오후 6시 기준";return(0,o.jsx)(o.Fragment,{children:"지하철"!==t&&"버스"!==t&&"지하철+버스"!==t?(0,o.jsxs)(k.Z,{flexDirection:"column",alignItems:"flex-end",children:[(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:a(n)}),!(-1===r||-1===i)&&(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,align:"right",children:"해당없음"===t?"거리가 1km 이하로 가까운 경우에는 0으로 표기됩니다.":"검색결과가 없어 ".concat(t," 경로의 최단거리로 검색했습니다.")})]}):(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:a(n)})})};function ri(e){let{trans:n,isAttendance:t,distance:i,time:r,type:a,conditionStatus:l,isCalculating:d,publicTransportType:s}=e;return(0,o.jsxs)(rr,{children:[(0,o.jsxs)(ro,{children:[(0,o.jsxs)(D.Z,{typography:M.Z.body3.bold,children:["car"===n&&"자동차","public"===n&&"대중교통"," : ",t&&"출근",!t&&"퇴근"]}),(0,o.jsxs)(ra,{status:l,children:["car"===n&&(0,o.jsx)(i3.Z,{sx:{width:20,height:20}}),"public"===n&&(0,o.jsx)(i6.Z,{sx:{width:20,height:20}})]})]}),(0,o.jsxs)(rl,{children:[(0,o.jsx)(i9,{distance:i,isCalculating:d}),(0,o.jsx)(re,{time:r,type:a,isCalculating:d,conditionStatus:l}),"car"===n?(0,o.jsx)(rn,{isAttendance:t,distance:i,time:r}):(0,o.jsx)(rt,{isAttendance:t,type:s,distance:i,time:r})]})]})}let rr=c.Z.div(i4()),ro=c.Z.div(i8()),ra=c.Z.div(i7(),e=>"meets"===e.status?e.theme.colors.chip.greenLight:"reconsider"===e.status?e.theme.colors.chip.orangeLight:e.theme.colors.error.light,e=>"meets"===e.status?e.theme.colors.chip.greenMain:"reconsider"===e.status?e.theme.colors.chip.orangeMain:e.theme.colors.error.main),rl=c.Z.div(i5(),e=>e.theme.colors.gray[100]);function rd(){let e=(0,d._)([""]);return rd=function(){return e},e}function rs(){let e=(0,d._)(["\n    position: sticky;\n    top: 0;\n  "]);return rs=function(){return e},e}function rc(){let e=(0,d._)(["\n    width: 100%;\n\n    position: relative;\n\n    background-color: ",";\n  "]);return rc=function(){return e},e}function ru(){let e=(0,d._)(["\n    width: 100%;\n\n    display: flex;\n    overflow-x: auto;\n    &::-webkit-scrollbar {\n      display: none;\n    }\n  "]);return ru=function(){return e},e}function rp(){let e=(0,d._)(["\n        ",";\n\n        color: ",";\n        background-color: ",";\n\n        border-bottom: 2px solid ",";\n      "]);return rp=function(){return e},e}function rh(){let e=(0,d._)(["\n    cursor: pointer;\n\n    width: 100%;\n    min-width: 100px;\n    max-width: 100px;\n    height: 40px;\n\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n\n    ",";\n    color: ",";\n\n    background-color: ",";\n\n    border-bottom: 2px solid transparent;\n\n    ","\n  "]);return rh=function(){return e},e}function rx(){let e=(0,d._)(["\n    display: flex;\n    justify-content: flex-end;\n    gap: 8px;\n    padding: 8px 12px;\n\n    border-top: 1px solid ",";\n    border-bottom: 1px solid ",";\n    background-color: ",";\n  "]);return rx=function(){return e},e}function rm(){let e=(0,d._)(["\n    position: absolute;\n    top: 0;\n    right: 0;\n\n    width: 73px;\n    height: 100%;\n    background: linear-gradient(\n      90deg,\n      rgba(255, 255, 255, 0) -38.36%,\n      #fff 100%\n    );\n\n    display: flex;\n    justify-content: flex-end;\n    align-items: center;\n  "]);return rm=function(){return e},e}function r_(){let e=(0,d._)(["\n    cursor: pointer;\n  "]);return r_=function(){return e},e}function rg(){let e=(0,d._)(["\n    width: 100%;\n    padding: 24px 16px;\n\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: 24px;\n  "]);return rg=function(){return e},e}function ry(){let e=(0,d._)(["\n    @media (max-width: 1280px) {\n      width: 632px;\n    }\n\n    @media (min-width: 1280px) and (max-width: 1920px) {\n      width: 100%;\n      min-width: 632px;\n      max-width: 900px;\n    }\n\n    @media (min-width: 1920px) {\n      width: 900px;\n    }\n\n    padding: 16px;\n\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: 12px;\n\n    border-radius: 8px;\n    border: 1px solid ",";\n    background-color: ",";\n  "]);return ry=function(){return e},e}function rf(){let e=(0,d._)(["\n    width: fit-content;\n    padding: 4px 8px;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    border-radius: 4px;\n    border: 1px solid ",";\n    background-color: ",";\n\n    ","\n  "]);return rf=function(){return e},e}function rZ(){let e=(0,d._)(["\n    flex: 1;\n    min-width: 0;\n    display: flex;\n    align-items: center;\n    gap: 4px;\n    overflow: hidden;\n\n    ",";\n    color: ",";\n  "]);return rZ=function(){return e},e}function rj(){let e=(0,d._)(["\n    @media (max-width: 1280px) {\n      width: 632px;\n    }\n\n    @media (min-width: 1280px) and (max-width: 1920px) {\n      width: 100%;\n      min-width: 632px;\n      max-width: 900px;\n    }\n\n    @media (min-width: 1920px) {\n      width: 900px;\n    }\n\n    overflow: hidden;\n\n    border-radius: 8px;\n    border: 1px solid ",";\n  "]);return rj=function(){return e},e}function rb(){let e=(0,d._)(["\n    padding: 16px;\n    background-color: ",";\n\n    ","\n  "]);return rb=function(){return e},e}function rv(){let e=(0,d._)(["\n    width: 100%;\n    height: 100%;\n\n    display: flex;\n    flex-direction: column;\n\n    background-color: ",";\n  "]);return rv=function(){return e},e}function rw(){let e=(0,d._)(["\n    width: 100%;\n    height: 100%;\n    padding: ",";\n  "]);return rw=function(){return e},e}function rk(){let e=(0,d._)(["\n    width: 100%;\n    height: 33px;\n    padding: 6px 8px;\n\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n\n    border-radius: 8px;\n    background-color: ",";\n    color: ",";\n\n    ","\n  "]);return rk=function(){return e},e}function rC(){let e=(0,d._)(["\n    display: flex;\n    align-items: center;\n    padding: 8px;\n\n    border-radius: 4px;\n    background-color: ",";\n\n    ","\n  "]);return rC=function(){return e},e}function rD(){let e=(0,d._)(["\n    display: flex;\n    align-items: center;\n\n    padding: 16px 8px;\n\n    border-radius: 8px;\n    border: 1px solid ",";\n    background-color: ",";\n  "]);return rD=function(){return e},e}function rS(){let e=(0,d._)(["\n    width: 100%;\n\n    align-self: stretch;\n    text-align: center;\n\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-start;\n    align-items: center;\n    gap: 8px;\n  "]);return rS=function(){return e},e}function rR(){let e=(0,d._)(["\n    padding: 4px 8px;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    border-radius: 4px;\n    border: 1px solid ",";\n    background-color: ",";\n\n    color: ",";\n    ","\n  "]);return rR=function(){return e},e}function rI(){let e=(0,d._)(["\n    width: 100%;\n    height: 100%;\n\n    display: grid;\n    grid-template-columns: 1fr 1px 1fr;\n  "]);return rI=function(){return e},e}let rA=c.Z.div(rd()),rL={StickyContainer:c.Z.div(rs()),TabContainer:c.Z.div(rc(),e=>e.theme.colors.gray[100]),Tab:c.Z.div(ru()),TabItem:c.Z.div(rh(),e=>e.theme.typo.body2.medium,e=>e.theme.colors.text.secondary,e=>e.theme.colors.gray[100],e=>e.actived&&(0,E.iv)(rp(),e.theme.typo.body2.bold,e.theme.colors.text.primary,e.theme.colors.common.white,e.theme.colors.text.primary)),ButtonContainer:c.Z.div(rx(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.gray.stroke,e=>e.theme.colors.common.white),Gradient:c.Z.div(rm()),Icon:c.Z.div(r_())},rM={Container:c.Z.div(rg()),NoticeBox:c.Z.div(ry(),e=>e.theme.colors.chip.orangeMain,e=>e.theme.colors.chip.orangeLight)},rE={Title:c.Z.div(rf(),e=>e.theme.colors.text.primary,e=>e.theme.colors.common.white,e=>e.theme.typo.body3.medium),Content:c.Z.div(rZ(),e=>e.theme.typo.body3.medium,e=>e.theme.colors.text.secondary)},rF={Container:c.Z.div(rj(),e=>e.theme.colors.gray.stroke),HeaderContainer:c.Z.div(rb(),e=>e.theme.colors.gray[300],e=>e.theme.typo.body1.bold),ContentContainer:c.Z.div(rv(),e=>e.theme.colors.common.white),BoxContainer:c.Z.div(rw(),e=>e.padding),StatusBox:c.Z.div(rk(),e=>e.bgColor,e=>e.color,e=>e.theme.typo.body2.medium),HeaderTitle:c.Z.div(rC(),e=>e.theme.colors.chip.purpleLight,e=>e.theme.typo.body1.bold),Header:c.Z.div(rD(),e=>e.theme.colors.divider,e=>e.theme.colors.primaryBlue[100]),AddressContainer:c.Z.div(rS()),LabelBox:c.Z.div(rR(),e=>e.theme.colors.text.primary,e=>e.theme.colors.common.white,e=>e.theme.colors.text.primary,e=>e.theme.typo.body3.medium),DistanceContainer:c.Z.div(rI())},rB=e=>{let{status:n}=e;switch(n){case"meets":return(0,o.jsx)(rF.StatusBox,{bgColor:L.Z.chip.greenLight,color:L.Z.chip.greenMain,children:"조건 적합"});
1case"reconsider":return(0,o.jsx)(rF.StatusBox,{bgColor:L.Z.chip.yellowLight,color:L.Z.chip.orangeMain,children:"재검토 필요"});case"not_meet":return(0,o.jsx)(rF.StatusBox,{bgColor:L.Z.error.light,color:L.Z.error.main,children:"조건 미달"});case"none":case"calculating":return(0,o.jsx)(rF.StatusBox,{bgColor:L.Z.error.light,color:L.Z.text.disabled,children:"계산값 없음"})}},rT=e=>{let{title:n,content:t}=e;return(0,o.jsxs)(k.Z,{gap:8,justifyContent:"flex-start",style:{width:"100%"},children:[(0,o.jsx)(rE.Title,{children:n}),(0,o.jsx)(rE.Content,{children:t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body2.bold,color:L.Z.text.primary,isEllipsis:!0,children:t}),(0,o.jsx)("span",{style:{flexShrink:0},children:"으로 수정"})]}):(0,o.jsx)(D.Z,{typography:M.Z.body2.medium,color:L.Z.text.disabled,children:"변동 없음"})})]})};(i=r||(r={}))["본인주소"]="본인 주소",i["어머니주소"]="어머니 주소",i["아버지주소"]="아버지 주소",i["배우자주소"]="배우자 주소",i["최종학교"]="최종 학교",i["이전회사"]="이전 회사",i["소유주택1"]="소유주택1",i["소유주택2"]="소유주택2",i["소유주택3"]="소유주택3",i["소유주택4"]="소유주택4",i["소유주택5"]="소유주택5";let rV=["본인 주소","어머니 주소","아버지 주소","배우자 주소","최종 학교","이전 회사","소유주택1","소유주택2","소유주택3","소유주택4","소유주택5"];function rH(e){var n;let{data:t,isAppointmentCapitalArea:i,isAfter202307:r}=e,[a,l]=(0,s.useState)("본인 주소"),[d,c]=(0,s.useState)(!1),[u,p]=(0,s.useState)(!1),h=(0,s.useRef)(null),x=t.calculate_distance,m=t.is_edit_appointment_branch_name||t.is_edit_appointment_branch_address||t.is_edit_appointment_date,{showModal:_,openModal:g,closeModal:y}=(0,R.d)(),f=null===(n=x.find(e=>!!e.appointment_location_address))||void 0===n?void 0:n.appointment_location_address,Z=e=>{let n=document.getElementById(e);n&&n.scrollIntoView({behavior:"smooth",block:"center"}),l(e)},j=(0,s.useMemo)(()=>rV.filter(e=>{let n=x.find(n=>n.direction_detail_type===e);if(!n)return!1;if(r){if("본인 주소"===e||"최종 학교"===e||"이전 회사"===e)return!0}else if("본인 주소"===e)return!0;return n.check_address&&n.calculate_distance_detail&&n.calculate_distance_detail.length>0}),[x,r]),b=(0,s.useMemo)(()=>x.filter(e=>j.includes(e.direction_detail_type)).sort((e,n)=>j.indexOf(e.direction_detail_type)-j.indexOf(n.direction_detail_type)),[x,j]);return(0,s.useEffect)(()=>{let e=()=>{h.current&&c(h.current.scrollWidth>h.current.clientWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,o.jsxs)(rA,{children:[(0,o.jsxs)(rL.StickyContainer,{children:[(0,o.jsxs)(rL.TabContainer,{children:[(0,o.jsx)(rL.Tab,{ref:h,children:j.map(e=>(0,o.jsx)(rL.TabItem,{actived:e===a,onClick:()=>Z(e),children:e},e))}),d&&(0,o.jsx)(rL.Gradient,{children:(0,o.jsx)(rL.Icon,{onClick:()=>{h.current&&h.current.scrollBy({left:100,behavior:"smooth"})},children:(0,o.jsx)(ic.Z,{sx:{width:24,height:24,color:L.Z.text.secondary}})})})]}),(0,o.jsxs)(rL.ButtonContainer,{children:[(0,o.jsx)(v.Z,{size:"small",variant:"outlined",borderRadius:8,onClick:g,children:(0,o.jsxs)(k.Z,{gap:4,children:[(0,o.jsx)(iu.Z,{sx:{width:16,height:16}}),"발령 주소 변경하여 재계산하기"]})}),(0,o.jsx)(v.Z,{size:"small",variant:"outlined",color:"default",borderRadius:8,onClick:()=>{p(!0)},children:(0,o.jsxs)(k.Z,{gap:4,children:[(0,o.jsx)(tJ.Z,{sx:{width:16,height:16}}),"다른 주소로 예비 계산해보기"]})})]})]}),(0,o.jsxs)(rM.Container,{children:[t.is_edit_current_department&&(0,o.jsxs)(rM.NoticeBox,{children:[(0,o.jsx)(D.Z,{typography:M.Z.body3.medium,children:"임직원이 소속 정보를 수정하여 신청한 건입니다. 아래 정보로 수정되어 거리 계산되었습니다."}),(0,o.jsxs)(k.Z,{gap:8,flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(rT,{title:m?"현소속":"파견 소속",content:m?t.is_edit_appointment_branch_name?t.appointment_department_name:"":t.is_edit_dispatch_branch_name?t.dis
1patch_department_name:""}),(0,o.jsx)(rT,{title:m?"현소속 근무지 주소":"파견 소속 근무지 주소",content:m?t.is_edit_appointment_branch_address?t.appointment_location_full_address:"":t.is_edit_dispatch_branch_address?t.dispatch_full_address:""}),m&&(0,o.jsx)(rT,{title:"발령일자",content:t.is_edit_appointment_date?t.appointment_date:""})]})]}),b.map(e=>{var n,t,r,a,l,d,s,c,u,p,h,x,m,_,g,y,f,Z,j,b,v,C,S,R,I,A,E,F;return(0,o.jsxs)(rF.Container,{id:e.direction_detail_type,children:[(0,o.jsx)(rF.HeaderContainer,{children:null==e?void 0:e.direction_detail_type}),(0,o.jsxs)(rF.ContentContainer,{children:[(0,o.jsx)(rF.BoxContainer,{padding:"24px 16px",children:(0,o.jsxs)(k.Z,{flexDirection:"column",gap:8,children:[(0,o.jsx)(rB,{status:e.status||"none"}),(0,o.jsx)(D.Z,{typography:M.Z.small.regular,color:L.Z.text.secondary,children:i?"자동차 소요거리 40km + 대중교통 소요 시간 2시간":"자동차 소요거리 30km 또는 대중교통 소요 시간 2시간"})]})}),(0,o.jsx)(w.Z,{height:3}),(0,o.jsx)(rF.BoxContainer,{padding:"16px 8px",children:(0,o.jsxs)(k.Z,{children:[(0,o.jsxs)(rF.AddressContainer,{children:[(0,o.jsx)(rF.LabelBox,{children:null==e?void 0:e.direction_detail_type}),(null==e?void 0:e.check_address)?(0,o.jsx)(D.Z,{typography:M.Z.body2.bold,children:e.check_address}):(0,o.jsx)(D.Z,{typography:M.Z.body2.bold,color:L.Z.text.disabled,children:"주소 없음"})]}),(0,o.jsx)(ip.Z,{sx:{width:24,height:24,color:L.Z.text.secondary}}),(0,o.jsxs)(rF.AddressContainer,{children:[(0,o.jsx)(rF.LabelBox,{children:"발령 근무지 : ".concat((null==e?void 0:e.appointment_location_address)?i?"수도권":"비수도권":"주소 없음")}),(null==e?void 0:e.appointment_location_address)?(0,o.jsx)(D.Z,{typography:M.Z.body2.bold,children:e.appointment_location_address}):(0,o.jsx)(D.Z,{typography:M.Z.body2.bold,color:L.Z.error.main,children:"입력 예정 정보입니다"})]})]})}),(0,o.jsx)(w.Z,{height:1}),(0,o.jsxs)(rF.DistanceContainer,{children:[(0,o.jsx)(rF.BoxContainer,{padding:"16px 16px 40px 16px",children:(0,o.jsxs)(k.Z,{flexDirection:"column",gap:16,children:[(0,o.jsx)(ri,{type:e.direction_detail_type,trans:"car",isAttendance:!0,isCalculating:"calculating"===e.status,distance:Number(null==e?void 0:null===(t=e.calculate_distance_detail)||void 0===t?void 0:null===(n=t.find(e=>"자동차"===e.transport_type&&"출근"===e.time_type))||void 0===n?void 0:n.distance),time:null==e?void 0:null===(a=e.calculate_distance_detail)||void 0===a?void 0:null===(r=a.find(e=>"자동차"===e.transport_type&&"출근"===e.time_type))||void 0===r?void 0:r.time,conditionStatus:null==e?void 0:null===(d=e.calculate_distance_detail)||void 0===d?void 0:null===(l=d.find(e=>"자동차"===e.transport_type&&"출근"===e.time_type))||void 0===l?void 0:l.condition_status}),(0,o.jsx)(ri,{type:e.direction_detail_type,trans:"car",isAttendance:!1,isCalculating:"calculating"===e.status,distance:Number(null==e?void 0:null===(c=e.calculate_distance_detail)||void 0===c?void 0:null===(s=c.find(e=>"자동차"===e.transport_type&&"퇴근"===e.time_type))||void 0===s?void 0:s.distance),time:null==e?void 0:null===(p=e.calculate_distance_detail)||void 0===p?void 0:null===(u=p.find(e=>"자동차"===e.transport_type&&"퇴근"===e.time_type))||void 0===u?void 0:u.time,conditionStatus:null==e?void 0:null===(x=e.calculate_distance_detail)||void 0===x?void 0:null===(h=x.find(e=>"자동차"===e.transport_type&&"퇴근"===e.time_type))||void 0===h?void 0:h.condition_status})]})}),(0,o.jsx)(w.Z,{width:1,color:L.Z.gray[400]}),(0,o.jsx)(rF.BoxContainer,{padding:"16px 16px 40px 16px",children:(0,o.jsxs)(k.Z,{flexDirection:"column",gap:16,children:[(0,o.jsx)(ri,{type:e.direction_detail_type,trans:"public",isAttendance:!0,isCalculating:"calculating"===e.status,distance:Number(null==e?void 0:null===(_=e.calculate_distance_detail)||void 0===_?void 0:null===(m=_.find(e=>"대중교통"===e.transport_type&&"출근"===e.time_type))||void 0===m?void 0:m.distance),time:null==e?void 0:null===(y=e.calculate_distance_detail)||void 0===y?void 0:null===(g=y.find(e=>"대중교통"===e.transport_type&&"출근"===e.time_type))||void 0===g?void 0:g.time,conditionStatus:null==e?void 0:null===(Z=e.calculate_distance_detail)||void 0===Z?void 0:null===(f=Z.find(e=>"대중교통"===e.transport_type&&"출근"===e.time_type))||void 0===f?void 0:f.condition_status,publicTransportType:null==e?void 0:null===(b=e.calculate_distance_detail)||void 0===b?void 0:null===(j=b.find(e=>"대중교통"===e.transport_type&&"출근"===e.time_type))||void 0===j?void 0:j.public_transport_type}),(0,o.jsx)(ri,{type:e.direction_detail_type,trans:"public",isAttendance:!1,isCalculating:"calculating"===e.status,distance:Number(null==e?void 0:null===(C=e.calculate_distance_detail)||void 0===C?void 0:null===(v=C.find(e=>"대중교통"===e.transport_type&&"퇴근"===e.time_type))||void 0===v?void 0:v.distance),time:null==e?void 0:null===(R=e.calculate_distance_detail)||void 0===R?void 0:null===(S=R.find(e=>"대중교통"===e.transport_type&&"퇴근"===e.time_type))||void 0===S?void 0:S.time,conditionStatus:null==e?void 0:null===(A=e.calculate_distance_detail)||void 0===A?void 0:null===(I=A.find(e=>"대중교통"===e.transport_type&&"퇴근"===e.time_type))||void 0===I?void 0:I.condition_status,publicTransportType:null==e?void 0:null===(F=e.calculate_distance_detail)||void 0===F?void 0:null===(E=F.find(e=>"대중교통"===e.transport_type&&"퇴근"===e.time_type))||void 0===E?void 0:E.public_transport_type})]})})]})]})]},e.direction_detail_type)})]}),u&&(0,o.jsx)(iH,{onClose:()=>{p(!1)}}),_&&(0,o.jsx)(iQ,{appointmentAddress:f||"",onClose:y})]})}var rW=t(64284),rN=t(47278);function rO(){let e=(0,d._)(["\n  width: 100%;\n  height: calc(100vh - 80px);\n\n  margin: 0px auto;\n  padding-left: 280px;\n  padding-right: 320px;\n\n  overflow: hidden;\n"]);return rO=function(){return e},e}function rz(){let e=(0,d._)(["\n  width: 100%;\n  height: ",";\n  max-height: calc(100vh - 140px);\n\n  padding: ",";\n  margin: 0px auto;\n\n  display: flex;\n  justify-content: center;\n\n  overflow-y: auto;\n"]);return rz=function(){return e},e}function rK(){let e=(0,d._)(["\n      @media (max-width: 1280px) {\n        width: 100%;\n      }\n\n      @media (min-width: 1280px) and (max-width: 1920px) {\n        width: 100%;\n        min-width: 632px;\n        max-width: 100%;\n      }\n\n      @media (min-width: 1920px) {\n        width: 100%;\n      }\n    "]);return rK=function(){return e},e}function rU(){let e=(0,d._)(["\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n\n  @media (max-width: 1280px) {\n    width: 632px;\n  }\n\n  @media (min-width: 1280px) and (max-width: 1920px) {\n    width: 100%;\n    min-width: 632px;\n    max-width: 900px;\n  }\n\n  @media (min-width: 1920px) {\n    width: 900px;\n  }\n\n  ","\n"]);return rU=function(){return e},e}function rq(){let e=(0,d._)(["\n  width: 100%;\n  height: calc(100vh - 140px);\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return rq=function(){return e},e}function rY(){let e=(0,d._)(["\n  height: 20px;\n\n  padding: 0 7px;\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  border-radius: 20px;\n  background-color: ",";\n"]);return rY=function(){return e},e}let rP=c.Z.div(rO()),rQ=c.Z.div(rz(),e=>e.height||"auto",e=>e.padding?e.padding:e.disableMaxWidth?"32px 0px":"32px 24px"),rG=c.Z.section(rU(),e=>
1e.disableMaxWidth&&(0,E.iv)(rK())),rX=c.Z.div(rq()),rJ=c.Z.div(rY(),e=>e.theme.colors.gray[200]);function r$(e){let{data:n,documentData:t,applicationListData:i}=e,r=(0,p.useRouter)(),{showSnackbar:a}=(0,I.D)(),l=r.query.tab||"신청정보",[d,c]=(0,s.useState)(l),[u,h]=(0,s.useState)({신청정보:0,"거리/시간계산":0,제출서류:0,지급내역:0,신청내역:0}),[x,_]=(0,s.useState)(!1),g={신청정보:(0,s.useRef)(null),"거리/시간계산":(0,s.useRef)(null),제출서류:(0,s.useRef)(null),지급내역:(0,s.useRef)(null),신청내역:(0,s.useRef)(null)},y=(0,s.useCallback)(e=>{c(e)},[]),f=()=>{h(e=>{var n;return{...e,[d]:(null===(n=g[d].current)||void 0===n?void 0:n.scrollTop)||0}})},Z=(0,A.Z)(m.Z.kyobo.admin.get.application.downloadDocumentZip,{onError:()=>{a({message:"서류 일괄 다운로드에 실패하였습니다",type:"error"})}}),v=async()=>{_(!0);try{let{url:e}=await Z.mutateAsync({uuid:n.uuid});if(!e)throw Error("파일 다운로드 중 오류가 발생했습니다");let t=await fetch(e),i=await t.blob(),r=window.URL.createObjectURL(i),o=document.createElement("a");o.href=r,o.download="".concat(n.user.email.split("@")[0],"_").concat(n.user.name,"_월세지원_제출서류_").concat(V()().format("YYYYMMDD"),".zip"),document.body.appendChild(o),o.click(),o.remove(),window.URL.revokeObjectURL(r),a({message:"".concat(n.user.name,"(").concat(n.user.email.split("@")[0],")님의 월세지원 제출서류_").concat(V()().format("YYYYMMDD")," 파일을 전체 다운로드하였습니다.")})}catch(e){a({message:"파일 다운로드 중 오류가 발생했습니다",type:"error"})}finally{_(!1)}};return(0,s.useEffect)(()=>{let e=g[d].current;return e&&(e.scrollTo({top:u[d]}),e.addEventListener("scroll",f)),()=>{e&&e.removeEventListener("scroll",f)}},[d]),(0,o.jsxs)(rP,{children:[(0,o.jsxs)(b.Z,{children:[(0,o.jsx)(j.Z,{title:"1차 신청 정보",actived:"신청정보"===d,onClick:()=>y("신청정보"),height:62}),(0,o.jsx)(j.Z,{title:"거리/시간 계산",actived:"거리/시간계산"===d,onClick:()=>y("거리/시간계산"),disabled:n.is_direct_transfer,height:62}),(0,o.jsx)(j.Z,{title:"2차 제출 서류",actived:"제출서류"===d,onClick:()=>y("제출서류"),height:62}),(0,o.jsx)(j.Z,{title:(0,o.jsxs)(k.Z,{gap:4,children:["지급 내역",(0,o.jsx)(rJ,{children:n.repayments_count})]}),actived:"지급내역"===d,onClick:()=>y("지급내역"),height:62}),(0,o.jsx)(j.Z,{title:(0,o.jsxs)(k.Z,{gap:4,children:["신청 내역",(0,o.jsx)(rJ,{children:null==i?void 0:i.total_count})]}),actived:"신청내역"===d,onClick:()=>y("신청내역"),height:62})]}),(0,o.jsxs)(rQ,{ref:g[d],disableMaxWidth:"지급내역"===d||"신청내역"===d||"거리/시간계산"===d,padding:"거리/시간계산"===d||"제출서류"===d?"0px":void 0,height:"신청내역"===d||"지급내역"===d?"100%":void 0,children:["신청정보"===d&&(0,o.jsx)(rG,{children:(0,o.jsx)(it,{data:n})}),"거리/시간계산"===d&&(0,o.jsx)(rG,{disableMaxWidth:!0,children:(0,o.jsx)(rH,{data:n,isAfter202307:V()(n.user.start_work).isAfter("2023-07-01"),isAppointmentCapitalArea:n.is_appointment_capital_area})}),"제출서류"===d&&(0,o.jsx)(rG,{disableMaxWidth:!0,children:t&&n.is_direct_transfer?(0,o.jsx)(rN.Z,{data:t,isAdmin:!0,isDirectTransfer:n.is_direct_transfer,houseRentalAgreementData:n.house_rental_agreement,isDownloading:x,onDownloadDocumentZip:n.is_file_exist?v:void 0}):t&&"implicit_renewal"===n.category?(0,o.jsx)(rN.Z,{data:t,isAdmin:!0,isDirectTransfer:n.is_direct_transfer,houseRentalAgreementData:n.house_rental_agreement,isDownloading:x,onDownloadDocumentZip:n.is_file_exist?v:void 0}):t&&(null==t?void 0:t.documents.length)>0?(0,o.jsx)(rN.Z,{data:t,isAdmin:!0,houseRentalAgreementData:n.house_rental_agreement,isDownloading:x,onDownloadDocumentZip:n.is_file_exist?v:void 0}):(0,o.jsx)(rX,{children:(0,o.jsx)(tK.Z,{text:"제출 서류가 없습니다"})})}),"지급내역"===d&&(0,o.jsx)(rG,{disableMaxWidth:!0,children:n.repayments.length>0?(0,o.jsx)(rW.Z,{data:n.repayments}):(0,o.jsx)(rX,{children:(0,o.jsx)(tK.Z,{text:"지급 내역이 없습니다",icon:(0,o.jsx)(tz.Z,{sx:{width:60,height:60,color:L.Z.text.disabled}})})})}),"신청내역"===d&&(0,o.jsx)(rG,{disableMaxWidth:!0,children:i&&(null==i?void 0:i.application_list.length)>0?(0,o.jsx)(is.Z,{data:i.application_list}):(0,o.jsx)(rX,{children:(0,o.jsx)(tK.Z,{text:"신청건이 없습니다",icon:(0,o.jsx)(tz.Z,{sx:{width:60,height:60,color:L.Z.text.disabled}})})})})]})]})}var r0=t(86623);function r1(){let e=(0,d._)(["\n  position: fixed;\n\n  top: 80px;\n  left: 0;\n  bottom: 0;\n\n  width: 280px;\n\n  background-color: white;\n\n  border-right: 1px solid ",";\n\n  @media (max-width: ",") {\n    top: ","px;\n  }\n\n  @media (max-width: ",") {\n    top: ","px;\n  }\n"]);return r1=function(){return e},e}function r2(){let e=(0,d._)(["\n  width: 100%;\n  height: calc(100dvh - 80px);
1\n  overflow-y: scroll;\n\n  &::-webkit-scrollbar {\n    display: none;\n  }\n\n  scrollbar-width: thin;\n  scrollbar-color: #d9d9d9 transparent;\n\n  @media (max-width: ",") {\n    height: calc(100dvh - ","px);\n  }\n\n  @media (max-width: ",") {\n    height: calc(100dvh - ","px);\n  }\n"]);return r2=function(){return e},e}let r3=c.Z.div(r1(),e=>e.theme.colors.gray[400],e=>e.theme.common.breakpoint.tablet,120,e=>e.theme.common.breakpoint.mobile,138),r6=c.Z.div(r2(),e=>e.theme.common.breakpoint.tablet,120,e=>e.theme.common.breakpoint.mobile,138);function r4(e){let{data:n}=e;return(0,o.jsx)(r3,{children:(0,o.jsx)(r6,{children:(0,o.jsx)(r0.Z,{data:n,containerStyle:{borderRadius:0,border:"none",height:"100%"},paddingBottom:40,isAdmin:!0})})})}function r8(){let e=(0,d._)(["\n  width: 100vw;\n  min-height: 100vh;\n  background-color: ",";\n"]);return r8=function(){return e},e}function r7(){let e=(0,d._)(["\n  padding-top: 80px;\n\n  @media (max-width: ",") {\n    padding-top: ","px;\n  }\n\n  @media (max-width: ",") {\n    padding-top: ","px;\n  }\n"]);return r7=function(){return e},e}let r5=c.Z.div(r8(),e=>e.theme.colors.gray[100]),r9=c.Z.main(r7(),e=>e.theme.common.breakpoint.tablet,120,e=>e.theme.common.breakpoint.mobile,138);function oe(){var e,n;let t=(0,p.useRouter)(),i=t.query.uuid,r=t.query.type||"application",{isLoggedIn:a}=(0,f.ZP)(),d=(0,x.sJ)(g.Al),[c,Z]=(0,x.FV)(g.gs),j=e=>{var n,t;return null!==(t=null==e?void 0:null===(n=e.calculate_distance)||void 0===n?void 0:n.some(e=>"calculating"===e.status))&&void 0!==t&&t},b=(0,u.a)({queryKey:_.a.application.detail(i),queryFn:()=>m.Z.kyobo.admin.get.application.detail(i),enabled:!!i&&a&&"application"===r,refetchInterval:e=>!!j(e)&&5e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!0}),v=(0,u.a)({queryKey:_.a.document.detailList(i),queryFn:()=>m.Z.kyobo.admin.get.document.detailList({uuid:i}),enabled:!!i&&a&&"application"===r,refetchOnWindowFocus:!1}),w=(0,u.a)({queryKey:_.a.application.listSection(i),queryFn:()=>m.Z.kyobo.admin.get.application.listSection(i),enabled:!!i&&a&&"application"===r,refetchOnWindowFocus:!1}),k=(0,s.useCallback)(()=>{t.back(),Z(!1)},[t]);return"application"===r&&(b.isLoading||v.isLoading||w.isLoading)?(0,o.jsx)(l.Z,{text:"신청 내역을 불러오는 중입니다"}):b.isError?(0,o.jsx)(y.Z,{onClickRetry:()=>{"application"===r&&(b.refetch(),v.refetch(),w.refetch())}}):(0,o.jsxs)(r5,{children:[(0,o.jsx)(h.PB,{title:"신청상세 (".concat(null===(e=b.data)||void 0===e?void 0:e.user.name," (").concat(null===(n=b.data)||void 0===n?void 0:n.user.email.split("@")[0],")) | 워크드")}),b.data&&(0,o.jsx)(tO,{username:b.data.user.name,startWork:b.data.user.start_work,createdAt:b.data.created_at,onClickBack:k}),b.data&&(0,o.jsxs)(r9,{children:[(0,o.jsx)(r4,{data:b.data}),(0,o.jsx)(r$,{data:b.data,documentData:v.data||null,applicationListData:w.data||null}),(0,o.jsx)(tE,{uuid:i,type:"certification",memos:b.data.memo})]}),(null==d?void 0:d.show)&&(0,o.jsx)(nG,{uuid:i,detailData:b.data,documentData:v.data}),c&&(0,o.jsx)(tt,{uuid:i,onClose:()=>Z(!1)})]})}function on(){return(0,o.jsx)(a.R,{suspenseFallback:(0,o.jsx)(l.Z,{text:"신청 내역을 불러오는 중입니다"}),children:(0,o.jsx)(oe,{})})}},4225:function(e,n,t){"use strict";var i=t(82729),r=t(85893),o=t(70917),a=t(16829);function l(){let e=(0,i._)(["\n      background-image: url(",");\n      background-position: top;\n      background-repeat: no-repeat;\n    "]);return l=function(){return e},e}function d(){let e=(0,i._)(["\n  width: 100dvw;\n  min-height: 100dvh;\n  height: 100%;\n\n  display: flex;\n  flex-direction: column;\n\n  ","\n"]);return d=function(){return e},e}function s(){let e=(0,i._)(["\n  flex: 1;\n  width: 100%;\n  max-width: 600px;\n\n  margin: 0px auto;\n  padding: ",";\n\n  display: flex;\n  flex-direction: column;\n  align-items: ",";\n"]);return s=function(){return e},e}let c=a.Z.div(d(),e=>e.backgroundImage&&(0,o.iv)(l(),e.backgroundImage)),u=a.Z.main(s(),e=>e.padding,e=>e.alignItems);n.Z=e=>{let{backgroundImage:n,children:t,alignItems:i="flex-start",padding:o="0px 16px"}=e;return(0,r.jsx)(c,{backgroundImage:n,children:(0,r.jsx)(u,{alignItems:i,padding:o,children:t})})}},94378:function(e,n,t){"use strict";t.d(n,{AG:function(){return s},KK:function(){return d},S9:function(){return c},Sv:function(){return a},UH:function(){return u},hl:function(){return o},iG:function(){return l}});var i=t(87066),r=t(59475);let o=(e,n)=>new File([e],n),a=async(e,n)=>{try{if(!e||0===e.size)throw Error("다운로드할 파일이 비어있습니다.");if(n.endsWith(".xlsx")&&!e.type.includes("spreadsheetml.sheet"))throw Error("올바르지 않은 엑셀 파일 형식입니다.");let t=window.URL.createObjectURL(e),i=document.createElement("a");return i.download=n,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(t),!0}catch(e){throw console.error("파일 다운로드 중 오류 발생:",e),e}},l=async e=>{let{url:n,filepath:t}=await r.Z.common.document.uploadUrl({filename:e.name});try{await i.default.put(n,e,{headers:{"Content-Type":e.type}})}catch(e){throw Error(e instanceof Error?e.message:"파일 업로드중 오류가 발생했습니다.")}return{url:n,path:t}},d=async(e,n)=>{let t=await r.Z.employee.loan.document.downloadURL({applicationId:e,documentId:n});window.open(t.url,"_blank")},s=async(e,n,t)=>{let i=await r.Z.employee.loan.document.downloadURL({applicationId:e,documentId:n}),o=await fetch(i.url),a=await o.blob(),l=window.URL.createObjectURL(a),d=document.createElement("a");d.download=t,d.href=l,document.body.append(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(l)},c=async e=>e.type.toLowerCase().includes("heic")||e.type.toLowerCase().includes("heif")?new Promise(n=>{let t=new FileReader;t.onload=t=>{var i;let r=new Image;r.onload=()=>{let t=document.createElement("canvas");t.width=r.width,t.height=r.height;let i=t.getContext("2d");null==i||i.drawImage(r,0,0),t.toBlob(t=>{if(t){let i=e.name.toLowerCase(),r=i;if(i.startsWith("image")){let e=new Date().getTime();r="IMG_".concat(e,".jpg")}else r=i.endsWith(".heic")?i.replace(".heic",".jpg"):i.includes(".")?i.split(".")[0]+".jpg":i+".jpg";n(new File([t],r,{type:"image/jpeg"}))}else n(e)},"image/jpeg",.95)},r.src=null===(i=t.target)||void 0===i?void 0:i.result}
1,t.readAsDataURL(e)}):e,u=e=>{let n=e.name.toLowerCase();if(n.startsWith("image")){let t=new Date().getTime();return new File([e],"IMG_".concat(t).concat(p(n)),{type:e.type})}return e},p=e=>{let n=e.lastIndexOf(".");return -1!==n?e.slice(n):""}},85852:function(e,n,t){"use strict";t.d(n,{HO:function(){return o},NO:function(){return l},Q8:function(){return a},rR:function(){return r},rm:function(){return i}});let i=(e,n,t)=>{let i=new Date(e),r=new Date(n);if("asc"===t){if(i<r)return -1;if(i>r)return 1}else if("desc"===t){if(i<r)return 1;if(i>r)return -1}return 0},r=(e,n,t)=>"asc"===t&&e!==n?e.localeCompare(n):"desc"===t&&e!==n?n.localeCompare(e):0,o=(e,n,t)=>"asc"===t&&e!==n?e-n:"desc"===t&&e!==n?n-e:0,a=(e,n,t,i,r)=>{let o=e.localeCompare(n),a=new Date(t),l=new Date(i);return"asc"===r?0!==o?o:a.getTime()-l.getTime():"desc"===r?0!==o?-o:a.getTime()-l.getTime():0},l=(e,n,t,i)=>"asc"===t&&e!==n?i[e]-i[n]:"desc"===t&&e!==n?i[n]-i[e]:0},42062:function(e){"use strict";e.exports=JSON.parse('{"nm":"C","h":500,"w":500,"meta":{"g":"@lottiefiles/toolkit-js 0.33.2"},"layers":[{"ty":0,"nm":"C","sr":1,"st":62,"op":152,"ip":62,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[100,50,0]},"s":{"a":0,"k":[166.67,166.67,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[250,291.67,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"ef":[],"w":200,"h":100,"refId":"comp_0","ind":1},{"ty":0,"nm":"C","sr":1,"st":30,"op":120,"ip":30,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[100,50,0]},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.069,"y":0.995},"s":[166.67,166.67,100],"t":62},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[133.33,133.33,100],"t":76},{"s":[133.33,133.33,100],"t":94}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.182,"y":1},"s":[250,291.67,0],"t":62},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[250,205.83,0],"t":76},{"s":[250,205.83,0],"t":94}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":62},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[60],"t":76},{"s":[60],"t":94}]}},"ef":[],"w":200,"h":100,"refId":"comp_0","ind":2},{"ty":0,"nm":"C","sr":1,"st":-2,"op":88,"ip":-2,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[100,50,0]},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.069,"y":0.995},"s":[166.67,166.67,100],"t":30},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[133.33,133.33,100],"t":44},{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[133.33,133.33,100],"t":62},{"s":[83.33,83.33,100],"t":76}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.182,"y":1},"s":[250,291.67,0],"t":30},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[250,205.83,0],"t":44},{"o":{"x":0.167,"y":0},"i":{"x":0.182,"y":1},"s":[250,205.83,0],"t":62},{"s":[250,144.17,0],"t":76}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":30},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[60],"t":44},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[60],"t":62},{"s":[0],"t":76}]}},"ef":[],"w":200,"h":100,"refId":"comp_0","ind":3},{"ty":0,"nm":"C","sr":1,"st":-33,"op":57,"ip":-33,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[100,50,0]},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.069,"y":0.995},"s":[166.67,166.67,100],"t":-1},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[133.33,133.33,100],"t":13},{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[133.33,133.33,100],"t":31},{"s":[83.33,83.33,100],"t":45}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.182,"y":1},"s":[250,291.67,0],"t":-1},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[250,205.83,0],"t":13},{"o":{"x":0.167,"y":0},"i":{"x":0.182,"y":1},"s":[250,205.83,0],"t":31},{"s":[250,144.17,0],"t":45}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":-1},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[60],"t":13},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[60],"t":31},{"s":[0],"t":45}]}},"ef":[],"w":200,"h":100,"refId":"comp_0","ind":4},{"ty":0,"nm":"C","sr":1,"st":-76,"op":14,"ip":-76,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[100,50,0]},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.069,"y":0.995}
1,"s":[166.67,166.67,100],"t":-35},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[133.33,133.33,100],"t":-21},{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[133.33,133.33,100],"t":-1},{"s":[83.33,83.33,100],"t":13}]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.182,"y":1},"s":[250,291.67,0],"t":-35},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[250,205.83,0],"t":-21},{"o":{"x":0.167,"y":0},"i":{"x":0.182,"y":1},"s":[250,205.83,0],"t":-1},{"s":[250,144.17,0],"t":13}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":-35},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[60],"t":-21},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[60],"t":-1},{"s":[0],"t":13}]}},"ef":[],"w":200,"h":100,"refId":"comp_0","ind":5}],"v":"5.1.6","fr":50,"op":94,"ip":0,"assets":[{"nm":"","id":"comp_0","layers":[{"ty":4,"nm":"S","sr":1,"st":0,"op":118,"ip":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-30,-6.544,0]},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.651,"y":0.998},"s":[0,75.476,100],"t":9},{"o":{"x":0.379,"y":0.013},"i":{"x":0.524,"y":0.97},"s":[110,75.476,100],"t":21},{"s":[100,75.476,100],"t":29}]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[81,59.26,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"ef":[],"shapes":[{"ty":"gr","nm":"R","it":[{"ty":"rc","nm":"R","d":1,"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":2},"s":{"a":0,"k":[85.26,14.271]}},{"ty":"fl","nm":"F","c":{"a":0,"k":[0.941,0.949,0.961]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[12.63,-8.364]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":1},{"ty":4,"nm":"S","sr":1,"st":0,"op":166,"ip":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-30,-6.544,0]},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.651,"y":0.997},"s":[0,75.476,100],"t":3},{"o":{"x":0.379,"y":0.027},"i":{"x":0.524,"y":0.94},"s":[90,75.476,100],"t":15},{"s":[85,75.476,100],"t":23}]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[81,41.26,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"ef":[],"shapes":[{"ty":"gr","nm":"R","it":[{"ty":"rc","nm":"R","d":1,"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":2},"s":{"a":0,"k":[85.26,14.271]}},{"ty":"fl","nm":"F","c":{"a":0,"k":[0.941,0.949,0.961]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[12.63,-8.364]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":2},{"ty":4,"nm":"S","sr":1,"st":0,"op":166,"ip":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-66.789,-32.789,0]},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.044,"y":0.991},"s":[0,0,100],"t":0},{"s":[93,93,100],"t":12}]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[48.961,49.211,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"ef":[],"shapes":[{"ty":"gr","nm":"R","it":[{"ty":"rc","nm":"R","d":1,"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":4},"s":{"a":0,"k":[38.422,38.422]}},{"ty":"fl","nm":"F","c":{"a":0,"k":[0.894,0.902,0.922]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-66.789,-32.789]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":3}]}]}')}},function(e){e.O(0,[5589,8444,7975,5565,3639,8692,7916,6562,2816,4141,1378,4999,5962,5786,2888,9774,179],function(){return e(e.s=31363)}),_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.