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.