1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[49144],{49144:function(e,t,r){r.r(t);var s=r(57437),a=r(77471),n=r(41247),l=r(40089),i=r(62306),o=r(21770),c=r(2265),u=r(96624),d=r(68575),m=r(67428),h=r(22007),p=r(28935),x=r(66796);t.default=({is_shared:e,is_realtor:t,iros_update:r,id:g=null,insur:_})=>{let f=(0,d.v9)(e=>e.insurStore),j=(0,d.v9)(e=>e.commonStore),k=j.isRealtor,N=_||f.general,[b,F]=(0,c.useState)(null),{MovePage:y}=(0,m.Z)(),C=(0,d.I0)(),{external_url:v}=(0,x.Z)(),{mutate:S}=(0,o.D)({mutationKey:["share-realtor-to-customer"],mutationFn:e=>(0,i.Fi)("post",`https://api.safehomes.kr/insure/realtor/${N.id}`,{category:"share_realtor_to_customer",phone:e}),onSuccess:e=>{if(e.data.error)E({title:e.data.error});else{let{chat_id:t}=e.data.data;E(null),F(null),y({href:`/chat/${t||"list"}`})}}}),{mutate:w}=(0,o.D)({mutationKey:["change-insur-to-report"],mutationFn:()=>(0,i.Fi)("post","https://api.safehomes.kr/insure/change-report",{insure_id:N.id}),onSuccess:e=>{e.data.error?E({title:e.data.error}):y({href:`/my-shopping/report/loading?report_id=${e.data.data.risk_id}&shared_insur=true`})}}),{mutate:$}=(0,o.D)({mutationKey:["post-risk-free-check-from-insur"],mutationFn:e=>(0,i.Fi)("post","https://api.safehomes.kr/insure/preview",e),onSuccess:e=>{let t=e.data.data;C((0,h.CH)({general:{...t,insure_id:N.id}})),window.localStorage.product_data=JSON.stringify({...t,current_data:"report",insure_id:N.id}),y({href:j.isPC?"/pc/payment/module/report":`/payment/report/${t.id}`,is_login:!0})},onError:e=>{let t=e&&e.response&&e.response.data.error;(0,p.e)(E,t,v)}}),{ChangeConfirmNotice:E}=(0,l.useModal)();return(0,c.useEffect)(()=>{b?.endsWith("done")?setTimeout(()=>{E(null),F(null)},5e3):null!==b&&E({title:"ë³´ì¦ë³´í ì ë°ì§ë¨ ê³µì ",text:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-content",children:"ê³µì í ìì°¨ì¸ì í´ëí°ë²í¸ë¥¼ ì
ë ¥í´ ì£¼ì¸ì"}),(0,s.jsx)(n.Z,{value:b.slice(0,13),onChange:e=>{F(null===e?"":(0,i.HU)(e))},label:"ìì°¨ì¸ ì°ë½ì²",placeholder:"í´ëí°ë²í¸ ì
ë ¥",maxLength:13})]}),buttons:[{text:"íì¸",className:`basic ${13===b.length?"blue":"gray"}`,onClick:()=>{"string"==typeof b&&13===b.length&&S(b.replaceAll("-",""))}}],onClose:()=>F(null)})},[b]),t&&!e&&(0,s.jsxs)(s.Fragment,{children:[b?.endsWith("done")&&(0,s.jsx)("div",{className:"full-screen",onClick:()=>{E(null),F(null)},children:(0,s.jsxs)("div",{className:"result-comment",children:[(0,s.jsx)(a.default,{src:u.pY.check_circle_green,alt:"",className:"check-circle"}),"ë³´ì¦ë³´í ì ë°ì§ë¨ ì ë¬ ìë£"]})}),(0,s.jsx)("div",{className:"Page-btn flex-row",children:t&&!e?(0,s.jsx)("button",{className:"basic blue",onClick:()=>{k.realtor_admin_check?F(""):E({title:k.business_card?(0,s.jsx)(s.Fragment,{children:"ì¤ê°ì¬ ì¸ì¦ ì§íì¤"}):(0,s.jsx)(s.Fragment,{children:"íí¸ë ì¸ì¦ í ì´ì©í´ì£¼ì¸ì."}),text:k.business_card?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-content mt20",children:"ë±ë¡íì ëª
í¨ì íì¸íê³ ììµëë¤."}),(0,s.jsx)("p",{className:"text-content mt20",children:"ì¸ì¦ì ìì
ì¼ ê¸°ì¤ 1ì¼ ì´ë´ì ìë£ëë©°, ì£¼ë§ ë° ê³µí´ì¼ìë ìµë 3ì¼ê¹ì§ ììë ì ììµëë¤."})]}):(0,s.jsx)("p",{className:"text-content mt20",children:"ìì°¨ì¸ ê³µì 기ë¥ì ìì¬ë±ê¸° ì¤ê°ì¬ìê²ë§ ì ê³µë©ëë¤."})})},children:"ê³ ê°ìê² ìì¬ë³´ë´ê¸°"}):!!t&&(0,s.jsx)(s.Fragment,{})})]})}}}]);
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.