PageSourceSearch

https://safehomes.kr/_next/static/chunks/21791.eddd20bc292263a9.js

js safehomes.kr collected 2026-09-24 11:45:52 UTC 6,940 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21791],{21791:function(e,a,s){s.r(a),s.d(a,{useUpdateModal:function(){return j}});var t=s(57437),l=s(77471),r=s(2265),i=s(96624),n=s(62306),d=s(40089),c=s(68575),o=s(63333),u=s(29827),m=s(21770),x=s(66403),h=s(23573),p=s(67428),_=s(84655);function j(){let[e,a]=(0,r.useState)(null),{insurStore:s,commonStore:j}=(0,c.v9)(e=>({insurStore:e.insurStore,commonStore:e.commonStore})),f=j.isPC,g=(0,c.I0)(),[N,b]=(0,r.useState)(e?e.data:""),{ChangeConfirmNotice:v}=(0,d.useModal)(),{MovePage:y}=(0,p.Z)(),k=(0,u.NL)(),{mutate:C}=(0,m.D)({mutationKey:["change-insure-data"],mutationFn:()=>(0,n.Fi)("post",`https://api.safehomes.kr/insure/detail/${e?.id}`,{category:e?.category,[e?.name]:N}),onMutate:()=>{v(null)},onSuccess(s,t,l){k.setQueryData(["get-pro-insur-data",String(e?.id),"not-loading"],s),a(null),b("")}}),{mutate:w}=(0,m.D)({mutationKey:["change-free-insure-data"],mutationFn:()=>(0,n.Fi)("patch",`https://api.safehomes.kr/insure/check/${e?.free_insure_id}`,{[e?.name]:N}),onMutate:()=>{v(null)},onSuccess(s){k.invalidateQueries({queryKey:["get-insur-free-data",String(e?.free_insure_id)]}),a(),b("")}}),S=()=>{e&&N&&(e.is_payed?C():(s.general&&g((0,o.OL)({general:{...s.general,base_data:{...s.general.base_data,[e.name]:N}}})),e?.free_insure_id?w():(a(),b("")))),v(null)},F={title:(0,t.jsx)(t.Fragment,{children:"선순위 보증금 입력"}),text:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"input-label-group mt30",children:[(0,t.jsxs)("div",{className:"label flex-row",children:["선순위 보증금 입력",(0,t.jsxs)("div",{className:"font-blue text-regular flex-row click",onClick:()=>{y({href:"/pc/payment/debt-prior",blank:!0})},style:{fontSize:"16px",width:"fit-content"},children:["선순위 보증금 분석하기",(0,t.jsx)(_.Z,{color:"#003478",width:5})]})]}),(0,t.jsx)(h.L,{placeholder:"선순위 보증금 입력",value:N?(0,n.oC)(N):N,onChange:e=>b((0,n.Y2)(e)),pr:"원"}),(0,t.jsx)("div",{className:"extra-box",children:(0,t.jsxs)("div",{className:"flex-row left",children:[(0,t.jsx)(l.default,{src:i.qx.alert_555,alt:"",style:{width:"12px"}}
1),"본인의 보증금은 제외하고 입력해 주세요."]})})]})}),buttons:[{className:"m-gray",text:"닫기",onClick:()=>v(null)},{className:"blue",text:"변경",onClick:()=>S()}]},E={title:(0,t.jsx)(t.Fragment,{children:"감정평가액 입력"}),text:f?(0,t.jsxs)("div",{className:"input-label-group mt30",children:[(0,t.jsxs)("div",{className:"label flex-row",children:["감정평가액 입력",(0,t.jsx)("span",{className:"font-blue text-medium",children:Number(N)>0&&(0,n.dN)(Number(N))})]}),(0,t.jsx)(h.L,{placeholder:"감정평가액 입력",value:N?(0,n.oC)(N):N,onChange:e=>b((0,n.Y2)(e)),pr:"원"})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"input-group mt50",children:[(0,t.jsx)("input",{type:"text",className:"n-text-type",placeholder:"감정평가액 입력",value:N?(0,n.oC)(N):N,onChange:e=>b((0,n.Y2)(e))}),(0,t.jsx)("div",{className:"pr",children:"원"}),(0,t.jsx)(x.Z,{SetAmount:e=>b(a=>+a+e)}),(0,t.jsx)("p",{className:"input-result mt20",children:(0,n.dN)(Number(N))})]})}),buttons:[{className:"m-gray",text:"닫기",onClick:()=>v(null)},{className:"blue",text:"변경",onClick:()=>S()}]};return(0,r.useEffect)(()=>{e&&v("prior_tenant"===e.category?F:E)},[e,N]),{updateModal:a}}a.default=({insur_data:e,is_shared:a})=>{let s=(0,c.I0)(),u=(0,c.v9)(e=>e.insurStore);(0,c.v9)(e=>e.commonStore);let{base_data:m,realtor_data:x,ready_to_issue:h}=e,{ChangeConfirmNotice:p,set_file_url:_}=(0,d.useModal)(),{debt_prior_tenant:f,appraisal_price:g}=u?.general?.base_data||e.base_data,N={prior_debt:{title:(0,t.jsx)(t.Fragment,{children:"선순위 보증금"}),text:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"detail-comment mt30",children:"다가구 주택 등에서, 현재 계약하려는 세입자보다 먼저 전입신고하여 대항력을 갖춘 다른 세입자들의 보증금 총액입니다. 이는 주택 경매 시 현재 세입자의 보증금보다 우선하여 변제될 수 있어, 보증금 회수 가능성에 직접적인 영향을 미치는 핵심 위험 요소입니다."})})},appraisal:{title:(0,t.jsx)(t.Fragment,{children:"감정평가액"}),text:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"detail-comment mt30",children:"감정평가사가 위치, 상태, 주변 시세 등을 종합적으로 고려하여 산정한 해당 주택의 객관적인 시장 가치입니다. 이는 보증보험 가입 한도를 정하는 '주택가격'의 핵심 기준으로 사용되며, 특히 아파트와 달리 시세가 명확하지 않은 주택의 위험도를 판단할 때 중요한 지표가 됩니다."})})}};(0,r.useEffect)(()=>{!u?.general?.base_data&&e&&s((0,o.OL)({general:e}))},[e]);let b=e=>{p({...e})},{updateModal:v}=j(),y=!a&&(!m.debt_prior_tenant||!h||m.debt_prior_tenant===m.origin_debt_prior_tenant),k=!a&&(!m.appraisal_price||!h||m.appraisal_price===m.origin_appraisal_price);return(0,t.jsxs)("div",{className:"element-card info-card",children:[(0,t.jsxs)("div",{className:"address flex-row left start",children:[(0,t.jsx)(l.default,{src:i.pY.location_grayish,alt:"",style:{height:"18px",width:"auto"}}),m.summary_addr]}),(0,t.jsx)("div",{className:"bt-line"}),(0,t.jsxs)("dl",{className:"common-info-list ",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:"보증금"}),(0,t.jsxs)("dd",{children:[(0,n.KE)(m.deposit),"\xa0",m.rent_price>0&&`(월세: ${(0,n.dN)(m.rent_price)})`]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:"수도권 유무"}),(0,t.jsx)("dd",{children:m.is_sudo?"수도권":"비수도권"})]}),x?.office_name&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:"담당 중개사"}),(0,t.jsxs)("dd",{children:[x.realtor_name,(0,t.jsx)("small",{className:"extra ",children:x.office_name})]})]}),m.is_dasaedae||(0,t.jsxs)("div",{children:[(0,t.jsxs)("dt",{className:"flex-row left ",children:["선순위 보증금",(0,t.jsx)(l.default,{src:i.qx.qmark_b,className:"click float-right",alt:"",onClick:()=>{b(N.prior_debt)}})]}),(0,t.jsxs)("dd",{className:"flex-row right",children:[+f>0?(0,n.KE)(f):y?"":"-",y&&(0,t.jsx)("button",{className:"light-blue",onClick:()=>{v({id:e.id,free_insure_id:e.base_data.free_insure_id,category:"prior_tenant",name:"debt_prior_tenant",data:f,is_payed:
1h})},children:+f>0?"변경":"미입력"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("dt",{className:"flex-row left ",children:["감정평가액",(0,t.jsx)(l.default,{src:i.qx.qmark_b,className:"click float-right",alt:"",onClick:()=>{b(N.appraisal)}})]}),(0,t.jsxs)("dd",{className:"flex-row right",children:[+g>0?(0,n.KE)(g):k?"":"-",k&&(0,t.jsx)("button",{className:"light-blue",onClick:()=>{v({id:e.id,free_insure_id:e.base_data.free_insure_id,category:"appraisal",name:"appraisal_price",data:g,is_payed:h})},children:+g>0?"변경":"미입력"})]})]})]})]})}}}]);

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.