1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3905],{83905:(e,t,a)=>{a.r(t),a.d(t,{PropertiesMap:()=>y});var r=a(85664),s=a(258),l=a(63276),n=a(83470),o=a(98594),i=a(3008),d=a(76392),c=a.n(d),m=a(74348),p=a(22712),u=a(7860),x=a(15179);function g(e){var t;let{hideNewlyListedBadge:a,property:s}=e,l=(0,x.n9)(s.department,s.slug,s.availableAs),n=(0,x.gq)(s),{isNew:o,relativeDate:d}=(0,x._i)(s,a);return(0,r.jsxs)("div",{className:"group relative z-30 h-[280px] transform-gpu bg-white shadow-mapcard md:h-[360px]",children:[(0,r.jsxs)(c(),{className:"absolute inset-0 overflow-hidden",href:l,prefetch:!0,children:[!!(null==(t=s.featuredImage)?void 0:t.url)&&(0,r.jsx)("div",{className:"absolute inset-0 transition-all duration-2000 group-hover:scale-110",children:(0,r.jsx)(i.default,{alt:s.address,blurDataURL:s.featuredImage.dataUrl,className:"absolute inset-0 size-full object-cover object-center",height:385,placeholder:s.featuredImage.dataUrl?"blur":"empty",src:s.featuredImage.url,width:470})}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(84, 84, 84, 0.5) 54.000003814697266%, rgba(25, 25, 25, 0.8) 100%)"}}),(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-5 translate-y-5 bg-bggray transition-all duration-300 group-hover:translate-y-0 group-hover:delay-100"})]}),!!(n||o)&&(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-30 origin-top border border-black/15 bg-green-1 transition-all duration-100"}),(0,r.jsxs)(c(),{className:"absolute inset-x-0 bottom-0 px-24 pt-30 pb-40 text-white",href:l,prefetch:!0,children:[!!s.priceQualifier&&"Shared Ownership"!==s.priceQualifier&&"Asking Price Of"!==s.priceQualifier&&(0,r.jsx)("div",{className:"text-14 text-white uppercase leading-none tracking-[0.23px]",dangerouslySetInnerHTML:{__html:s.priceQualifier}}),(0,r.jsxs)("div",{className:"flex items-baseline",children:[!!s.formattedPrice&&(0,r.jsx)("h3",{className:"font-bold text-22 text-white leading-snug tracking-[0.08px] md:text-24 lg:text-26 xl:text-32",dangerouslySetInnerHTML:{__html:s.formattedPrice}}),!!s.tenure&&(0,r.jsx)("span",{className:"ml-10 text-14 leading-tight tracking-[0.23px]",dangerouslySetInnerHTML:{__html:s.tenure}})]}),!!s.propertyType&&!!s.propertyType&&(0,r.jsx)("div",{className:"rounded-10 bg-white px-12 py-5 font-bold text-10 text-black uppercase leading-none tracking-[1.33px] shadow-md [display:var(--property-type-pill-display,inline-block)]",dangerouslySetInnerHTML:{__html:s.propertyType}}),!!s.address&&(0,r.jsx)("h2",{className:"mt-10 pt-3 font-body text-17 text-white leading-[1.41176471]",dangerouslySetInnerHTML:{__html:s.address}}),!!(s.bedrooms||s.bathrooms||s.receptionRooms||s.floorAreaTo)&&(0,r.jsxs)("div",{className:"flex items-center pt-20",children:[!!s.bedrooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/bedroom"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.bedrooms.toString()}})]}),!!s.bathrooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/bathroom"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.bathrooms.toString()}})]}),!!s.receptionRooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/living-room"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.receptionRooms.toString()}})]}),!!s.floorAreaTo&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/dimensions"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",children:(0,x.Hz)(s.floorAreaFrom,s.floorAreaTo,s.floorAreaUnits)})]})]}),(0,r.jsx)("div",{className:"-translate-x-1/2 absolute top-full left-1/2 size-0 border-transparent border-x-[8.5px] border-t-[14px] border-t-bggray border-b-0 transition-all duration-300"}),!!(n||o)&&(0,r.jsxs)("div",{className:"absolute inset-x-0 bottom-0 truncate px-10 py-6 text-center font-bold text-12 text-black tracking-[0.5px] duration-200",children:[o?"NEW ":"",n?"FEATURED ":"","LISTING",o?" - added ".concat(d):""]})]}),(0,r.jsx)("div",{className:"0 pointer-events-none absolute top-0 z-10",children:(0,r.jsx)(u.PropertyAvailability,{property:s,theme:"apex"})}),(0,r.jsx)(p.FavoriteButton,{hasVideos:!1,property:s,theme:"apex"})]})}function h(e){var t;let{hideNewlyListedBadge:a,property:s}=e,l=(0,x.n9)(s.department,s.slug,s.availableAs),n=(0,x.gq)(s),{isNew:o,relativeDate:d}=(0,x._i)(s,a);return(0,r.jsxs)("div",{className:"group relative z-30 h-[280px] transform-gpu rounded-20 bg-white shadow-mapcard md:h-[360px]",children:[(0,r.jsxs)(c(),{className:"absolute inset-0 scale-100 overflow-hidden rounded-20 transition-all duration-300 group-hover:scale-105",href:l,prefetch:!0,children:[!!(null==(t=s.featuredImage)?void 0:t.url)&&(0,r.jsx)("div",{className:"absolute inset-0 scale-105 transition-all duration-300 group-hover:scale-100",children:(0,r.jsx)(i.default,{alt:s.address,blurDataURL:s.featuredImage.dataUrl,className:"absolute inset-0 size-full object-cover object-center",height:385,placeholder:s.featuredImage.dataUrl?"blur":"empty",src:s.featuredImage.url,width:470})}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-20",style:{backgroundImage:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(84, 84, 84, 0.5) 54.000003814697266%, rgba(25, 25, 25, 0.8) 100%)"}}),(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-5 translate-y-5 bg-secondary transition-all duration-300 group-hover:translate-y-0 group-hover:delay-100"})]}),!!(n||o)&&(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-30 origin-top rounded-b-16 border border-black/15 bg-green-1 transition-all duration-100 group-hover:rounded-t-16"}),(0,r.jsxs)(c(),{className:"absolute inset-x-0 bottom-0 px-24 pt-30 pb-40 text-white",href:l,prefetch:!0,children:[!!s.priceQualifier&&"Shared Ownership"!==s.priceQualifier&&"Asking Price Of"!==s.priceQualifier&&(0,r.jsx)("div",{className:"text-14 text-white uppercase leading-none tracking-[0.23px]",dangerouslySetInnerHTML:{__html:s.priceQualifier}}),(0,r.jsxs)("div",{className:"flex items-baseline",children:[!!s.formattedPrice&&(0,r.jsx)("h3",{className:"font-bold text-22 text-white leading-snug tracking-[0.08px] md:text-24 lg:text-26 xl:text-32",dangerouslySetInnerHTML:{__html:s.formattedPrice}}),!!s.tenure&&(0,r.jsx)("span",{className:"ml-10 text-14 leading-tight tracking-[0.23px]",dangerouslySetInnerHTML:{__html:s.tenure}})]}),!!s.propertyType&&!!s.propertyType&&(0,r.jsx)("div",{className:"rounded-10 bg-white px-12 py-5 font-bold text-10 text-black uppercase leading-none tracking-[1.33px] shadow-md [display:var(--property-type-pill-display,inline-block)]",dangerouslySetInnerHTML:{__html:s.propertyType}}),!!s.address&&(0,r.jsx)("h2",{className:"mt-10 min-h-[48px] pt-3 font-body text-17 text-white leading-[1.41176471]",dangerouslySetInnerHTML:{__html:s.address}}),!!(s.bedrooms||s.bathrooms||s.receptionRooms||s.floorAreaTo)&&(0,r.jsxs)("div",{className:"flex items-center pt-20",children:[!!s.bedrooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:(0,r.jsx)("svg",{className:"text-white",height:"26",width:"32",children:(0,r.jsx)("use",{xlinkHref:"#svg-sprite-bedroom"})})}),(0,r.jsx)("span",{className:"mr-20 ml-10 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.bedrooms.toString()}})]}),!!s.bathrooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:(0,r.jsx)("svg",{className:"text-white",height:"27",width:"31",children:(0,r.jsx)("use",{xlinkHref:"#svg-sprite-bathroom"})})}),(0,r.jsx)("span",{className:"mr-20 ml-10 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.bathrooms.toString()}})]}),!!s.receptionRooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:(0,r.jsx)("svg",{className:"text-white",height:"35",width:"35",children:(0,r.jsx)("use",{xlinkHref:"#svg-sprite-reception-room"})})}),(0,r.jsx)("span",{className:"mr-20 ml-10 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.receptionRooms.toString()}})]}),!!s.floorAreaTo&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"relative text-white",children:[(0,r.jsx)("span",{className:"absolute top-3 left-5 text-red-1",children:(0,r.jsx)("svg",{height:"25",width:"27",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("g",{opacity:".312",transform:"rotate(-4 13.5 12.5)",children:(0,r.jsx)("path",{d:"M.115 11.193C1.775-1.294 17.147.586 17.147.586s14.796 1.543 7.398 15.822-26.09 7.273-24.43-5.215z",fill:"
1currentColor"})})})}),(0,r.jsx)(m.I,{className:"relative size-30",name:"material-design-icons/photo_size_select_small-filled"})]}),(0,r.jsx)("span",{className:"mr-20 ml-10 font-bold text-17 leading-normal tracking-[0.28px]",children:(0,x.Hz)(s.floorAreaFrom,s.floorAreaTo,s.floorAreaUnits)})]})]}),(0,r.jsx)("div",{className:"-translate-x-1/2 absolute top-full left-1/2 size-0 border-transparent border-x-[8.5px] border-t-[14px] border-t-secondary border-b-0 transition-all duration-300 group-hover:translate-y-8"}),!!(n||o)&&(0,r.jsxs)("div",{className:"absolute inset-x-0 bottom-0 truncate px-10 py-6 text-center font-bold text-12 text-black tracking-[0.5px] duration-200",children:[o?"NEW ":"",n?"FEATURED ":"","LISTING",o?" - added ".concat(d):""]})]}),(0,r.jsx)("div",{className:"pointer-events-none absolute top-20 left-24 z-10",children:(0,r.jsx)(u.PropertyAvailability,{property:s})}),(0,r.jsx)(p.FavoriteButton,{hasVideos:!1,property:s,theme:"beam"})]})}function b(e){var t;let{hideNewlyListedBadge:a,property:s}=e,l=(0,x.n9)(s.department,s.slug,s.availableAs),n=(0,x.gq)(s),{isNew:o,relativeDate:d}=(0,x._i)(s,a);return(0,r.jsxs)("div",{className:"group relative z-30 w-[300px] transform-gpu bg-white shadow-mapcard md:w-[350px]",children:[(0,r.jsxs)(c(),{className:"relative block h-[200px] overflow-hidden md:h-[280px]",href:l,prefetch:!0,children:[!!(null==(t=s.featuredImage)?void 0:t.url)&&(0,r.jsx)("div",{className:"absolute inset-0 transition-all duration-2000 group-hover:scale-110",children:(0,r.jsx)(i.default,{alt:s.address,blurDataURL:s.featuredImage.dataUrl,className:"absolute inset-0 size-full object-cover object-center",height:385,placeholder:s.featuredImage.dataUrl?"blur":"empty",src:s.featuredImage.url,width:470})}),(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-5 translate-y-5 bg-bggray transition-all duration-300 group-hover:translate-y-0 group-hover:delay-100"})]}),!!(n||o)&&(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-30 origin-top border border-black/15 bg-green-1 transition-all duration-100"}),(0,r.jsxs)(c(),{className:"block bg-tertiary px-24 pt-30 pb-40 text-white",href:l,prefetch:!0,children:[!!s.priceQualifier&&"Shared Ownership"!==s.priceQualifier&&"Asking Price Of"!==s.priceQualifier&&(0,r.jsx)("div",{className:"text-14 text-white uppercase leading-none tracking-[0.23px]",dangerouslySetInnerHTML:{__html:s.priceQualifier}}),(0,r.jsxs)("div",{className:"flex items-baseline",children:[!!s.formattedPrice&&(0,r.jsx)("h3",{className:"font-bold text-22 text-white leading-snug tracking-[0.08px] md:text-24 lg:text-26 xl:text-32",dangerouslySetInnerHTML:{__html:s.formattedPrice}}),!!s.tenure&&(0,r.jsx)("span",{className:"ml-10 text-14 leading-tight tracking-[0.23px]",dangerouslySetInnerHTML:{__html:s.tenure}})]}),!!s.propertyType&&!!s.propertyType&&(0,r.jsx)("div",{className:"rounded-10 bg-white px-12 py-5 font-bold text-10 text-black uppercase leading-none tracking-[1.33px] shadow-md [display:var(--property-type-pill-display,inline-block)]",dangerouslySetInnerHTML:{__html:s.propertyType}}),!!s.address&&(0,r.jsx)("h2",{className:"mt-10 pt-3 font-body text-17 text-white leading-[1.41176471]",dangerouslySetInnerHTML:{__html:s.address}}),!!(s.bedrooms||s.bathrooms||s.receptionRooms||s.floorAreaTo)&&(0,r.jsxs)("div",{className:"flex items-center pt-20",children:[!!s.bedrooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/bedroom"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.bedrooms.toString()}})]}),!!s.bathrooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/bathroom"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.bathrooms.toString()}})]}),!!s.receptionRooms&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/living-room"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:s.receptionRooms.toString()}})]}),!!s.floorAreaTo&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.I,{className:"mr-8 size-24",name:"custom/dimensions"}),(0,r.jsx)("span",{className:"mr-20 font-bold text-17 leading-normal tracking-[0.28px]",children:(0,x.Hz)(s.floorAreaFrom,s.floorAreaTo,s.floorAreaUnits)})]})]}),(0,r.jsx)("div",{className:"-translate-x-1/2 absolute top-full left-1/2 size-0 border-transparent border-x-[8.5px] border-t-[14px] border-t-tertiary border-b-0 transition-all duration-300"}),!!(n||o)&&(0,r.jsxs)("div",{className:"absolute inset-x-0 bottom-0 truncate px-10 py-6 text-center font-bold text-12 text-black tracking-[0.5px] duration-200",children:[o?"NEW ":"",n?"FEATURED ":"","LISTING",o?" - added ".concat(d):""]})]}),(0,r.jsx)("div",{className:"pointer-events-none absolute top-20 left-20 z-10",children:(0,r.jsx)(u.PropertyAvailability,{property:s,theme:"fascia"})}),(0,r.jsx)(p.FavoriteButton,{hasVideos:!1,property:s,theme:"fascia"})]})}var f=a(54055),j=a(96777);function y(e){let{hideNewlyListedBadge:t,properties:a,theme:i,zoom:d}=e,{isLoaded:c,loadError:m}=(0,o.K)(n.vu),[p,u]=(0,l.useState)(null),x=f.U.use.activeMapProperty(),y=f.U.use.activeMapPropertySet(),v="fascia"===i||"gable"===i?-285:-245,N=(0,l.useCallback)(function(e){p&&e.latitude&&e.longitude&&(p.panTo({lat:e.latitude,lng:e.longitude}),p.panBy(0,v))},[p,v]),w=(0,l.useCallback)(function(){if(p){let r=new google.maps.LatLngBounds;for(let s of a.filter(e=>e.latitude&&e.longitude&&0!==e.latitude&&0!==e.longitude)){var e,t;let a=new google.maps.LatLng({lat:null!=(e=s.latitude)?e:0,lng:null!=(t=s.longitude)?t:0});r.extend(a)}p.fitBounds(r)}
1},[a,p]),k=(0,l.useCallback)(function(e){u(e);let t=new google.maps.LatLngBounds;for(let e of a.filter(e=>e.latitude&&e.longitude&&0!==e.latitude&&0!==e.longitude)){var r,s;let a=new google.maps.LatLng({lat:null!=(r=e.latitude)?r:0,lng:null!=(s=e.longitude)?s:0});t.extend(a)}e.fitBounds(t)},[a]),_=(0,l.useCallback)(function(){u(null)},[]);return((0,l.useEffect)(()=>{w()},[a,w]),(0,l.useEffect)(()=>{(null==x?void 0:x.latitude)&&x.longitude&&N(x)},[x,N]),(0,l.useEffect)(()=>{var e;return null==(e=document.querySelector("footer"))||e.classList.add("hidden"),()=>{var e;null==(e=document.querySelector("footer"))||e.classList.remove("hidden")}},[]),m)?(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-center",children:"Map cannot be loaded right now, sorry."}):c?(0,r.jsxs)("div",{className:"absolute inset-0 size-full overflow-hidden",children:[(0,r.jsx)(s.u6,{mapContainerStyle:{height:"100%",width:"100%"},onDragEnd:()=>{y(null)},onLoad:k,onUnmount:_,onZoomChanged:()=>{y(null)},options:{...n.tS,maxZoom:20,minZoom:0},zoom:d||16,children:!!a.filter(e=>e.latitude&&e.longitude&&0!==e.latitude&&0!==e.longitude).length&&(0,r.jsx)(s.w1,{clusterClass:"clustericon",maxZoom:14,styles:[{className:"clustericon--1",height:30,url:"",width:30},{className:"clustericon--2",height:40,url:"",width:40},{className:"clustericon--3",height:50,url:"",width:50}],children:e=>{let t=a.filter(e=>e.latitude&&e.longitude&&0!==e.latitude&&0!==e.longitude).map(t=>{var a,l;return(0,r.jsx)(s.pH,{clusterer:e,icon:{scaledSize:new google.maps.Size(36,50),url:n.hE.default},onClick:()=>{y(t)},position:{lat:null!=(a=t.latitude)?a:0,lng:null!=(l=t.longitude)?l:0}},"location-".concat(t.slug))});return(0,r.jsx)(r.Fragment,{children:t})}})}),!!x&&(0,r.jsxs)("div",{className:(0,j.cn)("-translate-x-1/2 -translate-y-1/2 absolute top-[calc(50%+40px)] left-1/2 md:top-1/2","fascia"===i||"gable"===i?"w-[300px] md:w-[350px]":"w-[290px]"),children:[("beam"===i||"duplex"===i)&&(0,r.jsx)(h,{hideNewlyListedBadge:t,property:x}),("apex"===i||"chalet"===i)&&(0,r.jsx)(g,{hideNewlyListedBadge:t,property:x}),("fascia"===i||"gable"===i)&&(0,r.jsx)(b,{hideNewlyListedBadge:t,property:x})]})]}):null}}}]);
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.