1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7562],{55655:function(e,n,t){t.d(n,{lR:function(){return p},q7:function(){return f},x:function(){return x}});var r,i,o=t(47568),s=t(20414),l=t(53249);(0,o.Z)(function(e){var n;return(0,s.__generator)(this,function(t){switch(t.label){case 0:return[4,l.sl.post("/match-deposit/pay",e)];case 1:return[2,(n=t.sent()).data]}})});var a,d,c,$,u,x=(i=(0,o.Z)(function(e){var n;return(0,s.__generator)(this,function(t){switch(t.label){case 0:return[4,l.sl.get("/match-deposit/status/".concat(e))];case 1:return[2,(n=t.sent()).data]}})}),function(e){return i.apply(this,arguments)}),p=(a=(0,o.Z)(function(e){var n,t,r,i,o,a;return(0,s.__generator)(this,function(s){switch(s.label){case 0:return[4,l.sl.get("/match-deposit/required/".concat(e))];case 1:return r=s.sent(),[2,((a={}).isRequired=null!==(i=null===(n=r.data)||void 0===n?void 0:n.isRequired)&&void 0!==i&&i,a.depositAmount=null!==(o=null===(t=r.data)||void 0===t?void 0:t.depositAmount)&&void 0!==o?o:1e5,a)]}})}),function(e){return a.apply(this,arguments)});(0,o.Z)(function(e){var n;return(0,s.__generator)(this,function(t){switch(t.label){case 0:return[4,l.sl.post("/match-deposit/refund",e)];case 1:return[2,(n=t.sent()).data]}})}),(0,o.Z)(function(e){var n,t;return(0,s.__generator)(this,function(r){switch(r.label){case 0:return t={},[4,l.sl.post("/match-deposit/refund-for-client",(t.matchUuid=e,t))];case 1:return[2,(n=r.sent()).data]}})}),(0,o.Z)(function(){var e;return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,l.sl.get("/match-deposit/refundable")];case 1:return[2,(e=n.sent()).data]}})});var f=(u=(0,o.Z)(function(e){var n;return(0,s.__generator)(this,function(t){switch(t.label){case 0:return[4,l.sl.post("/match-deposit/complete",e)];case 1:return[2,(n=t.sent()).data]}})}),function(e){return u.apply(this,arguments)})},71645:function(e,n,t){t.d(n,{KS:function(){return v},ul:function(){return y}});var r=t(85893),i=t(43927),o=t(23241),s=t(40876),l=t(29630),a=t(61953),d=t(93481),c=t(19604),$=t(91655),u=t(54225),x=t(67294),p=function(e){return String(e||"").replace(/\s+/g," ").trim()},f=function(e){var n=String(e||"").replace(/\r/g,"\n").trim();return n?n.split(/\n|â¢/g).map(function(e){return e.trim()}).filter(Boolean).map(function(e){return e.replace(/^[-â¢Â·]\s*/,"").trim()}):[]},h=function(e,n,t){var r=new Set,i=[];return e.forEach(function(e){var n=p(e).replace(/^[-â¢]\s*/,"");n&&(r.has(n)||(r.add(n),i.push(n.slice(0,t))))}),i.slice(0,n)},g=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:180;return h(f(e),n,t)},_=function(e){var n=String(e||"").replace(/\r/g,"\n"),t=n.match(/^(.*?)\s+-\s+(.+)$/);if(t)return{lead:p(t[1]),tail:p(t[2])};var r=n.split(/\n+/g).map(function(e){return p(e)}).filter(Boolean);return r.length>=2?{lead:r[0],tail:r.slice(1).join(" ")}:{lead:p(n),tail:""}},m=[{keys:["suitabilityReason","interviewInsights"],label:"íë¡í & ì¸í°ë·° ì¸ì¬ì´í¸",color:"#3b82f6",bgColor:"#eff6ff",maxPerKey:[5,3]},{keys:["proposalHighlights"],label:"ì ìì íµì¬ í¬ì¸í¸",color:"#8b5cf6",bgColor:"#f5f3ff",maxPerKey:[3]},],j=function(e){var n=e.trim();return n?/[.!?ã]$/.test(n)?n:n+".":n},b=function(e){var n=e.point,t=e.id,i=_(n),o=i.lead,s=i.tail;return(0,r.jsxs)(l.Z,{sx:{fontSize:14,color:"#374151",lineHeight:1.65,mb:.35},children:["â¢"," ",s?(0,r.jsx)(l.Z,{component:"span",sx:{fontWeight:700,color:"#1f2937",fontSize:"inherit",lineHeight:"inherit"},children:o}):(0,r.jsx)(l.Z,{component:"span",sx:{fontSize:"inherit",lineHeight:"inherit"},children:j(o)}),s?(0,r.jsx)(l.Z,{component:"span",sx:{display:"block",mt:.1,pl:1.5,fontSize:"inherit",lineHeight:"inherit"},children:j(s)}):null]},t)},v=function(e){var n=e.label,t=e.color,i=e.bgColor,c=e.points,$=e.expertId,u=(0,x.useState)(!1),p=u[0],f=u[1];return 0===c.length?null:(0,r.jsxs)(a.Z,{sx:{border:"1.5px solid ".concat(i),borderRadius:"10px",overflow:"hidden",backgroundColor:p?"#fff":i,transition:"background-color 200ms"},children:[(0,r.jsxs)(a.Z,{onClick:function(){return f(function(e){return!e})},sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.25,py:.8,cursor:"pointer",userSelect:"none","&:hover":{backgroundColor:"rgba(0,0,0,0.02)"}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:.8},children:[!p&&(0,r.jsx)(l.Z,{sx:{fontSize:10.5,color:t,backgroundColor:"rgba(255,255,255,0.7)",px:.7,py:.15,borderRadius:"3px",fontWeight:600},children:"Click"}),(0,r.jsx)(l.Z,{sx:{fontSize:13,fontWeight:700,color:t},children:n})]}),p?(0,r.jsx)(o.Z,{sx:{fontSize:18,color:t}}):(0,r.jsx)(s.Z,{sx:{fontSize:18,color:t}})]}),(0,r.jsx)(d.Z,{in:p,timeout:200,children:(0,r.jsx)(a.Z,{sx:{px:1.25,pb:1.2,pt:.3},children:c.map(function(e,t){return(0,r.jsx)(b,{point:e,id:"".concat(n,"-").concat($,"-").concat(t)},"".concat(n,"-").concat($,"-").concat(t))})})})]})},y=function(e){var n=e.headline,t=e.decisionGuide;e.expertId;var i=(0,x.useState)(!1),c=i[0],$=i[1],u="#059669",p="#ecfdf5";return(0,r.jsxs)(a.Z,{sx:{border:"1.5px solid ".concat(p),borderRadius:"10px",overflow:"hidden",backgroundColor:c?"#fff":p,transition:"background-color 200ms"},children:[(0,r.jsxs)(a.Z,{onClick:function(){return $(function(e){return!e})},sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.25,py:.8,cursor:"pointer",userSelect:"none","&:hover":{backgroundColor:"rgba(0,0,0,0.02)"}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:.8},children:[!c&&(0,r.jsx)(l.Z,{sx:{fontSize:10.5,color:u,backgroundColor:"rgba(255,255,255,0.7)",px:.7,py:.15,borderRadius:"3px",fontWeight:600},children:"Click"}),(0,r.jsx)(l.Z,{sx:{fontSize:13,fontWeight:700,color:u},children:"Summary"})]}),c?(0,r.jsx)(o.Z,{sx:{fontSize:18,color:u}}):(0,r.jsx)(s.Z,{sx:{fontSize:18,color:u}})]}),(0,r.jsx)(d.Z,{in:c,timeout:200,children:(0,r.jsxs)(a.Z,{sx:{px:1.25,pb:1.2,pt:.3},children:[(0,r.jsx)(l.Z,{sx:{fontSize:{xs:13,md:14},fontWeight:700,color:"#111827",mb:.3},children:n}),t?(0,r.jsx)(l.Z,{sx:{fontSize:{xs:12,md:13},color:"#6b7280",lineHeight:1.7,whiteSpace:"pre-line"},children:t.replace(/([.!?]) /g,"$1\n")}
1):null]})})]})},Z=function(e){var n=e.expert,t=e.isLast,i=e.summary;return(0,r.jsx)(a.Z,{sx:{borderBottom:t?"none":"1px solid #e5e7eb",px:1.5,pt:.5,pb:1},children:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[(null==i?void 0:i.headline)?(0,r.jsx)(y,{headline:i.headline,decisionGuide:i.decisionGuide,expertId:n.matchedExpertDataUuid}):null,m.map(function(e){var t=e.keys.flatMap(function(t,r){return g(n[t],e.maxPerKey[r],260)});return(0,r.jsx)(v,{label:e.label,color:e.color,bgColor:e.bgColor,points:t,expertId:n.matchedExpertDataUuid},e.label)})]})})},S=function(e){var n=e.report,t=e.isLoading,o=e.isGenerating,s=e.isGeneratingOverall,d=void 0!==s&&s,p=e.generationError,f=e.onGenerate,h=e.onGenerateOverall,g=e.hasDeadlineSet,_=e.visibleExpertIds,m=e.showGenerateButton,j=(0,x.useMemo)(function(){var e=(null==n?void 0:n.experts)||[];if(!_||0===_.length)return e;var t=new Set(_);return e.filter(function(e){return t.has(e.matchedExpertDataUuid)})},[null==n?void 0:n.experts,_]);return(0,r.jsxs)(a.Z,{sx:{width:"100%"},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:.75,mb:2},children:[(0,r.jsx)(i.Z,{sx:{color:"#7c3aed",fontSize:{xs:20,md:22}}}),(0,r.jsx)(l.Z,{sx:{fontSize:{xs:18,md:22},fontWeight:800,color:"#111827",lineHeight:1.2,flex:1},children:"íë³´ì ë¹êµ ë¶ì AI"})]}),p?(0,r.jsx)(c.Z,{severity:"warning",sx:{mb:2},children:p}):null,t&&!n?(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[(0,r.jsx)($.Z,{variant:"rounded",height:64}),(0,r.jsx)($.Z,{variant:"rounded",height:120})]}):null,t||n?null:(0,r.jsx)(a.Z,{sx:{border:"1px dashed #d4bffc",borderRadius:"12px",background:"linear-gradient(145deg, rgba(250,247,255,0.96) 0%, rgba(255,255,255,0.98) 100%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",py:4,px:3},children:void 0!==m&&m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Z,{sx:{fontSize:{xs:14,md:16},color:"#374151",mb:1.2},children:"AIê° ì´ ì 문ê°ì ì ìì를 ë¶ìí´ ë립ëë¤."}),(0,r.jsx)(u.Z,{variant:"contained",onClick:function(){return f(!1)},disabled:o,sx:{borderRadius:"10px",fontWeight:700,fontSize:{xs:13,md:15},backgroundColor:"#7c3aed","&:hover":{backgroundColor:"#6d28d9"}},children:o?"ë¶ì ì¤...":"AI ë¶ì ìì"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Z,{sx:{fontSize:{xs:15,md:17},fontWeight:700,color:"#374151",mb:1.5},children:"ìì§ ìì±ë ë¶ì 리í¬í¸ê° ììµëë¤"}),(0,r.jsxs)(l.Z,{sx:{fontSize:{xs:13,md:14},color:"#6b7280",lineHeight:1.7},children:["ê° ì 문ê°ì ",(0,r.jsx)("b",{children:"ì ì ê²í "})," ë²í¼ì ëë¬ ì
무 ì ìì를 íì¸íë©´,","\n","AIê° ì 문ê°ë¥¼ ì¢
í©ì ì¼ë¡ ë¶ìí©ëë¤.","\n","ë
1¶ìì´ ìë£ëë©´ ì´ê³³ìì ì 문ê°ë³ ë¹êµ 리í¬í¸ë¥¼ íì¸í ì ììµëë¤."]})]})}),n?(0,r.jsxs)(r.Fragment,{children:[0===j.length?(0,r.jsx)(a.Z,{sx:{p:2},children:(0,r.jsx)(c.Z,{severity:"info",children:"ë¹êµ ê°ë¥í ì ë¬¸ê° ë°ì´í°ê° ììµëë¤."})}):null,j.length>0&&n.overallAssessment?(0,r.jsxs)(a.Z,{sx:{border:"1px solid #e5e7eb",borderRadius:"12px",backgroundColor:"#ffffff",mb:2.5,overflow:"hidden"},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.5,py:.8,backgroundColor:"#f8fafc",borderBottom:"1px solid #e5e7eb"},children:(0,r.jsx)(l.Z,{sx:{fontSize:14,fontWeight:800,color:"#111827"},children:"AI 컨ì¤í´í¸ ì´í"})}),(0,r.jsx)(a.Z,{sx:{px:2,py:1.5},children:(0,r.jsx)(l.Z,{sx:{fontSize:{xs:13.5,md:14.5},color:"#374151",lineHeight:1.8,whiteSpace:"pre-line"},children:n.overallAssessment})})]}):null,j.length>0&&!n.overallAssessment&&void 0!==g&&g&&h?(0,r.jsx)(a.Z,{sx:{display:"flex",justifyContent:"center",mb:2.5},children:(0,r.jsx)(u.Z,{variant:"outlined",onClick:function(){return h()},disabled:d,sx:{borderRadius:"10px",fontWeight:700,fontSize:{xs:13,md:14},borderColor:"#7c3aed",color:"#7c3aed","&:hover":{borderColor:"#6d28d9",backgroundColor:"rgba(124,58,237,0.04)"}},children:d?"ì´í ìì± ì¤...":"AI 컨ì¤í´í¸ ì´í ìì±í기"})}):null,j.length>0?(0,r.jsx)(a.Z,{sx:{overflowX:"auto",border:"1px solid #e5e7eb",borderRadius:"12px",backgroundColor:"#ffffff",mb:2.5},children:(0,r.jsxs)(a.Z,{sx:{minWidth:680},children:[(0,r.jsxs)(a.Z,{sx:{display:"grid",gridTemplateColumns:"160px minmax(400px, 1fr)",borderBottom:"1px solid #e5e7eb",backgroundColor:"#f8fafc",alignItems:"center"},children:[(0,r.jsx)(l.Z,{sx:{p:1.4,fontSize:14,fontWeight:800,color:"#111827",textAlign:"center"},children:"ì 문ê°"}),(0,r.jsx)(l.Z,{sx:{p:1.4,fontSize:14,fontWeight:800,color:"#111827",borderLeft:"1px solid #e5e7eb",textAlign:"center"},children:"AI 컨ì¤í´í¸ ì½ë©í¸"})]}),j.map(function(e,n){return(0,r.jsxs)(a.Z,{sx:{display:"grid",gridTemplateColumns:"160px minmax(400px, 1fr)",borderBottom:n===j.length-1?"none":"1px solid #e5e7eb",alignItems:"stretch"},children:[(0,r.jsxs)(a.Z,{sx:{p:1.4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"},children:[(0,r.jsx)(l.Z,{sx:{fontSize:16,fontWeight:800,color:"#111827",lineHeight:1.3},children:e.expertName}),(0,r.jsx)(l.Z,{sx:{mt:.3,fontSize:13,color:"#6b7280"},children:e.expertJob||"ì§ë¬´ ì ë³´ ìì"})]}),(0,r.jsx)(a.Z,{sx:{p:1.4,borderLeft:"1px solid #e5e7eb",display:"flex",alignItems:"center"},children:(0,r.jsx)(l.Z,{sx:{fontSize:{xs:13.5,md:14.5},color:"#374151",lineHeight:1.7},children:e.consultantComment||""})})]},"table-".concat(e.matchedExpertDataUuid))})]})}):null,(0,r.jsx)(a.Z,{sx:{border:"1px solid #e5e7eb",borderRadius:"12px",backgroundColor:"#ffffff",overflow:"hidden"},children:j.map(function(e,n){return(0,r.jsxs)(a.Z,{sx:{borderBottom:n===j.length-1?"none":"1px solid #e5e7eb"},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:.7,backgroundColor:"#f1f5f9",borderBottom:"1px solid #e2e8f0",borderTopLeftRadius:0===n?"12px":0,borderTopRightRadius:0===n?"12px":0},children:(0,r.jsx)(l.Z,{sx:{fontSize:{xs:14,md:15},fontWeight:700,color:"#374151"},children:e.expertName})}),(0,r.jsx)(Z,{expert:e,isLast:!0,summary:e.expertHeadline?{headline:e.expertHeadline,decisionGuide:e.expertDecisionGuide}:void 0})]},e.matchedExpertDataUuid)})})]}):null]})};n.ZP=S},27562:function(e,n,t){t.d(n,{op:function(){return ex}});var r=t(47568),i=t(26042),o=t(69396),s=t(99534),l=t(7297),a=t(29815),d=t(20414),c=t(85893),$=t(61953),u=t(54225),x=t(29630),p=t(93481),f=t(19604),h=t(77745),g=t(95398),_=t(32631),m=t(23978),j=t(76779),b=t(55343),v=t(31944),y=t(22841),Z=t(8519),S=t(29620),C=t(80097),w=t(23241),k=t(40876),z=t(34489),W=t(62766),D=t(26076),R=t(92859),T=t(51413),A=t(11163),B=t(87536),I=t(4480),F=t(77366),U=t(91088),H=t(89057),M=t(55655),E=t(30381),N=t.n(E);t(33730);var Q=t(67294),V=t(88767),L=t(66660),G=t(52029),P=t(50720),O=t(150),Y=t(42298),q=t(81812),K=t(4913),J=t(3465),X=t(81762),ee=t(71645);
1function en(){var e=(0,l.Z)(["\n display: flex;\n flex-direction: row;\n align-content: flex-end;\n gap: 8px;\n align-items: center;\n"]);return en=function(){return e},e}function et(){var e=(0,l.Z)(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n"]);return et=function(){return e},e}function er(){var e=(0,l.Z)(["\n .MuiPaper-root {\n border-radius: 18px;\n }\n .MuiDialogTitle-root {\n background-color: var(--primary);\n color: white;\n\n .title-box {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n\n .title {\n font-size: 30px;\n font-style: normal;\n font-weight: 700;\n }\n\n .icon {\n width: 60px;\n height: 60px;\n\n .logo {\n width: 100%;\n }\n }\n }\n }\n\n .button-group {\n display: flex;\n flex-direction: row;\n gap: 10px;\n flex-wrap: wrap;\n }\n\n .description {\n font-size: 20px;\n font-weight: bold;\n margin-top: 30px;\n\n .blue {\n color: var(--primary);\n }\n }\n\n .description-mini {\n font-size: 16px;\n }\n\n @media screen and (max-width: 600px) {\n .description-mini {\n display: none;\n }\n }\n"]);return er=function(){return e},e}function ei(){var e=(0,l.Z)(["\n font-size: 20px;\n font-style: normal;\n font-weight: bold;\n line-height: normal;\n color: rgb(8, 126, 255);\n"]);return ei=function(){return e},e}function eo(){var e=(0,l.Z)(["\n height: 48px;\n background-color: var(--primary);\n border: none;\n font-size: 24px;\n font-weight: bold;\n border-radius: 16px;\n color: white;\n transition: all 0.2s ease;\n\n &:hover {\n color: white !important;\n filter: brightness(0.9);\n }\n\n @media screen and (max-width: 768px) {\n font-size: 16px;\n padding: 3px 8px;\n }\n"]);return eo=function(){return e},e}function es(){var e=(0,l.Z)(["\n min-height: 52px;\n font-size: 15px;\n font-weight: 600;\n border-radius: 12px;\n border: 1.5px solid #d1d5db;\n color: #4b5563;\n background-color: #ffffff;\n transition: all 0.2s ease;\n\n &:hover {\n color: #374151 !important;\n background-color: #f3f4f6 !important;\n border-color: #9ca3af !important;\n }\n\n @media screen and (max-width: 768px) {\n font-size: 14px;\n }\n"]);return es=function(){return e},e}var el=["ìëì´ë ì 문ì±ì íì ì´ ìì´ì","ì ê·¹ì±ì´ë ìì§ê° ë¶ì¡±í´ë³´ì¬ì","ì í¬ íì¬ìë 컬ì³íì´ ë§ì§ ììì","ì
무 ë°©ìê³¼ ìê°ë ë± ì¡°ê±´ì´ ë§ì§ ììì","ìµì¢
ì ì ê¸ì¡ì´ ëì ë¶ë´ë¼ì","ì 문ê°ë ë§ì¡±ì¤ë½ì§ë§ ë´ë¶ ì¬ì ì´ ë³ê²½ëìì´ì","기í",],ea=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,t=String(e||"").replace(/\r/g,"\n").trim();return t?t.split(/\n|â¢/g).map(function(e){return e.replace(/^[-â¢Â·]\s*/,"").trim()}).filter(Boolean).slice(0,n):[]},ed=function(e){var n,t,l,F,E,en=(0,A.useRouter)(),et=e.uuid,er=e.isExpert,ei=(e.darkTheme,e.matchedExpertDataUuid),eo=(e.exportUuid,e.isLastOne),es=(0,Q.useState)(!1),ed=es[0],ef=es[
11],eh=(0,Q.useState)(!1),eg=eh[0],e_=eh[1],em=(0,Q.useState)(!1),ej=em[0],eb=em[1],ev=(0,Q.useState)(!1),e0=ev[0],ey=ev[1],e3=(0,Q.useState)(null),eZ=e3[0],e4=e3[1],e5=(0,Q.useState)(""),e2=e5[0],e1=e5[1],eS=(0,Q.useState)(!1),e6=eS[0],eC=eS[1],ew=(0,V.useQueryClient)(),ek=(0,Q.useState)(0),e7=(ek[0],ek[1]),ez=(0,R.Z)().user,eW=(0,B.cI)({defaultValues:{desiredStartDate:new Date,useSupportFund:null,supportInfo:null,understandSupportFund:!1},mode:"onBlur"}),eD=eW.handleSubmit,eR=eW.control,eT=eW.setValue,eA=(eW.setError,eW.clearErrors,eW.formState,eW.getFieldState,eW.reset,eW.getValues,eW.watch),eB=(0,B.cI)({reValidateMode:"onChange",defaultValues:{formResponse:"",etc:""}}),eI=eB.handleSubmit,eF=(eB.formState.errors,eB.control),e8=(eB.reset,eB.watch),eU=eA("useSupportFund");(0,Q.useEffect)(function(){!1===eU&&eT("supportInfo",null)},[eU]);var eH=(0,D.Z)(),eM=(0,W.Z)().openDialog,eE=(0,I.Zl)(T.j8),eN=(0,Q.useState)(!1),eQ=eN[0],eV=eN[1],eL=(0,V.useMutation)(U.rejectProposalByClient,{onSuccess:function(e){e.isSuccess?eo?(eV(!1),e_(!0),eE("ì ììê° ê±°ì ëììµëë¤."),setTimeout(function(){eE("")},3e3)):(eV(!1),eE("ì ììê° ê±°ì ëììµëë¤. 3ì´ í ë©ì¸ íì´ì§ë¡ ì´ëí©ëë¤."),setTimeout(function(){en.replace("/match/my")},3e3)):eE("ì£ì¡í©ëë¤. ì±ëí¡ì¼ë¡ 문ì ë¶íë립ëë¤.")},onError:function(){eE("ì£ì¡í©ëë¤. ì±ëí¡ì¼ë¡ 문ì ë¶íë립ëë¤.")}}),eG=eL.mutate,eP=eL.isLoading,eO=(0,V.useMutation)(U.cancelProposalAccept,{onSuccess:function(e){e.isSuccess?(eE("ì ìì ìë½ì´ ì·¨ìëììµëë¤. ìë ìíë¡ ë³µêµ¬ëììµëë¤."),eK((0,o.Z)((0,i.Z)({},eq),{isAccepted:""})),setTimeout(function(){window.location.reload()},2e3)):eE("ì£ì¡í©ëë¤. ì±ëí¡ì¼ë¡ 문ì ë¶íë립ëë¤.")},onError:function(){eE("ì£ì¡í©ëë¤. ì±ëí¡ì¼ë¡ 문ì ë¶íë립ëë¤.")}});eO.mutate,eO.isLoading;var eY=(0,Q.useState)({matchUuid:"",proposalUuid:"",fileUrl:"",client:"",expert:"",purpose:"",plan:"",timeopt:"",cost:"",expertCost:"",comment:"",isAccepted:"",desiredStartDate:"",serviceType:"",dateRequestConfirmProposal:null,dateAcceptDeadline:null,costTen:0,costFifteen:0,costTwenty:0,workType:"",workTypeComment:""}),eq=eY[0],eK=eY[1];(0,Q.useEffect)(function(){eq.desiredStartDate&&eT("desiredStartDate",new Date(eq.desiredStartDate))},[eq.desiredStartDate]);var e9=(0,V.useQuery)(["getProposalData",et],(0,r.Z)(function(){return(0,d.__generator)(this,function(e){switch(e.label){case 0:return[4,eH((0,U.getProposalDetail)(et,ei||""),"ë¡ë© ì¤ì
ëë¤\n1~3ì´ ì ë ììë©ëë¤")];case 1:return[2,e.sent()]}})}),{refetchOnWindowFocus:!1,refetchOnMount:!1,retryOnMount:!1,staleTime:1/0,cacheTime:1/0,onError:function(e){eE(e.errorMessage||e.message),en.replace("/")}}).data,eJ=(0,V.useQuery)(["depositStatus",eq.matchUuid],function(){return(0,M.x)(eq.matchUuid)},{enabled:!!eq.matchUuid,refetchOnWindowFocus:!1,retry:!1,staleTime:5e4,cacheTime:5e4}).data,eX=(0,X.Z)(!er&&eq.matchUuid?eq.matchUuid:void 0);(0,Q.useEffect)(function(){e9&&eK(e9)},[e9]),(0,Q.useEffect)(function(){return setTimeout(function(){return nn()},200),window.addEventListener("resize",nn),function(){window.removeEventListener("resize",nn)}},[]);var ne,nn=function(){var e;e7((null===(e=document.getElementById("proposal-wrapper"))||void 0===e?void 0:e.offsetWidth)||window.innerWidth)},nt=(ne=(0,r.Z)(function(e){var n,t,r,s,l,a;return(0,d.__generator)(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),ef(!1),t={},r={},[4,eH((0,U.acceptProposal)((0,o.Z)((0,i.Z)(t,e),(r.matchUuid=eq.matchUuid,r.proposalUuid=eq.proposalUuid,r.matchedExpertDataUuid=ei,r))),"ì ì¡ ì¤")];case 1:return n=d.sent(),s={},l={},n.isSuccess&&((null==eJ?void 0:eJ.depositUuid)&&e_(!0),eE("ì ì ìë½ì´ ìë£ëììµëë¤!\nì´ë©ì¼ê³¼ ì림í¡ì¼ë¡ ì´í íë¡ì¸ì¤ë¥¼ ìë´ëë¦¬ê² ìµëë¤"),eK((0,o.Z)((0,i.Z)(s,eq),(l.isAccepted="TRUE",l))),eX.report&&ey(!0),setTimeout(function(){ew.refetchQueries(["getMatchs"]),window.open("https://notion.1point.kr/referral")},2e3)),[3,3];case 2:return eE((a=d.sent()).errorMessage||a.message),[3,3];case 3:return[2]}})}),function(e){return ne.apply(this,arguments)}),nr=N()(eq.desiredStartDate).isValid();return eq.proposalUuid?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(L.im,{style:{gap:20,padding:"20px"},id:"proposal-wrapper",children:[(null==eJ?void 0:eJ.depositUuid)&&ez.isLogin&&1===ez.userType&&(0,c.jsxs)("div",{style:{backgroundColor:"#fff3cd",border:"1px solid #ffeaa7",borderRadius:"12px",padding:"20px",marginBottom:"24px",boxShadow:"0 2px 8px rgba(255, 193, 7, 0.15)"},children:[(0,c.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"8px"},children:[(0,c.jsx)("div",{style:{width:"24px",height:"24px",backgroundColor:"#ffc107",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",color:"#fff",fontWeight:"bold"},children:"\uD83D\uDCA1"}),(0,c.jsx)("div",{style:{fontSize:"16px",fontWeight:"700",color:"#856404"},children:"ìë¹ì¤ ë³´ì¦ê¸ íë¶ ìë´"})]}),(0,c.jsxs)("div",{style:{fontSize:"14px",lineHeight:"1.6",color:"#856404",paddingLeft:"36px"},children:["ì ë¬¸ê° ê³ ì© ëë 모ë íë³´ ê±°ì ì 3ì¼ ì´ë´ì íë¶ì´ ìë£ë©ëë¤.",(0,c.jsx)("br",{}),"ìë¹ì¤ ì§íì íì§ ìì¼ìëë¼ë 모ë í보를 ê±°ì íì
ì¼ íë¶ì´ ì§íë©ëë¤."]})]}),(0,c.jsxs)(L.t4,{style:{marginBottom:"24px"},children:[(0,c.jsx)(L.$t,{children:(0,c.jsx)("div",{className:"top",children:(0,c.jsx)("div",{children:(0,c.jsx)("div",{id:"top-title",style:{fontSize:"24px",fontWeight:"700"},children:"ì ë¬¸ê° ".concat(eq.expert)})})})}),(0,c.jsx)(z.zV,{space:24}),(0,c.jsxs)("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",marginBottom:"20px"},children:[(null==eq?void 0:eq.desiredStartDate)&&(0,c.jsxs)("div",{style:{flex:1,minWidth:"200px",backgroundColor:"#f8f9fa",padding:"14px 18px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[(0,c.jsx)("div",{style:{fontSize:"12px",color:"#6c757d",marginBottom:"4px",fontWeight:500},children:"ì
무 ìì ê°ë¥ì¼"}),(0,c.jsxs)("div",{style:{fontSize:"15px",fontWeight:700,color:"#212529"},children:[N()(eq.desiredStartDate).format("YYYY.MM.DD")," (",N()(eq.desiredStartDate).format("ddd"),")"]})]}),(null==eq?void 0:eq.dateAcceptDeadline)&&(0,c.jsxs)("div",{style:{flex:1,minWidth:"200px",backgroundColor:"#fef3c7",padding:"14px 18px",borderRadius:"8px",borderLeft:"4px solid #f59e0b"},children:[(0,c.jsx)("div",{style:{fontSize:"12px",color:"#92400e",marginBottom:"4px",fontWeight:500},children:"ì ìì ê²í 기í"}),(0,c.jsxs)("div",{style:{fontSize:"15px",fontWeight:700,color:"#b45309"},children:[N()(eq.dateAcceptDeadline).format("YYYY.MM.DD")," (",N()(eq.dateAcceptDeadline).format("ddd"),")"]})]})]}),!er&&(n=eX.expertReportMap.get(ei),t=ea(null==n?void 0:n.suitabilityReason,5),l=ea(null==n?void 0:n.proposalHighlights,3),F=ea(null==n?void 0:n.interviewInsights,3),E=t.length>0||l.length>0||F.length>0,(0,c.jsxs)($.Z,{sx:{mb:2.5,border:"1.5px solid #d4bffc",borderRadius:"12px",background:"linear-gradient(180deg, rgba(243,236,255,0.95) 0%, rgba(250,247,255,0.95) 100%)",boxShadow:"0 2px 8px rgba(124, 58, 237, 0.08)",overflow:"hidden"},children:[(0,c.jsx)(u.Z,{fullWidth:!0,variant:"text",onClick:function(){return eb(function(e){return!e})},startIcon:(0,c.jsx)(C.Z,{sx:{fontSize:16,color:"#7c3aed"}}),endIcon:ej?(0,c.jsx)(w.Z,{sx:{fontSize:18}}):(0,c.jsx)(k.Z,{sx:{fontSize:18}}),sx:{width:"100%",border:"none",borderRadius:ej?"12px 12px 0 0":"12px",background:"transparent",justifyContent:"space-between",textTransform:"none",px:1.25,py:.9,minHeight:44,"& .MuiButton-startIcon":{marginRight:"6px"},"& .MuiButton-endIcon":{marginLeft:"6px",color:"#7c3aed"},"&:hover":{background:"rgba(243,236,255,0.45)"}},children:(0,c.jsxs)($.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,c.jsx)(x.Z,{sx:{fontSize:"13.5px",fontWeight:700,color:"#5b21b6",lineHeight:1.35},children:"AI íë³´ì ë¶ì"}),!ej&&(0,c.jsx)(x.Z,{sx:{fontSize:"11px",color:"#7c3aed",backgroundColor:"rgba(124, 58, 237, 0.08)",px:.8,py:.2,borderRadius:"4px",fontWeight:600},children:"Click"})]})}),(0,c.jsx)(p.Z,{in:ej,timeout:220,children:(0,c.jsxs)($.Z,{sx:{width:"100%",borderTop:"1px solid #e9d5ff",backgroundColor:"#faf8ff",p:1.35},children:[eX.generationError?(0,c.jsx)(f.Z,{severity:"warning",sx:{width:"100%",mb:1.25},children:eX.generationError}):null,(eX.isLoading||eX.isGenerating)&&!n?(0,c.jsxs)($.Z,{sx:{textAlign:"center",py:2},children:[(0,c.jsx)($.Z,{sx:{display:"inline-block",width:28,height:28,border:"3px solid #e9d5ff",borderTop:"3px solid #7c3aed",borderRadius:"50%",animation:"spin 0.8s linear infinite","@keyframes spin":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},mb:1.2}}),(0,c.jsx)(x.Z,{sx:{fontSize:"13.5px",color:"#5b21b6",fontWeight:600},children:"AIê° ì ìì를 ë¶ìíê³ ììµëë¤..."}),(0,c.jsx)(x.Z,{sx:{fontSize:"12px",color:"#9ca3af",mt:.5},children:"ì½ 30ì´~1ë¶ ì ë ììë©ëë¤"})]}):null,eX.isLoading||eX.isGenerating||n?null:(0,c.jsxs)($.Z,{sx:{textAlign:"center",py:1.5},children:[(0,c.jsx)(x.Z,{sx:{fontSize:"13.5px",color:"#4b5563",lineHeight:1.6,mb:1.2},children:"AIê° ì´ ì 문ê°ì ì ìì를 ë¶ìí´ ë립ëë¤."}),(0,c.jsx)(u.Z,{variant:"contained",size:"small",onClick:function(){return eX.generateReport(!1,ei)},disabled:eX.isGenerating,sx:{borderRadius:"8px",fontWeight:700,fontSize:13,backgroundColor:"#7c3aed","&:hover":{backgroundColor:"#6d28d9"}},children:eX.isGenerating?"ë¶ì ì¤...":"AI ë¶ì ìì"})]}),E?(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)($.Z,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(null==n?void 0:n.consultantComment)?(0,c.jsx)($.Z,{sx:{px:1.25,py:1,borderRadius:"10px",backgroundColor:"#f8fafc",border:"1px solid #e5e7eb"},children:(0,c.jsx)(x.Z,{sx:{fontSize:13.5,color:"#374151",lineHeight:1.7},children:n.consultantComment})}):null,(null==n?void 0:n.expertHeadline)&&(0,c.jsx)(ee.ul,{headline:n.expertHeadline,decisionGuide:n.expertDecisionGuide,expertId:e
1i}),(0,c.jsx)(ee.KS,{label:"íë¡í \xb7 ì¸í°ë·° ì¸ì¬ì´í¸",color:"#3b82f6",bgColor:"#eff6ff",points:(0,a.Z)(t).concat((0,a.Z)(F)),expertId:ei}),(0,c.jsx)(ee.KS,{label:"ì ìì íµì¬ í¬ì¸í¸",color:"#8b5cf6",bgColor:"#f5f3ff",points:l,expertId:ei})]})}):null]})})]})),(0,c.jsxs)(ec,{style:{gap:16,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",marginBottom:"20px"},children:[(0,c.jsx)("div",{className:"detail-title",style:{fontSize:"20px",fontWeight:"700",color:"#212529"},children:"ì
무 목í ë° ë²ì"}),(0,c.jsx)(L.x1,{})]}),(0,c.jsx)("div",{className:"desc",style:{lineHeight:"1.6",color:"#495057",marginBottom:"16px",whiteSpace:"pre-line"},children:null==eq?void 0:eq.purpose}),(0,c.jsx)("div",{className:"desc",style:{lineHeight:"1.6",color:"#495057",marginBottom:"16px",whiteSpace:"pre-line"},children:(0,c.jsx)(K.Z,{as:"span",options:{className:"linkify",target:"_blank"},children:null==eq?void 0:eq.plan})}),(eq.comment||eq.fileUrl||eq.workType||eq.workTypeComment)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(z.zV,{space:24}),(0,c.jsxs)(ec,{style:{gap:16,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",marginBottom:"20px"},children:[(0,c.jsx)("div",{className:"detail-title",style:{fontSize:"20px",fontWeight:"700",color:"#212529"},children:"ì°¸ê³ ì¬í"}),(0,c.jsx)(L.x1,{})]}),(0,c.jsxs)("div",{className:"desc",style:{lineHeight:"1.6",color:"#495057",whiteSpace:"pre-line"},children:["".concat(eq.workType?"".concat(eq.workType,"\n").concat(eq.workTypeComment?"".concat(eq.workTypeComment,"\n"):"","\n"):""),eq.comment?(0,c.jsx)(K.Z,{as:"span",options:{className:"linkify",target:"_blank"},children:eq.comment}):"","\n",eq.fileUrl&&(0,c.jsx)("a",{href:eq.fileUrl,style:{color:"#007bff",textDecoration:"underline"},children:"ì°¸ê³ ìë£"})]})]})]}),(0,c.jsxs)(L.t4,{style:{backgroundColor:"#ffffff",borderRadius:"12px",padding:"24px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",marginBottom:"24px"},children:[!er&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(L.$t,{children:(0,c.jsx)("div",{className:"top",children:(0,c.jsx)("div",{children:(0,c.jsx)("div",{id:"top-title",style:{fontSize:"22px",fontWeight:"700",color:"#212529"},children:"ìë¹ì¤ ìê¸"})})})}),(0,c.jsx)(z.zV,{space:24})]}),er?(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{style:{backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[(0,c.jsxs)(ec,{style:{justifyContent:"space-between",marginBottom:"12px"},children:[(0,c.jsx)("div",{style:{fontWeight:"600",color:"#495057"},children:"ìë¹ì¤ ì í"}),(0,c.jsx)("div",{style:{color:"#6c757d"},children:eq.serviceType})]}),"ìê°ì "===eq.serviceType&&(0,c.jsxs)(ec,{style:{justifyContent:"space-between",marginBottom:"12px"},children:[(0,c.jsx)("div",{style:{fontWeight:"600",color:"#495057"},children:"ìê°ì íë"}),(0,c.jsx)("div",{style:{color:"#6c757d"},children:"0ìê°"===eq.timeopt?(0,c.jsx)("div",{style:{color:"#6c757d"},children:"ê°ë³ íì"}):(0,c.jsx)("div",{children:"주 ".concat(eq.timeopt)})})]}),(0,c.jsxs)(ec,{style:{justifyContent:"space-between"},children:[(0,c.jsx)("div",{style:{fontWeight:"600",color:"#495057"},children:"ì ë¬¸ê° ëê¸"}),(0,c.jsxs)("div",{style:{fontSize:"18px",fontWeight:"700",color:"#007bff"},children:[(0,q.tw)(1e4*Number(eq.expertCost||0)),"ì","ìê°ì "===eq.serviceType&&" (".concat("yu58enj116hbmxnvyw30ryu58y4z9pao"===et?"6주":"4주",")")]})]})]})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,c.jsx)("div",{style:{fontSize:"18px",fontWeight:"600",color:"#495057",marginBottom:"16px"},children:"ìë¹ì¤ ë´ì"}),(0,c.jsx)(L.x1,{style:{marginBottom:"16px"}}),(0,c.jsxs)("div",{style:{backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[(0,c.jsxs)(ec,{style:{justifyContent:"space-between",marginBottom:"12px"},children:[(0,c.jsx)("div",{style:{fontWeight:"600",color:"#495057"},children:"ì 문ê°ëª
"}),(0,c.jsx)("div",{style:{color:"#6c757d"},children:eq.expert})]}),(0,c.jsxs)(ec,{style:{justifyContent:"space-between",marginBottom:"12px"},children:[(0,c.jsx)("div",{style:{fontWeight:"600",color:"#495057"},children:"ìë¹ì¤ ì í"}),(0,c.jsx)("div",{style:{color:"#6c757d"},children:eq.serviceType})]}),"ìê°ì "===eq.serviceType&&(0,c.jsxs)(ec,{style:{justifyContent:"space-between"},children:[(0,c.jsx)("div",{style:{fontWeight:"600",color:"#495057"},children:"ìê°ì íë"}),(0,c.jsx)("div",{style:{color:"#6c757d"},children:"0ìê°"===eq.timeopt?(0,c.jsx)("div",{style:{color:"#6c757d"},children:"ê°ë³ íì"}):(0,c.jsx)("div",{children:"주 ".concat(eq.timeopt)})})]})]})]}),(0,c.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,c.jsxs)(ec,{style:{justifyContent:"space-between",marginBottom:"16
1px"},children:[(0,c.jsx)("div",{style:{fontSize:"18px",fontWeight:"600",color:"#495057"},children:"ìë¹ì¤ ìê¸"}),(0,c.jsxs)("div",{style:{fontSize:"20px",fontWeight:"700",color:"#007bff"},children:[(0,q.tw)(1e4*Number(eq.cost||0)),"ì","ìê°ì "===eq.serviceType&&" (".concat("yu58enj116hbmxnvyw30ryu58y4z9pao"===et?"6주":"4주",")")]})]}),(0,c.jsx)(L.x1,{style:{marginBottom:"16px"}}),(0,c.jsx)(ec,{style:{justifyContent:"flex-end"},children:(0,c.jsx)("div",{style:{color:"#6c757d",fontSize:"14px"},children:"VAT 10% ë³ë"})})]}),eq.costTen||eq.costFifteen||eq.costTwenty?(0,c.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,c.jsx)("div",{style:{fontSize:"18px",fontWeight:"600",color:"#495057",marginBottom:"16px"},children:"ì°¸ê³ ì¬í"}),(0,c.jsx)("div",{style:{color:"#6c757d",lineHeight:"1.5",marginBottom:"16px"},children:"ë¤ë¥¸ í¬ì
ìê°ì¼ë¡ ì§íì í¬ë§íì ë¤ë©´ ìí¬ì¸í¸ì ì¡°ì¨ ìì²í기를 í´ë¦í´ì£¼ì¸ì."}),(0,c.jsx)(L.x1,{style:{marginBottom:"16px"}}),(0,c.jsxs)("div",{style:{backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[eq.costTen&&(0,c.jsxs)(ec,{style:{justifyContent:"space-between",marginBottom:"8px"},children:[(0,c.jsx)("div",{style:{color:"#495057"},children:"주 10ìê°"}),(0,c.jsxs)("div",{style:{color:"#6c757d"},children:[eq.costTen,"ë§ì / 4주"]})]}),eq.costFifteen&&(0,c.jsxs)(ec,{style:{justifyContent:"space-between",marginBottom:"8px"},children:[(0,c.jsx)("div",{style:{color:"#495057"},children:"주 15ìê°"}),(0,c.jsxs)("div",{style:{color:"#6c757d"},children:[eq.costFifteen,"ë§ì / 4주"]})]}),eq.costTwenty&&(0,c.jsxs)(ec,{style:{justifyContent:"space-between"},children:[(0,c.jsx)("div",{style:{color:"#495057"},children:"주 20ìê°"}),(0,c.jsxs)("div",{style:{color:"#6c757d"},children:[eq.costTwenty,"ë§ì / 4주"]})]})]}),(0,c.jsx)(z.zV,{space:20}),(0,c.jsx)(ex,{className:"btn",fullWidth:!0,variant:"contained",onClick:function(){eM({title:"ìë´ ì°½ì¼ë¡ ì´ëí©ëë¤.",message:"",desc:"ìë´ ì±ëìì ì¡°ì¨ì´ íìí ë´ì©ì ë§ìí´ì£¼ì¸ì.",btn2Text:"íì¸í기",onClickBtn:(0,r.Z)(function(){return(0,d.__generator)(this,function(e){return window.open("https://1point.channel.io/home"),[2]})})})},style:{border:"2px solid var(--primary)",color:"var(--primary)",backgroundColor:"transparent",minHeight:"48px",fontSize:"14px",fontWeight:"600",borderRadius:"8px"},children:"ìí¬ì¸í¸ì ì¡°ì¨ ìì²í기"})]}):null,"íë¡ì í¸"!==eq.serviceType&&(0,c.jsx)("div",{style:{backgroundColor:"#e3f2fd",padding:"16px",borderRadius:"8px",border:"1px solid #2196f3",textAlign:"center"},children:(0,c.jsxs)("div",{style:{color:"#1976d2",fontSize:"14px",fontWeight:"600"},children:["ì¥ê¸° ê³ì½ì¼ë¡ ",(0,c.jsx)("a",{href:"https://docs.channel.io/onepoint/ko/articles/ff6c6176-ì¥ê¸°-íì
ì¥ê¸°ê³ì½",target:"_blank",rel:"noreferrer",style:{color:"#1976d2",textDecoration:"underline",cursor:"pointer"},children:"5% ì¶ê°í ì¸"})," ë°ìë³´ì¸ì!"]})})]})]}),ei&&!eq.isAccepted&&ez.isLogin&&1===ez.userType&&(0,c.jsx)("div",{style:{width:"100%",maxWidth:"100%",backgroundColor:"#ffffff",padding:"24px",borderRadius:"16px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",border:"1px solid #e9ecef",marginBottom:"24px"},children:(0,c.jsxs)(e$,{style:{gap:20},children:[(0,c.jsx)("div",{style:{backgroundColor:"#f8f9fb",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",fontSize:"13px",lineHeight:1.6,color:"#5b6473",wordBreak:"keep-all"},children:"ì 문ê°ë í ë¶ê³¼ íì
ì´ íì ëë©´ ë¤ë¥¸ ì 문ê°ëë¤ì 매ì¹ì ìëì¼ë¡ ì¢
ë£ë©ëë¤. ì¶ê° ê³ ì©ì ìíìë ê²½ì°, ì¤ë¥¸ìª½ íë¨ì '문ìí기'를 ì´ì©íì¬ ë§ìí´ ì£¼ìë©´ ê°ì¬íê² ìµëë¤."}),(0,c.jsx)(ec,{style:{gap:16},children:(0,c.jsx)(ex,{className:"btn",fullWidth:!0,variant:"contained",onClick:function(){return ef(!0)},style:{border:"none",backgroundColor:"var(--primary)",color:"white",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minHeight:"52px",fontSize:"15px",fontWeight:"600",borderRadius:"12px",transition:"all 0.2s ease"},children:"ê³ ì©í기"})}),(0,c.jsxs)(ec,{children:[eq.costTen||eq.costFifteen||eq.costTwenty?null:(0,c.jsx)(ep,{className:"btn",fullWidth:!0,variant:"contained",onClick:function(){eM({title:"ìë´ ì°½ì¼ë¡ ì´ëí©ëë¤.",message:"",desc:"ìë´ ì±ëìì ì¡°ì¨ì´ íìí ë´ì©ì ë§ìí´ì£¼ì¸ì.",btn2Text:"íì¸í기",onClickBtn:(0,r.Z)(function(){return(0,d.__generator)(this,function(e){return window.open("https://1point.channel.io/home"),[2]})})})},children:"ìí¬ì¸í¸ì ì¡°ì¨ ìì²í기"}),(0,c.jsx)(ep,{className:"btn",fullWidth:!0,variant:"contained",onClick:function(){eV(!0)},children:"ê±°ì í기"})]})]})}),(0,c.jsx)(z.zV,{space:!eq.isAccepted&&ei&&ez.isLogin&&1===ez.userType?96:32})]})}),(0,c.jsx)(eu,{maxWidth:"md",fullWidth:!0,open:ed,sx:{zIndex:2e4},onClose:function(){return ef(!1)},children:(0,c.jsxs)("form",{onSubmit:eD(function(e){nt(e)}),children:[(0,c.jsx)(h.Z,{children:(0,c.jsxs)("div",{className:"title-box",children:[(0,c.jsx)("div",{className:"title",children:"ì ìì ìë½ì ìí\në§ì§ë§ ë¨ê³ì
ëë¤!"}),(0,c.jsx)("div",{className:"icon",children:(0,c.jsx)("img",{className:"logo",src:"/static/image/logo_white.svg"})})]})}),(0,c.jsxs)(g.Z,{children:[(0,c.jsx)("div",{className:"description",children:nr?(0,c.jsxs)(c.Fragment,{children:["ì 문ê°ëì ì
무 ìì ê°ë¥ì¼ì ",(0,c.jsx)("span",{className:"blue",children:N()(eq.desiredStartDate).format("Mì Dì¼")}
1),"ì
ëë¤.\ní´ë¹ ë ì§ ì´í ì¼ì ì¤ ì
무 ììì¼ì ì íí´ì£¼ì¸ì."]}):(0,c.jsx)(c.Fragment,{children:"ì
무 ììì¼ì ì íí´ì£¼ì¸ì."})}),(0,c.jsx)("div",{className:"description-mini",children:"⢠ì ííì ì
무 ììì¼ ì ê¹ì§ ê³ì½ì ìëª
ê³¼ ìë¹ì¤ ëê¸ ê²°ì ê° ì§íëì´ì¼ íë ì ì°¸ê³ í´ì£¼ì¸ì\n⢠ì í ê°ë¥ ì¼ì를 ë²ì´ëë ë ì§ì ì
무를 ììíê³ ì íìë ê²½ì° ìí¬ì¸í¸ ì±ëí¡ì¼ë¡ ë³ë 문ìí´ì£¼ì¸ì"}),(0,c.jsx)(z.zV,{space:10}),(0,c.jsx)(P._,{dateFormats:{monthShort:"MM",monthAndYear:"yyyy.MM"},dateAdapter:Y.Q,children:(0,c.jsx)(B.Qr,{name:"desiredStartDate",control:eR,defaultValue:new Date,rules:{required:"íìì
ëë¤.",validate:function(e){return N()(e).isBefore(N()())?"ììì¼ ì´ì ì¼ ì ììµëë¤.":void 0}},render:function(e){var n=e.field,t=n.ref,r=n.value,l=n.onChange,a=e.fieldState.error,d=(0,s.Z)(e.field,["ref","value","onChange"]);return(0,c.jsx)(O.M,(0,o.Z)((0,i.Z)({},d),{onChange:function(e){e&&l(null==e?void 0:e.toDate())},minDate:N()(),format:"YYYY.MM.DD",slotProps:{textField:{variant:"outlined",error:!!a,helperText:null==a?void 0:a.message,autoFocus:!0,inputRef:t,fullWidth:!0,sx:{paddingRight:10}}},value:N()(r)}))}})}),(0,c.jsx)("div",{className:"description",children:"ì ë¶/ë¯¼ê° ì§ìê¸ ëì ì¬ë¶ë¥¼ ìë ¤ì£¼ì¸ì."}),(0,c.jsx)("div",{className:"description-mini",children:"⢠ì§ìê¸ì ì¬ì©íë ê²½ì° ì ìì ìë½ í ìì
ì¼ 2ì¼ ì´ë´ ë´ë¹ 매ëì ê° ë³ëë¡ ì°ë½ë립ëë¤."}),(0,c.jsx)(z.zV,{space:10}),(0,c.jsx)(B.Qr,{name:"useSupportFund",control:eR,rules:{validate:function(e){return null===e?"íìê°ì
ëë¤":void 0}},defaultValue:null,render:function(e){var n=e.field,t=n.ref,r=n.onChange,i=n.onBlur,o=e.fieldState.error;return(0,s.Z)(e.field,["ref","onChange","onBlur"]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"button-group",ref:t,children:[(0,c.jsx)(u.Z,{variant:eU?"contained":"outlined",onClick:function(){return r(!0)},onBlur:i,children:"ë¤, ì§ìê¸ ëìì¼ë¡ ì¬ì© ìì ì´ìì"}),(0,c.jsx)(u.Z,{variant:!1===eU?"contained":"outlined",onClick:function(){return r(!1)},onBlur:i,children:"ìëì, ëìì´ ìëê±°ë ì¬ì©íì§ ììì"})]}),(null==o?void 0:o.message)&&(0,c.jsx)(_.Z,{error:!0,children:null==o?void 0:o.message})]})}}),eU&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(z.zV,{space:20}),(0,c.jsx)("div",{className:"description-mini",children:"⢠ì§ìê¸ì ì§íì²ì ë°ë¼ ì¬ì© ê°ë¥ ì¬ë¶ì ë°©ë²ì´ ìì´í©ëë¤.\n⢠ì¬ì ì ì§íì²ì ì¬ì© ê°ë¥ ì¬ë¶ë¥¼ íì¸íì
ì¼í©ëë¤."}),(0,c.jsx)(z.zV,{space:10}),(0,c.jsx)(B.Qr,{name:"understandSupportFund",control:eR,rules:{validate:function(e){return!1===e?"íìê°ì
ëë¤":void 0}},defaultValue:!1,render:function(e){var n=e.field,t=n.ref,r=n.onChange,i=n.onBlur,o=e.fieldState.error;return(0,s.Z)(e.field,["ref","onChange","onBlur"]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"button-group",ref:t,children:(0,c.jsx)(u.Z,{variant:eA("understandSupportFund")?"contained":"outlined",onClick:function(){return r(!eA("understandSupportFund"))},onBlur:i,children:"ë¤, ì´í´íì´ì"})}),(null==o?void 0:o.message)&&(0,c.jsx)(_.Z,{error:!0,children:null==o?void 0:o.message})]})}}),(0,c.jsx)("div",{className:"description",children:"í´ë¹ëë ì§ìê¸ ì¢
ë¥ì ì§íì²ë¥¼ ìë ¤ì£¼ì¸ì"}),(0,c.jsx)(z.zV,{space:10}),(0,c.jsx)(B.Qr,{name:"supportInfo",control:eR,rules:{required:"íìê°ì
ëë¤"},defaultValue:null,render:function(e){var n=e.field.ref,t=e.fieldState.error,r=(0,s.Z)(e.field,["ref"]);return(0,c.jsx)(m.Z,(0,o.Z)((0,i.Z)({fullWidth:!0,inputRef:n},r),{error:!!t,helperText:null==t?void 0:t.message}))}})]})]}),(0,c.jsx)(j.Z,{children:(0,c.jsx)(u.Z,{sx:{borderRadius:2,width:"150px",fontWeight:"bold",fontSize:"16px"},variant:"contained",type:"submit",children:"ì ì¶í기"})})]})}),(0,c.jsxs)(J.b,{maxWidth:"sm",fullWidth:!0,open:eQ,onClose:function(){eV(!1)},children:[(0,c.jsx)(h.Z,{children:(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"helptext",children:"본\xa0ì
무 ë²ì\xa0ì ìì ê±°ì íìë ê²½ì°,\xa0ë²ë³µì´ ì´ë µìµëë¤."}),(0,c.jsx)("div",{className:"title",children:"".concat(eq.expert,"ëê³¼\nì
무를 ì§ííì§ ìë ì´ì 를 ìë ¤ì£¼ì
1¸ì")})]})}),(0,c.jsxs)("form",{onSubmit:eI(function(e){eG({matchedExpertDataUuid:ei,reason:"기í"===e.formResponse?"기í: "+e.etc:e.formResponse})},function(e){}),children:[(0,c.jsx)(g.Z,{children:(0,c.jsx)("div",{style:{flexDirection:"column"},children:(0,c.jsxs)(b.Z,{fullWidth:!0,children:[(0,c.jsx)(B.Qr,{name:"formResponse",control:eF,rules:{required:"íì ì
ë ¥ í목ì
ëë¤."},render:function(e){e.field.ref;var n=e.fieldState.error,t=(0,s.Z)(e.field,["ref"]);return(0,c.jsxs)(c.Fragment,{children:[n&&(0,c.jsx)(_.Z,{error:!0,children:null==n?void 0:n.message}),(0,c.jsx)(v.Z,(0,o.Z)((0,i.Z)({},t),{children:el.map(function(e,n){return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(y.Z,{control:(0,c.jsx)(Z.Z,{}),label:e,value:e},"radio-formresponse-"+n.toString())})})}))]})}}),"기í"===e8("formResponse")&&(0,c.jsx)(B.Qr,{name:"etc",control:eF,rules:{required:"íì ì
ë ¥ í목ì
ëë¤."},render:function(e){var n=e.field.ref,t=e.fieldState.error,r=(0,s.Z)(e.field,["ref"]);return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(m.Z,(0,o.Z)((0,i.Z)({fullWidth:!0,multiline:!0,minRows:2,placeholder:"ì¬ì 를 ì
ë ¥í´ì£¼ì¸ì",inputRef:n},r),{error:!!t,helperText:null==t?void 0:t.message}))})}})]})})}),(0,c.jsxs)(j.Z,{style:{marginBottom:"16px"},children:[(0,c.jsx)(G.Z,{sx:{borderRadius:2,fontWeight:"bold",fontSize:"16px"},variant:"outlined",onClick:function(){eV(!1)},children:"ë«ê¸°"}),(0,c.jsx)(G.Z,{sx:{borderRadius:2,fontWeight:"bold",fontSize:"16px",width:"150px"},variant:"contained",loading:eP,type:"submit",children:"ê±°ì í기"})]})]})]}),(null==eJ?void 0:eJ.depositUuid)&&(0,c.jsxs)(J.b,{open:eg,onClose:function(){return e_(!1)},maxWidth:"sm",fullWidth:!0,sx:{"& .MuiDialog-paper":{borderRadius:"18px"}},children:[(0,c.jsx)(h.Z,{sx:{backgroundColor:"var(--primary)",color:"white",textAlign:"center",padding:"32px 24px 24px"},children:(0,c.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px"},children:(0,c.jsx)("div",{style:{fontSize:"24px",fontWeight:"700"},children:"ìë¹ì¤ ë³´ì¦ê¸ íë¶ ìë´"})})}),(0,c.jsx)(g.Z,{sx:{padding:"48px 32px 40px"},children:(0,c.jsxs)("div",{style:{textAlign:"center",lineHeight:"1.7"},children:[(0,c.jsx)("div",{style:{fontSize:"16px",fontWeight:"600",marginTop:"32px",marginBottom:"24px",color:"#333",lineHeight:"1.5"},children:"ìë¹ì¤ ë³´ì¦ê¸ íë¶ ìì²ì´ ìë£ëììµëë¤."}),(0,c.jsx)("div",{style:{fontSize:"16px",color:"#666",marginBottom:"8px",lineHeight:"1.6"},children:"ë´ë¹ìê° 3ì¼ ì´ë´ì íë¶í´ë리ëë¡ íê² ìµëë¤."}),(0,c.jsx)("div",{style:{fontSize:"16px",color:"#666",lineHeight:"1.6"},children:"문ìì¬íì´ ìì¼ì¤ ê²½ì° ì±ëí¡ì¼ë¡ 문ì ë¶íë립ëë¤."})]})}),(0,c.jsx)(j.Z,{sx:{padding:"0 32px 32px"},children:(0,c.jsx)(u.Z,{onClick:function(){e_(!1),en.replace("/match/my")},variant:"contained",fullWidth:!0,sx:{backgroundColor:"var(--primary)",color:"white",fontWeight:"bold",padding:"14px",borderRadius:"12px",fontSize:"16px","&:hover":{backgroundColor:"var(--primary)",opacity:.9}},children:"íì¸"})})]}),(0,c.jsxs)(S.Z,{open:e0,onClose:function(){return ey(!1)},maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"16px"}},children:[(0,c.jsxs)(h.Z,{sx:{textAlign:"center",pt:3,pb:1},children:[(0,c.jsx)(C.Z,{sx:{color:"#7c3aed",fontSize:28,mb:.5}}),(0,c.jsx)(x.Z,{sx:{fontSize:18,fontWeight:800,color:"#111827"},children:"AI íë³´ì ë¶ìì´ ëìì´ ëì
¨ëì?"})]}),(0,c.jsx)(g.Z,{sx:{textAlign:"center",px:3,pb:1},children:e6?(0,c.jsx)(x.Z,{sx:{py:3,fontSize:15,color:"#374151"},children:"í¼ëë°±ì ë³´ë´ì£¼ì
ì ê°ì¬í©ëë¤!"}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(H.Z,{value:eZ,onChange:function(e,n){return e4(n)},precision:.5,size:"large",sx:{mt:1,mb:2,"& .MuiRating-iconFilled":{color:"#7c3aed"},"& .MuiRating-iconHover":{color:"#6d28d9"}}}),(0,c.jsx)(m.Z,{value:e2,onChange:function(e){return e1(e.target.value)},placeholder:"ì견ì ë¨ê²¨ì£¼ì¸ì (ì íì¬í)",multiline:!0,rows:2,fullWidth:!0,variant:"outlined",sx:{mb:1,"& .MuiOutlinedInput-root":{borderRadius:"10px",fontSize:14}}})]})}),(0,c.jsx)(j.Z,{sx:{px:3,pb:3,gap:1},children:e6?(0,c.jsx)(u.Z,{fullWidth:!0,variant:"contained",onClick:function(){return ey(!1)},sx:{borderRadius:"10px",fontWeight:700,backgroundColor:"#7c3aed","&:hover":{backgroundColor:"#6d28d9"}},children:"ë«ê¸°"}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u.Z,{fullWidth:!0,onClick:function(){return ey(!1)},sx:{borderRadius:"10px",color:"#6b7280"},children:"ê±´ëë°ê¸°"}),(0,c.jsx)(u.Z,{fullWidth:!0,variant:"contained",disabled:!eZ,onClick:(0,r.Z)(function(){var e,n;return(0,d.__generator)(this,function(t){switch(t.label){case 0:if(!eZ)return[2];t.label=1;case 1:return t.trys.push([1,3,,4]),e={},[4,(0,U.sendProposalAssistantFeedback)((e.matchUuid=eq.matchUuid,e.rating=eZ,e.comment=e2||void 0,e))];case 2:return t.sent(),eC(!0),setTimeout(function(){return ey(!1)},1500),[3,4];case 3:return n=t.sent(),ey(!1),[3,4];case 4:return[2]}})}),sx:{borderRadius:"10px",fontWeight:700,backgroundColor:"#7c3aed","&:hover":{backgroundColor:"#6d28d9"}},children:"ì ì¶í기"})]})})]})]}):null};n.ZP=ed;var ec=F.Z.div(en()),e$=F.Z.div(et()),eu=(0,F.Z)(S.Z)(er());F.Z.div(ei());var ex=(0,F.Z)(u.Z)(eo()),ep=(0,F.Z)(u.Z)(es())},81762:function(e,n,t){var r=t(47568),i=t(82670),o=t(20414),s=t(91088),l=t(67294),a=t(88767),d=function(e){var n,t,d,c,$,u=(0,a.useQueryClient)(),x=["matchProposalAssistant",e],p=["proposalAssistantGenerating",e],f=["proposalAssistantError",e],h=["proposalAssistantGeneratingOverall",e],g=(0,a.useQuery)(x,(0,r.Z)(function(){return(0,o.__generator)(this,function(n){switch(n.label){case 0:if(!e)return[2,null];return[4,(0,s.getMatchProposalAssistant)(e)];case 1:return[2,n.sent()]}})}),{enabled:!!e,refetchOnWindowFocus:!1,staleTime:0,cacheTime:3e5}),_=(0,a.useQuery)(p,function(){return!!u.getQueryData(p)},{enabled:!!e,staleTime:1/0,cacheTime:1/0,refetchOnWindowFocus:!1}).data,m=void 0!==_&&_,j=(0,a.useQuery)(f,function(){return u.getQueryData(f)||null},{enabled:!!e,staleTime:1/0,cacheTime:1/0,refetchOnWindowFocus:!1}).data,b=(0,l.useCallback)((0,r.Z)(function(){var n,t,r,l=arguments;return(0,o.__generator)(this,function(o){return n=l.length>0&&void 0!==l[0]&&l[0],t=l.length>1?l[1]:void 0,!e||m||(u.setQueryData(p,!0),u.setQueryData(f,null),r={},(0,s.generateMatchProposalAssistant)((r.matchUuid=e,r.matchedExpertDataUuid=t,r.forceRegenerate=n,r)).then(function(e){(null==e?void 0:e.isSuccess)&&e.report?u.setQueryData(x,{isSuccess:!0,exists:!0,sourceHash:e.sourceHash,promptVersion:e.promptVersion,model:e.model,responseId:e.responseId,generatedAt:e.generatedAt,report:e.report}):(u.setQueryData(f,(null==e?void 0:e.message)||(null==e?void 0:e.errorCode)||"리í¬í¸ ìì±ì ì¤í¨íìµëë¤."),u.invali
1dateQueries(x))}).catch(function(e){var n=(0,i.Z)(e,Error)?e.message:null;u.setQueryData(f,n||"리í¬í¸ ìì± ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}).finally(function(){u.setQueryData(p,!1)})),[2,null]})}),[e,m,u,p,f,x]),v=(0,a.useQuery)(h,function(){return!!u.getQueryData(h)},{enabled:!!e,staleTime:1/0,cacheTime:1/0,refetchOnWindowFocus:!1}).data,y=void 0!==v&&v,Z=(0,l.useCallback)((0,r.Z)(function(){var n,t,r=arguments;return(0,o.__generator)(this,function(o){return n=r.length>0&&void 0!==r[0]&&r[0],!e||y||(u.setQueryData(h,!0),u.setQueryData(f,null),t={},(0,s.generateOverallAssessment)((t.matchUuid=e,t.forceRegenerate=n,t)).then(function(e){(null==e?void 0:e.isSuccess)&&e.report?u.setQueryData(x,{isSuccess:!0,exists:!0,report:e.report}):u.setQueryData(f,(null==e?void 0:e.message)||(null==e?void 0:e.errorCode)||"ì´í ìì±ì ì¤í¨íìµëë¤.")}).catch(function(e){var n=(0,i.Z)(e,Error)?e.message:null;u.setQueryData(f,n||"ì´í ìì± ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}).finally(function(){u.setQueryData(h,!1)})),[2]})}),[e,y,u,h,f,x]),S=(null===(n=g.data)||void 0===n?void 0:n.report)||null,C=(0,l.useMemo)(function(){var e=new Map;return(null==S?void 0:S.experts)&&S.experts.forEach(function(n){e.set(n.matchedExpertDataUuid,n)}),e},[S]);return{isLoading:g.isLoading,isFetching:g.isFetching,isGenerating:!!m,isGeneratingOverall:!!y,exists:!!(null===(t=g.data)||void 0===t?void 0:t.exists),hasDeadlineSet:!!(null===(d=g.data)||void 0===d?void 0:d.hasDeadlineSet),report:S,generatedAt:(null===(c=g.data)||void 0===c?void 0:c.generatedAt)||null,model:(null===($=g.data)||void 0===$?void 0:$.model)||null,generationError:(void 0===j?null:j)||null,expertReportMap:C,refetch:g.refetch,generateReport:b,generateOverall:Z}};n.Z=d}}]); 2//# sourceMappingURL=7562-43060c01330a90ee.js.map
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.