PageSourceSearch

https://gobang.kr/_next/static/chunks/pages/place/[id]-8eb0077f55006340.js

js gobang.kr collected 2026-09-24 10:01:06 UTC 179,616 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2787],{16808:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/place/[id]",function(){return r(47434)}])},60670:function(e,n,r){"use strict";var t=r(85893),s=r(99276),i=r(27446),a=(r(76205),r(8287),r(67294)),c=r(39765),o=r(58248);function l(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}n.Z=function(e){var n=(0,a.useContext)(c.r),u=(0,a.useRef)(null);if(e.images)return(0,t.jsx)(o.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){l(e,n,r[n])}))}return e}({},e,{className:"gallery-pop",onVisibleChange:function(t){t?function(){var t={zoom:!1,arrowPrev:!0,arrowNext:!0,bgOpacity:1,loop:!1,dataSource:e.images,showHideAnimationType:"none",pswpModule:function(){return r.e(5687).then(r.bind(r,15826))},padding:{top:40,bottom:40,left:0,right:0}};t.dataSource=e.images,u.current=new s.Z(t),new i.Z(u.current,{type:"below",captionContent:function(n){return e.images[n.index].caption}}),u.current.init(),u.current.on("destroy",(function(){u.current&&(n.closePopup(),u.current=null)})),e.idx?u.current.loadAndOpen(e.idx):u.current.loadAndOpen(0)}():u.current&&(u.current.destroy(),u.current=null)}}))}},60971:function(e,n,r){"use strict";var t=r(85893),s=r(67294);n.Z=function(e){var n=(0,s.useRef)(null),r=(0,s.useRef)(!1);return(0,s.useEffect)((function(){n.current.querySelectorAll("div > *")[0].focus()}),[e.show]),(0,s.useEffect)((function(){if(!r.current){var t=function(){var e=!0,n=!1,r=void 0;try{for(var t,i=s[Symbol.iterator]();!(e=(t=i.next()).done);e=!0){var a=t.value;if(document.activeElement===a)return!0}}catch(c){n=!0,r=c}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}return!1},s=n.current.querySelectorAll("div > *"),i=!0,a=!1,c=void 0;try{for(var o,l=s[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var u=o.value;u.setAttribute("tabIndex",1),u.addEventListener("blur",(function(){setTimeout((function(){t()||e.onClose()}),100)}))}}catch(d){a=!0,c=d}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}r.current=!0}}),[e.children]),(0,t.jsx)("div",{ref:n,className:"popup-menu"+(e.show?" show":""),children:e.children})}},70419:function(e,n,r){"use strict";var t=r(34051),s=r.n(t),i=r(55649);function a(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function c(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function c(e){a(i,t,s,c,o,"next",e)}function o(e){a(i,t,s,c,o,"throw",e)}c(void 0)}))}}n.Z=function(){var e=(0,i.Z)();return{createAllianceInquiry:function(){var n=c(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.post("/v2/alliance-inquiries",r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),createAiSummaryFeedback:function(){var n=c(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.post("/v2/ai-summary-feedback",r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}}},51640:function(e,n,r){"use strict";var t=r(34051),s=r.n(t),i=r(55649);function a(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function c(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function c(e){a(i,t,s,c,o,"next",e)}function o(e){a(i,t,s,c,o,"throw",e)}c(void 0)}))}}n.Z=function(){var e=(0,i.Z)();return{fetchUserContactLogList:function(){var n=c(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.get("/v2/auth/contacts",r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),postUserContactLog:function(){var n=c(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.post("/v2/auth/contact",r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),deleteUserContactLog:function(){var n=c(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.delete("/v2/auth/contacts",r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}}},47434:function(e,n,r){"use strict";r.r(n),r.d(n,{PlacePage:function(){return Ss}
1,__N_SSP:function(){return Os},default:function(){return Cs},getPlaceServerSideProps:function(){return Ps}});var t=r(34051),s=r.n(t),i=r(85893),a=r(67294),c=r(39765),o=function(){var e=(0,a.useContext)(c.r);return(0,i.jsxs)("div",{className:"page-not-found",children:[(0,i.jsxs)("div",{className:"content",children:[(0,i.jsx)("div",{className:"warning",children:(0,i.jsx)("img",{src:"/images/[email protected]"})}),(0,i.jsx)("div",{className:"txt",children:(0,i.jsx)("span",{children:"\uc11c\ubc84 \uc5d0\ub7ec\uc785\ub2c8\ub2e4."})}),(0,i.jsx)("div",{className:"txt2",children:(0,i.jsxs)("span",{children:["\uc11c\ubc84 \uc5d0\ub7ec\uc785\ub2c8\ub2e4.",(0,i.jsx)("br",{}),"\uad00\ub9ac\uc790\uc5d0\uac8c \ubb38\uc758\ud574 \uc8fc\uc138\uc694",(0,i.jsx)("br",{}),"(Tel.050-7879-9980)"]})}),(0,i.jsx)("div",{className:"btn",children:(0,i.jsx)("a",{onClick:function(){e.referrer()?e.back():e.push("/")},children:"\uc774\uc804 \ud398\uc774\uc9c0\ub85c"})})]}),(0,i.jsxs)("div",{className:"bg-bottom",children:[(0,i.jsx)("div",{}),(0,i.jsx)("div",{})]})]})},l=r(78235),u=r(62923),d=r(76050),m=r(47310),h=r(19845),p=r.n(h),x=r(28348),f=r(90123),v=r(61375),j=r(58731),g=r(5071),N=r(47299),b=r(52307),y=r.n(b),_=r(30381),w=r.n(_),k=(r(21082),r(33731),r(74747),r(36797),p().bind(y())),O=function(e){var n=e.title,r=e.children,t=e.addClass;return(0,i.jsxs)("dl",{className:k("house-section-item",t),children:[(0,i.jsx)("dt",{children:n}),(0,i.jsx)("dd",{children:r})]})},P=a.memo(O),E=p().bind(y()),S=function(e){var n=e.house;return(0,i.jsxs)("section",{className:E("house-section"),children:[(0,i.jsx)("div",{className:E("wrap-title"),children:(0,i.jsx)("h2",{children:"\uac74\ubb3c\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:E("wrap-contents"),children:[(0,i.jsx)(P,{title:"\uc5d8\ub9ac\ubca0\uc774\ud130",children:n.elevatorCount>0?"\uc788\uc74c ("+n.elevatorCount+"\ub300)":"\uc5c6\uc74c"}),(0,i.jsxs)(P,{title:"\ucd1d \uc8fc\ucc28 \ub300\uc218",children:["\ucd1d ",n.parkingCount,"\ub300"]}),(0,i.jsxs)(P,{title:"\uac74\ubb3c \uc6a9\ub3c4",children:[n.mainPurpsName,"\xa0",function(){if(!g.Z.isEmpty(n.etcPurps)&&n.mainPurpsCode!==n.etcPurps)return(0,i.jsxs)(i.Fragment,{children:[">\xa0",n.etcPurps]})}()]}),(0,i.jsx)(P,{title:"\uc0ac\uc6a9\uc2b9\uc778\uc77c",children:g.Z.isEmpty(n.buildingApproveYyyymmdd)?"\uc815\ubcf4\uc5c6\uc74c":w()(n.buildingApproveYyyymmdd).format("YYYY.MM.DD")}),n.isViolation&&(0,i.jsx)(P,{title:"\uc704\ubc18\uac74\ucd95\ubb3c",children:"\ud574\ub2f9"})]})]})},C=r(69611),T=p().bind(y()),I=function(e){var n=e.house;return(0,i.jsxs)("section",{className:T("house-section"),children:[(0,i.jsx)("div",{className:T("wrap-title"),children:(0,i.jsx)("h2",{children:"\uc2dc\uc124\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:T("wrap-contents"),children:[n.heatingSystem&&(0,i.jsx)(P,{title:"\ub09c\ubc29\uc2dc\uc124",children:(0,i.jsx)("span",{children:C.q1[n.heatingSystem]})}),n.coolingFacilities.length>0&&(0,i.jsx)(P,{title:"\ub0c9\ubc29\uc2dc\uc124",children:(0,i.jsx)("span",{children:n.coolingFacilities.map((function(e){return C.Lb[e]})).join(", ")})}),n.livingFacilities.length>0&&(0,i.jsx)(P,{title:"\uc0dd\ud65c\uc2dc\uc124",children:(0,i.jsx)("span",{children:n.livingFacilities.map((function(e){return C.QP[e]})).join(", ")})}),n.securityFacilities.length>0&&(0,i.jsx)(P,{title:"\uc548\uc804\uc2dc\uc124",children:(0,i.jsx)("span",{children:n.securityFacilities.map((function(e){return C.Tu[e]})).join(", ")})}),n.additionalOptions.length>0&&(0,i.jsx)(P,{title:"\uc635\uc158",children:(0,i.jsx)("span",{children:n.additionalOptions.map((function(e){return C.$r[e]})).join(", ")})})]})]})},R=r(69165),A=p().bind(y()),M="guaranteez",L=function(e){var n=e.house,r=(0,a.useContext)(c.r),t=(0,a.useRef)(null),s=(0,a.useState)(!1),o=s[0],l=s[1],u=(0,a.useState)(!1),d=u[0],m=u[1];return(0,a.useEffect)((function(){if(t.current){var e=t.current.scrollHeight;l(e>119)}}),[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:A("house-section","intro"),children:[(0,i.jsx)("div",{className:A("wrap-title"),children:(0,i.jsx)("h2",{children:"\uc18c\uac1c"})}),(0,i.jsxs)("div",{className:A("wrap-contents"),children:[n.isKrgGuaranteez&&(0,i.jsxs)("div",{className:A("wrap-guaranteez"),children:[(0,i.jsxs)("div",{className:A("title-box"),children:[(0,i.jsxs)("div",{className:A("title"),children:[(0,i.jsx)("img",{src:"/images/icon_colored_guaranteez_22.svg"}),(0,i.jsx)("p",{children:"\uac1c\ub7f0\ud2f0\uc988 \uc804\uc6a9 \ub9e4\ubb3c"})]}),(0,i.jsxs)("div",{className:A("more"),onClick:function(){r.openPopup(M)},children:[(0,i.jsx)("p",{children:"\ub354 \uc54c\uc544\ubcf4\uae30"}),(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_12.svg"})]})]}),(0,i.jsx)("div",{className:A("hr")}),(0,i.jsxs)("div",{className:A("guide-text"),children:["\uac1c\ub7f0\ud2f0\uc988\ub294 ",(0,i.jsx)("strong",{children:"\ubcf4\uc99d\uae08 \uc5c6\uc774 \uc6d4\uc138 \uacc4\uc57d"}),"\uc744 \ud560 \uc218 \uc788\ub3c4\ub85d, \uc784\ucc28\uc778\uc758 \uc6d4\uc138\ub97c \ub300\uc2e0 \ubcf4\uc7a5\ud574\uc8fc\ub294 \ubcf4\uc99d \uc11c\ube44\uc2a4\uc785\ub2c8\ub2e4."]}),(0,i.jsxs)("ul",{className:A("guide-text-list"),children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("img",{src:"/images/icon_colored_check_skyblue90_24.svg"}),(0,i.jsx)("p",{children:"\ubcf4\uc99d\uae08 \ubd80\ub2f4 \uc5c6\uc774 \uc6d4\uc138 \uacc4\uc57d"})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("img",{src:"/images/icon_colored_check_skyblue90_24.svg"}),(0,i.jsx)("p",{children:"\ubaa9\ub3c8 \ubb36\uc774\uc9c0 \uc54a\uace0, \ub0b4 \uc0b6\uc5d0 \ud22c\uc790"})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("img",{src:"/images/icon_colored_check_skyblue90_24.svg"}),(0,i.jsx)("p",{children:"\ucd1d 600\uc5b5 \ubcf4\uc99d\uae08 \uc808\uac10\ud55c \uac80\uc99d\ub41c \uc11c\ube44\uc2a4"})]})]})]}),(0,i.jsx)("div",{className:A("txt-intro"),ref:t,children:function(){var e="";return n.intro&&(e=n.intro.trim()),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:A("wrap-intro-guaranteez",d&&"visible"),children:(0,i.jsx)("p",{className:A("intro-text"),children:e})}),o&&(0,i.jsxs)("a",{className:A("btn-more"),onClick:function(){return m(!d)},children:[(0,i.jsx)("p",{children:d?"\uc811\uae30":"\ub354\ubcf4\uae30"}),(0,i.jsx)("img",{src:d?"/images/icon_chevron_up_line_bold_gray60_12.svg":"/images/icon_chevron_down_line_bold_gray60_12.svg"})]})]})}()})]})]}),(0,i.jsx)(R.Z,{popupName:M,type:"detail"})]})}
1,F=r(55649),Z=r(89331),Y=r(8081);function D(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function U(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){D(i,t,s,a,c,"next",e)}function c(e){D(i,t,s,a,c,"throw",e)}a(void 0)}))}}var z=p().bind(y()),V="realEstate",H=function(e){var n=e.house,r=(0,a.useContext)(c.r),t=(0,v.QT)(),o=(0,F.Z)(),l=(0,a.useState)(null),u=l[0],d=l[1],m=(0,a.useState)(0),h=m[0],p=m[1],x=function(){var e=U(s().mark((function e(){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.get("/v2/house-count",{officeNo:n.officeNo});case 2:r=e.sent,p(r.result);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=U(s().mark((function e(){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get("/v1/offices/"+n.officeNo);case 2:r=e.sent,d(r.DATA);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){f(),x()}),[n]),u?(0,i.jsxs)("section",{className:z("house-section","agent-office-info-section"),children:[(0,i.jsx)("div",{className:z("wrap-title"),children:(0,i.jsx)("h2",{children:"\uc911\uac1c\uc0ac\ubb34\uc18c \uc815\ubcf4"})}),(0,i.jsxs)("div",{className:z("wrap-contents"),children:[(0,i.jsxs)("div",{className:z("office-info"),children:[(0,i.jsxs)("div",{className:z("title"),children:[(0,i.jsx)("img",{src:Y.Z.make(Y.b.OFFICE,u.NO,u.OFFICE_TITLE_IMAGE||"",112,112)||""}),(0,i.jsx)("div",{className:z("name"),children:u.NAME})]}),(0,i.jsxs)("div",{className:z("info"),children:[(0,i.jsxs)("dl",{className:z("item"),children:[(0,i.jsx)("dt",{children:"\ub300\ud45c\uba85"}),(0,i.jsx)("dd",{children:u.OWNER_NAME})]}),(0,i.jsxs)("dl",{className:z("item"),children:[(0,i.jsx)("dt",{children:"\ub4f1\ub85d\ubc88\ud638"}),(0,i.jsx)("dd",{children:u.OFFICE_REG_NO})]}),(0,i.jsxs)("dl",{className:z("item"),children:[(0,i.jsx)("dt",{children:"\uc8fc\uc18c"}),(0,i.jsxs)("dd",{children:[u.ADDR_BUNJI," ",u.ADDR_DETAIL]})]})]}),(0,i.jsx)("div",{className:z("intro"),children:(0,i.jsx)("p",{children:u.INTRO})})]}),h>0&&(0,i.jsxs)("button",{className:z("btn-more-office"),onClick:function(){return r.openPopup(V)},children:[h,"\uac1c\uc758 \ub9e4\ubb3c \ub354\ubcf4\uae30"]})]}),(0,i.jsx)(Z.Z,{popupName:V,office:u})]}):null},K=r(48617),G=r(91496),W=p().bind(y()),q=function(e){var n,r=e.house;return(0,i.jsxs)("section",{className:W("house-section"),children:[(0,i.jsx)("div",{className:W("wrap-title"),children:(0,i.jsx)("h2",{children:"\uac00\uaca9\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:W("wrap-contents"),children:[(0,i.jsx)(P,{title:"\uc784\ub300\uc720\ud615",children:r.leaseType===C.U7.JEONSE?"\uc804\uc138":"\uc6d4\uc138"}),(0,i.jsx)(P,{title:"\ubcf4\uc99d\uae08",children:K.Z.getDepositText(r.minDeposit,r.maxDeposit)}),r.leaseType===C.U7.MONTHLY&&(0,i.jsxs)(P,{title:"\uc6d4 \uc774\uc6a9\ub8cc",children:[r.maxPrice,"\ub9cc\uc6d0"]}),(0,i.jsxs)(P,{title:"\uad00\ub9ac\ube44",addClass:W("agent-maintenace-fee"),children:[(0,i.jsx)("p",{children:r.maintenanceFee>0?G.Z.getPrice(r.maintenanceFee)+"\ub9cc\uc6d0":"\uc5c6\uc74c"}),r.maintenanceFeeItems&&r.maintenanceFeeItems.length>0&&(0,i.jsxs)("p",{children:["-\xa0 ",null===(n=r.maintenanceFeeItems)||void 0===n?void 0:n.map((function(e){return C.cw[e]})).join(", ")," \ud3ec\ud568"]}),!g.Z.isEmpty(r.maintenanceFeeDesc)&&(0,i.jsxs)("p",{children:["-\xa0 ",r.maintenanceFeeDesc]})]})]})]})},B=r(73951),X=r(69260),Q=r.n(X),J=JSON.parse('{"assets":[],"ddd":0,"fr":30,"h":100,"ip":0,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 1","hd":false,"sr":1,"ks":{"a":{"a":0,"k":[32.75,28.917]},"o":{"a":1,"k":[{"t":0,"s":[100],"i":{"x":0.75,"y":0.75},"o":{"x":0.25,"y":0.25}},{"t":36,"s":[100],"i":{"x":0.75,"y":0.75},"o":{"x":0.25,"y":0.25}},{"t":45,"s":[0],"i":{"x":0,"y":0},"o":{"x":1,"y":1}}]},"p":{"a":0,"k":[50,50]},"r":{"a":0,"k":0},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":0.19,"y":0.99},"o":{"x":0.75,"y":0.03}},{"t":9,"s":[130,130],"i":{"x":0.56,"y":1},"o":{"x":0.44,"y":0}},{"t":13.5,"s":[95,95],"i":{"x":0.56,"y":1},"o":{"x":0.44,"y":0}},{"t":16.5,"s":[110,110],"i":{"x":0.75,"y":0.75},"o":{"x":0.25,"y":0.25}},{"t":19.5,"s":[100,100],"i":{"x":0,"y":0},"o":{"x":1,"y":1}}]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":1,"ip":0,"op":61,"st":0,"bm":0,"shapes":[{"ty":"sh","hd":false,"nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[1.018,2.056],[-0.009,3.47],[-9.962,0],[-3.234,-4.413],[-5.818,0],[0,-10.232],[1.467,-2.718],[2.636,-3.014],[7.917,-6.866],[0.76,0.66],[6.871,7.091]],"o":[[-2.617,-2.963],[-1.769,-2.986],[0,-10.232],[5.818,0],[3.234,-4.413],[9.962,0],[0,3.325],[-0.957,2.093],[-6.972,7.602],[-0.761,0.66],[-7.755,-6.746],[0,0]],"v":[[9.38,37.033],[3.439,29.144],[0.75,19.28],[18.528,0.75],[32.75,8.176],[46.972,0.75],[64.75,19.28],[62.45,28.458],[56.532,36.502],[34.078,56.589],[31.423,56.589],[9.381,37.033]]}}},{"ty":"fl","hd":false,"bm":0,"c":{"a":0,"k":[1,0.431,0.369]},"r":1,"o":{"a":0,"k":100}}]},{"ddd":0,"ind":2,"ty":4,"nm":"Screen","hd":false,"sr":1,"ks":{"a":{"a":0,"k":[50,50]},"o":{"a":0,"k":100},"p":{"a":0,"k":[50,50]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":61,"st":0,"bm":0,"shapes":[{"ty":"gr","hd":false,"nm":"Screen Group","bm":0,"it":[{"ty":"rc","hd":false,"nm":"Screen","d":1,"p":{"a":0,"k":[50,50]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]}},{"ty":"fl","hd":false,"bm":0,"c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":0}},{"ty":"tr","nm":"Transform","a":{"a":0,"k":[0,0]},"o":{"a":0,"k":100},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"np":0}]}
1],"meta":{"g":"@phase-software/lottie-exporter 0.7.0"},"nm":"","op":60,"v":"5.6.0","w":100}');function $(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}var ee=p().bind(y()),ne=function(e){var n,r=e.isZzim,t=e.handleZzim,c=e.zzimCountToday,o=e.zzimCountYesterday,l=(0,f.ZP)(),u=(0,a.useState)(!1),d=u[0],m=u[1],h=(0,a.useState)(0),p=h[0],x=h[1],v=(0,a.useState)(void 0),j=v[0],N=v[1];return(0,a.useEffect)((function(){N(c>=3?"\uc624\ub298 ".concat(g.Z.setComma(c),"\uba85\uc774 \ucc1c\ud55c \ubc29"):o>=3?"\uc5b4\uc81c ".concat(g.Z.setComma(o),"\uba85\uc774 \ucc1c\ud55c \ubc29"):"\ub9c8\uc74c\uc5d0 \ub4e0\ub2e4\uba74?")}),[c,o]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:ee("wrap-zzim-banner",r?"off":"on"),onClick:(n=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l.trackZzimSocialProof(),e.next=3,t();case 3:x(p+1),m(!0);case 5:case"end":return e.stop()}}),e)})),function(){var e=this,r=arguments;return new Promise((function(t,s){var i=n.apply(e,r);function a(e){$(i,t,s,a,c,"next",e)}function c(e){$(i,t,s,a,c,"throw",e)}a(void 0)}))}),children:(0,i.jsxs)("div",{className:ee("zzim-banner"),children:[(0,i.jsxs)("div",{className:ee("contents"),children:[(0,i.jsx)("p",{children:j}),(0,i.jsx)("h3",{children:"\ub193\uce58\uc9c0 \uc54a\uac8c \ucc1c \ud574\ub450\uc138\uc694!"})]}),(0,i.jsxs)("div",{className:ee("btn-zzim"),children:[(0,i.jsx)("img",{src:"/images/icon_heart_line_red90_20.svg"}),(0,i.jsx)("p",{children:"\ucc1c"})]})]})}),d&&(0,i.jsx)("div",{className:ee("zzim-animation-icon"),children:(0,i.jsx)(Q(),{animationData:J,loop:!1,autoplay:!0,onComplete:function(){return m(!1)}},p)})]})},re=p().bind(y()),te=function(e){var n,r=e.house,t=e.areaType,s=e.changeAreaType,a=e.isZzim,c=e.handleZzim;return(0,i.jsxs)("section",{className:re("house-section"),children:[(0,i.jsx)("div",{className:re("wrap-title"),children:(0,i.jsx)("h2",{children:"\ub9e4\ubb3c\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:re("wrap-contents"),children:[(0,i.jsxs)(P,{title:"\uce35 \uc218",children:[(0,i.jsxs)("span",{children:["\uc0ac\uc6a9 ",(n=r,-.5==n.floor?"\ubc18\uc9c0\uce35":9999==n.floor?"\uc625\ud0d1\ubc29":n.isFloorDisplayed?n.floor+"\uce35":n.floorTotal/2<n.floor?"\uace0\uce35":"\uc800\uce35")]}),r.floorTotal&&(0,i.jsxs)("span",{children:[" / \uc804\uccb4 ",r.floorTotal,"\uce35"]})]}),(0,i.jsx)(P,{title:"\ubc29 \uad6c\uc870",children:B.K1[r.roomType]}),(0,i.jsxs)(P,{title:"\ubc29 \uc218/\uc695\uc2e4 \uc218",children:[r.roomType===B.DY.TWO?"2\uac1c":r.roomType===B.DY.THREE_PLUS?"3\uac1c+":"1\uac1c","/",r.bathroomCount,"\uac1c"]}),(0,i.jsxs)(P,{title:"\uba74\uc801",addClass:re("area-info"),children:[t===xs.squareMeter?(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:["\uc804\uc6a9 ",Math.round(r.exclusiveArea),"m\xb2"]}),r.supplyArea&&(0,i.jsx)("span",{children:" / "}),r.supplyArea&&(0,i.jsxs)("span",{children:["\uacf5\uae09 ",Math.round(r.supplyArea),"m\xb2"]})]}):(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:["\uc804\uc6a9 ",Math.round(r.exclusiveArea/3.3),"\ud3c9"]}),r.supplyArea&&(0,i.jsx)("span",{children:" / "}),r.supplyArea&&(0,i.jsxs)("span",{children:["\uacf5\uae09 ",Math.round(r.supplyArea/3.3),"\ud3c9"]})]}),(0,i.jsxs)("a",{className:re("btn-area-change"),onClick:function(){return s(t===xs.squareMeter?xs.pyeong:xs.squareMeter)},children:[(0,i.jsx)("img",{src:"/images/icon_change_line_bold_gray80_12.svg"}),t===xs.squareMeter?"\ud3c9":"m\xb2"]})]}),(0,i.jsxs)(P,{title:"\uc8fc\uc2e4 \ubc29\ud5a5",children:[r.mainRoomOrientation&&C.Uy[r.mainRoomOrientation],"\ud5a5",r.mainRoomOrientationBasis&&"("+C.jE[r.mainRoomOrientationBasis]+" \uae30\uc900)"]}),(0,i.jsx)(P,{title:"\uc8fc\ucc28",children:function(){var e="";return r.isParkingAvailable?(e="\uac00\ub2a5",0==r.parkingFee?e+="(\ubb34\ub8cc)":e+="("+G.Z.getPriceWithUnit(r.parkingFee)+")"):e="\ubd88\uac00\ub2a5",e}()}),(0,i.jsx)(P,{title:"\ucd5c\uc18c\uacc4\uc57d\uae30\uac04",children:r.minResidencePeriod>0&&null!=r.minResidencePeriod?Math.floor(r.minResidencePeriod/30)+"\uac1c\uc6d4 \uc774\uc0c1":"\uc81c\ud55c \uc5c6\uc74c"}),(0,i.jsxs)(P,{title:"\uc785\uc8fc\uac00\ub2a5\uc77c",children:["00000000"===r.moveInDate?"\uc989\uc2dc \uc785\uc8fc \uac00\ub2a5":w()(r.moveInDate).format("YYYY.MM.DD"),r.isMoveInDateNegotiable?"(\ud611\uc758 \uac00\ub2a5)":""]})]}),(0,i.jsx)(ne,{isZzim:a,handleZzim:c,zzimCountToday:r.zzimCountToday,zzimCountYesterday:r.zzimCountYesterday})]})},se=r(635),ie=r(61068),ae=r(74502),ce=p().bind(y()),oe=function(){var e=(0,a.useContext)(c.r),n=(0,v.Q2)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:ce("checklist-banner-section"),children:(0,i.jsxs)("div",{className:ce("wrap-checklist-banner"),onClick:function(){g.Z.localStorage.get("IS_FIRST_CHECKLIST_DETAIL_POP")?n.goPage("/checklist"):e.openPopup(ae.zD.GUIDE_MOADL)},children:[(0,i.jsxs)("div",{className:ce("contents"),children:[(0,i.jsx)("h3",{children:"\uc88b\uc740 \ubc29 \uccb4\ud06c\ub9ac\uc2a4\ud2b8"}),(0,i.jsx)("p",{children:"\ubc29 \ubcf4\ub7ec \uac00\uae30 \uc804\uc5d0 \uaf2d \uc0b4\ud3b4\ubcf4\uc138\uc694!"})]}),(0,i.jsx)("div",{className:ce("icon-image"),children:(0,i.jsx)("img",{src:"/images/image_place_checklist.png"})})]})}),(0,i.jsx)(ie.Z,{popupName:ae.zD.GUIDE_MOADL,type:"detail"})]})},le=a.memo(oe);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function de(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,s,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(i.push(t.value),!n||i.length!==n);a=!0);}catch(o){c=!0,s=o}finally{try{a||null==r.return||r.return()}finally{if(c)throw s}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return ue(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ue(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var me=p().bind(y()),he=a.forwardRef((function(e,n){var r=e.house,t=(0,a.useRef)(null),s=(0,a.useContext)(c.r),o=(0,a.useMemo)((function(){var e={},n=!0,t=!1,s=void 0;try{for(var i,a=r.nearSubways[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var c=i.value;e[c.name]||(e[c.name]=[]),e[c.name].push(c)}}catch(o){t=!0,s=o}finally{try{n||null==a.return||a.return()}finally{if(t)throw s}}return e}),[r.nearSubways]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("section",{className:me("house-section","location"),ref:n,children:[(0,i.jsx)("div",{className:me("wrap-title"),children:(0,i.jsx)("h2",{children:"\uc704\uce58"})}),(0,i.jsxs)("div",{className:me("wrap-contents"),children:[(0,i.jsxs)("div",{className:me("location-info"),children:[(0,i.jsxs)("div",{className:me("full-address"),children:[(0,i.jsxs)("p",{className:me("text"),children:[" ",r.addrFullBunji]}),(0,i.jsxs)("a",{className:me("btn-copy"),onClick:function(){g.Z.copyToClipboard(r.addrFullBunji),g.Z.Browser.isAndroid()||s.toast("\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \uc8fc\uc18c\uac00 \ubcf5\uc0ac\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",{bottom:80})},children:[(0,i.jsx)("img",{src:"/images/icon_copy_line_gray40_14.svg"}),(0,i.jsx)("p",{children:"\ubcf5\uc0ac"})]})]}),(0,i.jsxs)("div",{className:me("wrap-rows"),children:[(0,i.jsx)("div",{className:me("row"),children:Object.entries(o).map((function(e,n){var r=de(e,2),t=r[0],s=r[1];return(0,i.jsxs)("div",{className:me("row-item"),children:[s.map((function(e,n){return(0,i.jsx)("img",{src:"/images/subway/".concat(e.line,".svg")},n)})),(0,i.jsx)("p",{children:t})]},n)}))}),r.nearSchools.length>0&&(0,i.jsx)("div",{className:me("row"),children:r.nearSchools.map((function(e,n){return(0,i.jsxs)("div",{className:me("row-item"),children:[(0,i.jsx)("img",{src:"/images/icon_university_circle_filled_gray60_18.svg"}),(0,i.jsx)("p",{children:e.name})]},n)}))})]})]}),(0,i.jsx)("div",{className:me("wrap-map"),children:(0,i.jsx)(se.bz,{ref:t,center:{latLng:{lat:r.latitude,lng:r.longitude},offsetY:-22},height:200,marker:{type:"overlay",lat:r.latitude,lng:r.longitude,zIndex:1e4,component:(0,i.jsx)("div",{className:"marker-default"})}})}),(0,i.jsxs)("div",{className:me("map-btn"),children:[(0,i.jsx)("a",{className:me("btns","btn-road"),onClick:function(){t.current&&t.current.open("road")},children:"\ub85c\ub4dc\ubdf0"}),(0,i.jsx)("a",{className:me("btns","btn-near"),onClick:function(){t.current&&t.current.open("map")},children:"\uc8fc\ubcc0 \ud3b8\uc758\uc2dc\uc124"})]})]}),(0,i.jsx)(le,{})]})})})),pe=a.memo(he),xe=r(62912),fe=r(19489),ve=p().bind(y()),je=function(e){var n=e.sections,r=e.children,t=e.onTabStickyChange,s=(0,fe.vL)(n),c=s.tabRef,o=s.sectionRef,l=s.activeTab,u=s.handleTabClick,d=s.isAutoClickRef,m=(0,a.useRef)(null),h=(0,a.useRef)(!1);return(0,a.useEffect)((function(){var e=function(){if(m.current&&!h.current){var n,r=m.current.getBoundingClientRect(),s=(null===(n=document.getElementById("wrap"))||void 0===n?void 0:n.classList.contains("install-banner"))?112:56;r.top<=s&&(h.current=!0,null===t||void 0===t||t(!0),window.removeEventListener("scroll",e))}};return window.addEventListener("scroll",e),e(),function(){return window.removeEventListener("scroll",e)}}),[t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:m,className:ve("tab-container","detail-tab-container"),children:(0,i.jsx)(xe.Z,{className:ve("tab-slide"),children:(0,i.jsx)("ul",{children:n.map((function(e,n){return(0,i.jsx)("a",{ref:function(e){return c.current[n]=e},className:ve("tab-item",l===e.id?"on":"off"),onClick:function(){return!d.current&&u(n)},children:e.title},e.id)}))})})}),r({sectionRef:o})]})},ge=p().bind(y()),Ne=function(e){var n=e.house,r=e.areaType,t=e.changeAreaType,s=e.isZzim,o=e.handleZzim,l=e.onTabStickyChange,u=((0,a.useContext)(c.r),!!(n.heatingSystem||n.coolingFacilities.length>0||n.livingFacilities.length>0||n.securityFacilities.length>0||n.additionalOptions.length>0)),d=[{id:10,title:"\uac00\uaca9\uc815\ubcf4",render:!0,component:(0,i.jsx)(q,{house:n})},{id:11,title:"\uac74\ubb3c\uc815\ubcf4",render:!0,component:(0,i.jsx)(S,{house:n})},{id:12,title:"\ub9e4\ubb3c\uc815\ubcf4",render:!0,component:(0,i.jsx)(te,{house:n,areaType:r,changeAreaType:t,isZzim:s,handleZzim:o})},{id:13,title:"\uc2dc\uc124\uc815\ubcf4",render:u,component:(0,i.jsx)(I,{house:n})},{id:14,title:"\uc18c\uac1c",render:!0,component:(0,i.jsx)(L,{house:n})},{id:15,title:"\uc704\uce58",render:!0,component:(0,i.jsx)(pe,{house:n})},{id:16,title:"\uc911\uac1c\uc0ac\ubb34\uc18c \uc815\ubcf4",render:!0,component:(0,i.jsx)(H,{house:n})}].filter((function(e){return e.render}));return(0,i.jsx)(je,{sections:d,onTabStickyChange:l,children:function(e){var n=e.sectionRef;return(0,i.jsx)("article",{className:ge("wrap-sections"),children:d.map((function(e,r){return(0,i.jsx)("div",{ref:function(e){return n.current[r]=e},children:e.component},e.id)}))})}})},be=r(12657),ye=r(60670),_e=r(30719),we=p().bind(y()),ke="buildingImageGallery",Oe=function(e){var n=e.house,r=e.isZzim,t
1=e.handleZzim,s=(0,a.useContext)(c.r),o=(0,a.useState)(0),l=o[0],u=o[1],d=(0,a.useState)(null),m=d[0],h=d[1],p=(0,a.useState)(!1),x=(p[0],p[1],(0,a.useState)(0));x[0],x[1];return(0,i.jsxs)("section",{className:we("house-section"),children:[(0,i.jsx)("div",{className:we("wrap-title"),children:(0,i.jsx)("h2",{children:"\uac74\ubb3c\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:we("wrap-contents"),children:[n.buildingType&&(0,i.jsx)(P,{title:"\uac74\ubb3c \ud615\ud0dc",children:C.mS[n.buildingType]}),(0,i.jsxs)(P,{title:"\uce35 \uc218",children:[n.useFloors&&(0,i.jsxs)("span",{children:["\uc0ac\uc6a9 ",K.Z.getFloorsText(n.useFloors,n.totalFloor||0)[1]]}),n.totalFloor&&(0,i.jsxs)("span",{children:[" / \uc804\uccb4 ",n.totalFloor,"\uce35"]})]}),(0,i.jsx)(P,{title:"\uc8fc\ucc28",children:n.isParkingAvailable?"\uac00\ub2a5":"\ubd88\uac00\ub2a5"}),(0,i.jsx)(P,{title:"\uc5d8\ub9ac\ubca0\uc774\ud130",children:n.hasElevator?"\uc788\uc74c":"\uc5c6\uc74c"}),n.structureImages&&n.structureImages.length>0&&(0,i.jsx)(P,{title:"\ud3c9\uba74\ub3c4",addClass:we("has-swiper"),children:(0,i.jsx)(_e.tq,{className:we("wrap-structure-img"),freeMode:!0,slidesPerView:"auto",spaceBetween:8,centeredSlides:!1,style:{width:"100%",paddingRight:"96px"},children:n.structureImages.map((function(e,r){return(0,i.jsx)(_e.o5,{className:we("slide"),onClick:function(){var e=[],t=!0,i=!1,a=void 0;try{for(var c,o=n.structureImages[Symbol.iterator]();!(t=(c=o.next()).done);t=!0){var l=c.value;e.push({src:K.Z.makeImageUrl(n.service,n.imageKey,l.fileName||"",{width:1440,height:-1}),width:l.width,height:l.height,caption:l.tags})}}catch(d){i=!0,a=d}finally{try{t||null==o.return||o.return()}finally{if(i)throw a}}h(e),u(r),s.openPopup(ke)},children:(0,i.jsx)("div",{className:we("wrap-img"),children:(0,i.jsx)(be.E1,{src:K.Z.makeImageUrl(n.service,n.imageKey,e.fileName||"",{width:1440,height:-1}),centerCrop:!1})})},r)}))})})]}),(0,i.jsx)(ne,{isZzim:r,handleZzim:t,zzimCountToday:n.zzimCountToday,zzimCountYesterday:n.zzimCountYesterday}),(0,i.jsx)(ye.Z,{popupName:ke,images:m,idx:l})]})},Pe=r(60312),Ee=p().bind(y()),Se=function(e){var n=e.house,r=((0,a.useContext)(c.r),(0,a.useRef)(null)),t=(0,a.useState)(0),s=t[0],o=t[1],l=(0,a.useState)(!1),u=l[0],d=l[1],m=(0,a.useState)(!1),h=m[0],p=m[1],x=(0,a.useState)(!1),f=x[0],v=x[1],j=function(e){o(e),d(!1)},N=function(e){return(0,i.jsxs)("div",{className:Ee("wrap-content"),children:[(0,i.jsx)("div",{className:Ee("content",u&&"visible"),ref:r,children:e||"\uc18c\uac1c\uae00 \ub4f1\ub85d\uc744 \uc900\ube44\uc911\uc785\ub2c8\ub2e4."}),h&&(0,i.jsxs)("div",{className:Ee("wrap-btn-more"),onClick:function(){return d(!u)},children:[(0,i.jsx)("div",{className:Ee("btn-more"),children:u?"\uc811\uae30":"\ub354\ubcf4\uae30"}),(0,i.jsx)("img",{src:u?"/images/icon_chevron_up_line_bold_gray60_12.svg":"/images/icon_chevron_down_line_bold_gray60_12.svg"})]})]})};return(0,a.useEffect)((function(){if(r.current){var e=r.current.scrollHeight;p(e>120)}}),[s]),(0,i.jsxs)("section",{className:Ee("house-section","intro-section"),children:[(0,i.jsx)("div",{className:Ee("wrap-title"),children:(0,i.jsx)("h2",{children:"\uc18c\uac1c"})}),(0,i.jsxs)("ul",{className:Ee("nav"),children:[(0,i.jsx)("li",{className:Ee("item",0===s&&"on"),onClick:function(){return j(0)},children:"\uc9c0\uc810\uc18c\uac1c"}),n.moveInSteps&&(0,i.jsx)("li",{className:Ee("item",1===s&&"on"),onClick:function(){return j(1)},children:"\uc785\uc8fc\uc808\ucc28"}),n.moveInRequirements&&(0,i.jsx)("li",{className:Ee("item",2===s&&"on"),onClick:function(){return j(2)},children:"\uc785\uc8fc\uc870\uac74"}),n.refundInfo&&(0,i.jsx)("li",{className:Ee("item",3===s&&"on"),onClick:function(){return j(3)},children:"\ud658\ubd88\uc815\ucc45"})]}),(0,i.jsxs)("div",{className:Ee("house-info"),children:[n.promoBannerType===C.TU.PROMO01&&!g.Z.isEmpty(n.notice)&&(0,i.jsxs)("div",{className:Ee("notice-banner"),onClick:function(){return v(!f)},children:[(0,i.jsxs)("div",{className:Ee("title"),children:[(0,i.jsx)("img",{src:"/images/icon_megaphone_dot_gray100_20.svg"}),(0,i.jsx)("p",{className:Ee("content",f&&"all"),children:n.notice})]}),(0,i.jsx)("img",{src:f?"/images/icon_chevron_up_line_bold_gray60_12.svg":"/images/icon_chevron_down_line_bold_gray60_12.svg"})]}),0===s&&(0,i.jsxs)(i.Fragment,{children:[n.youtubeUrl&&(0,i.jsx)("div",{className:Ee("intro-youtube"),children:(0,i.jsx)("iframe",{src:n.youtubeUrl,frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),N(n.houseInfo)]}),1===s&&N(n.moveInSteps),2===s&&N(n.moveInRequirements),3===s&&N(n.refundInfo),(n.homepageUrl||n.previewUrl||n.gobangHomepageUrl)&&(0,i.jsxs)("div",{className:Ee("wrap-web-btns"),children:[n.homepageType!==C.D9.NONE&&(0,i.jsxs)("a",{onClick:function(){return n.homepageType===C.D9.GOBANG?Pe.ZP.open2(n.gobangHomepageUrl):Pe.ZP.o
1pen2(n.homepageUrl)},children:[(0,i.jsx)("img",{src:"/images/icon_url_line_gray80_16.svg "}),(0,i.jsx)("p",{children:"\ud648\ud398\uc774\uc9c0"})]}),n.previewUrl&&(0,i.jsxs)("a",{onClick:function(){return Pe.ZP.open2(n.previewUrl)},children:[(0,i.jsx)("img",{src:"/images/icon_url_line_gray80_16.svg "}),(0,i.jsx)("p",{children:"\uc5f0\uad00 \ud3ec\uc2a4\ud305"})]})]})]})]})},Ce=p().bind(y()),Te=function(e){var n=e.house,r=[];return 0!==n.maxPrice&&r.push(C.U7.MONTHLY),0===n.minPrice&&r.push(C.U7.JEONSE),(0,i.jsxs)("section",{className:Ce("house-section"),children:[(0,i.jsx)("div",{className:Ce("wrap-title"),children:(0,i.jsx)("h2",{children:"\uac00\uaca9\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:Ce("wrap-contents"),children:[(0,i.jsx)(P,{title:"\uc784\ub300\uc720\ud615",children:r.map((function(e){return C.Nk[e]})).join(", ")}),(0,i.jsx)(P,{title:"\ubcf4\uc99d\uae08",children:K.Z.getDepositText(n.minDeposit,n.maxDeposit)}),r.includes(C.U7.MONTHLY)&&(0,i.jsx)(P,{title:"\uc6d4 \uc774\uc6a9\ub8cc",children:K.Z.getMonthPriceText(n.minPrice,n.maxPrice)}),n.rooms.length>0&&(0,i.jsx)(P,{title:"\uad00\ub9ac\ube44",children:K.Z.getMaintenanceFeeText(n.rooms)})]})]})},Ie=p().bind(y()),Re=function(e){var n=e.title,r=e.data;e.names,e.values,e.hasPopup,(0,a.useContext)(c.r);return r&&0!==r.length?(0,i.jsxs)("dl",{className:Ie("house-section-item"),children:[(0,i.jsx)("dt",{children:n}),(0,i.jsx)("dd",{children:r.map((function(e,n){var t=n===r.length-1;return(0,i.jsxs)("span",{className:Ie("house-facilities-item"),children:[e.name,!t&&", "]},e.value)}))})]}):null},Ae=p().bind(y()),Me=a.forwardRef((function(e,n){var r,t=e.house;return(0,i.jsxs)("section",{className:Ae("house-section"),ref:n,children:[(0,i.jsx)("div",{className:Ae("wrap-title"),children:(0,i.jsx)("h2",{children:"\uacf5\uc6a9\uc2dc\uc124"})}),(0,i.jsxs)("div",{className:Ae("wrap-contents"),children:[(0,i.jsx)(Re,{title:"\ub09c\ubc29\uc2dc\uc124",data:t.heatingSystem?[{value:t.heatingSystem,name:C.Nf[t.heatingSystem]}]:[]}),(0,i.jsx)(Re,{title:"\uc138\ud0c1\uc2dc\uc124",data:t.laundryFacilities.map((function(e){return{value:e,name:C.e6[e]}}))}),(0,i.jsx)(Re,{title:"\uccad\uacb0\uc2dc\uc124",data:(null===(r=t.cleanFacilities)||void 0===r?void 0:r.map((function(e){var n,r=null===(n=t.cleanFacilityExtras)||void 0===n?void 0:n.find((function(n){return n.key===e}));return{value:e,name:(null===r||void 0===r?void 0:r.value)?"".concat(C.VM[e],"(").concat(r.value,"\uac1c)"):C.VM[e]}})))||[]}),(0,i.jsx)(Re,{title:"\uc8fc\ubc29\uc2dc\uc124",data:t.kitchenFacilities.map((function(e){return{value:e,name:C.o3[e]}}))}),(0,i.jsx)(Re,{title:"\uc0dd\ud65c\uc2dc\uc124",data:t.livingFacilities.map((function(e){return{value:e,name:C.r6[e]}}))}),(0,i.jsx)(Re,{title:"\uc548\uc804\uc2dc\uc124",data:t.securityFacilities.map((function(e){return{value:e,name:C.s3[e]}}))}),(0,i.jsx)(Re,{title:"\uacf5\uac04\uc2dc\uc124",data:t.privateSpaces.map((function(e){return{value:e,name:C.q4[e]}}))}),(0,i.jsx)(Re,{title:"\uc81c\uacf5 \ube44\ud488",data:t.providedItems.map((function(e){return{value:e,name:C.hj[e]}}))})]})]})})),Le=r(40193),Fe=r(44040),Ze=r(27266);function Ye(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function De(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Ue(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return Ye(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ye(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ze=p().bind(y()),Ve="roomImageGallery",He=[{code:B.b1.PRV_FACILITY13,icon:"icon_refrigerator_line_gray100_30.svg",label:"\uac1c\uc778\ub0c9\uc7a5\uace0"},{code:B.b1.PRV_FACILITY17,icon:"icon_washingmachine_line_gray100_30.svg",label:"\uac1c\uc778\uc138\ud0c1\uae30"},{code:B.b1.PRV_FACILITY07,icon:"icon_airconditioner_line_gray100_30.svg",label:"\uac1c\uc778\uc5d0\uc5b4\ucee8"},{code:B.b1.PRV_FACILITY10,icon:"icon_bathroom_line_gray100_30.svg",label:"\uac1c\uc778\ud654\uc7a5\uc2e4"},{code:B.b1.PRV_FACILITY09,icon:"icon_doorlock_line_gray100_30.svg",label:"\uac1c\uc778\ub3c4\uc5b4\ub77d"},{code:B.b1.PRV_FACILITY15,icon:"icon_fan_line_gray100_30.svg",label:"\uc120\ud48d\uae30"},{code:B.b1.PRV_FACILITY08,icon:"icon_storagecloset_line_gray100_30.svg",label:"\uc218\ub0a9\uc7a5"},{code:B.b1.PRV_FACILITY16,icon:"icon_desklamp_line_gray100_30.svg",label:"\uc2a4\ud0e0\ub4dc"}],Ke=[{code:B.b1.PRV_FACILITY06,icon:"icon_closet_line_gray100_30.svg",label:"\uc637\uc7a5"},{code:B.b1.PRV_FACILITY12,icon:"icon_lan_line_gray100_30.svg",label:"\uc720\uc120LAN"},{code:B.b1.PRV_FACILITY04,icon:"icon_chair_line_gray100_30.svg",label:"\uc758\uc790"},{code:B.b1.PRV_FACILITY03,icon:"icon_desk_line_gray100_30.svg",label:"\ucc45\uc0c1"},{code:B.b1.PRV_FACILITY02,icon:"icon_blanket_line_gray100_30.svg",label:"\uce68\uad6c\ub958"},{code:B.b1.PRV_FACILITY01,icon:"icon_bed_line_gray100_30.svg",label:"\uce68\ub300"},{code:B.b1.PRV_FACILITY05,icon:"icon_monitor_line_gray100_30.svg",label:"LCD\ubaa8\ub2c8\ud130"},{code:B.b1.PRV_FACILITY11,icon:"icon_tv_line_gray100_30.svg",label:"TV"}],Ge=function(e){var n=(0,a.useContext)(c.r),r=(0,a.useRef)(null),t=(0,a.useRef)([]),s=(0,a.useRef)([]),o=(0,a.useRef)(null),l=(0,a.useState)(0),u=l[0],d=l[1],m=(0,a.useState)([]),h=m[0],p=m[1],x=(0,a.useState)(!1),f=x[0],v=x[1],j=(0,a.useState)(e.activeIdx),g=j[0],N=j[1],b=(0,a.useState)(xs.squareMeter),y=b[0],_=b[1],w=(0,a.useState)([]),k=w[0],O=w[1],P=(0,a.useState)([]),E=P[0],S=P[1];if((0,a.useEffect)((function(){var e;null===(e=s.current[g])||void 0===e||e.click()}),[g]),e.rooms)return(0,i.jsxs)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){De(e,n,r[n])}))}return e}({className:ze("room-pop")},e,{fullscreen:!0,onVisibleChange:function(n){var s;if(r.current){if(n){var i=e.rooms.map((function(e,n){var r=t.current[n];return!!r&&r.scrollHeight>120}));O(i),S(new Array(e.rooms.length).fill(!1))}r.current.slideTo(e.activeIdx,0),null===(s=o.current)||void 0===s||s.slideTo(0),v(n)}}},{},{children:[(0,i.jsx)(Le.Z,{className:ze("header"),transition:!1,back:function(){n.closePopup()}}
1),(0,i.jsx)("div",{className:ze("tab-container","room-tab-container"),children:(0,i.jsx)(xe.Z,{className:ze("tab-slide"),children:(0,i.jsx)("ul",{children:e.rooms.map((function(e,n){return(0,i.jsx)("a",{ref:function(e){return s.current[n]=e},className:ze("tab-item",g==n?"on":"off"),onClick:function(){return function(e){var n;r.current&&(N(e),r.current.slideTo(e),null===(n=o.current)||void 0===n||n.slideTo(0))}(n)},children:e.name},n)}))})})}),(0,i.jsx)(_e.tq,{className:ze("wrap-room"),centeredSlides:!0,autoHeight:!0,slidesPerView:"auto",observer:!0,observeParents:!0,onSwiper:function(e){return r.current=e},onSlideChange:function(e){return N(e.realIndex)},children:e.rooms.map((function(r,s){return(0,i.jsxs)(_e.o5,{className:ze("item"),children:[(0,i.jsx)(_e.tq,{onSwiper:function(e){return o.current=e},nested:!0,className:ze("wrap-img"),modules:[Fe.tl],pagination:{type:"fraction"},children:f&&r.roomImages.map((function(t,s){return(0,i.jsx)(_e.o5,{onClick:function(){var t=[],i=!0,a=!1,c=void 0;try{for(var o,l=r.roomImages[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var u=o.value;t.push({src:K.Z.makeImageUrl(e.house.service,e.house.imageKey,u.fileName||"",{width:1440,height:-1}),width:u.width,height:u.height,caption:u.tags})}}catch(m){a=!0,c=m}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}p(t),d(s),n.openPopup(Ve)},children:(0,i.jsx)(be.E1,{src:K.Z.makeImageUrl(e.house.service,e.house.imageKey,t.fileName||"",{width:1440,height:-1})})},s)}))}),(0,i.jsxs)("article",{className:ze("wrap-contents"),children:[(0,i.jsx)("section",{className:ze("wrap-title"),children:(0,i.jsxs)("div",{className:ze("title-info"),children:[(0,i.jsxs)("div",{className:ze("title-status"),children:[(0,i.jsx)("h2",{children:r.name}),function(){if(e.house.isUcareOnAirEnabled){var n=Be(r.unitCount,r.vacancyUnitCount,r.contractEndAt),t=n.className,s=n.statusText;return(0,i.jsx)("div",{className:ze("status",t),children:(0,i.jsx)("p",{children:s})})}}()]}),(0,i.jsx)("div",{className:ze("type"),children:B.OT[r.roomType]})]})}),(0,i.jsxs)("section",{className:ze("detail-info"),children:[(0,i.jsx)("div",{className:ze("title"),children:(0,i.jsx)("h2",{children:"\uac00\uaca9\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:ze("info-contents"),children:[(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:"\uc784\ub300\uc720\ud615"}),(0,i.jsx)("dd",{children:0===r.price||null==r.price?"\uc804\uc138":"\uc6d4\uc138"})]}),(0,i.jsx)("div",{className:ze("hr")}),(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:"\ubcf4\uc99d\uae08"}),(0,i.jsx)("dd",{children:0==r.deposit||null==(null===r||void 0===r?void 0:r.deposit)?"\uc5c6\uc74c":G.Z.getPriceWithUnit(r.deposit)})]}),(0,i.jsx)("div",{className:ze("hr")}),0!==r.price&&null!=(null===r||void 0===r?void 0:r.price)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:"\uc6d4\uc138"}),(0,i.jsxs)("dd",{children:[r.price,"\ub9cc\uc6d0"]})]}),(0,i.jsx)("div",{className:ze("hr")})]}),(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:"\uad00\ub9ac\ube44"}),(0,i.jsx)("dd",{children:-1==r.maintenanceFee?(0,i.jsx)("p",{className:ze("price"),children:"1/n"}):0==r.maintenanceFee?(0,i.jsx)("p",{className:ze("price"),children:"\uc5c6\uc74c"}):9999==r.maintenanceFee?(0,i.jsx)("p",{className:ze("price"),children:"\uc788\uc74c"}):(0,i.jsx)("p",{className:ze("price"),children:K.Z.getMaintenanceFeeText([r])})})]})]})]}),(0,i.jsxs)("section",{className:ze("detail-info"),children:[(0,i.jsx)("div",{className:ze("title"),children:(0,i.jsx)("h2",{children:"\uc0c1\uc138\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:ze("info-contents"),children:[(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:"\uc774\uc6a9\uae30\uac04"}),(0,i.jsx)("dd",{children:K.Z.getDurationTextForRoom(r)})]}),r.area&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:ze("hr")}),(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:"\uba74\uc801"}),(0,i.jsxs)("dd",{className:ze("area"),children:[y===xs.squareMeter?r.area+"m\xb2":Math.round(r.area/3.3*10)/10+"\ud3c9",(0,i.jsxs)("a",{className:ze("btn-area-change"),onClick:function(){return _(y===xs.squareMeter?xs.pyeong:xs.squareMeter)},children:[(0,i.jsx)("img",{src:"/images/icon_change_line_bold_gray80_12.svg"}),(0,i.jsx)("span",{children:y===xs.squareMeter?"\ud3c9":"m\xb2"})]})]})]})]}),r.wallMaterial&&r.wallMaterial.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:ze("hr")}),(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:"\ubcbd \uc7ac\uc9c8"}),(0,i.jsx)("dd",{children:B.It[r.wallMaterial]})]})]})]})]}),r.description&&(0,i.jsxs)("section",{className:ze("guide-info"),children:[(0,i.jsx)("div",{className:ze("title"),children:(0,i.jsx)("h2",{children:"\uc124\uba85"})}),(0,i.jsxs)("div",{className:ze("guide-text"),children:[(0,i.jsx)("div",{className:ze("text",E[s]?"visible":"hide"),ref:function(e){e&&(t.current[s]=e)},children:r.description}),k[s]&&(0,i.jsxs)("div",{className:ze("wrap-btn-more"),children:[(0,i.jsx)("p",{className:ze("btn-more"),onClick:function(){var e=Ue(E);e[s]=!e[s],S(e)},children:E[s]?"\uc811\uae30":"\ub354\ubcf4\uae30"}),(0,i.jsx)("img",{src:E[s]?"/images/icon_chevron_up_line_bold_gray60_12.svg":"/images/icon_chevron_down_line_bold_gray60_12.svg"})]})]})]}),(0,i.jsxs)("section",{className:ze("option-info"),children:[(0,i.jsx)("div",{className:ze("title"),children:(0,i.jsx)("h2",{children:"\uc635\uc158"})}),(0,i.jsxs)("div",{className:ze("option-contents"),children:[(0,i.jsx)("div",{className:ze("options"),children:He.map((function(e){return(0,i.jsxs)("div",{className:ze("item",{on:r.privateFacilities.includes(e.code)}),children:[(0,i.jsx)("img",{className:ze("icon"),src:"/images/facility/".concat(e.icon)}),(0,i.jsx)("div",{className:ze("text"),children:e.label})]},e.code)}))}),(0,i.jsx)("div",{className:ze("options"),children:Ke.map((function(e){return(0,i.jsxs)("div",{className:ze("item",{on:r.privateFacilities.includes(e.code)}),children:[(0,i.jsx)("img",{className:ze("icon"),src:"/images/facility/".concat(e.icon)}),(0,i.jsx)("div",{className:ze("text"),children:e.label})]},e.code)}))})]})]})]})]},s)}))}),(0,i.jsx)(ye.Z,{popupName:Ve,images:h,idx:u})]}))},We=p().bind(y()),qe="houseRoom",Be=function(e,n,r){if(e&&0!==e){if(n>0||g.Z.isEmpty(r)||w()(r)<w()())return{className:"posible-check-in",statusText:"\uc785\uc2e4\uac00\ub2a5"};var t=w()(r).format("YYYY-MM-DD"),s=w()().format("YYYY-MM-DD"),i=w()(t).diff(w()(s),"days");return i<=30?{className:"planned-check-out",statusText:"\ud1f4\uc2e4\uc608\uc815 (D-".concat(i,")")}:{className:"fully-booked",statusText:"\uc785\uc2e4\uc644\ub8cc"}}return{className:"need-check",statusText:"\ud655\uc778\ud544\uc694"}},Xe=a.forwardRef((function(e,n){var r=e.house,t=(0,a.useState)([]),s=t[0],o=t[1],l=(0,a.useState)([]),u=l[0],d=l[1],m=(0,a.useState)(!1),h=m[0],p=m[1],x=(0,a.useState)(0),f=x[0],v=x[1],j=(0,a.useRef)(null),g=(0,a.useRef)(null),N=(0,a.useRef)(null),b=(0,a.useContext)(c.r);if((0,a.useEffect)((function(){var e=r.rooms.filter((function(e){return e.isDisplayed}));d(e),o(r.rooms)}),[r.rooms]),(0,a.useEffect)((function(){if(u&&!(u.length<=3)&&j.current){var e=j.current.clientHeight;g.current=3*e,N.current=u.length*e}}),[j.current]),s&&u)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:We("room-section","house-section"),ref:n,children:[(0,i.jsx)("div",{className:We("wrap-title"),children:(0,i.jsxs)("h2",{children:["\uac01 \ubc29 \uc815\ubcf4",(0,i.jsx)("span",{className:We("cnt","on"),children:u.length}),r.isUcareOnAirEnabled&&(0,i.jsx)("span",{className:We("on-air")})]})}),(0,i.jsx)("div",{className:We("wrap-contents"),children:0==s.length?(0,i.jsx)("div",{className:We("wrap-empty"),children:(0,i.jsx)("div",{children:"\ub4f1\ub85d\ub41c \ubc29\uc774 \uc5c6\uc2b5\ub2c8\ub2e4."})}):0==u.length?(0,i.jsx)("div",{className:We("wrap-empty"),children:(0,i.jsx)("div",{children:"\ud604\uc7ac \uc774\uc6a9 \uac00\ub2a5\ud55c \ubc29\uc774 \uc5c6\uc2b5\ub2c8\ub2e4."})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("ul",{style:{height:(h?N.current:g.current)||"auto"},children:u.map((function(e,n){if(h||!(n>3))return(0,i.jsx)("li",{ref:j,children:(0,i.jsxs)("div",{onClick:function(){v(n),b.openPopup(qe)},children:[(0,i.jsxs)("div",{className:We("wrap-image-box"),children:[(0,i.jsx)(be.E1,{className:We("img"),src:function(){var n,t;return r.service===C.Ri.UCEO?Y.Z.make(Y.b.CEO_HOUSE,r.imageKey,(null===e||void 0===e||null===(n=e.roomImages)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.fileName)||"",408,320):r.service===C.Ri.UAGENT?Y.Z.make(Y.b.AGENT_HOUSE,r.imageKey,e.roomImages[0].fileName||"",408,320):void 0}()}),function(){if(r.isUcareOnAirEnabled){var n=Be(e.unitCount,e.vacancyUnitCount,e.contractEndAt),t=n.className,s=n.statusText;return(0,i.jsx)("div",{className:We("overlay-status",t),children:(0,i.jsx)("span",{children:s})})}}()]}),(0,i.jsxs)("div",{className:We("info"),children:[(0,i.jsx)("div",{className:We("name"),children:e.name}),(0,i.jsx)("div",{className:We("type"),children:B.OT[e.roomType]}),(0,i.jsx)("div",{className:We("price"),children:0==e.price||null==e.price?(0,i.jsxs)("span",{className:We("price-comp"),children:["\uc804\uc138 ",G.Z.getPriceWithUnit(e.deposit||0)]}):(0,i.jsxs)("span",{className:We("price-comp"),children:[(0,i.jsxs)(i.Fragment,{children:["\uc6d4 ",e.price||0]}),(0,i.jsx)("span",{className:We("dash"),children:"/"}),(0,i.jsxs)(i.Fragment,{children:["\ubcf4 ",e.deposit||0]})]})})]})]})},e.no)}
1))}),u.length>3&&(0,i.jsx)("a",{className:We("btn-more"),onClick:function(){return p(!h)},children:h?"\uc228\uae30\uae30":(0,i.jsxs)(i.Fragment,{children:[u.length-3,"\uac1c \ubc29 \ub354\ubcf4\uae30"]})})]})})]}),(0,i.jsx)(Ge,{popupName:qe,house:r,rooms:u,activeIdx:f})]})}));function Qe(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var Je=p().bind(y()),$e=function(e){var n,r,t,s,o,l,u=e.house,d=(0,a.useContext)(c.r),m=null===(n=u.rooms)||void 0===n?void 0:n.filter((function(e){return e.isDisplayed}));return(0,i.jsxs)("section",{className:Je("house-usage-info-section","house-section"),children:[(0,i.jsx)("div",{className:Je("wrap-title"),children:(0,i.jsx)("h2",{children:"\uc774\uc6a9\uc815\ubcf4"})}),(0,i.jsxs)("div",{className:Je("wrap-contents"),children:[m.length>0&&(0,i.jsx)(P,{title:"\uc774\uc6a9\uae30\uac04",children:K.Z.getDurationTextForRooms(null===(r=u.rooms)||void 0===r?void 0:r.filter((function(e){return e.isDisplayed})))}),(0,i.jsx)(P,{title:"\uc774\uc6a9\uc5f0\ub839",children:(o=u.minAge,l=u.maxAge,null==o&&(o=0),null==l&&(l=100),0==o&&100==l?"\uc5f0\ub839\uc81c\ud55c \uc5c6\uc74c":0==o?l+"\uc138 \uc774\ud558":l>=100?o+"\uc138 \uc774\uc0c1":o+"\uc138 ~ "+l+"\uc138")}),m.length>0&&(0,i.jsx)(P,{title:"\ubc29 \uc885\ub958",addClass:Je("room-types"),children:u.roomType.map((function(e,n){return function(e,n){var r,t,s=n===u.roomType.length-1,a=(Qe(t={},B.zT.MINI_ROOM,"structureMini"),Qe(t,B.zT.SHOWER_ROOM,"structureShower"),Qe(t,B.zT.ONE_ROOM,"structureSingle"),t),c=null===(r=u.roomTypeExtras)||void 0===r?void 0:r.find((function(n){return n.key===e})),o=(null===c||void 0===c?void 0:c.value)?"(".concat(c.value,"\uac1c) "):"",l=s?"":", ",m=e.includes(B.zT.ONE_ROOM)||e.includes(B.zT.SHOWER_ROOM)||e.includes(B.zT.MINI_ROOM);return u.houseTypes.includes(C.Rz.GOSIWON)||u.houseTypes.includes(C.Rz.ONE_ROOM_TEL)?(0,i.jsxs)("span",{children:[(0,i.jsx)("a",{className:Je({"has-link":m}),onClick:function(){return m&&d.openPopup(a[e])},children:B.OT[e]}),o,l]},e):(u.houseTypes.includes(C.Rz.ONE_TWO_ROOM),(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:B.OT[e]}),o,l]},e))}(e,n)}))}),(0,i.jsx)(P,{title:"\ub0a8\ub140\uad6c\ubd84",children:C.AT[u.gender]}),(0,i.jsx)(Re,{title:"\uae30\ud0c0\uc0ac\ud56d",data:u.etcItems.map((function(e){return{value:e,name:C.jT[e]}}))||[]}),(u.providedServices.length>0||u.foreignSupports.length>0)&&(0,i.jsxs)("dl",{className:Je("house-section-item"),children:[(0,i.jsx)("dt",{children:"\uc81c\uacf5 \uc11c\ube44\uc2a4"}),(0,i.jsxs)("dd",{children:[u.providedServices.map((function(e,n){var r=n===u.providedServices.length-1&&0===u.foreignSupports.length;return(0,i.jsxs)("span",{children:[C.uf[e]," ",!r&&","]},e)})),u.foreignSupports.length>0&&(0,i.jsxs)("span",{className:Je("house-facilities-item"),children:["\uc678\uad6d\uc5b4 \uc751\ub300(",u.foreignSupports.filter((function(e){return e!==C.ET.FOREIGN99})).map((function(e,n,r){var t,s,a=null===(s=null===(t=u.foreignSupportExtras)||void 0===t?void 0:t.find((function(e){return e.key===C.ET.FOREIGN99})))||void 0===s?void 0:s.value,c=n===r.length-1&&!a;return(0,i.jsxs)("span",{children:[C._i[e],!c&&", "]},e)})),null===(s=null===(t=u.foreignSupportExtras)||void 0===t?void 0:t.find((function(e){return e.key===C.ET.FOREIGN99})))||void 0===s?void 0:s.value,")"]})]})]})]})]})},en=r(12321),nn=r(92030),rn=r(60971);function tn(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function sn(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){tn(i,t,s,a,c,"next",e)}function c(e){tn(i,t,s,a,c,"throw",e)}a(void 0)}))}}var an=function(){var e=(0,F.Z)();return{createReview:function(){var n=sn(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.post("/v2/auth/reviews",r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),updateReview:function(){var n=sn(s().mark((function n(r,t){var i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.put("/v2/auth/reviews/"+r,t);case 2:return i=n.sent,n.abrupt("return",i);case 4:case"end":return n.stop()}}),n)})));return function(e,r){return n.apply(this,arguments)}}(),deleteReview:function(){var n=sn(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.delete("/v2/auth/reviews/"+r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),checkDuplicateReview:sn(s().mark((function n(){var r;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.get("/v2/auth/reviews/check");case 2:return r=n.sent,n.abrupt("return",r);case 4:case"end":return n.stop()}}),n)})))}};function cn(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function on(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){cn(i,t,s,a,c,"next",e)}function c(e){cn(i,t,s,a,c,"throw",e)}a(void 0)}))}}var ln=p().bind(y()),un=function(e){var n=(0,a.useContext)(c.r),r=(0,N.k)().session,t=an(),o=(0,a.useState)(!1),l=o[0],u=o[1],d=(0,a.useState)(!1),m=d[0],h=d[1],p=(0,a.useState)({}
1),x=p[0],f=p[1],v=(0,a.useRef)(null),j=function(){var r=on(s().mark((function r(){var i;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i={message:"\uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",buttons:[{text:"\ucde8\uc18c"},{text:"\uc0ad\uc81c",class:"error",callback:on(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.deleteReview(x.reviewNo);case 2:return 200===r.sent.status&&e.fetchReviews(),r.next=6,n.closePopup();case 6:setTimeout((function(){n.toast("\ub9ac\ubdf0\ub97c \uc0ad\uc81c\ud588\uc5b4\uc694.",{bottom:80})}),100);case 7:case"end":return r.stop()}}),r)})))}]},n.alert(i);case 2:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();if((0,a.useEffect)((function(){var n=g.Z.clone(e.review);(n.rating=Tn[n.rating],nn.E.getDiff(new Date(n.createdAt),new Date,"D")<=1&&(n.isNew=!0),n.answer)&&(nn.E.getDiff(new Date(n.answeredAt),new Date,"D")<=1&&(n.isAnswerNew=!0));f(n)}),[e.review]),(0,a.useEffect)((function(){v.current&&(v.current.clientHeight<120?h(!0):h(!1))}),[v.current]),x)return(0,i.jsxs)("div",{className:ln("house-review-item"),children:[(0,i.jsxs)("div",{className:ln("wrap-profile"),children:[(0,i.jsx)(be.E1,{className:ln("img"),src:(0,en.r6)(x.userProfileType,Y.Z.make(Y.b.USER,x.userId,x.userImageName||"",48,48))}),(0,i.jsx)("span",{className:ln("nickname"),children:x.userNickname}),(0,i.jsx)("span",{className:ln("date",{new:x.isNew}),children:nn.E.getDiffAbbreviationDate(w()(x.createdAt).unix().toString())}),(0,i.jsx)("a",{className:ln("btn-more"),onClick:function(){return u(!l)}}),(0,i.jsx)(rn.Z,{show:l,onClose:function(){return u(!1)},children:r&&Number(r.ID)===Number(x.userId)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("a",{className:"edit",onClick:function(){return e.onUpdate()},children:"\uc218\uc815"}),(0,i.jsx)("a",{className:"delete",onClick:j,children:"\uc0ad\uc81c"})]}):(0,i.jsx)("a",{className:"report",onClick:function(){return n.openReportPop({category:"\ub9ac\ubdf0\uc2e0\uace0",target:x.content})},children:"\uc2e0\uace0"})})]}),(0,i.jsxs)("div",{className:ln("wrap-content"),children:[(0,i.jsx)("div",{ref:v,className:"ellipsis-2 pre "+ln("content",{expand:m}),children:x.content}),!m&&(0,i.jsx)("a",{className:ln("btn-more"),onClick:function(){return h(!0)},children:"\ub354\ubcf4\uae30"}),(0,i.jsx)("div",{children:(0,i.jsx)("span",{className:ln("rating",x.rating)})}),x.answer&&(0,i.jsxs)("div",{className:ln("wrap-answer"),children:[(0,i.jsxs)("div",{className:ln("wrap-profile"),children:[(0,i.jsx)("span",{className:ln("nickname"),children:"\uc0ac\uc7a5\ub2d8"}),(0,i.jsx)("span",{className:ln("date",{new:x.isAnswerNew}),children:nn.E.getDiffAbbreviationDate(w()(x.answeredAt).unix().toString())})]}),(0,i.jsx)("div",{className:ln("answer")+" pre",children:x.answer})]})]})]})};function dn(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var mn=p().bind(y()),hn=Ze.Z,pn=function(e){var n=(0,a.useContext)(c.r),r=(0,N.k)().session;if(e.reviews)return(0,i.jsxs)(hn,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){dn(e,n,r[n])}))}return e}({className:mn("house-review-list-pop"),fullscreen:!0},e,{children:[(0,i.jsx)(Le.Z,{fixed:!1,border:!0,left:(0,i.jsx)("a",{className:"btn-back",onClick:function(){n.closePopup()}}),right:(0,i.jsx)("a",{className:mn("btn-regist"),onClick:function(){e.onWrite()}}),children:(0,i.jsxs)("h1",{children:["\uc804\uccb4 \ub9ac\ubdf0 ",(0,i.jsx)("span",{className:mn("cnt"),children:e.reviews.length})]})}),(0,i.jsx)("ul",{className:mn("wrap-content")+" pb_60",children:e.reviews.map((function(n){return(0,i.jsx)("li",{className:mn({my:r&&Number(r.ID)===Number(n.userId)}),children:(0,i.jsx)(un,{review:n,fetchReviews:e.fetchReviews,onUpdate:function(){return e.onUpdate(n)}})},n.reviewNo)}))})]}))};function xn(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function fn(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){xn(i,t,s,a,c,"next",e)}function c(e){xn(i,t,s,a,c,"throw",e)}a(void 0)}))}}function vn(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function jn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){vn(e,n,r[n])}))}return e}var gn=p().bind(y()),Nn="reviewWrite",bn=function(e){var n,r,t,o,l=(0,a.useContext)(c.r),u=(0,N.k)().session,d=an(),m=(0,a.useState)({houseNo:e.houseNo,rating:null!==(t=null===(n=e.review)||void 0===n?void 0:n.rating)&&void 0!==t?t:0,content:null!==(o=null===(r=e.review)||void 0===r?void 0:r.content)&&void 0!==o?o:""}),h=m[0],p=m[1],x=(0,a.useState)(!1),f=x[0],v=x[1],j=function(){var n=fn(s().mark((function n(){var r,t,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!==h.rating){n.next=3;break}return l.alert("\uac10\uc815 \ud0a4\uc6cc\ub4dc\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694."),n.abrupt("return");case 3:return r=e.review?"\ub9ac\ubdf0\ub97c \uc218\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?":"\ub9ac\ubdf0\ub97c \ub0a8\uae30\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",n.next=6,l.confirm(r);case 6:if(n.sent){n.next=9;break}return n.abrupt("return");
1case 9:if(!e.review){n.next=16;break}return n.next=13,d.updateReview(e.review.reviewNo,h);case 13:t=n.sent,n.next=19;break;case 16:return n.next=18,d.createReview(h);case 18:t=n.sent;case 19:if(200!==t.status){n.next=27;break}return e.fetchReviews(),n.next=23,l.closePopup();case 23:i=e.review?"\ub9ac\ubdf0\ub97c \uc218\uc815\ud588\uc5b4\uc694.":"\ub9ac\ubdf0\ub97c \ub4f1\ub85d\ud588\uc5b4\uc694.",l.toast(i,{bottom:80}),n.next=28;break;case 27:l.alert(t.message);case 28:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),b=function(n){var r=function(){var e={message:(0,i.jsxs)(i.Fragment,{children:["\uc791\uc131 \uc885\ub8cc \uc2dc ",(0,i.jsx)("br",{}),"\uc785\ub825\ud588\ub358 \ub0b4\uc6a9\uc740 \ubaa8\ub450 \uc0ad\uc81c\ub429\ub2c8\ub2e4."]}),block:!1,buttons:[{text:"\uacc4\uc18d\uc791\uc131"},{text:"\uc791\uc131\uc885\ub8cc",class:"error",callback:fn(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.closePopup();case 2:l.closePopup();case 3:case"end":return e.stop()}}),e)})))}]};l.alert(e)};if(e.review){if(JSON.stringify(e.review)!=JSON.stringify(n))return void r()}else if(0!==Object.keys(n).length)return void r();l.closePopup()},y=h;if((0,a.useEffect)((function(){return g.Z.Browser.isApp()&&l.setNativeBack(!0,(function(){return b(y)})),function(){g.Z.Browser.isApp()&&l.setNativeBack(!1,(function(){}))}}),[]),(0,a.useEffect)((function(){h.rating>0?v(!0):v(!1)}),[h]),u.isLogin)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("h1",{children:["\ub9ac\ubdf0 ",e.review?"\uc218\uc815":"\uc791\uc131"]}),(0,i.jsx)("a",{className:gn("btn-close"),onClick:function(){return b(h)}}),(0,i.jsxs)("div",{className:gn("cert-message"),children:[u.NICKNAME,"\ub2d8\uc740 \ubcf8\uc778\uc778\uc99d\uc774 \uc644\ub8cc\ub41c \uc0c1\ud0dc\uc785\ub2c8\ub2e4."]}),(0,i.jsxs)("div",{className:gn("content"),children:[(0,i.jsxs)("div",{className:gn("wrap-imotion"),children:[(0,i.jsxs)("div",{className:gn("imotion-nice-box",{on:4===h.rating}),children:[(0,i.jsx)("a",{className:gn("btn-imotion"),onClick:function(){return p(jn({},h,{rating:4}))}}),(0,i.jsx)("p",{className:gn("on"),children:"\uc88b\uc544\uc694"})]}),(0,i.jsxs)("div",{className:gn("imotion-not-good-box",{on:1===h.rating}),children:[(0,i.jsx)("a",{className:gn("btn-imotion"),onClick:function(){return p(jn({},h,{rating:1}))}}),(0,i.jsx)("p",{children:"\uc544\uc26c\uc6cc\uc694"})]}),(0,i.jsxs)("div",{className:gn("imotion-good-box",{on:3===h.rating}),children:[(0,i.jsx)("a",{className:gn("btn-imotion"),onClick:function(){return p(jn({},h,{rating:3}))}}),(0,i.jsx)("p",{children:"\uad1c\ucc2e\uc544\uc694"})]}),(0,i.jsxs)("div",{className:gn("imotion-soso-box",{on:2===h.rating}),children:[(0,i.jsx)("a",{className:gn("btn-imotion"),onClick:function(){return p(jn({},h,{rating:2}))}}),(0,i.jsx)("p",{children:"\ubb34\ub09c\ud574\uc694"})]})]}),(0,i.jsxs)("div",{className:gn("bx-txtarea"),children:[(0,i.jsx)("textarea",{name:"",id:"",title:"\ub0b4\uc6a9",placeholder:"\uc5c5\uc8fc\uc640 \ub2e4\ub978 \uc0ac\ub78c\ub4e4\uc774 \uc0c1\ucc98\ubc1b\uc9c0 \uc54a\ub3c4\ub85d \ubc30\ub824\ud558\ub294 \ub9c8\uc74c\uc744 \ub2f4\uc544 \uc791\uc131\ud574\uc8fc\uc138\uc694. (\uc120\ud0dd)",onChange:function(e){return p(jn({},h,{content:e.target.value}))},maxLength:1e3,value:h.content?h.content:""}),(0,i.jsxs)("div",{className:gn("txt","counter"),children:[(0,i.jsx)("span",{children:h.content?g.Z.setComma(h.content.length):0})," / ",(0,i.jsx)("span",{children:g.Z.setComma(1e3)})]})]}),(0,i.jsx)("a",{className:gn("btn-regist",f?"active":""),onClick:j,children:e.review?"\uc218\uc815":"\ub4f1\ub85d"}),(0,i.jsxs)("div",{className:gn("review-regist-terms"),children:[(0,i.jsxs)("div",{className:gn("review-regist-title"),children:[(0,i.jsx)("img",{src:"/images/icon_exclamation-mark_circle_line_gray80_16.svg"}),(0,i.jsx)("p",{children:"\ub9ac\ubdf0 \uc791\uc131 \uc2dc \uc720\uc758\uc0ac\ud56d"})]}),(0,i.jsx)("p",{className:gn("wran"),children:"\uc6b4\uc601 \uc815\ucc45\uc744 \uc704\ubc18\ud55c \uacbd\uc6b0 \ud1b5\ubcf4 \uc5c6\uc774 \ub9ac\ubdf0\ub97c \uc0ad\uc81c\ud558\uac70\ub098 \ud68c\uc6d0\uc758 \ub9ac\ubdf0 \uc791\uc131 \uad8c\ud55c\uc744 \uc911\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."}),(0,i.jsx)("p",{children:"\uff65 \uc5c5\uccb4\uc640 \ubb34\uad00\ud55c \ub0b4\uc6a9\uc778 \uacbd\uc6b0"}),(0,i.jsx)("p",{children:"\uff65 \uac1c\uc778 \uc815\ubcf4\ub97c \ud3ec\ud568\ud558\uac70\ub098 \ubd80\uc801\ud569\ud55c \ub0b4\uc6a9\uc774 \uc788\ub294 \uacbd\uc6b0"}),(0,i.jsx)("p",{children:"\uff65 \ud0c0\uc778\uc5d0 \ub300\ud55c \uc695\uc124, \ube44\ubc29, \uba85\uc608\ud6fc\uc190\uc774 \ud3ec\ud568\ub41c \uacbd\uc6b0"}),(0,i.jsx)("p",{children:"\uff65 \uc800\uc791\uad8c, \ucd08\uc0c1\uad8c \ub4f1 \ud0c0\uc778\uc758 \uad8c\ub9ac\ub97c \uce68\ud574\ud558\ub294 \uacbd\uc6b0"})]})]})]})},yn=function(e){var n=(0,a.useState)(!1),r=n[0],t=n[1];return(0,i.jsx)(Ze.Z,jn({className:gn("house-review-write-pop")},e,{fullscreen:!0,onVisibleChange:function(e){t(e)},children:r&&(0,i.jsx)(bn,jn({},e))}))},_n=a.memo(yn);function wn(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function kn(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){wn(i,t,s,a,c,"next",e)}function c(e){wn(i,t,s,a,c,"throw",e)}a(void 0)}))}}var On=function(){var e=(0,F.Z)();return{fetchReview:function(){var n=kn(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.get("/v2/houses/"+r+"/reviews");case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),deleteReview:function(){var n=kn(s().mark((function n(r){var t;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.delete("/v2/auth/reviews/"+r);case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}};function Pn(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function En(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){Pn(i,t,s,a,c,"next",e)}function c(e){Pn(i,t,s,a,c,"throw",e)}a(void 0)}))}}var Sn=p().bind(y()),Cn="reviewList",Tn={1:"not-good",2:"so-so",3:"good",4:"nice"},In=a.forwardRef((function(e,n){var r,t=(0,a.useContext)(c.r),o=(0,N.k)().session,l=(0,v.KS)(),u=On(),d=an(),m=(0,a.useState)([]),h=m[0],p=m[1],x=(0,a.useState)([]),f=x[0],j=x[1],g=(0,a.useState)(null),b=g[0],y=g[1],_=null!==(r=e.house.isReviewLocked)&&void 0!==r&&r,w=function(){var n=En(s().mark((function n(){var r,i,a,c,o,l,d,m;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u.fetchReview(e.house.no);case 2:if(200!==(r=n.sent).status){n.next=28;break}for(p(r.result),i=[],a=!0,c=!1,o=void 0,n.prev=7,l=function(e,n){var r=n.value,t=i.findIndex((function(e){return e.rating===r.rating}));-1!==t?i[t].cnt+=1:i.push({rating:r.rating,cnt:1})},d=r.result[Symbol.iterator]();!(a=(m=d.next()).done);a=!0)l(0,m);n.next=16;break;case 12:n.prev=12,n.t0=n.catch(7),c=!0,o=n.t0;case 16:n.prev=16,n.prev=17,a||null==d.return||d.return();case 19:if(n.prev=19,!c){n.next=22;break}throw o;case 22:return n.finish(19);case 23:return n.finish(16);case 24:i.sort((function(e,n){return e.cnt>n.cnt?-1:e.cnt<n.cnt?1:n.rating-e.rating})),j(i),n.next=29;break;case 28:t.alert(r.message);case 29:case"end":return n.stop()}}),n,null,[[7,12,16,24],[17,,19,23]])})));return function(){return n.apply(this,arguments)}}(),k=function(){var e=En(s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.checkDuplicateReview();case 2:if(200!==(n=e.sent).status){e.next=7;break}return e.abrupt("return",!0);
1case 7:return"ERR_0035"===n.code?t.alert((0,i.jsxs)("div",{className:Sn("alert-review-error"),children:[(0,i.jsxs)("div",{className:Sn("title"),children:["\uc774\ubc88\ub2ec\uc5d0 \uc774\ubbf8",(0,i.jsx)("br",{}),"\ub2e4\ub978 \uc9c0\uc810\uc758 \ub9ac\ubdf0\ub97c \ub4f1\ub85d\ud558\uc168\ub124\uc694!"]}),(0,i.jsxs)("div",{className:Sn("desc"),children:["\uc2e0\ub8b0\uc131 \ubc0f \uacf5\uc815\uc131\uc744 \uc704\ud574 \ub9ac\ubdf0 \ub4f1\ub85d\uc744",(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:"\uc6d4 1\ud68c\ub85c \uc81c\ud55c"}),"\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.",(0,i.jsx)("br",{}),"\ub108\ub978 \uc591\ud574 \ubd80\ud0c1\ub4dc\ub9bd\ub2c8\ub2e4."]})]})):t.alert(n.message),e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=En(s().mark((function e(){var n,r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o&&o.isLogin){e.next=3;break}return t.openLoginPop(),e.abrupt("return");case 3:if(o&&h&&h.length>0&&(n=h.find((function(e){return Number(o.ID)===Number(e.userId)}))),!n){e.next=9;break}return r={message:(0,i.jsxs)(i.Fragment,{children:["\ub9ac\ubdf0\ub97c \uc774\ubbf8 \uc791\uc131\ud558\uc168\uc2b5\ub2c8\ub2e4.",(0,i.jsx)("br",{}),"\uc218\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"]}),buttons:[{text:"\ucde8\uc18c"},{text:"\uc218\uc815\ud558\uae30",class:"primary",callback:En(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(n),e.next=3,t.closePopup();case 3:t.openPopup(Nn);case 4:case"end":return e.stop()}}),e)})))}]},t.alert(r),e.abrupt("return");case 9:return e.next=11,k();case 11:if(e.sent){e.next=14;break}return e.abrupt("return");case 14:y(null),"Y"===o.CERT_YN?t.openPopup(Nn):(a={message:(0,i.jsxs)(i.Fragment,{children:["\ud734\ub300\ud3f0 \ubcf8\uc778\uc778\uc99d \ud6c4",(0,i.jsx)("br",{}),"\ub9ac\ubdf0 \uc791\uc131\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4."]}),buttons:[{text:"\ucde8\uc18c"},{text:"\uc778\uc99d\ud558\uace0 \ub9ac\ubdf0 \uc791\uc131",class:"primary flex2",callback:En(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.closePopup();case 2:return e.next=4,l.certify(o.HP_NO);case 4:if(200!==e.sent.status){e.next=9;break}return e.next=8,t.alert("\uc778\uc99d\ub418\uc5c8\uc2b5\ub2c8\ub2e4.");case 8:t.openPopup(Nn);case 9:case"end":return e.stop()}}),e)})))}]},t.alert(a));case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(e){y(e),t.openPopup(Nn)};return(0,a.useEffect)((function(){_||w()}),[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:Sn("house-section","review-section"),ref:n,children:[(0,i.jsxs)("div",{className:Sn("wrap-title"),children:[(0,i.jsxs)("h2",{children:["\ub9ac\ubdf0",!_&&(0,i.jsx)("span",{className:Sn("cnt",h.length>0?"on":"off"),children:h.length})]}),!_&&(0,i.jsx)("a",{className:Sn("btn-write"),onClick:O,children:"\ub9ac\ubdf0 \ub4f1\ub85d"})]}),_?(0,i.jsx)("div",{className:Sn("review-locked-wrap"),children:(0,i.jsxs)("div",{className:Sn("review-locked-area"),children:[(0,i.jsx)("img",{className:Sn("review-locked-icon"),src:"/images/icon_review_locked.svg"}),(0,i.jsxs)("div",{className:Sn("review-locked-text"),children:["\uc6b4\uc601 \uc815\ucc45\uc5d0 \ub530\ub77c",(0,i.jsx)("br",{}),"\ub9ac\ubdf0\uac00 \uc77c\uc2dc\uc801\uc73c\ub85c \uc81c\ud55c\ub429\ub2c8\ub2e4."]})]})}):h.length>0?(0,i.jsxs)("div",{className:Sn("wrap-contents","review-contents"),children:[(0,i.jsx)("div",{className:Sn("count-area"),children:(0,i.jsx)("ul",{children:f.map((function(e,n){if(e.cnt>0)return(0,i.jsxs)("li",{className:Sn(Tn[e.rating]),children:[(0,i.jsx)("div",{className:Sn("icon")}),(0,i.jsx)("span",{className:Sn("text")}),(0,i.jsx)("span",{className:Sn("wrap-bar"),children:(0,i.jsx)("div",{style:{width:e.cnt/h.length*100+"%"}})}),(0,i.jsx)("span",{className:Sn("cnt"),children:e.cnt})]},n)}))})}),(0,i.jsx)("div",{className:Sn("reviews-list"),children:h&&h.length>0&&(0,i.jsx)(un,{review:h[0],fetchReviews:w,onUpdate:function(){P(h[0])}})}),h.length>1&&(0,i.jsxs)("a",{className:Sn("btn-more-review"),onClick:function(){return t.openPopup(Cn)},children:[h.length-1,"\uac1c \ub9ac\ubdf0 \ub354\ubcf4\uae30"]})]}):(0,i.jsxs)("div",{className:Sn("no-data","wrap-contents"),children:[(0,i.jsx)("img",{src:"/images/image_empty_rate.svg"}),(0,i.jsx)("div",{children:"\ub4f1\ub85d\ub41c \ub9ac\ubdf0\uac00 \uc5c6\uc2b5\ub2c8\ub2e4."})]})]}),(0,i.jsx)(pn,{popupName:Cn,reviews:h,fetchReviews:w,onWrite:O,onUpdate:P}),(0,i.jsx)(_n,{popupName:Nn,houseNo:e.house.no,review:b,fetchReviews:w})]})})),Rn=a.memo(In),An=p().bind(y()),Mn=function(e){var n=e.house,r=e.isZzim,t
1=e.handleZzim,s=e.onTabStickyChange,o=((0,a.useContext)(c.r),!!(n.heatingSystem&&n.heatingSystem.length>0||n.laundryFacilities&&n.laundryFacilities.length>0||n.cleanFacilities&&n.cleanFacilities.length>0||n.kitchenFacilities&&n.kitchenFacilities.length>0||n.livingFacilities&&n.livingFacilities.length>0||n.securityFacilities&&n.securityFacilities.length>0||n.privateSpaces&&n.privateSpaces.length>0||n.providedItems&&n.providedItems.length>0)),l=[{id:10,title:"\uac00\uaca9\uc815\ubcf4",render:!0,component:(0,i.jsx)(Te,{house:n})},{id:11,title:"\uc774\uc6a9\uc815\ubcf4",render:!0,component:(0,i.jsx)($e,{house:n})},{id:12,title:"\uac74\ubb3c\uc815\ubcf4",render:!0,component:(0,i.jsx)(Oe,{house:n,isZzim:r,handleZzim:t})},{id:13,title:"\uacf5\uc6a9\uc2dc\uc124",render:o,component:(0,i.jsx)(Me,{house:n})},{id:14,title:"\uac01 \ubc29 \uc815\ubcf4",render:n.version>1,component:(0,i.jsx)(Xe,{house:n})},{id:15,title:"\uc18c\uac1c",render:!0,component:(0,i.jsx)(Se,{house:n})},{id:16,title:"\uc704\uce58",render:!0,component:(0,i.jsx)(pe,{house:n})},{id:17,title:"\ub9ac\ubdf0",render:!0,component:(0,i.jsx)(Rn,{house:n})}].filter((function(e){return e.render}));return(0,i.jsx)(je,{sections:l,onTabStickyChange:s,children:function(e){var n=e.sectionRef;return(0,i.jsx)("article",{className:An("wrap-sections"),children:l.map((function(e,r){return(0,i.jsx)("div",{ref:function(e){return n.current[r]=e},children:e.component},e.id)}))})}})},Ln=r(58744);function Fn(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var Zn=p().bind(y()),Yn=function(e){var n=(0,a.useContext)(c.r);return(0,i.jsx)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){Fn(e,n,r[n])}))}return e}({},e,{className:Zn("near-house-recommend-pop"),children:(0,i.jsxs)("div",{className:Zn("recommend"),children:[(0,i.jsx)("div",{className:Zn("wrap-title"),children:(0,i.jsx)("h2",{})}),(0,i.jsxs)("div",{className:Zn("wrap-empty-content"),children:[(0,i.jsxs)("div",{className:Zn("empty-content"),children:[(0,i.jsx)("img",{src:"/images/icom_emoji_wink_40.svg"}),(0,i.jsxs)("h2",{children:["\uc774 \ubc29\uc774 \ub9c8\uc74c\uc5d0 \ub4dc\uc168\ub098\uc694?",(0,i.jsx)("br",{}),"\ub2e4\ub978 \ubc29\ub3c4 \ub458\ub7ec\ubcf4\uba70 \uc6d0\ud558\ub294 \ubc29\uc744 \ucc3e\uc544\ubcf4\uc138\uc694!"]})]}),(0,i.jsx)("div",{className:Zn("btn-back"),onClick:function(){Pe.ZP.close()},children:(0,i.jsx)("p",{children:"\uc774\uc804 \ubaa9\ub85d \uacc4\uc18d \ubcf4\uae30"})})]}),(0,i.jsxs)("div",{className:Zn("wrap-bottom"),children:[(0,i.jsx)("a",{className:Zn("btn-close-today"),onClick:function(){var e=w()().format("YYYYMMDD");g.Z.localStorage.set(Ln.Qt.HIDE_NEAR_HOUSE_RECOMMEND_KEY,e),n.closePopup()},children:"\uc624\ub298 \ud558\ub8e8 \ubcf4\uc9c0 \uc54a\uae30"}),(0,i.jsx)("a",{className:Zn("btn-close"),onClick:function(){n.closePopup()},children:"\ub2eb\uae30"})]})]})}))},Dn=r(10105);function Un(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function zn(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var Vn=p().bind(y()),Hn=function(e){var n=(0,a.useContext)(c.r),r=(0,a.useState)(!1),t=r[0],o=r[1],l=function(){var e,n=(e=s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o(n);case 1:case"end":return e.stop()}}),e)})),function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){Un(i,t,s,a,c,"next",e)}function c(e){Un(i,t,s,a,c,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}();return(0,i.jsx)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){zn(e,n,r[n])}))}return e}({},e,{onVisibleChange:l,className:Vn("near-house-recommend-pop"),children:(0,i.jsxs)("div",{className:Vn("recommend"),children:[(0,i.jsx)("div",{className:Vn("wrap-title"),children:(0,i.jsx)("h2",{children:e.listData.titleType===fe._8.PRICE?"\ube44\uc2b7\ud55c \uac00\uaca9\ub300\uc758 \ub193\uce58\uae30 \uc544\uc26c\uc6b4 \ubc29":"\ubc29\uae08 \ubb38\uc758\ud55c \uacf3\uacfc \uac00\uae4c\uc6b4 \ubc29"})}),(0,i.jsx)("div",{className:Vn("wrap-list"),children:(0,i.jsx)(Dn.Z,{list:e.listData.list,initSwiper:t})}),(0,i.jsxs)("div",{className:Vn("wrap-bottom"),children:[(0,i.jsx)("a",{className:Vn("btn-close-today"),onClick:function(){var e=w()().format("YYYYMMDD");g.Z.localStorage.set(Ln.Qt.HIDE_NEAR_HOUSE_RECOMMEND_KEY,e),n.closePopup()},children:"\uc624\ub298 \ud558\ub8e8 \ubcf4\uc9c0 \uc54a\uae30"}),(0,i.jsx)("a",{className:Vn("btn-close"),onClick:function(){n.closePopup()},children:"\ub2eb\uae30"})]})]})}))},Kn=r(96486),Gn="HOUSE_VIEW_LOG",Wn=p().bind(y()),qn=function(e){var n=e.house,r=(0,N.k)(),t=r.session,s=r.isFetch,c=(0,a.useState)(!1),o=c[0],l=c[1],u=(0,a.useState)(!1),d=u[0],m=u[1],h=function(){var e=g.Z.localStorage.get(Gn)||{};return{viewCountList:e,viewCountItem:e[n.no]||{}}},p=function(){if(d)if(t.isLogin||g.Z.Browser.isApp()){var e=function(){var e=h().viewCountItem;return Object.values(e).reduce((function(e,n){return e+n}),0)>=3}();l(e)}else l(!0)};return(0,a.useEffect)((function(){s&&function(){var e=w()().format("YYYYMMDD"),r=w()().subtract(6,"days").format("YYYYMMDD"),t=h(),s=t.viewCountList,i=t.viewCountItem;for(var a in i[e]=(i[e]||0)+1,i)a<r&&delete i[a];s[n.no]=i,g.Z.localStorage.set(Gn,s)}()}),[s]),(0,a.useEffect)((function(){if(s){setTimeout((function(){p()}),700);var e=function(){m(!0),l(!1)},n=(0,Kn.debounce)((function(){p()}),800);return window.addEventListener("scroll",e),window.addEventListener("scroll",n),function(){window.removeEventListener("scroll",e),window.removeEventListener("scroll",n)}}}),[s,d]),(0,i.jsxs)("div",{className:Wn("tooltip",o&&"visible"),children:[t.isLogin||g.Z.Browser.isApp()?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{src:"/images/emoji-icon_eyeball_16.svg"}),(0,i.jsx)("p",{className:Wn("tooltip-text"),children:"3\ubc88 \u
1c774\uc0c1 \ubcf8 \uad00\uc2ec\uc788\ub294 \ubc29\uc774\uc5d0\uc694!"})]}):(0,i.jsx)("p",{className:Wn("tooltip-text"),children:"\ub85c\uadf8\uc778 \uc548 \ud574\ub3c4 \ubb38\uc758 \uac00\ub2a5!"}),(0,i.jsx)("img",{className:Wn("tooltip-arrow-down"),src:"/images/tool-tip_tail_down_small_gray100.svg"})]})},Bn=r(55087);function Xn(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var Qn=p().bind(y()),Jn=function(e){return(0,i.jsxs)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){Xn(e,n,r[n])}))}return e}({className:Qn("sms-text-select-pop")},e,{children:[(0,i.jsx)("div",{className:Qn("header"),children:(0,i.jsx)("h1",{children:"\ubb38\uc758 \ub0b4\uc6a9 \uc120\ud0dd"})}),(0,i.jsx)("div",{className:Qn("list"),children:e.textList&&e.textList.map((function(n){return(0,i.jsx)("p",{onClick:function(){return e.onClickItem(n.text)},children:n.text},n.order)}))})]}))};function $n(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var er=p().bind(y()),nr=function(e){var n=(0,a.useContext)(c.r);return(0,i.jsxs)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){$n(e,n,r[n])}))}return e}({className:er("house-review-list-pop"),fullscreen:!0},e,{children:[(0,i.jsx)(Le.Z,{fixed:!1,border:!0,left:(0,i.jsx)("a",{className:"btn-back",onClick:function(){n.closePopup()}}),children:(0,i.jsx)("h1",{children:"\uc57d\uad00"})}),(0,i.jsxs)("article",{className:er("wrap-content","wrap-terms")+" pb_60",children:[(0,i.jsx)("h2",{children:"\uac1c\uc778\uc815\ubcf4 \uc81c 3\uc790 \uc81c\uacf5 \ub3d9\uc758"}),(0,i.jsx)("p",{children:"(\uc8fc)\ub124\uc624\ud50c\ub7ab\uc740 \uace0\ubc29 \uc11c\ube44\uc2a4 \uc81c\uacf5\uc744 \uc704\ud574\uc11c \uc544\ub798\uc640 \uac19\uc774 \uac1c\uc778\uc815\ubcf4\ub97c \uc218\uc9d1\ud569\ub2c8\ub2e4. \uc815\ubcf4\uc8fc\uccb4\ub294 \ubcf8 \uac1c\uc778 \uc815\ubcf4\uc758 \uc218\uc9d1 \ubc0f \uc774\uc6a9\uc5d0 \uad00\ud55c \ub3d9\uc758\ub97c \uac70\ubd80\ud558\uc2e4 \uad8c\ub9ac\uac00 \uc788\uc73c\ub098, \uc11c\ube44\uc2a4 \uc81c\uacf5\uc5d0 \ud544\uc694\ud55c \ucd5c\uc18c\ud55c\uc758 \uac1c\uc778\uc815\ubcf4\uc774\ubbc0\ub85c \ub3d9\uc758\ub97c \ud574 \uc8fc\uc154\uc57c \uc11c\ube44\uc2a4\ub97c \uc774\uc6a9\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4."}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["\uac1c\uc778\uc815\ubcf4\ub97c \uc81c\uacf5\ubc1b\ub294 \uc790 : ",e.infoReceiver]}),(0,i.jsx)("li",{children:"\uac1c\uc778\uc815\ubcf4\ub97c \uc81c\uacf5\ubc1b\ub294 \uc790\uc758 \uac1c\uc778\uc815\ubcf4 \uc774\uc6a9 \ubaa9\uc801 : \uc785\uc8fc\uc0c1\ub2f4\ubaa9\uc801"}),(0,i.jsx)("li",{children:"\uc81c\uacf5\ud558\ub294 \uac1c\uc778\uc815\ubcf4\uc758 \ud56d\ubaa9 : \ud734\ub300\ud3f0\ubc88\ud638"}),(0,i.jsx)("li",{children:"\uac1c\uc778\uc815\ubcf4\ub97c \uc81c\uacf5\ubc1b\ub294 \uc790\uc758 \uac1c\uc778\uc815\ubcf4 \ubcf4\uc720 \ubc0f \uc774\uc6a9\uae30\uac04 : 5\ub144"}),(0,i.jsx)("li",{children:"\ub3d9\uc758 \uac70\ubd80\uad8c \ubc0f \ubd88\uc774\uc775 : \ud574\ub2f9 \ub0b4\uc6a9\uc5d0 \ub3d9\uc758\ud558\uc9c0 \uc54a\uc744 \uc2dc, \uc785\uc8fc\uc0c1\ub2f4\uc774 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4."})]})]})]}))},rr=a.memo(nr);function tr(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var sr=p().bind(y()),ir=function(e){var n=(0,a.useContext)(c.r);return(0,i.jsxs)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){tr(e,n,r[n])}))}return e}({className:sr("house-review-list-pop"),fullscreen:!0},e,{children:[(0,i.jsx)(Le.Z,{fixed:!1,border:!0,left:(0,i.jsx)("a",{className:"btn-back",onClick:function(){n.closePopup()}}),children:(0,i.jsx)("h1",{children:"\uc57d\uad00"})}),(0,i.jsxs)("article",{className:sr("wrap-content","wrap-terms")+" pb_60",children:[(0,i.jsx)("h2",{children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758"}),(0,i.jsx)("p",{children:"(\uc8fc)\ub124\uc624\ud50c\ub7ab\uc740 \uace0\ubc29 \uc11c\ube44\uc2a4 \uc81c\uacf5\uc744 \uc704\ud574\uc11c \uc544\ub798\uc640 \uac19\uc774 \uac1c\uc778\uc815\ubcf4\ub97c \uc218\uc9d1\ud569\ub2c8\ub2e4. \uc815\ubcf4\uc8fc\uccb4\ub294 \ubcf8 \uac1c\uc778\uc815\ubcf4\uc758 \uc218\uc9d1 \ubc0f \uc774\uc6a9\uc5d0 \uad00\ud55c \ub3d9\uc758\ub97c \uac70\ubd80\ud558\uc2e4 \uad8c\ub9ac\uac00 \uc788\uc73c\ub098, \uc11c\ube44\uc2a4 \uc81c\uacf5\uc5d0 \ud544\uc694\ud55c \ucd5c\uc18c\ud55c\uc758 \uac1c\uc778\uc815\ubcf4\uc774\ubbc0\ub85c \ub3d9\uc758\ub97c \ud574\uc8fc\uc154\uc57c \uc11c\ube44\uc2a4\ub97c \uc774\uc6a9\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4."}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"\uc218\uc9d1\ud558\ub824\ub294 \uac1c\uc778 \uc815\ubcf4 \ud56d\ubaa9: \ud734\ub300\ud3f0\ubc88\ud638"}),(0,i.jsx)("li",{children:"\uac1c\uc778\uc815\ubcf4\uc758 \uc218\uc9d1 \ubaa9\uc801: \ubb38\uc758\uc2e0\uccad"}),(0,i.jsx)("li",{children:"\uac1c\uc778\uc815\ubcf4\uc758 \ubcf4\uc720\uae30\uac04: \uc0ac\uc6a9 \ud6c4 \ubc14\ub85c \uc0ad\uc81c"})]})]})]}))},ar=a.memo(ir),cr=r(21489),or=r.n(cr),lr=r(51640),ur=r(84586),dr=r(18370);function mr(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function hr(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){mr(i,t,s,a,c,"next",e)}function c(e){mr(i,t,s,a,c,"throw",e)}a(void 0)}))}}function pr(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function xr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){pr(e,n,r[n])}))}return e}var fr=[{order:1,text:"\uc774 \uc9c0\uc810\uc5d0 \ub300\ud574 \uc0c1\ub2f4\uc744 \ubc1b\uace0 \uc2f6\uc5b4\uc694."},{order:2,text:"\ubc14\ub85c \uc785\uc2e4\ud560 \uc218 \uc788\ub098\uc694?"},{order:3,text:"\ubc29\uc744 \ub458\ub7ec\ubcfc \uc218 \uc788\ub098\uc694?"},{order:4,text:"\uac00\uaca9\uc744 \uc870\uc808\ud560 \uc218 \uc788\ub098\uc694?"},{order:5,text:"\uc804\uc785\uc2e0\uace0\ub97c \ud560 \uc218 \uc788\ub098\uc694?"}],vr=[{order:1,text:"\uc774 \ub9e4\ubb3c\uc5d0 \ub300\ud574 \uc0c1\ub2f4\uc744 \ubc1b\uace0 \uc2f6\uc5b4\uc694."},{order:2,text:"\ubc14\ub85c \uc785\uc8fc\ud560 \uc218 \uc788\ub098\uc694?"},{order:3,text:"\ubc29\uc744 \ub458\ub7ec\ubcfc \uc218 \uc788\ub098\uc694?"},{order:4,text:"\uac00\uaca9\uc744 \uc870\uc808\ud560 \uc218 \uc788\ub098\uc694?"},{order:5,text:"\uc804\uc138\uc790\uae08\ub300\ucd9c\uc774 \uac00\ub2a5\ud55c\uac00\uc694?"},{order:6,text:"\uc911\uac1c\uc218\uc218\ub8cc\ub294 \uc5bc\ub9c8\uc778\uac00\uc694?"},{order:7,text:"\ubc18\ub824\ub3d9\ubb3c\uacfc \ud568\uaed8 \uc785\uc8fc\ud560 \uc218 \uc788\ub098\uc694?"}],jr="smsTextSelect",gr="termsUsage",Nr="termsProvision",br=p().bind(y()),yr=p().bind(or()),_r=function(e){var n,r=(0,a.useContext)(c.r),t=(0,u.Z)(),o=(0,N.k)(),l=o.isFetch,d=o.session,m=(0,v.Q2)(),h=(0,Bn.B)(),p=(0,v.KS)(),x=(0,lr.Z)(),f=(0,a.useState)({}),j=f[0],b=f[1],y=(0,a.useState)(!1),_=y[0],k=y[1],O=(0,a.useState)(!1),P=O[0],E=O[1],S=(0,a.useRef)(null),T="houseTypes"in e.house?e.house.houseTypes:[e.house.houseType],I=T.includes(C.Rz.ONE_TWO_ROOM)||T.includes(C.Rz.OFFICETEL),R=e.house.service===C.Ri.UCEO,A=function(){var e={senderHpNo:"",message:I?"\uc774 \ub9e4\ubb3c\uc5d0 \ub300\ud574 \uc0c1\ub2f4\uc744 \ubc1b\uace0 \uc2f6\uc5b4\uc694.":"\uc774 \uc9c0\uc810\uc5d0 \ub300\ud574 \uc0c1\ub2f4\uc744 \ubc1b\uace0 \uc2f6\uc5b4\uc694."},n=g.Z.cookie.get("HOUSE_SMS_CONSULT_DATA");
1if(d.isLogin?e.senderHpNo=d.HP_NO:n&&(e.senderHpNo=n),R){var r=g.Z.cookie.get("HOUSE_SMS_CONSULT_GENDER");r&&(e.gender=r)}b(e)},M=function(){var n=hr(s().mark((function n(){var a,c,o,l;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(g.Z.isHpValid(j.senderHpNo)){n.next=3;break}return r.toast("\ud734\ub300\ud3f0\ubc88\ud638\uac00 \uc62c\ubc14\ub974\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",{bottom:80}),n.abrupt("return");case 3:if(!g.Z.isEmpty(j.message)){n.next=6;break}return r.toast("\ubb38\uc758 \ub0b4\uc6a9\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.",{bottom:80}),n.abrupt("return");case 6:return r.showLoading(),n.next=9,t.sendKakaoAlimTalk(e.houseNo,j);case 9:if(a=n.sent,r.hideLoading(),200!==a.status){n.next=26;break}return g.Z.cookie.set("HOUSE_SMS_CONSULT_DATA",j.senderHpNo),R&&g.Z.cookie.set("HOUSE_SMS_CONSULT_GENDER",null!==(c=j.gender)&&void 0!==c?c:null),n.next=16,r.closePopup();case 16:if(o=w()().format("YYYYMMDD"),g.Z.localStorage.get(Ln.Qt.HIDE_NEAR_HOUSE_RECOMMEND_KEY)!==o&&e.openNearPop(800),!d.isLogin){n.next=22;break}return n.next=22,x.postUserContactLog({targetType:ur.L.HOUSE,targetNo:e.house.no,contactType:ur.u.SMS,message:j.message});case 22:setTimeout((function(){r.toast((0,i.jsxs)("div",{className:yr("zzim-toast"),onClick:function(){return m.goPage("/zzim?tab=zzim-house&subtab=contact")},children:[(0,i.jsx)("p",{className:yr("text"),onClick:function(e){return e.stopPropagation()},children:(0,i.jsx)("span",{children:"\ubb38\uc758\ub97c \uc811\uc218\ud588\uc5b4\uc694."})}),(0,i.jsx)("p",{className:yr("btn-memo"),children:(0,i.jsx)("span",{children:"\ubb38\uc758\ub0b4\uc5ed \ubcf4\uae30"})})]}),{w100:!0,bottom:80})}),1300),A(),n.next=27;break;case 26:"ERR_0067"===a.code?(l={title:"\ucd5c\ub300 \uc694\uccad \uac00\ub2a5 \ud69f\uc218\ub97c \ucd08\uacfc\ud588\uc2b5\ub2c8\ub2e4.",message:(0,i.jsxs)(i.Fragment,{children:["\uc7a0\uc2dc\ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",(0,i.jsx)("br",{}),"\uace0\uac1d\uc13c\ud130: 070-8956-2169"]}),buttons:[{text:"\ud655\uc778",class:"primary",callback:function(){r.closePopup()}}]},r.alert(l)):r.alert(a.message);case 27:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),L=function(){var e=hr(s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.certify();case 2:if(200===e.sent.status){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,h.update();case 7:n=e.sent,b(xr({},j,{senderHpNo:n.HP_NO})),r.toast("\ud734\ub300\ud3f0 \ubc88\ud638\ub97c \ubcc0\uacbd\ud588\uc2b5\ub2c8\ub2e4.",{bottom:80});case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){l&&A()}),[l]),(0,a.useEffect)((function(){j&&(g.Z.isEmpty(j.senderHpNo)||g.Z.isEmpty(j.message)?k(!1):k(!0))}),[j.senderHpNo,j.message]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Ze.Z,xr({className:br("house-sms-consult-pop")},e,{fullscreen:!0,onVisibleChange:function(e){e&&A()},children:[(0,i.jsx)("div",{className:br("header"),children:(0,i.jsx)("a",{className:br("btn-close"),onClick:function(){r.closePopup()},children:(0,i.jsx)("img",{src:"/images/x.svg"})})}),(0,i.jsx)("div",{style:{paddingTop:"56px"}}),(0,i.jsxs)("div",{className:br("wrap-content"),children:[(0,i.jsxs)("div",{className:br("info-box"),children:[(0,i.jsxs)("div",{className:br("house-name"),children:[(0,i.jsx)("img",{src:"/images/icon_home_line_bold_gray80_16.svg"}),(0,i.jsx)("p",{className:br("text"),children:e.house.name})]}),(0,i.jsxs)("div",{className:br("guide-text"),children:["\ubb38\uc758\ub97c \ub0a8\uaca8\uc8fc\uc2dc\uba74 ",(0,i.jsx)("br",{})," \ub2f4\ub2f9\uc790\uac00 \ud655\uc778 \ud6c4 \uc5f0\ub77d\ub4dc\ub9bd\ub2c8\ub2e4."]})]}),(0,i.jsxs)("div",{className:br("form-group"),children:[(0,i.jsxs)("div",{className:br("tel-box"),children:[(0,i.jsxs)("div",{className:br("title"),children:[(0,i.jsx)("p",{className:br("title-text"),children:"\uc5f0\ub77d\ubc1b\uc744 \ud734\ub300\ud3f0\ubc88\ud638"}),(null===d||void 0===d?void 0:d.isLogin)?(0,i.jsx)("div",{className:br("hpno-change-text"),children:(0,i.jsx)("p",{onClick:function(){"Y"===(null===d||void 0===d?void 0:d.CERT_YN)?L():m.goPage("/more/setting/edit-hpno")},children:"\ubcc0\uacbd\ud558\uae30"})}):(0,i.jsxs)("div",{className:br("guide-text"),children:[(0,i.jsx)("img",{src:"/images/icon_exclamation-mark_circle_yellow100_16.svg"}),(0,i.jsx)("p",{children:"\ubc88\ud638\ub97c \uaf2d \ud655\uc778\ud558\uc138\uc694! "})]})]}),(0,i.jsx)("div",{className:br("input-box"),children:(0,i.jsx)(be.xv,xr({},{type:"tel",disabled:null===d||void 0===d?void 0:d.isLogin,className:br("input-tel",(null===d||void 0===d?void 0:d.isLogin)&&"disable"),placeholder:"\ud734\ub300\ud3f0\ubc88\ud638 \uc785\ub825",value:j.senderHpNo?j.senderHpNo:"",onCh
1ange:function(e){return b(xr({},j,{senderHpNo:e.target.value}))}}))})]}),R&&(0,i.jsxs)("div",{className:br("gender-box"),children:[(0,i.jsxs)("div",{className:br("title"),children:[(0,i.jsx)("span",{className:br("title-text"),children:"\uc131\ubcc4"}),(0,i.jsx)("span",{className:br("optional"),children:"(\uc120\ud0dd)"})]}),(0,i.jsxs)("div",{className:br("options"),children:[(0,i.jsx)("div",{className:br("option",{selected:j.gender===dr.Y0.MALE}),onClick:function(){return b(xr({},j,{gender:j.gender===dr.Y0.MALE?void 0:dr.Y0.MALE}))},children:"\ub0a8\uc131"}),(0,i.jsx)("div",{className:br("option",{selected:j.gender===dr.Y0.FEMALE}),onClick:function(){return b(xr({},j,{gender:j.gender===dr.Y0.FEMALE?void 0:dr.Y0.FEMALE}))},children:"\uc5ec\uc131"})]})]}),(0,i.jsxs)("div",{className:br("contact-box"),children:[(0,i.jsxs)("div",{className:br("contact-text-box"),children:[(0,i.jsx)("div",{className:br("title"),children:"\ubb38\uc758 \ub0b4\uc6a9"}),(0,i.jsxs)("div",{className:br("constant-text"),onClick:function(){return r.openPopup(jr)},children:[(0,i.jsx)("p",{children:"\ubb38\uc758 \ub0b4\uc6a9 \uc120\ud0dd"}),(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_12.svg"})]}),(0,i.jsxs)("div",{className:br("contact-textarea"),children:[(0,i.jsx)("textarea",{ref:S,placeholder:"\ubb38\uc758 \ub0b4\uc6a9\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.",onChange:function(e){e.target.value.length>200||b(xr({},j,{message:e.target.value}))},value:j.message||""}),(0,i.jsxs)("div",{className:br("textarea-count"),children:[(0,i.jsxs)("span",{className:br("current"),children:[" ",(null===j||void 0===j||null===(n=j.message)||void 0===n?void 0:n.length)||0]}),(0,i.jsxs)("span",{className:br("max"),children:[" /",200]})]})]})]}),(0,i.jsxs)("div",{className:br("term-box",{open:P}),onClick:function(){return E(!P)},children:[(0,i.jsxs)("div",{className:br("term-title"),children:[(0,i.jsx)("p",{children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1\u2219\uc774\uc6a9 \ubc0f \uc81c 3\uc790 \uc81c\uacf5\uc5d0 \ub3d9\uc758\ud569\ub2c8\ub2e4."}),(0,i.jsx)("img",{src:P?"/images/icon_chevron_up_line_bold_gray60_12.svg":"/images/icon_chevron_down_line_bold_gray60_12.svg"})]}),(0,i.jsxs)("div",{className:br("term-items"),children:[(0,i.jsxs)("div",{className:br("term-item"),onClick:function(){return r.openPopup(gr)},children:[(0,i.jsx)("p",{children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9"})," ",(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_12.svg"})]}),(0,i.jsxs)("div",{className:br("term-item"),onClick:function(){return r.openPopup(Nr)},children:[(0,i.jsx)("p",{children:"\uac1c\uc778\uc815\ubcf4 \uc81c3\uc790 \uc81c\uacf5 \ub3d9\uc758"})," ",(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_12.svg"})]})]})]})]})]})]}),(0,i.jsx)("div",{className:br("submit-button",{on:_}),onClick:M,children:(0,i.jsx)("p",{children:"\ubb38\uc758\ud558\uae30"})})]})),(0,i.jsx)(Jn,{popupName:jr,textList:I?vr:fr,onClickItem:function(){var e=hr(s().mark((function e(n){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(xr({},j,{message:n})),e.next=3,r.closePopup();case 3:return e.next=5,new Promise((function(e){return setTimeout(e,100)}));case 5:(t=S.current)&&(t.focus(),t.setSelectionRange(t.value.length,t.value.length));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}),(0,i.jsx)(ar,{popupName:gr}),(0,i.jsx)(rr,{popupName:Nr,infoReceiver:e.house.name})]})},wr=a.memo(_r),kr=r(65812);function Or(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function Pr(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){Or(i,t,s,a,c,"next",e)}function c(e){Or(i,t,s,a,c,"throw",e)}a(void 0)}))}}var Er=p().bind(y()),Sr="\uce74\ud1a1",Cr="\ubb38\uc790",Tr="\uc804\ud654",Ir=function(e){var n,r=e.house,t=(0,a.useContext)(c.r),o=(0,u.Z)(),l=((0,v.NV)(),(0,f.ZP)()),d=(0,fe.Sn)(r).fetchNearRecommendHouses,m=(0,N.k)().session,h=(0,lr.Z)(),p=(0,a.useRef)(null),x=(0,a.useRef)(!1),j=(0,a.useRef)(!1),b=(0,a.useState)(!1),y=b[0],_=b[1],k=(0,a.useState)({list:[],titleType:fe._8.ANYWHERE}),O=k[0],P=k[1],E=w()().format("YYYYMMDD"),S=g.Z.localStorage.get(Ln.Qt.HIDE_NEAR_HOUSE_RECOMMEND_KEY),T=function(){var e=Pr(s().mark((function e(n,i){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m.isLogin||!g.Z.Browser.isApp()){e.next=3;break}return t.openLoginPop(!1,"1\ucd08\ub9cc\uc5d0 \ub85c\uadf8\uc778\ud558\uace0\n\ube60\ub974\uac8c \ubb38\uc758\ud574\ubcf4\uc138\uc694."),e.abrupt("return",!1);case 3:return e.next=5,o.increaseClickCount(r.no,i);case 5:if(200===e.sent.status){e.next=8;break}return e.abrupt("return",!1);case 8:if(!m.isLogin||i===C.je.KAKAO_ALIM_CLICK){e.next=11;break}return e.next=11,h.postUserContactLog({targetType:ur.L.HOUSE,targetNo:r.no,contactType:i===C.je.CALL_CLICK?ur.u.CALL_CLICK:ur.u.KAKAO_CLICK});case 11:return l.trackInquiry(n),e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(n,r){return e.apply(this,arguments)}}(),I=function(){var e=Pr(s().mark((function e(){var n,r,i,a=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>0&&void 0!==a[0]?a[0]:700,r="",!d){e.next=8;break}return e.next=5,d();case 5:i=e.sent,P({list:i.list,titleType:i.titleType}),r=i.list.length>0?Ln.TT.POP_NAME_NEAR_HOUSE_RECOMMEND:Ln.TT.POP_NAME_NEAR_HOUSE_EMPTY;case 8:setTimeout((function(){t.openPopup(r)}),n);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){setTimeout((function(){_(!0)}),300)}),[]),(0,a.useEffect)((function(){if(g.Z.Browser.isApp()){var e=function(){document.hidden?x.current&&(x.current=!1,j.current=!0):j.current&&(j.current=!1,S!==E&&I(700))};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}}),[]),(0,a.useEffect)((function(){r.service===C.Ri.UCEO?p.current=r.hpNo:r.service===C.Ri.UAGENT&&(p.current=r.telNo)}),[r]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:Er("contract-buttons",y?"visible":""),children:[(0,i.jsx)("div",{className:Er("gradient-box")}),(0,i.jsxs)("div",{className:Er("wrap-contact"),children:["chatLink"in r&&r.hasMembership&&r.isChatLinkEnabled&&!g.Z.isEmpty(r.chatLink)?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("a",{className:Er("btn-kakao","btn-contract-white"),onClick:Pr(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(Sr,C.je.KAKAO_CHAT_CLICK);case 2:if(e.sent){e.next=5;break}return e.abrupt("return");
1case 5:Pe.ZP.open2(r.chatLink)&&S!==E&&I();case 7:case"end":return e.stop()}}),e)}))),children:[(0,i.jsx)("img",{src:"/images/icon_kakaotalk_filled_mint80_22.svg"}),(0,i.jsx)("span",{children:"\uce74\ud1a1\ubb38\uc758"})]})}):p.current&&p.current.startsWith("010")?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("a",{className:Er("btn-sms","btn-contract-white"),onClick:Pr(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(Cr,C.je.KAKAO_ALIM_CLICK);case 2:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:t.openPopup(Ln.TT.POP_NAME_SMS_CONSULT);case 6:case"end":return e.stop()}}),e)}))),children:[(0,i.jsx)("img",{src:"/images/icon_envelope_filled_mint80_22.svg"}),(0,i.jsx)("span",{children:"\ubb38\uc790\ubb38\uc758"})]})}):void 0,(0,i.jsxs)("a",{className:Er("btn-tel","btn-contract-green"),onClick:Pr(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(Tr,C.je.CALL_CLICK);case 2:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:g.Z.Browser.isPc()?t.openPopup(Ln.TT.POP_NAME_TEL_INFO):(location.href="tel:"+r.virtualTelNo,g.Z.Browser.isIosApp()?x.current=!0:g.Z.Browser.isAndroidApp()&&(j.current=!0));case 6:case"end":return e.stop()}}),e)}))),children:[(0,i.jsx)("img",{src:"/images/icon_phone_filled_white_22.svg"}),(0,i.jsx)("span",{children:"\uc804\ud654\ubb38\uc758"}),(0,i.jsx)(qn,{house:r})]})]})]}),(0,i.jsx)(kr.Z,{popupName:Ln.TT.POP_NAME_TEL_INFO,name:r.name,telNo:r.virtualTelNo,onClose:function(){S!==E&&I()},agentNo:null===(n=r)||void 0===n?void 0:n.agentNo}),(0,i.jsx)(wr,{popupName:Ln.TT.POP_NAME_SMS_CONSULT,houseNo:r.no,house:r,openNearPop:I}),(0,i.jsx)(Hn,{popupName:Ln.TT.POP_NAME_NEAR_HOUSE_RECOMMEND,house:r,listData:O}),(0,i.jsx)(Yn,{popupName:Ln.TT.POP_NAME_NEAR_HOUSE_EMPTY})]})},Rr=r(42283),Ar=r(68333),Mr=r(68385),Lr=r.n(Mr),Fr=p().bind(Lr()),Zr=function(e){var n=e.popupName,r=e.email,t=e.onVerified,s=(0,a.useContext)(c.r),o=(0,a.useState)(0),l=o[0],u=o[1];return(0,i.jsxs)(Ze.Z,{popupName:n,fullscreen:!0,className:Fr("email-cert-pop"),onVisibleChange:function(){return u((function(e){return e+1}))},children:[(0,i.jsx)(Le.Z,{fixed:!1,border:!0,left:(0,i.jsx)("a",{className:"btn-back",onClick:function(){return s.closePopup()}}),children:(0,i.jsx)("h1",{children:"\uc774\uba54\uc77c \ubcc0\uacbd"})}),(0,i.jsx)(Ar.Z,{email:r,onVerified:function(e){t(e),s.closePopup()}},l)]})},Yr=a.memo(Zr);function Dr(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function Ur(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){Dr(i,t,s,a,c,"next",e)}function c(e){Dr(i,t,s,a,c,"throw",e)}a(void 0)}))}}function zr(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Vr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){zr(e,n,r[n])}))}return e}var Hr=p().bind(y()),Kr="foreignerTermsUsage",Gr="foreignerTermsProvision",Wr="foreignerEmailCert",qr=function(e){var n=e.popupName,r=e.house,t=(0,a.useContext)(c.r),o=(0,u.Z)(),l=(0,m.Z)(),d=(0,f.ZP)(),h=(0,N.k)(),p=h.session,x=h.setSession,v=(0,a.useState)(""),j=v[0],b=v[1],y=(0,a.useState)(""),_=y[0],w=y[1],k=(0,a.useState)(""),O=k[0],P=k[1],E=(0,a.useState)(!1),S=E[0],T=E[1],I=(0,a.useState)(""),R=I[0],A=I[1],M=(0,Rr.cI)({defaultValues:{email:""},mode:"onSubmit"}),L=M.register,F=M.handleSubmit,Z=M.reset,Y=M.setValue,D=M.watch,U=M.formState.errors,z=!D("email").trim(),V=!!R,H=function(){var e=Ur(s().mark((function e(n){var i,a,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.email,a=O.trim()?O:r.service===C.Ri.UCEO?"\uc774 \uc9c0\uc810\uc5d0 \ub300\ud574 \uc0c1\ub2f4\uc744 \ubc1b\uace0 \uc2f6\uc5b4\uc694.":"\uc774 \ub9e4\ubb3c\uc5d0 \ub300\ud574 \uc0c1\ub2f4\uc744 \ubc1b\uace0 \uc2f6\uc5b4\uc694.",t.showLoading(),e.next=5,o.sendForeignKakaoAlimTalk(r.no,{email:i,facebookId:j,instagramId:_,message:a});case 5:c=e.sent,t.hideLoading(),200===c.status?(d.trackForeignerInquirySubmit(),t.toast("\ubb38\uc758\uac00 \uc811\uc218\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",{bottom:80}),t.closePopup()):t.toast("\ubb38\uc758 \uc811\uc218\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud574\uc8fc\uc138\uc694.",{bottom:80});case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Ze.Z,{className:Hr("house-sms-consult-pop","foreigner-contact-v2"),popupName:n,fullscreen:!0,onVisibleChange:function(e){e&&(Z({email:(null===p||void 0===p?void 0:p.EMAIL)||""}),b(""),w(""),P(""),T(!1),A((null===p||void 0===p?void 0:p.EMAIL)||""))},children:[(0,i.jsx)("div",{className:Hr("header"),children:(0,i.jsx)("a",{className:Hr("btn-close"),onClick:function(){return t.closePopup()},children:(0,i.jsx)("img",{src:"/images/x.svg"})})}),(0,i.jsx)("div",{style:{paddingTop:"56px"}}),(0,i.jsxs)("div",{className:Hr("wrap-content"),children:[(0,i.jsxs)("div",{className:Hr("info-box"),children:[(0,i.jsxs)("div",{className:Hr("guide-text"),children:["\ubb38\uc758\ub97c \ub0a8\uaca8\uc8fc\uc2dc\uba74 ",(0,i.jsx)("br",{})," \ub2f4\ub2f9\uc790\uac00 \ud655\uc778 \ud6c4 \uc5f0\ub77d\ub4dc\ub9bd\ub2c8\ub2e4."]}),(0,i.jsxs)("div",{className:Hr("house-name"),children:[(0,i.jsx)("img",{src:"/images/icon_home_line_bold_gray80_16.svg"}),(0,i.jsx)("p",{className:Hr("text"),children:r.name})]})]}),(0,i.jsxs)("div",{className:Hr("contact-card"),children:[(0,i.jsx)("div",{className:Hr("section-title"),children:"\uc5f0\ub77d\ucc98"}),(0,i.jsxs)("div",{className:Hr("field-group"),children:[(0,i.jsxs)("div",{className:Hr("tel-box"),children:[(0,i.jsxs)("div",{className:Hr("label-row",{"has-change":V}),children:[(0,i.jsx)("p",{className:Hr("label-text"),children:"Email"}),V?(0,i.jsx)("a",{className:Hr("email-change-text"),onClick:function(){return t.openPopup(Wr)},children:"\ubcc0\uacbd\ud558\uae30"}):(0,i.jsx)("span",{className:Hr("required-mark"),children:"\ud544\uc218"})]}),(0,i.jsx)("div",{className:Hr("input-box"),children:(0,i.jsx)("input",Vr({className:Hr("input-tel",{disable:V,error:U.email}),type:"email",readOnly:V,placeholder:"\uc5f0\ub77d \ubc1b\uc744 Email \uc8fc\uc18c\ub97c \uc785\ub825\ud558\uc138\uc694."},L("email",{validate:function(e){return g.Z.isEmailValid(e)||"\uc774\uba54\uc77c\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694."}})))}),U.email&&(0,i.jsx)("p",{className:Hr("input-error-text"),children:U.email.message})]}),(0,i.jsxs)("div",{className:Hr("sns-section"),children:[(0,i.jsxs)("div",{className:Hr("sns-head"),children:[(0,i.jsxs)("div",{className:Hr("label-row"),children:[(0,i.jsx)("p",{className:Hr("label-text"),children:"Social media"}),(0,i.jsx)("span",{className:Hr("optional-mark"),children:"\uc120\ud0dd"})]}),(0,i.jsx)("p",{className:Hr("sns-guide"),children:"\ucd94\uac00\ub85c \uc5f0\ub77d \uac00\ub2a5\ud55c \uc18c\uc15c \uacc4\uc815\uc774 \uc788\ub2e4\uba74 \uc785\ub825\ud574 \uc8fc\uc138\uc694."})]}),(0,i.jsxs)("div",{className:Hr("sns-rows"),children:[(0,i.jsxs)("div",{className:Hr("sns-row"),children:[(0,i.jsxs)("div",{className:Hr("sns-label"),children:[(0,i.jsx)("img",{src:"/images/icon_social_facebook_16.svg"}),(0,i.jsx)("span",{children:"Facebook"})]}),(0,i.jsx)("input",{className:Hr("sns-id-input"),type:"text",placeholder:"ID \uc785\ub825",value:j,onChange:function(e){return b(e.target.value)}})]}),(0,i.jsxs)("div",{className:Hr("sns-row"),children:[(0,i.jsxs)("div",{className:Hr("sns-label"),children:[(0,i.jsx)("img",{src:"/images/icon_social_instagram_16.svg"}),(0,i.jsx)("span",{children:"Instagram"})]}),(0,i.jsx)("input",{className:Hr("sns-id-input"),type:"text",placeholder:"ID \uc785\ub825",value:_,onCh
1ange:function(e){return w(e.target.value)}})]})]})]})]})]}),(0,i.jsxs)("div",{className:Hr("inquiry-card"),children:[(0,i.jsxs)("div",{className:Hr("section-head"),children:[(0,i.jsx)("p",{className:Hr("section-title"),children:"\ubb38\uc758\uc0ac\ud56d"}),(0,i.jsx)("span",{className:Hr("optional-mark"),children:"\uc120\ud0dd"})]}),(0,i.jsxs)("div",{className:Hr("contact-box"),children:[(0,i.jsx)("div",{className:Hr("contact-text-box"),children:(0,i.jsxs)("div",{className:Hr("contact-textarea"),children:[(0,i.jsx)("textarea",{placeholder:"\ubb38\uc758 \uc608\uc2dc\n- \uc608\uc0c1\ud558\ub294 \uc785\uc2e4 \ub0a0\uc9dc : 26.09.01~26.09.14\n- \uae30\ud0c0 \ubb38\uc758 : \uc678\uad6d\uc778 \uc751\ub300 \uac00\ub2a5\ud55c\uac00\uc694?",onChange:function(e){e.target.value.length>200||P(e.target.value)},value:O}),(0,i.jsxs)("div",{className:Hr("textarea-count"),children:[(0,i.jsx)("span",{className:Hr("current"),children:O.length}),(0,i.jsxs)("span",{className:Hr("max"),children:["/",200]})]})]})}),(0,i.jsxs)("div",{className:Hr("term-box",{open:S}),onClick:function(){return T(!S)},children:[(0,i.jsxs)("div",{className:Hr("term-title"),children:[(0,i.jsx)("p",{children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1\u2219\uc774\uc6a9 \ubc0f \uc81c 3\uc790 \uc81c\uacf5\uc5d0 \ub3d9\uc758\ud569\ub2c8\ub2e4."}),(0,i.jsx)("img",{src:S?"/images/icon_chevron_up_line_bold_gray60_12.svg":"/images/icon_chevron_down_line_bold_gray60_12.svg"})]}),(0,i.jsxs)("div",{className:Hr("term-items"),children:[(0,i.jsxs)("div",{className:Hr("term-item"),onClick:function(e){e.stopPropagation(),t.openPopup(Kr)},children:[(0,i.jsx)("p",{children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9"}),(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_12.svg"})]}),(0,i.jsxs)("div",{className:Hr("term-item"),onClick:function(e){e.stopPropagation(),t.openPopup(Gr)},children:[(0,i.jsx)("p",{children:"\uac1c\uc778\uc815\ubcf4 \uc81c3\uc790 \uc81c\uacf5 \ub3d9\uc758"}),(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_12.svg"})]})]})]})]})]})]}),(0,i.jsx)("div",{className:Hr("submit-button",{on:!z}),onClick:F(H),children:(0,i.jsx)("p",{children:"\ubcf4\ub0b4\uae30"})})]}),(0,i.jsx)(ar,{popupName:Kr}),(0,i.jsx)(rr,{popupName:Gr,infoReceiver:r.name}),(0,i.jsx)(Yr,{popupName:Wr,email:R,onVerified:function(){var e=Ur(s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.patchMyEmail(n);case 2:200===e.sent.status&&x(Vr({},p,{EMAIL:n})),A(n),Y("email",n),t.toast("\uc774\uba54\uc77c\uc774 \ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",{bottom:80});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()})]})},Br=a.memo(qr);function Xr(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}var Qr=p().bind(y()),Jr=function(e){var n=e.house,r=(0,a.useContext)(c.r),t=(0,N.k)().session,o=(0,f.ZP)(),l=(0,u.Z)(),d=n.service===C.Ri.UCEO?n.hpNo:n.telNo,m=!(null===d||void 0===d?void 0:d.startsWith("010")),h=function(){var e,i=(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t||void 0===t?void 0:t.isLogin){e.next=3;break}return r.openLoginPop(!1),e.abrupt("return");case 3:return e.next=5,l.increaseClickCount(n.no,C.je.FOREIGN_KAKAO_ALIM_CLICK);case 5:if(200===e.sent.status){e.next=8;break}return e.abrupt("return");case 8:o.trackInquiry(Cr,!0),r.openPopup(Ln.TT.POP_NAME_FOREIGNER_CONTACT);case 10:case"end":return e.stop()}}),e)})),function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){Xr(i,t,s,a,c,"next",e)}function c(e){Xr(i,t,s,a,c,"throw",e)}a(void 0)}))});return function(){return i.apply(this,arguments)}}();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:Qr("contract-buttons","visible"),children:[(0,i.jsx)("div",{className:Qr("gradient-box")}),(0,i.jsx)("div",{className:Qr("wrap-contact"),children:m?(0,i.jsxs)("a",{className:Qr("btn-contract-disabled"),children:[(0,i.jsx)("span",{children:"\ubb38\uc758\ud558\uae30"}),(0,i.jsxs)("div",{className:Qr("tooltip"),children:[(0,i.jsx)("p",{className:Qr("tooltip-text"),children:"\uc774 \uc9c0\uc810\uc740 \ud604\uc7ac \ubb38\uc758\ub97c \ud560 \uc218 \uc5c6\uc5b4\uc694."}),(0,i.jsx)("img",{className:Qr("tooltip-arrow-down"),src:"/images/tool-tip_tail_down_small_gray100.svg"})]})]}):(0,i.jsx)("a",{className:Qr("btn-contract-green"),onClick:function(){return h()},children:(0,i.jsx)("span",{children:"\ubb38\uc758\ud558\uae30"})})})]}),(0,i.jsx)(Br,{popupName:Ln.TT.POP_NAME_FOREIGNER_CONTACT,house:n})]})},$r=r(17563);function et(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function nt(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function rt(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function tt(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){rt(e,n,r[n])}))}return e}function st(e){return function(e){if(Array.isArray(e))return et(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return et(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return et(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var it=function(e){var n=(0,a.useContext)(c.r),r=(0,v.QT)(),t=(0,a.useState)(),o=t[0],l=t[1],u=(0,a.useState)(),d=u[0],m=u[1],h=(0,a.useState)([{txt:"\ud45c\uc2dc\ub41c \uc815\ubcf4\uac00 \uc2e4\uc81c \uc5c5\uccb4 \uc815\ubcf4\uc640 \ub2e4\ub985\ub2c8\ub2e4.",historyCd:"HISTORY046"},{txt:"\ud574\ub2f9 \uc5c5\uccb4\uc758 \uc2dc\uc124 \ubc0f \uc11c\ube44\uc2a4\uac00 \ubd88\ub9cc\uc871\uc2a4\ub7fd\uc2b5\ub2c8\ub2e4.",historyCd:"HISTORY047"},{txt:"\uae30\ud0c0 \uc2e0\uace0\uc0ac\uc720",historyCd:"HISTORY048"}]),p=h[0],x=h[1],f=function(){null!=o&&(g.Z.isEmpty(p[o].value)?m(!1):m(!0))},j=function(){var t,a=(t=s().mark((function t(){var a,c;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=o){t.next=3;break}return n.alert((0,i.jsx)(i.Fragment,{children:"\uc2e0\uace0\ud560 \ud56d\ubaa9\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694."})),t.abrupt("return");case 3:if(!g.Z.isEmpty(p[o].value)){t.next=6;break}return n.alert((0,i.jsxs)(i.Fragment,{children:["\uad6c\uccb4\uc801\uc778 \uc2e0\uace0\uc0ac\uc720 \ubc0f",(0,i.jsx)("br",{}),"\uc758\uacac\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694."]})),t.abrupt("return");case 6:return t.next=8,n.confirm("\uc81c\ucd9c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?");case 8:if(t.sent){t.next=11;break}return t.abrupt("return");case 11:return a={houseNo:e.houseNo,historyCd:p[o].historyCd,memo:p[o].value},n.showLoading(),c=null,t.next=16,r.post("/v1/auth/house-report?"+$r.stringify(a));case 16:if(c=t.sent,n.hideLoading(),200!==c.status){t.next=22;break}return t.next=21,n.alert("\ucc98\ub9ac\ub418\uc5c8\uc2b5\ub2c8\ub2e4");case 21:n.closePopup();case 22:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,s){var i=t.apply(e,n);function a(e){nt(i,r,s,a,c,"next",e)}function c(e){nt(i,r,s,a,c,"throw",e)}a(void 0)}))});return function(){return a.apply(this,arguments)}}();return(0,a.useEffect)((function(){f()}),[o]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{children:"\uc2e0\uace0\ud558\uae30"}),(0,i.jsx)("a",{className:"btn-close",onClick:function(){return n.closePopup()}}),(0,i.jsxs)("div",{className:"ly-cont",children:[(0,i.jsxs)("div",{className:"wrap-siren",children:[(0,i.jsx)("div",{className:"ico-siren",children:(0,i.jsx)("img",{src:"/images/siren.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"})}),(0,i.jsx)("div",{className:"txt",children:(0,i.jsxs)(i.Fragment,{children:["\ud5c8\uc704\uc815\ubcf4 \uc81c\uacf5\uc5c5\uccb4\uc758 \uacbd\uc6b0 \uc11c\ube44\uc2a4 \uc0c1\uc758",(0,i.jsx)("br",{}),"\ub178\ucd9c\uc81c\ud55c \ub610\ub294 \uc0ad\uc81c\ucc98\ub9ac \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4."]})})]}),(0,i.jsx)("div",{className:"wrap-siren-list",children:(0,i.jsx)("ul",{children:p.map((function(e,n){return(0,i.jsxs)("li",{className:o===n?"on":"",children:[(0,i.jsx)("a",{className:"ques",onClick:function(){return l(n)},children:e.txt}),(0,i.jsx)("div",{className:"bx-txtarea ans",children:(0,i.jsx)("textarea",{placeholder:"\uad6c\uccb4\uc801\uc778 \uc2e0\uace0\uc0ac\uc720 \ubc0f \uc758\uacac\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.",onChange:function(e){var r=st(p);r[n].value=e.target.value,x(r),f()}})})]},n)}))})}),(0,i.jsx)("div",{className:"btn-regist"+(d?" on":""),onClick:j,children:(0,i.jsx)("a",{children:"\uc81c\ucd9c\ud558\uae30"})})]})]})},at=function(e){var n=(0,a.useState)(!1),r=n[0],t=n[1];return(0,i.jsx)(Ze.Z,tt({className:"report-pop"},e,{fullscreen:!0,onVisibleChange:function(e){t(e)},children:r&&(0,i.jsx)(it,tt({},e))}))};function ct(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function ot(e){return function(e){if(Array.isArray(e))return ct(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return ct(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var lt=p().bind(y()),ut=function(e){var n,r=e.house,t=e.areaType,s=e.changeAreaType,o=(0,a.useContext)(c.r),l=w()(r.updatedAt).isAfter(w()().subtract(3,"months"));return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("section",{className:lt("main-info-section"),children:[(0,i.jsxs)("div",{className:lt("wrap-main-info"),children:[(0,i.jsxs)("div",{className:lt("wrap-price"),children:[(0,i.jsxs)("div",{className:lt("building-no"),children:["\ub9e4\ubb3c\ubc88\ud638 ",r.agentNo]}),r.maxPrice>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{className:lt("month-price"),children:["\uc6d4\uc138 ",K.Z.getMonthPriceText(r.minPrice,r.maxPrice)]}),(0,i.jsxs)("p",{className:lt("deposit"),children:["\ubcf4\uc99d\uae08 ",K.Z.getDepositText(r.minDeposit,r.maxDeposit)]})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("p",{className:lt("month-bill"),children:["\uc804\uc138 ",K.Z.getDepositText(r.minDeposit,r.maxDeposit)]})})]}),(0,i.jsxs)("div",{className:lt("wrap-basic-info"),children:[(0,i.jsxs)("div",{className:lt("wrap-type-name"),children:[(0,i.jsx)("div",{className:lt("types"),children:(0,i.jsx)("div",{className:lt("item"),children:(0,i.jsx)("span",{children:C.FK[r.houseType]})})}),(0,i.jsx)("div",{className:lt("name"),children:r.name})]}),(0,i.jsx)("div",{className:lt("wrap-addr"),children:K.Z.getNearSubway(r)})]})]}),(0,i.jsx)("div",{className:lt("hr")}),(0,i.jsxs)("div",{className:lt("wrap-main-info2"),children:[(0,i.jsxs)("div",{className:lt("section","left-section"),children:[(0,i.jsxs)("div",{className:lt("item","first-item"),children:[(0,i.jsx)("img",{className:lt("icon"),src:"/images/icon_structure_line_gray100_24.svg"}),(0,i.jsx)("span",{className:lt("txt","structure-txt"),children:(0,i.jsx)("span",{children:B.K1[r.roomType]})})]}),(0,i.jsxs)("div",{className:lt("item"),children:[(0,i.jsx)("img",{className:lt("icon"),src:"/images/icon_size_line_gray100_24.svg"}),(0,i.jsx)("span",{className:lt("txt"),children:t===xs.squareMeter?Math.round(r.exclusiveArea)+"m\xb2":Math.round(r.exclusiveArea/3.3)+"\ud3c9"}),r.exclusiveArea&&(0,i.jsx)("a",{className:lt("btn-area-change"),onClick:function(){var e=t===xs.squareMeter?xs.pyeong:xs.squareMeter;s(e)},children:(0,i.jsx)("img",{src:"/images/icon_change_line_bold_gray80_12.svg"})})]})]}),(0,i.jsx)("div",{className:lt("section","right-section"),children:(0,i.jsxs)("div",{className:lt("item"),children:[(0,i.jsx)("img",{className:lt("icon"),src:"/images/icon_floor_line_gray100_24.svg"}),(0,i.jsx)("span",{className:lt("txt"),children:(0,i.jsxs)("span",{children:[(n=r,n.isFloorDisplayed?-.5==Number(n.floor)?"\ubc18\uc9c0\uce35":9999==Number(n.floor)?"\uc625\ud0d1\ubc29":n.floor+"\uce35":n.floorTotal/2<n.floor?"\uace0\uce35":"\uc800\uce35"),"/",r.floorTotal||"-","\uce35"]})})]})})]}),(0,i.jsx)("div",{className:lt("hr")}),(0,i.jsx)("div",{className:lt("wrap-tags"),children:r.tags&&(0,i.jsxs)("div",{className:lt("tags"),children:[r.isKrgGuaranteez&&(0,i.jsxs)("div",{className:lt("item","guaranteez"),children:[(0,i.jsx)("img",{src:"/images/icon_colored_guaranteez_14.svg"}),(0,i.jsx)("span",{children:"\ubb34\ubcf4\uc99d\uae08"})]}),r.houseType===C.Rz.ONE_TWO_ROOM&&(0,i.jsx)("div",{className:lt("item","agent"),children:(0,i.jsx)("span",{children:"\uc911\uac1c\uc0ac"})}),function(){var e=ot(K.Z.parseTags(r.tags||[]));return(0,i.jsx)(i.Fragment,{children:e.map((function(e,n){return(0,i.jsx)("div",{className:lt("item"),children:(0,i.jsx)("span",{children:e})},n)}))})}()]})}),r.isKrgGuaranteez&&(0,i.jsxs)("div",{className:lt("wrap-guaranteez-banner","main-info-banner"),onClick:function(){return o.openPopup(M)},children:[(0,i.jsxs)("div",{className:lt("title"),children:[(0,i.jsx)("img",{src:"/images/icon_colored_guaranteez_22.svg"}),(0,i.jsx)("p",{children:"\ubb34\ubcf4\uc99d\uae08"})]}),(0,i.jsx)("div",{className:lt("content"),children:"\uac1c\ub7f0\ud2f0\uc988\ub85c \ubcf4\uc99d\uae08 \uc5c6\uc774 \uacc4\uc57d!"}),(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_14.svg"})]}),l&&(0,i.jsxs)("div",{className:lt("mod-dt"),children:[w()(r.updatedAt).format("YY-MM-DD")," \uc5c5\ub370\uc774\ud2b8"]})]})})},dt=a.memo(ut);function mt(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var ht=p().bind(y()),pt=function(e){var n=(0,a.useContext)(c.r);return(0,i.jsxs)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){mt(e,n,r[n])}))}return e}({},e,{className:ht("benefit-desc-pop")},e,{children:[(0,i.jsx)("a",{className:ht("btn-close"),onClick:function(){n.closePopup()},children:(0,i.jsx)("img",{src:"/images/button_title_x_gray100_48.svg"})}),(0,i.jsx)("h2",{className:ht("title"),children:"\uc81c\ud734\ud560\uc778 \ub0b4\uc6a9"}),(0,i.jsx)("div",{className:ht("contents"),children:e.contents})]}))},xt=r(29178);function ft(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var vt=p().bind(y()),jt=function(e){var n=(0,a.useContext)(c.r);return(0,i.jsx)(xt.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){ft(e,n,r[n])}))}return e}({popupName:e.popupName},e,{children:(0,i.jsxs)("div",{className:vt("structure-pop"),children:["structureMini"===e.popupName?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{children:"\ubbf8\ub2c8\ub8f8"}),(0,i.jsxs)("div",{className:vt("img"),children:[(0,i.jsx)("img",{src:"/images/mapdetail-shower-off.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"}),(0,i.jsx)("img",{src:"/images/mapdetail-toilet-off.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"})]}),(0,i.jsxs)("div",{className:vt("txt"),children:["\uac01 \ubc29\uc5d0 ",(0,i.jsx)("strong",{children:"\uc0e4\uc6cc\uc2e4\uacfc \ud654\uc7a5\uc2e4\uc774 \ubaa8\ub450 \uc5c6\ub294 \ubc29 \uad6c\uc870"}),"\uc785\ub2c8\ub2e4. \uacf5\uc6a9\uc0e4\uc6cc\uc2e4\uacfc \uacf5\uc6a9\ud654\uc7a5\uc2e4\uc744 \uc774\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4."]})]}):"structureShower"===e.popupName?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{children:"\uc0e4\uc6cc\ub8f8"}),(0,i.jsxs)("div",{className:vt("img"),children:[(0,i.jsx)("img",{src:"/images/mapdetail-shower-on.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"}),(0,i.jsx)("img",{src:"/images/mapdetail-toilet-off.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"})]}),(0,i.jsxs)("div",{className:vt("txt"),children:["\uac01 \ubc29\uc5d0 ",(0,i.jsx)("strong",{children:"\uc0e4\uc6cc\uc2e4\ub9cc \uc788\ub294 \ubc29 \uad6c\uc870"}),"\uc785\ub2c8\ub2e4. \ud654\uc7a5\uc2e4\uc740 \uacf5\uc6a9\ud654\uc7a5\uc2e4\uc744 \uc774\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4."]})]}):"structureMix"===e.popupName?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{children:"\ud63c\ud569\ud615"}),(0,i.jsx)("div",{className:vt("img"),children:(0,i.jsx)("img",{src:"/images/mapdetail-mix.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"})}),(0,i.jsx)("div",{className:vt("txt"),children:"\ub2e4\uc591\ud55c \ubc29 \uc885\ub958\uac00 \ud63c\ud569\ub41c \uace0\uc2dc\uc6d0\uc785\ub2c8\ub2e4."}),(0,i.jsxs)("ul",{className:vt("txt2"),children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"\u30fb \ubbf8\ub2c8\ub8f8"}),(0,i.jsx)("span",{className:vt("d-x"),children:"\uac1c\uc778\uc0e4\uc6cc\uc2e4 X"}),(0,i.jsx)("span",{className:vt("d-x"),children:"\uac1c\uc778\ud654\uc7a5\uc2e4 X"})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"\u30fb \uc0e4\uc6cc\ub8f8"}),(0,i.jsx)("span",{children:"\uac1c\uc778\uc0e4\uc6cc\uc2e4 O"}),(0,i.jsx)("span",{className:vt("d-x"),children:"\uac1c\uc778\ud654\uc7a5\uc2e4 X"})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"\u30fb \uc6d0\ub8f8\ud615"}),(0,i.jsx)("span",{children:"\uac1c\uc778\uc0e4\uc6cc\uc2e4 O"}),(0,i.jsx)("span",{children:"\uac1c\uc778\ud654\uc7a5\uc2e4 O"})]})]})]}):"structureSingle"===e.popupName?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{children:"\uc6d0\ub8f8\ud615"}),(0,i.jsxs)("div",{className:vt("img"),children:[(0,i.jsx)("img",{src:"/images/mapdetail-shower-on.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"}),(0,i.jsx)("img",{src:"/images/mapdetail-toilet-on.png",srcSet:"/images/[email protected] 2x, /images/[email protected] 3x"})]}),(0,i.jsxs)("div",{className:vt("txt"),children:["\uac01 \ubc29\uc5d0 ",(0,i.jsx)("strong",{children:"\uc0e4\uc6cc\uc2e4\uacfc \ud654\uc7a5\uc2e4\uc774 \ubaa8\ub450 \uc788\ub294 \ubc29 \uad6c\uc870"}),"\uc785\ub2c8\ub2e4."]})]}):void 0,(0,i.jsx)("a",{className:vt("btn-confirm"),onClick:function(){return n.closePopup()},children:"\ud655\uc778"})]})}))},gt=a.memo(jt),Nt=p().bind(y()),bt=function(e){var n=e.open,r=e.onClose;return n?(0,i.jsxs)("div",{className:Nt("ai-summary-tooltip"),children:[(0,i.jsxs)("div",{className:Nt("ai-summary-tooltip-title-group"),children:[(0,i.jsx)("div",{className:Nt("ai-summary-tooltip-title"),children:"AI \uac15\uc810 \uc694\uc57d"}),(0,i.jsx)("img",{className:Nt("beta-icon"),src:"/images/icon_beta.svg"})]}),(0,i.jsxs)("div",{className:Nt("ai-summary-tooltip-list"),children:[(0,i.jsx)("div",{className:Nt("ai-summary-tooltip-item"),children:(0,i.jsx)("ul",{className:Nt("ai-summary-tooltip-item-ul"),children:(0,i.jsx)("li",{children:"\uc9c0\uc810 \uc815\ubcf4\ub97c \ubc14\ud0d5\uc73c\ub85c AI\uac00 \uc8fc\uc694 \uac15\uc810\uc744 \ubd84\uc11d \ubc0f \uc694\uc57d\ud558\uc5ec \uc81c\uacf5\ud558\ub294 \uc11c\ube44\uc2a4\uc5d0\uc694."})})}),(0,i.jsx)("div",{className:Nt("ai-summary-tooltip-item"),children:(0,i.jsx)("ul",{className:Nt("ai-summary-tooltip-item-ul"),children:(0,i.jsx)("li",{children:"\uae30\uc220 \ud2b9\uc131\uc0c1 \uc77c\ubd80 \uc624\ub958\ub098 \ub204\ub77d\uc774 \uc788\uc744 \uc218 \uc788\uc73c\ub2c8, \uc815\ud655\ud55c \ub0b4\uc6a9\uc740 \uc9c0\uc810 \uc815\ubcf4\uc640 \ud6c4\uae30\ub97c \uc9c1\uc811 \ud655\uc778\ud574\uc8fc\uc138\uc694."})})})]}),(0,i.jsx)("img",{className:Nt("close-icon"),src:"/images/icon_tootip-close.svg",onClick:r})]}):null};function yt(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function _t(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,s,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(i.push(t.value),!n||i.length!==n);a=!0);}catch(o){c=!0,s=o}finally{try{a||null==r.return||r.return()}finally{if(c)throw s}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return yt(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=p().bind(y()),kt=function(e){e.houseNo;var n=e.aiSummary,r=e.onLike,t=e.onDislike,s=(0,a.useRef)(null),c=(0,a.useState)(!1),o=c[0],l=c[1],u=(0,a.useState)(!1),d=u[0],m=u[1],h=(0,a.useState)(!1),p=h[0],x=h[1],f=(0,a.useState)(null),v=f[0],j=f[1],N="HOUSE_AI_SUMMARY_LIKE_"+n.no;return(0,a.useEffect)((function(){var e=new IntersectionObserver((function(e){_t(e,1)[0].isIntersecting&&!o&&(l(!0),setTimeout((function(){m(!0)}),1200))}),{threshold:.3});return s.current&&e.observe(s.current),function(){e.disconnect()}}),[o]),(0,a.useEffect)((function(){var e=g.Z.localStorage.get(N);j("true"===e||"false"!==e&&null)}),[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:s,className:wt("ai-summary-wrap"),children:[(0,i.jsx)("div",{className:wt("ai-summary-header"),children:(0,i.jsxs)("div",{className:wt("ai-summary-title"),children:[(0,i.jsx)("div",{className:wt("ai-icon-area"),children:(0,i.jsx)("img",{className:wt("ai-icon"),src:"/images/icon_ai.svg"})}),(0,i.jsx)("div",{className:wt("ai-text"),children:" AI\uac00 \uc8fc\uc694 \uac15\uc810\uc744 \uc694\uc57d\ud588\uc5b4\uc694 "}),(0,i.jsx)("img",{className:wt("ai-information-icon"),src:"/images/icon_information.svg",onClick:function(){return x(!0)}}),(0,i.jsx)("img",{className:wt("beta-icon"),src:"/images/icon_beta.svg"})]})}),(0,i.jsx)("div",{className:wt("ai-summary-content"),children:d?(0,i.jsx)(i.Fragment,{children:n.summaries.map((function(e,n){return(0,i.jsx)("div",{className:wt("ai-summary-item"),children:(0,i.jsx)("ul",{className:wt("ai-summary-item-ul"),children:(0,i.jsx)("li",{children:e})})})}))}):(0,i.jsxs)("div",{className:wt("ai-summary-skeleton"),children:[(0,i.jsx)("div",{className:wt("skeleton-line","long")}),(0,i.jsx)("div",{className:wt("skeleton-line","short")}),(0,i.jsx)("div",{className:wt("skeleton-line","long")}),(0,i.jsx)("div",{className:wt("skeleton-line","medium")})]})}),(0,i.jsx)(bt,{open:p,onClose:function(){return x(!1)}}),d&&(0,i.jsxs)("div",{className:wt("ai-summary-feedback"),children:[(0,i.jsx)("div",{className:wt("ai-summary-feedback-text"),children:" \uc694\uc57d\uc774 \ub3c4\uc6c0\ub410\ub098\uc694? "}),(0,i.jsxs)("div",{className:wt("ai-summary-feedback-buttons"),children:[(0,i.jsx)("div",{className:wt("button"),onClick:function(){!0!==v&&(g.Z.localStorage.set(N,"true"),j(!0),null===r||void 0===r||r())},children:!0===v?(0,i.jsx)("img",{className:wt("thumbs-up-icon"),src:"/images/icon_thumbs-up-on.svg"}):(0,i.jsx)("img",{className:wt("thumbs-up-icon"),src:"/images/icon_thumbs-up.svg","data-gtm":Ln.IP.GTM_AI_SUMMARY_LIKE})}),(0,i.jsx)("div",{className:wt("button"),onClick:function(){!1!==v&&(g.Z.localStorage.set(N,"false"),j(!1),null===t||void 0===t||t())},children:!1===v?(0,i.jsx)("img",{className:wt("thumbs-down-icon"),src:"/images/icon_thumbs-down-on.svg"}):(0,i.jsx)("img",{className:wt("thumbs-down-icon"),src:"/images/icon_thumbs-down.svg","data-gtm":Ln.IP.GTM_AI_SUMMARY_DISLIKE})})]})]})]})})},Ot=a.memo(kt),Pt=r(70419);function Et(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function St(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var Ct=p().bind(y()),Tt=function(e){var n=(0,a.useContext)(c.r),r=(0,Pt.Z)(),t=(0,a.useState)(""),o=t[0],l=t[1],u=(0,a.useState)(!1),d=u[0],m=u[1],h=function(){e.onClose(),l(""),m(!1)},p=function(){var t,i=(t=s().mark((function t(){var i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.trim()&&!d){t.next=2;break}return t.abrupt("return");case 2:return m(!0),t.prev=3,t.next=6,r.createAiSummaryFeedback({houseNo:e.houseNo,houseName:e.houseName,aiSummaryNo:e.aiSummaryNo,feedbackContent:o.trim()});case 6:200===(i=t.sent).status?(n.toast("\uc18c\uc911\ud55c \uc758\uacac \uac10\uc0ac\ud569\ub2c8\ub2e4!",{bottom:80}),h()):n.alert(i.message);case 8:return t.prev=8,m(!1),t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[3,,8,11]])})),function(){var e=this,n=arguments;return new Promise((function(r,s){var i=t.apply(e,n);function a(e){Et(i,r,s,a,c,"next",e)}function c(e){Et(i,r,s,a,c,"throw",e)}a(void 0)}))});return function(){return i.apply(this,arguments)}}();return(0,i.jsx)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){St(e,n,r[n])}))}return e}({},e,{className:Ct("ai-summary-opinion-pop"),show:e.open,onClose:h,children:(0,i.jsxs)("div",{className:Ct("ai-summary-opinion-wrap"),children:[(0,i.jsxs)("div",{className:Ct("ai-summary-opinion-title"),children:[(0,i.jsx)("div",{className:Ct("title"),children:" \uc544\uc26c\uc6b4 \uc810\uc744 \uc54c\ub824\uc8fc\uc138\uc694!"}),(0,i.jsxs)("div",{className:Ct("description"),children:["\uc9e7\uc740 \uc758\uacac\ub3c4 \uad1c\ucc2e\uc544\uc694.",(0,i.jsx)("br",{}),"\ub354 \ub098\uc740 \uc11c\ube44\uc2a4\ub97c \uc704\ud574 \uc758\uacac\uc744 \ub0a8\uaca8\uc8fc\uc138\uc694."]}
1)]}),(0,i.jsx)("textarea",{className:Ct("textarea"),placeholder:"(\uc608) \ub0b4\uc6a9\uc774 \uc2e4\uc81c\uc640 \ub2ec\ub77c\uc694, \ubb38\uc7a5\uc774 \uc5b4\uc0c9\ud574\uc694",value:o,onChange:function(e){return l(e.target.value)}}),(0,i.jsx)("div",{className:Ct("submit-button",o.trim()&&!d?Ct("on"):""),onClick:p,children:(0,i.jsx)("div",{className:Ct("text"),children:" \uc81c\ucd9c"})}),(0,i.jsx)("a",{className:Ct("btn-close"),onClick:h})]})}))};function It(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function Rt(e){return function(e){if(Array.isArray(e))return It(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return It(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return It(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var At=p().bind(y()),Mt="structureMini",Lt="structureShower",Ft="structureSingle",Zt="structureMix",Yt="benefitDesc",Dt=function(e){var n=e.house,r=e.areaType,t=e.changeAreaType,s=(0,a.useContext)(c.r),o=(0,a.useState)(!1),l=o[0],u=o[1],d=n.approvedAt&&w()(n.approvedAt).isAfter(w()().subtract(3,"months")),m=(0,a.useMemo)((function(){if(!n.houseTypes.includes(C.Rz.GOSIWON)&&!n.houseTypes.includes(C.Rz.ONE_ROOM_TEL))return{name:"",popupName:""};var e=n.roomType;return e.length>1?{name:"\ud63c\ud569\ud615",popupName:Zt}:e.includes(B.zT.MINI_ROOM)?{name:"\ubbf8\ub2c8\ub8f8",popupName:Mt}:e.includes(B.zT.SHOWER_ROOM)?{name:"\uc0e4\uc6cc\ub8f8",popupName:Lt}:e.includes(B.zT.ONE_ROOM)?{name:"\uc6d0\ub8f8\ud615",popupName:Ft}:{name:"\ud63c\ud569\ud615",popupName:Zt}}),[n.houseTypes,n.roomType]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:At("main-info-section"),children:[(0,i.jsxs)("div",{className:At("wrap-main-info"),children:[(0,i.jsx)("div",{className:At("wrap-price"),children:n.maxPrice>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{className:At("month-price"),children:["\uc6d4\uc138 ",K.Z.getMonthPriceText(n.minPrice,n.maxPrice)]}),(0,i.jsxs)("p",{className:At("deposit"),children:["\ubcf4\uc99d\uae08 ",K.Z.getDepositText(n.minDeposit,n.maxDeposit)]})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("p",{className:At("month-bill"),children:["\uc804\uc138 ",K.Z.getDepositText(n.minDeposit,n.maxDeposit)]})})}),(0,i.jsxs)("div",{className:At("wrap-basic-info"),children:[(0,i.jsxs)("div",{className:At("wrap-type-name"),children:[(0,i.jsx)("div",{className:At("types"),children:n.houseTypes.map((function(e,n){return(0,i.jsx)("div",{className:At("item"),children:(0,i.jsx)("span",{children:C.FK[e]})},n)}))}),(0,i.jsx)("div",{className:At("name"),children:n.name})]}),(0,i.jsx)("div",{className:At("wrap-addr"),children:K.Z.getNearSubway(n)})]})]}),(0,i.jsx)("div",{className:At("hr")}),(0,i.jsxs)("div",{className:At("wrap-main-info2"),children:[(0,i.jsxs)("div",{className:At("section","left-section"),children:[(0,i.jsx)(i.Fragment,{children:n.houseTypes.includes(C.Rz.ONE_TWO_ROOM)?(0,i.jsxs)("div",{className:At("item","first-item"),children:[(0,i.jsx)("img",{className:At("icon"),src:"/images/icon_structure_line_gray100_24.svg"}),(0,i.jsxs)("span",{className:At("txt","structure-txt"),children:[(0,i.jsx)("span",{children:n.roomType.map((function(e){return B.OT[e]})).join(", ")})," "]})]}):(0,i.jsxs)("div",{className:At("item","first-item"),children:[(0,i.jsx)("img",{className:At("icon"),src:"/images/icon_building-type_line_gray100_24.svg"}),(0,i.jsx)("span",{className:At("txt","structure-txt"),children:(0,i.jsxs)("span",{children:[C.mS[n.buildingType]||"-"," "]})})]})}),(0,i.jsx)(i.Fragment,{children:function(){if(n.houseTypes.includes(C.Rz.GOSIWON)||n.houseTypes.includes(C.Rz.ONE_ROOM_TEL))return(0,i.jsxs)("div",{className:At("item"),children:[(0,i.jsx)("img",{className:At("icon"),src:"/images/icon_structure_line_gray100_24.svg"}),(0,i.jsxs)("span",{className:At("txt"),style:{cursor:"pointer"},onClick:function(){s.openPopup(m.popupName)},children:[(0,i.jsx)("span",{children:m.name}),(0,i.jsx)("img",{className:At("ico-ques"),src:"/images/icon_question-mark_circle_gray50_18.svg"})]})]});if(n.houseTypes.includes(C.Rz.ONE_TWO_ROOM)){var e=null,a=null;return(0,i.jsxs)("div",{className:At("item"),children:[(0,i.jsx)("img",{className:At("icon"),src:"/images/icon_size_line_gray100_24.svg"}),(0,i.jsx)("span",{className:At("txt"),children:function(){var t,s,i=n.rooms.map((function(e){return e.area})).filter((function(e){return null!=e}));return 0===i.length?"-":(e=(t=Math).min.apply(t,Rt(i)),a=(s=Math).max.apply(s,Rt(i)),e===a?r===xs.squareMeter?Math.round(e)+"m\xb2":Math.round(e/3.3)+"\ud3c9":r===xs.squareMeter?Math.round(e)+"-"+Math.round(a)+"m\xb2":Math.round(e/3.3)+"-"+Math.round(a/3.3)+"\ud3c9")}()}),e&&(0,i.jsx)("a",{className:At("btn-area-change"),onClick:function(){var e=r===xs.squareMeter?xs.pyeong:xs.squareMeter;t(e)},children:(0,i.jsx)("img",{src:"/images/icon_change_line_bold_gray80_12.svg"})})]})}return(0,i.jsxs)("div",{className:At("item"),children:[(0,i.jsx)("img",{className:At("icon"),src:"/images/icon_count_line_gray100_24.svg"}),(0,i.jsxs)("span",{className:At("txt"),children:["\ucd1d ",(0,i.jsx)("span",{children:n.rooms.length?n.rooms.length:"-"}),"\uac1c \ubc29"]})]})}()})]}),(0,i.jsx)("div",{className:At("section","right-section"),children:(0,i.jsx)(i.Fragment,{children:function(){var e=K.Z.getFloorsText(n.useFloors||[],n.totalFloor||0),r=e[0],t=e[1];return(0,i.jsxs)("div",{className:At("item"),children:[(0,i.jsx)("img",{className:At("icon"),src:"/images/icon_floor_line_gray100_24.svg"}),(0,i.jsx)("span",{className:At("txt"),children:(0,i.jsxs)("span",{children:[n.houseTypes.includes(C.Rz.ONE_TWO_ROOM)?function(e){var n,r;return-.5==(null===(n=e.useFloors)||void 0===n?void 0:n[0])?"\ubc18\uc9c0\uce35":9999==(null===(r=e.useFloors)||void 0===r?void 0:r[0])?"\uc625\ud0d1\ubc29":t}(n):t,"/",r?r+"\uce35":"-\uce35"]})})]})}()})})]}),(0,i.jsx)("div",{className:At("hr")}),(0,i.jsx)("div",{className:At("wrap-tags"),children:(n.tags||n.hasMembership&&n.membershipGrade.includes(C.E_.SIGNATURE))&&(0,i.jsxs)("div",{className:At("tags"),children:[n.hasMembership&&n.membershipGrade.includes(C.E_.SIGNATURE)&&(0,i.jsxs)("div",{className:At("item","signature"),children:[(0,i.jsx)("img",{src:"/images/icon_diamond_filled_white_14.svg"}),(0,i.jsx)("span",{children:"Signature"})]}
1),n.hasMembership&&n.promoBannerType===C.TU.PROMO02&&(0,i.jsxs)("div",{className:At("item","discount"),children:[(0,i.jsx)("img",{src:"/images/icon_colored_gift_14.svg"}),(0,i.jsx)("span",{children:"\ud560\uc778"})]}),n.hasMembership&&1==n.isUcareOnAirEnabled&&(0,i.jsxs)("div",{className:At("item","on-air"),children:[(0,i.jsx)("img",{src:"/images/icon_colored_clock_14.svg"}),(0,i.jsx)("span",{children:"\uc2e4\uc2dc\uac04"})]}),n.houseTypes.includes(C.Rz.ONE_TWO_ROOM)&&(0,i.jsx)("div",{className:At("item","owner"),children:(0,i.jsx)("span",{children:"\uc9d1\uc8fc\uc778"})}),function(){var e=Rt(K.Z.parseTags(n.tags||[]));return(0,i.jsx)(i.Fragment,{children:e.map((function(e,n){return(0,i.jsx)("div",{className:At("item"),children:(0,i.jsx)("span",{children:e})},n)}))})}()]})}),n.hasMembership&&n.promoBannerType===C.TU.PROMO02&&(0,i.jsxs)("div",{className:At("wrap-benefit-banner","main-info-banner"),onClick:function(){n.discountDesc&&s.openPopup(Yt)},children:[(0,i.jsxs)("div",{className:At("title"),children:[(0,i.jsx)("img",{src:"/images/icon_colored_gift_22.svg"}),(0,i.jsx)("p",{children:"\uc81c\ud734\ud560\uc778"})]}),(0,i.jsx)("div",{className:At("content"),children:function(e){var n=e.discountValues,r=function(e,n){return g.Z.isEmpty(e)?n:e};for(var t in n||(n=[null,null]),C.qS)if(t===e.discountType){var s=C.qS[t].replaceAll("{0}",r(n[0],"N"));return s=s.replaceAll("{1}",r(n[1],"N"))}return""}(n)}),n.discountDesc&&(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray60_14.svg"})]}),n.aiSummary&&(0,i.jsx)(Ot,{houseNo:n.no,aiSummary:n.aiSummary,onLike:function(){s.toast("\uc18c\uc911\ud55c \uc758\uacac \uac10\uc0ac\ud569\ub2c8\ub2e4!",{bottom:80})},onDislike:function(){u(!0)}}),d&&(0,i.jsxs)("div",{className:At("mod-dt"),children:[w()(n.approvedAt).format("YY-MM-DD")," \uc5c5\ub370\uc774\ud2b8"]})]}),(0,i.jsx)(pt,{popupName:Yt,contents:n.discountDesc}),(0,i.jsx)(gt,{popupName:Mt}),(0,i.jsx)(gt,{popupName:Lt}),(0,i.jsx)(gt,{popupName:Ft}),(0,i.jsx)(gt,{popupName:Zt}),n.aiSummary&&(0,i.jsx)(Tt,{houseNo:n.no,houseName:n.name,aiSummaryNo:n.aiSummary.no,open:l,onClose:function(){return u(!1)}})]})},Ut=a.memo(Dt);function zt(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}var Vt=p().bind(y()),Ht=function(e){var n=e.house,r=(0,fe.Sn)(n).fetchNearRecommendHouses,t=(0,a.useState)([]),c=t[0],o=t[1],l=(0,a.useState)(null),u=l[0],d=l[1];return(0,a.useEffect)((function(){var e=function(){var e,n=(e=s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:n=e.sent,o(n.list),d(n.titleType);case 5:case"end":return e.stop()}}),e)})),function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){zt(i,t,s,a,c,"next",e)}function c(e){zt(i,t,s,a,c,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();e()}),[]),0===c.length?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("section",{className:Vt("house-section","recommend"),children:[(0,i.jsx)("div",{className:Vt("wrap-title"),children:(0,i.jsx)("h2",{children:u===fe._8.PRICE?"\uc774 \uadfc\ucc98 \ube44\uc2b7\ud55c \uac00\uaca9\ub300\uc758 \ubc29":"\uc774 \uadfc\ucc98\uc758 \ub2e4\ub978 \ubc29"})}),(0,i.jsx)("div",{className:Vt("wrap-list"),children:(0,i.jsx)(Dn.Z,{list:c})})]})})},Kt=p().bind(y()),Gt=function(e){var n=e.visibleYn;return n&&"N"!==n?(0,i.jsxs)("div",{className:Kt("recommend-banner-section","on"),children:[(0,i.jsx)("img",{src:"/images/icon_emoji_fire_20.svg"}),(0,i.jsx)("p",{children:"\ucd5c\uadfc \uc774 \ubc29\uc744 \uad00\uc2ec\uc788\uac8c \ubcf4\ub294 \ubd84\ub4e4\uc774 \uc99d\uac00\ud588\uc5b4\uc694."})]}):null},Wt=a.memo(Gt),qt=r(90843),Bt=(r(21669),JSON.parse('{"assets":[{"id":"el-24-0tvW-mask","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"center","hd":false,"sr":1,"ks":{"a":{"a":0,"k":[-100000,-100000]},"o":{"a":0,"k":100},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":73,"st":0,"bm":0,"shapes":[]},{"ddd":0,"ind":2,"ty":4,"nm":"border","parent":1,"hd":false,"sr":1,"ks":{"a":{"a":0,"k":[58,18]},"o":{"a":0,"k":100},"p":{"a":0,"k":[58,18]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":73,"st":0,"bm":0,"shapes":[{"ty":"gr","hd":false,"nm":"mask Group","bm":0,"it":[{"ty":"sh","hd":false,"nm":"mask","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[98,34.5],[98,36],[18,36],[18,34.5]]}}},{"ty":"sh","hd":false,"nm":"mask","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[9.113,0],[0,0],[0,-9.113],[-9.113,0],[0,0],[0,0],[0,9.786],[-9.726,0.246],[0,0],[0,0],[0,0],[0,-9.786],[9.726,-0.246],[0,0],[0,0],[0,9.113]],"o":[[0,-9.113],[0,0],[-9.113,0],[0,9.113],[0,0],[0,0],[-9.725,-0.246],[0,-9.786],[0,0],[0,0],[0,0],[9.725,0.246],[0,9.786],[0,0],[0,0],[9.113,0],[0,0]],"v":[[114.5,18],[98,1.5],[18,1.5],[1.5,18],[18,34.5],[18,36],[17.535,35.994],[0,18],[17.535,0.006],[18,0],[98,0],[98.465,0.006],[116,
118],[98.465,35.994],[98,36],[98,34.5],[114.5,18]]}}},{"ty":"fl","hd":false,"bm":0,"c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","nm":"Transform","a":{"a":0,"k":[0,0]},"o":{"a":0,"k":100},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"np":0}]}]},{"id":"el-24-0tvW-masked","layers":[{"ddd":0,"ind":5,"ty":4,"nm":"center","hd":false,"sr":1,"ks":{"a":{"a":0,"k":[-100000,-100000]},"o":{"a":0,"k":100},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":73,"st":0,"bm":0,"shapes":[]},{"ddd":0,"ind":6,"ty":4,"nm":"border","parent":5,"hd":false,"sr":1,"ks":{"a":{"a":0,"k":[58,18]},"o":{"a":0,"k":100},"p":{"a":0,"k":[58,18]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":73,"st":0,"bm":0,"shapes":[{"ty":"gr","hd":false,"nm":"gradient Group","bm":0,"it":[{"ty":"el","hd":false,"nm":"gradient","p":{"a":0,"k":[28,28]},"s":{"a":0,"k":[56,56]},"d":1},{"ty":"gf","hd":false,"bm":0,"e":{"a":0,"k":[28,56]},"g":{"p":2,"k":{"a":0,"k":[0.402,1,1,1,1,0.85,0.85,0.85,0.402,1,1,0]}},"t":2,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"o":{"a":0,"k":100},"r":1,"s":{"a":0,"k":[28,28]}},{"ty":"tr","nm":"Transform","a":{"a":0,"k":[28,28]},"o":{"a":0,"k":100},"p":{"a":1,"k":[{"t":0,"s":[1,17.998],"i":{"x":0.75,"y":0.75},"o":{"x":0.25,"y":0.25},"ti":[-32,0],"to":[-0.02634426410469537,-21.998069187252604]},{"t":18,"s":[58,1],"i":{"x":0.75,"y":0.75},"o":{"x":0.25,"y":0.25},"ti":[0,-22],"to":[31,0]},{"t":36,"s":[115,18],"i":{"x":0.75,"y":0.75},"o":{"x":0.25,"y":0.25},"ti":[31,0],"to":[0,22]},{"t":54,"s":[58,35],"i":{"x":0.75,"y":0.75},"o":{"x":0.25,"y":0.25},"ti":[0,22],"to":[-32,0]},{"t":72,"s":[1,18],"i":{"x":0,"y":0},"o":{"x":1,"y":1}}]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"np":0}]}]}],"ddd":0,"fr":30,"h":36,"ip":0,"layers":[{"ddd":0,"ind":4,"ty":0,"nm":"border","td":1,"hd":false,"sr":1,"ks":{"a":{"a":0,"k":[100000,100000]},"o":{"a":0,"k":100},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":73,"st":0,"bm":0,"h":200000,"refId":"el-24-0tvW-mask","w":200000},{"ddd":0,"ind":8,"ty":0,"nm":"border","tt":1,"tp":4,"hd":false,"sr":1,"ks":{"a":{"a":0,"k":[100000,100000]},"o":{"a":0,"k":100},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":73,"st":0,"bm":0,"h":200000,"refId":"el-24-0tvW-masked","w":200000},{"ddd":0,"ind":9,"ty":4,"nm":"button","hd":false,"sr":1,"ks":{"a":{"a":0,"k":[0,0]},"o":{"a":0,"k":100},"p":{"a":0,"k":[58,18]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}},"ao":0,"ip":0,"op":73,"st":0,"bm":0,"shapes":[{"ty":"gr","hd":false,"nm":"icon Group","bm":0,"it":[{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[40.41,17.255],[32.284,17.255],[32.284,11.769],[40.279,11.769],[40.279,12.835],[33.623,12.835],[33.623,13.966],[40.006,13.966],[40.006,15.006],[33.623,15.006],[33.623,16.189],[40.409,16.189]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[41.553,19.4],[36.9,19.4],[36.9,23.027],[35.56,23.027],[35.56,19.4],[30.906,19.4],[30.906,18.308],[41.553,18.308]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[1.599,0],[0,2.548],[-1.729,0],[-0.169,-2.145],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[-0.143,2.275],[-1.729,0],[0,-2.522],[1.573,0],[0,0],[0,0],[0,0]],"v":[[52.441,11.249],[52.441,23.027],[51.09,23.027],[51.09,16.722],[48.815,16.722],[45.851,20.401],[42.887,16.254],[45.851,12.12],[48.802,15.63],[51.09,15.63],[51.09,11.249]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,1.885],[1.04,0],[0,-1.833],[-1,0]],"o":[[1.04,0],[0,-1.833],[-1,0],[0,1.885],[0,0]],"v":[[45.851,19.205],[47.553,16.254],[45.85,13.329],[44.16,16.254],[45.85,19.205]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0.949,0],[0,1.651],[-1.755,0],[-0.559,-0.585],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[-0.559,0.611],[-1.755,0],[0,-1.664],[0.988,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[60,16.631],[57.673,17.58],[54.605,14.759],[57.673,11.925],[60,12.874],[62.834,12.874],[62.834,11.249],[64.174,11.249],[64.174,18.178],[62.834,18.178],[62.834,16.631]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[-1.04,0],[0,1.04],[1.04,0],[0,-1.027
1]],"o":[[0,1.001],[1.04,0],[0,-1.04],[-1.04,0],[0,0]],"v":[[55.88,14.759],[57.673,16.449],[59.441,14.759],[57.673,13.056],[55.879,14.759]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,-0.247],[0.078,-0.247],[0,0],[0,0]],"o":[[0.065,0.299],[0,0.273],[0,0],[0,0],[0,0]],"v":[[60.61,13.966],[60.714,14.759],[60.597,15.552],[62.833,15.552],[62.833,13.966]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,-1.417],[2.445,0],[0,1.443],[-2.444,0]],"o":[[2.443,0],[0,1.443],[-2.445,0],[0,-1.417],[0,0]],"v":[[60.26,18.438],[64.224,20.713],[60.259,23.001],[56.307,20.713],[60.259,18.438]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,0.832],[1.677,0],[0,-0.78],[-1.678,0]],"o":[[1.676,0],[0,-0.78],[-1.677,0],[0,0.832],[0,0]],"v":[[60.259,21.948],[62.897,20.713],[60.258,19.491],[57.619,20.713],[60.259,21.948]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[77.035,14.161],[77.035,15.266],[75.371,15.266],[75.371,18.308],[74.032,18.308],[74.032,11.249],[75.372,11.249],[75.372,14.161]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0.526,1.15],[1.352,-0.507],[0,0],[0,1.703],[0,0],[0,0],[0,0],[-1.742,-0.598]],"o":[[-1.193,-0.42],[-0.52,1.3],[0,0],[1.846,-0.624],[0,0],[0,0],[0,0],[0,1.521],[0,0]],"v":[[72.329,17.684],[69.639,15.227],[66.804,18.009],[66.089,16.943],[68.936,13.017],[68.936,11.86],[70.288,11.86],[70.288,13.121],[73.031,16.631]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,-1.391],[2.444,0],[0,1.391],[-2.418,0]],"o":[[2.443,0],[0,1.391],[-2.418,0],[0,-1.391],[0,0]],"v":[[71.589,18.594],[75.501,20.791],[71.588,23.001],[67.675,20.791],[71.588,18.594]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,0.78],[1.677,0],[0,-0.728],[-1.677,0]],"o":[[1.676,0],[0,-0.728],[-1.677,0],[0,0.78],[0,0]],"v":[[71.588,21.948],[74.174,20.791],[71.587,19.647],[69,20.791],[71.587,21.948]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[91.305,20.466],[91.305,21.571],[80.676,21.571],[80.676,20.466],[85.304,20.466],[85.304,18.1],[81.872,18.1],[81.872,12.042],[83.198,12.042],[83.198,14.018],[88.762,14.018],[88.762,12.042],[90.088,12.042],[90.088,18.1],[86.643,18.1],[86.643,20.466]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[83.193,17.021],[88.757,17.021],[88.757,15.097],[83.193,15.097]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[102.115,11.262],[102.115,23.001],[100.776,23.001],[100.776,11.262]]}}},{"ty":"sh","hd":false,"nm":"icon","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[4.03,-1.95],[0,0],[-0.22,2.704],[0,0],[0,0]],"o":[[0,3.497],[0,0],[3.08,-1.495],[0,0],[0,0],[0,0]],"v":[[98.657,12.497],[93.223,20.908],[92.508,19.842],[97.278,13.589],[93.093,13.589],[93.093,12.497]]}}},{"ty":"fl","hd":false,"bm":0,"c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","nm":"Transform","a":{"a":0,"k":[0,0]},"o":{"a":0,"k":100},"p":{"a":0,"k":[-58,-18]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"np":0},{"ty":"gr","hd":false,"nm":"text Group","bm":0,"it":[{"ty":"sh","hd":false,"nm":"text","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0.013,-0.288],[0,-0.006],[0,0],[-0.25,0.144],[-0.005,0.003],[0,0],[0.231,0.147]],"o":[[-0.243,-0.155],[0,0.006],[0,0],[0,0.289],[0.005,-0.003],[0,0],[0.231,-0.147],[0,0]],"v":[[15.577,13.059],[15,13.358],[15,13.375],[15,22.625],[15.562,22.95],[15.577,22.941],[22.827,18.316],[22.827,17.684]]}}},{"ty":"fl","hd":false,"bm":0,"c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","nm":"Transform","a":{"a":0,"k":[0,0]},"o":{"a":0,"k":100},"p":{"a":0,"k":[-58,-18]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"np":0},{"ty":"gr","hd":false,"nm":"background Group","bm":0,"it":[{"ty":"sh","hd":false,"nm":"background","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,-9.941],[0,0],[9.941,0],[0,0],[0,9.941],[0,0],[-9.941,0]],"o":[[0,0],[9.941,0],[0,0],[0,9.941],[0,0],[-9.941,0],[0,0],[0,-9.941],[0,0]],"v":[[18,0],[98,0],[116,18],[116,18],[98,36],[18,36],[0,18],[0,18],[18,0]]}}},{"ty":"fl","hd":false,"bm":0,"c":{"a":0,"k":[0,0,0]},"r":1,"o":{"a":0,"k":60}},{"ty":"tr","nm":"Transform","a":{"a":0,"k":[0,0]},"o":{"a":0,"k":100},"p":{"a":0,"k":[-58,-18]},"r":{"a":0,"k":0},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}],"np":0}]}
1],"meta":{"g":"@phase-software/lottie-exporter 0.7.0"},"nm":"","op":72,"v":"5.6.0","w":116}'));function Xt(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var Qt=p().bind(y()),Jt="innerImageGallery",$t=function(e){var n=(0,a.useContext)(c.r),r=(0,a.useState)(null),t=r[0],s=r[1],o=(0,a.useState)(null),l=o[0],u=o[1],d=(0,a.useState)(null),m=d[0],h=d[1],p=(0,a.useState)(null),x=p[0],f=p[1],v=(0,a.useState)(null),j=v[0],g=v[1],N=(0,a.useState)(),b=N[0],y=N[1];if((0,a.useEffect)((function(){var n;if(e.house){var r=JSON.parse(JSON.stringify(e.house)),t=r.houseImages[0],i=(null===r||void 0===r||null===(n=r.rooms)||void 0===n?void 0:n.filter((function(e){return e.isDisplayed&&e.roomImages.length>0})))||[];s(t),u(r.houseImages.slice(1)),h(i)}}),[e.house]),t){var _=function(n,r){var t=[],s=!0,i=!1,a=void 0;try{for(var c,o=n[Symbol.iterator]();!(s=(c=o.next()).done);s=!0){var l=c.value;t.push({src:K.Z.makeImageUrl(e.house.service,e.house.imageKey,l.fileName||"",{width:1440,height:-1}),width:l.width,height:l.height,caption:l.tags})}}catch(u){i=!0,a=u}finally{try{s||null==o.return||o.return()}finally{if(i)throw a}}f(t),g(r)};return(0,i.jsx)(Ze.Z,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){Xt(e,n,r[n])}))}return e}({className:Qt("house-gallery-pop"),fullscreen:!0},e,{onVisibleChange:function(e){return y(e)},children:function(){if(b)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Le.Z,{fixed:!1,border:!0,left:(0,i.jsx)("a",{className:"btn-back",onClick:function(){n.closePopup()}}),children:(0,i.jsx)("h1",{className:"ellipsis-1",children:e.house.NAME})}),(0,i.jsxs)("article",{className:Qt("wrap-content"),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{children:"\ub300\ud45c\uc0ac\uc9c4"}),(0,i.jsx)("div",{className:Qt("title-img"),children:(0,i.jsx)(be.E1,{src:K.Z.makeImageUrl(e.house.service,e.house.imageKey,t.fileName||"",{width:1440,height:-1}),onClick:function(){n.openPopup(Jt),_([t])}})})]}),(null===l||void 0===l?void 0:l.length)>0&&(0,i.jsxs)("div",{className:Qt("public"),children:[(0,i.jsx)("h2",{children:"\uacf5\uc6a9\uc2dc\uc124"}),(0,i.jsx)(_e.tq,{className:Qt("wrap-item"),slidesPerView:"auto",pagination:{type:"fraction"},lazy:!0,loop:!0,navigation:!0,modules:[Fe.tl,Fe.W_,Fe.oM],children:l.map((function(r,t){return(0,i.jsx)(_e.o5,{className:Qt("item"),children:(0,i.jsx)("div",{className:Qt("img"),children:(0,i.jsx)(be.E1,{onClick:function(){n.openPopup(Jt),_(l,t)},src:K.Z.makeImageUrl(e.house.service,e.house.imageKey,r.fileName||"",{width:1440,height:-1})})})},t)}))})]}),m&&m.length>0&&(0,i.jsxs)("div",{className:Qt("rooms"),children:[(0,i.jsx)("h2",{children:"\uac01 \ubc29 \uc2dc\uc124"}),(0,i.jsx)("div",{children:m.map((function(r){return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{children:(0,i.jsx)("span",{children:r.name})}),(0,i.jsx)(_e.tq,{className:Qt("wrap-item"),slidesPerView:"auto",pagination:{type:"fraction"},lazy:!0,loop:!0,navigation:!0,modules:[Fe.tl,Fe.W_,Fe.oM],children:r.roomImages.map((function(t,s){return(0,i.jsx)(_e.o5,{className:Qt("item"),children:(0,i.jsx)("div",{className:Qt("img"),children:(0,i.jsx)(be.E1,{onClick:function(){n.openPopup(Jt),_(r.roomImages,s)},src:K.Z.makeImageUrl(e.house.service,e.house.imageKey,t.fileName||"",{width:1440,height:-1})})})},s)}))})]},r.no)}))})]})]}),(0,i.jsx)(ye.Z,{popupName:Jt,images:x,idx:j})]})}()}))}},es=a.memo($t),ns=p().bind(y()),rs="imageGallery",ts="houseGallery",ss="villyVideo",is=function(e){var n=e.house,r=e.titleImages,t=e.imageKey,s=e.hasTourVideo,o=(0,a.useContext)(c.r),l=(0,a.useState)(!1),u=l[0],d=l[1],m=(0,a.useState)([]),h=m[0],p=m[1],x=(0,a.useState)(0),f=x[0],v=x[1],j=(0,a.useState)(null),N=j[0],b=j[1],y=(0,a.useState)(0),_=y[0],w=y[1],k=(0,a.useRef)(null);return(0,a.useEffect)((function(){if(n){var e=n.service===C.Ri.UCEO&&"villyUrl"in n?g.Z.parseYoutubeUrl(n.villyUrl):null;e&&b(e.split("/").pop().split("?")[0]),d(!0)}}),[n]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:ns("title-image-section"),children:[(0,i.jsx)("div",{className:ns("btn-villy-play"),children:s&&N&&(0,i.jsx)(Q(),{className:ns("item"),animationData:Bt,loop:!0,onClick:function(){return o.openPopup(ss)}})}),(0,i.jsxs)("div",{className:ns("wrap-img",{show:u}),children:[(0,i.jsx)(_e.tq,{pagination:{type:"fraction"},lazy:!0,initialSlide:0,loop:r.length>1,modules:[Fe.tl,Fe.oM],onSwiper:function(e){return k.current=e},onSlideChange:function(e){return w(e.realIndex)},children:r.map((function(e,s){return(0,i.jsx)(_e.o5,{onClick:function(){var e="houseTypes"in n?n.houseTypes:[n.houseType];e&&e.length>0&&e.includes(C.Rz.ONE_TWO_ROOM)?(o.openPopup(rs),function(e,r){var s=[],i=!0,a=!1,c=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var u=o.value;s.push({src:K.Z.makeImageUrl(n.service,t,u.fileName||"",{width:1440,height:-1}),width:u.width,height:u.height,caption:u.tags})}}catch(d){a=!0,c=d}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}p(s),v(r)}(r,s)):o.openPopup(ts)},children:(0,i.jsxs)("div",{className:ns("img"),children:[(0,i.jsx)("div",{className:ns("gradation")}),(0,i.jsx)(be.E1,{src:K.Z.makeImageUrl(n.service,t,e.fileName||"",{width:1440,height:-1})})]})},s)}))}),_>0&&(0,i.jsx)("div",{className:ns("nav-btn","prev"),onClick:function(e){var n;e.stopPropagation(),null===(n=k.current)||void 0===n||n.slidePrev()},children:(0,i.jsx)("img",{src:"/images/icon_chevron_left_line_bold_gray80)14.svg"})}),_<r.length-1&&(0,i.jsx)("div",{className:ns("nav-btn","next"),onClick:function(e){var n;e.stopPropagation(),null===(n=k.current)||void 0===n||n.slideNext()},children:(0,i.jsx)("img",{src:"/images/icon_chevron_right_line_bold_gray80)14.svg"})})]})]}),(0,i.jsx)(ye.Z,{popupName:rs,images:h,idx:f}),(0,i.jsx)(es,{popupName:ts,house:n}),(0,i.jsx)(qt.Z,{popupName:ss,youtubeId:N})]})},as=r(27017),cs=p().bind(y()),os=function(e){var n=e.house,r=e.isZzim,t
1=e.isZzimLoaded,s=e.handleZzim,o=e.isTabSticky,l=void 0!==o&&o,u=(0,a.useContext)(c.r),d=(0,v.vO)().scrollY,m=(0,f.ZP)(),h=(0,a.useState)(!1),p=h[0],x=h[1],j=(0,a.useState)(!1),N=j[0],b=j[1];return(0,a.useEffect)((function(){if(t){if(!r){var e=setTimeout((function(){b(!0)}),100);return function(){clearTimeout(e)}}b(!1)}}),[r,t]),(0,a.useEffect)((function(){x(d>=1)}),[d]),(0,a.useEffect)((function(){}),[]),(0,i.jsxs)(Le.Z,{className:p?"":"transparent",close:!!p||"white",right:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("a",{className:"btn-zzim"+(p?"":" white")+(r?" on":""),onClick:function(){s(),r||m.trackZzimSocialProof()}}),(0,i.jsx)("a",{className:"btn-share"+(p?"":" white"),onClick:function(){var e=K.Z.getShareText(n);u.share(e)}})]}),children:[function(){var e=cs("zzim-count-tooltip",{on:N},{hidden:l||r});return n.zzimCountToday>=3?(0,i.jsxs)("div",{className:e,children:[(0,i.jsx)("img",{src:"/images/icon_heart_filled_red90_16.svg"}),(0,i.jsxs)("p",{className:cs("text"),children:["\uc624\ub298 ",g.Z.setComma(n.zzimCountToday),"\uba85\uc774 \ucc1c\ud588\uc5b4\uc694!"]})]}):n.zzimCountYesterday>=3?(0,i.jsxs)("div",{className:e,children:[(0,i.jsx)("img",{src:"/images/icon_heart_filled_red90_16.svg"}),(0,i.jsxs)("p",{className:cs("text"),children:["\uc5b4\uc81c ",g.Z.setComma(n.zzimCountYesterday),"\uba85\uc774 \ucc1c\ud588\uc5b4\uc694!"]})]}):null}(),p?(0,i.jsx)("h1",{className:"ellipsis-1",children:(0,i.jsx)(as.K,{minPrice:n.minPrice,maxPrice:n.maxPrice,minDeposit:n.minDeposit,maxDeposit:n.maxDeposit,isShort:!1})}):null]})},ls=r(62753),us=p().bind(y()),ds=function(){var e=(0,v.Q2)(),n=(0,ls.d)();return(0,i.jsx)("div",{className:us("house-voc-banner"),children:(0,i.jsxs)("div",{className:us("wrap-voc-banner"),children:[(0,i.jsx)("div",{className:us("contents"),children:(0,i.jsxs)("h1",{children:["\ubc29 \ucc3e\ub294 \uacfc\uc815",(0,i.jsx)("br",{})," \ubd88\ud3b8\ud558\uc9c4 \uc54a\uc73c\uc168\ub098\uc694?"]})}),(0,i.jsx)("div",{className:us("btn-box"),onClick:function(){return e.goPage(Ln.TB.VOC_URL_HOUSE+"?"+n)},children:(0,i.jsx)("p",{children:"\uc758\uacac \ubcf4\ub0b4\uae30"})})]})})},ms=r(56379);function hs(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function ps(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){hs(i,t,s,a,c,"next",e)}function c(e){hs(i,t,s,a,c,"throw",e)}a(void 0)}))}}var xs,fs=p().bind(y());!function(e){e.squareMeter="squareMeter",e.pyeong="pyeong"}(xs||(xs={}));var vs=function(e){var n=e.service,r=e.house,t=e.recommendYn,o=e.titleImages,l=e.imageKey,h=e.isGoogle,p=e.hasTourVideo,b=(0,a.useContext)(c.r),y=((0,v.QT)(),(0,u.Z)()),_=(0,d.Z)(),w=(0,m.Z)(),k=(0,v.hX)("HOUSE"),O=((0,v.Q2)(),(0,f.ZP)()),P=(0,N.k)(),E=P.session,S=P.isFetch,T=(0,ms.d)({onZzimChange:function(e){return Z(e)},onZzimMemoChange:function(e){I.current=e},onMemoPopSave:function(e){I.current=e.memoText||null}}).toggleZzim,I=(0,a.useRef)(null),R=(0,a.useState)(r),A=R[0],M=R[1],L=(0,a.useState)(!1),F=L[0],Z=L[1],Y=(0,a.useState)(!1),D=Y[0],U=Y[1],z=(0,a.useState)(xs.squareMeter),V=z[0],H=z[1],K=(0,a.useState)(!1),G=K[0],W=K[1],q=(0,a.useState)(!h&&null),B=q[0],X=q[1],Q=function(){var e=ps(s().mark((function e(){var r,t,i,a,c,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,n!==C.Ri.UCEO){e.next=8;break}return e.next=4,y.fetchCeoHouse(A.no);case 4:t=e.sent,r=t.result,e.next=13;break;case 8:if(n!==C.Ri.UAGENT){e.next=13;break}return e.next=11,y.fetchAgentHouse(A.no);case 11:i=e.sent,r=i.result;case 13:(a=r?g.Z.parseYoutubeUrl(r.youtubeUrl):null)&&r&&(c=a.split("/").pop(),r&&(r.youtubeUrl="https://www.youtube.com/embed/".concat(c,"?playsinline=1"))),null==(o=g.Z.localStorage.get("AREA_TYPE"))&&(o=xs.squareMeter),H(o),M(r),Z(!!(null===r||void 0===r?void 0:r.isLiked)),U(!0);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=ps(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(F,{no:A.no,targetCd:j.Mz.HOUSE},I.current);case 2:return e.next=4,Q();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(e){H(e),g.Z.localStorage.set("AREA_TYPE",e)},ee=function(){var e=ps(s().mark((function e(){var n,r,t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,_.fetchForeignUserCountryCode();case 3:return r=e.sent,e.abrupt("return",200===r.status&&(null!==(t=null===(n=r.result)||void 0===n?void 0:n.isForeign)&&void 0!==t&&t));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){if(!h){var e=ee();ps(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Q();case 2:return r.next=4,y.increaseViewCount(A.no);case 4:return r.t0=O,r.t1=A,r.t2=n,r.next=9,e;
1case 9:r.t3=r.sent,r.t0.trackBranchView.call(r.t0,r.t1,r.t2,r.t3);case 11:case"end":return r.stop()}}),r)})))()}k.set("HOUSE",A.no,A.dongliCode,A.latitude,A.longitude)}),[]),(0,a.useEffect)((function(){if(!h&&S){var e=!0;return ps(s().mark((function n(){var r,t,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null===E||void 0===E?void 0:E.isLogin){n.next=6;break}return n.next=3,ee();case 3:return r=n.sent,e&&X(r),n.abrupt("return");case 6:return n.next=8,w.getMy().catch((function(){return null}));case 8:t=n.sent,i=200===(null===t||void 0===t?void 0:t.status)?t.DATA:void 0,e&&X("EMAIL"===(null===i||void 0===i?void 0:i.SIGNUP_VERIFY_METHOD));case 11:case"end":return n.stop()}}),n)})))(),function(){e=!1}}}),[S,null===E||void 0===E?void 0:E.isLogin,h]),(0,a.useEffect)((function(){I.current=A.zzimMemoText||null}),[A.zzimMemoText]),(0,i.jsxs)("div",{className:fs("house-detail-page"),style:{paddingBottom:"136px"},children:[(0,i.jsx)(os,{house:A,isZzim:F,isZzimLoaded:D,handleZzim:J,isTabSticky:G}),(0,i.jsx)(is,{house:A,titleImages:o,imageKey:l,hasTourVideo:p}),(0,i.jsx)(Wt,{visibleYn:t}),n===C.Ri.UCEO&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ut,{house:A,areaType:V,changeAreaType:$}),(0,i.jsx)(Mn,{house:A,isZzim:F,handleZzim:J,onTabStickyChange:W})]}),n===C.Ri.UAGENT&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(dt,{house:A,areaType:V,changeAreaType:$}),(0,i.jsx)(Ne,{house:A,areaType:V,changeAreaType:$,isZzim:F,handleZzim:J,onTabStickyChange:W})]}),(0,i.jsx)("div",{style:{marginTop:"12px"}}),function(){if(!h)return(0,i.jsx)(Ht,{house:r})}(),(0,i.jsx)(ds,{}),(0,i.jsxs)("div",{className:fs("report-btn"),children:[(0,i.jsx)("img",{src:"/images/icon_siren_filled_gray60_14.svg"}),(0,i.jsx)("p",{onClick:function(){E.isLogin?b.openPopup(Ln.TT.POP_NAME_HOUSE_REPORT):b.openLoginPop()},children:"\uc815\ubcf4 \uc624\ub958 \uc2e0\uace0"})]}),null===B?null:B?(0,i.jsx)(Jr,{house:A}):(0,i.jsx)(Ir,{house:A}),(0,i.jsx)(x.Z,{bottom:80}),A&&(0,i.jsx)(at,{popupName:Ln.TT.POP_NAME_HOUSE_REPORT,houseNo:A.no})]})},js=r(22765),gs=r(9008);function Ns(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function bs(e,n,r,t,s,i,a){try{var c=e[i](a),o=c.value}catch(l){return void r(l)}c.done?n(o):Promise.resolve(o).then(t,s)}function ys(e){return function(){var n=this,r=arguments;return new Promise((function(t,s){var i=e.apply(n,r);function a(e){bs(i,t,s,a,c,"next",e)}function c(e){bs(i,t,s,a,c,"throw",e)}a(void 0)}))}}function _s(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ws(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){_s(e,n,r[n])}))}return e}function ks(e){return function(e){if(Array.isArray(e))return Ns(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return Ns(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ns(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Os=!0;function Ps(e){return Es.apply(this,arguments)}function Es(){return(Es=ys(s().mark((function e(n){var r,t,i,a,c,o,l,u,d,m,h,p,x,f,v,j,g,N,b,y,_,w,k,O,P,E,S,T,I,R,A,M,L,F;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.res.setHeader("Cache-Control","public, s-maxage=10, stale-while-revalidate=59"),t=n.query,i=t.id,a=null,c={},o=null,e.next=8,js.o4.get("/v2/houses/"+i);case 8:if(200===(l=e.sent).status){e.next=15;break}if(404!==l.status){e.next=14;break}return e.abrupt("return",{props:{status:404}});case 14:return e.abrupt("return",{props:{status:500}});case 15:if((a=l.result).service!==C.Ri.UCEO){e.next=26;break}return e.next=19,js.o4.get("/v2/ceo-houses/"+i);case 19:if(404!==(u=e.sent).status){e.next=22;break}return e.abrupt("return",{props:{status:404}});case 22:c=u.result,o=c.houseTypes[0],e.next=37;break;case 26:if(a.service!==C.Ri.UAGENT){e.next=36;break}return e.next=29,js.o4.get("/v2/agent-houses/"+i);case 29:if(404!==(d=e.sent).status){e.next=32;break}return e.abrupt("return",{props:{status:404}});case 32:c=d.result,o=c.houseType,e.next=37;break;case 36:throw new Error("Invalid target");case 37:if((r=m=[]).push.apply(r,ks(c.houseImages)),a.service!==C.Ri.UCEO||!("rooms"in c)){e.next=57;break}for(h=!0,p=!1,x=void 0,e.prev=41,f=c.rooms[Symbol.iterator]();!(h=(v=f.next()).done);h=!0)(j=v.value).roomImages&&j.isDisplayed&&j.roomImages.length>0&&m.push(j.roomImages[0]);e.next=49;break;case 45:e.prev=45,e.t0=e.catch(41),p=!0,x=e.t0;case 49:e.prev=49,e.prev=50,h||null==f.return||f.return();case 52:if(e.prev=52,!p){e.next=55;break}throw x;case 55:return e.finish(52);case 56:return e.finish(49);case 57:return e.next=59,js.o4.get("/v2/houses/".concat(i,"/recommend-yn"));case 59:for(g=e.sent,N=g.result,b=c.nearSubways,y=c.nearSchools,_="",w="",a.service===C.Ri.UCEO&&(_+=c.name+" - "),_+=c.eupmyeondongName,o===C.Rz.GOSIWON||o===C.Rz.ONE_ROOM_TEL?_+=" \uace0\uc2dc\uc6d0/\uace0\uc2dc\ud154":o===C.Rz.SHARE_HOUSE?_+=" \uc250\uc5b4\ud558\uc6b0\uc2a4":o===C.Rz.CO_LIVING_HOUSE?_+=" \ucf54\ub9ac\ube59\ud558\uc6b0\uc2a4":o!==C.Rz.ONE_TWO_ROOM&&o!==C.Rz.OFFICETEL||(_+=" \uc6d0\ub8f8/\ud22c\ub8f8/\uc624\ud53c\uc2a4\ud154"),w="\uace0\uc2dc\uc6d0,\uace0\uc2dc\ud154,\uc250\uc5b4\ud558\uc6b0\uc2a4,\uc6d0\uff65\ud22c\ub8f8 \u
1cc3e\uc744 \ub54c\ub294 \uace0\uc0dd\ub9d0\uace0 \uace0\ubbfc\ub9d0\uace0 \uace0\ubc29\ud558\uc790!",w+=" | "+_,k=0;k<y.length;k++)0==k&&(w+=" | \uc8fc\ubcc0/\uc778\uadfc \ub300\ud559\uad50 : "),O=y[k],w+=O.name,k!=y.length-1&&(w+=", ");for(P=0;P<b.length;P++)0==P&&(w+=" | \uc8fc\ubcc0/\uc778\uadfc \uc9c0\ud558\ucca0\uc5ed : "),E=b[P],w+=E.name+"\uc5ed",P!=b.length-1&&(w+=", ");return S=K.Z.makeImageUrl(a.service,a.imageKey,c.houseImages[0].fileName,{width:240,height:288}),T=n.resolvedUrl.split("?")[0],I=Pe.ZP.ENV.getHostUrl()+T,R="["+C.FK[o]+"] "+K.Z.getPriceText(c),a.service===C.Ri.UCEO&&(R+=" - "+c.name),A=K.Z.getNearSubway(ws({},c)),M=n.req.headers["user-agent"],L=M&&/(googlebot|google-inspectiontool|adsbot-google|apis-google)/i.test(M),F={status:200,openGraph:{title:_,description:w,image:S||"",url:I,shareTitle:R,shareDescription:A||""},service:a.service,house:c,recommendYn:N,titleImages:m,imageKey:a.imageKey,isGoogle:L||!1,hasTourVideo:a.hasTourVideo||!1},e.abrupt("return",{props:F});case 82:case"end":return e.stop()}}),e,null,[[41,45,49,57],[50,,52,56]])})))).apply(this,arguments)}var Ss=function(e){return(0,a.useEffect)((function(){}),[]),(0,i.jsx)(i.Fragment,{children:function(){if(200===e.status){if(e.openGraph)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(gs.default,{children:[(0,i.jsx)("title",{children:e.openGraph.title}),(0,i.jsx)("meta",{name:"description",content:e.openGraph.description}),(0,i.jsx)("meta",{property:"og:title",content:e.openGraph.shareTitle}),(0,i.jsx)("meta",{property:"og:description",content:e.openGraph.shareDescription}),(0,i.jsx)("meta",{property:"og:image",content:e.openGraph.image}),(0,i.jsx)("meta",{property:"og:url",content:e.openGraph.url}),(0,i.jsx)("link",{rel:"canonical",href:e.openGraph.url})]}),(0,i.jsx)(vs,{service:e.service,house:e.house,recommendYn:e.recommendYn,titleImages:e.titleImages,imageKey:e.imageKey,isGoogle:e.isGoogle,hasTourVideo:e.hasTourVideo})]})}else{if(404===e.status)return(0,i.jsx)(l.Z,{});if(500===e.status)return(0,i.jsx)(o,{})}}()})},Cs=function(e){return(0,i.jsx)(Ss,ws({},e))}},73951:function(e,n,r){"use strict";var t;r.d(n,{DY:function(){return o},It:function(){return c},K1:function(){return u},OT:function(){return i},Su:function(){return l},b1:function(){return a},zT:function(){return t}}),function(e){e.MINI_ROOM="MINI_ROOM",e.SHOWER_ROOM="SHOWER_ROOM",e.ONE_ROOM="ONE_ROOM",e.ONE_PERSON_ROOM="ONE_PERSON_ROOM",e.TWO_PERSON_ROOM="TWO_PERSON_ROOM",e.THREE_PERSON_ROOM="THREE_PERSON_ROOM",e.FOUR_PERSON_ROOM="FOUR_PERSON_ROOM",e.FIVE_PERSON_ROOM="FIVE_PERSON_ROOM",e.SIX_PLUS_PERSON_ROOM="SIX_PLUS_PERSON_ROOM",e.ONE_ROOM_OPEN="ONE_ROOM_OPEN",e.ONE_ROOM_SEPARATED="ONE_ROOM_SEPARATED",e.ONE_ROOM_DUPLEX="ONE_ROOM_DUPLEX",e.TWO_ROOM="TWO_ROOM",e.THREE_PLUS_ROOM="THREE_PLUS_ROOM"}(t||(t={}));var s,i={MINI_ROOM:"\ubbf8\ub2c8\ub8f8",SHOWER_ROOM:"\uc0e4\uc6cc\ub8f8",ONE_ROOM:"\uc6d0\ub8f8\ud615",ONE_PERSON_ROOM:"1\uc778\uc2e4",TWO_PERSON_ROOM:"2\uc778\uc2e4",THREE_PERSON_ROOM:"3\uc778\uc2e4",FOUR_PERSON_ROOM:"4\uc778\uc2e4",FIVE_PERSON_ROOM:"5\uc778\uc2e4",SIX_PLUS_PERSON_ROOM:"6\uc778\uc2e4 \uc774\uc0c1",ONE_ROOM_OPEN:"\uc6d0\ub8f8(\uc624\ud508\ud615)",ONE_ROOM_SEPARATED:"\uc6d0\ub8f8(\ubd84\ub9ac\ud615)",ONE_ROOM_DUPLEX:"\uc6d0\ub8f8(\ubcf5\uce35\ud615)",TWO_ROOM:"\ud22c\ub8f8",THREE_PLUS_ROOM:"\uc4f0\ub9ac\ub8f8 \uc774\uc0c1"};!function(e){e.WALL01="WALL01",e.WALL02="WALL02",e.WALL03="WALL03"}(s||(s={}));var a,c={WALL01:"\ud569\ud310\ubcbd",WALL02:"\ubcbd\ub3cc\ubcbd",WALL03:"\ucf58\ud06c\ub9ac\ud2b8\ubcbd"};!function(e){e.PRV_FACILITY01="PRV_FACILITY01",e.PRV_FACILITY02="PRV_FACILITY02",e.PRV_FACILITY03="PRV_FACILITY03",e.PRV_FACILITY04="PRV_FACILITY04",e.PRV_FACILITY05="PRV_FACILITY05",e.PRV_FACILITY06="PRV_FACILITY06",e.PRV_FACILITY07="PRV_FACILITY07",e.PRV_FACILITY08="PRV_FACILITY08",e.PRV_FACILITY09="PRV_FACILITY09",e.PRV_FACILITY10="PRV_FACILITY10",e.PRV_FACILITY11="PRV_FACILITY11",e.PRV_FACILITY12="PRV_FACILITY12",e.PRV_FACILITY13="PRV_FACILITY13",e.PRV_FACILITY14="PRV_FACILITY14",e.PRV_FACILITY15="PRV_FACILITY15",e.PRV_FACILITY16="PRV_FACILITY16",e.PRV_FACILITY17="PRV_FACILITY17"}(a||(a={}));var o,l={PRV_FACILITY01:"\uce68\ub300",PRV_FACILITY02:"\uce68\uad6c\ub958",PRV_FACILITY03:"\ucc45\uc0c1",PRV_FACILITY04:"\uc758\uc790",PRV_FACILITY05:"LCD\ubaa8\ub2c8\ud130",PRV_FACILITY06:"\uc637\uc7a5(\ud589\uac70)",PRV_FACILITY07:"\uac1c\uc778\uc5d0\uc5b4\ucee8",PRV_FACILITY08:"\uc218\ub0a9\uc7a5",PRV_FACILITY09:"\uac1c\uc778 \ub3
1c4\uc5b4\ub77d",PRV_FACILITY10:"\uac1c\uc778\ud654\uc7a5\uc2e4",PRV_FACILITY11:"TV",PRV_FACILITY12:"\uc720\uc120LAN",PRV_FACILITY13:"\uac1c\uc778\ub0c9\uc7a5\uace0",PRV_FACILITY14:"\ucf00\uc774\ube14\ucc44\ub110",PRV_FACILITY15:"\uc120\ud48d\uae30",PRV_FACILITY16:"\uc2a4\ud0e0\ub4dc",PRV_FACILITY17:"\uac1c\uc778\uc138\ud0c1\uae30"};!function(e){e.ONE_OPEN="ONE_OPEN",e.ONE_SEPARATED="ONE_SEPARATED",e.ONE_DUPLEX="ONE_DUPLEX",e.TWO="TWO",e.THREE_PLUS="THREE_PLUS"}(o||(o={}));var u={ONE_OPEN:"\uc6d0\ub8f8(\uc624\ud508\ud615)",ONE_SEPARATED:"\uc6d0\ub8f8(\ubd84\ub9ac\ud615)",ONE_DUPLEX:"\uc6d0\ub8f8(\ubcf5\uce35\ud615)",TWO:"\ud22c\ub8f8",THREE_PLUS:"\uc4f0\ub9ac\ub8f8 \uc774\uc0c1"}},84586:function(e,n,r){"use strict";var t,s;r.d(n,{L:function(){return t},u:function(){return s}}),function(e){e.HOUSE="HOUSE",e.MATE="MATE",e.DIRECT="DIRECT"}(t||(t={})),function(e){e.KAKAO_CLICK="KAKAO_CLICK",e.SMS="SMS",e.CALL_CLICK="CALL_CLICK"}(s||(s={}))},68385:function(e){e.exports={"email-cert-pop":"EmailCertPop_email-cert-pop__vMEPT"}}},function(e){e.O(0,[296,3662,6760,4998,6701,7763,9260,4565,4520,5839,8243,2283,824,2307,8617,1589,7978,5424,6698,7644,9331,1919,8333,9774,2888,179],(function(){return n=16808,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.