PageSourceSearch

https://real-zilloft.vercel.app/_next/static/chunks/pages/homes-357e0a7e7c3901e7.js

js real-zilloft.vercel.app collected 2026-10-03 07:36:00 UTC 33,714 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[864],{6485:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/homes",function(){return i(6244)}])},6244:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return eg}});var o=i(2676),t=i(5271),r=i(2089),a=i.n(r),l=i(7542),s=i(1254),d=i(4205),x=i(6503),p=i(9486),c=i(2777),h=i(4605),g=i(4443),m=i(1061),f=i(592),u=i(4274),b=i(9290),j=i.n(b),y=i(6325),v=i(579),Z=i(3348),S=i(2194),w=i(4773),A=i(6800);let z=()=>{let e=(0,l.useRouter)(),n=(0,t.useRef)(null),i=(0,d.C)(e=>e.search.lastSearch),r=(0,d.C)(e=>e.ui.dropdowns.profileMenu),a=(0,d.C)(e=>e.ui.dropdowns.mobileMenu),x=(0,d.T)(),b=()=>{x((0,A.a$)())},z=[{label:"Buy",route:"/homes?q=".concat(i)},{label:"Rent",route:"/homes?q=".concat(i,"&for-sale=For+Rent")},{label:"Find an Agent",route:"/professionals/real-estate-agent-reviews"}],T=(n,i)=>{"Rent"===n?x((0,w.by)("For Rent")):"Buy"===n&&x((0,w.by)("For Sale")),e.push(i),x((0,A.a$)())};return(0,o.jsx)(s.Z,{id:"page-header-container",sx:{boxSizing:"border-box",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:S.Ji,fontSize:"93.75%"},children:(0,o.jsx)(s.Z,{component:"header",sx:{backgroundColor:"white",boxSizing:"border-box",color:"rgb(42, 42, 51)",fontFamily:S.Ji,fontSize:"93.75%",lineHeight:"1.5",position:"relative",width:"100%",zIndex:50,height:"80px"},children:(0,o.jsxs)(s.Z,{component:"nav",role:"navigation","aria-label":"Main navigation menu",position:"static",border:0,borderBottom:"1px solid rgb(209, 209, 213)",sx:{backgroundColor:"white",boxSizing:"border-box",display:"block",height:"100%",fontFamily:S.zT,fontSize:"93.75%"},children:[(0,o.jsx)(s.Z,{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:"0px 16px",zIndex:2,position:"absolute",height:"80px",transform:"translate(-50%, 0px)",border:"none",transition:"left 0.15s ease-out, height 0.15s ease-out, width 0.15s ease-out, margin-top 0.15s ease-out",left:"50%"},children:(0,o.jsx)(s.Z,{component:"a",href:"/",sx:{boxShadow:"none",cursor:"pointer",fontWeight:"400",margin:"auto",marginTop:"10px",textDecoration:"none",outline:"none",height:"70px",width:"110px",position:"relative"},children:(0,o.jsx)(j(),{src:"/images/zilloft_blue.png",alt:"Zilloft Logo",fill:!0,style:{color:"rgb(255, 255, 255)",cursor:"pointer",display:"block",objectFit:"cover",margin:"auto"}})})}),(0,o.jsxs)(s.Z,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",height:"100%",position:"static",width:"100%",maxWidth:"100%",margin:"auto",border:"none",paddingRight:"24px",overflow:"visible",background:"white",zIndex:1},children:[(0,o.jsx)(s.Z,{sx:{display:{xs:"flex",md:"none"},alignItems:"center"},children:(0,o.jsx)(p.Z,{onClick:()=>{x((0,A.HT)())},sx:{color:"rgb(17, 17, 22)",padding:"8px"},"aria-label":"Open navigation menu",children:(0,o.jsx)(v.Z,{sx:{fontSize:30}})})}),(0,o.jsx)(c.Z,{sx:{display:{xs:"none",md:"flex"},listStyle:"none",marginLeft:"2px",listStyleType:"none",padding:0,margin:0,fontFamily:S.Ji,fontSize:"93.75%",fontWeight:"normal"},children:z.map(e=>{let{label:n,route:i}=e;return(0,o.jsx)(h.ZP,{sx:{lineHeight:"80px",border:"0px",minHeight:"53px",padding:0,margin:0,display:"inline",width:"auto"},children:(0,o.jsx)(g.Z,{border:"none",color:"rgb(17, 17, 22) !important",margin:"auto",lineHeight:"28px",padding:"12px 0px 13px 15px",paddingLeft:"14px",paddingRight:"14px",position:"relative",sx:{cursor:"pointer",fontFamily:S.Ji,fontSize:"16px",fontWeight:"normal",textDecoration:"none","&:hover":{color:"rgb(0, 65, 217) !important"}},"aria-label":"Navigate to ".concat(n),tabIndex:0,onClick:()=>T(n,i),children:n})},n)})}),(0,o.jsx)(c.Z,{sx:{display:"flex",listStyle:"none",padding:0,margin:0,marginLeft:"auto",fontFamily:S.Ji,fontSize:"93.75%",fontWeight:"normal"},children:(0,o.jsxs)(h.ZP,{sx:{lineHeight:"80px",border:"0px",minHeight:"53px",padding:0,margin:0,display:"inline-flex",alignItems:"center",width:"auto","&:hover":{color:"rgb(0, 65, 217)"}},children:[(0,o.jsx)(p.Z,{ref:n,onClick:()=>{x((0,A.Vp)())},sx:{color:"teal",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px","&:hover":{backgroundColor:"rgba(0, 128, 128, 0.1)"}},"aria-controls":r?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":r?"true":void 0,children:(0,o.jsx)(y.Z,{sx:{fontSize:30}})}),(0,o.jsx)(m.Z,{id:"account-menu",anchorEl:n.current,open:r,onClose:()=>{x((0,A.BZ)())},PaperProps:{elevation:3,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5,minWidth:250,"& .MuiAvatar-root":{width:50,height:32,ml:-.5,mr:1}
1,"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:(0,o.jsx)(f.Z,{onClick:()=>{x((0,A.BZ)()),e.push("/myzilloft/favorites")},sx:{fontSize:13,fontWeight:600,justifyContent:"flex-start",textAlign:"left",paddingLeft:2,paddingRight:3},children:"Saved homes"})})]})})]}),(0,o.jsxs)(u.ZP,{anchor:"left",open:a,onClose:b,sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{width:280,backgroundColor:"white",paddingTop:2}},children:[(0,o.jsxs)(s.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingX:2,paddingBottom:2,borderBottom:"1px solid rgb(205, 205, 211)"},children:[(0,o.jsx)(s.Z,{sx:{fontSize:"18px",fontWeight:600,color:"rgb(17, 17, 22)"},children:"Menu"}),(0,o.jsx)(p.Z,{onClick:b,sx:{color:"rgb(17, 17, 22)"},children:(0,o.jsx)(Z.Z,{})})]}),(0,o.jsx)(c.Z,{sx:{padding:0},children:z.map(e=>{let{label:n,route:i}=e;return(0,o.jsx)(h.ZP,{sx:{padding:0,borderBottom:"1px solid rgb(240, 240, 245)","&:last-child":{borderBottom:"none"}},children:(0,o.jsx)(g.Z,{onClick:()=>T(n,i),sx:{width:"100%",padding:"16px 24px",color:"rgb(17, 17, 22)",fontSize:"16px",fontWeight:"400",textDecoration:"none",cursor:"pointer",display:"block","&:hover":{backgroundColor:"rgb(248, 248, 250)",color:"rgb(0, 65, 217)"}},"aria-label":"Navigate to ".concat(n),children:n})},n)})})]})]})})})};var T=i(9013),k=i(5961),C=i(452),W=i(1791),F=i(1489),H=i(5782),R=i(5935),M=i(6950),P=i(538),B=i(1542),I=i(3985),O=i(4177),_=i(2415),E=i(9401),D=i(8927),L=i(3724),G=i(4040),V=i(7888),N=i(826),J=i(4563),q=i(1526);let X=[{id:"for-sale",label:"For Sale",minWidth:"106px",options:[{label:"For Sale",value:"FOR_SALE"},{label:"For Rent",value:"FOR_RENT"},{label:"Sold",value:"SOLD"}]},{id:"price",label:"Price",minWidth:"145px"},{id:"beds-baths",label:"Beds & Baths",minWidth:"150px"},{id:"home-type",label:"Home Type",minWidth:"150px"}];var K=i(7564);let $=(()=>{let e=[];for(let n=5e4;n<=18e6;n+=5e4)e.push(n>=1e6?{value:n,label:"$".concat((n/1e6).toFixed(1),"M")}:{value:n,label:"$".concat(n.toLocaleString())});return e})(),Y=e=>{if(!e)return $;let n=Q(e);return $.filter(e=>e.value>n)},U=e=>{if(!e)return $;let n=Q(e);return $.filter(e=>e.value<n)},Q=e=>parseFloat(e.replace(/[^0-9.]/g,""))||0;var ee=i(5436),en=i(6994);let ei={textDecoration:"none",textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"1px solid",borderRadius:"4px",userSelect:"none",margin:"0px",appearance:"none",transitionProperty:"background-color, border-color, color",transitionDuration:"0.2s",transitionTimingFunction:"ease",pointerEvents:"auto",outline:"none",boxShadow:"none",width:"auto",position:"relative",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:S.Ji,fontWeight:500,fontSize:"14px",lineHeight:"24px",height:"auto",backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(167, 166, 171)",color:"rgb(42, 42, 51)",maxWidth:"150px",minWidth:"150px",minHeight:"37px",overflow:"hidden",padding:"0px 10px",textOverflow:"ellipsis",whiteSpace:"nowrap","&:hover":{backgroundColor:"rgb(247, 247, 247)",borderColor:"rgb(167, 166, 171)",color:"rgb(42, 42, 51)"}},eo=()=>{var e;let n=(0,d.T)(),{searchInput:i,setSearchInput:r,applySearch:a,selectedFilters:l,setSelectedFilters:x}=(0,J.a)(),g=(0,T.Z)(),f=(0,k.Z)(g.breakpoints.up("md")),u=(0,d.C)(e=>{var n,i,o;return(null===(o=e.ui)||void 0===o?void 0:null===(i=o.dropdowns)||void 0===i?void 0:null===(n=i.searchPage)||void 0===n?void 0:n.openDropdown)||null}),[b,j]=(0,t.useState)({}),[y,v]=(0,t.useState)(!1),[Z,w]=(0,t.useState)([]),[z,$]=(0,t.useState)(-1),[Q,eo]=(0,t.useState)(null),[et,er]=(0,t.useState)(600),ea=(0,t.useRef)(null),el=(0,t.useRef)(!1),es=U(l.maxPrice),ed=Y(l.minPrice),ex=(0,t.useCallback)(e=>{if(console.log("generateSuggestions called with:",e),console.log("locations available:",(null===ee.Kl||void 0===ee.Kl?void 0:ee.Kl.length)||0),!e.trim()){let e=ee.Kl.slice(0,6).map(e=>({id:e.id,text:e.fullName,type:"location",icon:(0,o.jsx)(V.Z,{sx:{color:"rgb(0, 65, 217)",fontSize:18}})}));return console.log("Popular locations:",e),[...e,{id:"divider-1",text:"",type:"category"},{id:"browse-all",text:"Browse all homes",type:"category",icon:(0,o.jsx)(N.Z,{sx:{color:"rgb(0, 65, 217)",fontSize:18}})}]}let n=(0,en.Bt)(e),i=[],t=n.locations.map(e=>({id:e.id,text:e.fullName,type:"location",icon:(0,o.jsx)(V.Z,{sx:{color:"rgb(0, 65, 217)",fontSize:18}})})),r=n.categories.map(e=>({id:"".concat(e.type,"-").concat(e.text),text:e.text,type:"category",icon:(0,o.jsx)(N.Z,{sx:{color:"rgb(0, 65, 217)",fontSize:18}})}));return i.push(...t),r.length>0&&(t.length>0&&i.push({id:"divider-categories",text:"",type:"category"}),i.push(...r)),i.slice(0,10)},[]);(0,t.useEffect)(()=>{w(ex(i)),$(-1)},[i,ex]);let ep=(e,i)=>{j(n=>({...n,[i]:u===i?null:e.currentTarget})),n((0,A.R5)(u===i?null:i))},ec=()=>{a()}
1,eh=e=>{e.text&&(el.current=!0,r(e.text),v(!1),eo(null))};(0,t.useEffect)(()=>{el.current&&(el.current=!1,a())},[i,a]);let eg=(e,n)=>{x({...l,[e]:n})},em=e=>{x({...l,minPrice:e.target.value}),e.target.value},ef=e=>{x({...l,maxPrice:e.target.value}),e.target.value},eu=()=>{n((0,A.R5)(null)),j(e=>({...e,[u]:null})),a()};return(0,t.useEffect)(()=>{if(u&&!b[u]){let e=document.querySelector('button[aria-controls="menu-'.concat(u,'"]'));e&&j(n=>({...n,[u]:e}))}},[u,b]),(0,o.jsx)(s.Z,{sx:{height:"calc(100% - 80px)",boxSizing:"border-box",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:S.Ji,fontSize:"93.75%"},children:(0,o.jsx)(s.Z,{sx:{display:"flex",flexDirection:"column",overflow:"hidden",height:"100%",boxSizing:"border-box",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:S.Ji,fontSize:"93.75%"},children:(0,o.jsxs)(s.Z,{"aria-label":"Property filters section",component:"section",sx:{boxSizing:"border-box",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:S.Ji,fontSize:"93.75%",display:"flex",justifyContent:f?"center":"flex-start",alignItems:"center",borderBottom:"1px solid rgb(204, 204, 204)",minHeight:"55px",padding:"0px 12px",zIndex:10,backgroundColor:"#ffffff",overflowX:"auto",width:"100%",gap:"8px",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},children:[(0,o.jsx)(s.Z,{sx:{boxSizing:"border-box",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:S.Ji,fontSize:"93.75%",flex:"1 1 250px",maxWidth:"600px",minWidth:"250px"},children:(0,o.jsx)(s.Z,{component:"form",sx:{border:"1px solid rgb(209, 209, 213)",borderRadius:"4px",backgroundColor:"rgb(255, 255, 255)"},children:(0,o.jsxs)(s.Z,{position:"relative",ref:ea,children:[(0,o.jsx)(C.Z,{fullWidth:!0,placeholder:"Address, neighborhood, city or ZIP code",value:i,onChange:e=>r(e.target.value),onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),ec())},"aria-label":"Search for properties by address, neighborhood, city, or ZIP code",InputProps:{endAdornment:(0,o.jsxs)(W.Z,{position:"end",children:[i?(0,o.jsx)(p.Z,{onClick:()=>{r(""),v(!1)},children:(0,o.jsx)(q.Z,{})}):null,(0,o.jsx)(p.Z,{onClick:ec,children:(0,o.jsx)(D.Z,{})})]})},inputProps:{onFocus:e=>{let n=e.currentTarget;eo(n),er(n.offsetWidth),v(!0)},onBlur:e=>{setTimeout(()=>{var n;(null===(n=ea.current)||void 0===n?void 0:n.contains(e.relatedTarget))||v(!1)},150)}},sx:{"& .MuiOutlinedInput-root":{border:"none",height:"37px","& input":{cursor:"text"}},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}}),(0,o.jsx)(F.Z,{open:y&&Z.length>0&&!!Q,anchorEl:Q,placement:"bottom-start",style:{zIndex:9999},children:(0,o.jsx)(H.Z,{elevation:3,sx:{maxHeight:"400px",overflowY:"auto",borderRadius:"12px",border:"1px solid rgb(205, 205, 211)",mt:1,width:(null===(e=ea.current)||void 0===e?void 0:e.offsetWidth)||600},children:(0,o.jsx)(c.Z,{sx:{padding:0},children:Z.map((e,n)=>{if(!e.text)return(0,o.jsx)(R.Z,{sx:{margin:"8px 16px"}},e.id);let i=Z.slice(0,n).filter(e=>e.text).length;return(0,o.jsxs)(h.ZP,{button:!0,onClick:()=>eh(e),sx:{padding:"12px 16px",cursor:"pointer",backgroundColor:i===z?"rgba(0, 65, 217, 0.08)":"transparent","&:hover":{backgroundColor:"rgba(0, 65, 217, 0.04)"}},children:[e.icon&&(0,o.jsx)(s.Z,{sx:{mr:2,display:"flex",alignItems:"center"},children:e.icon}),(0,o.jsx)(M.Z,{primary:(0,o.jsx)(P.Z,{sx:{fontFamily:S.Ji,fontSize:"16px",color:"rgb(17, 17, 22)",fontWeight:"location"===e.type?500:400},children:e.text})})]},e.id)})})})})]})})}),(0,o.jsx)(s.Z,{"aria-live":"polite",sx:{color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:S.Ji,fontSize:"93.75%",display:"flex",alignItems:"center",flexWrap:"nowrap",background:"none",flexShrink:0,position:"relative"},children:(0,o.jsx)(s.Z,{sx:{display:"flex",flexShrink:0,gap:"8px"},children:X.map(e=>(0,o.jsx)(s.Z,{tabIndex:-1,id:"listing-type",sx:{display:"flex",flexDirection:"column",height:"37px",marginRight:"8px",outline:"none",overflow:"visible",position:"relative",width:"auto"},children:(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(B.Z,{sx:{...ei,minWidth:e.minWidth},endIcon:u===e.id?(0,o.jsx)(G.Z,{}):(0,o.jsx)(L.Z,{}),onClick:n=>ep(n,e.id),"aria-haspopup":"true","aria-expanded":u===e.id,"aria-controls":"menu-".concat(e.id),style:{backgroundColor:(0,K.a4)(e.id,l)?"rgb(242, 250, 255)":"rgb(255, 255, 255)",borderColor:(0,K.a4)(e.id,l)?"rgb(0, 106, 255)":"rgb(167, 166, 171"},children:(0,K.wY)(e.id,l)}
1),(0,o.jsx)(m.Z,{anchorEl:b[e.id],open:u===e.id,onClose:()=>{n((0,A.R5)(null)),j(n=>({...n,[e.id]:null}))},PaperProps:{style:{padding:"16px",visibility:"unset",minWidth:"price"===e.id?"320px":"292px",zIndex:500,boxSizing:"border-box",backgroundColor:"rgb(255, 255, 255)",boxShadow:"rgba(0, 0, 0, 0.3) 0px 8px 12px 0px",outline:"none",borderRadius:"8px",margin:"0px",transform:"translate3d(0px, 5px, 0px)"}},children:"price"===e.id?(0,o.jsxs)(s.Z,{display:"flex",flexDirection:"column",children:[(0,o.jsx)(s.Z,{fontWeight:"bold",mb:2,fontSize:"16px",color:"rgb(42, 42, 51)",children:"Price Range"}),(0,o.jsxs)(s.Z,{display:"flex",justifyContent:"space-between",gap:2,children:[(0,o.jsxs)(s.Z,{width:"48%",children:[(0,o.jsx)(s.Z,{fontWeight:"bold",mb:1,fontSize:"14px",children:"Minimum"}),(0,o.jsxs)(C.Z,{select:!0,fullWidth:!0,defaultValue:"",variant:"outlined",size:"small",SelectProps:{native:!0},onChange:em,value:(null==l?void 0:l.minPrice)||"",children:[(0,o.jsx)("option",{value:"",children:"No Min"},"no-value"),es.map(e=>(0,o.jsx)("option",{value:e.value,children:e.label},e.value))]})]}),(0,o.jsxs)(s.Z,{width:"48%",children:[(0,o.jsx)(s.Z,{fontWeight:"bold",mb:1,fontSize:"14px",children:"Maximum"}),(0,o.jsxs)(C.Z,{select:!0,fullWidth:!0,defaultValue:"",variant:"outlined",size:"small",SelectProps:{native:!0},onChange:ef,value:(null==l?void 0:l.maxPrice)||"",children:[(0,o.jsx)("option",{value:"",children:"No Max"},"no-value"),ed.map(e=>(0,o.jsx)("option",{value:e.value,children:e.label},e.value)),(0,o.jsx)("option",{value:"",children:"Any"},"any")]})]})]}),(0,o.jsx)(B.Z,{variant:"contained",color:"primary",fullWidth:!0,onClick:eu,sx:{marginTop:"16px"},children:"Apply"})]}):"beds-baths"===e.id?(0,o.jsxs)(s.Z,{display:"flex",flexDirection:"column",gap:2,children:[(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(s.Z,{fontWeight:"bold",mb:1,fontSize:"16px",color:"rgb(42, 42, 51)",children:"Number of Bedrooms"}),(0,o.jsx)(s.Z,{display:"flex",gap:1,mb:2,children:["Any","1+","2+","3+","4+","5+"].map(e=>(0,o.jsx)(B.Z,{variant:l.bedrooms===e?"contained":"outlined",onClick:()=>{eg("bedrooms",l.bedrooms===e?"":e)},sx:{textTransform:"none",minWidth:"50px"},children:e},e))}),(0,o.jsx)(I.Z,{control:(0,o.jsx)(O.Z,{checked:!!l.exactMatch,onChange:()=>{x({...l,exactMatch:!l.exactMatch})}}),label:"Use exact match"})]}),(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(s.Z,{fontWeight:"bold",mb:1,fontSize:"16px",color:"rgb(42, 42, 51)",children:"Number of Bathrooms"}),(0,o.jsx)(s.Z,{display:"flex",gap:1,children:["Any","1+","1.5+","2+","3+","4+"].map(e=>(0,o.jsx)(B.Z,{variant:l.bathrooms===e?"contained":"outlined",onClick:()=>{eg("bathrooms",l.bathrooms===e?"":e)},sx:{textTransform:"none",minWidth:"50px"},children:e},e))})]}),(0,o.jsx)(B.Z,{variant:"contained",color:"primary",fullWidth:!0,onClick:eu,sx:{marginTop:"16px"},children:"Apply"})]}):"home-type"===e.id?(0,o.jsxs)(s.Z,{display:"flex",flexDirection:"column",gap:2,children:[(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(s.Z,{fontWeight:"bold",mb:1,fontSize:"16px",color:"rgb(42, 42, 51)",children:"Home Type"}),(0,o.jsx)(I.Z,{control:(0,o.jsx)(B.Z,{onClick:()=>{x({...l,homeTypes:[]})},sx:{justifyContent:"flex-start",width:"100%",textTransform:"none",color:"#007aff",paddingLeft:"0"},children:"Deselect All"}),label:""}),(0,o.jsx)(s.Z,{display:"flex",flexDirection:"column",gap:1,children:["Houses","Townhomes","Multi-family","Condos/Co-ops","Lots/Land","Apartments","Manufactured"].map(e=>(0,o.jsx)(I.Z,{control:(0,o.jsx)(_.Z,{checked:Array.isArray(l.homeTypes)&&l.homeTypes.includes(e),onChange:()=>{let n=Array.isArray(l.homeTypes)?l.homeTypes:[],i=n.includes(e)?n.filter(n=>n!==e):[...n,e];x({...l,homeTypes:i})}}),label:e},e))})]}),(0,o.jsx)(B.Z,{variant:"contained",color:"primary",fullWidth:!0,onClick:eu,sx:{marginTop:"16px"},children:"Apply"})]}):(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(E.Z,{value:l[e.id]||"",onChange:n=>eg(e.id,n.target.value),children:Array.isArray(e.options)&&e.options.map(e=>"string"==typeof e?(0,o.jsx)(I.Z,{value:e,control:(0,o.jsx)(O.Z,{}),label:e},e):(0,o.jsx)(I.Z,{value:e.label,control:(0,o.jsx)(O.Z,{}),label:e.label},e.value))}),(0,o.jsx)(B.Z,{variant:"contained",color:"primary",fullWidth:!0,onClick:eu,sx:{marginTop:"16px"},children:"Apply"})]})})]},e.id)},e.id))})})]})})})};var et=i(9769),er=i(5374),ea=i(3484),el=i(9189),es=i(1172);let ed=e=>{let{items:n}=e,i=(0,T.Z)(),t=(0,k.Z)(i.breakpoints.only("xs")),r=(0,k.Z)(i.breakpoints.only("sm")),a=(0,k.Z)(i.breakpoints.only("md"));return(0,o.jsx)(s.Z,{component:"ul","aria-label":"List of properties",sx:{margin:0,listStyle:"none",color:"rgb(42, 42, 51)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"16px",lineHeight:"24px",display:"grid",gap:"8px",marginBottom:"8px",padding:"0px 20px",gridTemplateColumns:t?"1fr":r?"repeat(2, 1fr)":a?"repeat(3, 1fr)":"repeat(2, 1fr)"},children:n.map(e=>(0,o.jsx)(es.S,{homeData:e},e.id))})},ex=["Enter home features and a location, or a school name",'"3 bedroom townhouses with fireplace in Seattle, WA"','"Alcott College Prep"'],ep=e=>{let{filteredResults:n}=e,i=(0,t.useRef)(null),r=(0,et.useRouter)(),a=(0,l.useSearchParams)(),p=(0,d.T)(),{lastSearch:g,isLoadingSearch:m,currentPage:f}=(0,d.C)(e=>e.search),u=40*f,b=n.slice(u-40,u),y=Math.ceil(n.length/40);(0,t.useEffect)(()=>{i.current&&(i.current.scrollTop=0)},[f,n]);let v=(0,t.useRef)();return(0,t.useEffect)(()=>{let e=r.query.q;void 0!==v.current&&v.current!==e&&1!==f&&p((0,w.D4)(1)),v.current=e},[r.query,f,p]),(0,o.jsx)(s.Z,{ref:i,role:"main","aria-label":"Search results for homes",sx:{boxShadow:"rgba(0, 0, 0, 0.4) -2px 2px 5px 0px",zIndex:1,width:"750",flex:"0 0 750px",position:"relative",overflowY:"auto",overflowX:"hidden"},children:m?(0,o.jsx)(x.Z,{message:"Searching for results...",height:"100%"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s.Z,{id:"grid-search-results",component:"main",sx:{background:"none",position:"relative",boxSizing:"border-box"},children:[(0,o.jsxs)(s.Z,{padding:"20px",children:[(0,o.jsx)(P.Z,{id:"results-title",variant:"h1",sx:{margin:0,marginBottom:"0px",fontSize:"20px",lineHeight:"26px",fontWeight:"600"},children:"".concat(g," ").concat((()=>{switch(a.get("for-sale")||"For Sale"){case"For Sale":default:return"Real Estate & Homes For Sale";case"For Rent":return"Real Estate & Homes For Rent";case"Sold":return"Real Estate & Recently Sold Homes"}})())}),g.length>0&&(0,o.jsxs)(s.Z,{sx:{position:"relative",display:"flex",justifyContent:"space-between",fontSize:"14px",marginBottom:"0px",marginTop:"8px"},children:[(0,o.jsx)(s.Z,{component:"span","aria-live":"polite",sx:{fontWeight:600,alignSelf:"flex-start",flex:1,fontSize:"14px",color:"rgb(42, 42, 51)",lineHeight:"1.5"},children:"".concat(n.length," ").concat(n.length>1?"results":"result")}),(0,o.jsx)(s.Z,{sx:{color:"rgb(42, 42, 51)",lineHeight:"1.5",fontSize:"14px",display:"flex",alignItems:"center"},children:(0,o.jsx)(s.Z,{children:"Sort: Homes for you"})})]})]}),(0,o.jsx)(o.Fragment,{children:0===n.length?(0,o.jsxs)(s.Z,{sx:{paddingBottom:"6px",paddingLeft:"20px",paddingRight:"20px"},children:[(0,o.jsx)(s.Z,{component:"p",sx:{color:"rgb(42, 42, 51)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"16px",lineHeight:"24px",margin:0},children:"No matching results"}),(0,o.jsx)(s.Z,{component:"p",sx:{color:"rgb(42, 42, 51)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"14px",lineHeight:"24px",margin:0},children:"Try changing your search."}),(0,o.jsx)(s.Z,{role:"separator",sx:{background:"rgb(209, 209, 213)",width:"auto",height:"1px",marginTop:"16px",marginBottom:"24px"}}),(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(P.Z,{variant:"h5",sx:{color:"rgb(89, 107, 130)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:700,fontSize:"12px",lineHeight:"16px",margin:0,paddingBottom:"24px"},children:"SEARCH TIPS"}),(0,o.jsxs)(s.Z,{sx:{display:"flex",marginBottom:"24px",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontSize:"14px"},children:[(0,o.jsx)("svg",{viewBox:"0 0 32 32","aria-hidden":"true",focusable:"false",role:"img",style:{marginRight:"20px",overflow:"visible",height:"24px",width:"24px"},children:(0,o.jsxs)("g",{stroke:"none",children:[(0,o.jsx)("path",{d:"M6.5,10h-3A1.5,1.5,0,0,1,2,8.5v-3A1.5,1.5,0,0,1,3.5,4h3A1.5,1.5,0,0,1,8,5.5v3A1.5,1.5,0,0,1,6.5,10ZM4,8H6V6H4Z"}),(0,o.jsx)("path",{d:"M6.5,19h-3A1.5,1.5,0,0,1,2,17.5v-3A1.5,1.5,0,0,1,3.5,13h3A1.5,1.5,0,0,1,8,14.5v3A1.5,1.5,0,0,1,6.5,19ZM4,17H6V15H4Z"}),(0,o.jsx)("path",{d:"M6.5,28h-3A1.5,1.5,0,0,1,2,26.5v-3A1.5,1.5,0,0,1,3.5,22h3A1.5,1.5,0,0,1,8,23.5v3A1.5,1.5,0,0,1,6.5,28ZM4,26H6V24H4Z"}),(0,o.jsx)("path",{d:"M29,8H12a1,1,0,0,1-1-1h0a1,1,0,0,1,1-1H29a1,1,0,0,1,1,1h0A1,1,0,0,1,29,8Z"}),(0,o.jsx)("path",{d:"M29,17H12a1,1,0,0,1-1-1h0a1,1,0,0,1,1-1H29a1,1,0,0,1,1,1h0A1,1,0,0,1,29,17Z"}),(0,o.jsx)("path",{d:"M29,26H12a1,1,0,0,1-1-1h0a1,1,0,0,1,1-1H29a1,1,0,0,1,1,1h0A1,1,0,0,1,29,26Z"})]})}),(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(P.Z,{variant:"h6",sx:{color:"rgb(42, 42, 51)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:600,fontSize:"14px",lineHeight:"24px",margin:0},children:"Enter home features and a location, or a school name"}),(0,o.jsx)(c.Z,{"aria-labelledby":"results-title",sx:{margin:0,padding:0,listStyle:"none",color:"rgb(42, 42, 51)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"16px",lineHeight:"24px"},children:ex.map((e,n)=>(0,o.jsxs)(h.ZP,{sx:{margin:0,paddingTop:0,paddingBottom:0,listStyleType:"disc"},children:[(0,o.jsx)(s.Z,{sx:{width:5,height:5,borderRadius:"50%",backgroundColor:"black",marginRight:2}}),(0,o.jsx)(s.Z,{component:"span",sx:{color:"rgb(89, 107, 130)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"14px",lineHeight:"24px",margin:0},children:e})]},n))})]})]}),(0,o.jsxs)(s.Z,{sx:{display:"flex",marginBottom:"24px",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontSize:"14px"},children:[(0,o.jsx)("svg",{viewBox:"0 0 32 32","aria-hidden":"true",focusable:"false",role:"img",style:{marginRight:"20px",overflow:"visible",height:"24px",width:"24px"},children:(0,o.jsxs)("g",{stroke:"none",children:[(0,o.jsx)("path",{d:"M6,16a1,1,0,0,0-1,1V29a1,1,0,0,0,2,0V17A1,1,0,0,0,6,16Z"}),(0,o.jsx)("path",{d:"M9,11H7V3A1,1,0,0,0,5,3v8H3a1,1,0,0,0,0,2H9a1,1,0,1,0,0-2Z"}),(0,o.jsx)("path",{d:"M16,17a1,1,0,0,0,1-1V3a1,1,0,0,0-2,0V16A1,1,0,0,0,16,17Z"}),(0,o.jsx)("path",{d:"M19,20H13a1,1,0,0,0,0,2h2v7a1,1,0,0,0,2,0V22h2a1,1,0,0,0,0-2Z"}),(0,o.jsx)("path",{d:"M26,16a1,1,0,0,0-1,1V29a1,1,0,1,0,2,0V17A1,1,0,0,0,26,16Z"}),(0,o.jsx)("path",{d:"M29,11H27V3a1,1,0,0,0-2,0v8H23a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2Z"})]})}),(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(P.Z,{variant:"h6",sx:{color:"rgb(42, 42, 51)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:600,fontSize:"14px",lineHeight:"24px",margin:0},children:"Decrease the number of filters"}),(0,o.jsx)(s.Z,{component:"span",sx:{color:"rgb(89, 107, 130)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"14px",lineHeight:"24px",margin:0},children:"Adjust your criteria to be less restrictive, or remove very specific ones."})]})]}),(0,o.jsxs)(s.Z,{sx:{display:"flex",marginBottom:"24px",color:"rgb(42, 42, 51)",lineHeight:"1.5",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontSize:"14px"},children:[(0,o.jsx)("svg",{viewBox:"0 0 32 32","aria-hidden":"true",focusable:"false",role:"img",style:{marginRight:"20px",overflow:"visible",height:"24px",width:"24px"},children:(0,o.jsx)("path",{stroke:"none",d:"M28,3.88a2.16,2.16,0,0,0-.7.13l-6,1.9a1,1,0,0,1-.58,0L11.25,3.07a1.21,1.21,0,0,0-.5,0L3.51,4.62A2,2,0,0,0,2,6.56V25.44a2,2,0,0,0,2,2,2.12,2.12,0,0,0,.49-.06l6.26-1.33a1.16,1.16,0,0,1,.49,0l9.46,2.84a1,
11,0,0,0,.6,0l7.4-2.41A2,2,0,0,0,30,24.61V5.89A2,2,0,0,0,28,3.88ZM12,5.3l8,2.4v19l-8-2.4ZM4,25.44V6.56l6-1.34v19Zm24-.83-6,2.05V7.7l6-1.81Z"})}),(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(P.Z,{variant:"h6",sx:{color:"rgb(42, 42, 51)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:600,fontSize:"14px",lineHeight:"24px",margin:0},children:"Increase the scope of your search"}),(0,o.jsx)(s.Z,{component:"span",sx:{color:"rgb(89, 107, 130)",WebkitFontSmoothing:"antialiased",textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"14px",lineHeight:"24px",margin:0},children:"Search in a wider area (e.g., ZIP code to city), or move or zoom out on the map."})]})]})]}),(0,o.jsx)(s.Z,{role:"separator",sx:{background:"rgb(209, 209, 213)",width:"auto",height:"1px",marginTop:"16px"}})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ed,{items:b}),y>1&&(0,o.jsx)(er.Z,{count:y,page:f,onChange:(e,n)=>{p((0,w.D4)(n))},renderItem:e=>(0,o.jsx)(ea.Z,{...e,"aria-label":"Go to page ".concat(e.page),sx:{...e.page===f?{borderRadius:"50%",backgroundColor:"rgb(242, 250, 255) !important",borderColor:"rgb(0, 106, 255) !important",color:"rgb(42, 42, 51) !important",borderWidth:"1px !important",borderStyle:"solid !important","&:hover":{backgroundColor:"#darkblue"}}:{borderRadius:"50%",color:"rgb(42, 42, 51) !important",fontWeight:600}}}),sx:{display:"flex",justifyContent:"center",padding:"20px 0",color:"rgb(42, 42, 51)",borderRadius:"50%",borderColor:"rgb(0, 106, 255)"},shape:"rounded"})]})}),(0,o.jsxs)(s.Z,{sx:{paddingLeft:"20px",paddingRight:"20px"},children:[n.length>0&&(0,o.jsx)(s.Z,{sx:{color:"rgb(42, 42, 51)",lineHeight:"1.5",padding:"0px 20px"},children:(0,o.jsxs)(s.Z,{component:"ul",sx:{margin:0,listStyle:"none",paddingLeft:0},children:[(0,o.jsxs)(s.Z,{component:"li",sx:{display:"inline-flex",paddingBottom:"5px"},children:[(0,o.jsx)(j(),{src:"https://photos.zillowstatic.com/fp/dfe8af10e49656833b8f889de6d4a93b-zillow_web_95_35.jpg",alt:"Ad 1",width:91,height:31,"aria-hidden":"true",style:{marginRight:"3px"}}),(0,o.jsx)(s.Z,{component:"p",sx:{textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"12px",lineHeight:"16px",margin:"0px 0px 16px"},children:(0,o.jsx)(s.Z,{component:"span",sx:{textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"12px",lineHeight:"16px",margin:"0px 0px 16px"},children:"IDX information is provided exclusively for personal, non-commercial use, and may not be used for any purpose other than to identify prospective properties consumers may be interested in purchasing. Information is deemed reliable but not guaranteed."})})]}),(0,o.jsxs)(s.Z,{component:"li",sx:{display:"inline-flex",paddingBottom:"5px"},children:[(0,o.jsx)(j(),{src:"https://photos.zillowstatic.com/fp/542acdc3b2ca053db8ac9dea64ca1739-zillow_web_95_35.jpg",alt:"Ad 2",width:95,height:35,style:{marginRight:"3px"}}),(0,o.jsx)(s.Z,{component:"p",sx:{textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"12px",lineHeight:"16px",margin:"0px 0px 16px"},children:(0,o.jsx)(s.Z,{component:"span",sx:{textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"12px",lineHeight:"16px",margin:"0px 0px 16px"},children:"Bay East 2024. CCAR 2024. bridgeMLS 2024. Information Deemed Reliable But Not Guaranteed. This information is being provided by the Bay East MLS, or CCAR MLS, or bridgeMLS. The listings presented here may or may not be listed by the Broker/Agent operating this website. This information is intended for the personal use of consumers and may not be used for any purpose other than to identify prospective properties consumers may be interested in purchasing. Data last updated at 2024-09-25 12:31:39 PDT."})})]}),(0,o.jsxs)(s.Z,{component:"li",sx:{display:"inline-flex",paddingBottom:"5px"},children:[(0,o.jsx)(j(),{src:"https://photos.zillowstatic.com/fp/f6d938e7ba070e360124972ca1b833bc-zillow_web_95_35.jpg",alt:"Ad 1",width:95,height:35,style:{marginRight:"3px"}}),(0,o.jsx)(s.Z,{component:"p",sx:{textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"12px",lineHeight:"16px",margin:"0px 0px 16px"},children:(0,o.jsx)(s.Z,{component:"span",sx:{textTransform:"none",fontFamily:'"Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif',fontWeight:400,fontSize:"12px",lineHeight:"16px",margin:"0px 0px 16px"},children:"Based on information from the MLSListings MLS as of 2024-09-25 12:38:21 PDT. All data, including all measurements and calculations of area, is obtained from various sources and has not been, and will not be, verified by broker or MLS. All information should be independently reviewed and verified for accuracy. Properties may or may not be listed by the office/agent presenting the information."})})]})]})}),(0,o.jsx)(s.Z,{role:"separator",sx:{background:"rgb(209, 209, 213)",width:"auto",height:"1px",marginTop:"16px"}})]})]}),(0,o.jsx)(s.Z,{children:(0,o.jsx)(el.$,{})})]})})},ec=()=>{let e=(0,T.Z)();return(0,k.Z)(e.breakpoints.only("lg"))?(0,o.jsx)(s.Z,{role:"region","aria-label":"Map view of search results",tabIndex:0,"aria-live":"polite",children:(0,o.jsx)(s.Z,{sx:{overflow:"hidden",position:"relative",flex:"1 1 100%",display:"flex",flexDirection:"column",height:"100%"},children:(0,o.jsx)(s.Z,{height:"100%",width:"100%",children:(0,o.jsx)(j(),{src:"/images/search_container_map_gral_maxW.png",alt:"Map displaying properties available for search results",width:1920,height:1080,style:{width:"100%",height:"calc(100vh - 141px)",objectFit:"cover",objectPosition:"center"}})})})}):null},eh=()=>{let{filteredResults:e}=(0,J.a)(),n=(0,T.Z)(),i=(0,k.Z)(n.breakpoints.only("lg"));return(0,o.jsxs)(s.Z,{role:"main","aria-label":"Search results and map view",sx:{dis
1play:"flex",flexDirection:i?"row-reverse":"column",minWidth:"320px",overflow:"hidden",height:"100%",boxSizing:"border-box",maxHeight:"calc(100vh - 141px)"},children:[(0,o.jsx)(ep,{filteredResults:e}),(0,o.jsx)(ec,{})]})};var eg=()=>{let e=(0,d.C)(e=>e.config),n=(0,l.useSearchParams)(),[i,r]=(0,t.useState)(!0);return((0,t.useEffect)(()=>{let n;return e&&(n=setTimeout(()=>{r(!1)},e.zilloft.latency)),()=>clearTimeout(n)},[e]),i)?(0,o.jsx)(x.Z,{message:"Loading Homes Page..."}):(0,o.jsxs)(s.Z,{component:"main","aria-labelledby":e.zilloft.hide_aria_labels?"config-title":void 0,children:[(0,o.jsx)(a(),{children:(0,o.jsx)("title",{children:(()=>{switch(n.get("for-sale")||"For Sale"){case"For Sale":default:return"Real Estate & Homes For Sale - 0 Homes For Sale | Zilloft";case"For Rent":return"Real Estate & Homes For Rent - 0 Homes For Rent | Zilloft";case"Sold":return"Real Estate & Recently Sold Homes - 0 Homes Sold | Zilloft"}})()})}),e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z,{}),(0,o.jsx)(eo,{}),(0,o.jsx)(eh,{})]})]})}}},function(e){e.O(0,[90,487,753,333,706,633,189,168,266,173,888,774,179],function(){return e(e.s=6485)}),_N_E=e.O()}]);

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.