PageSourceSearch

https://comake.ai/_next/static/chunks/526-fd0dc82091533042.js

js comake.ai collected 2026-10-05 12:35:24 UTC 20,550 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[526],{80526:function(t,e,n){n.d(e,{ZP:function(){return it}});var r=n(47568),i=n(14924),o=n(29815),s=n(97582),a=n(85893),c=n(31812),l=n(87357),u=n(47036),d=n(67720),p=n(86886),x=n(93946),f=n(26447),h=n(90948),g=n(2734),m=n(15861),j=n(86320),v=n(84144),S=n(935),Z=n(33299),y=n(11163),w=n(73400),b=n(67294),_=n(3140),I=n(45934),k=n(10653),C=n(88164),T=n(53878),A=n(79443),D=n(46772),P=n(99883),L=n(87893),F=n(93223),N=n(43795),O=n(69127),E=n(74685),W=n(6151),M=n(45374),q=n(44746),B=n(80994),R=n(38712),z=n(21626),U=n(38019),G=n(35364),H=n(30896),K=n(36165),J=(0,h.ZP)(l.Z)((function(t){t.theme;return{backgroundColor:"#fff",borderTop:"2px ".concat(u.Z[500]," solid"),width:"100%",boxShadow:"0px 4px 10px rgba(184, 191, 198, 0.14)"}})),Q=(0,h.ZP)(m.Z)((function(t){t.theme;return{color:"#4364D7",fontFamily:"Roboto",fontSize:"13px",fontStyle:"normal",fontWeight:400,lineHeight:"normal"}})),V=(0,h.ZP)(m.Z)((function(t){t.theme;return{fontWeight:400,fontFamily:N.TC,letterSpacing:"-0.02em",fontStyle:"normal"}})),X=(0,h.ZP)(V)((function(t){t.theme;return{wordBreak:"break-all",fontWeight:500}})),Y=(0,h.ZP)(l.Z)((function(t){t.theme;return{background:"rgba(255, 239, 224, 0.7)",borderRadius:"2px",boxSizing:"border-box",paddingTop:"14px",display:"flex",flexDirection:"column"}})),$=(0,h.ZP)(Y)((function(t){t.theme;return{background:"#EFF2F4",paddingBottom:"10px"}})),tt=(0,h.ZP)(l.Z)((function(t){t.theme;return{fontFamily:N.TC,backgroundColor:"#fff",border:"1px solid ".concat(F.h1.grey),display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"30px",width:"95px","&:hover":{cursor:"pointer",background:u.Z[100]}}})),et=((0,h.ZP)(tt)((function(t){t.theme;return{}})),(0,h.ZP)(V)((function(t){t.theme;return{color:"#585C82",fontSize:"13px",lineHeight:"13px",marginRight:"4px",fontWeight:400}}))),nt=(0,h.ZP)(V)((function(t){t.theme;return{fontSize:"15px",lineHeight:"15px",letterSpacing:"-0.05em",color:"#424C6C",marginLeft:"20px"}})),rt=(0,h.ZP)("span")((function(t){var e,n=t.theme;return e={fontWeight:500,color:"#222222"},(0,i.Z)(e,n.breakpoints.up("xs"),{fontSize:"13px",lineHeight:"20px"}),(0,i.Z)(e,n.breakpoints.up("sm"),{fontSize:"15px",lineHeight:"24px"}),(0,i.Z)(e,n.breakpoints.up("md"),{}),(0,i.Z)(e,n.breakpoints.up("lg"),{}),e}));function it(t){var e=t.userLink,n=t.actualContract,i=t.contract,h=t.actionSteps,F=t.creatorName,N=t.creatorAvatar,V=t.creatorColor,it=t.creatorMail,st=t.creatorOrgName,at=t.creatorOrgLogoUrl,ct=t.department,lt=t.position,ut=t.job,dt=t.isCertified,pt=t.customContractName,xt=t.isInDrawer,ft=t.boxItem,ht=t.setRequestMessage,gt=t.mutateSwr,mt=t.setIsMyTurnParent,jt=(0,g.Z)(),vt=(0,w.Ds)().enqueueSnackbar,St=(0,y.useRouter)(),Zt=(0,k.Z)("up","sm"),yt=(0,b.useState)([]),wt=yt[0],bt=yt[1],_t=(0,b.useState)([]),It=_t[0],kt=_t[1],Ct=(0,b.useState)(""),Tt=Ct[0],At=Ct[1],Dt=(0,b.useState)(!1),Pt=(Dt[0],Dt[1]),Lt=(0,b.useState)(""),Ft=Lt[0],Nt=Lt[1],Ot=(0,b.useState)(!1),Et=Ot[0],Wt=Ot[1],Mt=(0,b.useState)(!1),qt=(Mt[0],Mt[1],(0,b.useState)("")),Bt=qt[0],Rt=qt[1],zt=(0,b.useState)(""),Ut=zt[0],Gt=zt[1],Ht=(0,b.useState)([]),Kt=(Ht[0],Ht[1]),Jt=(0,b.useState)(null),Qt=(Jt[0],Jt[1]),Vt=(0,b.useState)(""),Xt=(Vt[0],Vt[1]),Yt=(0,b.useState)(!1),$t=(Yt[0],Yt[1]),te=(0,b.useState)(!1),ee=(te[0],te[1]),ne=(0,b.useState)(!1),re=ne[0],ie=ne[1],oe=(0,b.useState)(""),se=oe[0],ae=oe[1],ce=(0,b.useState)((0,a.jsx)(a.Fragment,{})),le=ce[0],ue=ce[1],de=(0,b.useState)(!1),pe=de[0],xe=de[1],fe=(0,b.useState)(!1),he=fe[0],ge=fe[1],me=(0,b.useState)(!1),je=me[0],ve=me[1],Se=(0,b.useState)([]),Ze=Se[0],ye=Se[1],we=(0,b.useState)(!1),be=(we[0],we[1]),_e=(0,b.useState)(!1),Ie=(_e[0],_e[1]),ke=(0,b.useState)(!1),Ce=(ke[0],ke[1]),Te=(0,b.useState)(!1),Ae=(Te[0],Te[1]),De=(0,I.Z)(),Pe=De.drawerOpen,Le=De.handleContractInfoDrawerClose,Fe=(0,D.v9)((function(t){return t.systemSet})),Ne=Fe.uploadDialogOpen,Oe=Fe.uploadDialogInitialStep;(0,Z.useSession)().data;(0,b.useEffect)((function(){i.status;var t=setInterval((function(){gt&&gt()}),2e3);return function(){return clearInterval(t)}}),[]);(0,b.useEffect)((function(){Ee()}),[]);var Ee=(0,b.useCallback)((0,r.Z)((function(){var t,e,n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return ft.actualContract?[3,4]:(t=i._id.toString(),[4,fetch("/api/contract/get-contract?contractId=".concat(t),{method:"GET",headers:{"Content-Type":"application/json"}})]);case 1:return[4,r.sent().json()];case 2:return e=r.sent(),[4,(0,D.WI)((0,C.U5)(e))];case 3:return r.sent(),[3,8];case 4:return[4,fetch("/api/contract/get-bulk-actual?userLinkId=".concat(St.query.actualId),{method:"GET",headers:{"Content-Type":"application/json"}})];case 5:return[4,r.sent().json()];case 6:return n=r.sent(),[4,(0,D.WI)((0,C.U5)(n))];case 7:r.sent(),r.label=8;case 8:return[2]}}
1))})),[i]);(0,b.useEffect)((function(){if(Bt!==i.status){var t=h[h.length-1].chunkId,r=h.filter((function(e){return e.chunkId===t}));bt(r);var s=[];ft.isApprover&&(s=h.filter((function(t){return"approval"===t.actionType&&t.userLink[0]._id===e._id||"init-approval"===t.actionType})));var a=ft.isSigner?h.filter((function(t){return"sign"===t.actionType&&t.userLink[0]._id===n._id})):[];kt((0,o.Z)(s).concat((0,o.Z)(a))),We((0,o.Z)(s).concat((0,o.Z)(a)))}}),[i]);var We=function(t){var n=function(t,e){var n,r=(0,a.jsx)(a.Fragment,{}),i=(0,v.Z)(t,{actionType:"create"}),o=(0,S.Z)(t),s=o.chunkId,c=t.filter((function(t){return t.chunkId===s})),l=t.filter((function(t){return t.userLink[0]._id.toString()===e._id.toString()})),d=(0,v.Z)(l,{status:"now"}),p="";d&&(p=d.requestMessage||"");var x=!1;(null===i||void 0===i?void 0:i.userLink[0]._id.toString())===(null===(n=e._id)||void 0===n?void 0:n.toString())&&(x=!0);var f=!1;(0,v.Z)(l,{actionType:"approval"})&&(f=!0);var h=!1;if("sign"===o.actionType){var g=c.filter((function(t){return t.userLink[0]._id.toString()===e._id.toString()}));g&&g.length>0&&(h=!0)}for(var j=(0,v.Z)(c,{status:"now"}),Z="",y="",w="",b="",_=!1,I=!1,k=c.length-1;k>=0;k--)if("notyet"!==c[k].status){var C=c[k],T=new Date;I=!!(C.expireTime&&new Date(C.expireTime)<T),y=C.status,w=C.actionType;var A=null===j||void 0===j?void 0:j.userLink[0];if(b=c[k].responseMessage||"",1===t.length&&"create"===w)Z="\uc800\uc7a5\ub428",r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ot,{status:Z}),(0,a.jsx)(rt,{children:"\ubb38\uc11c\uac00 \uc800\uc7a5\ub418\uc5c8\uc2b5\ub2c8\ub2e4."})]});else if("approval-canceled"===c[k].status)Z="\uacb0\uc7ac\uc694\uccad \ucde8\uc18c",r=(0,a.jsx)(ot,{status:Z});else if("sign-canceled"===c[k].status)Z="\uc11c\uba85\uc694\uccad \ucde8\uc18c",r=(0,a.jsx)(ot,{status:Z});else if("approval-rejected"===c[k].status)Z="\uacb0\uc7ac \ubc18\ub824",r=(0,a.jsx)(ot,{status:Z});else if("sign-rejected"===c[k].status)Z="\uc11c\uba85 \ubc18\ub824",r=(0,a.jsx)(ot,{status:Z});else if("approved"===o.status)Z="\uacb0\uc7ac \uc644\ub8cc",r=(0,a.jsx)(ot,{status:Z});else if("init-approval"===o.status)Z="\uacb0\uc7ac \ubb34\ud6a8\ud654",r=(0,a.jsx)(ot,{status:Z});else if("signed"===o.status)"\ud604\uc7ac \uc0c1\ud0dc\ub294 '".concat(Z="\uccb4\uacb0\ub428","'\uc785\ub2c8\ub2e4."),"\ubaa8\ub450 \uc11c\uba85\ud558\uc5ec \uacc4\uc57d\uc774 \uccb4\uacb0\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",r=(0,a.jsxs)(m.Z,{children:[(0,a.jsx)(rt,{children:"\uacc4\uc57d\uc774\xa0"}),(0,a.jsx)(rt,{sx:{color:"#E03D26",textDecoration:"underline"},children:"\uccb4\uacb0"}),(0,a.jsx)(rt,{children:"\ub418\uc5c8\uc2b5\ub2c8\ub2e4."})]});else if("now"===c[k].status&&"approval"===c[k].actionType){var D,P,L,F;"\ud604\uc7ac \uc0c1\ud0dc\ub294 '".concat(Z="\uacb0\uc7ac\uc911","'\uc785\ub2c8\ub2e4.")," ".concat(null===A||void 0===A?void 0:A.name,"(").concat(null===A||void 0===A?void 0:A.email,")\ub2d8\uc774 \uacb0\uc7ac\ud560 \ucc28\ub840\uc785\ub2c8\ub2e4."),r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ot,{status:Z}),(0,a.jsxs)(m.Z,{children:[(0,a.jsx)(rt,{children:null===A||void 0===A?void 0:A.name}),(0,a.jsxs)(rt,{sx:{color:"#828282",fontFamily:"Roboto"},children:["(",null===A||void 0===A?void 0:A.email,")"]}),(0,a.jsx)(rt,{children:"\ub2d8\uc774 \uacb0\uc7ac\ud560 \ucc28\ub840\uc785\ub2c8\ub2e4."})]}),(null===A||void 0===A||null===(D=A._id)||void 0===D?void 0:D.toString())===(null===(P=e._id)||void 0===P?void 0:P.toString())&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(rt,{children:"\ubb38\uc11c\uc758 \ub0b4\uc6a9\uc744 \ud655\uc778 \ud6c4 \uacb0\uc7ac\ud574\uc8fc\uc138\uc694."}),(0,a.jsxs)(rt,{sx:{color:u.Z[500]},children:["(\uacb0\uc7ac \ub9cc\ub8cc\uc2dc\uac04\uc740 ",(0,O.Pp)(C.expireTime),"\uc785\ub2c8\ub2e4.)"]})]})]}),(null===A||void 0===A||null===(L=A._id)||void 0===L?void 0:L.toString())===(null===(F=e._id)||void 0===F?void 0:F.toString())&&(_=!0)}else if("now"===c[k].status&&"sign"===c[k].actionType){var N,E,W,M;Z="\uccb4\uacb0\uc911",(null===A||void 0===A||null===(N=A._id)||void 0===N?void 0:N.toString())===(null===(E=e._id)||void 0===E?void 0:E.toString())&&
1(_=!0),r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ot,{status:Z}),(0,a.jsxs)(m.Z,{children:[(0,a.jsx)(rt,{children:null===A||void 0===A?void 0:A.name}),(0,a.jsxs)(rt,{sx:{color:"#828282",fontFamily:"Roboto"},children:["(",null===A||void 0===A?void 0:A.email,")"]}),(0,a.jsx)(rt,{children:"\ub2d8\uc774 \uc11c\uba85\ud560 \ucc28\ub840\uc785\ub2c8\ub2e4."})]}),(0,a.jsxs)(rt,{sx:{color:u.Z[500]},children:["(\uc11c\uba85 \ub9cc\ub8cc\uc2dc\uac04\uc740 ",(0,O.Pp)(C.expireTime),"\uc785\ub2c8\ub2e4.)"]}),(null===A||void 0===A||null===(W=A._id)||void 0===W?void 0:W.toString())===(null===(M=e._id)||void 0===M?void 0:M.toString())&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(rt,{children:"\ubb38\uc11c \ub0b4\uc6a9\uc744 \ud655\uc778 \ud6c4 \uc11c\uba85\ud574\uc8fc\uc138\uc694."})})]})}break}return{isMyTurn:_,status:y,actionType:w,statusStr:Z,uuid:e.uuid,myActions:l,myDoingAction:d||null,responseMessage:b,isCreator:x,isApprover:f,isSignee:h,messageComp:r,expired:I,requestMessage:p}}(t,e);Kt(n.myActions),At(n.status),Nt(n.actionType),Wt(n.isMyTurn),mt&&mt(n.isMyTurn),Rt(n.statusStr),Gt(e.uuid||""),Qt(n.myDoingAction),Pt(n.isCreator),$t(n.isApprover),ee(n.isSignee),"now"===n.status&&n.isMyTurn&&"sign"===n.actionType&&(0,D.WI)((0,T.d)(!0)),Xt(n.responseMessage),ue(n.messageComp),Ie(n.expired),ht&&ht(n.requestMessage)};(0,b.useEffect)((function(){if(i){var t=i.attendees.map((function(t){return{_id:t._id.toString(),index:t.index,label:t.label,color:t.color}}));ye(t)}}),[i]),(0,b.useEffect)((function(){pt?ae(pt):e.userNo===i.creatorNo?ae(i.contractName||""):ae(i.publicName||"")}),[pt]);var Me=function(){if(Ut){var t,n,r,i;if(gt&&gt(),ft.isSigner)if(xt)St.push("/contractbu/".concat(Ut,"/").concat(null===(t=e._id)||void 0===t?void 0:t.toString(),"/sign?mode=view&from=drawer"));else St.push("/contractbu/".concat(Ut,"/").concat(null===(n=e._id)||void 0===n?void 0:n.toString(),"/sign?mode=view"));else if(xt)St.push("/contractu/".concat(Ut,"/").concat(null===(r=e._id)||void 0===r?void 0:r.toString(),"/sign?mode=view&from=drawer"));else St.push("/contractu/".concat(Ut,"/").concat(null===(i=e._id)||void 0===i?void 0:i.toString(),"/sign?mode=view"));Le()}},qe=function(){return(0,a.jsx)(tt,{onClick:ze,sx:{fontSize:"13px"},children:"\ubb38\uc11c \uc5f4\ub78c"})};(0,b.useEffect)((function(){}),[n]);var Be=function(t){return(0,a.jsxs)(f.Z,{direction:"row",spacing:"5px",alignItems:"center",children:[!n&&(0,a.jsx)(qe,{}),"now"===Tt&&Et&&"approval"===Ft&&(0,a.jsx)(Re,{}),!!n&&"signed"==Tt&&(0,a.jsxs)(f.Z,{direction:"row",spacing:"3px",alignItems:"center",children:[(0,a.jsx)(Ge,{}),h&&Array.isArray(h)&&new Date(h[h.length-1].doneTime||n.updatedAt||"2023-07-11")>new Date("2023-07-11")&&(0,a.jsx)(Ke,{})]})]})},Re=function(){return(0,a.jsx)(f.Z,{direction:"row",flexWrap:"wrap",alignItems:"center",rowGap:"5px",columnGap:"5px",children:(0,a.jsxs)(f.Z,{direction:"row",columnGap:"5px",children:[(0,a.jsx)(W.Z,{userLink:e,contract:i,mutateSwr:gt}),(0,a.jsx)(M.Z,{userLink:e,contract:i,mutateSwr:gt})]})})},ze=function(){Me()},Ue=(function(){var t=(0,r.Z)((function(){var t,e,n,o,a,c;return(0,s.__generator)(this,(function(l){try{ie(!0),t=!0,e=!1,n=void 0;try{for(o=function(){var t=c.value,e=(0,v.Z)(i.finalDocs,{_id:t}),n={Bucket:"comake-next",Key:e.uploadUrl};j.Z.getObject(n,function(){var t=(0,r.Z)((function(t,n){var r,o;return(0,s.__generator)(this,(function(s){return t||(r=new Blob([n.Body],{type:"application/pdf"}),(o=document.createElement("a")).href=window.URL.createObjectURL(r),o.download="executed_".concat(i.publicName,"_").concat(e.name),o.click(),ie(!1)),[2]}))}));return function(e,n){return t.apply(this,arguments)}}())},a=i.docsOrder[Symbol.iterator]();!(t=(c=a.next()).done);t=!0)o()}catch(u){e=!0,n=u}finally{try{t||null==a.return||a.return()}finally{if(e)throw n}}}catch(d){vt("\ubb38\uc11c\ub97c \ub2e4\uc6b4\ub85c\ub4dc\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",{variant:"error"})}return[2]}))}))}(),function(){var t=(0,r.Z)((function(t){var e,n,i,o,a,c,l;return(0,s.__generator)(this,(function(u){if(!t)return[2];try{ie(!0),e=!0,n=!1,i=void 0;try{for(o=t[Symbol.iterator]();!(e=(a=o.next()).done);e=!0)c=a.value,l={Bucket:"comake-next",Key:c.uploadUrl},j.Z.getObject(l,function(){var t=(0,r.Z)((function(t,e){var n,r;return(0,s.__generator)(this,(function(i){return t||(n=new Blob([e.Body],{type:"application/pdf"}),r=URL.createObjectURL(n),window.open(r,"_blank"),ie(!1)),[2]}))}
1));return function(e,n){return t.apply(this,arguments)}}())}catch(d){n=!0,i=d}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}}catch(p){vt("\ubb38\uc11c\ub97c \uc5f4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",{variant:"error"})}return[2]}))}));return function(e){return t.apply(this,arguments)}}()),Ge=function(){return(0,a.jsx)(tt,{children:(0,a.jsxs)(c.Z,{loading:re,onClick:function(){return Ue(n.finalDocs)},sx:{},children:[(0,a.jsx)(et,{children:"\uacc4\uc57d\ubcf4\uae30"}),(0,a.jsx)(_.Z,{icon:"fa:download",color:"#8F9ABF"})]})})},He=function(){be(!0)},Ke=function(){return(0,a.jsx)(U.Z,{showCertification:He})};!function(){var t=(0,r.Z)((function(t,e){var n,r,i,o;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return[4,fetch("/api/contract/copy-contract",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:t,contractName:e})})];case 1:return 201!==(n=s.sent()).status?[3,4]:[4,n.json()];case 2:return r=s.sent(),i=r.copiedContractId,o=r.folderId,[4,fetch("/api/contractbox/upsert-myboxitem",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:i,folderId:o})})];case 3:return 201===s.sent().status?(Ce(!1),Ae(!0),St.replace(St.asPath)):vt("\uacc4\uc57d\uc744 \uc0dd\uc131\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4.",{variant:"error"}),[3,6];case 4:return[4,n.json().then((function(t){return vt(t.message,{variant:"error"})})).catch((function(t){return console.log(t)}))];case 5:s.sent(),s.label=6;case 6:return[2]}}
1))}))}();return(0,a.jsxs)(f.Z,{sx:{width:"100%"},children:[(0,a.jsxs)(J,{sx:{borderTop:xt?"0px":"2px ".concat(u.Z[500]," solid"),padding:xt?"17px 15px":["17px 15px","30px 20px","30px 20px","30px 40px"]},children:[Zt&&!xt?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.Z,{direction:"row",alignItems:"center",minWidth:0,justifyContent:"space-between",children:[(0,a.jsxs)(f.Z,{direction:"row",alignItems:"center",spacing:"3px",children:[(0,a.jsx)(X,{sx:{fontSize:xt?"17px":["17px","22px","22px","24px"]},children:se}),i.isApproved&&(0,a.jsx)(P.Kq,{}),(0,a.jsx)(P.ZP,{simpleStatus:(0,E.bD)(i.status),align:"left",sx:{paddingLeft:"10px",minWidth:"100px"}}),"completing"===i.status&&(0,L.q)("completing","30px","20px",jt.palette.primary.main)]}),!xt&&(0,a.jsx)(x.Z,{onClick:function(){return St.reload()},children:(0,a.jsx)(_.Z,{icon:"eva:refresh-fill",width:20,height:20})})]}),(0,a.jsxs)(f.Z,{children:[i.originContractId&&(0,a.jsxs)(m.Z,{justifySelf:"end",textAlign:"right",children:["OriginID: ",i.originContractId]}),(0,a.jsxs)(m.Z,{justifySelf:["start","end"],textAlign:"right",children:["ID: ",i._id.toString()]}),St.query.actualId&&(0,a.jsxs)(m.Z,{justifySelf:["start","end"],textAlign:"right",children:["SubID: ",St.query.actualId]})]})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(f.Z,{children:[(0,a.jsxs)(f.Z,{direction:"row",marginBottom:"10px",justifyContent:"space-between",alignItems:"center",children:[(0,a.jsx)(f.Z,{children:(0,a.jsx)(X,{sx:{fontSize:xt?"17px":["17px","22px","22px","24px"]},children:se})}),(0,a.jsxs)(f.Z,{spacing:"3px",children:[i.isApproved&&(0,a.jsx)(P.Kq,{}),(0,a.jsx)(P.ZP,{simpleStatus:(0,E.bD)(i.status),sx:{width:["50px",xt?"60px":"200px"],minWidth:["60px",xt?"50px":"200px"]}}),"completing"===i.status&&(0,L.q)("completing","30px","20px",jt.palette.primary.main)]})]}),i.originContractId&&(0,a.jsxs)(Q,{justifySelf:"end",textAlign:"right",children:["OriginID: ",i.originContractId]}),(0,a.jsxs)(Q,{justifySelf:["start","end"],textAlign:"right",children:["ID: ",i._id.toString()]})]})}),(0,a.jsxs)(p.ZP,{container:!0,columnSpacing:"16px",rowSpacing:"7px",children:[(0,a.jsx)(p.ZP,{item:!0,xs:12,md:xt?12:6,children:(0,a.jsxs)(f.Z,{width:"100%",spacing:"10px",children:[(0,a.jsxs)(Y,{sx:{},children:[(0,a.jsx)(nt,{children:"\uc0c1\ud0dc"}),(0,a.jsx)(d.Z,{orientation:"horizontal",sx:{width:"100%",marginTop:"10px"}}),(0,a.jsx)(f.Z,{width:"100%",sx:{padding:"16px 20px"},children:"completing"!==i.status&&"error"!==i.status?(0,a.jsxs)(a.Fragment,{children:[le,(0,a.jsx)(f.Z,{direction:"row",paddingTop:"15px",rowGap:"5px",sx:{flexWrap:"wrap"},children:(0,a.jsx)(Be,{currentStatus:Tt})})]}):"error"===i.status?(0,a.jsx)(m.Z,{children:(0,a.jsx)(rt,{children:"\ubb38\uc81c\uac00 \uc788\uc5b4 \uacc4\uc57d\uc744 \uc644\ub8cc\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4. \uad00\ub9ac\uc790\uc5d0\uac8c \ubb38\uc758\ud558\uc138\uc694."})}):(0,a.jsx)(m.Z,{children:(0,a.jsxs)(rt,{children:["\uccb4\uacb0 \uc644\ub8cc\ub97c \uc9c4\ud589\uc911\uc785\ub2c8\ub2e4. ",(0,a.jsx)("br",{}),"pdf\uc758 \uc11c\uba85\ub780 \ucc98\ub9ac, \ubcf4\uc548\ucf54\ub4dc, \uc6cc\ud130\ub9c8\ud06c \uc0bd\uc785\ub4f1\uc774 \ud3ec\ud568\ub429\ub2c8\ub2e4. ",(0,a.jsx)("br",{}),"\ud654\uba74\uc744 \ub2eb\uc544\ub3c4 \ub429\ub2c8\ub2e4. ",(0,a.jsx)("br",{}),"\ucc98\ub9ac\uac00 \uc644\ub8cc\ub418\uba74, \uc54c\ub78c\uc774 \uc804\uc1a1\ub429\ub2c8\ub2e4."]})})})]}),(0,a.jsxs)($,{children:[(0,a.jsxs)(f.Z,{direction:"row",paddingLeft:"20px",alignItems:"center",children:[(0,a.jsx)(_.Z,{icon:"mdi:account-arrow-left",height:"24px",width:"24px",color:"#A1A2A9"}),(0,a.jsx)(nt,{sx:{marginLeft:"4px"},children:"\ubc1b\ub294 \uc0ac\ub78c"})]}),(0,a.jsx)(d.Z,{orientation:"horizontal",sx:{width:"100%",marginTop:"10px",marginBottom:"10px"}}),(0,a.jsx)(l.Z,{sx:{minWidth:0,paddingRight:"20px"},children:(0,a.jsxs)(m.Z,{paddingLeft:"20px",sx:{wordBreak:"break-all",width:"100%"},children:[(0,a.jsx)(rt,{children:e.name}),(0,a.jsxs)(rt,{sx:{color:"#828282"},children:["(",e.email,")"]})]})})]}),(0,a.jsxs)($,{children:[(0,a.jsxs)(f.Z,{direction:"row",paddingLeft:"20px",alignItems:"center",children:[(0,a.jsx)(_.Z,{icon:"mdi:account-arrow-right",he
1ight:"24px",width:"24px",color:"#A1A2A9"}),(0,a.jsx)(nt,{sx:{marginLeft:"4px"},children:"\ubcf4\ub0b8 \uc0ac\ub78c"})]}),(0,a.jsx)(d.Z,{orientation:"horizontal",sx:{width:"100%",marginTop:"10px",marginBottom:"10px"}}),(0,a.jsx)(K.Z,{targetActions:wt,creatorName:F,creatorAvatar:N,creatorColor:V,creatorMail:it,creatorOrgName:st,creatorOrgLogoUrl:at,department:ct,position:lt,job:ut,isCertified:dt})]})]})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:xt?12:6,children:(0,a.jsxs)(f.Z,{width:"100%",spacing:"10px",children:[(0,a.jsx)(G.ZP,{actionSteps:wt,attendees:Ze,contractId:i._id.toString(),isCreator:!1}),(0,a.jsx)(H.ZP,{targetActionSteps:It,creatorName:F,creatorEmail:it,contractStatus:i.status,contractName:se,targetEmail:e.email})]})})]})]}),(0,a.jsx)(B.Z,{open:pe,onClose:function(){return xe(!1)},contractId:i._id.toString()}),(0,a.jsx)(z.Z,{open:he,onClose:function(){ge(!1),gt&&gt()},contractId:i._id.toString(),isApproved:i.isApproved}),(0,a.jsx)(R.Z,{contractName:se,open:je,onClose:function(){return ve(!1)},contractId:i._id.toString(),attendees:Ze,handleSuccessReqSign:function(){ve(!1),Ce(!0),Pe?Le():gt&&gt()}}),(0,a.jsx)(q.ZP,{open:Ne,onClose:function(){return(0,D.WI)((0,A.Sk)())},initialStep:Oe})]})}function ot(t){var e=t.status;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(m.Z,{children:[(0,a.jsx)(rt,{sx:{color:"#444444"},children:"\ud604\uc7ac \uc0c1\ud0dc\ub294\xa0"}),(0,a.jsx)(rt,{sx:{color:"#E03D26",textDecoration:"underline"},children:e}),(0,a.jsx)(rt,{children:"\uc785\ub2c8\ub2e4."})]})})}}}]);

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.