1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83388],{83388:function(e,s,a){"use strict";a.r(s);var t=a(57437),r=a(84655);a(15375);var l=a(96624),n=a(77471),i=a(15220),c=a(67428),d=a(40089),o=a(62306),m=a(59036),h=a(58962),x=a(77398),u=a.n(x);a(2265);var g=a(36760),j=a.n(g),p=a(27589),f=a(90674);let _={new:{text:"ë°ê¸ìë£",content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-light-black",children:"ë°ê¸ ìë£"}),(0,t.jsx)(n.default,{src:l.gf.arrow_right_more_gray,alt:""})]})},progress:{text:"ê³ì½ì§í",content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-light-black",children:"ê³ì½ ì§í"}),(0,t.jsx)(n.default,{src:l.gf.arrow_right_more_gray,alt:""})]})},finish:{text:"ê³ì½ì±ì¬",content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-blue",children:"ê³ì½ ì±ì¬"}),(0,t.jsx)(n.default,{src:l.qx.arrow_right_blue,alt:""})]})}},v={impossible:{class:"ty01",text:"ë¶ì 격"},possible:{class:"ty04",text:"ì 격"},check:{class:"ty03",text:"ì¡°ê±´ë¶ ì 격"},none:{class:"gray",text:"í´ë¹ ìì"},pending:{class:"gray",text:"íì¸ì¤"}},N={danger:{class:"ty01",text:"ì§í ì í"},safe:{class:"ty04",text:"ì§í ê°ë¥"},warning:{class:"ty03",text:"ì¡°ì¹ í ì§í"},none:{class:"gray",text:"ì¶ê° íì¸ íì"},pending:{class:"gray",text:"íì¸ì¤"}};s.default=({isHome:e=!1,needreportlive:s=!0})=>{let{data:a,ref:x,inView:g}=(0,m.W)({queryKey:["get-recent-report-live","not-loading"],queryFn:()=>(0,o.Fi)("get",`https://api.safehomes.kr/risk/contract-history?listNum=2&StartlistNum=0${e?"&is_homes=true":""}`),select:e=>e.data.data.result,interval:3e4,enabled:!!e&&!!s}),{data:{pages:y,pageParams:b,count:w},isFetchingNextPage:F,isFetching:M,fetchNextPage:C,hasNextPage:D}=(0,h.N)({queryKey:["get-recent-report-live-page","not-loading"],queryFn:({pageParam:e=0})=>(0,o.Fi)("get",`https://api.safehomes.kr/risk/contract-history?listNum=${(e+1)*10}&StartlistNum=${10*e}`),getNextPageParam:(e,s,a,t)=>e.data.data.count>10*s.length?a+1:void 0,select:e=>({pages:e.pages.flatMap(e=>e.data.data).flatMap(e=>e.result),pageParams:e.pageParams,count:e.pages[0].data.data.count}),refetchInterval:!!g&&3e4,enabled:!e,initialPageParam:0,placeholderData:{pages:[{data:{data:{result:[],count:0}}}],pageParams:[0]}}),{observerRef:P}=(0,i.Z)({threshold:.6,hasNextPage:D,isFetchingNextPage:F,isFetching:M,fetchNextPage:C}),{ChangeConfirmNotice:$}=(0,d.useModal)(),{MovePage:S}=(0,c.Z)(),H=e=>{let s="insurance"===e.category,a=s?"ë³´ì¦ë³´í":"ìì¬ë±ê¸°",r=s?v[e.result_category||"pending"]?.text??e.result_category:N[e.result_category]?.text??e.result_category,l={new:{title:"ìì¬ë±ê¸° ë°ê¸ ìë£",text:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"p-wrap",children:(0,t.jsxs)("p",{children:[e.is_realtor?(0,t.jsxs)(t.Fragment,{children:["â",e.user_name," ì¤ê°ì¬âë"]}):(0,t.jsxs)(t.Fragment,{children:["â",e.user_name," ìì°¨ì¸â"]}),"ì´ ",a,"를 ë°ê¸ë°ì ê³ì½ì ê²í ì¤ì
ëë¤."]})})})},progress:{title:"ê³ì½ ì§í",text:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"p-wrap",children:(0,t.jsxs)("p",{children:["â",e.realtor_name," ì¤ê°ì¬âëê³¼ â",e.imchain_name," ","ìì°¨ì¸âì´ ",a,"를 ê³µì íì¬ ê³ì½ì ì¡°ì¨íê³ ììµëë¤."]})}),(0,t.jsxs)("table",{className:"common horizontal",children:[(0,t.jsx)("colgroup",{children:(0,t.jsx)("col",{width:100})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsxs)("th",{children:[a," ë°ê¸"]}),(0,t.jsx)("td",{children:(0,t.jsx)("span",{className:"font-black",children:u()(e.created_at).format("YY.MM.DD HH:mm")})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsxs)("th",{children:[a," ê²°ê³¼"]}),(0,t.jsx)("td",{children:(0,t.jsx)("span",{className:"font-black",children:r})})]})]})]})]})},finish:{title:"ê³ì½ ì±ì¬",text:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"p-wrap",children:(0,t.jsxs)("p",{children:["ê³µì ë ìì¬ë±ê¸° 결과를 ë°íì¼ë¡ â",e.imchain_name," ","ìì°¨ì¸âê³¼ â",e.realtor_name," ì¤ê°ì¬âëì ê³ì½ì´ ì±ì¬ëììµëë¤."]})}),(0,t.jsxs)("table",{className:"common horizontal",children:[(0,t.jsx)("colgroup",{children:(0,t.jsx)("col",{width:100})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsxs)("th",{children:[a," ë°ê¸"]}
1),(0,t.jsx)("td",{children:(0,t.jsx)("span",{className:"font-black",children:u()(e.created_at).format("YY.MM.DD HH:mm")})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsxs)("th",{children:[a," ê²°ê³¼"]}),(0,t.jsx)("td",{children:(0,t.jsx)("span",{className:"font-black",children:r})})]})]})]})]})}};$({...l[e.contract_status],text:(0,t.jsxs)(t.Fragment,{children:[l[e.contract_status].text,e.realtor_data?.realtor_type&&e.realtor_data?.realtor_type.includes("partner")&&(0,t.jsx)("div",{className:"dashed ",children:(0,t.jsx)(k,{realtor_data:{...e.realtor_data,last_consult_at:e.last_consult_at},ChangeConfirmNotice:$})})]})})};return(0,t.jsxs)("div",{className:j()("report-live-list",!s&&"visible"),ref:x,children:[s&&(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsxs)("div",{className:"title",children:[(0,t.jsx)("div",{className:"img",children:(0,t.jsx)(n.default,{src:l.vc.certi_mark,alt:""})}),(0,t.jsx)("div",{className:"main-text",children:"ì¤ìê° ìì¬ë±ê¸° íí©"}),(0,t.jsx)("button",{className:"common-type02",onClick:()=>{S({href:"/report-live"})},children:"ì ì²´ 보기"})]}),(0,t.jsx)("ul",{children:(e?a:y)?.map((s,a)=>{let r;let l=u()().diff(u()(s.created_at),"hours");if(l<24){if(l<1){let e=u()().diff(u()(s.created_at),"minutes");r=`${e}ë¶ ì `}else r=`${l}ìê° ì `}else r=u()(s.created_at).format("MM.DD a HH:mm");return t.jsxs("li",{children:[t.jsxs("div",{className:"f-1 "+(0===a&&e&&"active"),style:{maxWidth:"calc(100% - 100px)"},children:[0===a&&e&&t.jsx("div",{className:"status-dot"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{children:s.summary_addr})," ",t.jsxs("small",{children:["ë³´ì¦ê¸ ",o.KE(s.deposit)," \xb7 ",r]})]})]}),t.jsx("div",{className:"btn",onClick:()=>H(s),children:_[s.contract_status]?.content})]},`report-live-component-${s.created_at}`)})})]}),!e&&y.length<w&&(0,t.jsx)("div",{ref:P}),(0,t.jsxs)("nav",{className:"home-quick-links","aria-label":"주ì ì½í
ì¸ íì´ì§",children:[(0,t.jsx)(f.R,{placeholder:"ì 뢰ì 기ì¤",select_list:[{name:"ë¶ëì° ê³ì½ íë¨ ì¸íë¼ë",link:"/contract-decision-infrastructure"},{name:"Contract Decision OS ë°±ì",link:"/research/contract-decision-os"},{name:"ìì¬ë±ê¸° Reason Code",link:"/reason-codes"},{name:"리ì¤í¬ ë°ì´í° ë° ê¸°ì¤",link:"/data-sources"},{name:"Audit Logë",link:"/audit-log"},{name:"Safe Exit Protocolì´ë",link:"/safe-exit-protocol"},{name:"ìì¬ë±ê¸° 구조",link:"/structure/ansimdeunggi"},{name:"ê³ì½ ì´ì 리ì¤í¬ íì¸",link:"/pre-contract-risk"},{name:"ìì¬ë±ê¸°ì ë±ê¸°ë¶ë±ë³¸ì ì°¨ì´",link:"/comparison/ansimdeunggi-vs-register"},{name:"ìì¬ë±ê¸°ì ì ì¸ë³´ì¦ë³´íì ì°¨ì´",link:"/comparison/ansimdeunggi-vs-jeonse-guarantee"},{name:"Contract Decision OSì AVM",link:"/comparison/contract-decision-os-vs-avm"},{name:"ê¸ìµê¶ íì
",link:"/financial-partnerships"},{name:"ì¸ì´ííì¦ í¬ìì ì ë³´",link:"/investors"},{name:"ê³ì½ ì´ì íë¨ ìì¥ì ì íìíê°",link:"/market/contract-decision-os"},{name:"ê¸ìµí AVMì´ë",link:"/financial-avm"},{name:"íì¬ ìê°",link:"/company"}],selected:(0,t.jsxs)("span",{className:"toggle",children:["ì 뢰ì 기ì¤",(0,t.jsx)(r.Z,{color:"#999",width:5})]}),select:e=>{S({href:e.link})},link:!0}),(0,t.jsx)("span",{className:"divider","aria-hidden":"true"}),(0,t.jsx)(p.default,{href:"/insights",children:(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"absol",children:"ì¸ì¬ì´í¸"}),"ë¶ëì° íµì¬ ì ë³´"]})})]})]})};let k=({realtor_data:e,ChangeConfirmNotice:s})=>{let{MovePage:a}=(0,c.Z)(),r=e.sub_data.review_cnt>0?e.sub_data?.first_review?.review_data[0]:null;return(0,t.jsxs)("div",{className:"realtor-profile-card ",children:[(0,t.jsxs)("div",{className:"flex-row left start g-20 false",onClick:()=>{let s=e.juso.split(" ").slice(0,2);s[0].endsWith("ì")?s[0].slice(0,2):s[0]},children:[(0,t.jsx)("div",{className:`img prw ${!e.profile_img&&"empty"}`,children:e.profile_img&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.default,{src:e.profile_img,className:"profile",alt:""})})}),(0,t.jsxs)("p",{children:[(0,t.jsxs)("div",{className:"flex-row left",children:[e?.is_sticker_check&&(0,t.jsx)("div",{className:"certi-badge",children:(0,t.jsx)(n.default,{src:l.L_.certi_y,alt:"",className:"badge-icon"})}),e.realtor_name,"\xa0",["ëí"].includes(e?.division)?"ê³µì¸ì¤ê°ì¬":e?.division]}),(0,t.jsxs)("div",{className:"juso",children:[(0,t.jsx)(n.default,{src:l.pY.location_grayish,alt:""}),(0,t.jsx)("small",{className:"",children:e.juso})]}),(0,t.jsxs)("div",{className:"realtor-detail-box",children:[(0,t.jsx)("span",{className:"realtor-status",children:"ìì¬ì¨ë"}),e?.safety_temperature&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:j()("temp-display",{high:e?.safety_temperature>39,low:e?.safety_temperature<36}),children:[(0,t.jsxs)("span",{className:"temp-value",children:[String(e?.safety_temperature).slice(0,4),"\xb0C"]}),(0,t.jsxs)("div",{className:"temp-gauge",children:[(0,t.jsx)("div",{className:"gauge-bg"}),(0,t.jsx)("div",{className:"gauge-fill",style:{width:`${e?.safety_temperature}%`}})]})]})})]})]})]}
1),r?(0,t.jsxs)("div",{className:"review-box mt15",children:[(0,t.jsxs)("div",{className:"review-meta",children:[(0,t.jsxs)("span",{className:"font-light-black ",children:["'",r.customer_phone.replace(/^(\d{3})\d+(\d{4})$/,"$1-****-$2"),"'ëì ìë´ í기"]}),(0,t.jsx)("span",{className:"font-light-gray",children:u()(r.created_at).format("YY.MM.DD")})]}),(0,t.jsx)("p",{className:"review-text",dangerouslySetInnerHTML:{__html:r.review}})]}):""]})}},59036:function(e,s,a){"use strict";a.d(s,{W:function(){return l}});var t=a(2265),r=a(71632);function l(e){let{interval:s=3e4,rootMargin:a="200px",refetchOnVisible:l=!1,...n}=e,[i,c]=(0,t.useState)(null),[d,o]=(0,t.useState)(!1),m=(0,t.useCallback)(e=>c(e),[]);(0,t.useEffect)(()=>{if(!i)return;let e=new IntersectionObserver(([e])=>o(e.isIntersecting),{rootMargin:a});return e.observe(i),()=>e.disconnect()},[i,a]);let h=(0,r.a)({...n,refetchInterval:!!d&&s}),{refetch:x}=h;return(0,t.useEffect)(()=>{l&&d&&x()},[d,l,x]),{...h,ref:m,inView:d}}},15375:function(){}}]);
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.