1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29620],{29620:function(e,s,t){t.r(s),t.d(s,{useUpdateModal:function(){return _}});var a=t(57437),l=t(77471),r=t(2265),n=t(96624),i=t(62306),d=t(40089),c=t(68575),o=t(63333),m=t(29827),u=t(21770),x=t(66403),h=t(23573),p=t(67428),j=t(84655);function _(){let[e,s]=(0,r.useState)(null),{insurStore:t,commonStore:_}=(0,c.v9)(e=>({insurStore:e.insurStore,commonStore:e.commonStore})),f=_.isPC,N=_?.isWoori,b=(0,c.I0)(),[g,v]=(0,r.useState)(e?e.data:""),{ChangeConfirmNotice:y}=(0,d.useModal)(),{MovePage:k}=(0,p.Z)(),C=(0,m.NL)(),{mutate:S}=(0,u.D)({mutationKey:["change-insure-data"],mutationFn:()=>(0,i.Fi)("post",`https://api.safehomes.kr/insure/detail/${e?.id}`,{category:e?.category,[e?.name]:g}),onMutate:()=>{y(null)},onSuccess(t,a,l){C.setQueryData(["get-pro-insur-data","not-loading",String(e?.id)],t),s(null),v("")}}),{mutate:w}=(0,u.D)({mutationKey:["change-free-insure-data"],mutationFn:()=>(0,i.Fi)("patch",`https://api.safehomes.kr/insure/check/${e?.free_insure_id}`,{[e?.name]:g}),onMutate:()=>{y(null)},onSuccess(t){C.invalidateQueries({queryKey:["get-insur-free-data",String(e?.free_insure_id)]}),s(),v("")}}),F=()=>{e&&g&&(e.is_payed?S():(b((0,o.OL)({general:{...t.general,base_data:{...t.general.base_data,[e.name]:g}}})),e?.free_insure_id?w():(s(),v("")))),y(null)},E={title:(0,a.jsx)(a.Fragment,{children:"ì ìì ë³´ì¦ê¸ ì
ë ¥"}),text:f?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"input-label-group mt30",children:[(0,a.jsxs)("div",{className:"label flex-row",children:["ì ìì ë³´ì¦ê¸ ì
ë ¥",(0,a.jsxs)("div",{className:"font-blue text-regular flex-row click",onClick:()=>{k({href:"/pc/payment/debt-prior",blank:!0})},style:{fontSize:"16px",width:"fit-content"},children:["ì ìì ë³´ì¦ê¸ ë¶ìí기",(0,a.jsx)(j.Z,{color:"#003478",width:5})]})]}),(0,a.jsx)("div",{className:"mt20",children:(0,a.jsx)(h.L,{placeholder:"ì ìì ë³´ì¦ê¸ ì
ë ¥",value:g?(0,i.oC)(g):g,onChange:e=>v((0,i.Y2)(e)),pr:"ì"})}),(0,a.jsx)("div",{className:"extra-box mt20",children:(0,a.jsxs)("div",{className:"flex-row left",children:[(0,a.jsx)(l.default,{src:n.qx.alert_555,alt:"",style:{width:"12px"}}
1),"본ì¸ì ë³´ì¦ê¸ì ì ì¸íê³ ì
ë ¥í´ ì£¼ì¸ì."]})})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt20 flex-row left",children:[(0,a.jsx)(l.default,{src:n.qx.rounded_alert_blue,alt:"",style:{width:"12px"}}),(0,a.jsx)("p",{className:"font-blue text-medium",children:"본ì¸ì ë³´ì¦ê¸ì ì ì¸íê³ ì
ë ¥í´ ì£¼ì¸ì."})]}),(0,a.jsxs)("div",{className:"input-group mt20",children:[(0,a.jsx)("input",{type:"text",className:"n-text-type",placeholder:"ì ìì ë³´ì¦ê¸ ì
ë ¥",value:g?(0,i.oC)(g):g,onChange:e=>v((0,i.Y2)(e))}),(0,a.jsx)("div",{className:"pr",children:"ì"}),(0,a.jsx)(x.Z,{SetAmount:e=>v(s=>+s+e)}),(0,a.jsx)("p",{className:"input-result mt20",children:(0,i.dN)(Number(g))})]})]}),buttons:[{className:"m-gray",text:"ë«ê¸°",onClick:()=>y(null)},{className:"blue",text:"ë³ê²½",onClick:()=>F()}],bottom:!f&&!N&&(0,a.jsx)("div",{className:"bottom-section mt25",children:(0,a.jsxs)("button",{className:"font-blue flex-row",onClick:()=>{k({href:f?"/pc/payment/debt-prior":"/payment/debt-prior",blank:!!f}),y(null)},children:["ì ìì ë³´ì¦ê¸ ë¶ìí기",(0,a.jsx)(l.default,{src:n.qx.arrow_right_blue,alt:"",style:{width:"5px"}})]})})},K={title:(0,a.jsx)(a.Fragment,{children:"ê°ì íê°ì¡ ì
ë ¥"}),text:f?(0,a.jsxs)("div",{className:"input-label-group mt30",children:[(0,a.jsxs)("div",{className:"label flex-row",children:["ê°ì íê°ì¡ ì
ë ¥",(0,a.jsx)("span",{className:"font-blue text-medium",children:Number(g)>0&&(0,i.dN)(Number(g))})]}),(0,a.jsx)(h.L,{placeholder:"ê°ì íê°ì¡ ì
ë ¥",value:g?(0,i.oC)(g):g,onChange:e=>v((0,i.Y2)(e)),pr:"ì"})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"input-group mt50",children:[(0,a.jsx)("input",{type:"text",className:"n-text-type",placeholder:"ê°ì íê°ì¡ ì
ë ¥",value:g?(0,i.oC)(g):g,onChange:e=>v((0,i.Y2)(e))}),(0,a.jsx)("div",{className:"pr",children:"ì"}),(0,a.jsx)(x.Z,{SetAmount:e=>v(s=>+s+e)}),(0,a.jsx)("p",{className:"input-result mt20",children:(0,i.dN)(Number(g))})]})}),buttons:[{className:"m-gray",text:"ë«ê¸°",onClick:()=>y(null)},{className:"blue",text:"ë³ê²½",onClick:()=>F()}]};return(0,r.useEffect)(()=>{e&&y("prior_tenant"===e.category?E:K)},[e,g]),{updateModal:s}}s.default=({insur_data:e,is_shared:s})=>{let t=(0,c.v9)(e=>e.insurStore),r=(0,c.v9)(e=>e.commonStore),{base_data:o,realtor_data:m,ready_to_issue:u}=e,{ChangeConfirmNotice:x,set_file_url:h}=(0,d.useModal)(),{debt_prior_tenant:p,appraisal_price:j}=t?.general?.base_data||e.base_data,f={prior_debt:{title:(0,a.jsx)(a.Fragment,{children:"ì ìì ë³´ì¦ê¸"}),text:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"detail-comment mt30",children:"ë¤ê°êµ¬ 주í ë±ìì, íì¬ ê³ì½íë ¤ë ì¸ì
ìë³´ë¤ ë¨¼ì ì ì
ì ê³ íì¬ ëíë ¥ì ê°ì¶ ë¤ë¥¸ ì¸ì
ìë¤ì ë³´ì¦ê¸ ì´ì¡ì
ëë¤. ì´ë 주í 경매 ì íì¬ ì¸ì
ìì ë³´ì¦ê¸ë³´ë¤ ì°ì íì¬ ë³ì ë ì ìì´, ë³´ì¦ê¸ íì ê°ë¥ì±ì ì§ì ì ì¸ ìí¥ì 미ì¹ë íµì¬ ìí ììì
ëë¤."})})},appraisal:{title:(0,a.jsx)(a.Fragment,{children:"ê°ì íê°ì¡"}),text:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"detail-comment mt30",children:"ê°ì íê°ì¬ê° ìì¹, ìí, ì£¼ë³ ìì¸ ë±ì ì¢
í©ì ì¼ë¡ ê³ ë ¤íì¬ ì°ì í í´ë¹ 주íì ê°ê´ì ì¸ ìì¥ ê°ì¹ì
ëë¤. ì´ë ë³´ì¦ë³´í ê°ì
íë를 ì íë '주íê°ê²©'ì íµì¬ 기ì¤ì¼ë¡ ì¬ì©ëë©°, í¹í ìíí¸ì ë¬ë¦¬ ìì¸ê° ëª
ííì§ ìì 주íì ìíë를 íë¨í ë ì¤ìí ì§íê° ë©ëë¤."})})}},N=e=>{x({...e})},{updateModal:b}=_(),g=!s&&(!o.debt_prior_tenant||!u||o.debt_prior_tenant===o.origin_debt_prior_tenant);return(0,a.jsx)("div",{className:"element-card info-card",children:(0,a.jsxs)("details",{className:"small",open:!!r.isPC,children:[(0,a.jsx)("summary",{children:(0,a.jsx)("div",{className:"address",children:o.summary_addr})}),(0,a.jsx)("div",{className:"details-content",children:(0,a.jsx)("div",{className:"info-list ",children:(0,a.jsxs)("div",{className:"part",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{children:"ë³´ì¦ê¸"}),(0,a.jsxs)("dd",{children:[(0,i.KE)(o.deposit),"\xa0",o.rent_price>0&&`(ìì¸: ${(0,i.dN)(o.rent_price)})`]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{children:"ìëê¶ ì 무"}),(0,a.jsx)("dd",{children:o.is_sudo?"ìëê¶":"ë¹ìëê¶"})]}),m?.office_name&&(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{children:"ë´ë¹ ì¤ê°ì¬"}),(0,a.jsxs)("dd",{children:[m.realtor_name,(0,a.jsx)("small",{className:"extra ",children:m.office_name})]})]}),o.is_dasaedae||(0,a.jsxs)("div",{children:[(0,a.jsxs)("dt",{children:["ì ìì ë³´ì¦ê¸",(0,a.jsx)(l.default,{src:n.T_.info,className:"click float-right",alt:"",onClick:()=>{N(f.prior_debt)}})]}),(0,a.jsxs)("dd",{className:"flex",children:[+p>0?(0,i.KE)(p):g?"":"-",g&&(0,a.jsx)("span",{className:"click",onClick:()=>{b({id:e.id,free_insure_id:e.base_data.free_insure_id,category:"prior_tenant",name:"debt_prior_tenant",data:p,is_payed:u})},children:+p>0?"ë³ê²½":"미ì
ë ¥"})]})]}),j>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("dt",{children:["ê°ì íê°ì¡",(0,a.jsx)(l.default,{src:n.T_.info,className:"click float-right",alt:"",onClick:()=>{N(f.appraisal)}})]}),(0,a.jsxs)("dd",{className:"flex",children:[+j>0?(0,i.KE)(j):"-",!1]})]})]})})})]})})}}}]);
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.