PageSourceSearch

https://squiresestates.co.uk/_next/static/chunks/3816-47b9bb8b62ee43ec.js

js squiresestates.co.uk collected 2026-09-26 18:47:56 UTC 54,394 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3816],{12087:(e,l,t)=>{t.d(l,{W:()=>n});var a=t(89309);function n(e,l){let t=(0,a.usePathname)().replace(/\/$/,""),n=["/appraisal","/holiday-lets","/book-a-valuation","/instant-valuation","/my-valuation","/register","/full-sitemap","/virtual-valuation","/let-properties","/sold-properties","/commercial-let-properties","/commercial-sold-properties","/saved-properties","/auth",..."duplex"===l||"gable"===l?["/thanks-for-booking","/thank-you","/thank-you-for-instructing-us"]:[],..."gable"!==l?["/news"]:[]],s=["/properties/","/commercial-properties/","/property-for-sale/","/property-to-rent/","/holiday-let/","/property-brochure/","/let-properties/","/sold-properties/","/commercial-let-properties/","/commercial-sold-properties/","/landing/","/team-member/",..."gable"!==l?["/news/"]:[]];return!(n.includes(t)||s.some(e=>t.startsWith(e))||(null==e?void 0:e.some(e=>t.includes(e))))}},17213:(e,l,t)=>{t.d(l,{r:()=>r.r,z:()=>c});var a=t(85664),n=t(76392),s=t.n(n),i=t(74348),r=t(16172),o=t(19417),d=t(96777);let c=e=>{let{children:l,className:t,href:n,icon:c,nextLinkProps:u,openNewTab:m,prefetch:p=!0,size:x,theme:h,variant:b,ref:v,...g}=e;return(void 0!==m?m:n&&!n.startsWith("/")&&!n.startsWith("#"))?(0,a.jsx)("a",{className:(0,d.cn)((0,r.r)({className:t,icon:c,size:x,theme:h,variant:b})),href:n,ref:v,rel:"noopener noreferrer",target:"_blank",...g,children:(0,a.jsx)("span",{className:"relative flex w-full items-center justify-center",children:l})}):(0,a.jsx)(s(),{className:(0,d.cn)((0,r.r)({className:t,icon:c,size:x,theme:h,variant:b})),href:n.replace(o._.NEXT_PUBLIC_WORDPRESS_BACKEND,""),prefetch:p,ref:v,...g,...u,children:c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,d.cn)("group-hover:-translate-y-full relative flex w-full items-center justify-center transition-transform"),children:l}),(0,a.jsxs)("span",{className:(0,d.cn)("absolute inset-0 flex translate-y-full items-center justify-center transition-transform group-hover:translate-y-0","secondary"===b?"text-btn-secondary-txt":"text-white"),children:["newsletter"===c&&(0,a.jsx)(i.I,{className:"size-24",name:"lucide/newspaper"}),"send"===c&&(0,a.jsx)(i.I,{className:"size-24",name:"lucide/send"}),"search"===c&&(0,a.jsx)(i.I,{className:"size-24",name:"lucide/search"}),"location"===c&&(0,a.jsx)(i.I,{className:"size-24",name:"lucide/locate-fixed"}),"whatsapp"===c&&(0,a.jsx)(i.I,{className:"size-24",name:"fa/whatsapp"})]})]}):(0,a.jsx)("span",{className:"relative flex w-full items-center justify-center",children:l})})};c.displayName="LinkButton"},32866:(e,l,t)=>{t.d(l,{TopBarOverlay:()=>d});var a=t(85664),n=t(89309),s=t(63276),i=t(3589),r=t(61043),o=t(96777);function d(e){let{column1:l,column2:t,column3:d,column4:c,contactDetails:u,theme:m,title:p}=e,x=r.C.use.topBarVisible(),h=r.C.use.topBarVisibleSet(),b=(0,s.useRef)(null),v=(0,n.useRouter)();function g(e){let l=e.target.closest("a");if(!l)return;let t=l.getAttribute("href");(null==t?void 0:t.startsWith("/"))&&(e.preventDefault(),h(!1),v.push(t))}return(0,i.Wr)(b,e=>{x&&!e.target.classList.contains("topbar-toggle")&&h(!1)}),(0,a.jsx)("div",{className:(0,o.cn)("fixed inset-x-0 top-0 z-10 max-h-screen min-h-svh overflow-y-scroll bg-header-ov-bg py-40 shadow-header transition-transform md:min-h-0 md:pt-48",x?"translate-y-0":"-translate-y-full"),ref:b,children:(0,a.jsx)("div",{className:"pt-30 md:px-20 md:pt-40 lg:px-25",children:(0,a.jsxs)("div",{className:"beam-container",children:[!!p&&(0,a.jsx)("h2",{className:"beam-h2 mb-30 text-topbar-txt",dangerouslySetInnerHTML:{__html:p}}),!!(l||t||d||c)&&(0,a.jsx)("div",{className:"-mx-10 lg:-mx-20 flex flex-wrap",children:[l,t,d,c].filter(Boolean).map((e,l)=>(0,a.jsx)("div",{className:(0,o.cn)("mb-20 w-full grow px-10 sm:w-1/2 md:w-1/4 lg:px-20",c&&(2===l||3===l)&&"ml-auto"),children:(0,a.jsx)("div",{className:(0,o.cn)("beam-content prose !text-topbar-txt [&>p:not(:first-child)]:!mt-0 max-w-[420px] prose-a:text-topbar-lnk prose-headings:text-topbar-txt prose-strong:text-topbar-txt",("apex"===m||"fascia"===m)&&"prose-p:text-15"),dangerouslySetInnerHTML:{__html:e},onClick:g,onKeyDown:g})},e))}),!!u&&(0,a.jsx)("div",{className:"",children:u.map(e=>{var l;return(0,a.jsx)("div",{className:"mb-20 w-full",children:(0,a.jsx)("div",{className:"relative rounded-10 bg-white px-20 py-10 shadow-testimonial",children:(0,a.jsxs)("div",{className:"px-2 pt-20 pb-13",children:[!!(null==e?void 0:e.title)&&(0,a.jsx)("div",{className:"font-semibold text-24 text-primary tracking-[0.18px]",dangerouslySetInnerHTML:{__html:e.title}}
1),!!(null==e?void 0:e.phone)&&(0,a.jsxs)("div",{className:"relative mt-15 truncate text-18",children:[(0,a.jsx)("span",{className:"!text-primary mr-3 font-semibold",children:"T:\xa0"}),(0,a.jsx)("a",{className:"!text-primary tracking-[0.04px] underline hover:no-underline",dangerouslySetInnerHTML:{__html:e.phone},href:"tel:".concat(e.phone),rel:"noreferrer",target:"_blank"})]}),!!(null==e?void 0:e.email)&&(0,a.jsxs)("div",{className:"relative mt-10 truncate text-18",children:[(0,a.jsx)("span",{className:"!text-primary mr-3 font-semibold",children:"E:\xa0"}),(0,a.jsx)("a",{className:"!text-primary tracking-[0.04px] underline hover:no-underline",dangerouslySetInnerHTML:{__html:e.email},href:"mailto:".concat(e.email),rel:"noreferrer",target:"_blank"})]}),!!(null==e?void 0:e.address)&&(0,a.jsx)("div",{className:"mt-15 text-16 text-black",dangerouslySetInnerHTML:{__html:e.address}})]})})},null==e||null==(l=e.link)?void 0:l.url)})})]})})})}},34989:(e,l,t)=>{t.d(l,{c:()=>a});let a=(0,t(88253).F)(["mx-auto w-full px-20 lg:px-25 xl:px-30"],{compoundVariants:[{className:["max-w-[1410px]"],size:"xl",theme:["beam","apex","duplex","chalet","fascia","gable"]},{className:["max-w-[1410px]"],size:"lg",theme:["beam","apex","duplex","chalet","fascia","gable"]},{className:["max-w-[1260px]"],size:"default",theme:["beam","apex","duplex","chalet","fascia","gable"]},{className:["max-w-[1140px]"],size:"md",theme:["beam","apex","duplex","chalet","fascia","gable"]},{className:["max-w-[1060px]"],size:"sm",theme:["beam","apex","duplex","chalet","fascia","gable"]},{className:["max-w-[840px]"],size:"xs",theme:["beam","apex","duplex","chalet","fascia","gable"]}],defaultVariants:{size:"default",theme:"beam"},variants:{size:{default:[""],lg:[""],md:[""],sm:[""],xl:[""],xs:[""]},theme:{apex:[""],beam:[""],chalet:[""],duplex:[""],estate:[""],fascia:[""],gable:[""]}}})},54113:(e,l,t)=>{t.d(l,{HeaderMain:()=>W});var a=t(85664),n=t(4607),s=t(3008),i=t(76392),r=t.n(i),o=t(89309),d=t(63276),c=t(3589),u=t(74348),m=t(34989);function p(e){let{children:l,className:t,onClick:n,target:s,url:i}=e;return"_blank"===s?(0,a.jsx)("a",{className:t,href:i,onClick:n,rel:"noopener noreferrer",target:"_blank",children:l}):(0,a.jsx)(r(),{className:t,href:i,onClick:n,prefetch:!1,children:l})}var x=t(96777);function h(e){var l,t,n,i,o,d,c,u,h,b;let{activeHamburgerMenu:v,activeHamburgerMenuSet:g,addressLocality:f,addressRegion:y,closeAllMenus:j,emailAddress:k,fullHeightHamburgerMenu:N,hamburgerMenu:w,hamburgerMenuContactDetailsTitle:_,hamburgerMenuContent:S,isOpen:C,logo:M,phoneNumber:L,postalCode:z,streetAddress:H,theme:I,topBarContactDetails:T}=e,D=[f,y,z].filter(Boolean).join(", "),U=(null==w?void 0:w.length)||0,P=((null==w?void 0:w.length)?Math.max(...w.map(e=>(null==e?void 0:e.sublinks)?e.sublinks.length:0)):0)-U;return(0,a.jsx)("div",{className:(0,x.cn)("fixed z-10 hidden bg-header-ov-bg pt-header-height shadow-header transition-all lg:block","duplex"===I?"inset-y-0 right-0 w-[1080px] max-w-[calc(100vw-10px)] rounded-l-30 pb-30 text-black md:top-48 lg:max-w-[calc(100vw-45px)]":"inset-x-0 top-0 pb-100 text-header-ov-txt",N&&"h-full",C?"translate-y-0 delay-0":"duplex"===I?"translate-x-full delay-200":"-translate-y-full delay-200"),children:(0,a.jsx)("div",{className:(0,x.cn)("transition-all","duplex"!==I&&"pt-30",C?"opacity-100 delay-200":"opacity-0 delay-0",("duplex"===I||N)&&"h-full"),children:(0,a.jsx)("div",{className:(0,x.cn)("duplex"===I&&"h-full",(0,m.c)({theme:I})),children:(0,a.jsxs)("div",{className:(0,x.cn)("-mx-20 flex justify-start","duplex"===I&&"-mt-20 lg:-mx-40 h-full"),children:[(0,a.jsxs)("div",{className:(0,x.cn)("w-1/3 px-20 text-14 leading-relaxed","duplex"===I&&"hidden"),children:[(0,a.jsxs)("div",{className:"pb-50",children:[(0,a.jsx)(r(),{className:"relative inline-block max-w-logo-mob-width md:max-w-logo-desk-width",href:"/",children:!!(null==M?void 0:M.sourceUrl)&&(0,a.jsx)(s.default,{alt:"Logo",className:"h-auto w-full",height:Number(null==(l=M.mediaDetails)?void 0:l.height),priority:!0,src:M.sourceUrl,width:Number(null==(t=M.mediaDetails)?void 0:t.width)})}),!!S&&(0,a.jsx)("div",{className:"mt-30 max-w-280 text-14",dangerouslySetInnerHTML:{__html:S}})]}),!!_&&(0,a.jsx)("h4",{className:"mb-10 font-bold text-16 text-topbar-txt leading-relaxed",dangerouslySetInnerHTML:{__html:_}}),!!(H||""!==D)&&(0,a.jsxs)("div",{className:"mb-5",children:[!!H&&(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:H}}),!!D&&(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:D}})]}),!!L&&(0,a.jsxs)("div",{className:"truncate whitespace-nowrap break-words",children:["t:\xa0",(0,a.jsx)("a",{className:(0,x.cn)("c-linkline","duplex"===I?"text-header-tr-lnk":"text-secondary"),href:"tel:".concat(L),rel:"noopener noreferrer",target:"_blank",children:L})]}),!!k&&(0,a.jsxs)("div",{className:"truncate whitespace-nowrap break-words",children:["e:\xa0",(0,a.jsx)("a",{className:(0,x.cn)("c-linkline","duplex"===I?"text-header-tr-lnk":"text-secondary"),href:"mailto:".concat(k),rel:"noopener noreferrer",target:"_blank",children:k})]})]}),(0,a.jsx)("div",{className:(0,x.cn)("max-md:!pb-0 w-2/3 px-20","duplex"===I&&"lg:w-full lg:px-48"),style:{paddingBottom:"duplex"!==I?"".concat((P>0?42*P:0).toString(),"px"):"0"},children:(0,a.jsxs)("div",{className:(0,x.cn)("relative","duplex"===I&&"flex h-full flex-col"),children:[null==w?void 0:w.map(e=>{var l,t,n,s,i,r,o,d,c,u;return(0,a.jsx)("div",{className:(0,x.cn)("duplex"!==I&&"py-3"),children:(null==e?void 0:e.sublinks)?(0,a.jsxs)("button",{className:(0,x.cn)("flex items-center justify-between transition-colors","duplex"===I?"group relative mb-10 w-310 overflow-hidden rounded-30 px-25 py-8 font-medium text-20 leading-[24px] tracking-[0.25px]":"w-270 font-semibold text-18 leading-[1.875]","duplex"!==I&&(v===(null==(l=e.link)?void 0:l.title)?"text-header-ov-active-lnk":"text-header-ov-lnk")),onClick:()=>{var l,t;g(null!=(t=null==(l=e.link)?void 0:l.title)?t:"")},type:"button",children:["duplex"===I&&(0,a.jsx)("div",{className:(0,x.cn)("absolute inset-0 bg-secondary opacity-0 transition-all duration-300 group-hover:opacity-40",v===(null==(t=e.link)?void 0:t.t
1itle)&&"opacity-40")}),(0,a.jsx)("span",{className:(0,x.cn)("relative","duplex"!==I&&"c-linkline"),dangerouslySetInnerHTML:{__html:null!=(d=null==(n=e.link)?void 0:n.title)?d:""}}),(0,a.jsx)("span",{className:"relative rotate-180",children:(0,a.jsx)("svg",{className:(0,x.cn)("duplex"===I?"size-10":"size-15"),height:"28",viewBox:"0 0 16 28",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("g",{children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M14.123 26.001L12 28.123-2.12 14 12.001-.12l2.122 2.121-12 12z",fill:"currentColor"})})})})})]}):(0,a.jsx)(p,{className:(0,x.cn)("duplex"===I?"group relative mb-10 block w-310 overflow-hidden rounded-30 px-25 py-8 text-left font-medium text-20 leading-[24px] tracking-[0.25px] transition-all hover:bg-secondary/40":"c-linkline block font-semibold text-18 leading-[1.875]"),onClick:j,target:null==e||null==(s=e.link)?void 0:s.target,url:null!=(c=null==e||null==(i=e.link)?void 0:i.url)?c:"/",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(u=null==e||null==(r=e.link)?void 0:r.title)?u:""}})})},null==e||null==(o=e.link)?void 0:o.title)}),"duplex"===I&&(0,a.jsxs)("div",{className:"mt-30",children:[(0,a.jsx)("div",{className:"mb-7 pl-15 lg:pl-25",children:(0,a.jsx)("a",{className:"c-linkline text-14 leading-loose tracking-[0.18px]",href:"/privacy-policy",children:"Privacy Policy"})}),(0,a.jsx)("div",{className:"mb-7 pl-15 lg:pl-25",children:(0,a.jsx)("a",{className:"c-linkline text-14 leading-loose tracking-[0.18px]",href:"/terms-and-conditions",children:"Terms & Conditions"})}),(0,a.jsx)("div",{className:"mb-7 pl-15 lg:pl-25",children:(0,a.jsx)("a",{className:"c-linkline text-14 leading-loose tracking-[0.18px]",href:"/cookie-policy",children:"Cookie Policy"})})]}),"duplex"===I&&!!(null==T?void 0:T[0])&&(0,a.jsxs)(p,{className:"relative mt-auto block w-200 overflow-hidden rounded-10 bg-white p-15 text-left transition-all duration-300 hover:bg-tertiary",onClick:j,target:null==(i=T[0])||null==(n=i.link)?void 0:n.target,url:null!=(u=null==(d=T[0])||null==(o=d.link)?void 0:o.url)?u:"/",children:[!!(null==(c=T[0].image)?void 0:c.sourceUrl)&&(0,a.jsx)("div",{className:"relative h-109 overflow-hidden rounded-10",children:(0,a.jsx)(s.default,{alt:null!=(h=T[0].title)?h:"",blurDataURL:null!=(b=T[0].image.dataUrl)?b:void 0,className:"absolute inset-0 size-full object-cover object-center",fill:!0,placeholder:T[0].image.dataUrl?"blur":"empty",sizes:"(max-width: 1024px) 440px, 750px",src:T[0].image.sourceUrl})}),(0,a.jsxs)("div",{className:"b-5 pt-10",children:[!!T[0].title&&(0,a.jsx)("div",{className:"font-semibold text-14 text-primary tracking-[0.18px]",dangerouslySetInnerHTML:{__html:T[0].title}}),!!T[0].address&&(0,a.jsx)("div",{className:"mt-5 text-12 leading-[1.66666667] opacity-70",dangerouslySetInnerHTML:{__html:T[0].address}})]})]}),null==w?void 0:w.map(e=>{var l,t;return(null==e?void 0:e.sublinks)?(0,a.jsx)("div",{className:(0,x.cn)("absolute top-0 left-315 pr-20 pl-45 transition-all",v===(null==(l=e.link)?void 0:l.title)?"visible opacity-100":"invisible opacity-0"),children:e.sublinks.map(e=>{var l,t,n,s,i,r;return(0,a.jsx)("div",{className:(0,x.cn)("duplex"!==I&&"py-6"),children:(0,a.jsx)(p,{className:(0,x.cn)("duplex"===I?"group relative mb-10 block w-full overflow-hidden rounded-30 py-8 pr-35 pl-25 text-left font-normal text-16 leading-[24px] tracking-[0.2px] transition-all hover:bg-secondary/40":"c-linkline block text-16 leading-[1.875]"),onClick:j,target:null==e||null==(l=e.sublink)?void 0:l.target,url:null!=(i=null==e||null==(t=e.sublink)?void 0:t.url)?i:"/",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(r=null==e||null==(n=e.sublink)?void 0:n.title)?r:""}})})},null==e||null==(s=e.sublink)?void 0:s.title)})},null==(t=e.link)?void 0:t.title):null}),"duplex"===I&&!!S&&(0,a.jsx)("div",{className:(0,x.cn)("absolute top-0 left-315 text-balance pr-20 pl-45 font-medium text-26 text-primary leading-[1.875] tracking-[0.08px] transition-all lg:text-32",""===v?"opacity-100":"invisible opacity-0"),dangerouslySetInnerHTML:{__html:S}})]})})]})})})})}var b=t(70263),v=t(12342),g=t(33006),f=t(88253);let y=e=>{let{className:l,theme:t,ref:n,...s}=e;return(0,a.jsx)(g.LM,{className:(0,x.cn)("data-[state=open]:!duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-100 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-10 h-[var(--radix-navigation-menu-viewport-height)] w-full origin-top overflow-hidden border bg-header-st-bg text-header-st-lnk data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-0 md:w-[var(--radix-navigation-menu-viewport-width)]","apex"===t||"chalet"===t||"fascia"===t||"duplex"===t?"":"rounded-8","duplex"===t?"rounded-15 border-gray shadow-testimonial":"border-primary/20 shadow-toast",l),ref:n,...s})};y.displayName=g.LM.displayName;let j=e=>{let{children:l,className:t,offset:n,theme:s,transitionSubmenu:i,ref:r,...o}=e;return(0,a.jsxs)(g.bL,{className:(0,x.cn)("relative z-10 flex flex-1 items-center justify-center",t),ref:r,...o,children:[l,(0,a.jsx)("div",{className:(0,x.cn)("absolute top-full left-0 flex justify-center"),children:(0,a.jsx)("div",{className:(0,x.cn)("relative",i&&"transition-transform duration-200"),style:{transform:n?"translateX(".concat(n.toString(),"px)"):void 0},children:(0,a.jsx)("div",{className:"-translate-x-1/2 relative",children:(0,a.jsx)(y,{theme:s})})})})]})};j.displayName=g.bL.displayName;let k=e=>{let{className:l,ref:t,...n}=e;return(0,a.jsx)(g.B8,{className:(0,x.cn)("group flex flex-1 translate-x-1 list-none items-center justify-center space-x-4",l),ref:t,...n})};k.displayName=g.B8.displayName;let N=g.q7,w=(0,f.F)("group inline-flex h-40 w-max items-center justify-center bg-transparent py-8 pr-9 pl-12 font-header-items text-15 leading-normal tracking-[0.49px] transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50",{compoundVariants:[{className:"hover:bg-black/8 focus:bg-black/8 data-[active]:bg-black/8 data-[state=open]:bg-black/8",theme:["apex","chalet","fascia","duplex","gable"],variant:"default"},{className:"hover:bg-black/8 focus:bg-black/8 data-[active]:bg-black/8 data-[state=open]:bg-black/8",theme:["apex","chalet","fascia","gable"],variant:"opaque"},{className:"hover:shadow-menu-item focus:shadow-menu-item data-[active]:border-white data-[state=open]:border-white data-[active]:bg-white/40 data-[active]:shadow-menu-item data-[state=open]:shadow-menu-item",theme:["duplex"],variant:"opaque"},{className:"hover:bg-primary/5 focus:bg-primary/5 data-[active]:bg-primary/5 data-[state=open]:bg-primary/5",theme:"beam",variant:["default","opaque"]}],variants:{theme:{apex:"2xl:text-17",beam:"rounded-8 2xl:text-17",chalet:"2xl:text-17",duplex:"rounded-8",estate:"rounded-8 2xl:text-17",fascia:"font-bold 2xl:text-16",gable:""},variant:{default:"text-header-tr-lnk hover:text-header-tr-lnk focus:text-header-tr-lnk",opaque:"text-header-st-lnk hover:text-header-st-lnk focus:text-header-st-lnk"}}}),_=e=>{let{children:l,className:t,ref:n,...s}=e;return(0,a.jsxs)(g.l9,{className:(0,x.cn)("group",t),ref:n,...s,children:[l," ",(0,a.jsx)(u.I,{className:"relative top-[1px] ml-4 size-12 transition-transform group-data-[state=open]:rotate-180",name:"lucide/chevron-down"})]})};_.displayName=g.l9.displayName;let S=e=>{let{className:l,ref:t,...n}=e;return(0,a.jsx)(g.UC,{className:(0,x.cn)("data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out top-0 w-full min-w-[240px] py-10 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out md:absolute md:w-auto",l),ref:t,...n})};S.displayName=g.UC.displayName;let C=g.N_,M=e=>{let{className:l,ref:t,...n}=e;return(0,a.jsx)(g.C1,{className:(0,x.cn)("!duration-200 !ease-out top-full z-10 mt-1 flex h-10 items-end justify-center overflow-hidden transition-all data-[state=hidden]:opacity-0 data-[state=visible]:opacity-100",l),ref:t,...n,children:(0,a.jsx)("div",{className:"relative top-[60%] size-10 rotate-45 rounded-tl-2 border-primary/20 border-t border-l bg-header-st-bg"})})};function L(e){let{isOpaque:l,menu:t,theme:n}=e,i=(0,o.usePathname)(),[c,u]=(0,d.useState)(null),m=(0,v.Z)(c),[p,h]=(0,d.useState)(!1),[b,g]=(0,d.useState)(""),[f,y]=(0,d.useState)(null);(0,d.useEffect)(()=>{f?u(Math.round(f.offsetLeft+f.offsetWidth/2)):""===b&&u(null)},[f,b]),(0,d.useEffect)(()=>{c!==m&&null!==c&&null!==m?h(!0):null===c&&h(!1)},[c,m]);let L="beam"===n||"estate"===n?"rounded-8":"duplex"===n?"rounded-15":"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{"aria-hidden":"true",className:"sr-only",children:null==t?void 0:t.map(e=>{var l;return(null==e||null==(l=e.sublinks)?void 0:l.length)?e.sublinks.map(l=>{var t,n,s,i,o;return(null==l||null==(t=l.sublink)?void 0:t.url)?(0,a.jsx)("li",{children:(0,a.jsx)(r(),{href:l.sublink.url,prefetch:!1,tabIndex:-1,target:"_blank"===l.sublink.target?"_blank":void 0,children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(s=l.sublink.title)?s:""}})})},"".concat(null!=(i=null==(n=e.link)?void 0:n.title)?i:"","-").concat(null!=(o=l.sublink.title)?o:"")):null}):null})}),(0,a.jsx)(j,{offset:c,onValueChange:g,theme:n,transitionSubmenu:p,value:b,children:(0,a.jsxs)(k,{children:[null==t?void 0:t.map(e=>{var t,o,d,c,u,m,p,h,v,g,j,k,M,z;return(0,a.jsx)(N,{value:null!=(g=null==e||null==(t=e.link)?void 0:t.t
1itle)?g:"",children:(null==e?void 0:e.sublinks)?(0,a.jsxs)(a.Fragment,{children:[(null==(o=e.link)?void 0:o.url)&&"#"!==e.link.url?(0,a.jsx)(r(),{href:e.link.url,legacyBehavior:!0,passHref:!0,children:(0,a.jsx)(_,{className:w({theme:n,variant:l?"opaque":"default"}),ref:l=>{var t;(null==(t=e.link)?void 0:t.title)===b&&f!==l&&y(l)},...e.link.url===i||e.sublinks.some(e=>{var l;return(null==e||null==(l=e.sublink)?void 0:l.url)===i})?{"data-active":"true"}:{},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(j=e.link.title)?j:""}})})},e.link.title):(0,a.jsx)(_,{className:w({theme:n,variant:l?"opaque":"default"}),ref:l=>{var t;(null==(t=e.link)?void 0:t.title)===b&&f!==l&&y(l)},...e.sublinks.some(e=>{var l;return(null==e||null==(l=e.sublink)?void 0:l.url)===i})?{"data-active":"true"}:{},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(k=null==(d=e.link)?void 0:d.title)?k:""}})}),(0,a.jsx)(S,{children:(0,a.jsxs)("div",{className:(0,x.cn)("flex","duplex"===n?"p-10":"px-5"),children:[e.sublinks.filter(e=>{var l;return null==e||null==(l=e.image)?void 0:l.sourceUrl}).map(e=>{var l,t,o,d,c,u,m,p,h,b,v;return(0,a.jsx)("div",{className:(0,x.cn)("px-5","duplex"===n?"w-200":"w-240"),children:(0,a.jsx)(r(),{href:null!=(p=null==e||null==(l=e.sublink)?void 0:l.url)?p:"",legacyBehavior:!0,passHref:!0,children:(0,a.jsxs)(C,{active:(null==e||null==(t=e.sublink)?void 0:t.url)===i,className:(0,x.cn)("relative block h-full overflow-hidden text-header-st-lnk transition-all hover:bg-black/5 hover:ring-4 hover:ring-black/8","duplex"===n?"p-5":"border border-black/8 bg-black/5",L),target:(null==e||null==(o=e.sublink)?void 0:o.target)?"_blank":void 0,children:[!!(null==e||null==(d=e.image)?void 0:d.sourceUrl)&&(0,a.jsx)("div",{className:(0,x.cn)("relative overflow-hidden","duplex"===n?"h-110":"h-150",L),children:(0,a.jsx)(s.default,{alt:null!=(h=null==(c=e.sublink)?void 0:c.title)?h:"",blurDataURL:null!=(b=e.image.dataUrl)?b:void 0,className:"object-cover object-center",fill:!0,placeholder:e.image.dataUrl?"blur":"empty",sizes:"240px",src:e.image.sourceUrl})}),(0,a.jsxs)("div",{className:"mt-15 px-12 pb-20",children:[(0,a.jsx)("div",{className:(0,x.cn)("font-bold text-header-st-lnk leading-tight","duplex"===n?"text-14":"text-16"),dangerouslySetInnerHTML:{__html:null!=(v=null==e||null==(u=e.sublink)?void 0:u.title)?v:""}}),!!(null==e?void 0:e.description)&&(0,a.jsx)("div",{className:(0,x.cn)("mt-8 text-header-st-lnk leading-normal","duplex"===n?"text-12":"text-14"),dangerouslySetInnerHTML:{__html:e.description}})]})]})})},null==e||null==(m=e.sublink)?void 0:m.title)}),e.sublinks.filter(e=>{var l;return!(null==e||null==(l=e.image)?void 0:l.sourceUrl)}).length>0&&(0,a.jsx)("div",{className:"flex min-w-200 grow flex-col space-y-4 px-5",children:e.sublinks.filter(e=>{var l;return!(null==e||null==(l=e.image)?void 0:l.sourceUrl)}).map(e=>{var l,t,s,o,d,c,u,m;return(0,a.jsx)("div",{className:"block",children:(0,a.jsx)(r(),{href:null!=(c=null==e||null==(l=e.sublink)?void 0:l.url)?c:"",legacyBehavior:!0,passHref:!0,children:(0,a.jsx)(C,{active:(null==e||null==(t=e.sublink)?void 0:t.url)===i,className:(0,x.cn)("block w-full whitespace-nowrap py-8 pr-30 pl-12 text-header-st-lnk leading-[24px] transition-all duration-100 hover:bg-black/8 data-[active]:bg-black/8","duplex"===n?"text-16":"text-17",L),target:(null==e||null==(s=e.sublink)?void 0:s.target)?"_blank":void 0,children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(u=null==e||null==(o=e.sublink)?void 0:o.title)?u:""}})})})},null!=(m=null==e||null==(d=e.sublink)?void 0:d.title)?m:"")})})]})})]}):(0,a.jsx)(r(),{href:null!=(M=null==e||null==(c=e.link)?void 0:c.url)?M:"",legacyBehavior:!0,passHref:!0,children:(0,a.jsx)(C,{active:(null==e||null==(u=e.link)?void 0:u.url)===i,className:w({theme:n,variant:l?"opaque":"default"}),target:(null==e||null==(m=e.link)?void 0:m.target)?"_blank":void 0,children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(z=null==e||null==(p=e.link)?void 0:p.title)?z:""}})})},null==e||null==(h=e.link)?void 0:h.title)},null==e||null==(v=e.link)?void 0:v.title)}),(0,a.jsx)(M,{})]})})]})}M.displayName=g.C1.displayName;var z=t(16172),H=t(17213),I=t(29676),T=t(12087),D=t(81534),U=t(61043),P=t(54055);function W(e){var l,t,i,m,v,g,f,y;let{addressLocality:j,addressRegion:k,customListingsPages:N,emailAddress:w,fullHeightHamburgerMenu:_,hamburgerMenu:S,hamburgerMenuContactDetailsTitle:C,hamburgerMenuContent:M,headerButton:W,headerGhostButton:B,headerLogoAltPosition:E,headerMainMenu:q,headerPropertySearch:O,headerPropertySearchHamlet:R,headerPropertySearchLabel:F,headerPropertySearchStyle:V,headerPropertySearchVisibleLabel:A,headerSmallerSpacing:G,hideTopBar:K,logo:Q,logoDark:$,phoneNumber:X,postalCode:Y,streetAddress:Z,theme:J,topBarContactDetails:ee,topB
1arLinks:el}=e,et=U.C.use.opaqueHeader(),ea=U.C.use.customLogo(),en=U.C.use.customDarkLogo(),es=U.C.use.customLogoMobileMaxWidth(),ei=U.C.use.customLogoDesktopMaxWidth(),er=U.C.use.showPropertySearchDrawer(),eo=U.C.use.showPropertySearchDrawerSet(),ed=U.C.use.showSparkySet(),ec=U.C.use.topBarVisible(),eu=P.U.use.currentOffice(),{setLocked:em}=(0,D.Q)(),{scrollDirection:ep,scrollPosition:{top:ex}}=(0,I._l)(),[eh,eb]=(0,d.useState)(!1),[ev,eg]=(0,d.useState)(""),[ef,ey]=(0,d.useState)([]),[ej,ek]=(0,d.useState)(""),[eN,ew]=(0,d.useState)(!1),e_=(0,o.usePathname)(),eS=null==N?void 0:N.map(e=>null==e?void 0:e.listingSlug).filter(Boolean).map(e=>"".concat(e,"-properties")),eC=(0,T.W)(eS,J),eM=(0,c.Ub)("(max-width: 769px)"),eL=(0,c.DE)(),ez=null==N?void 0:N.find(e=>{var l,t;return e_.includes("".concat(null!=(t=null==e?void 0:e.listingSlug)?t:"","-properties"))||["property-for-sale","property-to-rent","holiday-let"].some(e=>e_.includes(e))&&(null==e||null==(l=e.branches)?void 0:l.some(e=>(null==e?void 0:e.title)===eu))}),[eH,eI]=(0,d.useState)(()=>(null==ez?void 0:ez.logo)?ez.logo:eC&&ea?ea:Q),[eT,eD]=(0,d.useState)(()=>(null==ez?void 0:ez.logo)?ez.logo:eC&&en?en:$),[eU,eP]=(0,d.useState)(()=>(null==ez?void 0:ez.logoMobileMaxWidth)?ez.logoMobileMaxWidth:eC&&es?es:null),[eW,eB]=(0,d.useState)(()=>(null==ez?void 0:ez.logoDesktopMaxWidth)?ez.logoDesktopMaxWidth:eC&&ei?ei:null);function eE(){eb(!1),eg(""),ey([]),ek("")}return(0,d.useEffect)(()=>{let e=null==N?void 0:N.find(e=>{var l,t;return e_.includes("".concat(null!=(t=null==e?void 0:e.listingSlug)?t:"","-properties"))||["property-for-sale","property-to-rent","holiday-let"].some(e=>e_.includes(e))&&(null==e||null==(l=e.branches)?void 0:l.some(e=>(null==e?void 0:e.title)===eu))});eP((null==e?void 0:e.logoMobileMaxWidth)?e.logoMobileMaxWidth:eC&&es?es:null),eB((null==e?void 0:e.logoDesktopMaxWidth)?e.logoDesktopMaxWidth:eC&&ei?ei:null),eI((null==e?void 0:e.logo)?e.logo:eC&&ea?ea:Q),eD((null==e?void 0:e.logo)?e.logo:eC&&en?en:$)},[e_,ea,en,ei,es,ez,Q,$,eC,N,eu]),(0,d.useEffect)(()=>{eh?em(!0):em(!1)},[eh,em]),(0,d.useEffect)(()=>{eL&&(ex>50||et||!eC||er)?ew(!0):ew(!1)},[ex,et,eC,eL,er,J]),(0,a.jsxs)("div",{style:eW&&eU?{"--logo-desk-width":"".concat(eW.toString(),"px"),"--logo-mob-width":"".concat(eU.toString(),"px")}:{},children:[(0,a.jsx)("button",{className:(0,x.cn)("fixed inset-x-0 top-48 bottom-0 hidden cursor-default transition-all duration-300 lg:block",eh?"visible opacity-100":"invisible opacity-0","duplex"===J?"bg-black/40":"bg-black/0"),onClick:()=>{eb(!1)},type:"button"}),!!S&&(0,a.jsx)(h,{activeHamburgerMenu:ej,activeHamburgerMenuSet:ek,addressLocality:j,addressRegion:k,closeAllMenus:eE,emailAddress:w,fullHeightHamburgerMenu:_,hamburgerMenu:S,hamburgerMenuContactDetailsTitle:C,hamburgerMenuContent:M,isOpen:eh,logo:eH,phoneNumber:X,postalCode:Y,streetAddress:Z,theme:J,topBarContactDetails:ee}),(0,a.jsxs)("div",{className:(0,x.cn)("relative z-10 transition",!ec&&"md:z-20",eN?"header-sticky":"chalet"===J?"header-non-sticky":""),children:[(0,a.jsxs)("div",{className:(0,x.cn)("flex items-center justify-between py-10 transition-all","chalet"===J?"px-14":"pr-13 pl-20 md:pr-20",G?"":"md:py-20","duplex"===J?"lg:px-30 xl:px-45 2xl:px-65":"lg:px-25",!K&&ex>100&&ep===I.OP.Down&&!eh&&"md:-translate-y-48",K&&ex>100&&ep===I.OP.Down&&!eh&&"md:-translate-y-header-height",eN&&"chalet"!==J&&"shadow-header","chalet"===J&&ex>50&&"shadow-header",eN&&S&&eh&&"duplex"!==J&&"lg:!bg-transparent lg:!shadow-none",eN&&S&&!eh&&"delay-200",!eN&&"apex"===J&&!eh&&"bg-gradient-to-b from-black/30 to-transparent",eN&&("duplex"===J||"beam"===J?"bg-header-st-bg/90 backdrop-blur-[14px]":"bg-header-st-bg")),children:[(0,a.jsxs)("div",{className:(0,x.cn)("flex items-center transition-all","beam"!==J&&"fascia"!==J&&"grow justify-between",eh&&S&&"duplex"!==J&&"lg:invisible lg:opacity-0",!eh&&S&&"delay-200"),children:[(0,a.jsxs)(r(),{className:(0,x.cn)("relative inline-block max-w-logo-mob-width shrink-0 md:max-w-logo-desk-width",E&&"-mb-30 md:-top-7 md:-mb-60"),href:"/",children:[!!(null==eH?void 0:eH.sourceUrl)&&(0,a.jsx)(s.default,{alt:"Logo",className:(0,x.cn)("h-auto w-full transition-opacity",eN?"opacity-0":"opacity-100"),height:Number(null==(l=eH.mediaDetails)?void 0:l.height),priority:!0,src:eH.sourceUrl,width:Number(null==(t=eH.mediaDetails)?void 0:t.width)}),!!(null==eT?void 0:eT.sourceUrl)&&(0,a.jsx)(s.default,{alt:"Logo",className:(0,x.cn)("absolute inset-0 h-auto w-full transition-opacity",eN?"opacity-100":"opacity-0"),height:Number(null==eH||null==(i=eH.mediaDetails)?void 0:i.height),priority:!0,src:eT.sourceUrl,width:Number(null==eH||null==(m
1=eH.mediaDetails)?void 0:m.width)})]}),!!q&&(0,a.jsx)("div",{className:(0,x.cn)("hidden xl:block","beam"===J||"gable"===J?"mx-20 2xl:ml-30":"mx-auto pl-30 xl:pl-20 2xl:pl-50","beam"!==J&&"fascia"!==J&&(null==B?void 0:B.title)&&"3xl:!ml-0","duplex"===J&&"!mr-0","fascia"===J&&"xl:ml-30"),children:(0,a.jsx)(L,{isOpaque:eN,menu:q,theme:J})})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center",children:[("beam"===J||"fascia"===J)&&(0,a.jsx)(b.HeaderSaved,{isOpaque:eN||eh,theme:J,variant:"header"}),!O&&!!(null==B?void 0:B.title)&&!!B.url&&(0,a.jsx)(H.z,{className:(0,x.cn)("header-ghost-button !hidden !px-24 sm:!inline-block md:!leading-[42px] ml-30 xl:ml-20 2xl:ml-50","beam"===J&&"!text-14"),href:B.url,onClick:eE,openNewTab:(null==B?void 0:B.target)==="_blank",prefetch:!1,theme:J,variant:"apex"===J||"chalet"===J||"fascia"===J||"gable"===J?"headerGhost":"beam"!==J||eN?"ghostPrimary":"ghostWhite",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:B.title}})}),!!O&&(0,a.jsxs)(z.$,{className:(0,x.cn)("header-ghost-button !hidden !px-24 md:!inline-flex md:!leading-[42px] ml-30 items-center xl:ml-20 2xl:ml-50","beam"===J&&"!text-14"),onClick:()=>{eo(!er)},theme:J,variant:"secondary"===V?"secondary":"primary"===V?"primary":"apex"===J||"chalet"===J||"fascia"===J||"gable"===J?"headerGhost":"ghostPrimary",children:[(0,a.jsx)("span",{className:"mr-10 hidden 2xl:inline-flex",children:er?(0,a.jsx)(u.I,{className:"size-20",name:"lucide/x"}):(0,a.jsx)(u.I,{className:"size-20",name:"lucide/search"})}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:er?null!=A?A:"":null!=F?F:""}})]}),!!R&&(0,a.jsxs)(z.$,{className:(0,x.cn)("header-ghost-button !hidden !px-24 md:!inline-flex md:!leading-[42px] ml-30 items-center xl:ml-20 2xl:ml-50","beam"===J&&"!text-14"),onClick:()=>{ed(!0)},theme:J,variant:"secondary"===V?"secondary":"primary"===V?"primary":"apex"===J||"chalet"===J||"fascia"===J||"gable"===J?"headerGhost":"ghostPrimary",children:[(0,a.jsx)("span",{className:"mr-10 hidden 2xl:inline-flex",children:(0,a.jsx)(u.I,{className:"size-20",name:"lucide/search"})}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=F?F:""}})]}),!!(null==W?void 0:W.title)&&!!W.url&&(0,a.jsx)(H.z,{className:(0,x.cn)("header-button !hidden !px-24 sm:!inline-block md:!leading-[42px]","duplex"===J&&"is-duplex","chalet"===J&&"is-chalet",(null==B?void 0:B.title)||O||R?"ml-15 2xl:ml-20":"ml-30 xl:ml-20 2xl:ml-50","beam"===J&&"!text-14"),href:W.url,onClick:eE,openNewTab:(null==W?void 0:W.target)==="_blank",prefetch:!1,theme:J,variant:"apex"===J||"fascia"===J||"gable"===J?"header":"secondary",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:W.title}})}),!!(("beam"===J||"apex"===J||"chalet"===J||"fascia"===J||"gable"===J||"duplex"===J)&&eN)&&(0,a.jsxs)("span",{className:(0,x.cn)("relative ml-15 text-header-st-lnk",!S&&"xl:hidden"),children:[(0,a.jsx)(n.o,{label:"Open Menu",size:34,toggle:eb,toggled:eh}),!!S&&(0,a.jsx)("span",{className:(0,x.cn)("absolute inset-0 text-header-tr-lnk transition-all",eh?"opacity-100":"opacity-0"),children:(0,a.jsx)(n.o,{label:"Open Menu",size:34,toggle:eb,toggled:eh})})]}),("apex"===J||"chalet"===J||"fascia"===J||"duplex"===J||"beam"===J||"gable"===J)&&!eN&&(0,a.jsx)("span",{className:(0,x.cn)("ml-15 text-header-tr-lnk",!S&&"xl:hidden"),children:(0,a.jsx)(n.o,{label:"Open Menu",size:34,toggle:eb,toggled:eh})})]})]}),(0,a.jsx)("button",{className:(0,x.cn)("fixed inset-x-0 top-48 bottom-0 hidden cursor-default bg-black/50 transition-all duration-300 lg:hidden",eh?"visible opacity-100":"invisible opacity-0"),onClick:()=>{eb(!1)},type:"button"}),(0,a.jsxs)("div",{className:(0,x.cn)("fixed right-0 bottom-0 z-50 w-full overflow-hidden transition-all duration-300 ease-in-out md:top-48 lg:max-w-[680px]",eh?"translate-x-0":"translate-x-full","beam"===J&&"lg:bg-transparent","duplex"===J?"bg-white text-black":"bg-header-ov-bg text-topbar-txt",S?"lg:hidden":"xl:hidden",K?"top-0":"top-40"),children:["beam"===J&&(0,a.jsx)("div",{className:"-translate-y-1/2 absolute top-1/2 left-0 hidden size-[8000px] rounded-full bg-topbar-bg lg:block"}),(0,a.jsx)("div",{className:"relative h-full overflow-y-scroll",children:(0,a.jsxs)("div",{className:(0,x.cn)("relative min-h-[calc(100svh-40px)]",(null==W?void 0:W.title)&&(null==B?void 0:B.title)?"pb-140":"pb-100"),children:[(0,a.jsxs)("div",{className:(0,x.cn)("sticky top-0 z-10 flex items-center justify-between border-white/10 border-b-2 py-10 pr-10 pl-20 md:py-20 md:pr-20 lg:justify-end lg:border-transparent","duplex"===J?"bg-white":"bg-header-ov-bg"),children:[(0,a.jsxs)(r(),{className:"relative inline-block max-w-logo-mob-width md:max-w-logo-desk-width lg:hidden",href:"/",onClick:eE,prefetch:!1,children:["duplex"!==J&&"beam"!==J&&!!(null==eH?void 0:eH.sourceUrl)&&(0,a.jsx)(s.default,{alt:"Logo",className:"h-auto w-full",height:Number(null==(v=eH.mediaDetails)?void 0:v.height),src:eH.sourceUrl,width:Number(null==(g=eH.mediaDetails)?void 0:g.width)}),("duplex"===J||"beam"===J)&&!!(null==eT?void 0:eT.sourceUrl)&&(0,a.jsx)(s.default,{alt:"Logo",className:"h-auto w-full",height:Number(null==(f=eT.mediaDetails)?void 0:f.height),src:eT.sourceUrl,width:Number(null==(y=eT.mediaDetails)?void 0:y.width)})]}),(0,a.jsxs)("div",{className:"flex items-center",children:["beam"===J&&(0,a.jsx)(b.HeaderSaved,{isOpaque:eN||eh,theme:J,variant:"header"}),(0,a.jsx)("button",{"aria-label":"Close Menu",className:(0,x.cn)("ml-15 flex size-[34px] items-center justify-center","duplex"===J?"text-black":"text-topbar-lnk"),onClick:()=>{eb(!1)},type:"button",children:(0,a.jsx)(u.I,{className:"size-34",name:"lucide/x"})})]})]}),(0,a.jsxs)("div",{className:(0,x.cn)("relative overflow-hidden md:mt-40 md:ml-100 md:max-w-[440px]",(null==B?void 0:B.url)?"min-h-[calc(100svh-250px)] md:min-
1h-0":"min-h-[calc(100svh-210px)] md:min-h-0"),children:[(0,a.jsxs)("div",{className:"px-20 pt-15 pb-20",style:{minHeight:"".concat((ef.length*(eM?55:72)).toString(),"px")},children:[!!O&&(0,a.jsx)("div",{className:"c-linkline__parent group relative w-full transition-all duration-300 hover:opacity-60",children:(0,a.jsx)(p,{className:(0,x.cn)("group relative block w-full text-left font-heading leading-none md:py-20 md:text-25","duplex"===J?"font-semibold text-black":"text-topbar-lnk","chalet"===J?"py-12 text-20":"py-14 text-22"),onClick:eE,url:"/properties",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=F?F:"Property Search"}})})}),[...q||[],...S||[]].map(e=>{var l,t,n,s,i,r,o,d,c,m,h;let b=(0,x.cn)("group relative block w-full text-left leading-none md:py-20 md:text-25","duplex"===J?"font-semibold text-black":"text-topbar-lnk","chalet"===J?"py-12 text-20":"py-14 text-22");return(0,a.jsx)("div",{className:"c-linkline__parent group relative w-full transition-all duration-300 hover:opacity-60",children:(null==e||null==(l=e.sublinks)?void 0:l.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{"aria-label":"Open ".concat(null!=(d=null==(t=e.link)?void 0:t.title)?d:""," submenu"),className:(0,x.cn)(b,"appearance-none"),onClick:()=>{var l,t;eg(null!=(t=null==(l=e.link)?void 0:l.title)?t:""),ey(e.sublinks)},type:"button",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(c=null==e||null==(n=e.link)?void 0:n.title)?c:""}})}),(0,a.jsx)("span",{"aria-hidden":"true",className:(0,x.cn)("-translate-y-1/2 pointer-events-none absolute top-1/2 right-0","duplex"===J?"text-black":"text-white"),children:(0,a.jsx)(u.I,{className:"size-15",name:"lucide/chevron-right"})})]}):(0,a.jsx)(p,{className:b,onClick:eE,target:null==e||null==(s=e.link)?void 0:s.target,url:null!=(m=null==e||null==(i=e.link)?void 0:i.url)?m:"/",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(h=null==e||null==(r=e.link)?void 0:r.title)?h:""}})})},null==e||null==(o=e.link)?void 0:o.title)}),null==el?void 0:el.map(e=>{var l,t;return(null==e||null==(l=e.link)?void 0:l.url)&&e.link.title?(0,a.jsx)("div",{className:"c-linkline__parent group relative w-full transition-all duration-300 hover:opacity-60",children:(0,a.jsx)(p,{className:(0,x.cn)("group relative block w-full text-left leading-none md:py-20 md:text-25","duplex"===J?"font-semibold text-black":"text-topbar-lnk","chalet"===J?"py-12 text-20":"py-14 text-22"),onClick:eE,target:null==(t=e.link)?void 0:t.target,url:e.link.url,children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:e.link.title}})})},e.link.title):null})]}),(0,a.jsxs)("div",{className:(0,x.cn)("absolute inset-0 transition-all duration-300","duplex"===J?"bg-white text-black":"bg-header-ov-bg",""!==ev?"translate-x-0 md:visible md:opacity-100":"translate-x-full md:invisible md:translate-x-0 md:opacity-0"),children:[(0,a.jsx)("div",{className:(0,x.cn)("border-white/10 border-b-2 px-20 pt-24 pb-20 text-22 md:border-transparent md:pt-29 md:text-25","duplex"===J?"tex-black font-semibold":"text-topbar-lnk"),children:(0,a.jsxs)("button",{"aria-label":"Go back to main menu",className:"flex w-full items-center transition-all duration-300 hover:opacity-60",onClick:()=>{eg(""),ey([])},type:"button",children:[(0,a.jsx)(u.I,{className:"size-15",name:"lucide/arrow-left"}),(0,a.jsx)("span",{className:"ml-15",dangerouslySetInnerHTML:{__html:ev}}),"\xa0"]})}),ef.length>0&&(0,a.jsx)("div",{className:"px-20 pt-20",children:ef.map(e=>{var l,t;let{sublink:n}=e;return(0,a.jsx)(p,{className:(0,x.cn)("block w-full py-10 pl-30 text-left text-17 transition-all duration-300 hover:opacity-60 md:py-15 md:text-19","duplex"===J?"font-semibold text-black":"text-topbar-lnk"),onClick:eE,target:null==n?void 0:n.target,url:null!=(l=null==n?void 0:n.url)?l:"/",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:null!=(t=null==n?void 0:n.title)?t:""}})},null==n?void 0:n.title)})})]})]}),!!((null==W?void 0:W.title)&&W.url||(null==B?void 0:B.title)&&B.url)&&(0,a.jsxs)("div",{className:(0,x.cn)("absolute inset-x-0 bottom-0 flex flex-wrap items-center px-20 md:pb-60 md:pl-120","chalet"===J?"pb-50":"pb-30"),children:[!!(null==W?void 0:W.title)&&!!W.url&&(0,a.jsx)(H.z,{className:"sm:!inline-block mt-10 mr-10 sm:mr-20",href:W.url,onClick:eE,openNewTab:(null==W?void 0:W.target)==="_blank",prefetch:!1,size:"beam"===J?"lg":"md",theme:J,variant:"duplex"===J||"beam"===J?"secondary":"ghostWhite",children:(0,a.jsx)("span",{className:"relative",dangerouslySetInnerHTML:{__html:W.title}}
1)}),!!(null==B?void 0:B.title)&&!!B.url&&(0,a.jsx)(H.z,{className:"sm:!inline-block mt-10",href:B.url,onClick:eE,openNewTab:(null==B?void 0:B.target)==="_blank",prefetch:!1,size:"beam"===J?"lg":"md",theme:J,variant:"duplex"===J||"beam"===J?"secondary":"ghostWhite",children:(0,a.jsx)("span",{className:"relative",dangerouslySetInnerHTML:{__html:B.title}})})]})]})})]})]})]})}},56112:(e,l,t)=>{t.d(l,{FooterColumnContent:()=>i});var a=t(85664),n=t(89309),s=t(96777);function i(e){let{content:l,footerStyle:t}=e,i=(0,n.useRouter)();function r(e){let l=e.target.closest("a");if(!l)return;let t=l.getAttribute("href");(null==t?void 0:t.startsWith("/"))&&(e.preventDefault(),i.push(t))}return(0,a.jsx)("div",{className:(0,s.cn)("c-footer__content mt-5 text-15 leading-[1.875]","beam"===t&&"tracking-[0.39px]",("apex"===t||"fascia"===t)&&"lg:text-16","fascia"===t&&"opacity-70 md:mt-20","duplex"===t&&"md:mt-15"),dangerouslySetInnerHTML:{__html:l},onClick:r,onKeyDown:r})}},63115:(e,l,t)=>{t.d(l,{HeaderContainer:()=>i});var a=t(85664),n=t(63276),s=t(3589);function i(e){let{children:l}=e,t=(0,n.useRef)(null),{height:i=0}=(0,s.wY)({ref:t});return(0,n.useEffect)(()=>{i>0&&(document.body.style.setProperty("--header-height-mobile","".concat((i/16).toString(),"rem")),document.body.style.setProperty("--header-height-desktop","".concat((i/16).toString(),"rem")))},[i]),(0,a.jsx)("div",{ref:t,children:l})}},70263:(e,l,t)=>{t.d(l,{HeaderSaved:()=>u});var a=t(85664),n=t(76392),s=t.n(n),i=t(74348),r=t(54055),o=t(96777);function d(e,l,t){return e>0?"<strong>".concat(e.toString(),"</strong> ").concat(e>1?t:l):null}function c(e){let{theme:l,variant:t}=e,n=r.U.use.savedSearches(),s=r.U.use.valuations(),i=r.U.use.favorites(),c=d(s.length,"valuation","valuations"),u=d(n.length,"saved search","saved searches"),m=d(i.length,"saved property","saved properties");return(0,a.jsxs)("div",{className:(0,o.cn)("-translate-x-10 -translate-y-1/2 group-hover:-translate-x-15 invisible absolute top-1/2 right-full z-10 hidden cursor-pointer whitespace-nowrap px-10 py-5 text-12 opacity-0 shadow-md transition-all duration-300 group-hover:visible group-hover:opacity-100 md:block",("beam"===l||"duplex"===l||"estate"===l)&&"rounded-4",("header"===t||"topbar"===t)&&"bg-secondary text-white","light"===t&&"bg-white text-secondary"),children:[(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:[c,u,m].filter(Boolean).join(", ")}}),(0,a.jsx)("div",{className:(0,o.cn)("-translate-y-1/2 absolute top-1/2 left-full size-0 border-transparent border-y-[6.5px] border-r-0 border-l-[7px]",("header"===t||"topbar"===t)&&"border-l-secondary","light"===t&&"border-l-white")})]})}function u(e){let{isOpaque:l,theme:t,variant:n}=e,d=r.U.use.savedSearches(),u=r.U.use.valuations(),m=r.U.use.favorites().length+d.length+u.length,p=m>0;return(0,a.jsxs)(s(),{"aria-label":"Saved Properties",className:(0,o.cn)("group relative","topbar"===n&&"flex min-h-40 w-40 items-center justify-center text-topbar-lnk transition-colors md:min-h-48 md:w-48","light"===n&&"text-white","header"===n&&(l?"text-header-st-lnk":"text-header-tr-lnk"),"duplex"!==t&&"fascia"!==t&&"beam"!==t&&"bg-black/30 hover:bg-black/60"),href:"/saved-properties",prefetch:!1,children:[(0,a.jsx)(i.I,{className:(0,o.cn)("duplex"===t?"size-20":"topbar"===n?"size-26":"size-34"),name:"custom/heart-outline"}),!!p&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,o.cn)("-translate-y-1/2 absolute top-1/2 flex size-20 items-center justify-center rounded-full font-mono text-12","duplex"===t?"-right-5":"-right-10","light"===n&&"bg-white text-secondary",("header"===n||"topbar"===n)&&"duplex"!==t&&"bg-secondary text-white",("header"===n||"topbar"===n)&&"duplex"===t&&"bg-primary text-white"),children:m}),(0,a.jsx)(c,{theme:t,variant:n})]})]})}},73248:(e,l,t)=>{t.d(l,{HeaderModeSwitch:()=>r});var a=t(85664),n=t(63276),s=t(12087),i=t(61043);function r(e){let{customListingsPagesSlugs:l,minimal:t,standard:r,theme:o}=e,d=i.C.use.minimalHeader(),c=(0,s.W)(l,o),[u,m]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{m(!0)},[]),u)?d&&c?(0,a.jsx)("div",{className:"!contents header-mode-minimal",children:t}):(0,a.jsx)("div",{className:"!contents header-mode-standard",children:r}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"header-mode-standard",children:r}),(0,a.jsx)("div",{className:"header-mode-minimal",children:t})]})}},83694:(e,l,t)=>{t.d(l,{TopBarToggle:()=>r});var a=t(85664),n=t(74348),s=t(61043),i=t(96777);function r(e){let{label:l,theme:t}=e,r=s.C.use.topBarVisible(),o=s.C.use.topBarVisibleSet();return(0,a.jsx)("div",{className:"pr-30 lg:pr-40 xl:pr-65",children:(0,a.jsxs)("button",{className:(0,i.cn)("topbar-toggle group inline-flex items-center pb-1 text-topbar-txt leading-normal","beam"
1===t?"text-16":"text-14"),onClick:()=>{o(!r)},type:"button",children:[(0,a.jsx)("span",{className:"pointer-events-none mr-5 border-transparent border-b font-bold transition-all group-hover:border-topbar-lnk",dangerouslySetInnerHTML:{__html:l}}),(0,a.jsx)("span",{className:(0,i.cn)("-top-1 pointer-events-none relative transition-all",r?"group-hover:-translate-y-2":"group-hover:translate-y-2"),children:(0,a.jsx)(n.I,{className:(0,i.cn)("size-15 transition-all","chalet"===t||"apex"===t?"text-secondary":"text-topbar-lnk",r&&"rotate-180"),name:"lucide/arrow-down"})})]})})}},92706:(e,l,t)=>{t.d(l,{HeaderPropertySearch:()=>v});var a=t(85664),n=t(36338),s=t(89309),i=t(63276),r=t(74348),o=t(34989),d=t(17213),c=t(34444),u=t(39741),m=t(61043),p=t(96777),x=t(15179),h=t(30388);let b=(0,n.default)(()=>Promise.all([t.e(1453),t.e(4456),t.e(8595)]).then(t.bind(t,48595)).then(e=>({default:e.HamletLottie})),{loadableGenerated:{webpack:()=>[48595]},ssr:!1});function v(e){let{addParkHomesPropertyType:l,addHolidayHomesPropertyType:t,addGolfPropertyType:n,addStudentLetPropertyType:v,autoPopulateResidentialTypes:g,defaultView:f,disableLettingsDepartment:y,disableSalesDepartment:j,enableCommercialLettingsDepartment:k,enableCommercialSalesDepartment:N,grayColor:w,hideSoldLetToggleDefaultValue:_,maxPricesLettings:S,maxPricesSales:C,minPricesLettings:M,minPricesSales:L,primaryColor:z,propertyListingDefaultType:H,secondaryColor:I,suggestions:T,theme:D,warningColor:U}=e,P=m.C.use.showPropertySearchDrawer(),W=m.C.use.showPropertySearchDrawerSet(),B=m.C.use.showSparky(),E=m.C.use.showSparkySet(),q=(0,s.useRouter)(),[O,R]=(0,i.useState)(""),[F,V]=(0,i.useState)(null!=H?H:"for-sale"),[A,G]=(0,i.useState)("/properties/".concat(null!=H?H:"","/")),[K,Q]=(0,i.useState)("for-sale"===H?L:M),[$,X]=(0,i.useState)("for-sale"===H?C:S),[Y,Z]=(0,i.useState)("0"),[J,ee]=(0,i.useState)("0"),[el,et]=(0,i.useState)("0"),[ea,en]=(0,i.useState)("0"),[es,ei]=(0,i.useState)("0"),er=k||N?T.propertyTypes.filter(e=>"commercial"!==e.value):T.propertyTypes,eo=[l&&{text:"Park Homes",value:"park-homes"},t&&{text:"Holiday Homes",value:"holiday-homes"},n&&{text:"Golf",value:"golf"},v&&"to-rent"===F&&{text:"Student Let",value:"student-let"}].filter(Boolean).reduce((e,l)=>(0,h.y)(l,e,"Studio"),u.kf),ed=k||N?eo.filter(e=>"commercial"!==e.value):eo;return(0,i.useEffect)(()=>{"to-rent"===F?(Q(M),X(S)):(Q(L),X(C)),Z("0"),ee("0")},[S,C,M,L,F]),(0,i.useEffect)(()=>{""===O&&et("0")},[O]),(0,i.useEffect)(()=>{G((0,x.YQ)({defaultView:f,department:["for-sale","to-rent"].includes(F)?F:"for-sale",hide:_?"completed":"",location:O,maxPrice:J,minBeds:ea,minPrice:Y,propertyType:es,radius:""!==O?el:"0",showOnly:["new-homes","period-homes"].includes(F)?F:void 0}))},[f,F,O,Y,J,ea,el,es,_,W]),(0,a.jsx)("div",{className:(0,p.cn)("fixed inset-x-0 top-0 hidden bg-white pt-header-height shadow-header transition-all md:block",P?"translate-y-0 opacity-100":"-translate-y-full opacity-0"),children:(0,a.jsx)("div",{className:"py-25 xl:py-35",children:(0,a.jsx)("div",{className:(0,o.c)({theme:D}),children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("div",{className:"-mx-7 flex flex-wrap items-center",children:[(0,a.jsxs)("div",{className:"relative mb-14 flex w-1/2 grow px-7",children:[(0,a.jsx)("input",{autoComplete:"off",className:(0,p.cn)("mb-2 block w-full border-2 border-bordergray shadow-none outline-none transition-all duration-300 placeholder:text-placeholder hover:border-secondary focus:border-secondary focus:shadow-none focus:outline-none focus:ring-0","duplex"!==D&&"p-15 text-center text-16 leading-none md:max-h-52 md:min-h-52 md:py-15 md:pr-[50px] md:pl-25 md:text-left md:text-18","duplex"===D&&"rounded-10 pt-29 pr-12 pb-7 pl-14 text-15 leading-normal"),id:"header-search",name:"search",onChange:e=>{R(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&q.push(A)},placeholder:"Search by address or postcode",type:"text",value:O}),(0,a.jsx)("button",{className:(0,p.cn)("absolute inset-y-0 right-20 hidden items-center text-[#e0e5eb] transition-all md:flex",""!==O?"visible opacity-100 hover:opacity-75":"invisible opacity-0"),onClick:()=>{R("")},type:"button",children:(0,a.jsx)(r.I,{className:"size-24",name:"heroicons/x-circle-solid"})}),"duplex"===D&&(0,a.jsx)("span",{className:"pointer-events-none absolute inset-x-23 top-0 z-20 pt-10 font-semibold text-12 text-black tracking-[0.3px]",dangerouslySetInnerHTML:{__html:"Location"}})]}),(0,a.jsxs)("div",{className:"group relative mb-14 w-1/2 px-7 hover:z-30 lg:w-1/6",children:[(0,a.jsx)(c.l,{label:"Radius",onChange:e=>{et(e)},options:u.yr,theme:D,value:el}),(0,a.jsx)("div",{className:(0,p.cn)("absolute inset-0 cursor-not-allowed",""!==O?"invisible opacity-0":"visible opacity-1")}),(0,a.jsxs)("div",{className:(0,p.cn)("-translate-y-1/2 invisible absolute top-1/2 left-full translate-x-5 cursor-pointer whitespace-nowrap rounded-4 bg-secondary px-10 py-5 text-12 text-white opacity-0 shadow-md transition-all duration-300 group-hover:visible group-hover:translate-x-10 group-hover:opacity-100",""!==O?"hidden":"hidden lg:block"),children:["Address required",(0,a.jsx)("div",{className:"-translate-y-1/2 absolute top-1/2 right-full size-0 border-transparent border-y-[6.5px] border-r-[7px] border-r-secondary border-l-0"})]})]}),!(j||y)&&(0,a.jsx)("div",{className:"mb-14 w-1/2 px-7 lg:w-1/6",children:(0,a.jsx)(c.l,{label:"Department",onChange:e=>{V(e)},options:u.Uk,theme:D,value:F})}),(0,a.jsx)("div",{className:"order-last mb-14 flex w-full px-7 lg:w-1/6",children:(0,a.jsx)(d.z,{className:(0,p.cn)("!min-w-150 relative mb-2 w-full","duplex"===D&&"!rounded-10"),href:A,icon:"search",onClick:()=>{W(!1)},size:"md",theme:D,variant:"secondary",children:(0,a.jsx)("span",{className:(0,p.cn)("inline-block","duplex"===D?"py-7":"py-1"),children:"Search"})})}),(0,a.jsx)("div",{className:"mb-14 w-1/2 px-7 lg:order-last lg:mb-0 lg:w-1/4",children:(0,a.jsx)(c.l,{hideIcons:!!g,label:"Property Type",onChange:e=>{ei(e)},options:g?er:ed,theme:D,value:es})}),(0,a.jsx)("div",{className:"mb-14 w-1/2 px-7 lg:order-last lg:mb-0 lg:w-1/4",children:(0,a.jsx)(c.l,{label:"Min Price",onChange:e=>{Z(e)},options:K,theme:D,value:Y})}),(0,a.jsx)("div",{className:"mb-14 w-1/2 px-7 lg:order-last lg:mb-0 lg:w-1/4",children:(0,a.jsx)(c.l,{label:"Max Price",onChange:e=>{ee(e)},options:$,theme:D,value:J})}),(0,a.jsx)("div",{className:"mb-14 w-1/2 px-7 lg:order-last lg:mb-0 lg:w-1/4",children:(0,a.jsx)(c.l,{label:"Min Beds",onChange:e=>{en(e)},options:u.jQ,theme:D,value:ea})}),(0,a.jsx)("div",{className:"-mb-10 order-last flex w-full justify-center px-7 lg:pt-14",children:(0,a.jsxs)("button",{className:"group -ml-8 relative flex shrink-0 appearance-none items-center overflow-hidden",onClick:()=>{E(!B)},type:"button",children:[(0,a.jsx)("div",{className:"relative size-50 overflow-hidden",children:(0,a.jsx)("div",{className:"-inset-x-10 absolute inset-y-0 flex items-center justify-center",children:(0,a.jsx)(b,{grayColor:w,primaryColor:z,secondaryColor:I,warningColor:U})})}),(0,a.jsxs)("div",{className:"text-15",children:["Try our"," ",(0,a.jsx)("strong",{className:"text-secondary group-hover:underline",children:"AI property"})," ","search assistant"]})]})})]})})})})})}},99183:(e,l,t)=>{t.d(l,{HeaderMinimal:()=>m});var a=t(85664),n=t(3008),s=t(76392),i=t.n(s),r=t(74348),o=t(17213),d=t(29676),c=t(61043),u=t(96777);function m(e){var l,t,s,m,p,x,h,b,v;let{headerButton:g,logo:f,logoDark:y,phoneNumber:j,theme:k,topBarContactDetails:N}=e,w=c.C.use.opaqueHeader(),_=c.C.use.customLogo(),S=c.C.use.customDarkLogo(),C=c.C.use.customLogoMobileMaxWidth(),M=c.C.use.customLogoDesktopMaxWidth(),{scrollPosition:L}=(0,d._l)(),z=w||L.top>50,H=null!=(h=null!=(x=null!=_?_:f)?x:S)?h:y,I=null!=(v=null!=(b=null!=S?S:_)?b:y)?v:f,T=j||(null==N||null==(l=N[0])?void 0:l.phone);return(0,a.jsx)("div",{style:M&&C?{"--logo-desk-width":"".concat(M.toString(),"px"),"--logo-mob-width":"".concat(C.toString(),"px")}:{},children:(0,a.jsxs)("div",{className:(0,u.cn)("flex items-center justify-between py-10 pr-13 pl-20 transition-all md:py-20 md:pr-20 lg:px-25",z?"bg-header-st-bg shadow-header":"bg-transparent"),children:[(0,a.jsxs)(i(),{className:"relative inline-block min-w-0 max-w-logo-mob-width md:max-w-logo-desk-width",href:"/",children:[!!(null==H?void 0:H.sourceUrl)&&(0,a.jsx)(n.default,{alt:"Logo",className:(0,u.cn)("h-auto w-full transition-opacity",z?"opacity-0":"opacity-100"),height:Number(null==(t=H.mediaDetails)?void 0:t.height),priority:!0,src:H.sourceUrl,width:Number(null==(s=H.mediaDetails)?void 0:s.width)}),!!(null==I?void 0:I.sourceUrl)&&(0,a.jsx)(n.default,{alt:"Logo",className:(0,u.cn)("absolute inset-0 h-auto w-full transition-opacity",z?"opacity-100":"opacity-0"),height:Number(null==H||null==(m
1=H.mediaDetails)?void 0:m.height),priority:!0,src:I.sourceUrl,width:Number(null==H||null==(p=H.mediaDetails)?void 0:p.width)})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-16 md:gap-24",children:[!!T&&(0,a.jsxs)("a",{className:(0,u.cn)("inline-flex items-center gap-8 font-semibold transition-colors hover:opacity-70",z?"text-header-st-txt":"text-white"),href:"tel:".concat(T),children:[(0,a.jsx)(r.I,{className:"size-16",name:"fa/phone"}),(0,a.jsx)("span",{className:"sr-only sm:not-sr-only sm:inline",dangerouslySetInnerHTML:{__html:T}})]}),!!(null==g?void 0:g.title)&&!!g.url&&(0,a.jsx)(o.z,{className:(0,u.cn)("header-button !px-24 md:!leading-[42px]","duplex"===k&&"is-duplex","chalet"===k&&"is-chalet","beam"===k&&"!text-14"),href:g.url,openNewTab:(null==g?void 0:g.target)==="_blank",prefetch:!1,theme:k,variant:"apex"===k||"fascia"===k||"gable"===k?"header":"secondary",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:g.title}})})]})]})})}}}]);

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.