PageSourceSearch

https://builder-cdn.access.com/_next/static/chunks/78388-250a1205529e36e7.js

js access.com collected 2026-09-25 03:48:33 UTC 35,371 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78388],{810824:function(e,t,l){"use strict";l.r(t);var r=l(785893),a=l(386010),o=l(98066),i=l.n(o),n=l(667294),c=l(728395),s=l.n(c),d=l(996104),u=l(579184),m=l(85944),x=l(174315),p=l(873292),h=l(365820),f=l(440176),g=l(905918),v=l(194829);let b={visible:{opacity:1},hidden:{opacity:0}};t.default=e=>{var t;let{wrapperClassName:l,placeholder:o="Type here",dataField:c,queryArr:w,inputState:P=!0,inputToggler:y,queryArrSetter:j,isColorTheme:N}=e,T=(0,n.useRef)(null),k=(0,n.useRef)(null),C=(0,v.Z)("screen and (min-width: 1024px)",!0),[I,_]=(0,n.useState)(!1),[D,E]=(0,n.useState)(""),Z=c.filter(e=>{var t;let l=e.text.toLowerCase();if(l.includes(null!==(t=null==D?void 0:D.toLowerCase())&&void 0!==t?t:""))return!0}),S=(0,g.O3)(e=>{var t,l,r,a;(null==e?void 0:null===(r=e.parentElement)||void 0===r?void 0:null===(l=r.parentElement)||void 0===l?void 0:null===(t=l.children)||void 0===t?void 0:t[0].id)==="input-container"||(null===(a=document.activeElement)||void 0===a?void 0:a.classList.contains(s()["chip--delete"]))||y(!1)}),scrollWithButton=e=>{let t=document.getElementById("input-container");t&&("up"===e?t.scrollTop-=24:t.scrollTop+=24)};return(0,n.useEffect)(()=>{let e;let t=T.current;if(null!==t)return!1==P&&(t.value=""),0===w.length?t.placeholder=o:P||0===w.length||(e=setTimeout(()=>{1==w.length&&(t.placeholder=w[0].text),2==w.length&&(t.placeholder=w[0].text+" & "+w[1].text),w.length>2&&(t.placeholder=w[0].text+", "+w[1].text+", & "+(w.length-2).toString()+" more")},100)),()=>{clearTimeout(e)}},[P,w]),(0,n.useEffect)(()=>{var e;let handleScrollChange=()=>{let e=k.current;e&&_(e.scrollHeight>e.clientHeight)};return null===(e=k.current)||void 0===e||e.addEventListener("scroll",handleScrollChange),window.addEventListener("resize",handleScrollChange),()=>{var e;null===(e=k.current)||void 0===e||e.removeEventListener("scroll",handleScrollChange),window.removeEventListener("resize",handleScrollChange)}},[k]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:(0,a.Z)("mb-1 font-roboto text-[0.625rem] leading-5 text-white transition-opacity  duration-150 sm:text-[0.75rem]",{"!text-transparent":!P&&0===w.length}),children:"Cities"}),(0,r.jsxs)("div",{className:"relative flex",children:[(0,r.jsxs)("div",{tabIndex:0,role:"menu",className:(0,a.Z)(" w-full"),children:[(0,r.jsxs)("div",{ref:k,id:"input-container",className:(0,a.Z)(s()["input-wrapper"],l),onClick:e=>{E(""),e.currentTarget.getElementsByTagName("input")[0].click(),e.currentTarget.getElementsByTagName("input")[0].focus()},children:[0!==w.length&&P&&w.map(e=>(0,r.jsx)(h.M,{children:(0,r.jsx)(f.E.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:b,className:(0,a.Z)(s().chip,{"!bg-colorPalette-color5":!N("default")}),children:(0,r.jsxs)("p",{className:(0,a.Z)("mt-[-0.0625rem] flex items-center justify-center font-roboto text-[0.625rem]",{"text-black":N("default"),"text-colorPalette-textTitleDark":!N("default")}),children:[(0,r.jsx)("span",{className:"pointer-events-none",children:e.text})," ",(0,r.jsxs)("button",{className:(0,a.Z)(s()["chip--delete"],"group"),"aria-label":"Delete ".concat(e.text," from active filters"),onClick:t=>{var l,r,a;null===(a=t.currentTarget.parentElement)||void 0===a||null===(r=a.parentElement)||void 0===r||null===(l=r.parentElement)||void 0===l||l.getElementsByTagName("input")[0].click(),j(w.filter(t=>t!==e))},children:[(0,r.jsx)(m.Z,{"aria-hidden":!0,className:(0,a.Z)({"group-hover:[&>circle]:!fill-colorPalette-textTitleDark [&>path]:!fill-colorPalette-textTitleDark group-hover:[&>path]:!fill-colorPalette-color5":!N("default")})}),(0,r.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})})),(0,r.jsx)("label",{htmlFor:"search-city-input",className:"sr-only",children:"FIND A CITY"}),(0,r.jsx)("input",{ref:T,"aria-label":(null===(t=T.current)||void 0===t?void 0:t.placeholder)?void 0:"FIND A CITY",id:"search-city-input",autoComplete:"off",className:(0,a.Z)(s()["input-field"],"!py-0",{"!w-full":!P||P&&0===w.length,[s()["input-field--inactive"]]:!P&&0!==w.length,[s()["input-field--with-value"]]:P&&0!==w.length}
1),type:"text",onChange:e=>{if(E(e.currentTarget.value),0===e.currentTarget.value.length){e.currentTarget.size=10;return}e.currentTarget.size=e.currentTarget.value.length+2},onKeyDown:()=>{y(!0)},onClick:e=>{y(e=>!e);let t=e.target;t.addEventListener("focusout",e=>{var t;let l=null===(t=e.currentTarget.parentElement)||void 0===t?void 0:t.parentElement;i()(()=>{var e,t,r;l.contains(document.activeElement)||(null===(e=document.activeElement)||void 0===e?void 0:e.id)==="btn-arrow--down"||(null===(t=document.activeElement)||void 0===t?void 0:t.id)==="scroll-up"||(null===(r=document.activeElement)||void 0===r?void 0:r.id)==="scroll-down"||y(!1)},50)})},onFocus:e=>{e.currentTarget.size=2;let t=e.target;t.addEventListener("focusout",e=>{var t;let l=null===(t=e.currentTarget.parentElement)||void 0===t?void 0:t.parentElement;i()(()=>{var e,t,r;l.contains(document.activeElement)||(null===(e=document.activeElement)||void 0===e?void 0:e.id)==="btn-arrow--down"||(null===(t=document.activeElement)||void 0===t?void 0:t.id)==="scroll-up"||(null===(r=document.activeElement)||void 0===r?void 0:r.id)==="scroll-down"||y(!1)},50)})}})]}),(0,r.jsxs)("div",{tabIndex:0,role:"menu",className:(0,a.Z)("absolute z-30 mt-1 flex max-h-[23.8125rem] w-full flex-col overflow-y-auto p-4 shadow-sh3",s()["data-dropdown"],{hidden:!P,"bg-neutral-100":N("default"),"bg-colorPalette-color5":!N("default-real"),"bg-colorPalette-color6":N("real")}),onClick:e=>{var t;null===(t=e.currentTarget.parentElement)||void 0===t||t.getElementsByTagName("input")[0].focus()},children:[c&&0!==c.length&&Z.map(e=>(0,r.jsx)("button",{className:(0,a.Z)(s()["item--data-filter"],{[s()["item--data-filter__active"]]:w.includes(e)&&N("default"),"bg-colorPalette-color1 text-colorPalette-textTitleLight hover:!bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":w.includes(e)&&!N("default"),"!text-colorPalette-textTitleDark hover:!bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":!w.includes(e)&&!N("default")}),onClick:t=>{var l,r,a,o;w.includes(e)?j(w.filter(t=>t!==e)):(j([...w,e]),E(""),T.current&&(T.current.value=""));let i=null===(r=t.currentTarget)||void 0===r?void 0:null===(l=r.parentElement)||void 0===l?void 0:l.parentElement;if(i){i.getElementsByTagName("input")[0].focus();let e=null!==(o=null===(a=i.getElementsByTagName("input")[0].parentElement)||void 0===a?void 0:a.scrollHeight)&&void 0!==o?o:24;setTimeout(()=>{let t=i.getElementsByTagName("input")[0].parentElement;null!==t&&(t.scrollTop=e)},100)}},children:e.text})),0==Z.length&&(0,r.jsx)("div",{className:(0,a.Z)("px-8 py-[0.8125rem] font-roboto text-[0.875rem]",{"text-black":N("default"),"text-colorPalette-textTitleDark":!N("default")}),children:"No Result"})]})]}),(0,r.jsxs)("div",{className:"flex h-6 items-center border-b-[0.0625rem] border-white",children:[0!==w.length&&(0,r.jsxs)("div",{className:"flex items-center",children:[P&&I&&C&&(0,r.jsxs)("div",{ref:S,className:s()["scroll-buttons"],children:[(0,r.jsxs)("button",{id:"scroll-up",className:"h-full w-full","aria-label":"Scroll Up Button",onClick:()=>scrollWithButton("up"),children:[(0,r.jsx)(p.Z,{role:"img","aria-hidden":!0}),(0,r.jsx)("span",{className:"sr-only",children:"Scroll Up"})]}),(0,r.jsxs)("button",{id:"scroll-down",className:"h-full w-full","aria-label":"Scroll Down Button",onClick:()=>scrollWithButton("down"),children:[(0,r.jsx)(x.Z,{role:"img","aria-hidden":!0}),(0,r.jsx)("span",{className:"sr-only",children:"Scroll Down"})]})]}),(0,r.jsx)(u.Z,{role:"button","aria-label":"Clear IDX Search",className:"ml-1 w-[0.575rem] fill-white",onClick:()=>{j([]);let e=T.current;if(null===e)return}}),(0,r.jsx)("span",{className:"sr-only",children:"Clear IDX Search"})]}),(0,r.jsx)(d.Z,{tabIndex:0,role:"button","aria-label":"Interact with IDX Search",id:"btn-arrow--down",className:(0,a.Z)(s()["btn-arrow"],"transition",{"rotate-180":P}),onClick:()=>{var e;null===(e=document.getElementById("input-container"))||void 0===e||e.click()}}),(0,r.jsx)("span",{className:"sr-only",children:"Interact with IDX Search"})]})]})]})}},382774:function(e,t,l){"use strict";l.r(t);var r=l(785893),a=l(667294),o=l(386010),i=l(98066),n=l.n(i),c=l(810824),s=l(996104),d=l(466545),u=l(538054),m=l(621133),x=l(266145),p=l.n(x),h=l(194829),f=l(905918),g=l(120749);let formatPrice=e=>
1e.toLocaleString("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}),v=[{remarks:"City",text:"House",value:"SFR",type:"string"},{remarks:"City",text:"Condo",value:"CND",type:"string"},{remarks:"City",text:"Lots/Land",value:"LL",type:"string"},{remarks:"City",text:"Multi-Unit Residential",value:"RI",type:"string"},{remarks:"City",text:"Mobile Home",value:"MH",type:"string"},{remarks:"City",text:"Rental",value:"RNT",type:"string"},{remarks:"City",text:"Commercial",value:"COM",type:"string"}],b=[{remarks:"City",value:"47",text:"Auburn",type:"cityId[]"},{remarks:"City",value:"119",text:"Cameron Park",type:"cityId[]"},{remarks:"City",value:"155",text:"Citrus Heights",type:"cityId[]"},{remarks:"City",value:"236",text:"Discovery Bay",type:"cityId[]"},{remarks:"City",value:"261",text:"El Dorado",type:"cityId[]"},{remarks:"City",value:"262",text:"El Dorado Hills",type:"cityId[]"},{remarks:"City",value:"271",text:"Elk Grove",type:"cityId[]"},{remarks:"City",value:"343",text:"Grass Valley",type:"cityId[]"},{remarks:"City",value:"6848",text:"Mountain House",type:"cityId[]"},{remarks:"City",value:"23351",text:"Murphys",type:"cityId[]"},{remarks:"City",value:"720",text:"Placerville",type:"cityId[]"},{remarks:"City",value:"781",text:"Rocklin",type:"cityId[]"},{remarks:"City",value:"791",text:"Roseville",type:"cityId[]"},{remarks:"City",value:"887",text:"Sonora",type:"cityId[]"},{remarks:"City",value:"954",text:"Twain Harte",type:"cityId[]"}],w=[[18e4,2e5],[3e5,4e5],[4e5,5e5],[5e5,6e5],[6e5,7e5],[7e5,8e5],[8e5,9e5],[1e6,18e5]];t.default=e=>{var t;let[l,i]=(0,a.useState)([]),{urlComponents:x,website:P,get:y,isColorTheme:j}=(0,f.Q$)(e.props),[N,T]=(0,a.useState)(!1),[k,C]=(0,a.useState)(!1),[I,_]=(0,a.useState)(!1),[D,E]=(0,a.useState)(!1),[Z,S]=(0,a.useState)(!1),[B,L]=(0,a.useState)(""),[F,M]=(0,a.useState)([]),[H,X]=(0,a.useState)([]),[R,z]=(0,a.useState)(["active"]),[A,U]=(0,a.useState)({minPrice:0,maxPrice:0,bed:0,bath:0}),[K,W]=(0,a.useState)(),G=(null==P?void 0:null===(t=P.pages.find(e=>"property-search"===e.path))||void 0===t?void 0:t.externalPath)||"property-search",O=(0,h.Z)("screen and (min-width: 1024px)",!0),renderBedsBaths=e=>{let{label:t,key:l,className:a}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:(0,o.Z)("font-primary text-xs leading-4",{"text-black":j("default"),"text-colorPalette-color1":!j("default")}),children:t}),(0,r.jsx)("div",{className:a,children:[0,1,2,3,4,5].map((e,t)=>(0,r.jsx)("button",{className:(0,o.Z)("h-8 border-[0.0625rem] border-solid border-black px-2 py-[0.375rem]  text-[0.75rem]",p()["item--data-filter"],{"text-senecaTemplate-darkerBlue":j("default"),"text-colorPalette-color1 hover:!bg-transparent":A[l]!==e&&!j("default"),"!bg-hamiltonTemplate-gold !text-white":A[l]===e&&j("default"),"!bg-colorPalette-color1 !text-white hover:!bg-colorPalette-color1":A[l]===e&&!j("default"),"border-l-[0]":0!==t,"rounded-bl-[3px] rounded-tl-[3px]":0===t,"rounded-br-[3px] rounded-tr-[3px]":5===t}),onClick:()=>{U(t=>({...t,[l]:e}))},children:0!==e?e+"+":(0,r.jsx)("span",{className:"block w-[2.1875rem] pl-[1px]",children:"ANY"})},e))})]})},renderStatusDropdown=()=>["Active","Pending","Sold"].map(e=>{let t=e.toLocaleLowerCase();return(0,r.jsxs)("button",{className:(0,o.Z)(p()["btn--checkbox"],p()["item--data-filter"],{[p().themed]:!j("default"),[p()["item--data-filter__active"]]:R.includes(t)&&j("default"),"group !bg-colorPalette-color1 !text-colorPalette-textTitleLight ":R.includes(t)&&!j("default"),"group hover:bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":!R.includes(t)&&!j("default")}),"aria-label":"Toggle IDX Status Filter for ".concat(e),onClick:()=>{R.includes(t)?z(R.filter(e=>e!==t)):z([...R,t])},children:[(0,r.jsxs)("div",{className:(0,o.Z)(p()["icon-wrapper"],{[p()["icon-wrapper--active"]]:R.includes(t)&&j("default"),"!border-colorPalette-color5 !bg-colorPalette-color5 [&>svg]:!fill-colorPalette-color1":R.includes(t)&&!j("default"),"!border-colorPalette-color6 !bg-colorPalette-color6 [&>svg]:!fill-colorPalette-color1":R.includes(t)&&j("real"),"!border-colorPalette-color7 group-hover:!border-colorPalette-color5":!R.includes(t)&&!j("default-real"),"!border-colorPalette-color7 group-hover:!border-colorPalette-color6":!R.includes(t)&&j("real")}
1),children:[(0,r.jsx)(u.Z,{role:"img","aria-hidden":!0,className:"w-[0.9163rem]"}),(0,r.jsx)("span",{className:"sr-only",children:e})]}),e]},e)});(0,a.useEffect)(()=>{W(()=>{var e,t,l,r;let a=new URLSearchParams,o=F.map(e=>e.value).join(","),i=R.map(e=>e).join(","),n=H.map(e=>e.value).join(",");return[[o,"cityId"],[i,"status"],[n,"propertyType"],[null!==(e=A.maxPrice)&&void 0!==e?e:"","maxListPrice"],[null!==(t=A.minPrice)&&void 0!==t?t:"","minListPrice"],[null!==(l=A.bed)&&void 0!==l?l:"","bedrooms"],[null!==(r=A.bath)&&void 0!==r?r:"","bathCount"]].map(e=>{a.append(e[1].toString(),"number"==typeof e[0]?e[0].toString():e[0])}),a.toString().replace(/%2C/g,",")})},[F,A,H,R]),(0,a.useEffect)(()=>{T(!1)},[Z,I,k]);let handleDropdown=(e,t,l)=>{t(e=>!e);let r=e.target.nextElementSibling;n()(()=>{r.focus()},50),r.addEventListener("focusout",e=>{let r=e.currentTarget.parentElement;n()(()=>{!r.contains(document.activeElement)&&(t(!1),l&&l(""))},50)})},Y=(0,f.GK)(e=>e.idxClient);return((0,a.useEffect)(()=>{if((null==Y?void 0:Y.activationToken.toUpperCase())!=="BC20B830-DD11-2A4A-E4AB181F1C2B1E42"){var e;(0,g.r)(null!==(e=null==Y?void 0:Y.clientId)&&void 0!==e?e:"").then(e=>{let t=e.map(e=>({remarks:"City",value:e.value,text:e.text,type:"cityId[]"}));i(t)})}else i(b)},[Y]),Y&&"false"!==y("IDXHeader"))?(0,r.jsx)("section",{id:"idx-section",className:(0,o.Z)("relative z-[25] w-full ",{"bg-hamiltonTemplate-offsetBlack":j("default"),"bg-colorPalette-color1":!j("default")}),children:(0,r.jsxs)("div",{id:"idx-header",className:(0,o.Z)("flex w-full flex-col items-center justify-center font-secondary",{"pointer-events-none":"builder"===e.props.mode}),children:[(0,r.jsxs)("div",{className:(0,o.Z)("z-10 w-full flex-col items-center justify-start px-4 pb-2 pt-4\n          tablet-sm:flex tablet-sm:flex-row tablet-sm:px-6 tablet-sm:pt-6\n          lg:pt-8 xl:max-w-[66.625rem] xl:px-0 xl:pt-12 "),children:[(0,r.jsx)("div",{className:"relative w-full lg:max-w-[23.8125rem]",children:(0,r.jsx)(c.default,{placeholder:"FIND A CITY",dataField:l,inputState:N,inputToggler:T,queryArr:F,queryArrSetter:M,isColorTheme:j})}),(0,r.jsx)("div",{className:" mx-3 hidden h-[3.5rem] w-[0.0625rem] bg-white tablet-sm:flex"}),O&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative self-center",children:[(0,r.jsxs)("button",{className:(0,o.Z)(p()["main--btn-filter"],{[p().themed]:!j("default"),"pointer-events-none bg-hamiltonTemplate-gold":k&&j("default"),"pointer-events-none bg-colorPalette-color5 !text-colorPalette-textTitleDark":k&&!j("default-real"),"pointer-events-none bg-colorPalette-color6 !text-colorPalette-textTitleDark":k&&j("real"),"group hover:!bg-colorPalette-color5 hover:!text-colorPalette-color1":!k&&!j("default-real"),"group hover:!bg-colorPalette-color6 hover:!text-colorPalette-color1":!k&&j("real")}),onClick:e=>handleDropdown(e,C),children:["STATUS"," ",(0,r.jsx)(s.Z,{role:"img","aria-hidden":!0,className:(0,o.Z)("pointer-events-none ml-5 mr-1 w-[0.375rem] fill-white",{"!fill-colorPalette-color1":k&&!j("default"),"group-hover:!fill-colorPalette-color1":!k&&!j("default")})}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle IDX Status Filter Dropdown"})]}),(0,r.jsx)("div",{tabIndex:0,role:"menu",className:(0,o.Z)("absolute right-4 top-[2.8125rem] w-[12.5625rem] p-4 shadow-sh3 lg:top-[3.4375rem]",{hidden:!1===k,"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:renderStatusDropdown()})]}),(0,r.jsxs)("div",{className:"relative self-center",children:[(0,r.jsxs)("button",{className:(0,o.Z)(p()["main--btn-filter"],{[p().themed]:!j("default"),"pointer-events-none bg-hamiltonTemplate-gold":I&&j("default"),"pointer-events-none bg-colorPalette-color5 !text-colorPalette-textTitleDark":I&&!j("default-real"),"pointer-events-none bg-colorPalette-color6 !text-colorPalette-textTitleDark":I&&j("real"),"group hover:!bg-colorPalette-color5 hover:!text-colorPalette-color1":!I&&!j("default-real"),"group hover:!bg-colorPalette-color6 hover:!text-colorPalette-color1":!I&&j("real")}),onClick:e=>{handleDropdown(e,_,L)}
1,children:["PRICE",(0,r.jsx)(s.Z,{role:"img","aria-hidden":!0,className:(0,o.Z)("pointer-events-none ml-5 mr-1 w-[0.375rem] fill-white",{"!fill-colorPalette-color1":I&&!j("default"),"group-hover:!fill-colorPalette-color1":!I&&!j("default")})}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle IDX Price Filter Dropdown"})]}),(0,r.jsx)("div",{tabIndex:0,role:"menu",className:(0,o.Z)("absolute right-4 top-[3.125rem] flex w-[21.4375rem] items-center justify-center p-4 shadow-sh3 lg:top-[3.4375rem]",{hidden:!1===I,"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:["Min","separator","Max"].map(e=>{let t="Max"===e?"maxPrice":"minPrice",l="".concat(e.toLowerCase(),"price-wrapper"),a=formatPrice(A[t]);return"separator"===e?(0,r.jsx)("div",{className:"mx-2 h-[0.125rem] min-w-[0.5rem] max-w-[0.5rem] bg-black"}):(0,r.jsxs)("div",{className:"relative  w-full",children:[(0,r.jsxs)("button",{id:l,className:(0,o.Z)("flex w-full items-center justify-between rounded-[3px] border-[0.0625rem] border-solid border-black px-4 py-[0.8125rem] text-start text-[0.875rem] leading-[1.375rem] text-black transition-colors duration-150",{"bg-hamiltonTemplate-gold !text-white":B===e&&j("default"),"bg-colorPalette-color1 !text-colorPalette-textTitleLight":B===e&&!j("default")}),"aria-label":"Toggle IDX Price Filter for ".concat(0!==A[t]?a[0]+" "+a.substring(1):e),onClick:()=>{L(()=>B===e?"":e)},children:[(0,r.jsxs)("span",{children:[0!==A[t]?a[0]+" "+a.substring(1):e," "]}),(0,r.jsx)(s.Z,{role:"img","aria-hidden":!0,className:(0,o.Z)("mr-1 w-[0.375rem]  fill-black",{"!fill-white":B===e})}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Price Filter Icon"})]}),(0,r.jsxs)("div",{className:(0,o.Z)("absolute left-0 top-[3.4375rem] hidden w-full flex-col shadow-sh3",{"!flex ":B===e,"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:[(0,r.jsx)("button",{className:(0,o.Z)("px-4 py-[0.8125rem] text-start  text-[0.875rem]",p()["item--data-filter"],p()["price-filter"],{"!text-colorPalette-textTitleDark hover:!bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":!j("default")}),onClick:()=>{var e,r;U({...A,[t]:0}),null===(e=document.getElementById(l))||void 0===e||e.focus(),null===(r=document.getElementById(l))||void 0===r||r.click()},children:"No ".concat(e)}),w.map(a=>{var i,n;let c=formatPrice("Min"===e?a[0]:a[1]);return"Max"===e&&(null!==(i=A.minPrice)&&void 0!==i?i:0)>a[1]&&0!==a[1]||"Min"===e&&0!==A.maxPrice&&a[0]>(null!==(n=A.maxPrice)&&void 0!==n?n:0)?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("button",{className:(0,o.Z)("px-4 py-[0.8125rem] text-start  text-[0.875rem]",p()["item--data-filter"],p()["price-filter"],{[p()["item--data-filter__active"]]:A[t]===a["Max"===e?1:0]&&j("default"),"!text-colorPalette-textTitleDark":A[t]!==a["Max"===e?1:0]&&!j("default"),"!bg-colorPalette-color1 !text-colorPalette-textTitleLight":A[t]===a["Max"===e?1:0]&&!j("default"),"hover:!bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":!j("default")}),onClick:()=>{var r,o;U(l=>({...l,[t]:"Min"===e?a[0]:a[1]})),null===(r=document.getElementById(l))||void 0===r||r.focus(),null===(o=document.getElementById(l))||void 0===o||o.click()},children:("Min"===e?a[0]:a[1])!==0&&c[0]+" "+c.substring(1)})})]})]},l)})})]})]}),(0,r.jsxs)("div",{className:"relative flex flex-row justify-end self-center pt-4 tablet-sm:pt-0 md:h-full",children:[(0,r.jsxs)("div",{className:"tablet-sm:relative tablet-sm:self-center",children:[(0,r.jsxs)("button",{className:(0,o.Z)(p()["main--btn-filter"],{[p().themed]:!j("default"),"pointer-events-none bg-hamiltonTemplate-gold":Z&&j("default"),"pointer-events-none bg-colorPalette-color5 !text-colorPalette-textTitleDark":Z&&!j("default-real"),"pointer-events-none bg-colorPalette-color6 !text-colorPalette-textTitleDark":Z&&j("real"),"group hover:!bg-colorPalette-color5 hover:!text-colorPalette-color1":!Z&&!j("default-real"),"group hover:!bg-colorPalette-color6 hover:!text-colorPalette-color1":!Z&&j("real")}),onClick:e=>handleDropdown(e,S),children:[(0,r.jsx)(d.Z,{role:"img","aria-hidden":!0,
1className:(0,o.Z)("pointer-events-none mr-4 w-[0.875rem] fill-white",{"!fill-colorPalette-color1":Z&&!j("default"),"group-hover:!fill-colorPalette-color1":!Z&&!j("default")})}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle IDX Filter Dropdown"}),"FILTERS"]}),(0,r.jsxs)("div",{tabIndex:0,role:"menu",className:(0,o.Z)("absolute left-[50%] top-[3.625rem] flex w-[17.6875rem] translate-x-[-50%] flex-col items-start justify-center p-4  shadow-sh3 tablet-sm:left-auto tablet-sm:right-4 tablet-sm:top-[2.8125rem] tablet-sm:translate-x-0 md:right-2 lg:right-4 lg:top-[3.4375rem]",{hidden:!1===Z,"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:[!O&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:(0,o.Z)("mb-2 w-full text-left  text-base  font-semibold",{"text-black":j("default"),"text-colorPalette-color1":!j("default")}),children:"Status"}),(0,r.jsxs)("div",{className:"relative z-50 mb-6 w-full ",children:[(0,r.jsxs)("button",{className:(0,o.Z)("flex w-full items-center justify-between border-[0.0625rem] border-solid border-black px-4 py-[0.8125rem] text-left  text-[0.875rem]",{"!bg-hamiltonTemplate-gold text-white":k&&j("default"),"bg-colorPalette-color1 text-white":k&&!j("default")}),"aria-label":"Toggle IDX Status Filter Dropdown",onClick:e=>{C(e=>!e);let t=e.target.nextElementSibling;n()(()=>{t.focus()},100),n()(()=>{t.addEventListener("focusout",e=>{let t=e.currentTarget.parentElement;n()(()=>{t.contains(document.activeElement)||C(!1)},50)})},100)},children:[(0,r.jsx)("span",{children:"Choose status"}),(0,r.jsx)(s.Z,{role:"img","aria-hidden":!0,className:(0,o.Z)("mr-1 w-[0.375rem]  fill-black",{"!fill-white":k})}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Status Filter Icon"})]}),(0,r.jsx)("div",{tabIndex:0,role:"menu",className:(0,o.Z)("absolute left-0 top-[3.75rem] flex w-full  flex-col  p-2 shadow-sh3",{hidden:!1===k,"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:renderStatusDropdown()})]}),(0,r.jsx)("p",{className:"mb-2 w-full text-left  text-base  font-semibold text-black",children:"Price"}),(0,r.jsx)("div",{className:"relative mb-6 w-full ",children:["Min","Max"].map((e,t)=>{let l="Max"===e?"maxPrice":"minPrice",a="".concat(e.toLowerCase(),"price-wrapper"),i=formatPrice(A[l]);return(0,r.jsx)("div",{tabIndex:0,role:"menu",className:(0,o.Z)("relative flex w-full flex-col items-center justify-center shadow-sh3",{"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:(0,r.jsxs)("div",{className:(0,o.Z)("relative mb-2 w-full",{"z-20":0===t,"z-10":1===t}),children:[(0,r.jsxs)("button",{id:a,className:(0,o.Z)("flex w-full items-center justify-between border-[0.0625rem]  border-solid border-black px-4 py-[0.8125rem] text-start  text-[0.875rem] leading-[1.375rem] text-black transition-colors duration-150",{"bg-hamiltonTemplate-gold !text-white":B===e&&j("default"),"bg-colorPalette-color1 !text-colorPalette-textTitleLight":B===e&&!j("default")}),"aria-label":"Toggle IDX Price Filter for ".concat(0!==A[l]?i[0]+" "+i.substring(1):e),onClick:t=>{L(()=>B===e?"":e);let l=t.target.nextElementSibling;n()(()=>{l.focus()},100),n()(()=>{l.addEventListener("focusout",e=>{let t=e.currentTarget;n()(()=>{var e;(null===(e=t.parentElement)||void 0===e?void 0:e.contains(document.activeElement))||L("")},50)})},100)},children:[(0,r.jsx)("span",{children:0!==A[l]?i[0]+" "+i.substring(1):e})," ",(0,r.jsx)(s.Z,{role:"img","aria-hidden":!0,className:(0,o.Z)("mr-1 w-[0.375rem]  fill-black",{"!fill-white":B===e})}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Price Filter Icon"})]}),(0,r.jsxs)("div",{tabIndex:0,role:"menu",className:(0,o.Z)("absolute left-0 top-[58px] hidden w-full flex-col",{"!flex ":B===e,"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:[(0,r.jsx)("button",{className:(0,o.Z)("px-4 py-[0.8125rem] text-start  text-[0.875rem]",p()["item--data-filter"],p()["price-filter"],{"!text-colorPalette-textTitleDark hover:!bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":!j("default")}),onClick:()=>{var e,t;U({...A,[l]:0}),null===(e=document.getElementById(a))||void 0===e||e.focus(),null===(t=document.getElementById(a))||void 0===t||t.click()},children:"No ".concat(e)}),w.map(t=>{var i,n;let c=formatPrice("Min"===e?t[0]:t[1]);return"Max"===e&&(null!==(i=A.minPrice)&&void 0!==i?i:0)>t[1]&&0!==t[1]||"Min"===e&&0!==A.maxPrice&&t[0]>(null!==(n=A.maxPrice)&&void 0!==n?n:0)?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("button",{className:(0,o.Z)("px-4 py-[0.8125rem] text-start  text-[0.875rem]",p()["item--data-filter"],p()["price-filter"],{[p()["item--data-filter__active"]]:A[l]==t["Max"===e?1:0]&&j("default"),"!text-colorPalette-textTitleDark":A[l]!==t["Max"===e?1:0]&&!j("default"),"!bg-colorPalette-color1 !text-colorPalette-textTitleLight":A[l]===t["Max"===e?1:0]&&!j("default"),"hover:!bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":!j("default")}),onClick:()=>{var r,o;U(r=>({...r,[l]:"Min"===e?t[0]:t[1]})),null===(r=document.getElementById(a))||void 0===r||r.focus(),null===(o=document.getElementById(a))||void 0===o||o.click()},children:("Min"===e?t[0]:t[1])!==0&&c[0]+" "+c.substring(1)})})]})]})},a)})})]}),(0,r.jsx)("p",{className:(0,o.Z)("mb-2 w-full text-left  font-primary text-base font-semibold",{"text-black":j("default"),"text-colorPalette-color1":!j("default")}),children:"Beds & Baths"}),renderBedsBaths({label:"Bedrooms",key:"bed",className:"mb-2"}),renderBedsBaths({label:"Bathrooms",key:"bath",className:"mb-6"}),(0,r.jsx)("p",{className:(0,o.Z)(" mb-2 w-full  text-left font-primary  text-base  font-semibold",{"text-black":j("default"),"text-colorPalette-color1":!j("default")}),children:"Property Type"}),(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsxs)("button",{className:(0,o.Z)("flex w-full items-center justify-between rounded-[3px] border-none px-4 py-[0.8125rem] text-left text-[0.875rem] outline-none",{"!bg-hamiltonTemplate-gold !text-white":D&&j("default"),"!bg-colorPalette-color1 !text-white hover:!bg-colorPalette-color1":D&&!j("default"),"!text-colorPalette-color1":!D&&!j("default")}),"aria-label":"Toggle IDX Property Type Filter Dropdown",onClick:e=>{E(e=>!e);let t=e.target.nextElementSibling;n()(()=>{t.focus()},100),n()(()=>{t.addEventListener("focusout",e=>{let t=e.currentTarget.parentElement;n()(()=>{t.contains(document.activeElement)||E(!1)},50)})},100)},children:[(0,r.jsx)("span",{children:"Choose property type"}
1)," ",(0,r.jsx)(s.Z,{role:"img","aria-hidden":!0,className:(0,o.Z)("mr-1 w-[0.375rem] fill-colorPalette-color1 outline-none",{"!fill-colorPalette-textTitleLight":D})}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Property Type Filter Icon"})]}),(0,r.jsx)("div",{tabIndex:0,role:"menu",className:(0,o.Z)("absolute left-[50%] top-[3.75rem] flex w-full translate-x-[-50%] flex-col p-2 shadow-sh3",{hidden:!1===D,"bg-white":j("default"),"bg-colorPalette-color5":!j("default-real"),"bg-colorPalette-color6":j("real")}),children:v.map(e=>(0,r.jsxs)("button",{className:(0,o.Z)(p()["btn--checkbox"],p()["item--data-filter"],{[p().themed]:!j("default"),[p()["item--data-filter__active"]]:H.includes(e)&&j("default"),"group !bg-colorPalette-color1 !text-colorPalette-textTitleLight":H.includes(e)&&!j("default"),"group text-colorPalette-textTitleDark hover:!bg-colorPalette-color1 hover:!text-colorPalette-textTitleLight":!H.includes(e)&&!j("default")}),"aria-label":"Toggle IDX Property Type Filter for ".concat(e.text),onClick:()=>{H.includes(e)?X(H.filter(t=>t!==e)):X([...H,e])},children:[(0,r.jsxs)("div",{className:(0,o.Z)(p()["icon-wrapper"],{[p()["icon-wrapper--active"]]:H.includes(e)&&j("default"),"!border-colorPalette-color5 !bg-colorPalette-color5 [&>svg]:!fill-colorPalette-color1":H.includes(e)&&!j("default-real"),"!border-colorPalette-color6 !bg-colorPalette-color6 [&>svg]:!fill-colorPalette-color1":H.includes(e)&&j("real"),"!border-colorPalette-color7 group-hover:!border-colorPalette-color5":!H.includes(e)&&!j("default-real"),"!border-colorPalette-color7 group-hover:!border-colorPalette-color6":!
1H.includes(e)&&j("real")}),children:[(0,r.jsx)(u.Z,{role:"img","aria-hidden":!0,className:"w-[0.9163rem]"}),(0,r.jsx)("span",{className:"sr-only",children:e.text})]}),e.text]},e.value))})]})]})]}),(0,r.jsxs)("div",{className:"mt-0 flex h-[3.5rem] flex-row items-center justify-center",children:[(0,r.jsx)("div",{className:"mr-4 w-full tablet-sm:mr-0 tablet-sm:self-center",children:(0,r.jsx)("button",{className:(0,o.Z)(p()["main--btn-filter"],"w-full border border-white tablet-sm:w-[7.75rem]",{[p().themed]:!j("default"),"!border-colorPalette-color5 !text-colorPalette-color5":!j("default-real"),"!border-colorPalette-color6 !text-colorPalette-color6":j("real")}),onClick:()=>{T(!1),M([]),z([]),X([]),U({minPrice:0,maxPrice:0,bed:0,bath:0}),document.getElementById("search-city-input").placeholder="FIND A CITY"},children:"RESET"})}),(0,r.jsx)("div",{className:"w-full tablet-sm:self-center",children:(0,r.jsxs)("a",{className:(0,o.Z)(p()["main--btn-filter"],p()["main--btn-filter_search"],{[p().themed]:!j("default"),"!bg-colorPalette-color5 !text-colorPalette-color1":!j("default-real"),"!bg-colorPalette-color6 !text-colorPalette-color1":j("real")}),href:(null==P?void 0:P.options.domainConnected)?"".concat(P.options.domain,"/").concat(G,"?").concat(K):"/~/".concat(x.websiteId,"/").concat(x.websiteName,"/").concat(G,"?").concat(K),children:[(0,r.jsx)(m.Z,{role:"img","aria-hidden":!0,className:(0,o.Z)("pointer-events-none mr-4 w-[0.875rem] fill-black",{"!fill-colorPalette-color1":!j("default")})}),(0,r.jsx)("span",{className:"sr-only",children:"Search IDX Properties"}),"SEARCH"]})})]})]})]}),(0,r.jsx)("div",{className:(0,o.Z)("w-full px-4 pb-4 pt-0 text-right text-[0.75rem] font-light leading-[1.25rem] tracking-[0.96px] tablet-sm:px-6 tablet-sm:pb-6 lg:pb-8 xl:max-w-[66.625rem] xl:px-0 xl:pb-12",{"text-[#999]":j("default"),"text-colorPalette-textTitleLight":!j("default")}),children:"Real Estate IDX Powered by iHomeFinder"})]})}):(0,r.jsx)(r.Fragment,{})}},578388:function(e,t,l){"use strict";l.r(t);var r=l(785893),a=l(905918),o=l(667294),i=l(382774),n=l(386010),c=l(425675),s=l.n(c),d=l(194829),u=l(871159),m=l(659702),x=l(268337),p=l(78045);t.default=e=>{let{component:t,get:l,isHidden:o,isBuilder:c,isColorTheme:h}=(0,a.Q$)(e),f=(0,d.Z)("screen and (max-width: 641px)",!1),g=(0,a.KE)(),v=(0,a.GK)(e=>e.idxClient),b=(0,x.v9)(p.jX),w=l("widgetType");return o()||!v?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(u.Z.Root,{children:["default in-house"===w?(0,r.jsx)(u.Z.Trigger,{isBuilder:c,tagName:"Widget",tagClassName:"right-0 top-0 px-1.5 rounded-none rounded-bl-sm",triggerClassName:"size-full",children:(0,r.jsx)(i.default,{isActive:t.id===b||!c,props:e})}):(0,r.jsx)("div",{className:(0,n.Z)("pt-1",{"bg-hamiltonTemplate-offsetBlack":h("default"),"bg-colorPalette-color1":!h("default")}),children:(0,r.jsx)(u.Z.Trigger,{isBuilder:c,tagName:"Widget",tagClassName:"right-0 top-0 px-1.5 rounded-none rounded-bl-sm",triggerClassName:"size-full",children:c||"builder"===e.mode||g?(0,r.jsx)("div",{className:"flex items-center justify-center pb-8 pt-7",children:(0,r.jsx)(s(),{src:f?"/static/image/ihf-widget-placeholder-mobile.png":"/static/image/ihf-widget-placeholder.png",alt:"IHF Widget Preview",width:f?340:719,height:f?264:240})}):(0,r.jsx)(IDXSearch,{widgetType:w.toLowerCase(),bgClass:{"bg-hamiltonTemplate-offsetBlack":h("default"),"bg-colorPalette-color1":!h("default")}})})}),(0,r.jsxs)(u.Z.Content,{className:"h-fit w-[18.5rem]",align:"end",side:"top",sideOffset:20,alignOffset:30,children:[(0,r.jsx)(u.Z.Close,{}),(0,r.jsx)("p",{className:"mb-4 font-semibold text-neutral-700",children:"Manage Widget"}),(0,r.jsx)(m.Z,{...e})]})]})};let IDXSearch=e=>{let t=o.useRef(null),l=(0,a.GK)(e=>e.idxClient),renderIDX=()=>{var l;let r=window;if(!r.ihfKestrel)return;let a=null===(l=r.ihfKestrel)||void 0===l?void 0:l.render({component:"quickSearchWidget",style:e.widgetType});if(t&&(null==t?void 0:t.current)){let e=t.current;e.children[0]&&e.children[0].remove(),null==e||e.appendChild(a)}};return(o.useEffect(()=>{let e=0,t=setInterval(()=>{var l;let r=window;(null===(l=r.ihfKestrel)||void 0===l?void 0:l.render)&&(renderIDX(),clearInterval(t)),++e>5&&clearInterval(t)},300);return()=>clearInterval(t)},[e.widgetType]),null==l?void 0:l.activationToken)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:t,id:"IHFQuickSearch",className:(0,n.Z)("relative z-50 mx-auto max-w-[1440px] px-4 pt-7 font-secondary text-black tablet-sm:px-
15 lg:px-[3.75rem]",{"lg:max-w-[80rem]":"universal"===e.widgetType})}),(0,r.jsx)("div",{className:(0,n.Z)("z-50 mx-auto max-w-[1440px] px-4 pt-7 text-right font-secondary text-xs font-light tracking-[1.2] text-white tablet-sm:px-5 lg:px-[3.75rem]",{"pb-7":"twoline"!==e.widgetType,"mb-1 pb-7 tablet-sm:-mt-7 ":"twoline"===e.widgetType,"lg:max-w-[80rem]":"universal"===e.widgetType},e.bgClass),children:"Real Estate IDX Powered by iHomeFinder"})]}):(0,r.jsx)(r.Fragment,{})}},728395:function(e){e.exports={"input-field":"DropDownInput_input-field__ddgee","input-field--inactive":"DropDownInput_input-field--inactive__7SzsB","input-field--with-value":"DropDownInput_input-field--with-value__lhMdT","input-wrapper":"DropDownInput_input-wrapper__L_9p9","btn-arrow":"DropDownInput_btn-arrow__tDwsp","item--data-filter":"DropDownInput_item--data-filter__6tvgK","item--data-filter__active":"DropDownInput_item--data-filter__active__pLoRU","data-dropdown":"DropDownInput_data-dropdown__ODNu4",chip:"DropDownInput_chip__H_Vm0","chip--delete":"DropDownInput_chip--delete__g822b","scroll-buttons":"DropDownInput_scroll-buttons__ZeBvM"}},266145:function(e){e.exports={"item--data-filter":"Header_item--data-filter__MBs6T",themed:"Header_themed__ocTUn","item--data-filter__active":"Header_item--data-filter__active__jTA__","btn--checkbox":"Header_btn--checkbox__2kEbV","content-wrapper":"Header_content-wrapper__SdXER","main--btn-filter":"Header_main--btn-filter__msmmQ","main--btn-filter_search":"Header_main--btn-filter_search__xv_Wb","icon-wrapper":"Header_icon-wrapper__gND0_","icon-wrapper--active":"Header_icon-wrapper--active___z3ZF"}}}]);

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.