1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[806],{78805:function(e,l,t){t.d(l,{Z:function(){return h}});var a=t(37821),s=t(58078),r=t(42312),n=t(80157),i=t(25107),o=t(73356),d=t(89964),c=t(44407),m=t(82907),x=t(68334),u=t(9324);let h=(0,s.forwardRef)((e,l)=>{let{variant:t="default",title:s,href:h,description:p,postDate:v,thumbnail:g,status:f,metadata:j=[],className:b,linkText:N="Read more",masonry:w=!1,tags:y=[],whiteBackground:k,tenureTypes:C,...S}=e;return(0,a.jsx)("div",{className:(0,r.cn)("Card group relative",b),...S,ref:l,children:(0,a.jsxs)(u.fC,{children:[(0,a.jsx)(u.xz,{children:(0,a.jsxs)("div",{className:(0,r.cn)("flex h-full flex-col",!g&&"border-t border-blue pt-4 md:pt-6 xl:pt-8",g&&w&&"border-t border-blue pt-4 group-first:border-none group-first:pt-0 md:pt-6 xl:pt-8"),children:[g&&(0,a.jsx)(n.E,{src:g.src,alt:g.alt,width:560,height:840,aspectRatio:"compact"===t?2/3:9/7,className:"mb-4 md:mb-6 xl:mb-8"}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-between",children:[v&&(0,a.jsx)(m.Z,{variant:"text-md",trim:!0,withMargin:"h4",className:"xl:-mt-1",children:v}),y.length>0&&(0,a.jsx)("div",{className:"mb-4 flex flex-wrap gap-2",children:y.map((e,l)=>(0,a.jsx)(m.Z,{variant:"text-sm",className:"whitespace-nowrap rounded-full border border-blue px-3 pt-1 text-blue",children:e},l))}),(0,a.jsx)(m.Z,{variant:"compact"===t?"h5":"h4",component:"compact"===t?"h5":"h4",withMargin:!0,className:(0,r.cn)("whitespace-pre-line text-blue","map"===t&&"typography-h4-map"),children:h?(0,a.jsx)(i.r,{href:h,className:"before:absolute before:inset-0",children:s}):s}),p&&(0,a.jsx)(d.L,{html:p,paragraphSize:"md",className:"mb-4"}),f&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(x.q,{...f,size:"map"===t?"compact":"default",className:"map"!==t?"mb-4":"mb-2"})}),j.length>0&&(0,a.jsx)(m.Z,{asChild:!0,variant:"text-xs",children:(0,a.jsx)(c.S,{items:j,className:"map"!==t?"mb-4":"mb-2"})}),(0,a.jsx)("div",{className:(0,r.cn)("map"!==t?"mb-4":"mb-0","md:hidden"),children:(0,a.jsx)(o.z,{variant:"tertiary",size:"map"===t?"sm":"md",className:"pointer-events-none",children:N})})]})]})}),(0,a.jsx)(u.h_,{children:(0,a.jsx)(u.VY,{children:(0,a.jsx)(o.z,{variant:"tertiary",size:"md",className:"pointer-events-none hidden md:inline-flex",children:N})})})]})})});h.displayName="Card"},24891:function(e,l,t){t.d(l,{C:function(){return o}});var a=t(37821),s=t(58078),r=t(42312),n=t(48484),i=t(78805);let o=(0,s.forwardRef)((e,l)=>{let{variant:t="default",className:s,items:o,...d}=e;if(o.length<1)return null;let c=o.filter((e,l)=>l%2==0),m=o.filter((e,l)=>l%2!=0);return(0,a.jsxs)("div",{className:(0,r.cn)("CardList",s),...d,ref:l,children:["masonry"===t&&(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsxs)(n.rj,{cols:{_:1,sm:2,xl:12},children:[(0,a.jsx)("div",{className:"xl:col-span-5",children:(0,a.jsx)(n.rj,{cols:1,children:c.map((e,l)=>(0,a.jsx)(i.Z,{masonry:!0,...e},e.href||e.title||l))})}),(0,a.jsx)("div",{className:"md:mt-[120px] xl:col-span-5 xl:col-start-8 xl:mt-[240px]",children:(0,a.jsx)(n.rj,{cols:1,children:m.map((e,l)=>(0,a.jsx)(i.Z,{masonry:!0,...e},e.href||e.title||l))})})]})}),(0,a.jsx)("div",{className:(0,r.cn)("masonry"===t&&"sm:hidden"),children:(0,a.jsx)(n.rj,{cols:{_:1,sm:2,xl:3},children:o.map((e,l)=>(0,a.jsx)(i.Z,{...e,status:e.status?{...e.status,animated:!0}:void 0},e.href||e.title||l))})})]})});o.displayName="CardList"},73806:function(e,l,t){t.r(l),t.d(l,{BlockLoader:function(){return eW}});var a=t(37821),s=t(58078),r=t(42312),n=t(48484),i=t(90780),o=t(82907),d=t(89964),c=t(80157);let m=e=>{let{anchor:l,heading:t,largeHeading:s=!1,variant:m="default",text:x,textSecondary:u,className:h,showIconsText:p=!1,iconsText:v,...g}=e;return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:h,...g,children:(0,a.jsxs)(i.W,{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),(0,a.jsxs)(n.rj,{cols:{_:1,md:"interview"===m?1:2},gap:"interview"===m?"none":"md",className:(0,r.cn)("interview"===m&&"md:gap-2 xl:gap-4"),children:[(0,a.jsx)(n.rj,{cols:{_:1,md:"interview"===m?2:1},children:(0,a.jsxs)("div",{children:[t&&(0,a.jsx)(o.Z,{variant:s?"h2":"h3",component:l&&l.visible?"p":"h3",className:"max-w-xl text-blue",children:t}),p&&v&&v.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.LZ,{size:"sm"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-6",children:v.map((e,l)=>{var t;return e.text?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.icon&&(null===(t=e.icon[0])||void 0===t?void 0:t.url)&&(0,a.jsx)(c.E,{src:e.icon[0].url,alt:e.icon[0].alt||"",className:"h-6 w-6"}),(0,a.jsx)("span",{className:"text-black",children:e.text})]},l):null})})]}),x&&t&&(0,a.jsx)(n.LZ,{size:"sm"}),x&&(0,a.jsx)(d.L,{html:x})]})}),u&&(0,a.jsx)(n.rj,{cols:{_:1,md:"interview"===m?2:1},children:(0,a.jsx)("div",{className:(0,r.cn)("interview"===m&&"md:col-start-2"),children:(0,a.jsx)(d.L,{html:u,blockAlign:"right"})})})]})]})})};var x=t(80057),u=t(80897);let h=x.fC,p=(0,s.forwardRef)((e,l)=>{let{className:t,...s}=e;return(0,a.jsx)(x.ck,{ref:l,className:(0,r.cn)("border-t border-blue last:mb-0 last:border-b",t),...s})});p.displayName="AccordionItem";let v=(0,s.forwardRef)((e,l)=>{let{className:t,children:s,...n}=e;return(0,a.jsx)(x.h4,{className:"flex",children:(0,a.jsxs)(x.xz,{ref:l,className:(0,r.cn)("group flex flex-1 items-center justify-between py-[24px] pt-[22px] text-left",t),...n,children:[s,(0,a.jsxs)("div",{className:"ml-4",children:[(0,a.jsx)(u.J,{name:"plus",className:"h-4 w-4 text-blue group-data-[state=open]:hidden md:h-6 md:w-6"}),(0,a.jsx)(u.J,{name:"minus",className:"h-4 w-4 text-blue group-data-[state=closed]:hidden md:h-6 md:w-6"})]})]})})});v.displayName=x.xz.displayName;let g=(0,s.forwardRef)((e,l)=>{let{className:t,children:s,...n}=e;return(0,a.jsx)(x.VY,{ref:l,className:(0,r.cn)("overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",t),...n,children:(0,a.jsx)("div",{className:"pb-8",children:s})})});g.displayName=x.VY.displayName;let f=e=>{let{anchor:l,heading:t,largeHeading:s=!1,text:r,items:c,className:m,...x}=e;return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:m,...x,children:(0,a.jsx)(i.W,{children:(0,a.jsxs)(n.rj,{children:[(0,a.jsxs)("div",{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),(0,a.jsx)(o.Z,{variant:s?"h2":"h3",component:l&&l.visible?"p":"h3",className:"max-w-lg text-blue",children:t}),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.LZ,{size:"sm"}),(0,a.jsx)(d.L,{html:r})]})]}),(null==c?void 0:c.length)>0&&(0,a.jsx)(h,{type:"multiple",className:"w-full",children:c.map(e=>{let{heading:l,text:t,id:s}=e;return(0,a.jsxs)(p,{value:s,children:[(0,a.jsx)(v,{children:(0,a.jsx)(o.Z,{variant:"text-lg",className:"text-blue",children:l})}),(0,a.jsx)(g,{children:t&&(0,a.jsx)(d.L,{html:t,paragraphSize:"sm"})})]},s)})})]})})})};var j=t(70572);let b=(0,s.createContext)({prev:()=>{},next:()=>{},loaded:!1,sliderRef:()=>{}}),N=e=>{let{icon:l="plus",className:t,iconClassName:s,onClick:n,animated:i=!1,...o}=e;return(0,a.jsx)("button",{onClick:n,className:(0,r.cn)("fill-current text-blue transition-colors hover:text-blue/60",i&&"group/control",t),...o,children:(0,a.jsx)(u.J,{name:l,className:(0,r.cn)("h-7 w-7",s)})})},w=e=>{let{className:l,animated:t,...n}=e,{next:i}=(0,s.useContext)(b);return(0,a.jsx)(N,{icon:"arrow-right",onClick:i,animated:t,iconClassName:(0,r.cn)(t&&"transition-transform duration-300 group-hover/control:translate-x-1/4"),...n})},y=e=>{let{className:l,animated:t,...n}=e,{prev:i}=(0,s.useContext)(b);return(0,a.jsx)(N,{icon:"arrow-left",onClick:i,animated:t,iconClassName:(0,r.cn)(t&&"transition-transform duration-300 group-hover/control:-translate-x-1/4"),...n})},k=e=>{let{className:l,children:t,overflow:n=!1,...i}=e,{sliderRef:o,loaded:d}=(0,s.useContext)(b);return(0,a.jsx)("ul",{className:(0,r.cn)("touch-[pan-y pinch-zoom] relative flex w-full",{"opacity-0":!d,"overflow-hidden":!n},l),ref:o,...i,children:t})},C=e=>{let{className:l,children:t,...s}=e;return(0,a.jsx)("li",{className:(0,r.cn)("keen-slider__slide relative w-full",l),...s,children:t})},S=(0,s.forwardRef)((e,l)=>{let{options:t={},onLoad:n=()=>{},onChange:i=()=>{},className:o,children:d,...c}
1=e,[m,x]=(0,s.useState)(!1),[u,h]=(0,j.E)({initial:0,slides:{spacing:16,perView:7/3},...t,created(e){x(!0),n(e)},detailsChanged(e){i(e)}});return(0,a.jsx)(b.Provider,{value:{prev:()=>{var e;return null===(e=h.current)||void 0===e?void 0:e.prev()},next:()=>{var e;return null===(e=h.current)||void 0===e?void 0:e.next()},loaded:m,sliderRef:u},children:(0,a.jsx)("div",{ref:l,className:(0,r.cn)("Carousel",o),...c,children:d})})});S.displayName="Carousel";var Z=t(78805);let L=e=>{let{src:l,title:t,className:s,...n}=e;return(0,a.jsx)("div",{className:(0,r.cn)("Video","relative overflow-auto bg-black",s),...n,children:(0,a.jsx)("iframe",{src:l,title:t,className:"aspect-video w-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy"})})},F={landscape:9/16,portrait:4/3,auto:void 0},E=e=>{let{type:l="image",variant:t="auto",caption:s,credit:r,src:n,alt:i,className:d,...m}=e;return(0,a.jsxs)("figure",{children:["video"===l?(0,a.jsx)(L,{src:n,title:i,className:d,...m}):(0,a.jsx)(c.E,{src:n,alt:i,aspectRatio:F[t],className:d,...m}),(s||r)&&(0,a.jsxs)("figcaption",{className:"mt-3 md:mt-4 xl:mt-5",children:[s&&(0,a.jsx)(o.Z,{variant:"text-lg",children:s}),r&&(0,a.jsx)(o.Z,{variant:"text-sm",asChild:!0,children:(0,a.jsxs)("div",{className:"mt-3 flex xl:mt-4",children:[(0,a.jsx)(u.J,{name:"camera",className:"relative mr-2"}),(0,a.jsx)("span",{className:"flex-1",children:r})]})})]})]})};E.displayName="Media";let A=e=>{let{anchor:l,type:t,heading:s,largeHeading:c=!1,text:m,items:x=[],className:u,...h}=e,p=x.length&&x.length<6?Array(Math.ceil(6/x.length)).fill(x).flat():x,v=e=>{let{track:l,slides:t}=e;if(l.details){let{abs:e,slides:a}=l.details;a.forEach((l,a)=>{let s=t[a];l.abs<e?s.setAttribute("data-hidden",""):s.removeAttribute("data-hidden")})}},g="transition-opacity duration-300 data-[hidden]:opacity-0 data-[hidden]:pointer-events-none",f=p.map((e,l)=>{switch(t){case"card":return(0,a.jsx)(C,{className:g,children:(0,a.jsx)(Z.Z,{className:(0,r.cn)(["w-[75vw]","sm:w-[calc(2/3*608px-8px)]","md:w-[calc(3/7*720px-16px)]","lg:w-[calc(3/7*976px-16px)]","xl:w-[calc(3/7*1232px-32px)]","2xl:w-[calc(3/7*1488px-32px)]"]),...e})},l);case"image":return(0,a.jsx)(C,{className:g,children:(0,a.jsx)(E,{innerProps:{className:(0,r.cn)(["h-[240px]","sm:h-[320px]","md:h-[480px]","xl:h-[640px]"],"w-auto max-w-none")},...e})},l);default:return null}}).filter(Boolean);return(0,a.jsxs)(n.gO,{id:null==l?void 0:l.id,className:(0,r.cn)("overflow-hidden",u),...h,children:[s&&(0,a.jsxs)(i.W,{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),(0,a.jsxs)(n.rj,{children:[(0,a.jsx)("div",{children:(0,a.jsx)(o.Z,{variant:c?"h2":"h3",component:l&&l.visible?"p":"h3",className:(0,r.cn)(m&&"max-w-xl","text-blue"),children:s})}),m&&(0,a.jsxs)("div",{children:[(0,a.jsx)(d.L,{html:m}),(0,a.jsx)(n.LZ,{})]})]})]}),x.length>0&&(0,a.jsxs)(S,{options:{loop:!0,slides:{spacing:12,perView:"auto"},breakpoints:{"(min-width: 640px)":{slides:{spacing:12,perView:"auto"}},"(min-width: 768px)":{slides:{spacing:32,perView:"auto"}},"(min-width: 1280px)":{slides:{spacing:64,perView:"auto"}}}},onLoad:v,onChange:v,children:[(0,a.jsxs)(i.W,{className:"-mt-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,a.jsx)(y,{animated:!0}),(0,a.jsx)(w,{animated:!0})]}),(0,a.jsx)(n.LZ,{})]}),(0,a.jsx)(i.W,{variant:"full",children:(0,a.jsx)("div",{className:(0,r.cn)(["pl-3","md:pl-4","lg:pl-[calc(50vw-488px)]","xl:pl-[calc(50vw-616px)]","2xl:pl-[calc(50vw-744px)]","min-[2560px]:pl-[calc(1280px-744px)]"]),children:(0,a.jsx)(k,{overflow:!0,children:f})})})]})]})};var R=t(24891),z=t(25107),M=t(73356),T=t(88149);t(30348);var I=t(5237);let D=(0,s.forwardRef)((e,l)=>{let{defaultLatitude:r=-37.7904533,defaultLongitude:n=144.9631987,defaultZoom:i=13,...o}=e,d=(0,s.useRef)(null),[c,m]=(0,s.useState)(null),x="pk.eyJ1IjoidG9kYXktZGVzaWduLWFzc2VtYmxlIiwiYSI6ImNsb3M0aGRmaTB1Zm0yaW8xdWo2azhnYXMifQ.5dlW0F42QnQM4o8moYAWwQ",u={longitude:1===o.mapData.length?o.mapData[0].longitude:n,latitude:1===o.mapData.length?o.mapData[0].latitude:r,zoom:i},h=(0,s.useCallback)(e=>{var l;let{longitude:t,latitude:a}=e;null===(l=d.current)||void 0===l||l.flyTo({center:[t,a+.0012*i],duration:2e3})},[]),p=(0,s.useMemo)(()=>o.mapData.map((e,l)=>{var s,r;return(0,a.jsx)(I.Jx,{longitude:e.longitude,latitude:e.latitude,anchor:"top",onClick:l=>{l.originalEvent.stopPropagation(),m(e),h(e)},children:(0,a.jsx)(T.default,{src:null===(r=t(95380))||void 0===r?void 0:null===(s=r.default)||void 0===s?void 0:s.src,alt:"Map icon",width:24,height:24})},"marker-".concat(l))}),[]);return x?(0,a.jsx)(a.Fragment,{children:x?(0,a.jsx)("div",{className:"Map h-[800px] w-full sm:h-[650px] xl:h-[800
1px]",children:(0,a.jsxs)(I.D5,{ref:d,mapboxAccessToken:x,mapStyle:"mapbox://styles/mapbox/light-v11",initialViewState:u,scrollZoom:!1,dragPan:!0,children:[(0,a.jsx)(I.$j,{position:"top-left"}),(0,a.jsx)(I.Pv,{position:"top-left"}),(0,a.jsx)(I.jf,{}),p,c&&(0,a.jsx)(I.GI,{closeButton:!1,anchor:"bottom",longitude:Number(c.longitude),latitude:Number(c.latitude),onClose:()=>m(null),children:c.content})]})}):(0,a.jsx)("h4",{children:"Error: Map token not found"})}):(console.error("Error: Map token not found"),null)});D.displayName="Map";let O=e=>{let{locations:l,className:t,...s}=e,r=l.map(e=>{var l,t;return{latitude:(null===(l=e.geolocation)||void 0===l?void 0:l.latitude)||0,longitude:(null===(t=e.geolocation)||void 0===t?void 0:t.longitude)||0,content:(0,a.jsx)(Z.Z,{title:e.title,href:e.href,variant:"map",status:e.status,thumbnail:e.thumbnail,tags:e.tags,tenureTypes:e.tenureTypes,className:"w-[280px]"})}}),n=l.map(e=>e.title).join("-");return(0,a.jsx)(i.W,{children:(0,a.jsx)(D,{mapData:r},n)})},P=e=>{let{anchor:l,heading:t,largeHeading:s}=e;return(null==l?void 0:l.visible)||t?(0,a.jsxs)(a.Fragment,{children:[(null==l?void 0:l.visible)&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Z,{variant:s?"h2":"h3",component:(null==l?void 0:l.visible)?"p":"h3",className:"text-blue",children:t}),(0,a.jsx)(n.LZ,{})]})]}):null},_=e=>{let{anchor:l,heading:t,largeHeading:d=!1,items:c,variant:m="default",className:x,showFilters:u=!1,filterOptions:h,defaultFilter:p="all",completeProjects:v=!1,whiteBackground:g=!1,...f}=e,[j,b]=(0,s.useState)(p),[N,w]=(0,s.useState)("image"),[y]=(0,s.useState)(()=>c.map(e=>{let l=e.tenureTypes;return l&&l.length>0?{...e,tags:l}:e})),k=(0,s.useMemo)(()=>{let e=new Set;y.forEach(l=>{(l.tags||[]).forEach(l=>e.add(l))});let l=new Map(["Buy","Rent","Purchase Pathway","Reduced rent"].map((e,l)=>[e.toLowerCase(),l]));return[{label:"All projects",value:"all"},...Array.from(e).sort((e,t)=>{let a=l.get(e.toLowerCase()),s=l.get(t.toLowerCase());return void 0!==a&&void 0!==s?a-s:void 0!==a?-1:void 0!==s?1:e.localeCompare(t)}).map(e=>({label:e,value:e.toLowerCase()}))]},[y]);(0,s.useEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);if(e){let l=e.replace(/-/g," ");(h||k).map(e=>e.value).includes(l)&&b(l)}};return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[h,k]);let C=e=>{if(b(e),"all"===e)window.history.replaceState(null,"",window.location.pathname);else{let l=e.replace(/\s+/g,"-");window.history.replaceState(null,"","#".concat(l))}},S=(0,s.useMemo)(()=>"all"===j?y:y.filter(e=>(e.tags||[]).some(e=>e.toLowerCase()===j.toLowerCase())),[j,y]);return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:(0,r.cn)(x,g&&"bg-white"),...f,children:(0,a.jsx)(i.W,{children:v?(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-12 lg:grid-cols-4",children:[(0,a.jsx)("div",{className:"lg:col-span-2",children:(0,a.jsx)(P,{anchor:l,heading:t,largeHeading:d})}),(0,a.jsx)("div",{className:"lg:col-span-2",children:(0,a.jsx)("div",{className:"space-y-8",children:S.map((e,l)=>(0,a.jsxs)("div",{className:"border-b border-blue pb-8 first:border-t first:pt-8",children:[(0,a.jsx)(o.Z,{variant:"h5",component:"h5",className:"mb-3 font-bold text-blue",children:e.title||"Project Title"}),(0,a.jsx)(o.Z,{variant:"text-sm",component:"p",className:"mb-4 !text-2xl",children:e.description||""}),(0,a.jsx)(z.r,{href:e.href||"#",className:"text-2xl text-blue underline",children:e.linkText})]},l))})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{anchor:l,heading:t,largeHeading:d}),u&&(0,a.jsx)("div",{className:"mb-8",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-between gap-6 md:flex-row md:items-center",children:[(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-3 md:w-3/5",children:(h||k).map(e=>(0,a.jsx)(M.z,{onClick:()=>C(e.value),variant:j===e.value?"primary":"secondary",size:"md",className:"whitespace-nowrap rounded-full px-[12px] pb-[8px] pt-[10px] text-lg no-underline md:text-lg",children:e.label},e.value))}),(0,a.jsxs)("div",{className:"fle-no-wrap flex w-full justify-end md:w-2/5",children:[(0,a.jsx)(z.r,{href:"#",onClick:e=>{e.preventDefault(),w("image"===N?"map":"image")},asButton:!0,className:"text-lg text-blue-600 md:text-2xl",underline:"image"===N?"always":"never",children:"Image view"}),(0,a.jsx)("span",{className:"mx-1 text-lg text-blue-600 md:text-2xl",children:"/"}),(0,a.jsx)(z.r,{href:"#",onClick:e=>{e.preventDefault(),w("map"===N?"image":"map")},asButton:!0,className:"text-lg text-blue-600 md:text-2xl",underline:"map"===N?"always":"never",children:"Map view"})]})]})}
1),"image"===N?(0,a.jsx)(R.C,{variant:m,items:S}):(0,a.jsx)(O,{locations:S})]})})})},W=e=>{let{anchor:l,heading:t,largeHeading:s=!1,text:c,link:m,className:x,...h}=e;return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,padding:"double",className:(0,r.cn)(x,"bg-white"),...h,children:(0,a.jsxs)(i.W,{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),(0,a.jsxs)(n.rj,{children:[(0,a.jsx)("div",{children:(0,a.jsx)(o.Z,{variant:s?"h2":"h3",component:l&&l.visible?"p":"h3",className:"max-w-xl text-blue",children:t})}),(0,a.jsxs)("div",{className:"lg:col-start-2",children:[c&&(0,a.jsx)(d.L,{html:c}),(0,a.jsx)(n.LZ,{size:"sm"}),m&&(0,a.jsx)(M.z,{asChild:!0,size:"lg",className:"group",children:(0,a.jsxs)(z.r,{href:m.href,children:[m.text,(0,a.jsx)(u.J,{name:"arrow-right",text:!0,className:"ml-2 transition-transform duration-300 group-hover:translate-x-1/4"})]})})]})]})]})})},V=e=>{let{className:l,...t}=e;return(0,a.jsxs)("div",{className:(0,r.cn)("relative h-[2px] w-full",l),...t,children:[(0,a.jsx)("div",{className:"absolute inset-0 right-[2px] rounded-r-[2px] bg-blue"}),(0,a.jsx)("div",{className:"absolute right-0 h-[2px] w-[12px] origin-arrow-head-right rotate-45 rounded-[2px] bg-blue"}),(0,a.jsx)("div",{className:"absolute right-0 h-[2px] w-[12px] origin-arrow-head-right -rotate-45 rounded-[2px] bg-blue"})]})},B=e=>{let{items:l}=e,[t,n]=(0,s.useState)(!1),d=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=new IntersectionObserver(e=>{let[l]=e;l.isIntersecting&&!t&&n(!0)},{threshold:1});return d.current&&e.observe(d.current),()=>e.disconnect()},[]),(0,a.jsx)("div",{ref:d,className:"relative z-[1] mt-[-1px] border-y border-blue",children:(0,a.jsx)(i.W,{variant:"wide",children:(0,a.jsx)("div",{className:"flex flex-1 flex-col justify-between pb-3 pt-2 md:pb-5 md:pt-4 lg:flex-row lg:items-center lg:py-6 xl:py-8",children:l.map((e,n)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(o.Z,{variant:"text-lg",trim:!0,className:(0,r.cn)("whitespace-nowrap text-blue opacity-0 transition-opacity duration-400",{"opacity-1":t,"delay-600":1===n,"delay-1200":2===n}),children:e}),n<l.length-1&&(0,a.jsx)("div",{className:(0,r.cn)("my-3 w-8 opacity-0 transition-opacity duration-400 md:my-5 lg:mx-4 lg:my-0 lg:w-full xl:mx-6 2xl:mx-8",{"opacity-1":t,"delay-600":1===n}),children:(0,a.jsx)(V,{className:(0,r.cn)("translate-y-1/2 rotate-90 scale-50 md:scale-75 lg:w-[24px] lg:transform-none lg:transition-width lg:duration-800",{"opacity-1 lg:w-full":t,"lg:delay-600":1===n})})})]},n))})})})};B.displayName="AcoPathwayCue";let J=e=>{let{items:l=[],className:t,...s}=e;return(0,a.jsx)(n.gO,{padding:"none",className:t,...s,children:(0,a.jsx)(B,{items:l})})},G=e=>{let{img:l,caption:t,credit:s,layout:o="full",className:d,...c}=e;return"fullBleed"===o?(0,a.jsx)(n.gO,{padding:"none",className:d,...c,children:(0,a.jsx)(i.W,{variant:"full",children:(0,a.jsx)(E,{...l,variant:"landscape"})})}):(0,a.jsx)(n.gO,{className:d,...c,children:(0,a.jsx)(i.W,{children:(0,a.jsx)(n.rj,{cols:{_:"full"!==o?2:1,md:2},children:(0,a.jsx)("div",{className:(0,r.cn)({"col-span-full":"full"===o,"col-start-2":"halfRight"===o}),children:(0,a.jsx)(E,{...l,variant:"full"===o?"landscape":"portrait",caption:t,credit:s})})})})})};var U=t(83897);let q=e=>{let{anchor:l,heading:t,largeHeading:s}=e;return(0,a.jsxs)(a.Fragment,{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),(0,a.jsx)(o.Z,{variant:s?"h2":"h3",component:l&&l.visible?"p":"h3",className:"max-w-xl text-blue",children:t})]})},Q=e=>{let{anchor:l,heading:t,largeHeading:m,panels:x=[],className:u,...h}=e,p=Array(x.length).fill(0).map((e,l)=>0===l?1:0),[v,g]=(0,s.useState)(p),f=e=>()=>{g(v.map((l,t)=>e===t?1:l))},j=e=>()=>{g(v.map((l,t)=>e===t&&t>0?0:l))};return(0,a.jsx)(n.gO,{className:u,...h,children:(0,a.jsxs)(i.W,{children:[(0,a.jsx)(q,{anchor:l,heading:t,largeHeading:m}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden md:block",children:(0,a.jsx)("div",{className:"sticky left-0 right-0 top-0","aria-hidden":"true",children:x.map((e,l)=>(0,a.jsxs)("div",{className:(0,r.cn)({"absolute left-0 right-0 top-0":l>0}),children:[(0,a.jsx)(n.LZ,{}),(0,a.jsxs)(n.rj,{children:[(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("div",{style:{opacity:v[l]},className:"max-w-[320px] bg-stone-50 transition-opacity duration-500 md:max-w-[480px]",children:e.img&&(0,a.jsx)(c.E,{src:e.img.src,alt:e.img.alt,aspectRatio:1})})}),(0,a.jsxs)("div",{className:"invisible",children:[(0,a.jsx)(o.Z,{variant:"h3",withMargin:!0,className:"text-blue",children:e.heading}),e.text&&(0,a.jsx)(d.L,{html:e.text}),(0,a.jsx)(n.LZ,{className:"hidden md:block"})]})]})]},l))})}),(0,a.jsx)("div",{children:x.map((e,l)=>(0,a.jsxs)("div",{children:[(0,a.jsx)(n.LZ,{}),(0,a.jsxs)(n.rj,{children:[(0,a.jsx)("div",{className:"md:pointer-events-none md:opacity-0",children:e.img&&(0,a.jsx)("div",{className:"max-w-[320px] md:max-w-[480px]",children:(0,a.jsx)(c.E,{src:e.img.src,alt:e.img.alt,aspectRatio:1})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(o.Z,{variant:"h3",withMargin:!0,className:"text-blue",children:e.heading}),e.text&&(0,a.jsx)(d.L,{html:e.text}),(0,a.jsx)(n.LZ,{className:"hidden md:block"})]})]}),(0,a.jsx)(U.h,{bottomOffset:0,onEnter:f(l),onLeave:j(l)})]},l))})]})]})})};var H=t(9324);let Y=e=>{let{heading:l,text:t,caption:s,img:i,href:m,linkText:x="Read more",controls:h=!1,...p}=e;return(0,a.jsx)("div",{...p,children:(0,a.jsxs)(n.rj,{cols:{_:1,md:i?2:3},children:[i&&(0,a.jsx)("div",{className:"max-w-[240px] transition-opacity duration-300 group-data-[hidden]:opacity-0 sm:max-w-[360px] md:max-w-none",children:(0,a.jsx)(H.rU,{href:m,linkText:x,children:(0,a.jsx)(c.E,{src:i.src,alt:i.alt,aspectRatio:9/7,fit:"cover"})})}),(0,a.jsxs)("div",{className:(0,r.cn)(!i&&"col-span-1 md:col-span-2"),children:[(l||h)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.kC,{className:"items-center justify-between group-data-[hidden]:opacity-0",children:[l?(0,a.jsx)(o.Z,{variant:"h6",component:"h3",className:"text-blue",trim:!0,children:l}):(0,a.jsx)("span",{}),h&&(0,a.jsxs)("div",{className:"flex items-center justify-end gap-3 group-data-[hidden]:opacity-0",children:[(0,a.jsx)(y,{}),(0,a.jsx)(w,{})]})]}),(0,a.jsx)(n.LZ,{size:"sm"})]}),(0,a.jsxs)("div",{className:"transition-opacity duration-300 group-data-[hidden]:opacity-0",children:[(0,a.jsx)(H.rU,{href:m,linkText:x,children:(0,a.jsx)(o.Z,{variant:"quote",withMargin:"h4",className:"text-blue",children:t})}),s&&(0,a.jsx)(d.L,{html:s,paragraphSize:"sm"}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.LZ,{size:"sm",className:"md:hidden"}),(0,a.jsx)(M.z,{variant:"tertiary",size:"lg",asChild:!0,className:"md:hidden",children:(0,a.jsxs)(z.r,{href:m,children:[x||"Read more",(0,a.jsx)(u.J,{name:"arrow-right",text:!0,className:"ml-2"})]})})]})]})]})]})})},X=e=>
1{let{anchor:l,heading:t,text:s,items:r=[],whiteBackground:o=!1,className:d,...c}=e,m=l&&l.visible?l.text:t,x=e=>{let{track:l,slides:t}=e;if(l.details){let{abs:e,slides:a}=l.details;a.forEach((l,a)=>{let s=t[a];l.abs!==e?s.setAttribute("data-hidden",""):s.removeAttribute("data-hidden")})}};return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:"".concat(o?"bg-white":""," ").concat(d),...c,children:(0,a.jsxs)(i.W,{children:[r.length>1?(0,a.jsx)(S,{options:{loop:!0,drag:!1,slides:{perView:1}},onLoad:x,onChange:x,children:(0,a.jsx)(k,{children:(0,a.jsx)("div",{className:"relative",children:r.map(e=>(0,a.jsx)(C,{className:"group !transform-none data-[hidden]:pointer-events-none data-[hidden]:absolute data-[hidden]:inset-0",children:(0,a.jsx)(Y,{heading:m,controls:!0,...e})},e.id))})})}):(0,a.jsx)(Y,{...r[0]}),(0,a.jsx)(n.LZ,{})]})})},K=e=>{let{heading:l,text:t=""}=e;return(0,a.jsxs)("div",{className:"border-t border-blue py-6 md:py-8",children:[l&&(0,a.jsx)(o.Z,{variant:"h5",className:"-mt-1 text-blue",withMargin:!0,children:l}),t&&(0,a.jsx)(d.L,{html:t})]})},$=e=>{let{items:l=[]}=e;return(0,a.jsx)("div",{className:"border-b border-blue",children:l.length>0&&l.map((e,l)=>(0,a.jsx)(K,{...e},l))})};$.displayName="AcoListingTable";let ee=e=>{let{anchor:l,heading:t,largeHeading:s=!1,text:r,items:c,className:m,...x}=e;return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:m,...x,children:(0,a.jsx)(i.W,{children:(0,a.jsxs)(n.rj,{children:[(0,a.jsxs)("div",{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),(0,a.jsx)(o.Z,{variant:s?"h2":"h3",component:l&&l.visible?"p":"h3",className:"max-w-xl text-blue",children:t}),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.LZ,{size:"sm"}),(0,a.jsx)(d.L,{html:r})]})]}),(0,a.jsx)($,{items:c})]})})})},el=e=>{let{src:l,title:t,layout:s="full",className:r,...o}=e;return"fullBleed"===s?(0,a.jsx)(n.gO,{padding:"none",className:r,...o,children:(0,a.jsx)(i.W,{variant:"full",children:(0,a.jsx)(E,{type:"video",src:l,alt:t,variant:"landscape"})})}):(0,a.jsx)(n.gO,{className:r,...o,children:(0,a.jsx)(i.W,{children:(0,a.jsx)(E,{type:"video",src:l,alt:t,variant:"landscape"})})})},et=e=>{let{title:l,description:t,link:s,className:r=""}=e;return(0,a.jsxs)("div",{className:"border-b-[1.4px] border-blue pb-8 pt-[2.25rem] first:border-t md:pb-8 md:pt-10 lg:py-[64px] ".concat(r),children:[(0,a.jsx)(o.Z,{variant:"h4",className:"text-blue",children:l}),(0,a.jsx)(o.Z,{className:"mt-4 max-w-[35.75rem] xl:text-[29px]",variant:"text-lg",children:t}),(null==s?void 0:s.label)&&(0,a.jsx)(z.r,{href:s.target,underline:"always",className:"mt-[2rem] block font-sans text-base font-normal text-blue lg:text-[24px]",children:s.label})]})},ea={TOP:"pt-[34px]",BOTTOM:"md:pb-[0]",GRID_GAP:"!gap-y-0 gap-x-[80px]",TILE_BOTTOM:"lg:pb-[100px]"},es={MOBILE:"max-w-[290px]",TABLET:"md:max-w-[500px]",DESKTOP:"lg:max-w-[56rem]",XL:"xl:max-w-[48rem]",XXL:"2xl:max-w-[80rem]"},er=e=>{let{tile:l,index:t,image:n}=e;return(0,a.jsxs)(s.Fragment,{children:[1===t&&(0,a.jsx)("div",{className:"relative hidden border-b border-blue lg:block",children:(0,a.jsx)(c.E,{className:"absolute bottom-[76px] left-0 h-[588px] w-[960px] xl:h-[638px] 2xl:h-[642px]",width:n.width||960,height:n.height||638,src:n.src,alt:n.alt,loading:"lazy",sizes:"(min-width: 1024px) 960px, 100vw"})}),(0,a.jsx)(et,{title:l.title,description:l.description,link:{label:l.link.label,target:l.link.target},className:(0,r.cn)(0===t&&ea.TILE_BOTTOM)})]},l.id||t)},en=e=>{let{tiles:l=[],image:t,heading:d="Ways to call Assemble home.",className:m,...x}=e,u=(0,s.useMemo)(()=>{if(!l||0===l.length)return(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"No tiles provided"});try{return l.map((e,l)=>(0,a.jsx)(er,{tile:e,index:l,image:t},e.id||"tile-".concat(l)))}catch(e){return console.error("Error rendering tiles:",e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading content"})}},[l,t]);return l&&0!==l.length?t&&t.src?(0,a.jsxs)(n.gO,{className:(0,r.cn)("overflow-hidden",ea.TOP,ea.BOTTOM,m),...x,children:[(0,a.jsxs)(i.W,{variant:"wide",className:"relative",children:[(0,a.jsx)(o.Z,{variant:"h2-lg",className:(0,r.cn)("relative z-[1] font-[500] leading-[82%] text-blue",es.MOBILE,es.TABLET,es.DESKTOP,es.XL,es.XXL),id:"home-intro-heading",children:d}),(0,a.jsx)("div",{className:(0,r.cn)("mx-auto mt-[-14px] px-6 md:px-8 lg:hidden","max-w-[640px]"),children:(0,a.jsx)(c.E,{className:"h-full w-full pb-[60%]",src:t.src,alt:t.alt,loading:"lazy"})})]}),(0,a.jsxs)(i.W,{children:[(0,a.jsx)(n.rj,{cols:{_:1,lg:2},className:(0,r.cn)("mt-10 md:mt-12 lg:mt-[278px]","max-w-[1260px]",ea.GRID_GAP),children:u}),(0,a.jsx)(n.LZ,{})]})]}):(console.warn("BlockHomeIntro: No image provided"),null):(console.warn("BlockHomeIntro: No tiles provided"),null)},ei=e=>{let{index:l=0,heading:t,items:r,className:i="",...d}=e,c=(0,s.useMemo)(()=>{try{return r.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)(n.kC,{className:"items-center !gap-x-3",children:[(0,a.jsx)(o.Z,{variant:"text-md",component:"p",className:"inline-block w-[24px] text-center !font-sans text-blue",children:e.number}),(0,a.jsx)(o.Z,{variant:"text-lg",component:"p",className:"inline-block !font-sans",children:e.text})]})},e.number))}catch(e){return console.error("Error rendering card item:",e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading content"})}},[r]);return(0,a.jsxs)("div",{className:"border-b border-blue ".concat(i," ").concat(0===l&&"border-t"),...d,children:[(0,a.jsx)(n.LZ,{size:"sm"}),(0,a.jsx)(o.Z,{variant:"h4",component:"h3",className:"pb-8 text-blue xl:!text-display-lg",children:t}),(0,a.jsx)("ul",{className:"flex flex-col gap-y-1",children:c}),(0,a.jsx)(n.LZ,{size:"sm"})]})},eo=e=>{let{anchor:l,heading:t="",largeHeading:r=!1,cards:d,image:m,className:x="",...u}=e,h=(0,s.useMemo)(()=>{try{return d.map((e,l)=>(0,a.jsx)(ei,{index:l,heading:e.heading,items:e.items},l))}catch(e){return console.error("Error rendering card:",e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading card"})}},[d]);return(0,a.jsxs)(n.gO,{id:null==l?void 0:l.id,className:"".concat(x),...u,children:[(0,a.jsxs)(i.W,{className:"pb-0",children:[l&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),t&&(0,a.jsx)(o.Z,{variant:r?"h2":"h3",component:l&&l.visible?"p":"h3",className:"max-w-lg text-blue",children:t})]}),(0,a.jsx)(i.W,{children:(0,a.jsx)(n.gO,{className:"!pb-0 xl:!pt-20",children:(0,a.jsxs)(n.rj,{className:"xl:gap-[5rem]",children:[(0,a.jsx)("div",{children:h}),(0,a.jsx)("div",{children:(0,a.jsx)(c.E,{src:m.src,alt:m.alt,width:720,height:814,className:"max-h-[822px]"})})]})})})]})};t(16997);let ed=e=>{var l,t;let{images:r,initialIndex:n=0,onImageChange:i,className:o="",keenOptions:d={}}
1=e,[m,x]=(0,s.useState)(n),h={initial:n,slides:{perView:1,spacing:0},loop:!0,dragSpeed:.8,slideChanged(e){let l=e.track.details.rel;x(l),null==i||i(l)},...d},p=!1!==h.loop,v=m===r.length-1,g=!p&&0===m,f=!p&&v,[b,N]=(0,j.E)(h,[]);return r.length?(r[m],(0,a.jsxs)("div",{className:"image-slider flex flex-col gap-3 ".concat(o),children:[(0,a.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,a.jsx)("div",{ref:b,className:"keen-slider",children:r.map((e,l)=>(0,a.jsx)("div",{className:"keen-slider__slide w-full",children:(0,a.jsx)("div",{className:"aspect-[3/2] w-full",children:(0,a.jsx)(c.E,{src:e.src,alt:e.alt,className:"h-full w-full select-none object-cover",draggable:!1,sizes:"(max-width: 768px) 100vw, 100vw",quality:100})})},l))})}),(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 px-3 md:px-0 md:pr-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 space-y-1 md:min-h-[140px] lg:min-h-[100px]",children:[(null===(l=r[m])||void 0===l?void 0:l.caption)&&!1,(null===(t=r[m])||void 0===t?void 0:t.credit)&&!1]}),r.length>1&&(0,a.jsxs)("div",{className:"flex flex-row items-start gap-2 py-0",children:[(0,a.jsx)(z.r,{href:"#",underline:"never",onClick:()=>{if(!g){var e;null===(e=N.current)||void 0===e||e.prev()}},asButton:!0,className:"".concat(g?"cursor-not-allowed text-gray-400":"text-blue"),children:(0,a.jsx)(u.J,{name:"arrow-left",text:!0,className:"h-5 w-5 ".concat(g?"text-gray-400":"text-blue")})}),(0,a.jsx)(z.r,{href:"#",underline:"never",onClick:()=>{if(!f){var e;null===(e=N.current)||void 0===e||e.next()}},asButton:!0,className:"".concat(f?"cursor-not-allowed text-gray-400":"text-blue"),children:(0,a.jsx)(u.J,{name:"arrow-right",text:!0,className:"h-5 w-5 ".concat(f?"text-gray-400":"text-blue")})})]})]})]})):null};var ec=t(3758);let em=ec.fC,ex=ec.xz,eu=e=>{let{className:l,...t}=e;return(0,a.jsx)(ec.h_,{className:(0,r.cn)(l),...t})};eu.displayName=ec.h_.displayName;let eh=s.forwardRef((e,l)=>{let{className:t,...s}=e;return(0,a.jsx)(ec.aV,{ref:l,className:(0,r.cn)("fixed inset-0 z-[200] bg-white/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...s})});eh.displayName=ec.aV.displayName;let ep=s.forwardRef((e,l)=>{let{className:t,children:s,largeIcon:n=!1,...i}=e;return(0,a.jsxs)(eu,{children:[(0,a.jsx)(eh,{}),(0,a.jsxs)(ec.VY,{ref:l,className:(0,r.cn)("fixed left-[50%] top-[50%] z-[200] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t),...i,children:[s,(0,a.jsxs)(ec.x8,{className:"focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 roun
1ded-sm ring-offset-stone-50 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none",children:[(0,a.jsx)(u.J,{name:"cross",className:(0,r.cn)(n?"h-8 w-8 text-blue":"h-6 w-6 text-blue")}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});ep.displayName=ec.VY.displayName,s.forwardRef((e,l)=>{let{className:t,...s}=e;return(0,a.jsx)(ec.Dx,{ref:l,className:(0,r.cn)("mb-3 text-display-md font-semibold leading-none tracking-tight",t),...s})}).displayName=ec.Dx.displayName,s.forwardRef((e,l)=>{let{className:t,...s}=e;return(0,a.jsx)(ec.dk,{ref:l,className:(0,r.cn)("text-muted-foreground text-sm",t),...s})}).displayName=ec.dk.displayName;let ev=e=>{let{index:l=0,title:t,description:r,list:c,buttons:m,images:x,className:h="",...p}=e,[v,g]=(0,s.useState)(!1),[f,j]=(0,s.useState)(""),b=(0,s.useMemo)(()=>{try{return m.map((e,l)=>{var t,s,r;let n=0===l,i=1===l;return n?n&&(0,a.jsx)(z.r,{...e,children:(0,a.jsx)(M.z,{className:"2xl:text-2xl",...e})},null!==(r=e.id)&&void 0!==r?r:l):"View 3D tour"===e.children?(0,a.jsxs)("button",{onClick:()=>{let l=(null==e?void 0:e.href)||"";j(l),g(!0)},className:"group font-sans text-blue underline 2xl:text-2xl",children:[e.children,i&&(0,a.jsx)(u.J,{name:"arrow-right",text:!0,className:"ml-2 transition-transform duration-300 group-hover:translate-x-1/4"})]},null!==(t=e.id)&&void 0!==t?t:l):(0,a.jsxs)(z.r,{underline:"always",...e,className:"group font-sans text-blue 2xl:text-2xl",children:[e.children,i&&(0,a.jsx)(u.J,{name:"arrow-right",text:!0,className:"ml-2 transition-transform duration-300 group-hover:translate-x-1/4"})]},null!==(s=e.id)&&void 0!==s?s:l)})}catch(e){return console.error("Error rendering buttons:",e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading buttons"})}},[m]),N=(0,s.useMemo)(()=>{try{return c.map((e,l)=>{let t=0===l;return(0,a.jsx)(d.L,{html:e,paragraphSize:"lg",className:"border-b border-[#d9d9d9] py-4 prose-p:font-sans ".concat(t&&"border-t")},l)})}catch(e){return console.error("Error rendering buttons:",e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading buttons"})}},[c]),w=x.map(e=>({alt:e.image.alt,caption:e.caption,credit:e.credit,src:e.image.src})),y=(0,s.useRef)(null);return(0,s.useEffect)(()=>{function e(){if(y.current){let e=y.current.getBoundingClientRect();document.documentElement.style.setProperty("--container-margin-left","".concat(e.left,"px"))}}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.jsxs)("div",{className:"overflow-hidden border-b border-blue ".concat(0===l&&"border-t"," ").concat(h),...p,children:[(0,a.jsx)(i.W,{ref:y}),(0,a.jsx)(n.gO,{className:"!pt-0 pb-20 pl-[--container-margin-left]",children:(0,a.jsx)(i.W,{className:"ml-0 max-w-[1648px] px-0 md:pr-0",variant:"wide",children:(0,a.jsxs)(n.kC,{className:"flex-col-reverse justify-between gap-0 md:flex-row",children:[(0,a.jsx)("div",{className:"px-3 md:px-0",children:(0,a.jsxs)(n.gO,{className:"!pb-0",children:[(0,a.jsx)(o.Z,{variant:"h3-lg",className:"text-blue",component:"h2",children:t}),(0,a.jsx)(n.LZ,{size:"lg"}),(0,a.jsx)(o.Z,{variant:"display-xs",className:"max-w-lg !leading-relaxed",children:r}),(0,a.jsx)(n.LZ,{size:"xs"}),(0,a.jsx)(n.kC,{className:"flex-col !gap-y-0",children:N}),(0,a.jsx)(n.LZ,{size:"sm"}),(0,a.jsx)(n.kC,{className:"flex-col items-start xl:flex-row xl:items-center xl:gap-x-6",children:b})]})}),(0,a.jsxs)("div",{className:"col-span-5",children:[(0,a.jsx)(ed,{images:w,className:"max-h-[558px] w-screen md:max-w-[400px] lg:max-w-[690px]"}),(0,a.jsx)(n.LZ,{size:"md"})]})]})})}),(0,a.jsx)(em,{open:v,onOpenChange:g,children:(0,a.jsx)(ep,{className:"m-0 h-screen max-h-none w-screen max-w-none p-12",children:f&&(0,a.jsx)("div",{className:"h-full w-full",children:(0,a.jsx)("iframe",{allow:"autoplay; fullscreen; web-share; xr-spatial-tracking",allowFullScreen:!0,className:"h-full w-full border-0",loading:"lazy",src:f,title:"3D Tour"})})})})]})},eg=e=>{let{items:l,className:t="",...r}=e,i=(0,s.useMemo)(()=>{try{return l.map((e,l)=>{var t;
1return(0,a.jsx)(ev,{index:l,title:e.title,description:e.description,list:e.list,buttons:e.buttons,images:e.images},null!==(t=e.id)&&void 0!==t?t:l)})}catch(e){return console.error("Error rendering typology cards:",e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading buttons"})}},[l]);return(0,a.jsx)(n.kC,{...r,className:"flex-col ".concat(t," !gap-0"),children:i})},ef=e=>{let{index:l=0,heading:t,items:r,className:i="",...d}=e,m=(0,s.useMemo)(()=>{try{return r.map((e,l)=>(0,a.jsxs)("li",{className:"flex items-center gap-x-3",children:[(0,a.jsx)(c.E,{src:e.icon,alt:"",className:"h-6 w-6"}),(0,a.jsx)(o.Z,{variant:"text-lg",className:"!font-sans !leading-none",children:e.text})]},l))}catch(e){return console.error(e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading text items"})}},[r]);return(0,a.jsxs)(n.gO,{className:"border-b border-blue !py-[30px] ".concat(i," ").concat(0===l&&"border-t"),...d,children:[(0,a.jsx)(o.Z,{variant:"h5",className:"mb-5 text-blue",children:t}),(0,a.jsx)("ul",{className:"flex flex-col gap-y-4 pb-2",children:m})]})},ej=e=>{let{anchor:l,heading:t,text:r,cards:c,className:m="",...x}
1=e,[h,p]=(0,s.useState)(!1),v=(0,s.useMemo)(()=>{try{return c.map((e,l)=>(0,a.jsx)(ef,{index:l,heading:e.heading,items:e.items},l))}catch(e){return console.error(e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading cards"})}},[c]),g=[];c.forEach(e=>g.push(...e.items));let f=g.length>8;return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:"bg-white xl:py-20 ".concat(m),...x,children:(0,a.jsx)(i.W,{children:(0,a.jsxs)(n.rj,{cols:{_:1,lg:2},children:[(0,a.jsxs)("div",{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h2",withMargin:"h3",className:"text-blue",children:l.text}),(0,a.jsx)(o.Z,{variant:"h3",component:"p",className:"mb-4 max-w-xl text-blue md:mb-5 xl:mb-6",children:t})]}),(0,a.jsxs)("div",{className:"lg:max-w-[45.25rem]",children:[r&&(0,a.jsx)(d.L,{html:r,className:"mb-8"}),(0,a.jsx)("div",{className:"overflow-hidden transition-all duration-200 ease-in-out ".concat(h?"max-h-full":"max-h-[30.5rem] md:max-h-[32rem] lg:max-h-[32rem]"),children:c&&v}),f&&(0,a.jsxs)("div",{className:"relative pt-6",children:[(0,a.jsx)("span",{className:"absolute left-0 top-0 -mt-6 h-6 w-full bg-gradient-to-b from-transparent via-white to-white transition-opacity duration-200 ease-in-out md:-mt-8 xl:-mt-6 ".concat(h?"opacity-0":"opacity-50")}),(0,a.jsxs)("button",{type:"button",onClick:()=>{h?p(!1):p(!0)},className:"flex cursor-pointer items-center gap-[10px] border-0 bg-none p-0 font-sans text-blue underline hover:decoration-[0.1em] xl:text-2xl",children:[(0,a.jsxs)("span",{children:["Read ",h?"less":"more"]}),!h&&(0,a.jsx)(u.J,{name:"plus",className:"h-[18px] w-[18px]"}),h&&(0,a.jsx)(u.J,{name:"minus",className:"h-[18px] w-[18px]"})]})]})]})]})})})},eb=e=>{let{anchor:l,heading:t,largeHeading:s=!1,src:r,text:c,className:m,...x}=e;return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:m,...x,children:(0,a.jsxs)(i.W,{children:[l&&l.visible&&(0,a.jsx)(o.Z,{variant:"h6",component:"h3",withMargin:!0,className:"text-blue",children:l.text}),t&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(o.Z,{variant:s?"h2":"h3",component:l&&l.visible?"p":"h3",className:"max-w-[400px] text-blue md:max-w-[550px] xl:max-w-[700px]",children:t})}),r&&(0,a.jsx)("div",{className:"relative mb-6 mt-6 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,a.jsx)("iframe",{allow:"autoplay; fullscreen; web-share; xr-spatial-tracking",allowFullScreen:!0,className:"h-[750px] min-h-[750px] w-full",loading:"lazy",src:r,title:"matterport.com embed"})}),c&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(d.L,{html:c})})]})})},eN=e=>{let{anchor:l,heading:t,largeHeading:r,link:d={href:"",children:""},logos:m=[],className:x="",...u}=e,h=(0,s.useMemo)(()=>{try{return m.map((e,l)=>{var t;let s=Array.isArray(e.logoLink)&&e.logoLink.length>0&&(null===(t=e.logoLink[0])||void 0===t?void 0:t.href)&&""!==e.logoLink[0].href,r=e.image[0];return s?(0,a.jsx)(z.r,{href:e.logoLink[0].href,className:"relative w-full flex-auto shrink-0 overflow-hidden md:w-auto",children:(0,a.jsx)(c.E,{src:r.url,alt:r.alt,width:250,height:50,fit:"contain",innerProps:{className:""},className:"w-full flex-auto md:w-auto"},l)}):(0,a.jsx)(c.E,{src:r.url,alt:r.alt,width:250,height:50,fit:"contain",innerProps:{className:""},className:"w-full flex-auto md:w-auto"},l)})}catch(e){return console.error("Error rendering image:",e),(0,a.jsx)("div",{className:"col-span-full text-center text-red-500",children:"Error loading image"})}},[m]);return(0,a.jsx)(n.gO,{id:null==l?void 0:l.id,className:"bg-white xl:!py-20 ".concat(x),...u,children:(0,a.jsx)(i.W,{children:(0,a.jsxs)(n.rj,{cols:{_:1,lg:2},className:"items-center",children:[(0,a.jsxs)("div",{children:[l&&(0,a.jsx)(o.Z,{variant:"h6",component:"h2",withMargin:"h3",className:"text-blue",children:l.text}),(0,a.jsx)(o.Z,{variant:r?"h2":"h3",component:l&&l.visible?"p":"h3",className:"mb-4 max-w-xl text-blue md:mb-5 xl:mb-6",children:t}),d.href&&(0,a.jsx)(z.r,{href:d.href,underline:"always",className:"font-sans text-blue lg:text-[24px]",children:d.children})]}),(0,a.jsx)("div",{className:"flex justify-center overflow-hidden",children:m&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(n.kC,{className:"w-fit flex-nowrap justify-center gap-4 xl:gap-4",children:h})})})]})})})};var ew=t(50839),ey=t(50746),ek=t(30298),eC=t(58504),eS=t(69917),eZ=t(62691);let eL=e=>{let{propertyName:l="Swift Walk Kensington",apartmentFinder:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed right-0 flex items-center justify-end p-5 xl:p-8",children:(0,a.jsx)(eS.uh,{className:"text-white",showLabel:!0,smallIcon:!0})}),(0,a.jsxs)(eZ.g,{className:"w-full xl:py-8",children:[(0,a.jsx)(i.W,{className:"mb-8 md:px-8",children:(0,a.jsx)(o.Z,{variant:"h3",withMargin:"h3",className:"pr-16 text-blue",children:null==t?void 0:t.t
1itle})}),(0,a.jsx)(i.W,{className:"rendReduced flex flex-col gap-8 md:px-8",children:(null==t?void 0:t.content)&&(0,a.jsx)(d.L,{html:t.content.renderHtml,paragraphSize:"md"})})]})]})},eF=e=>{let{title:l,buttonText:t,image1:r,image2:n,projectData:d,apartmentFinder:m}=e,x=(0,eC.useRouter)(),[h,p]=(0,s.useState)("initial"),[v,g]=(0,s.useState)(!1),f={min:6e4,max:2e5,step:1e3,defaultValue:6e4},[j,b]=(0,s.useState)((()=>{{let e=document.cookie.split(";").reduce((e,l)=>{let[t,a]=l.trim().split("=");return e[t]=decodeURIComponent(a),e},{}).apartmentFinderForm;if(e)try{let l=JSON.parse(e);return(null==d?void 0:d.slug)&&(null==d?void 0:d.name)&&(l.projectSlug=d.slug,l.projectName=d.name),l}catch(e){console.error("Error parsing saved form data:",e)}}return{household:"",children:"",payRent:"",income:f.defaultValue,projectSlug:(null==d?void 0:d.slug)||"",projectName:(null==d?void 0:d.name)||""}})()),[N,w]=(0,s.useState)(!0);(0,s.useEffect)(()=>{if((null==d?void 0:d.slug)&&(null==d?void 0:d.name)){let e={...j,projectSlug:d.slug,projectName:d.name};b(e),k(e)}},[null==d?void 0:d.slug,null==d?void 0:d.name]),(0,s.useEffect)(()=>{N&&(j.household&&j.children?p("step1"):j.household&&p("step1"),w(!1))},[j.household,j.children,N]);let{control:y}=(0,ey.cI)({defaultValues:{household:j.household,children:j.children,payRent:j.payRent,income:j.income,projectSlug:j.projectSlug,projectName:j.projectName}}),k=e=>{{let l=JSON.stringify(e),t=new Date;t.setDate(t.getDate()+30),document.cookie="apartmentFinderForm=".concat(encodeURIComponent(l),"; expires=").concat(t.toUTCString(),"; path=/; SameSite=Lax"),document.cookie.split(";").reduce((e,l)=>{let[t,a]=l.trim().split("=");return e[t]=decodeURIComponent(a),e},{})}},C=()=>{k(j),document.cookie,setTimeout(()=>{x.push("/apartment-finder-result")},50)};return(0,a.jsxs)(eS.dy,{open:v,onOpenChange:g,children:[(0,a.jsx)("div",{className:"bg-blue",children:(0,a.jsx)(i.W,{variant:"full",children:(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-x-0 gap-y-5 sm:gap-x-10 sm:gap-y-2xl",children:[(0,a.jsxs)("div",{className:"order-2 col-span-4 px-3 pt-3 sm:order-1 sm:col-span-3",children:[(0,a.jsx)(o.Z,{variant:"h2",className:"text-white sm:py-2",children:"Find your apartment at"}),(0,a.jsx)(o.Z,{variant:"h2",className:"text-white sm:py-2",children:l})]}),(0,a.jsx)("div",{className:"order-1 col-span-3 col-start-3 sm:order-2 sm:col-span-1",children:(0,a.jsx)(c.E,{src:r.src,alt:r.alt,width:r.width,height:r.height,aspectRatio:3/4,fit:"cover",position:"0% 0%",className:"min-h-full w-full"})}),(0,a.jsx)("div",{className:"order-4 col-span-3 sm:order-3 sm:col-span-2",children:(0,a.jsx)(c.E,{src:n.src,width:n.width,height:n.height,alt:n.alt,aspectRatio:3/4,fit:"cover",position:"0% 0%",className:"min-h-full w-full"})}),(0,a.jsx)("div",{id:"apartment-finder-description",className:"order-3 col-span-4 max-w-[93%] px-3 pr-3 sm:order-4 sm:col-span-2 sm:max-w-[800px] sm:pb-6 sm:pr-10",children:(()=>{switch(h){case"initial":return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-6 flex max-w-[680px] flex-col gap-6 text-lg sm:mb-20",children:[(0,a.jsx)("p",{className:"Typography font-serif font-normal tracking-snug text-white md:text-xl xl:text-2xl",children:"Answer a few quick questions and say goodbye to the rental guesswork. Tell us your household composition and total household income."}),(0,a.jsxs)("p",{className:"Typography font-serif font-normal tracking-snug text-white md:text-xl xl:text-2xl",children:["We'll match you with high-quality apartments that fit your budget. This will include"," ",(0,a.jsx)(eS.Qz,{asChild:!0,children:(0,a.jsx)("span",{className:"cursor-pointer underline hover:no-underline",children:"reduced rent options"})})," ","if you're eligible."]})]}),(0,a.jsxs)(M.z,{variant:"tertiary",size:"md",onClick:()=>p("step1"),className:"no-underline decoration-blue hover:underline",children:[t,(0,a.jsx)(u.J,{name:"arrow-right",text:!0,className:"ml-2 transition-transform duration-300 group-hover:translate-x-1/4"})]})]});case"step1":return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"step-1",children:[(0,a.jsxs)(o.Z,{variant:"text-xs",className:"mb-6 max-w-[535px] !text-[20px] text-white",children:["Tell us your household size. We'll match you with apartments that fit, and check if you qual
1ify for"," ",(0,a.jsx)(eS.Qz,{asChild:!0,children:(0,a.jsx)("span",{className:"cursor-pointer underline hover:no-underline",children:"reduced rent"})}),"."]}),(0,a.jsx)(o.Z,{variant:"h5",className:"mb-6 text-white",children:"My household includes"}),(0,a.jsx)(ey.Qr,{name:"household",control:y,rules:{required:!0},render:e=>{let{field:l}=e;return(0,a.jsx)(ew.E,{...l,id:"household",value:j.household,onChange:e=>{let t={...j,household:e};b(t),l.onChange(e),k(t)},invert:!0,largeLabel:!0,required:!0,options:["1 adult","2 adults","3+ adults"]})}}),(0,a.jsx)(o.Z,{variant:"h5",className:"mb-6 text-white",children:"with"}),(0,a.jsx)(ey.Qr,{name:"children",control:y,rules:{required:!0},render:e=>{let{field:l}=e;return(0,a.jsx)(ew.E,{...l,id:"children",value:j.children,onChange:e=>{let t={...j,children:e};b(t),l.onChange(e),k(t)},invert:!0,largeLabel:!0,required:!0,options:["no children","1 child","2 children","3+ children"]})}}),(0,a.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,a.jsxs)(z.r,{href:"#",underline:"never",className:"text-white",asButton:!0,onClick:()=>p("initial"),children:[(0,a.jsx)(u.J,{name:"caret",text:!0,className:"mr-2 rotate-[90deg] scale-75"}),"Back"]}),(0,a.jsxs)(z.r,{href:"#",underline:"never",className:"text-white ".concat(j.household&&j.children?"":"cursor-not-allowed opacity-50"),asButton:!0,onClick:()=>{j.household&&j.children&&p("step2")},children:["Next",(0,a.jsx)(u.J,{name:"caret",text:!0,className:"ml-2 rotate-[-90deg] scale-75"})]})]})]})});case"step2":return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"step-2",children:[(0,a.jsxs)(o.Z,{variant:"text-xs",className:"mb-6 max-w-[535px] !text-[20px] text-white",children:["Sharing your income helps us match you with apartments that fit your budget, and display"," ",(0,a.jsx)(eS.Qz,{asChild:!0,children:(0,a.jsx)("span",{className:"cursor-pointer underline hover:no-underline",children:"reduced rent"})})," ","if you qualify."]}),(0,a.jsx)(o.Z,{variant:"h5",className:"mb-6 text-white",children:"I plan to pay rent"}),(0,a.jsx)(ey.Qr,{name:"payRent",control:y,rules:{required:!0},render:e=>{let{field:l}=e;return(0,a.jsx)(ew.E,{...l,id:"payRent",value:j.payRent,onChange:e=>{let t={...j,payRent:e};b(t),l.onChange(e),k(t)},invert:!0,largeLabel:!0,required:!0,options:["Using my income","Another way"]})}}),(0,a.jsx)(o.Z,{variant:"h5",className:"mb-6 text-white",children:"My total household income is"}),(0,a.jsx)("div",{className:"custom-income-slider p-10 px-0 sm:px-0",children:(0,a.jsx)(ey.Qr,{name:"income",control:y,rules:{required:!0},render:e=>{let{field:l}=e;return(0,a.jsx)(ek.i,{...l,id:"income",value:[j.income],defaultValue:[f.defaultValue],max:f.max,min:f.min,minSelectable:f.min,onValueChange:e=>{let t={...j,income:e[0]};b(t),l.onChange(e[0]),k(t)},onValueCommit:e=>{let t={...j,income:e[0]};b(t),l.onChange(e[0]),k(t)},selectableMax:f.max,step:f.step,invert:!0,valueMetadata:(()=>{let e=[];for(let l=f.min;l<=f.max;l+=f.step)e.push({onTimeline:l===f.min||l===f.max,thumbLabel:l===f.min?"$60,000 or less":l===f.max?"$200,000 or more":"$".concat(l.toLocaleString()),value:l});return e})()})}})}),(0,a.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,a.jsxs)(z.r,{href:"#",underline:"never",className:"text-white",asButton:!0,onClick:()=>p("step1"),children:[(0,a.jsx)(u.J,{name:"caret",text:!0,className:"mr-2 rotate-[90deg] scale-75"}),"Back"]}),(0,a.jsxs)(z.r,{href:"#",underline:"never",className:"text-white ".concat(j.payRent&&j.income?"":"cursor-not-allowed opacity-50"),asButton:!0,onClick:()=>{j.payRent&&j.income&&C()},children:["Show apartments",(0,a.jsx)(u.J,{name:"caret",text:!0,className:"ml-2 rotate-[-90deg] scale-75"})]})]})]})});default:return null}})()})]})})}),(0,a.jsx)(eS.sc,{className:"max-w-full md:max-w-[900px]",children:(0,a.jsx)(eL,{propertyName:(null==d?void 0:d.name)||"",apartmentFinder:m})})]})};var eE=t(1260);let eA=e=>{let{value:l,onChange:t,open:r,onOpenChange:n,trigger:i,className:d=""}
1=e,[c,m]=(0,s.useState)(!1),[x,h]=(0,s.useState)(new Date),p=void 0!==r,v=p?n:m,g=e=>{let l=e.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"});null==t||t(l),null==v||v(!1)},f=e=>{let l=e.getFullYear(),t=e.getMonth(),a=new Date(l,t,1);return{daysInMonth:new Date(l,t+1,0).getDate(),startingDayOfWeek:a.getDay()}},j=e=>e.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}),b=e=>l&&j(e)===l,N=e=>e<new Date;return(0,a.jsxs)(em,{open:p?r:c,onOpenChange:v,children:[(0,a.jsx)(ex,{asChild:!0,children:i}),(0,a.jsx)(ep,{className:"rounded-lg bg-white p-6",children:(0,a.jsxs)("div",{className:"space-y-4 pt-4",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,a.jsx)(o.Z,{variant:"h4",className:"text-blue",children:x.toLocaleDateString("en-GB",{month:"long",year:"numeric"})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("button",{onClick:()=>h(new Date(x.getFullYear(),x.getMonth()-1)),className:"rounded p-2 hover:bg-gray-100",children:(0,a.jsx)(u.J,{name:"caret",text:!0,className:"h-6 w-6 rotate-90 text-blue"})}),(0,a.jsx)("button",{onClick:()=>h(new Date(x.getFullYear(),x.getMonth()+1)),className:"rounded p-2 hover:bg-gray-100",children:(0,a.jsx)(u.J,{name:"caret",text:!0,className:"h-6 w-6 -rotate-90 text-blue"})})]})]}),(0,a.jsx)("div",{className:"mb-4 grid grid-cols-7 gap-1",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(e=>(0,a.jsx)("div",{className:"p-2 text-center text-sm font-medium text-gray-500",children:e},e))}),(0,a.jsx)("div",{className:"grid grid-cols-7 gap-1",children:(()=>{let{daysInMonth:e,startingDayOfWeek:l}=f(x),t=[];for(let e=0;e<l;e++)t.push((0,a.jsx)("div",{className:"p-2"},"empty-".concat(e)));for(let l=1;l<=e;l++){let e=new Date(x.getFullYear(),x.getMonth(),l),s=b(e),r=N(e);t.push((0,a.jsx)("button",{onClick:()=>!r&&g(e),disabled:r,className:"rounded p-2 text-sm transition-colors ".concat(s?"bg-blue text-white":r?"curs
1or-not-allowed text-gray-300":"text-blue hover:bg-blue-50"),children:l},l))}return t})()})]})})]})},eR=e=>{let{isOpen:l=!1,availableDate:t=new Date("2025-06-26").toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}),onDateChange:r,onApplyFilters:n,onResetFilters:i,className:d="",filterOptions:c}=e,[m,x]=(0,s.useState)(l),[h,p]=(0,s.useState)(t),v=(0,s.useRef)(null);(0,s.useEffect)(()=>{x(l)},[l]);let{control:g,reset:f,watch:j}=(0,ey.cI)({defaultValues:{bedrooms:[],bathrooms:[],orientation:[],floor:[]}}),b=j();(0,s.useEffect)(()=>{let e=JSON.stringify(b);v.current!==e&&(v.current=e,Object.values(b).some(e=>Array.isArray(e)&&e.length>0)?null==n||n(b):null==i||i())},[b,n,i]);let N=Object.values(b).some(e=>Array.isArray(e)&&e.length>0);return(0,a.jsxs)("div",{className:"apartment-filtering bg-blue ".concat(d),children:[m&&(0,a.jsxs)("div",{className:"space-y-6 pb-6",children:[(0,a.jsx)("div",{children:(0,a.jsx)(ey.Qr,{name:"bedrooms",control:g,render:e=>{var l;let{field:t}=e;return(0,a.jsx)(eE.c,{...t,id:"bedrooms",label:"Bedrooms",value:t.value,onChange:e=>t.onChange(e),invert:!0,largeLabel:!0,showCircle:!0,options:(null==c?void 0:null===(l=c.bedrooms)||void 0===l?void 0:l.map(e=>({label:e,value:e})))||[]})}})}),(0,a.jsx)("div",{children:(0,a.jsx)(ey.Qr,{name:"bathrooms",control:g,render:e=>{var l;let{field:t}=e;return(0,a.jsx)(eE.c,{...t,id:"bathrooms",label:"Bathrooms",value:t.value,onChange:e=>t.onChange(e),invert:!0,largeLabel:!0,showCircle:!0,options:(null==c?void 0:null===(l=c.bathrooms)||void 0===l?void 0:l.map(e=>({label:e,value:e})))||[]})}})}),(0,a.jsx)("div",{children:(0,a.jsx)(ey.Qr,{name:"orientation",control:g,render:e=>{var l;let{field:t}=e;return(0,a.jsx)(eE.c,{...t,id:"orientation",label:"Orientation",value:t.value,onChange:e=>t.onChange(e),invert:!0,largeLabel:!0,showCircle:!0,options:(null==c?void 0:null===(l=c.orientation)||void 0===l?void 0:l.map(e=>({label:e,value:e})))||[]})}})}),(0,a.jsx)("div",{children:(0,a.jsx)(ey.Qr,{name:"floor",control:g,render:e=>{var l;let{field:t}=e;return(0,a.jsx)(eE.c,{...t,id:"floor",label:"Floor",value:t.value,onChange:e=>t.onChange(e),invert:!0,largeLabel:!0,showCircle:!0,options:(null==c?void 0:null===(l=c.floor)||void 0===l?void 0:l.map(e=>({label:e,value:e})))||[]})}})}),(0,a.jsx)("div",{className:"flex justify-between",children:N&&(0,a.jsxs)(z.r,{href:"#",underline:"never",className:"text-left text-white",asButton:!0,onClick:()=>{f(),null==i||i()},children:[(0,a.jsx)(u.J,{name:"refresh",text:!0,className:"mr-1"}),"Reset filters"]})})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-start gap-5 text-white sm:flex-row sm:justify-between",children:[(0,a.jsxs)("button",{onClick:()=>{x(!m)},className:"min-w-[100px] text-left text-2xl",children:[(0,a.jsx)(u.J,{name:"filter",text:!0,className:"mr-1"}),m?"Hide filters":"Show filters"]}),(0,a.jsxs)(o.Z,{variant:"text-lg",className:"text-right",children:["Showing apartments available from"," ",(0,a.jsx)(eA,{value:h,onChange:e=>{p(e),null==r||r(e)},trigger:(0,a.jsxs)("button",{className:"border-b border-white",children:[(()=>{if(!h)return"Select date";let e=(e=>{let l=new Date(e);if(!isNaN(l.getTime()))return l;if(e.includes("/")){let t=e.split("/");if(3===t.length){let[e,a,s]=t;if(e.length<=2&&a.length<=2&&!isNaN((l=new Date(parseInt(s),parseInt(a)-1,parseInt(e))).getTime())||!isNaN((l=new Date(parseInt(s),parseInt(e)-1,parseInt(a))).getTime()))return l}}if(e.includes("-")){let t=e.split("-");if(3===t.length){let[e,a,s]=t;if(e.length<=2&&a.length<=2&&!isNaN((l=new Date(parseInt(s),parseInt(a)-1,parseInt(e))).getTime())||!isNaN((l=new Date(parseInt(s),parseInt(e)-1,parseInt(a))).getTime()))return l}}return null})(h);return e?e.toLocaleDateString():(console.warn("Invalid date format:",h),"Select date")})(),(0,a.jsx)(u.J,{name:"caret",text:!0,className:"ml-1 scale-75"})]})})]})]})]})},ez=e=>{let{id:l,name:t,pricePerWeek:s,originalPrice:r,bedrooms:n,bathrooms:i,area:d,floor:c,orientation:m,floorPlanUrl:x,eligibleForReducedRent:h=!1,onEnquire:p,className:v=""}=e,g=e=>"$".concat(e.toLocaleString());return(0,a.jsx)("div",{className:"apartment-card border-t border-blue pb-12 pt-2 ".concat(v),children:(0,a.jsxs)("div",{className:"flex flex-col justify-between gap-6 md:flex-row md:gap-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 md:gap-9 lg:w-1/5",children:[(0,a.jsx)(o.Z,{variant:"h5",className:"!text-[32px] text-blue",children:t}),x&&(0,a.jsx)("div",{className:"flex items-center gap-1",children:(0,a.jsxs)(em,{children:[(0,a.jsx)(ex,{asChild:!0,children:(0,a.jsxs)(z.r,{href:"#",underline:"always",asButton:!0,className:"text-xl text-blue",children:[(0,a.jsx)(u.J,{name:"map",text:!0,className:"mr-1 h-5 w-5 text-blue"}),"Floor plan"]})}),(0,a.jsx)(ep,{className:"!h-[90vh] !max-h-[90vh] !w-[90vw] !max-w-[90vw] overflow-scroll p-4",largeIcon:!0,children:(0,a.jsx)("div",{className:"relative h-full w-full",children:(0,a.jsx)("div",{className:"h-full w-full overflow-auto",children:(0,a.jsx)("div",{className:"flex items-center justify-center p-4",children:(0,a.jsx)(T.default,{src:x,alt:"Floor plan for ".concat(t),width:2e3,height:1400,quality:100,unoptimized:!0,className:"w-full"})})})})})]})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 lg:w-3/5",children:[(0,a.jsx)("div",{children:h&&r?(0,a.jsxs)("div",{className:"flex flex-row gap-1 md:flex-col lg:flex-row",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-1",children:[(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue line-through",children:g(r)}),(0,a.jsx)(o.Z,{variant:"h6",className:"!font-bold text-blue",children:g(s)}),(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:"p.w."})]}),(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:"reduced rent"})]}):(0,a.jsxs)("div",{className:"flex flex-row gap-1",children:[(0,a.jsx)(o.Z,{variant:"h6",className:"!font-bold text-blue",children:g(s)}),(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:"p.w."})]})}),(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsxs)("div",{className:"flex items-end gap-1",children:[(0,a.jsx)(u.J,{name:"bed",text:!0,className:"h-5 w-5 text-blue"}),(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:n})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(u.J,{name:"sink",text:!0,className:"h-5 w-5 text-blue"}),(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:i})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row",children:[(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:d}),(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:c}),(0,a.jsx)(o.Z,{variant:"h6",className:"!text-[22px] text-blue",children:m})]})]}),(0,a.jsx)("div",{className:"flex flex-shrink-0 lg:w-1/5",children:(0,a.jsx)(z.r,{href:"#",underline:"always",asButton:!0,className:"whitespace-nowrap text-xl text-blue",onClick:e=>{e.preventDefault(),null==p||p({id:l,name:t,bedrooms:n,bathrooms:i,pricePerWeek:s,originalPrice
1:r,area:d,floor:c,orientation:m,eligibleForReducedRent:h})},children:"Enquire now â"})})]})})},eM=e=>{let{bedroomCount:l,apartments:t,images:r,totalApartments:n,eligibleForReducedRent:i=!1,isBgWhite:d=!1,onEnquire:c,onSeeAll:m,className:x=""}=e,[u,h]=(0,s.useState)(!1);return(0,a.jsx)("div",{className:"bedroom-section ".concat(x),children:(0,a.jsxs)("div",{className:"grid grid-cols-1 pb-20 md:grid-cols-7 md:gap-5 lg:gap-10 xl:gap-28",children:[(0,a.jsxs)("div",{className:"apartment-listings order-2 flex flex-col justify-between px-3 pt-4 md:order-1 md:col-span-4 md:pl-5 lg:pl-10 xl:pl-20",children:[(0,a.jsxs)("div",{className:"mb-6 flex items-end gap-4",children:[(0,a.jsx)(o.Z,{variant:"h3",className:"text-blue",children:0===l?"Studio":1===l?"1 bedroom":"".concat(l," bedrooms")}),i&&(0,a.jsx)(o.Z,{variant:"text-xs",className:"text-blue",children:"Eligible for reduced rent"})]}),(0,a.jsxs)("div",{className:"space-y-0 ".concat(u?"overflow-node max-h-none":"relative max-h-[1100px] overflow-hidden md:max-h-[650px] lg:max-h-[600px]"),children:[t.map((e,l)=>(0,a.jsx)(ez,{...e,onEnquire:c,className:l===t.length-1?"border-b-0":""},e.id)),!u&&t.length>4&&(0,a.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 z-10 h-32 ".concat(d?"bg-[linear-gradient(180deg,rgba(255,255,255,0)_0%,#FFFFFF_83.17%)]":"bg-[linear-gradient(180deg,rgba(246,246,241,0)_0%,#F6F6F1_83.17%)]")})]}),n&&n>4&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(z.r,{href:"#",underline:"always",asButton:!0,className:"text-xl text-blue",onClick:e=>{h(!u)},children:u?"See less":"See all (".concat(n,")")})})]}),(0,a.jsx)("div",{className:"image-section order-1 md:order-2 md:col-span-3",children:(0,a.jsx)(ed,{images:r,className:"h-full"})})]})})},eT=e=>{let{apartments:l,images:t,onEnquire:s,onSeeAll:r,className:n=""}=e,i=l.reduce((e,l)=>{let t=l.bedrooms;return e[t]||(e[t]=[]),e[t].push(l),e},{}),o=Object.keys(i).map(Number).sort((e,l)=>0===e?-1:0===l?1:e-l);return(0,a.jsx)("div",{className:"apartment-list ".concat(n),children:o.map((e,l)=>{let n=i[e],o=t[e]||[],d=n.some(e=>e.eligibleForReducedRent);return(0,a.jsx)(eM,{bedroomCount:e,apartments:n,images:o,totalApartments:n.length,eligibleForReducedRent:d,onEnquire:s,onSeeAll:r,isBgWhite:l%2==1,className:l%2==0?"bg-[#F5F5EF]":""},e)})})},eI=e=>{let{open:l,onOpenChange:t,propertyType:r="affordable",prefillData:n={}}=e,i="affordable"===r?"https://zfrmz.com.au/GpOFy1Y4hgFqLKCbLyZn":"https://zfrmz.com.au/NRNKNXj6E0gymWoNsP1W",o=(0,s.useMemo)(()=>{let e=new URL(i),l="affordable"===r?["address","type","household_income","over_18","under_18","apartment_number","rental_amount"]:["address","type","household_income","over_18","under_18","apartment_number","rental_amount","household_composition"];if(n.name&&n.projectName){let t="Apartment "+n.name+" "+n.projectName;e.searchParams.set(l[0],t)}if(n.type&&("0"===n.type?e.searchParams.set(l[1],"Studio"):e.searchParams.set(l[1],n.type+" Bedroom Apartment")),n.household_income&&e.searchParams.set(l[2],n.household_income),n.over_18){let t=parseInt(n.over_18,10);isNaN(t)||e.searchParams.set(l[3],t.toString())}if(n.under_18){let t=parseInt(n.under_18,10);isNaN(t)?e.searchParams.set(l[4],"0"):e.searchParams.set(l[4],t.toString())}if(n.name&&e.searchParams.set(l[5],n.name),n.pricePerWeek&&e.searchParams.set(l[6],n.pricePerWeek),"market"===r&&(n.over_18||n.under_18)){let t=parseInt(n.over_18||"0",10),a=parseInt(n.under_18||"0",10);1===t&&isNaN(a)?e.searchParams.set(l[7],"Single Adult"):2===t&&isNaN(a)?e.searchParams.set(l[7],"Couple / (Two People)"):1!==t||isNaN(a)?2!==t||isNaN(a)?t>2||t>=2&&a>=2?e.searchParams.set(l[7],"Family / Group"):e.searchParams.set(l[7],"Other"):e.searchParams.set(l[7],"Adults (with children)"):e.searchParams.set(l[7],"Single Parent Family")}return e.toString()},[i,n,r]),d="affordable"===r?"Affordable Housing Application Form":"Market Rate Enquiry Form";return(0,a.jsx)(eS.dy,{open:l,onOpenChange:t,children:(0,a.jsxs)(eS.sc,{className:"max-w-full bg-blue md:max-w-[900px]",children:[(0,a.jsx)("div",{className:"fixed right-[20px] top-[20px] flex items-center justify-end",children:(0,a.jsx)(eS.uh,{className:"text-white",showLabel:!0,smallIcon:!0})}),(0,a.jsx)("iframe",{src:o,className:"h-full w-full border-0",title:d})]})})};var eD=t(11323);let eO=[{value:"Ground",label:"Ground floor",order:0},{value:"1",label:"First floor",order:1},{value:"2",label:"Second floor",order:2},{value:"3",label:"Third floor",order:3},{value:"4",label:"Fourth floor",order:4},{value:"5",label:"Fifth floor",order:5},{value:"6",label:"Sixth floor",order:6},{value:"7",label:"Seventh floor",order:7},{value:"8",label:"Eighth floor",order:8},{value:"9",label:"Ninth floor",order:9}];function eP(e){let l=eO.find(l=>l.value===e);return l?l.label:"".concat(e,"th floor")}let e_=e=>{var l,t,r,n,c,m,x,h,p;let{apartmentListings:v=[],apiError:g=null,formData:f,apartmentFinder:j}=e,b=(0,eC.useRouter)(),{apartmentFinder:N}=(0,s.useContext)(eD.V)||{}
1,w=j||N,[y,k]=(0,s.useState)(f||null),C=(e,l)=>("1 adult"!==e||l&&"no children"!==l)&&("2 adults"!==e||l&&"no children"!==l)?"1 adult"===e&&l&&"3+ children"===l||"2 adults"===e&&l&&("2 children"===l||"3+ children"===l)||"3+ adults"===e&&l&&"no children"!==l?3:2:0,S=(e,l)=>"1 adult"!==e||l&&"no children"!==l?"2 adults"!==e||l&&"no children"!==l?"1 adult"===e&&l&&"no children"!==l?"Single Parent Family":("2 adults"===e||"3+ adults"===e)&&l&&"no children"!==l?"Family":"Group":"Couple":"Single",Z=S((null==y?void 0:y.household)||(null==f?void 0:f.household),(null==y?void 0:y.children)||(null==f?void 0:f.children)),L=C((null==y?void 0:y.household)||(null==f?void 0:f.household),(null==y?void 0:y.children)||(null==f?void 0:f.children)),F=parseInt((null==y?void 0:y.income)||(null==f?void 0:f.income)),E=(0,s.useCallback)(e=>{var l,t,a,s,r,n,i,o,d,c,m,x;let u=null===(t=e.customFields)||void 0===t?void 0:null===(l=t.find(e=>"affordable"===e.name))||void 0===l?void 0:l.value,h=e.bedrooms||0,p=null===(s=e.customFields)||void 0===s?void 0:null===(a=s.find(e=>"cohort"===e.name))||void 0===a?void 0:a.value,v=parseInt(null===(n=e.customFields)||void 0===n?void 0:null===(r=n.find(e=>"minimumIncome"===e.name))||void 0===r?void 0:r.value),g=parseInt(null===(o=e.customFields)||void 0===o?void 0:null===(i=o.find(e=>"maximumIncome"===e.name))||void 0===i?void 0:i.value),j=parseInt(null===(c=e.customFields)||void 0===c?void 0:null===(d=c.find(e=>"marketRent"===e.name))||void 0===d?void 0:d.value);parseInt(null===(x=e.customFields)||void 0===x?void 0:null===(m=x.find(e=>"affordableRent"===e.name))||void 0===m?void 0:m.value);let b="";if(Array.isArray(e.externalLink)){let l=e.externalLink.find(e=>{var l;return e&&("string"==typeof e?e.trim():null===(l=e.value)||void 0===l?void 0:l.trim())});b="string"==typeof l?l:(null==l?void 0:l.value)||""}let N=(null==y?void 0:y.projectSlug)||(null==f?void 0:f.projectSlug),w=!N||b.includes(N);if("TRUE"===u)return!!(w&&p.toLowerCase()===Z.toLowerCase()&&v<=F&&(isNaN(g)||g>=F))&&h>=L;{let e=isNaN(v)||0===v?52*j/.4:v;return!!w&&h>=L&&e<=F}},[Z,F,L,null==y?void 0:y.projectSlug,null==f?void 0:f.projectSlug]),A=v.filter(E),[R,M]=(0,s.useState)(A),[T,I]=(0,s.use
1State)(A),[D,O]=(0,s.useState)(null),[P,_]=(0,s.useState)(!1),[W,V]=(0,s.useState)(!1),[B,J]=(0,s.useState)(null),G=(0,s.useMemo)(()=>R.some(e=>{var l,t;return(null===(t=e.customFields)||void 0===t?void 0:null===(l=t.find(e=>"affordable"===e.name))||void 0===l?void 0:l.value)==="TRUE"}),[R]),[U,q]=(0,s.useState)(()=>{if(A.length>0){let e=A.map(e=>e.availabilityDate).filter(e=>e);if(e.length>0)return e.sort((e,l)=>{let t=e=>{let l=new Date(e);if(!isNaN(l.getTime()))return l;if(e.includes("/")){let t=e.split("/");if(3===t.length){let[e,a,s]=t;if(e.length<=2&&a.length<=2&&!isNaN((l=new Date(parseInt(s),parseInt(a)-1,parseInt(e))).getTime())||!isNaN((l=new Date(parseInt(s),parseInt(e)-1,parseInt(a))).getTime()))return l}}if(e.includes("-")){let t=e.split("-");if(3===t.length){let[e,a,s]=t;if(e.length<=2&&a.length<=2&&!isNaN((l=new Date(parseInt(s),parseInt(a)-1,parseInt(e))).getTime())||!isNaN((l=new Date(parseInt(s),parseInt(e)-1,parseInt(a))).getTime()))return l}}return new Date},a=t(e),s=t(l);return a.getTime()-s.getTime()})[0]}return new Date().toISOString().split("T")[0]});(0,s.useEffect)(()=>{{let e=document.cookie.split(";").reduce((e,l)=>{let[t,a]=l.trim().split("=");return e[t]=decodeURIComponent(a),e},{}).apartmentFinderForm;if(e)try{let l=JSON.parse(e);k(l)}catch(e){console.error("Error parsing saved form data:",e)}}},[]),(0,s.useEffect)(()=>{S((null==y?void 0:y.household)||(null==f?void 0:f.household),(null==y?void 0:y.children)||(null==f?void 0:f.children)),C((null==y?void 0:y.household)||(null==f?void 0:f.household),(null==y?void 0:y.children)||(null==f?void 0:f.children));let e=v.filter(E);I(e),M(e)},[v,y,f,E]),(0,s.useEffect)(()=>{if(T.length>0){let e=T.map(e=>e.availabilityDate).filter(e=>e);e.length>0&&q(new Date(e.sort((e,l)=>{let t=new Date(e),a=new Date(l);return t.getTime()-a.getTime()})[0]).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}))}},[T]);let Q=(e,l,t)=>l&&0!==Object.keys(l).length?e.filter(e=>{var a,s,r,n,i,o;if(l.bedrooms&&l.bedrooms.length>0){let t="Studio"===e.category1||0===e.bedrooms||"0"===e.bedrooms,s=(null===(a=e.bedrooms)||void 0===a?void 0:a.toString())||"1";if(!l.bedrooms.some(e=>"Studio"===e?t:!t&&s===e.split(" ")[0]))return!1}if(l.bathrooms&&l.bathrooms.length>0){let t=(null===(s=e.bathrooms)||void 0===s?void 0:s.toString())||"1";if(!l.bathrooms.some(e=>t===e.split(" ")[0]))return!1}if(l.orientation&&l.orientation.length>0){let t=null===(n=e.customFields)||void 0===n?void 0:null===(r=n.find(e=>"Aspect"===e.name))||void 0===r?void 0:r.value;if(!l.orientation.some(e=>t===e.split(" ")[0]))return!1}if(l.floor&&l.floor.length>0){let t=null===(o=e.customFields)||void 0===o?void 0:null===(i=o.find(e=>"FloorLevel"===e.name))||void 0===i?void 0:i.value;if(!l.floor.some(e=>t===function(e){let l=eO.find(l=>l.label===e);return l?l.value:e}(e)))return!1}if(t){let l=e.availabilityDate;if(l){let[e,a,s]=t.split(" ");if(!e||!a||!s)return!0;let r=new Date(t);if(new Date(l)>r)return!1}}return!0}):t?e.filter(e=>{let l=e.availabilityDate;if(l){let e=new Date(t);return new Date(l)<=e}return!0}):e,H=(0,s.useCallback)(e=>{O(e),M(Q(T,e,U))},[T,U]),Y=(0,s.useCallback)(()=>{O(null),M(T)},[T]),X=(0,s.useCallback)(e=>{q(e),M(Q(T,D||{},e))},[D,T]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(eS.dy,{open:P,onOpenChange:_,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"bg-blue",children:(0,a.jsxs)(i.W,{variant:"full",className:"px-3 py-3 xl:px-20",children:[(0,a.jsxs)("div",{className:"mb-32 flex w-full flex-col gap-5 sm:w-1/2",children:[(0,a.jsxs)(z.r,{href:"#",underline:"never",className:"text-left text-lg text-white",asButton:!0,onClick:()=>{b.push("".concat("/apartment-finder","/").concat(null==y?void 0:y.projectSlug))},children:[(0,a.jsx)(u.J,{name:"caret",text:!0,className:"mr-1 rotate-[90deg] scale-75"}),"Back to personal details"]}),!0===G?(0,a.jsx)("div",{className:"mb-6 flex max-w-[680px] flex-col gap-6 text-lg sm:mb-20",children:(0,a.jsx)(d.L,{html:(null==w?void 0:w.affordableText)||"",paragraphSize:"lg",invert:!0,drawerTriggerText:(null==w?void 0:w.inclusivePricingModelText)||"inclusive pricing model",className:"Typography font-serif font-normal tracking-snug text-white md:text-xl xl:text-2xl"})}):R.length>0?(0,a.jsx)(d.L,{html:(null==w?void 0:w.marketText)||"",paragraphSize:"lg",invert:!0,className:"mb-6 max-w-[680px] text-lg sm:mb-20"}):(0,a.jsx)(d.L,{html:"<p>We donât currently have any apartments that match your requirements.</p><p>Explore other projects. </p>",paragraphSize:"lg",invert:!0,className:"mb-6 max-w-[680px] text-lg sm:mb-20"}),g&&(0,a.jsxs)("div",{className:"mb-6 rounded-lg border border-red-500/20 bg-red-500/10 p-4 backdrop-blur-sm",children:[(0,a.jsx)(o.Z,{variant:"h6",className:"mb-2 text-red-400",children:"Error Loading Apartments"}),(0,a.jsx)(o.Z,{variant:"text-sm",className:"text-red-300",children:g})]}),(f||y)&&(0,a.jsxs)("div",{className:"mb-6 rounded-lg bg-white/10 p-4 backdrop-blur-sm",children:[(0,a.jsx)(o.Z,{variant:"h6",className:"mb-3 text-white",children:"Your Details"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-3 text-sm text-white md:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Project:"})," ",(null===(l=y||f)||void 0===l?void 0:l.projectName)||"Not specified"]}),(0,a.jsx)("div",{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Household:"})," ",null===(t=y||f)||void 0===t?void 0:t.household]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Children:"})," ",null===(r=y||f)||void 0===r?void 0:r.children]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Rent Payment:"})," ",null===(n=y||f)||void 0===n?void 0:n.payRent]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Income:"})," $",(()=>{var e;let l=null===(e=y||f)||void 0===e?void 0:e.income;return 2e5===l?"200,000 or more":6e4===l?"60,000 or less":null==l?void 0:l.toLocaleStr
1ing()})()]})]})]})]}),0!==v.length&&(0,a.jsx)(eR,{availableDate:U,onApplyFilters:H,onDateChange:X,onResetFilters:Y,filterOptions:function(e){let l={bedrooms:new Set,bathrooms:new Set,orientation:new Set,floor:new Set};return e.forEach(e=>{var t,a,s,r;if("Studio"===e.category1||0===e.bedrooms||"0"===e.bedrooms)l.bedrooms.add("Studio");else if(void 0!==e.bedrooms&&null!==e.bedrooms){let t=e.bedrooms.toString();l.bedrooms.add("".concat(t," bedroom"))}if(e.bathrooms){let t=e.bathrooms.toString();l.bathrooms.add("".concat(t," bathroom"))}let n=null===(a=e.customFields)||void 0===a?void 0:null===(t=a.find(e=>"Aspect"===e.name))||void 0===t?void 0:t.value;n&&l.orientation.add("".concat(n," facing"));let i=null===(r=e.customFields)||void 0===r?void 0:null===(s=r.find(e=>"FloorLevel"===e.name))||void 0===s?void 0:s.value;if(i){let e=eP(i);l.floor.add(e)}}),{bedrooms:Array.from(l.bedrooms).sort((e,l)=>"Studio"===e?-1:"Studio"===l?1:parseInt(e.split(" ")[0])-parseInt(l.split(" ")[0])),bathrooms:Array.from(l.bathrooms).sort(),orientation:Array.from(l.orientation).sort(),floor:Array.from(l.floor).sort((e,l)=>{let t=eO.find(l=>l.label===e),a=eO.find(e=>e.label===l);return t&&a?t.order-a.order:t&&!a?-1:!t&&a?1:e.localeCompare(l)})}}(T)})]})}),(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsx)(i.W,{variant:"full",children:R.length>0?(0,a.jsx)(eT,{apartments:R.map((e,l)=>{var t,a,s,r,n,i,o,d,c,m,x,u,h;let p="Studio"===e.category1||0===e.bedrooms||"0"===e.bedrooms;return{id:(null===(t=e.propertyID)||void 0===t?void 0:t.toString())||l.toString(),name:(null===(s=e.customFields)||void 0===s?void 0:null===(a=s.find(e=>"apartmentNumber"===e.name))||void 0===a?void 0:a.value)||(null===(r=e.streetAddress)||void 0===r?void 0:r.split("/")[0])||"Apt ".concat(l+1),bedrooms:p?0:void 0!==e.bedrooms&&null!==e.bedrooms?e.bedrooms:1,bathrooms:e.bathrooms||1,area:(null===(n=e.houseSize)||void 0===n?void 0:n.value)?"".concat(e.houseSize.value,"m\xb2"):"",floor:(()=>{var l,t;let a=null===(t=e.customFields)||void 0===t?void 0:null===(l=t.find(e=>"FloorLevel"===e.name))||void 0===l?void 0:l.value;return a?eP(a):""})(),orientation:(null===(o=e.customFields)||void 0===o?void 0:null===(i=o.find(e=>"Aspect"===e.name))||void 0===i?void 0:i.value)?"".concat(e.customFields.find(e=>"Aspect"===e.name).value," facing"):"",pricePerWeek:Math.round(e.rent||0),originalPrice:(null===(c=e.customFields)||void 0===c?void 0:null===(d=c.find(e=>"marketRent"===e.name))||void 0===d?void 0:d.value)?Math.round(parseFloat(e.customFields.find(e=>"marketRent"===e.name).value)):void 0,eligibleForReducedRent:(null===(x=e.customFields)||void 0===x?void 0:null===(m=x.find(e=>"affordable"===e.name))||void 0===m?void 0:m.value)==="TRUE",floorPlanUrl:(null===(h=e.floorPlans)||void 0===h?void 0:null===(u=h[0])||void 0===u?void 0:u.fullSize)||"",description:e.description||""}}),images:function(e){let l={};return e.forEach((e,t)=>{var a,s;let r="Studio"===e.category1||0===e.bedrooms||"0"===e.bedrooms?0:void 0!==e.bedrooms&&null!==e.bedrooms?Number(e.bedrooms):1,n=(null===(s=e.customFields)||void 0===s?void 0:null===(a=s.find(e=>"apartmentNumber"===e.name))||void 0===a?void 0:a.value)||"apt-".concat(t);e.photos&&e.photos.length>0?(l[r]||(l[r]=[]),e.photos.forEach((t,a)=>{if(l[r].length<6){var s;let i={alt:"Apartment ".concat(n," - Photo ").concat(a+1),caption:(null===(s=e.description)||void 0===s?void 0:s.substring(0,100))+"...",credit:"Property Photos",src:t.midSize||t.fullSize||t.thumbnail};l[r].push(i)}})):(l[r]||(l[r]=[]),l[r].push({alt:"Apartment ".concat(n," - Living area"),caption:"Modern apartment with quality finishes",credit:"Property Photos",src:"https://dcvut9d9kis5d.cloudfront.net/agent1455_mid_extra_rental_4547015.jpg"}))}),l}(R),onEnquire:e=>{J(e),V(!0)},onSeeAll:()=>{}}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-20",children:[(0,a.jsx)(o.Z,{variant:"h3",className:"mb-4 text-blue",children:"No Apartments Found"}),(0,a.jsx)(o.Z,{variant:"text-lg",className:"mb-8 text-blue",children:"Sorry, no apartments match your current criteria. Please try adjusting your search parameters."})]})})})]}),(0,a.jsx)(eS.sc,{className:"max-w-full md:max-w-[900px]",children:(0,a.jsx)(eL,{propertyName:(null===(c=y||f)||void 0===c?void 0:c.projectName)||"",apartmentFinder:w})})]}),(0,a.jsx)(eI,{open:W,onOpenChange:V,propertyType:(null==B?void 0:B.eligibleForReducedRent)?"affordable":"market",prefillData:{projectName:(null===(m=y||f)||void 0===m?void 0:m.projectName)||"",name:(null==B?void 0:B.name)||"",pricePerWeek:(null==B?void 0:B.pricePerWeek)||"",type:B?"".concat(B.bedrooms):"",household_income:(null===(x=y||f)||void 0===x?void 0:x.income)||"",over_18:(null===(h=y||f)||void 0===h?void 0:h.household)||"",under_18:(null===(p=y||f)||void 0===p?void 0:p.children)||""}})]})},eW=e=>{let{blocks:l}=e,t={"block-rich-text":m,"block-accordion":f,"block-image":G,"block-carousel":A,"block-card-grid":_,"block-callout":W,"block-pathway":J,"block-listing-table":ee,"block-storyteller":Q,"block-testimonial":X,"block-map":O,"block-3d-tour":eb,"block-video":el,"block-home-intro":en,"block-location-list":eo,"block-typology-list":eg,"block-collapsible-content":ej,"block-logo-grid":eN,"block-apartment-finder":eF,"block-apartment-finder-result":e_},n=l.length>0?l[l.length-1]:null;return(0,a.jsxs)("div",{children:[l.length>0&&l.filter(e=>!!e).map((e,n)=>{if(!e)return null;let i=t[e.component],o=n<l.length-1?l[n+1]:null,d=n>0?l[n-1]:null,c="none";return e.withEdge&&(o&&!o.withEdge&&(c="after"),d&&!d.withEdge&&(c="after"===c?"both":"before")),!1===e.ssr?(0,a.jsx)(s.Fragment,{children:(0,a.jsx)(i,{...e.props,edge:c,className:(0,r.cn)(e.className)})},"".concat(e.component,"-").concat(n)):(0,a.jsx)(i,{...e.props,edge:c,className:(0,r.cn)(e.className)},"".concat(e.component,"-").concat(n))}),n&&!n.withEdge]})}},1260:function(e,l,t){t.d(l,{c:function(){return x}});var a=t(37821),s=t(58078),r=t(42312),n=t(898),i=t(10793),o=t(82907);let d=(0,n.j)("flex items-center relative",{variants:{variant:{default:"border border-blue-200 p-4 md:px-6 md:py-5 bg-transparent roun
1ded-full focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2"},active:{true:"",false:""},invert:{true:"focus-within:ring-white ring-offset-blue",false:"focus-within:ring-blue ring-offset-stone-50"}},compoundVariants:[{variant:"default",invert:!1,active:!1,className:"text-blue"},{variant:"default",invert:!1,active:!0,className:"bg-blue border-blue text-white"},{variant:"default",invert:!0,active:!1,className:"text-white"},{variant:"default",invert:!0,active:!0,className:"bg-white border-white text-blue"}],defaultVariants:{variant:"default",active:!1,invert:!1}}),c=(0,s.forwardRef)((e,l)=>{let{name:t,variant:s="default",label:n,value:c,onChange:m,error:x,className:u,invert:h,showCircle:p=!1,...v}=e,g="label-".concat(t);return(0,a.jsxs)("div",{className:u,children:[(0,a.jsxs)("div",{className:d({variant:s,invert:h,active:!!c}),children:[(0,a.jsx)(i.fC,{id:t,className:(0,r.cn)("flex appearance-none items-center justify-center","string"==typeof n?"after:absolute after:inset-0 after:cursor-pointer":null),checked:c,"aria-labelledby":g,onCheckedChange:m}),p&&(0,a.jsx)("span",{className:(0,r.cn)("mr-2 flex h-4 w-4 items-center justify-center rounded-full border border-blue-300 bg-transparent",c?"border-blue":""),children:c&&(0,a.jsx)("span",{className:(0,r.cn)("flex h-2.5 w-2.5 rounded-full",h?"bg-blue":"bg-white")})}),(0,a.jsx)(o.Z,{component:"label",variant:"text-sm",id:g,trim:!0,className:(0,r.cn)("-mb-0.5 break-words",{"text-blue":!h&&!c||h&&c,"text-white":!h&&c||h&&!c}),children:n})]}),x&&(0,a.jsx)("p",{className:"mt-2 text-error",role:"alert",children:x})]})});c.displayName="Checkbox";var m=t(89964);let x=(0,s.forwardRef)((e,l)=>{let{options:t,id:s,label:n,helpText:i,value:d,onChange:x,error:u,required:h,className:p,invert:v=!1,largeLabel:g=!1,showCircle:f=!1}=e,j=(e,l)=>{l?x([...d,e]):x(d.filter(l=>l!==e))};return(0,a.jsxs)("div",{className:p,children:[n&&(0,a.jsxs)(o.Z,{component:"label",variant:g?"text-xl":"text-lg",id:"label-".concat(s),className:(0,r.cn)("CheckboxGroupLabel block",v?"text-white":"text-blue"),withMargin:"h4",children:[n,h&&(0,a.jsx)(o.Z,{variant:"text-sm",component:"span",children:"*"})]}),i&&(0,a.jsx)(m.L,{html:i,paragraphSize:"sm",className:"CheckboxGroupHelpText mb-4 md:mb-5 xl:mb-6"}),(0,a.jsx)("div",{className:"CheckboxGroup mb-6 flex flex-row flex-wrap gap-2 md:mb-8 xl:mb-10",children:t.map(e=>(0,a.jsx)(c,{name:e.value,label:e.label,value:d.includes(e.value),onChange:l=>j(e.value,l),invert:v,showCircle:f},e.label))}),u&&(0,a.jsx)("p",{className:"mt-2 text-error",children:u})]})});x.displayName="CheckboxGroup"},50839:function(e,l,t){t.d(l,{E:function(){return c},Z:function(){return m}});var a=t(37821),s=t(58078),r=t(98993),n=t(82907),i=t(89964),o=t(42312);let d=(0,s.forwardRef)((e,l)=>{let{value:t,id:s,label:i,disabled:d=!1,invert:c=!1}=e,m="label-".concat(s);return(0,a.jsxs)(r.ck,{id:s,disabled:d,"aria-labelledby":m,value:t,className:(0,o.cn)("Radio","group","align-center flex items-center justify-center rounded-full border border-blue-200 bg-transparent p-4 pr-5 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 md:py-5 md:pl-6 md:pr-7","data-[disabled]:cursor-not-allowed data-[disabled]:border-blue-50 data-[disabled]:!bg-blue-50 data-[disabled]:!text-blue-300",{"text-blue ring-offset-stone-50 focus-within:ring-blue data-[state=checked]:border-blue data-[state=checked]:bg-blue data-[state=checked]:text-white":!c,"text-white ring-offset-blue focus-within:ring-white data-[state=checked]:border-white data-[state=checked]:bg-white data-[state=checked]:text-blue":c}),children:[(0,a.jsx)("span",{className:(0,o.cn)("mr-2 flex h-4 w-4 items-center justify-center rounded-full border border-blue-300 bg-transparent","group-data-[state=checked]:border-blue"),children:(0,a.jsx)(r.z$,{className:(0,o.cn)("flex h-2.5 w-2.5 rounded",c?"bg-blue":"bg-white")})}),(0,a.jsx)(n.Z,{component:"label",variant:"text-sm",className:"relative top-[0.1em] cursor-[inherit]",trim:!0,id:m,children:i})]})});d.displayName="Radio";let c=(0,s.forwardRef)((e,l)=>{let{value:t,id:s,disabled:c,options:m,onChange:x,label:u,helpText:h,invert:p=!1,largeLabel:v=!1,required:g=!1,requireClass:f="",...j}=e,b="label-".concat(s);if(void 0===m||0===m.length)return(0,a.jsx)(a.Fragment,{children:"This Radio Group has no options"});let N=m.map(e=>"string"==typeof e?{label:e,value:e}:e);return(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsxs)(n.Z,{component:"label",variant:"string"==typeof v?v:!0===v?"text-xl":"text-lg",id:b,className:(0,o.cn)("RadioGroupLabel block",p?"text-white":"text-blue"),withMargin:"h4",children:[u,g&&(0,a.jsx)("span",{className:(0,o.cn)("ml-1 text-white",f),"aria-hidden":"true",children:"*"})]}),h&&(0,a.jsx)(i.L,{html:h,paragraphSize:"sm",className:"RadioGroupHelpText mb-4 md:mb-5 xl:mb-6"}),(0,a.jsx)(r.fC,{"aria-labelledby":"label-".concat(s),id:s,value:t,"aria-label":s,defaultValue:t||N[0].value,onValueChange:x,className:"RadioGroup mb-6 flex flex-row flex-wrap gap-2 md:mb-8 xl:mb-10",...j,children:N.map((e,l)=>{let{value:t,label:r,disabled:n}=e;return(0,a.jsx)(d,{id:"".concat(s,"-").concat(l),value:t,label:r||t,disabled:n,invert:p},"".concat(s,"-").concat(l))})})]})});c.displayName="RadioGroup";var m=c},30298:function(e,l,t){t.d(l,{i:function(){return d},Z:function(){return c}});var a=t(37821),s=t(58078),r=t(69851),n=t(82907),i=t(89964),o=t(52605);let d=(0,s.forwardRef)((e,l)=>{let{id:t,min:d=0,minSelectable:c=d,max:m,selectableMax:x=m,step:u,value:h,defaultValue:p,onValueChange:v,onValueCommit:g,valueMetadata:f,invert:j,label:b,helpText:N,...w}=e,[y,k]=s.useState(h||p),C=e=>{e[0]=Math.max(e[0],c),e.length>1?e[1]=Math.min(e[0],x):e[0]=Math.min(e[0],x),k(e),v&&v(e)},S=e=>f?f.find(l=>l.value===e):null;return s.useEffect(()=>{let e=null!=m?m:0;if(y){let l=!1,t=[...y];
1null==y||y.forEach((a,s)=>{(a<2||a>e)&&(a<2&&(t[s]=2),a>e&&(t[s]=e),l=!0)}),l&&C(t)}},[d,m]),s.useEffect(()=>{let e=Math.max(d,c),l=[...y];l[0]<e&&(l[0]=e,C(l))},[y,d,c,h]),(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(n.Z,{component:"label",variant:"text-lg",id:"label-".concat(t),className:"SliderLabel block text-blue",withMargin:"h4",children:b}),N&&(0,a.jsx)(i.L,{html:N,paragraphSize:"sm",className:"SliderHelpText mb-4 md:mb-5 xl:mb-6"}),(0,a.jsxs)(r.fC,{min:d,max:m,step:u,value:y,defaultValue:p,onValueChange:C,onValueCommit:g,className:"Slider relative flex w-full items-center pb-[40px] pt-[56px]",...w,children:[(0,a.jsxs)(r.fQ,{className:(0,o.Z)("relative h-6 w-full rounded-full",{"bg-[#E5EDFD]/50":j,"bg-blue-50":!j}),children:[(0,a.jsx)(r.e6,{className:(0,o.Z)("absolute h-6 rounded-full",{"bg-white":j,"bg-blue":!j})}),c>d&&(0,a.jsx)("span",{className:"absolute h-6 rounded-l-full bg-gradient-striped bg-[length:5%_100%]",style:{left:"0",width:"calc(".concat((c-1)/(m-d)*100,"%)")}}),x<m&&(0,a.jsx)("span",{className:"absolute h-6 rounded-r-full bg-gradient-striped bg-[length:5%_100%]",style:{right:"0",width:"calc(".concat((c-1)/(m-d)*100,"%)")}}),(0,a.jsx)(a.Fragment,{children:null==f?void 0:f.map((e,l)=>e.onTimeline?(0,a.jsx)("div",{className:(0,o.Z)("absolute h-6 w-6"),style:{left:"calc(".concat((e.value-d)/(m-d)*100,"% - ").concat((e.value-d)/(m-d)*1.5,"rem)")},children:(0,a.jsx)(n.Z,{component:"div",variant:"text-sm",className:(0,o.Z)("absolute -bottom-14 w-fit whitespace-nowrap rounded-full",{"text-white":j,"text-blue":!j}),style:e.value===m?{right:0}:e.value===d?{left:0}:{left:"50%",transform:"translateX(-50%)"},children:e.trackLabel?e.trackLabel:e.thumbLabel})},l):null)})]}),null==y?void 0:y.map((e,l)=>{var t;return(0,a.jsx)(r.bU,{className:(0,o.Z)("relative flex h-14 w-14 cursor-pointer items-center justify-center rounded-full border-2 border-blue-300 shadow-md",{"bg-white":j,"bg-blue":!j}),children:S(e)&&(0,a.jsx)(n.Z,{component:"div",variant:"text-sm",className:"absolute -top-2 w-fit max-w-[100px] -translate-y-full whitespace-pre-wrap rounded-full border border-blue-300 bg-white px-4 pb-1 pt-2 !leading-none text-blue shadow-md sm:max-w-[200px] sm:whitespace-nowrap",children:null===(t=S(e))||void 0===t?void 0:t.thumbLabel})},l)})]})]})});d.displayName="Slider";var c=d},11323:function(e,l,t){t.d(l,{LayoutProvider:function(){return n},V:function(){return r}});var a=t(37821),s=t(58078);let r=(0,s.createContext)({ctaVisible:!0,setCtaVisible:e=>{}}),n=e=>{let{children:l,apartmentFinder:t}=e,[n,i]=(0,s.useState)(!0);return(0,a.jsx)(r.Provider,{value:{ctaVisible:n,setCtaVisible:e=>i(e),apartmentFinder:t},children:l})}},95380:function(e,l,t){t.r(l),l.default={src:"/_next/static/media/assemble-icon.1aca8e3c.png",height:273,width:273,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAARVBMVEUdTeQiUOImVeknVNpMaXEkU+dkhOsiT+AdTOIkUuZ0kOvDz/YkUuc6Y+WGoO0gUOAoWfMaTfHd5PmVq/DCz/VMcecvWuQSAaZDAAAAEHRSTlP+rKowAO/+KvPp+v6m/vqysP5UHgAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAEBJREFUeJwdy0kSwCAIAMFxQSQrqMn/n5qq9L2pmnpPWlGL1sKU7Oyj+4HwrnViCM8YDSHHNucVGTUHl8Lf71I/UE0COhqz+e4AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}}}]);
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.