1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4894],{28248:function(a,b,c){"use strict";c.d(b,{Z:function(){return m}});var d=c(14890),e=c(92809),f=c(67294),g=c(85893);function h(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}var i=c(11163);c(64490);var j=c(1903);c(26256),c(29362),c(74959);var k=c(25617);function l(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}var m=(0,d.qC)(function(a){return function(b){var c=(0,j.f)(),d=c.user,h=c.isLoading,m=(0,i.useRouter)();m.asPath,m.pathname;var n=(0,j.a)().signInWithEmailAndPassword;return(0,k.v9)(function(a){var b;return null===(b=a.loadingApp)|| void 0===b?void 0:b.isLoadingApp}),(0,f.useEffect)(function(){d||h||n({email:"[email protected]",password:"Pass@1!@all"})},[d,h]),(0,g.jsx)(a,function(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?l(Object(c),!0).forEach(function(b){(0,e.Z)(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):l(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}({},b))}},function(a){return function(b){return(0,g.jsx)(a,function(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?h(Object(c),!0).forEach(function(b){(0,e.Z)(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):h(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}({},b))}})},79625:function(a,b,c){"use strict";c.d(b,{Z:function(){return g}});var d=c(5152);c(67294);var e=c(69810),f=c(85893);function g(a){return(0,d.default)(a,{loading:function(){return(0,f.jsx)(e.QP,{})}})}},78665:function(a,b,c){"use strict";c(67294);var d=c(85893);b.Z=function(){return(0,d.jsx)("div",{className:"skeleton mb-24",style:{position:"relative",height:"0",width:"100%",paddingTop:"25%"},children:(0,d.jsx)("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}})})}},3108:function(a,b,c){"use strict";var d=c(40037);c(67294);var e=c(85893);b.Z=function(){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{className:"tab-content-skeleton d-grid grid-template-5",style:{gap:"12px"},children:(0,d.Z)(Array(5)).map(function(a,b){return(0,e.jsx)("div",{className:"col-item",children:(0,e.jsxs)("div",{className:"col-item-inner overflow-hidden position-relative",children:[(0,e.jsx)("div",{className:"col-item-top position-relative",children:(0,e.jsx)("div",{className:"col-item-image skeleton"})}),(0,e.jsxs)("div",{className:"col-item-bottom",children:[(0,e.jsx)("p",{style:{marginBottom:"8px",height:"16px",width:"30%"},className:"skeleton"}),(0,e.jsx)("p",{style:{marginBottom:"8px",height:"34px"},className:"skeleton"}),(0,e.jsx)("p",{style:{marginBottom:"8px",height:"25px",width:"50%"},className:"skeleton"}),(0,e.jsx)("p",{style:{marginBottom:"8px",height:"20px",width:"40%"},className:"skeleton"}),(0,e.jsx)("p",{style:{marginBottom:"8px",height:"20px"},className:"skeleton"})]})]})},b)})})})}},29362:function(a,b,c){"use strict";c.d(b,{Z:function(){return N}});var d=c(30266),e=c(809),f=c.n(e),g=c(67294),h=c(5152),i=c(25617),j=c(11163),k=c(82827),l=function(){var a=(0,d.Z)(f().mark(function a(b){var c,d;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,fetch(k.dz+"/vland/posts/filters",{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer ".concat(b)}});case 3:return c=a.sent,a.next=6,c.json();case 6:return d=a.sent,a.abrupt("return",d);case 10:a.prev=10,a.t0=a.catch(0),console.log(a.t0);case 13:case"end":return a.stop()}},a,null,[[0,10]])}));return function(b){return a.apply(this,arguments)}}(),m=c(74895),n=function(a){return function(b){return b({type:m.c,payload:a})}},o=c(23015),p=c(2776),q=c(77633),r=c(78665),s=c(53597),t=c(3108),u=c(24426),v=c(85893),w=(0,h.default)(function(){return Promise.all([c.e(4885),c.e(9351),c.e(5835),c.e(6096)]).then(c.bind(c,45076))},{ssr:!1,loadableGenerated:{webpack:function(){return[45076]},modules:["../components/Home/index.js -> components/ModalLogin"]}}),x=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(2972)]).then(c.bind(c,22972))},{ssr:!1,loadableGenerated:{webpack:function(){return[22972]},modules:["../components/Home/index.js -> components/AppModal"]}
1}),y=(0,h.default)(function(){return new Promise(function(a){return setTimeout(function(){return a(Promise.all([c.e(9351),c.e(2804)]).then(c.bind(c,52804)))},1500)})},{ssr:!1,loading:function(){return(0,v.jsx)(r.Z,{})},loadableGenerated:{webpack:function(){return[52804]},modules:["../components/Home/index.js -> ./HeroBanner/Banner"]}}),z=(0,h.default)(function(){return new Promise(function(a){return setTimeout(function(){return a(Promise.all([c.e(9351),c.e(7673),c.e(9836),c.e(5520),c.e(8045),c.e(9980),c.e(2004)]).then(c.bind(c,52004)))},1500)})},{ssr:!1,loading:function(){return(0,v.jsx)(function(){return(0,v.jsx)("div",{className:"container",style:{position:"relative",top:"-3.8rem"},children:(0,v.jsx)("div",{className:"vars-search-place",children:(0,v.jsxs)("div",{style:{width:"100%"},children:[(0,v.jsxs)("div",{style:{marginBottom:"12px",display:"flex",gap:"12px"},children:[(0,v.jsx)("div",{className:"skeleton",style:{width:"120px",height:"32px"}}),(0,v.jsx)("div",{className:"skeleton",style:{width:"120px",height:"32px"}}),(0,v.jsx)("div",{className:"skeleton",style:{width:"120px",height:"32px"}})]}),(0,v.jsx)("div",{className:"skeleton",style:{marginBottom:"12px",height:"40px",width:"100%"}}),(0,v.jsx)("div",{className:"skeleton",style:{height:"40px",width:"100%"}})]})})})},{})},loadableGenerated:{webpack:function(){return[52004]},modules:["../components/Home/index.js -> ./HeroBanner/FormSearch"]}}),A=(0,h.default)(function(){return new Promise(function(a){return setTimeout(function(){return a(Promise.all([c.e(9351),c.e(7528),c.e(4277),c.e(3350)]).then(c.bind(c,63350)))},1500)})},{ssr:!1,loading:function(){return(0,v.jsxs)("div",{className:"container",children:[(0,v.jsx)("h2",{className:"skeleton",style:{height:"36px",width:"30%",marginBottom:"12px"}}),(0,v.jsx)(t.Z,{})]})},loadableGenerated:{webpack:function(){return[63350]},modules:["../components/Home/index.js -> ./RecommendRealEstate"]}}),B=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(942)]).then(c.bind(c,30942))},{ssr:!0,loadableGenerated:{webpack:function(){return[30942]},modules:["../components/Home/index.js -> ./MarketReport"]}}),C=(0,h.default)(function(){return Promise.all([c.e(4885),c.e(9351),c.e(5835),c.e(7528),c.e(4277),c.e(529)]).then(c.bind(c,31954))},{ssr:!0,loadableGenerated:{webpack:function(){return[31954]},modules:["../components/Home/index.js -> ./PostVarsRealEstate"]}}),D=(0,h.default)(function(){return c.e(622).then(c.bind(c,30622))},{ssr:!0,loadableGenerated:{webpack:function(){return[30622]},modules:["../components/Home/index.js -> ./Utilities"]}}),E=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(116)]).then(c.bind(c,60116))},{ssr:!0,loadableGenerated:{webpack:function(){return[60116]},modules:["../components/Home/index.js -> ./ProjectHighlight"]}}),F=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(7528),c.e(895)]).then(c.bind(c,40895))},{ssr:!0,loadableGenerated:{webpack:function(){return[40895]},modules:["../components/Home/index.js -> ./News"]}}),G=(0,h.default)(function(){return c.e(773).then(c.bind(c,773))},{ssr:!0,loadableGenerated:{webpack:function(){return[773]},modules:["../components/Home/index.js -> ./DiscoveryRealEstate"]}}),H=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(7528),c.e(4277),c.e(2994)]).then(c.bind(c,72994))},{ssr:!0,loadableGenerated:{webpack:function(){return[72994]},modules:["../components/Home/index.js -> ./ProjectDiscovery"]}}),I=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(4989)]).then(c.bind(c,44989))},{ssr:!0,loadableGenerated:{webpack:function(){return[44989]},modules:["../components/Home/index.js -> ./Partners"]}}),J=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(5560)]).then(c.bind(c,65560))},{ssr:!0,loadableGenerated:{webpack:function(){return[65560]},modules:["../components/Home/index.js -> ./Ecosystem"]}}),K=(0,h.default)(function(){return c.e(7166).then(c.bind(c,67166))},{ssr:!0,loadableGenerated:{webpack:function(){return[67166]},modules:["../components/Home/index.js -> ./CategoryFooter"]}}),L=(0,h.default)(function(){return c.e(8411).then(c.bind(c,18411))},{ssr:!0,loadableGenerated:{webpack:function(){return[18411]},modules:["../components/Home/index.js -> ./InfoDescription"]}}),M=(0,h.default)(function(){return Promise.all([c.e(9351),c.e(8195)]).then(c.bind(c,68195))},{ssr:!1,loading:function(){return(0,v.jsx)("div",{className:"container",children:(0,v.jsx)("div",{className:"skeleton",style:{height:"290px",width:"100%"}})})},loadableGenerated:{webpack:function(){return[68195]},modules:["../components/Home/index.js -> ./AdsHome"]}}),N=function(a){var b,c,e,h,k,r,t,N,O=a.topData,P=a.realEstateData,Q=a.reportData,R=a.varsRealData,S=a.realEstateBigData,T=a.newsData,U=a.sectionConfig,V=a.categoryFo
1oter,W=a.provinces,X=(0,j.useRouter)(),Y=(0,i.I0)(),Z=(0,g.useState)(!1),$=Z[0],_=Z[1],aa=(0,g.useState)(!1),ba=aa[0],ca=aa[1],da=(0,o.IW)(),ea=(0,i.v9)(function(a){return a.auth}),fa=ea.localeLanguage,ga=(0,g.useState)({title:"",className:"",description:"",submitText:"",closeText:"",handleClose:function(){},handleSubmit:function(){},width:"auto",onClosable:function(){}}),ha=ga[0],ia=ga[1],ja=(0,g.useState)([]),ka=ja[0],la=ja[1],ma=(0,g.useState)(!0),na=ma[0],oa=ma[1],pa=(0,i.v9)(function(a){return a.app}),qa=pa.numberShowPopup,ra=X.query.filterSavedId,sa=null==X?void 0:null===(b=X.query)|| void 0===b?void 0:b.isEdit,ta=(0,i.v9)(function(a){return a.categories}),ua=ta.categories,va=null!==(c=null==ua?void 0:null===(e=ua.categories)|| void 0===e?void 0:e.realEstateTypeCat)&& void 0!==c?c:[],wa=null!==(h=null==fa?void 0:fa.locale)&& void 0!==h?h:"vi",xa=function(){var a=(0,d.Z)(f().mark(function a(b){var c,d,e;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,p.h)(b,wa);case 2:return e=null!==(c=null==(d=a.sent)?void 0:d.data)&& void 0!==c?c:[],a.abrupt("return",e);case 5:case"end":return a.stop()}},a)}));return function(b){return a.apply(this,arguments)}}(),ya=function(){var a=(0,d.Z)(f().mark(function a(b,c){var d,e,g;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,q.z)(b,c,wa);case 2:return g=null!==(d=null==(e=a.sent)?void 0:e.data)&& void 0!==d?d:[],a.abrupt("return",g);case 5:case"end":return a.stop()}},a)}));return function(b,c){return a.apply(this,arguments)}}(),za="",Aa="",Ba="",Ca="",Da="",Ea="/";return ra?""!=ra&&0!=ra&&da&&(function(){var a=(0,d.Z)(f().mark(function a(){var b,c,d,e,g,h,i,j,k,m,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,l(da);case 2:if(null!=(p=null==(m=a.sent)?void 0:null===(b=m.data)|| void 0===b?void 0:null===(c=b.elements)|| void 0===c?void 0:c.filter(function(a){return(null==a?void 0:a.id)==ra}))&&p.length){a.next=6;break}return a.abrupt("return");case 6:if(Y(n(p[0])),r=(q=null===(d=p[0])|| void 0===d?void 0:d.filter)?JSON.parse(q):{},t={investors:(null==(s=Object.keys(r).reduce(function(a,b){return a[b]=Array.isArray(r[b])?r[b].join():r[b],a},{}))?void 0:s.investors)||"",postBy:(null==s?void 0:s.postBy)||"",projects:(null==s?void 0:s.projects)||"",status:(null==s?void 0:s.status)||"",subStatus:(null==s?void 0:s.subStatus)||"",searchText:(null==s?void 0:s.searchText)||"",sortBy:"default",isOutstanding:(null==s?void 0:s.isOutstanding)||!1,isPostByVARS:(null==s?void 0:s.isPostByVARS)||!1,directions:(null==s?void 0:s.directions)||""},u=null!=s&&s.types?null==s?void 0:s.types:null===(e=s[0])|| void 0===e?void 0:e.types,v=null!=s&&s.subTypes?null==s?void 0:s.subTypes:null===(g=s[0])|| void 0===g?void 0:g.subTypes,w=null==v?void 0:v.split(","),w&&(null==w?void 0:w.length)>1&&(t.subTypes=w?null==w?void 0:null===(x=w.slice(1))|| void 0===x?void 0:x.join(","):""),sa&&(t.isEdit=sa),(null==s?void 0:s.bedrooms)>1&&(t.bedrooms=null!=s&&s.bedrooms?null==s?void 0:null===(y=s.bedrooms)|| void 0===y?void 0:null===(z=y.slice(1))|| void 0===z?void 0:z.join(","):""),C=null!=s&&s.provinceCodes?null==s?void 0:s.provinceCodes:null===(h=s[0])|| void 0===h?void 0:h.provinceCodes,D=null!=s&&s.districtCodes?null==s?void 0:s.districtCodes:null===(i=s[0])|| void 0===i?void 0:i.districtCodes,E=null!=s&&s.wardCodes?null==s?void 0:s.wardCodes:null===(j=s[0])|| void 0===j?void 0:j.wardCodes,F=o.K7[u],G=v?null==va?void 0:va.find(function(a){return(null==a?void 0:a.parent)===u&&(null==a?void 0:a.code)===w[0]}):"",H=C?null==W?void 0:null===(k=W.find(function(a){return(null==a?void 0:a.code)===C}))|| void 0===k?void 0:k.slug:"",!D){a.next=28;break}return a.next=26,xa(C);case 26:A=null==(I=a.sent)?void 0:I.find(function(a){return(null==a?void 0:a.code)==D});case 28:if(!E){a.next=33;break}return a.next=31,ya(C,null===(J=A)|| void 0===J?void 0:J.code);case 31:B=null==(K=a.sent)?void 0:K.find(function(a){return(null==a?void 0:a.code)==E});case 33:u&&(za=F),v&&(za="".concat(null==G?void 0:null===(L=G.fields)|| void 0===L?void 0:L.slug)),E?Aa+=B?"tai-".concat(null===(M=B)|| void 0===M?void 0:M.slug,"-t").concat(C):"":D?Aa+=A?"tai-".concat(null===(N=A)|| void 0===N?void 0:N.slug,"-t").concat(C):"":C&&(Aa=H?"tai-".concat(H,"-t").concat(C):""),null!=s&&s.priceFrom&&null!=s&&s.priceTo&&(O=Number(null==s?void 0:s.priceFrom),P=Number(null==s?void 0:s.priceTo),Ba=0===O?"gia-duoi-".concat((0,o.xG)(P)):"gia-tu-".concat((0,o.xG)(O),"-den-").concat((0,o.xG)(P))),null!=s&&s.areaFrom&&null!=s&&s.areaTo&&(Q=null==s?void 0:s.areaFrom,R=null==s?void 0:s.areaTo,Ca=0===Q?"dt-duoi-".concat(R,"m2"):"dt-tu-".concat(Q,"m2-
1den-").concat(R,"m2")),null!=s&&s.bedrooms&&(Da="".concat(null==s?void 0:s.bedrooms[0],"pn")),Ea+=null==(S=[Ba,Ca,Da].filter(Boolean))?void 0:S.join("-"),T="/".concat(za).concat(Aa?"-".concat(Aa):"").concat(Ea),console.log("link",T),console.log("query",t),X.push({pathname:"/".concat(T),query:t});case 45:case"end":return a.stop()}},a)}));return function(){return a.apply(this,arguments)}})()():Y(n([])),(0,g.useEffect)(function(){if(ua){var a,b,c=null!==(a=null==ua?void 0:null===(b=ua.configurations)|| void 0===b?void 0:b.adsConfig)&& void 0!==a?a:[],d=null==c?void 0:c.filter(function(a){return(null==a?void 0:a.enabled)&&(null==a?void 0:a.subSystem)==="LAND-WEB"});la((null==d?void 0:d.filter(function(a){return(null==a?void 0:a.position)==="HOME-PAGE-POPUP"}))[0])}},[ua]),(0,g.useEffect)(function(){if(!(null!=ka&&ka.enabled)){oa(!1);return}(null==ka?void 0:ka.repeat)=== -1||qa<=(null==ka?void 0:ka.repeat)?oa(!0):oa(!1)},[null==ka?void 0:ka.repeat]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(y,{}),(0,v.jsx)(z,{provinces:W,setModalData:ia,setOpenModal:_}),(0,v.jsx)(A,{setOpenModal:ca}),(0,v.jsx)(B,{reportData:Q,setOpenModal:ca,section:null==U?void 0:U.marketReport,isHideButton:!1}),(null==U?void 0:null===(k=U.varsMemberListed)|| void 0===k?void 0:k.enabled)&&(0,v.jsx)(C,{varsRealData:R,setOpenModal:_,section:null==U?void 0:U.varsMemberListed,setModalData:ia}),(0,v.jsx)(D,{section:null==U?void 0:U.features}),(0,v.jsx)(E,{topData:O,setOpenModal:ca}),(0,v.jsx)(M,{mode:"CENTER"}),(0,v.jsx)(F,{newsData:T,section:null==U?void 0:U.news}),(0,v.jsx)(G,{realEstateData:P}),(0,v.jsx)(H,{realEstateBigData:S,setOpenModal:ca}),(0,v.jsx)(M,{mode:"BOTTOM"}),(0,v.jsx)(I,{dataSection:null==U?void 0:U.partners}),(0,v.jsx)(J,{section:null==U?void 0:U.varsConnect}),(0,v.jsx)(L,{section:null==U?void 0:U.varsLandIntroduction}),(0,v.jsx)(K,{categoryFooter:V}),na&&(0,v.jsx)(u.Z,{className:"modal_popup_ads",centered:!0,width:480,open:na,onOk:function(){return oa(!1)},onCancel:function(){oa(!1),Y({type:m.Q8,payload:qa+1})},footer:null,children:(0,v.jsx)("div",{className:"content",children:(null==ka?void 0:null===(r=ka.media)|| void 0===r?void 0:r.type)==="image"?(0,v.jsx)("a",{href:null==ka?void 0:ka.data,target:"_blank",rel:"noreferrer",children:(0,v.jsx)("img",{src:null==ka?void 0:null===(t=ka.media)|| void 0===t?void 0:t.Url,alt:"Banner"})}):(0,v.jsx)("a",{href:null==ka?void 0:ka.data,target:"_blank",rel:"noreferrer",children:(0,v.jsx)("video",{playsInline:"playsinline",autoPlay:"autoplay",muted:"muted",loop:"loop",children:(0,v.jsx)("source",{src:null==ka?void 0:null===(N=ka.media)|| void 0===N?void 0:N.Url,type:"video/mp4"})})})})}),ba&&(0,v.jsx)(w,{openModalLogin:ba,setOpenModalLogin:ca,description:(0,v.jsx)(s.Z,{id:"common.notiLogin"})}),$&&(0,v.jsx)(x,{openModal:$,setOpenModal:_,title:ha.title,className:ha.className,description:ha.description,width:ha.width,submitText:ha.submitText,closeText:ha.closeText,handleSubmit:ha.handleSubmit,handleClose:ha.handleClose})]})}},64348:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return h}}),c(67294);var d=c(28248),e=c(79625),f=c(85893),g=(0,e.Z)(function(){return c.e(4366).then(c.bind(c,34366))}),h=!0;b.default=(0,d.Z)(function(a){var b=a.postsCate,c=a.url;return(0,f.jsx)(g,{postsCate:b,url:c})})},60267:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/du-an/loai-hinh/[slugType]",function(){return c(64348)}])}},function(a){a.O(0,[4885,6942,6419,2196,1202,9351,5835,7673,7532,7528,9669,9836,5910,5520,6077,2487,6226,6066,8045,1203,6835,1281,9980,8250,1121,9593,7025,5798,2440,3093,4959,9774,2888,179],function(){return a(a.s=60267)}),_N_E=a.O()}])
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.