PageSourceSearch

https://1point.kr/_next/static/chunks/7562-43060c01330a90ee.js

js 1point.kr collected 2026-10-07 22:01:24 UTC 49,682 bytes, 2 lines download raw bytes

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.