1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2088],{3931:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var r=l(95155),o=l(12115),a=l(15239),s=l(12389),i=l(12103),n=l(5632),d=l.n(n);let c=e=>{var t,l,n,c,p,u,m,y,h,C,f,x,v;let{homeData:g,isOpenInspection:_=!1,simple:j=!1}=e,b=o.useRef(null),T=null==g||null==(t=g.title)?void 0:t.toLowerCase(),B=null==g||null==(c=g.suburbCat)||null==(n=c[0])||null==(l=n.title)?void 0:l.toLowerCase();return T=null==(T=null==T?void 0:T.replace(" ".concat(B),", ".concat(B)))?void 0:T.replace(/\b(nsw|vic|qld|sa|wa|tas|act|nt)\b/gi,e=>e.toUpperCase()),(0,r.jsxs)("div",{className:"".concat(d().propertyCard," ").concat(j?d().propertyCardSimple:""),children:[(0,r.jsxs)("div",{className:d().propertyCardTop,children:[!j&&(0,r.jsxs)("div",{className:d().propertyCardTopBar,children:[(0,r.jsx)("span",{className:d().propertyCardTopBarText,children:g.percentageComplete?"".concat(g.percentageComplete,"% Completed"):""}),(0,r.jsx)("span",{className:d().propertyCardTopBarText,children:g.sellingLabel}),g.percentageComplete?(0,r.jsx)("div",{className:d().propertyCardTopBarCompletion,children:(0,r.jsx)("span",{style:{height:"100%",width:"".concat(g.percentageComplete,"%")}})}):""]}),j?(0,r.jsx)("div",{className:d().propertyCardTopImage,children:(0,r.jsx)(a.default,{src:null!=(v=null==g||null==(p=g.imagesThumb)?void 0:p[0].url)?v:"",alt:(null==g||null==(u=g.imagesThumb)?void 0:u[0].title)||"",layout:"fill",style:{objectFit:"cover"},objectPosition:"center",blurDataURL:null==g||null==(m=g.blurThumb)?void 0:m[0].url,placeholder:"blur",loading:"eager"})}):(0,r.jsx)(s.default,{...{className:"estate-card-slider",dots:!0,arrows:!1,infinite:!0,autoplay:!1,lazyLoad:"ondemand",speed:800,fade:!0,autoplaySpeed:1e3,slidesToShow:1,slidesToScroll:1},ref:b,children:null==g||null==(y=g.imagesThumb)?void 0:y.map((e,t)=>{var l;return(0,r.jsx)("div",{className:d().propertyCardTopImage,onMouseEnter:()=>{var e;return null==(e=b.current)?void 0:e.slickPlay()},onMouseLeave:()=>{var e;return null==(e=b.current)?void 0:e.slickPause()},children:(null==e?void 0:e.url)&&(0,r.jsx)(a.default,{src:null==e?void 0:e.url,alt:e.title||"",layout:"fill",style:{objectFit:"cover"},objectPosition:"center",blurDataURL:null==g||null==(l=g.blurThumb)?void 0:l[t].url,placeholder:"blur",loading:"eager"})},t)})})]}),(0,r.jsxs)("div",{className:d().propertyCardBottom,children:[_&&(0,r.jsx)("div",{className:d().propertyCardBottomInspection,children:(0,r.jsx)("p",{children:g.inspectionTimes?"".concat(g.inspectionTimes):"FOR SALE"})}),(0,r.jsx)("h5",{children:T}),(null==g||null==(C=g.propertyType)||null==(h=C[0])?void 0:h.title)==="Land"?(0,r.jsx)("div",{className:d().propertyCardBottomInfo,children:!_&&(0,r.jsxs)("div",{className:d().propertyCardBottomInfoDetail,children:[(0,r.jsx)("p",{children:"Land size"}),(0,r.jsxs)("span",{className:d().superComp,children:[g.landSize,"m",(0,r.jsx)("sup",{children:"2"})]})]})}):(0,r.jsxs)("div",{className:d().propertyCardBottomInfo,children:[(0,r.jsxs)("div",{className:d().propertyCardBottomInfoDetail,children:[(0,r.jsx)(i.A,{type:"bed"}),(0,r.jsx)("span",{children:g.bedrooms})]}),(0,r.jsxs)("div",{className:d().propertyCardBottomInfoDetail,children:[(0,r.jsx)(i.A,{type:"bath"}),(0,r.jsx)("span",{children:g.bathrooms})]}),(0,r.jsxs)("div",{className:d().propertyCardBottomInfoDetail,children:[(0,r.jsx)(i.A,{type:"car"}),(0,r.jsx)("span",{children:g.car})]}),(0,r.jsxs)("div",{className:d().propertyCardBottomInfoDetail,children:[(0,r.jsx)("p",{children:"Home"}),(0,r.jsxs)("span",{children:[g.buildingSize,"sq"]})]}),!_&&(0,r.jsxs)("div",{className:d().propertyCardBottomInfoDetail,children:[(0,r.jsx)("p",{children:"Land"}),(0,r.jsxs)("span",{className:d().superComp,children:[Math.trunc(g.landSize),"m",(0,r.jsx)("sup",{children:"2"})]})]})]}),(null==g?void 0:g.homeDesign)&&(null==g||null==(x=g.propertyType)||null==(f=x[0])?void 0:f.title)!=="Land"&&(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Home Design: "}),(0,r.jsx)("span",{children:null==g?void 0:g.homeDesign})]})]})]})}},5632:e=>{e.exports={propertyCard:"PropertyCard_propertyCard__1X_I2",propertyCardSimple:"PropertyCard_propertyCardSimple__ovuVX",propertyCardTopImage:"PropertyCard_propertyCardTopImage__JatCK",propertyCardTop:"PropertyCard_propertyCardTop__AAJZ3",propertyCardTopSlider:"PropertyCard_propertyCardTopSlider__r560H",propertyCardTopBar:"PropertyCard_propertyCardTopBar__8SUfF",propertyCardTopBarText:"PropertyCard_propertyCardTopBarText__oPFVS",propertyCardTopBarCompletion:"PropertyCard_propertyCardTopBarCompletion__rEk2K",propertyCardBottom:"PropertyCard_propertyCardBottom__JN7TD",propertyCardBottomInspection:"PropertyCard_propertyCardBottomInspection__ou2o4",propertyCardBottomInfo:"PropertyCard_propertyCardBottomInfo__5LaOw",propertyCardBottomInfoDetail:"PropertyCard_propertyCardBottomInfoDetail__7tZFd",superComp:"PropertyCard_superComp__Hgcf9"},e.exports.__checksum="67369524fadc"},19387:(e,t,l)=>{"use strict";l.d(t,{BG:()=>c,Cx:()=>d,IM:()=>o,O4:()=>i,W$:()=>r,jB:()=>a,pF:()=>n,qO:()=>p,rH:()=>s});
1let r={id:"clusters",type:"circle",source:"estates",filter:["has","point_count"],paint:{"circle-color":"#000","circle-radius":30,"circle-stroke-width":1,"circle-stroke-color":"#fff"}},o={id:"polygon",type:"fill",source:"estates-polygon",paint:{"fill-color":["case",["==",["get","estateColor"],null],"#000000",["get","estateColor"]],"fill-opacity":.8}},a={id:"cluster-count",type:"symbol",source:"estates",filter:["has","point_count"],layout:{"text-field":"","text-font":["Arial Unicode MS Bold"],"text-size":16},paint:{"text-color":"#ffcb05"}},s={id:"cluster-count",type:"symbol",source:"estates",filter:["has","point_count"],layout:{"text-field":"+{point_count_abbreviated}","text-font":["Arial Unicode MS Bold"],"text-size":16},paint:{"text-color":"#ffcb05"}},i={id:"temp-clusters",type:"circle",source:"estates",filter:["has","point_count"],paint:{"circle-color":"#000","circle-radius":30,"circle-stroke-width":1,"circle-stroke-color":"#fff"}},n={id:"temp-cluster-count",type:"symbol",source:"temp-counts",filter:["has","point_count"],layout:{"text-field":"+ {point_count}","text-font":["Arial Unicode MS Bold"],"text-size":16},paint:{"text-color":"#ffcb05"}},d={id:"unclustered-point",type:"circle",source:"estates",filter:["!",["has","point_count"]],paint:{"circle-color":["case",["==",["get","active"],!0],"#ffcb05","#000"],"circle-radius":20,"circle-stroke-width":1,"circle-stroke-color":"#fff"}},c={id:"unclustered-pin",type:"symbol",source:"estates",filter:["!",["has","point_count"]],layout:{"icon-image":"custom-pin-active","icon-size":.5,"icon-allow-overlap":!0}},p={id:"unclustered-count",type:"symbol",source:"estates",filter:["!",["has","point_count"]],layout:{"text-field":["concat","+",["to-string",["+",["coalesce",["get","homesCount"],0],["coalesce",["get","landForSaleCount"],0],["coalesce",["get","fiftyfiveplusCount"],0]]]],"text-font":["Arial Unicode MS Bold"],"text-size":16},paint:{"text-color":"#ffcb05"}}},36498:e=>{e.exports={estateCard:"EstateCard_estateCard__FMupu",estateCardSimple:"EstateCard_estateCardSimple__UlV3x",estateCardTopImage:"EstateCard_estateCardTopImage__irg6G",estateCardTop:"EstateCard_estateCardTop__R18dK",estateCardTopLogo:"EstateCard_estateCardTopLogo__rDvzN",estateCardBottom:"EstateCard_estateCardBottom__y18AF",estateCardBottomInfo:"EstateCard_estateCardBottomInfo__HEJRD",estateCardBottomInfoDetail:"EstateCard_estateCardBottomInfoDetail__wSDxt"},e.exports.__checksum="6c78aff0eea0"},62232:e=>{e.exports={map:"MapView_map__6yanE",mapFullScreenControl:"MapView_mapFullScreenControl___yLnH",clusterMarker:"MapView_clusterMarker___nNc0"},e.exports.__checksum="78236b53e0d1"},88852:e=>{e.exports={viewDetail:"MarkerPopup_viewDetail__X0ur0"},e.exports.__checksum="5947a379f6de"},92088:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>j});var r=l(95155),o=l(12115),a=l(49167),s=l(77202),i=l(88531),n=l(19387),d=l(74834);let c=(0,l(80074).eU)({data:null,type:""});var p=l(52619),u=l.n(p),m=l(40363),y=l(83811),h=l(3931),C=l(93721),f=l(88852),x=l.n(f);let v=e=>{var t,l,o,a,n,d,p,f;let{onClose:v,homesList:g}=e,[_,j]=(0,s.fp)(c),b=(0,m.n)(),T="/home";return(null==_||null==(o=_.data)||null==(l=o.propertyType)||null==(t=l[0])?void 0:t.title)==="Display Home"&&(T="/display-homes"),(null==_||null==(d=_.data)||null==(n=d.propertyType)||null==(a=n[0])?void 0:a.title)==="Open for Inspection"&&(T="/open-for-inspection"),_.data?(0,r.jsx)(i.zD,{longitude:Number(null==(p=_.data)?void 0:p.longitude),latitude:Number(null==(f=_.data)?void 0:f.latitude),closeOnClick:!1,onClose:()=>{j({data:null,type:""}),v()},anchor:"center",maxWidth:"500px",children:"home"===_.type?(0,r.jsx)(u(),{href:"".concat(T,"/").concat(_.data.slug),children:b?(0,r.jsx)("p",{className:x().viewDetail,children:"View detail"}):(0,r.jsx)(h.A,{homeData:_.data,simple:!0})}):"land"===_.type?(0,r.jsx)(u(),{href:"/land/".concat(_.data.slug),children:b?(0,r.jsx)("p",{className:x().viewDetail,children:"View detail"}):(0,r.jsx)(y.A,{landData:_.data,simple:!0})}):(0,r.jsx)(u(),{href:"/estates/".concat(_.data.slug),children:b?(0,r.jsx)("p",{className:x().viewDetail,children:"View detail"}):(0,r.jsx)(C.default,{estate:_.data,homesList:g,simple:!0})})}):null};var g=l(62232),_=l.n(g);let j=e=>{let{data:t,geoJSON:l=null,type:p="estate",homesList:u}=e,m=(0,o.useRef)(null),{width:y,height:h}=(0,d.useWindowSize)(),[C,f]=(0,o.useState)(!1),[x,g]=(0,o.useState)({width:"100%",height:"100%",latitude:t.length>0?Number(t[0].latitude):-37.85,longitude:t.length>0?Number(t[0].longitude):145.11,zoom:6,transitionDuration:1e3}),j=(0,s.Xr)(c),b=(0,o.useMemo)(()=>{var e;return{type:"FeatureCollection",features:null!=(e=null==t?void 0:t.map(e=>({type:"Feature",properties:{propertySlug:e.slug},geometry:{type:"Point",coordinates:[Number(e.longitude),Number(e.latitude)]}})))?e:[]}},[t]),T=(0,o.useCallback)(()=>{var e;if(!m.current)return;if(y&&h&&(null!=(e=b.features)?e:[]).length>0){let[e,t,l,r]=(0,a.A)(b);m.current.fitBounds([[e,t],[l,r]],{padding:160,duration:1e3})}let t=m.current.getMap();t.loadImage("/assets/pin.png",(e,l)=>{if(e)throw e;!t.hasImage("custom-pin-active")&&l&&t.addImage("custom-pin-active",l)})},[h,y,b]);return(0,o.useEffect)(()=>{T()},[T]),(0,r.jsx)("div",{className:_().map,children:(0,r.jsxs)(i.Ay,{initialViewState:x,mapboxAccessToken:"pk.eyJ1IjoiYWxsYW1ob21lcyIsImEiOiJja3RqajFwaTAxY2RtMm91ZW03dXI0Z2ZiIn0.w_dq7b0FfQpGgfvM8JJT5w",mapStyle:"mapbox://styles/mapbox/light-v9",interactiveLayerIds:[n.W$.id,n.BG.id],onLoad:T,ref:m,onClick:function(e){if(!m.current)return;let l=e.features[0];if(!l)return;let r=l.properties.cluster_id,o=m.current.getSource("lots");if(r)o.getClusterExpansionZoom(r,(e,t)=>{!e&&m.current&&l.geometry.coordinates&&m.current.flyTo({center:l.geometry.coordinates,zoom:t,duration:500})});else{if(!l.properties.propertySlug)return;m.current.flyTo({center:l.geometry.coordinates}),j({data:t.find(e=>e.slug===l.properties.propertySlug),type:p}),f(!0)}},scrollZoom:!1,children:[l&&(0,r.jsx)(i.kL,{id:"estates",type:"geojson",data:l,children:(0,r.jsx)(i.Wd,{id:"data",source:"estates",type:"fill",paint:{"fill-color":["get","color"],"fill-opacity":.8}})}),(0,r.jsxs)(i.kL,{id:"lots",type:"geojson",data:b,cluster:!0,clusterMa
1xZoom:14,clusterRadius:50,tolerance:0,children:[(0,r.jsx)(i.Wd,{...n.W$}),(0,r.jsx)(i.Wd,{...n.rH}),(0,r.jsx)(i.Wd,{...n.BG})]}),C&&(0,r.jsx)(v,{onClose:()=>f(!1),homesList:u}),(0,r.jsx)(i.ov,{style:{marginRight:20},position:"bottom-right",showCompass:!1}),(0,r.jsx)(i.T3,{style:{marginRight:20},position:"bottom-right"})]})})}},93721:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var r=l(95155),o=l(12115),a=l(15239),s=l(12389),i=l(98134),n=l.n(i),d=l(12103),c=l(36498),p=l.n(c);let u=e=>{var t,l,i,c,u,m,y,h,C,f,x,v,g,_,j,b,T,B;let{estate:I,homesList:N=[],simple:S=!1}=e,w=o.useRef(null),[D,L]=(0,o.useState)(0),[k,P]=(0,o.useState)(0),M="".concat(I.title," - ").concat(null==(l=I.suburbCat)||null==(t=l[0])?void 0:t.title," ").concat(null==I||null==(c=I.stateCat)||null==(i=c[0])?void 0:i.title.toUpperCase()," ").concat(I.postcode),E=(0,o.useMemo)(()=>Array.from(N).filter(e=>{var t,l;return(null==e||null==(l=e.estate)||null==(t=l[0])?void 0:t.title)===(null==I?void 0:I.title)}),[I.title,N]);(0,o.useEffect)(()=>{P(E.filter(e=>{var t,l,r,o;return(null==(l=e.propertyType)||null==(t=l[0])?void 0:t.title)==="Home"||(null==e||null==(o=e.propertyType)||null==(r=o[0])?void 0:r.title)==="Open for Inspection"}).length),L(E.filter(e=>{var t,l;return(null==(l=e.propertyType)||null==(t=l[0])?void 0:t.title)==="Land"}).length)},[E]);let A=null==I||null==(u=I.estateLayout)?void 0:u.find(e=>(null==e?void 0:e.__typename)==="gallery_Entry"),F=(null==A?void 0:A.galleryImages)?A.galleryImages:null==I?void 0:I.galleryImages,R=n()(I,"regionEntry",[]);return(0,r.jsxs)("div",{className:"".concat(p().estateCard," ").concat(S?p().estateCardSimple:""),children:[(0,r.jsxs)("div",{className:p().estateCardTop,children:[S?(0,r.jsx)("div",{className:p().estateCardTopImage,children:(0,r.jsx)(a.default,{src:null!=(B=null==F?void 0:F[0].url)?B:"",alt:(null==F?void 0:F[0].title)||"",layout:"fill",style:{objectFit:"cover"},objectPosition:"center",blurDataURL:null==I||null==(m=I.blurThumb)?void 0:m[0].url,placeholder:"blur",loading:"eager"})}):(0,r.jsx)(s.default,{...{className:"estate-card-slider",dots:!0,arrows:!1,infinite:!0,autoplay:!1,lazyLoad:"ondemand",speed:800,fade:!0,autoplaySpeed:1e3,slidesToShow:1,slidesToScroll:1},ref:w,children:null==F?void 0:F.map((e,t)=>{var l,o,s,i;return(0,r.jsx)("div",{className:p().estateCardTopImage,onMouseEnter:()=>{var e;return null==(e=w.current)?void 0:e.slickPlay()},onMouseLeave:()=>{var e;return null==(e=w.current)?void 0:e.slickPause()},children:(null==e?void 0:e.url)&&(0,r.jsx)(a.default,{src:e.url,alt:(null==e?void 0:e.title)||"",layout:"fill",style:{objectFit:"cover"},objectPosition:"center",blurDataURL:(null==I||null==(o=I.blurThumb)||null==(l=o[t])?void 0:l.url)?null==I||null==(i=I.blurThumb)||null==(s=i[t])?void 0:s.url:null==e?void 0:e.url,placeholder:"blur",loading:"eager"})},t)})}),(null==(h=I.logo)||null==(y=h[0])?void 0:y.url)&&(0,r.jsx)("div",{style:{backgroundColor:(null==I?void 0:I.colorCode)?I.colorCode:"transparent"},className:p().estateCardTopLogo,children:(0,r.jsx)(a.default,{src:null==(f=I.logo)||null==(C=f[0])?void 0:C.url,alt:(null==(v=I.logo)||null==(x=v[0])?void 0:x.title)||"",width:null==(_=I.logo)||null==(g=_[0])?void 0:g.width,height:null==(b=I.logo)||null==(j=b[0])?void 0:j.height,layout:"responsive"})})]}),(0,r.jsxs)("div",{className:p().estateCardBottom,children:[(0,r.jsx)("h5",{children:M}),(0,r.jsx)("h3",{children:null==R||null==(T=R[0])?void 0:T.title}),(0,r.jsxs)("div",{className:p().estateCardBottomInfo,children:[k>0&&(0,r.jsxs)("div",{className:p().estateCardBottomInfoDetail,children:[(0,r.jsx)(d.A,{type:"home-insurance"}),(0,r.jsx)("span",{children:(0,r.jsxs)("b",{children:[k," Homes for Sale"]})})]}),(null==I?void 0:I.estateStatus)==="comingSoon"&&(0,r.jsx)("div",{className:p().estateCardBottomInfoDetail,children:(0,r.jsx)("span",{children:(0,r.jsx)("b",{children:"Coming Soon"})})}),(null==I?void 0:I.retirementLiving)==="yes"&&(0,r.jsx)("div",{className:p().estateCardBottomInfoDetail,children:(0,r.jsx)("span",{children:(0,r.jsx)("b",{children:"Retirement Living"})})}),D>0&&(0,r.jsxs)("div",{className:p().estateCardBottomInfoDetail,children:[(0,r.jsx)(d.A,{type:"land-sale"}),(0,r.jsx)("span",{children:(0,r.jsxs)("b",{children:[D," Land for Sale"]})})]})]})]})]})}}}]);
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.