1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4244],{24244:(e,t,s)=>{s.r(t),s.d(t,{PropertiesSliderDuplex:()=>m});var l=s(85664),a=s(63276),r=s(74348),n=s(34989),i=s(52330),o=s(48306),d=s(79602),c=s(96777);function m(e){let{centerTitle:t,commercialLettingsDepartment:s,commercialLettingsProperties:m,commercialSalesDepartment:x,commercialSalesProperties:p,defaultTab:u,hideNewlyListedBadge:h,letDepartment:g,letProperties:b,lettingsDepartment:f,lettingsProperties:j,salesDepartment:y,salesProperties:v,soldDepartment:N,soldProperties:w,title:k}=e,[_,S]=(0,a.useState)(u),[I,T]=(0,a.useState)("sales"===u?v:"lettings"===u?j:"sold"===u?w:"let"===u?b:"commercial-sales"===u?p:"commercial-lettings"===u?m:[]),z=[N,g,y,f,x,s].filter(e=>e).length>1;return(0,a.useEffect)(()=>{T("sales"===_?v:"lettings"===_?j:"sold"===_?w:"let"===_?b:"commercial-sales"===_?p:"commercial-lettings"===_?m:[])},[_,v,j,p,m,w,b]),(0,l.jsxs)(l.Fragment,{children:[(!!k||!!z)&&(0,l.jsx)("div",{className:(0,c.cn)("relative z-10",(0,n.c)({theme:"duplex"})),children:(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-center md:flex-nowrap md:justify-between",children:[!!k&&(0,l.jsx)("h2",{className:(0,c.cn)("w-full",t?"before:!left-1/2 before:!-translate-x-1/2 text-center":"pb-30 text-center md:pb-0 md:text-left",(0,o.D)({heading:"h2",theme:"duplex"})),dangerouslySetInnerHTML:{__html:k}}),!!z&&(0,l.jsxs)("div",{className:"flex items-center rounded-full bg-gray",children:[!!y&&(0,l.jsx)("button",{className:(0,c.cn)("min-w-120 rounded-full text-center font-bold text-16 leading-[48px]","sales"===_?"bg-primary text-white":"bg-gray text-black"),onClick:()=>{S("sales")},type:"button",children:(0,l.jsx)("span",{children:"Buy"})}),!!N&&(0,l.jsx)("button",{className:(0,c.cn)("min-w-120 rounded-full text-center font-bold text-16 leading-[48px]","sold"===_?"bg-primary text-white":"bg-gray text-black"),onClick:()=>{S("sold")},type:"button",children:(0,l.jsx)("span",{children:"Sold"})}),!!f&&(0,l.jsx)("button",{className:(0,c.cn)("min-w-120 rounded-full text-center font-bold text-16 leading-[48px]","lettings"===_?"bg-primary text-white":"bg-gray text-black"),onClick:()=>{S("lettings")},type:"button",children:(0,l.jsx)("span",{children:"Rent"})}),!!g&&(0,l.jsx)("button",{className:(0,c.cn)("min-w-120 rounded-full text-center font-bold text-16 leading-[48px]","let"===_?"bg-primary text-white":"bg-gray text-black"),onClick:()=>{S("let")},type:"button",children:(0,l.jsx)("span",{children:"Let"})})]})]})}),(0,l.jsx)("div",{className:"-mt-6",children:(0,l.jsx)("div",{className:(0,c.cn)("relative",(0,n.c)({theme:"duplex"}),"pt-40 md:pt-60"),children:(0,l.jsx)("div",{className:"-mx-15 lg:-mx-22 relative",children:(0,l.jsx)(d.Carousel,{className:"[&_.slick-track]:!flex pb-90 [&_.slick-slide]:h-[inherit]",settings:{appendDots:e=>(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"-ml-2 flex items-center lg:ml-25",children:[(0,l.jsx)(d.Q8,{className:"text-black/10 transition-all hover:text-secondary",children:(0,l.jsx)(r.I,{className:"size-26",name:"lucide/arrow-left"})}),(0,l.jsx)(d.Oj,{className:"ml-10 text-black/10 transition-all hover:text-secondary",children:(0,l.jsx)(r.I,{className:"size-26",name:"lucide/arrow-right"})})]}),(0,l.jsx)("ul",{className:"hidden items-center justify-center md:flex md:justify-start lg:pr-30",children:e})]}),customPaging:e=>(0,l.jsx)("button",{"aria-label":"Slide to Property ".concat((e+1).toString()),className:"mx-7 h-6 w-16 appearance-none bg-black/10 transition-all md:mr-0 md:ml-20 [.slick-active>&]:w-45 [.slick-active>&]:bg-secondary",type:"button"}),dots:!0,dotsClass:"absolute inset-x-0 -bottom-60 z-10 flex items-center justify-center px-10 md:justify-between lg:-bottom-70 lg:px-22 [&_li]:flex",responsive:[{breakpoint:960,settings:{slidesToScroll:1,slidesToShow:1}}],slidesToScroll:2,slidesToShow:2},showOverflow:!0,children:(0,l.jsx)(d.CarouselContent,{children:I.map(e=>(0,l.jsx)(d.CarouselItem,{className:"h-full px-15 lg:px-22",children:(0,l.jsx)(i.M,{hideNewlyListedBadge:h,property:e})},e.slug))})})})})})]})}},52330:(e,t,s)=>{s.d(t,{M:()=>p});var l=s(85664),a=s(3008),r=s(76392),n=s.n(r),i=s(74348),o=s(22712),d=s(7860),c=s(45533),m=s(96777),x=s(15179);function p(e){var t,s,r;let{hideNewlyListedBadge:p,priority:u=!1,property:h,variant:g="default"}=e,b=(0,x.n9)(h.department,h.slug,h.availableAs),f=(0,x.gq)(h),{isNew:j,relativeDate:y}=(0,x._i)(h,p),v=null!=(r=null!=(s=(0,x.qW)(h.videos)[0])?s:(0,x.wR)(h.videos)[0])?r:null;return(0,l.jsxs)("div",{className:"group relative z-10 flex h-full min-h-[510px] flex-col overflow-hidden rounded-30 border-3 border-white bg-white shadow-testimonial ring-secondary/20 transition-all hover:shadow-md hover:ring-12",children:[(0,l.jsxs)(n(),{className:(0,m.cn)("relative block h-240 w-full overflow-hidden","small"===g?"md:h-300":"md:h-[420px]"),href:b,prefetch:!0,children:[!!(null==(t=h.featuredImage)?void 0:t.url)&&(0,l.jsx)("div",{className:"absolute inset-0 transition-transform duration-4000 will-change-transform group-hover:scale-110",children:(0,l.jsx)(a.default,{alt:h.address,blurDataURL:h.featuredImage.dataUrl,className:"object-cover object-center",fill:!0,placeholder:h.featuredImage.dataUrl?"blur":"empty",priority:u,sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, (max-width: 1250px) 33vw, 450px",src:h.featuredImage.url})}),(0,l.jsx)("div",{className:"absolute inset-0 rounded-t-30 shadow-menu-item"}),!!h.priceQualifier&&"Shared Ownership"!==h.priceQualifier&&"Asking Price Of"!==h.priceQualifier&&(0,l.jsx)("span",{className:"absolute bottom-0 left-0 rounded-tr-60 bg-tertiary pr-50 pl-35 font-bold text-14 text-primary uppercase leading-[38px] tracking-[1.33px] shadow-menu-item",dangerouslySetInnerHTML:{__html:h.priceQualifier}})]}),(0,l.jsxs)(n(),{className:"flex grow flex-col bg-white px-24 pt-25 pb-50",href:b,prefetch:!0,children:[(0,l.jsxs)("h3",{className:"font-semibold text-22 leading-tight lg:font-bold lg:text-24",children:[!!h.formattedPrice&&(0,l.jsx)("span",{className:"mr-5",dangerouslySetInnerHTML:{__html:h.formattedPrice}}),!!h.tenure&&(0,l.jsx)("span",{className:"font-semibold text-14 tracking-[0.44px]",dangerouslySetInnerHTML:{__html:h.tenure}})]}),!!h.propertyType&&!!h.propertyType&&(0,l.jsx)("div",{className:"mt-5 [display:var(--property-type-pill-display,block)]",children:(0,l.jsx)("div",{className:"inline-block rounded-10 bg-secondary/20 px-12 py-5 font-bold text-10 text-black uppercase leading-none tracking-[1.33px] shadow-menu-item",dangerouslySetInnerHTML:{__html:h.propertyType}})}),!!h.address&&(0,l.jsx)("h2",{className:"mt-10 text-balance pt-3 text-14 leading-[1.41176471] tracking-[0.23px]",dangerouslySetInnerHTML:{__html:h.address}}),!!(h.bedrooms||h.bathrooms||h.receptionRooms||h.floorAreaTo)&&(0,l.jsxs)("div",{className:"mt-auto flex items-center pt-10",children:[!!h.bedrooms&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.I,{className:"mr-8 size-32",name:"custom/bedroom"}),(0,l.jsx)("span",{className:"mr-20 font-bold text-20 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:h.bedrooms.toString()}})]}),!!h.bathrooms&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.I,{className:"mr-8 size-32",name:"custom/bathroom"}),(0,l.jsx)("span",{className:"mr-20 font-bold text-20 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:h.bathrooms.toString()}})]}),!!h.receptionRooms&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.I,{className:"mr-8 size-32",name:"custom/living-room"}),(0,l.jsx)("span",{className:"mr-20 font-bold text-20 leading-normal tracking-[0.28px]",dangerouslySetInnerHTML:{__html:h.receptionRooms.toString()}})]}),!!h.floorAreaTo&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.I,{className:"mr-8 size-32",name:"custom/dimensions"}),(0,l.jsx)("span",{className:"mr-20 font-bold text-20 leading-normal tracking-[0.28px]",children:(0,x.Hz)(h.floorAreaFrom,h.floorAreaTo,h.floorAreaUnits)})]})]})]}),!!(f||j)&&(0,l.jsxs)("div",{className:"absolute inset-x-0 bottom-0 z-1 truncate rounded-b-30 border border-black/15 bg-secondary px-10 py-6 text-center font-bold text-12 text-white tracking-[0.5px] shadow-menu-item duration-200",children:[j?"NEW ":"",f?"FEATURED ":"","LISTING",j?" - added ".concat(y):""]}),(0,l.jsx)("div",{className:"pointer-events-none absolute top-20 left-20 z-10",children:(0,l.jsx)(d.PropertyAvailability,{property:h,theme:"duplex"})}),!!v&&(0,l.jsx)(c.PropertyCardVideo,{theme:"duplex",video:v}),(0,l.jsx)(o.FavoriteButton,{hasVideos:!!v,property:h,theme:"duplex"})]})}}}]);
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.