(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34007],{91233:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"M.943 2.043c-.382.096-.676.391-.838.839-.096.266-.145 2.89-.063 3.439.08.539.307.877.755 1.124l.199.11h29.967l.292-.146c.673-.335.725-.522.725-2.621 0-2.093-.079-2.396-.695-2.68-.199-.091-29.981-.156-30.339-.066zm.093 11.204c-.401.069-.793.43-.936.862-.069.207-.078.431-.078 1.908v1.674l.115.256c.226.504.582.772 1.12.842.7.091 29.637.026 29.868-.068.745-.302.875-.709.875-2.725 0-2.166-.173-2.611-1.066-2.747-.322-.049-29.614-.051-29.897-.002zm-.03 11.213c-.393.064-.757.403-.901.838-.126.382-.126 3.422.001 3.804.113.341.411.653.759.792l.263.106 14.833-.002c15.506-.002 15.005.004 15.38-.198.582-.313.637-.536.637-2.603v-1.744l-.144-.308c-.15-.321-.326-.499-.618-.628-.179-.078-29.736-.135-30.21-.057z"})))}},9107:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({width:"1em",height:"1em",viewBox:"0 0 11 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=n.createElement("path",{d:"M10 1 1.5 9.5 10 18",stroke:"#fff",strokeWidth:2})))}},76707:function(e,t,l){"use strict";var a,n,r=l(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=r.createElement("path",{d:"M1.781 5.335c9.489-.005 18.978 0 28.468.014.301.076.578.197.831.362.072.056.097.126.074.209a5.292 5.292 0 0 1-.49.432 6420.004 6420.004 0 0 0-14.397 11.516c-.143.115-.291.124-.445.028L1.069 6.101a.823.823 0 0 1-.208-.237.776.776 0 0 1 .445-.349c.165-.054.323-.115.475-.181zM.059 7.399a.432.432 0 0 1 .297.125l10.39 8.421a.504.504 0 0 1 .148.209.809.809 0 0 1-.208.237c-3.403 2.685-6.797 5.38-10.182 8.086-.12.093-.248.172-.386.237-.068-.008-.102-.045-.104-.112-.02-5.697-.02-11.395 0-17.093a.84.84 0 0 1 .044-.112zM31.822 7.399h.148c.04 5.763.04 11.525 0 17.288a.59.59 0 0 1-.178-.014 2246.855 2246.855 0 0 1-10.538-8.365c-.077-.065-.102-.144-.074-.237 3.535-2.908 7.083-5.798 10.642-8.672z"})),n||(n=r.createElement("path",{d:"M11.933 17.158a.55.55 0 0 1 .267.042 283.366 283.366 0 0 0 3.711 3.012.427.427 0 0 0 .327-.056c1.172-.973 2.349-1.94 3.532-2.9a.296.296 0 0 1 .356-.056c3.675 2.922 7.341 5.855 10.998 8.797a.18.18 0 0 1 .03.167 1.337 1.337 0 0 1-.519.321c-.209.051-.417.107-.623.167-9.331.018-18.662.018-27.993 0a2.99 2.99 0 0 1-1.009-.363c-.197-.146-.187-.285.03-.418 3.628-2.911 7.26-5.816 10.894-8.714z"})))}},54220:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"m23.486 18 .894-5.791h-5.587V8.451c0-1.584.78-3.129 3.282-3.129h2.54V.391S22.31 0 20.106 0c-4.601 0-7.608 2.774-7.608 7.795v4.414H7.384V18h5.114v14h6.294V18h4.693z"})))}},22393:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"M7.166 3.556c0 1.887-1.264 3.513-3.556 3.513-2.162 0-3.556-1.535-3.556-3.422C.054 1.711 1.406 0 3.61 0s3.513 1.616 3.556 3.556zM.054 32V8.888h7.112V32H.054zM10.614 16.79c0-2.746-.091-5.042-.183-7.024h6.39l.317 3.063h.134c.901-1.443 3.105-3.556 6.795-3.556 4.503 0 7.879 3.014 7.879 9.496V32h-7.112V19.804c0-2.834-1.078-4.996-3.556-4.996-1.887 0-2.834 1.528-3.331 2.789-.183.451-.225 1.081-.225 1.711V32h-7.109V16.79z"})))}},3409:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"M14.825 30.521C13.543 28.546 4.571 16.389 4.571 11.68 4.571 5.23 9.689 0 15.999 0s11.428 5.23 11.428 11.68c0 4.708-8.862 16.868-10.254 18.841-1.394 1.973-1.065 1.973-2.35 0zM16 16.548c2.628 0 4.761-2.181 4.761-4.868S18.631 6.814 16 6.814c-2.628 0-4.761 2.178-4.761 4.868 0 2.686 2.13 4.866 4.761 4.866z"})))}},8137:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"M6.54.071c.564.147.847.368 1.857 1.451.285.306.833.891 1.219 1.3 1.671 1.773 1.643 1.742 1.842 2.058.282.446.404.89.407 1.482.005.929-.218 1.391-1.168 2.413-1.197 1.288-1.2 1.386-.096 2.809a76.564 76.564 0 0 0 2.434 2.952c2.606 2.952 4.774 5.172 7.146 7.316.703.635.903.75 1.266.727.343-.022.387-.055 1.277-.944 1.104-1.103 1.321-1.224 2.203-1.224.717 0 1.326.283 1.819.844.094.108.408.442 1.837 1.959 1.747 1.854 1.76 1.869 1.969 2.291.51 1.03.376 2.178-.357 3.068-.384.466-2.148 2.315-2.424 2.541-.808.662-2.135 1.028-3.024.834-.856-.186-1.207-.365-2.358-1.205A77.926 77.926 0 0 1 8.623 17.858c-2.786-3.34-6.608-8.762-7.165-10.164-.606-1.527-.32-3.435.706-4.707C2.401 2.694 4.178.799 4.386.619 5.006.08 5.8-.122 6.54.07z"})))}},94116:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"M30.045 8.012h-.015A8.08 8.08 0 0 1 21.949.004V0h-5.228v22.097a4.73 4.73 0 0 1-5.017 4.717l.013.001A4.733 4.733 0 0 1 7.24 22.17V22.098a4.733 4.733 0 0 1 6.262-4.481l-.033-.01v-5.303a9.902 9.902 0 0 0-1.506-.113h-.001a10.018 10.018 0 0 0-7.526 3.369 9.749 9.749 0 0 0-2.471 5.882l-.002.029a9.785 9.785 0 0 0 2.915 7.628 9.99 9.99 0 0 0 7.053 2.9h.036-.002.049a9.957 9.957 0 0 0 7.038-2.901l-.001.001a9.75 9.75 0 0 0 2.929-6.96v-.001l-.029-11.677a13.105 13.105 0 0 0 8.064 2.752h.04-.002V8.012h-.015z"})))}},11618:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"m1.674 0 11.738 17.65L1.601 32h2.658L14.6 19.437 22.955 32h9.046L19.604 13.357 30.596 0H27.94l-9.525 11.571L10.721 0H1.675zm3.91 2.202h4.155l18.352 27.597h-4.157L5.584 2.201z"})))}},36053:function(e,t,l){"use strict";var a,n=l(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=n.createElement("path",{d:"M31.331 23.702a4.007 4.007 0 0 1-2.829 2.829C26.007 27.2 16 27.2 16 27.2s-10.007 0-12.502-.669a4.007 4.007 0 0 1-2.829-2.829C0 21.206 0 16 0 16s0-5.207.669-7.702a4.008 4.008 0 0 1 2.829-2.829C5.993 4.8 16 4.8 16 4.8s10.007 0 12.502.669a4.007 4.007 0 0 1 2.829 2.829C32 10.793 32 16 32 16s0 5.207-.669 7.702zM12.8 11.2v9.6l8.314-4.8-8.313-4.8z"})))}},27147:function(e,t,l){"use strict";l.r(t);var a=l(85893),n=l(46513),r=l(40176),i=l(67294),s=l(97650);let o=e=>{let{children:t,...l}=e,o=(0,n._)(),[c,d]=(0,s.YD)();return(0,i.useEffect)(()=>{d&&o.start("visible")},[o,d]),(0,a.jsx)(r.E.div,{ref:c,animate:o,initial:"hidden",...l,children:t})};t.default=o},26081:function(e,t,l){"use strict";l.r(t);var a=l(85893),n=l(67294),r=l(27147),i=l(92962),s=l.n(i),o=l(86010),c=l(28926),d=l(94829),m=l(38967),u=l(41664),p=l.n(u);let h=e=>{var t;let{pageMeta:l,onClick:i,onMouseOver:u,onMouseLeave:h,isBuilder:v}=e,x=n.useRef(null),{urlComponents:f}=(0,m.i)(),g=n.useMemo(()=>{var e,t;return(null==l?void 0:null===(e=l.mainComponent)||void 0===e?void 0:null===(t=e.meta)||void 0===t?void 0:t.data)||[]},[l]),b=(null===(t=null==g?void 0:g.filter(e=>e.key.startsWith("listing")||e.key.startsWith("community")))||void 0===t?void 0:t.filter(e=>{let t=e.value?JSON.parse(e.value):e.value,l=t.find(e=>"visible"===e.key);return"true"===l.value}).map(e=>({...e,value:JSON.parse(e.value||[])})))||[],w=((0,d.Z)("screen and (min-width: 1280px)"),e=>{var t,l;let a=(null===(t=null==e?void 0:null===(l=e.value)||void 0===l?void 0:l.find(e=>"name"===e.key))||void 0===t?void 0:t.value)||"";return a});return(null==l?void 0:l.mainComponent)?(0,a.jsx)(r.default,{variants:c.j.motionDropDown(),className:(0,o.Z)(s()["nav-page"]),children:(0,a.jsx)("div",{onMouseOver:u,onMouseLeave:h,children:(0,a.jsx)("div",{ref:x,className:(0,o.Z)(s()["nav-items"]),children:b.map((e,t)=>{var n;return(0,a.jsx)("div",{children:(0,a.jsx)(p(),{href:f.asPath("".concat(l.path,"/").concat((null==l?void 0:null===(n=l.mainComponent)||void 0===n?void 0:n.id)||"-","/").concat(e.id)),className:(0,o.Z)("flex",s()["item-button"]),onClick:e=>{if(v){e.preventDefault();return}null==i||i()},children:w(e)})},t)})})})},l.id):(0,a.jsx)(a.Fragment,{})};t.default=h},95063:function(e,t,l){"use strict";l.r(t);var a=l(85893),n=l(86010),r=l(96486),i=l(67294),s=l(4697),o=l.n(s),c=l(93822),d=l(1720),m=l(68904),u=l(37537),p=l(5437),h=l(65820),v=l(40176),x=l(91157),f=l(94829);let g={visible:{opacity:1},hidden:{opacity:0}},b=e=>{var t;let{wrapperClassName:l,placeholder:s="Type here",dataField:b,queryArr:w,inputState:y=!0,inputToggler:j,queryArrSetter:N}=e,k=i.useRef(null),Z=i.useRef(null),E=(0,f.Z)("screen and (min-width: 1024px)",!0),[C,T]=i.useState(!1),[I,_]=i.useState(""),D=b.filter(e=>{var t;let l=e.text.toLowerCase();if(l.includes(null!==(t=null==I?void 0:I.toLowerCase())&&void 0!==t?t:""))return!0}),S=(0,x.O3)(e=>{var t,l,a,n;(null==e?void 0:null===(t=e.parentElement)||void 0===t?void 0:null===(l=t.parentElement)||void 0===l?void 0:null===(a=l.children)||void 0===a?void 0:a[0].id)==="input-container"||(null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains(o()["chip--delete"]))||j(!1)}),P=e=>{let t=document.getElementById("input-container");t&&("up"===e?t.scrollTop-=24:t.scrollTop+=24)};return i.useEffect(()=>{let e;let t=k.current;if(null!==t)return!1==y&&(t.value=""),0===w.length?t.placeholder=s:y||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)}},[y,w]),i.useEffect(()=>{var e;let t=()=>{let e=Z.current;e&&T(e.scrollHeight>e.clientHeight)};return null===(e=Z.current)||void 0===e||e.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{var e;null===(e=Z.current)||void 0===e||e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[Z]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:(0,n.Z)("mb-[0.125rem] font-roboto text-[0.625rem] leading-[0.625rem] text-white transition-opacity duration-150 sm:text-[0.75rem] sm:leading-[0.875rem] md:mb-1 md:leading-5",{"!text-transparent":!y&&0===w.length}),children:"Cities"}),(0,a.jsxs)("div",{className:"relative flex",children:[(0,a.jsxs)("div",{tabIndex:0,role:"menu",className:(0,n.Z)(" w-full"),children:[(0,a.jsxs)("div",{ref:Z,id:"input-container",className:(0,n.Z)(o()["input-wrapper"],l),onClick:e=>{_(""),e.currentTarget.getElementsByTagName("input")[0].click(),e.currentTarget.getElementsByTagName("input")[0].focus()},children:[0!==w.length&&y&&w.map(e=>(0,a.jsx)(h.M,{children:(0,a.jsx)(v.E.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:g,className:o().chip,children:(0,a.jsxs)("p",{className:"mt-[-0.0625rem] flex items-center justify-center font-roboto text-[0.625rem] text-etherealTemplate-primaryBlack",children:[(0,a.jsx)("span",{className:"pointer-events-none text-senecaTemplate-darkerBlue",children:e.text})," ",(0,a.jsxs)("button",{className:o()["chip--delete"],"aria-label":"Delete ".concat(e.text," from active filters"),onClick:t=>{var l,a,n;null===(l=t.currentTarget.parentElement)||void 0===l||null===(a=l.parentElement)||void 0===a||null===(n=a.parentElement)||void 0===n||n.getElementsByTagName("input")[0].click(),N(w.filter(t=>t!==e))},children:[(0,a.jsx)(m.Z,{"aria-hidden":!0}),(0,a.jsx)("span",{className:"sr-only",children:"Delete"})]})]})})})),(0,a.jsx)("label",{htmlFor:"search-city-input",className:"sr-only",children:"FIND A CITY"}),(0,a.jsx)("input",{ref:k,"aria-label":(null===(t=k.current)||void 0===t?void 0:t.placeholder)?void 0:"FIND A CITY",id:"search-city-input",autoComplete:"off",className:(0,n.Z)(o()["input-field"],"!py-0",{"!w-full":!y||y&&0===w.length,[o()["input-field--inactive"]]:!y&&0!==w.length,[o()["input-field--with-value"]]:y&&0!==w.length}),type:"text",onChange:e=>{if(_(e.currentTarget.value),0===e.currentTarget.value.length){e.currentTarget.size=10;return}e.currentTarget.size=e.currentTarget.value.length+2},onKeyDown:()=>{j(!0)},onClick:e=>{j(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;(0,r.delay)(()=>{var e,t,a;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===(a=document.activeElement)||void 0===a?void 0:a.id)==="scroll-down"||j(!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;(0,r.delay)(()=>{var e,t,a;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===(a=document.activeElement)||void 0===a?void 0:a.id)==="scroll-down"||j(!1)},50)})}})]}),(0,a.jsxs)("div",{tabIndex:0,role:"menu",className:(0,n.Z)("absolute z-30 mt-1 flex max-h-[17rem] w-full flex-col overflow-y-auto bg-neutral-100 p-4 shadow-sh3",o()["data-dropdown"],{hidden:!y}),onClick:e=>{var t;null===(t=e.currentTarget.parentElement)||void 0===t||t.getElementsByTagName("input")[0].focus()},children:[b&&0!==b.length&&D.map(e=>(0,a.jsx)("button",{className:(0,n.Z)(o()["item--data-filter"],{[o()["item--data-filter__active"]]:w.includes(e)}),onClick:t=>{var l,a,n,r;w.includes(e)?N(w.filter(t=>t!==e)):(N([...w,e]),_(""),k.current&&(k.current.value=""));let i=null===(l=t.currentTarget)||void 0===l?void 0:null===(a=l.parentElement)||void 0===a?void 0:a.parentElement;if(i){i.getElementsByTagName("input")[0].focus();let e=null!==(r=null===(n=i.getElementsByTagName("input")[0].parentElement)||void 0===n?void 0:n.scrollHeight)&&void 0!==r?r:24;setTimeout(()=>{let t=i.getElementsByTagName("input")[0].parentElement;null!==t&&(t.scrollTop=e)},100)}},children:e.text})),0==D.length&&(0,a.jsx)("div",{className:"px-8 py-[0.8125rem] font-roboto text-[0.875rem] text-etherealTemplate-primaryBlack",children:"No Result"})]})]}),(0,a.jsxs)("div",{className:"flex h-6 items-center border-b-[0.0625rem] border-white",children:[0!==w.length&&(0,a.jsxs)("div",{className:"flex items-center",children:[y&&C&&E&&(0,a.jsxs)("div",{ref:S,className:o()["scroll-buttons"],children:[(0,a.jsxs)("button",{id:"scroll-up",className:"h-full w-full","aria-label":"Scroll Up Button",onClick:()=>P("up"),children:[(0,a.jsx)(p.Z,{role:"img","aria-hidden":!0}),(0,a.jsx)("span",{className:"sr-only",children:"Scroll Up"})]}),(0,a.jsxs)("button",{id:"scroll-down",className:"h-full w-full","aria-label":"Scroll Down Button",onClick:()=>P("down"),children:[(0,a.jsx)(u.Z,{role:"img","aria-hidden":!0}),(0,a.jsx)("span",{className:"sr-only",children:"Scroll Down"})]})]}),(0,a.jsx)(d.Z,{role:"button","aria-label":"Clear IDX Search",className:"ml-1 w-[0.575rem] fill-white",onClick:()=>{N([]);let e=k.current;if(null===e)return}}),(0,a.jsx)("span",{className:"sr-only",children:"Clear IDX Search"})]}),(0,a.jsx)(c.Z,{tabIndex:0,role:"button","aria-label":"Interact with IDX Search",id:"btn-arrow--down",className:(0,n.Z)(o()["btn-arrow"],"transition",{"rotate-180":y}),onClick:()=>{var e;null===(e=document.getElementById("input-container"))||void 0===e||e.click()}}),(0,a.jsx)("span",{className:"sr-only",children:"Interact with IDX Search"})]})]})]})};t.default=b},51517:function(e,t,l){"use strict";l.r(t);var a=l(85893),n=l(67294),r=l(86010),i=l(96486),s=l(95063),o=l(93822),c=l(29332),d=l(26568),m=l(55756),u=l(82707),p=l.n(u),h=l(94829),v=l(91157),x=l(55993);let f=e=>e.toLocaleString("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}),g=[{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:"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],[35e4,5e5],[5e5,7e5],[7e5,9e5],[1e6,18e5]],y=e=>{var t;let[l,u]=n.useState([]),{urlComponents:y,website:j,get:N}=(0,v.Q$)(e.props),[k,Z]=n.useState(!1),[E,C]=n.useState(!1),[T,I]=n.useState(!1),[_,D]=n.useState(!1),[S,P]=n.useState(!1),[O,B]=n.useState(""),[M,L]=n.useState([]),[F,H]=n.useState([]),[z,R]=n.useState(["active"]),[A,V]=n.useState({minPrice:0,maxPrice:0,bed:0,bath:0}),[X,q]=n.useState(),W=(null===(t=null==j?void 0:j.pages.find(e=>"property-search"===e.path))||void 0===t?void 0:t.externalPath)||"property-search",U=(0,h.Z)("screen and (min-width: 1024px)",!0),Y=e=>{let{label:t,key:l,className:n}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{children:t}),(0,a.jsx)("div",{className:n,children:[0,1,2,3,4,5].map((e,t)=>(0,a.jsx)("button",{className:(0,r.Z)("h-8 border-[0.0625rem] border-solid border-senecaTemplate-blue px-2 py-[0.375rem]  text-[0.75rem] text-senecaTemplate-darkerBlue",p()["item--data-filter"],{"!border-senecaTemplate-blue !bg-senecaTemplate-blue !text-white":A[l]===e," border-l-[0]":0!==t}),onClick:()=>{V(t=>({...t,[l]:e}))},children:0!==e?e+"+":(0,a.jsx)("span",{className:"block w-[2.1875rem] pl-[1px]",children:"ANY"})},e))})]})},G=()=>["Active","Pending","Sold"].map(e=>{let t=e.toLocaleLowerCase();return(0,a.jsxs)("button",{className:(0,r.Z)(p()["btn--checkbox"],p()["item--data-filter"],{[p()["item--data-filter__active"]]:z.includes(t)}),"aria-label":"Toggle IDX Status Filter for ".concat(e),onClick:()=>{z.includes(t)?R(z.filter(e=>e!==t)):R([...z,t])},children:[(0,a.jsxs)("div",{className:(0,r.Z)(p()["icon-wrapper"],{[p()["icon-wrapper--active"]]:z.includes(t)}),children:[(0,a.jsx)(d.Z,{role:"img","aria-hidden":!0,className:"w-[0.9163rem]"}),(0,a.jsx)("span",{className:"sr-only",children:e})]}),e]})}),K=()=>{Z(!1),L([]),R([]),H([]),V({minPrice:0,maxPrice:0,bed:0,bath:0}),document.getElementById("search-city-input").placeholder="Find a city"};n.useEffect(()=>{q(()=>{var e,t,l,a;let n=new URLSearchParams,r=M.map(e=>e.value).join(","),i=z.map(e=>e).join(","),s=F.map(e=>e.value).join(",");return[[r,"cityId"],[i,"status"],[s,"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!==(a=A.bath)&&void 0!==a?a:"","bathCount"]].forEach(e=>{n.append(e[1].toString(),"number"==typeof e[0]?e[0].toString():e[0])}),n.toString().replace(/%2C/g,",")})},[M,A,F,z]),n.useEffect(()=>{Z(!1)},[S,T,E]);let Q=(e,t,l)=>{t(e=>!e);let a=e.target.nextElementSibling;(0,i.delay)(()=>{a.focus()},50),a.addEventListener("focusout",e=>{let a=e.currentTarget.parentElement;(0,i.delay)(()=>{!a.contains(document.activeElement)&&(t(!1),l&&l(""))},50)})},J=(0,v.GK)(e=>e.idxClient);return(n.useEffect(()=>{if((null==J?void 0:J.activationToken.toUpperCase())!=="BC20B830-DD11-2A4A-E4AB181F1C2B1E42"){var e;(0,x.r)(null!==(e=null==J?void 0:J.clientId)&&void 0!==e?e:"").then(e=>{let t=e.map(e=>({remarks:"City",value:e.value,text:e.text,type:"cityId[]"}));u(t)})}else u(b)},[J]),J&&"false"!==N("IDXHeader"))?(0,a.jsx)("section",{id:"idx-section",className:(0,r.Z)("relative z-20 flex w-full items-center justify-center bg-senecaTemplate-royaleBlue px-4 py-8 tablet-sm:px-[1.5625rem] tablet-sm:py-10 lg:px-0 lg:py-8",{"pointer-events-none":"builder"===e.props.mode}),children:(0,a.jsxs)("div",{className:"max-tablet-sm:w-full",children:[(0,a.jsxs)("div",{id:"idx-header",className:(0,r.Z)(p()["content-wrapper"],"z-10 !w-full max-w-[81rem] flex-col items-start justify-start bg-senecaTemplate-royaleBlue py-4 pb-2 backdrop-blur-sm sm:flex sm:flex-row md:h-[4.5rem]"),children:[(0,a.jsx)("div",{className:"relative w-full tablet-sm:min-w-[23.0625rem] lg:max-w-[46.0625rem]",children:(0,a.jsx)(s.default,{placeholder:"Find a city",dataField:l,inputState:k,inputToggler:Z,queryArr:M,queryArrSetter:L})}),(0,a.jsx)("div",{className:" mx-3 hidden h-12 w-[0.0625rem] bg-white sm:flex lg:mx-4"}),U&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative self-center",children:[(0,a.jsxs)("button",{className:(0,r.Z)(p()["main--btn-filter"],{"bg-senecaTemplate-blue":E}),onClick:e=>Q(e,C),children:["STATUS"," ",(0,a.jsx)(o.Z,{role:"img","aria-hidden":!0,className:"pointer-events-none ml-3 mr-1 w-[0.375rem] fill-white"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle IDX Status Filter Dropdown"})]}),(0,a.jsx)("div",{tabIndex:0,role:"menu",className:(0,r.Z)("absolute right-4 top-[2.8125rem] w-[12.5625rem] bg-white p-4 shadow-sh3 lg:top-[3.4375rem]",{hidden:!1===E}),children:G()})]}),(0,a.jsxs)("div",{className:"relative self-center",children:[(0,a.jsxs)("button",{className:(0,r.Z)(p()["main--btn-filter"],{"bg-senecaTemplate-blue":T}),onClick:e=>{Q(e,I,B)},children:["PRICE",(0,a.jsx)(o.Z,{role:"img","aria-hidden":!0,className:"pointer-events-none ml-3 mr-1 w-[0.375rem] fill-white"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle IDX Price Filter Dropdown"})]}),(0,a.jsx)("div",{tabIndex:0,role:"menu",className:(0,r.Z)("absolute right-4 top-[3.125rem] flex w-[21.4375rem] items-center justify-center bg-white  p-4 shadow-sh3 lg:top-[3.4375rem]",{hidden:!1===T}),children:["Min","separator","Max"].map(e=>{let t="Max"===e?"maxPrice":"minPrice",l="".concat(e.toLowerCase(),"price-wrapper"),n=f(A[t]);return"separator"===e?(0,a.jsx)("div",{className:"mx-2 h-[0.125rem] min-w-[0.5rem] max-w-[0.5rem] bg-senecaTemplate-royaleBlue"}):(0,a.jsxs)("div",{className:"relative  w-full",children:[(0,a.jsxs)("button",{id:l,className:(0,r.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",{"border-senecaTemplate-blue bg-senecaTemplate-blue !text-white":O===e}),"aria-label":"Toggle IDX Price Filter for ".concat(0!==A[t]?n[0]+" "+n.substring(1):e),onClick:()=>{B(()=>O===e?"":e)},children:[(0,a.jsxs)("span",{className:"uppercase",children:[0!==A[t]?n[0]+" "+n.substring(1):e," "]}),(0,a.jsx)(o.Z,{role:"img","aria-hidden":!0,className:(0,r.Z)("mr-1 w-[0.375rem]  fill-black",{"!fill-white":O===e})}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle Price Filter Icon"})]}),(0,a.jsxs)("div",{className:(0,r.Z)("absolute left-0 top-[3.4375rem] hidden w-full flex-col shadow-sh3",{"!flex ":O===e}),children:[(0,a.jsx)("button",{className:(0,r.Z)("bg-white px-4 py-[0.8125rem] text-start text-[0.875rem] uppercase",p()["item--data-filter"],p()["price-filter"]),onClick:()=>{var e,a;V({...A,[t]:0}),null===(e=document.getElementById(l))||void 0===e||e.focus(),null===(a=document.getElementById(l))||void 0===a||a.click()},children:"No ".concat(e)}),w.map(n=>{var i,s;let o=f("Min"===e?n[0]:n[1]);return"Max"===e&&(null!==(i=A.minPrice)&&void 0!==i?i:0)>n[1]&&0!==n[1]||"Min"===e&&0!==A.maxPrice&&n[0]>(null!==(s=A.maxPrice)&&void 0!==s?s:0)?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("button",{className:(0,r.Z)("bg-white px-4 py-[0.8125rem] text-start  text-[0.875rem]",p()["item--data-filter"],p()["price-filter"],{[p()["item--data-filter__active"]]:A[t]===n["Max"===e?1:0]}),onClick:()=>{var a,r;V(l=>({...l,[t]:"Min"===e?n[0]:n[1]})),null===(a=document.getElementById(l))||void 0===a||a.focus(),null===(r=document.getElementById(l))||void 0===r||r.click()},children:("Min"===e?n[0]:n[1])!==0&&o[0]+" "+o.substring(1)})})]})]})})})]})]}),(0,a.jsxs)("div",{className:"relative flex justify-end self-center pt-4 sm:pt-0 md:h-full",children:[(0,a.jsxs)("div",{className:"self-center sm:relative",children:[(0,a.jsxs)("button",{className:(0,r.Z)(p()["main--btn-filter"],{"bg-senecaTemplate-blue":S}),onClick:e=>Q(e,P),children:[(0,a.jsx)(c.Z,{role:"img","aria-hidden":!0,className:"pointer-events-none mr-2 w-[0.875rem] fill-white"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle IDX Filter Dropdown"}),"FILTERS"]}),(0,a.jsxs)("div",{tabIndex:0,role:"menu",className:(0,r.Z)("absolute left-[50%] top-[3.625rem] flex w-[17.6875rem] translate-x-[-50%] flex-col items-start justify-center bg-white p-4  shadow-sh3 sm:left-auto sm:right-4 sm:top-[2.8125rem] sm:translate-x-0 md:right-2 lg:right-4 lg:top-[3.4375rem]",{hidden:!1===S}),children:[!U&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mb-2 w-full text-left  text-base  font-semibold text-black",children:"Status"}),(0,a.jsxs)("div",{className:"relative z-50 mb-6 w-full ",children:[(0,a.jsxs)("button",{className:(0,r.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]",{"border-senecaTemplate-blue !bg-senecaTemplate-blue !text-white":E}),"aria-label":"Toggle IDX Status Filter Dropdown",onClick:e=>{C(e=>!e);let t=e.target.nextElementSibling;(0,i.delay)(()=>{t.focus()},100),(0,i.delay)(()=>{t.addEventListener("focusout",e=>{let t=e.currentTarget.parentElement;(0,i.delay)(()=>{t.contains(document.activeElement)||C(!1)},50)})},100)},children:[(0,a.jsx)("span",{children:"Choose status"}),(0,a.jsx)(o.Z,{role:"img","aria-hidden":!0,className:(0,r.Z)("mr-1 w-[0.375rem]  fill-black",{"!fill-white":E})}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle Status Filter Icon"})]}),(0,a.jsx)("div",{tabIndex:0,role:"menu",className:(0,r.Z)("absolute left-0 top-[3.75rem] flex w-full  flex-col bg-white  p-2 shadow-sh3",{hidden:!1===E}),children:G()})]}),(0,a.jsx)("p",{className:"mb-2 w-full text-left  text-base  font-semibold text-black",children:"Price"}),(0,a.jsx)("div",{className:"relative mb-6 w-full ",children:["Min","Max"].map((e,t)=>{let l="Max"===e?"maxPrice":"minPrice",n="".concat(e.toLowerCase(),"price-wrapper"),s=f(A[l]);return(0,a.jsx)("div",{tabIndex:0,role:"menu",className:(0,r.Z)("relative flex w-full flex-col items-center justify-center bg-white shadow-sh3"),children:(0,a.jsxs)("div",{className:(0,r.Z)("relative mb-2 w-full",{"z-20":0===t,"z-10":1===t}),children:[(0,a.jsxs)("button",{id:n,className:(0,r.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",{"border-senecaTemplate-blue bg-senecaTemplate-blue !text-white":O===e}),"aria-label":"Toggle IDX Price Filter for ".concat(0!==A[l]?s[0]+" "+s.substring(1):e),onClick:t=>{B(()=>O===e?"":e);let l=t.target.nextElementSibling;(0,i.delay)(()=>{l.focus()},100),(0,i.delay)(()=>{l.addEventListener("focusout",e=>{let t=e.currentTarget;(0,i.delay)(()=>{var e;(null===(e=t.parentElement)||void 0===e?void 0:e.contains(document.activeElement))||B("")},50)})},100)},children:[(0,a.jsx)("span",{className:"uppercase",children:0!==A[l]?s[0]+" "+s.substring(1):e})," ",(0,a.jsx)(o.Z,{role:"img","aria-hidden":!0,className:(0,r.Z)("mr-1 w-[0.375rem]  fill-black",{"!fill-white":O===e})}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle Price Filter Icon"})]}),(0,a.jsxs)("div",{tabIndex:0,role:"menu",className:(0,r.Z)("absolute left-0 top-[58px] hidden w-full flex-col bg-white ",{"!flex ":O===e}),children:[(0,a.jsx)("button",{className:(0,r.Z)("bg-white px-4 py-[0.8125rem] text-start text-[0.875rem] uppercase",p()["item--data-filter"],p()["price-filter"]),onClick:()=>{var e,t;V({...A,[l]:0}),null===(e=document.getElementById(n))||void 0===e||e.focus(),null===(t=document.getElementById(n))||void 0===t||t.click()},children:"No ".concat(e)}),w.map(t=>{var i,s;let o=f("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!==(s=A.maxPrice)&&void 0!==s?s:0)?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("button",{className:(0,r.Z)("bg-white 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]}),onClick:()=>{var a,r;V(a=>({...a,[l]:"Min"===e?t[0]:t[1]})),null===(a=document.getElementById(n))||void 0===a||a.focus(),null===(r=document.getElementById(n))||void 0===r||r.click()},children:("Min"===e?t[0]:t[1])!==0&&o[0]+" "+o.substring(1)})})]})]})})})})]}),(0,a.jsx)("p",{className:"mb-2 w-full text-left  text-base  font-semibold text-black",children:"Beds & Baths"}),Y({label:"Bedrooms",key:"bed",className:"mb-2"}),Y({label:"Bathrooms",key:"bath",className:"mb-6"}),(0,a.jsx)("p",{className:" mb-2  w-full text-left  text-base  font-semibold text-black",children:"Property Type"}),(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsxs)("button",{className:(0,r.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]",{"border-senecaTemplate-blue !bg-senecaTemplate-blue !text-white":_}),"aria-label":"Toggle IDX Property Type Filter Dropdown",onClick:e=>{D(e=>!e);let t=e.target.nextElementSibling;(0,i.delay)(()=>{t.focus()},100),(0,i.delay)(()=>{t.addEventListener("focusout",e=>{let t=e.currentTarget.parentElement;(0,i.delay)(()=>{t.contains(document.activeElement)||D(!1)},50)})},100)},children:[(0,a.jsx)("span",{children:"CHOOSE PROPERTY TYPE"})," ",(0,a.jsx)(o.Z,{role:"img","aria-hidden":!0,className:(0,r.Z)("mr-1 w-[0.375rem] fill-black outline-none",{"!fill-white":_})}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle Property Type Filter Icon"})]}),(0,a.jsx)("div",{tabIndex:0,role:"menu",className:(0,r.Z)("absolute left-[50%] top-[3.75rem] flex w-full translate-x-[-50%] flex-col bg-white p-2 shadow-sh3",{hidden:!1===_}),children:g.map(e=>(0,a.jsxs)("button",{className:(0,r.Z)(p()["btn--checkbox"],p()["item--data-filter"],{[p()["item--data-filter__active"]]:F.includes(e)}),"aria-label":"Toggle IDX Property Type Filter for ".concat(e.text),onClick:()=>{F.includes(e)?H(F.filter(t=>t!==e)):H([...F,e])},children:[(0,a.jsxs)("div",{className:(0,r.Z)(p()["icon-wrapper"],{[p()["icon-wrapper--active"]]:F.includes(e)}),children:[(0,a.jsx)(d.Z,{role:"img","aria-hidden":!0,className:"w-[0.9163rem]"}),(0,a.jsx)("span",{className:"sr-only",children:e.text})]}),e.text]}))})]})]})]}),(0,a.jsx)("div",{className:"self-center",children:(0,a.jsx)("button",{className:(0,r.Z)(p()["main--btn-filter"],"border border-white"),onClick:K,children:"RESET"})}),(0,a.jsx)("div",{className:"self-center",children:(0,a.jsxs)("a",{className:(0,r.Z)(p()["main--btn-filter"],p()["main--btn-filter_search"]),href:(null==j?void 0:j.options.domainConnected)?"".concat(j.options.domain,"/").concat(W,"?").concat(X):"/~/".concat(y.websiteId,"/").concat(y.websiteName,"/").concat(W,"?").concat(X),children:[(0,a.jsx)(m.Z,{role:"img","aria-hidden":!0,className:"pointer-events-none mr-2 w-[0.875rem] fill-white"}),(0,a.jsx)("span",{className:"sr-only",children:"Search IDX Properties"}),"SEARCH"]})})]})]}),(0,a.jsx)("div",{className:(0,r.Z)(p()["content-wrapper"],"!w-full max-w-[81rem] bg-senecaTemplate-royaleBlue bg-opacity-50 pb-4 pt-0 !text-right text-[0.75rem]  font-light leading-[1.25rem] text-white"),children:"Real Estate IDX Powered by iHomeFinder"})]})}):(0,a.jsx)(a.Fragment,{})};t.default=y},34007:function(e,t,l){"use strict";l.r(t),l.d(t,{NavItems:function(){return X},default:function(){return q}});var a,n,r=l(85893),i=l(67294),s=l(86010),o=l(25675),c=l.n(o),d=l(30719),m=l(88116);l(99008),l(30482),l(72069);var u=l(92962),p=l.n(u),h=l(94829),v=l(76707),x=l(8137),f=l(91233),g=l(11618),b=l(36053),w=l(22393),y=l(3409);function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var N=l(54220),k=l(94116),Z=l(88651);function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var C=function(e){return i.createElement("svg",E({width:"1em",height:"1em",viewBox:"0 0 5 4",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=i.createElement("path",{d:"M2.153 3.355c.18.193.513.193.694 0l2.047-2.193C5.14.899 4.93.5 4.547.5H.453C.07.5-.14.899.106 1.162l2.047 2.193Z"})))},T=l(9107),I=l(91157),_=l(22615),D=l(27795),S=l(26081),P=l(51517),O=l(11163),B=l(93792),M=l(22241),L=l(72828),F=l(76475),H=l(32342),z=l(45172),R=l.n(z);let A=Object.create({phone:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon -rotate-90",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Phone Icon"})]}),email:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Email Icon"})]}),"office-address":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Office Address Icon"})]}),dre:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(function(e){return i.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em"},e),a||(a=i.createElement("path",{d:"M18.668 12.122h10.665v1.292H18.668v-1.292zm10.664-7.758H2.667c-1.466 0-2.668 1.164-2.668 2.586v18.1c0 1.423 1.201 2.586 2.668 2.586h26.665c1.469 0 2.653-1.164 2.653-2.586L32 6.953c0-1.425-1.199-2.589-2.668-2.589zM10.668 8.241c2.211 0 4 1.734 4 3.881 0 2.144-1.786 3.878-4 3.878s-4-1.734-4-3.878c0-2.147 1.786-3.881 4-3.881zm7.331 14.869-7.331.649-7.334-.649-.669-.646c0-2.586 5.335-4.009 8-4.009 2.668 0 8 1.425 8 4.009l-.666.646zM29.335 16H18.667v-1.292h10.665V16z"})))},{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"DRE Icon"})]}),twitter:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Twitter Icon"})]}),youtube:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Youtube Icon"})]}),linkedin:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"LinkedIn Icon"})]}),facebook:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Facebook Icon"})]}),instagram:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Instagram Icon"})]}),tiktok:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.Z,{"aria-hidden":!0,role:"img",className:(0,s.Z)("icon",p()["ic-social--header"])}),(0,r.jsx)("span",{className:"sr-only",children:"Tiktok Icon"})]})}),V=e=>{var t,l,a,n,o,u,v,x,g,b,w,y,j,N;let{component:k,website:Z,get:E,urlComponents:C,isBuilder:z,scrollNextSection:V}=(0,I.Q$)(e),[q,W]=i.useState(!1),[U,Y]=i.useState(0),[G]=i.useState(!1),[K,Q]=i.useState({status:!1,msg:""}),[J,$]=i.useState(null),ee=(0,I.KE)(),et=(0,I.GK)(e=>e.idxClient),el=(0,O.useRouter)(),ea="builder"===e.mode,[en]=(0,I.l2)(),{outlinedComponent:er}=(0,H.v9)(e=>e.builderApp),ei=null==Z?void 0:Z.options.getInspired,es=(0,h.Z)("screen and (min-width: 1024px)"),eo=i.useRef(null),ec=i.useRef(null),ed=()=>{eo.current&&(clearTimeout(eo.current),eo.current=null)},em=()=>{eo.current=setTimeout(()=>{eo.current&&$(null)},500)},eu=k.meta.data.filter(e=>e.key.includes("image")).filter(e=>e.key.startsWith("image")&&!e.key.endsWith("alt-text")).filter(e=>e.value),ep=k.meta.data.filter(e=>e.key.startsWith("image")&&e.key.endsWith("alt-text")).filter(e=>!!e.value),eh=["phone","email","office-address","dre","twitter","youtube","linkedin","facebook","instagram","tiktok"],ev=k.meta.data.filter(e=>eh.includes(e.key)).filter(e=>"email"===e.key&&_.D.safeParse(e.value).success?e.value:e.value&&e.value.replace("@","")),ex=ev.filter(e=>["phone","email","office-address","dre"].includes(e.key)),ef=()=>{var e,t,l,a;return es?null!==(l=null===(e=null==document?void 0:document.querySelector(".".concat(p()["websiteheader--header"])))||void 0===e?void 0:e.clientHeight)&&void 0!==l?l:0:null!==(a=null===(t=null==document?void 0:document.querySelector(".".concat(p()["header-menu"])))||void 0===t?void 0:t.clientHeight)&&void 0!==a?a:0},eg=()=>{if(!et||"false"===E("IDXHeader")){V(ef());return}let e=R().createScroller(document.querySelector("#main--container")),t=document.getElementById("idx-section");e.toY(e.getTopOf(t)-ef())},eb=async e=>{if(ea)return;let t=ev.find(t=>t.key===e);if(t)try{var l;await navigator.clipboard.writeText(null!==(l=null==t?void 0:t.value)&&void 0!==l?l:""),Q({status:!0,msg:"dre"===e?"DRE number copied!":"Office address copied!"})}catch(e){}},ew=null===(t=null===(l=null===(a=[...null!==(v=null==Z?void 0:Z.pages)&&void 0!==v?v:[]].filter(e=>et?e:"property-search"!==e.path))||void 0===a?void 0:a.sort((e,t)=>e.order>t.order?1:-1))||void 0===l?void 0:l.filter(e=>e.showInNav))||void 0===t?void 0:t.map((e,t)=>{if(t>0){var l,a,n,r;let t=e.PageSections.find(e=>"neighborhood"===e.Component.name||"listings"===e.Component.name);return(null==t?void 0:t.Component)?{...e,path:null!==(a=null!==(l=e.externalPath)&&void 0!==l?l:e.path)&&void 0!==a?a:"",mainComponent:null==t?void 0:t.Component}:{...e,path:null!==(r=null!==(n=e.externalPath)&&void 0!==n?n:e.path)&&void 0!==r?r:""}}return{...e,path:""}}),ey=e=>{if(!z){if(!es){$(e.id===(null==J?void 0:J.id)?null:e);return}$(e)}};i.useEffect(()=>{if(K){let e=setTimeout(()=>Q({status:!1,msg:""}),5e3);return()=>clearTimeout(e)}},[K]);let ej=()=>{if(z){let e=document.querySelector(".".concat(p()["website-title"])),t=null==e?void 0:e.querySelector(".ql-clipboard[contenteditable]");t&&t.setAttribute("contenteditable","false")}};i.useEffect(()=>{z&&window.addEventListener("click",ej)},[ej]),i.useEffect(()=>{let e=document.getElementById("main--container"),t=()=>{let t=e.scrollTop;Y(t)};return void 0!==e&&e&&e.addEventListener("scroll",t),()=>null==e?void 0:e.removeEventListener("scroll",t)},[]);let eN=(e,t)=>(0,r.jsxs)(i.Fragment,{children:["dre"!==e.key&&(0,r.jsx)("a",{href:(0,D.L)(e.key,e.value,ea),target:"_blank","aria-label":e.key,className:(0,s.Z)(p()["header--social"],{[p().separator]:(null==ex?void 0:ex.length)===t}),rel:"noreferrer",children:A[e.key]}),"dre"===e.key&&(0,r.jsx)("button",{className:(0,s.Z)(p()["header--social"],{[p().separator]:(null==ex?void 0:ex.length)===t}),"aria-label":e.key,onClick:()=>eb(e.key),children:A[e.key]})]},e.key);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)("section",{className:(0,s.Z)(p().websiteheader,z&&"pointer-none select-none"),children:[(0,r.jsx)("div",{className:(0,s.Z)(p()["header-menu"],{[p().scrolled]:U>=60,"!bg-senecaTemplate-blue":q}),children:(0,r.jsxs)("div",{className:"flex flex-1 justify-between",children:[(0,r.jsx)("div",{children:E("logo")&&(0,r.jsx)(F.Z,{id:"imgPreview-navLogo2",alt:null!==(x=E("logo-alt-text"))&&void 0!==x?x:"",minLength:400,maxHeight:{xl:61,lg:61,tabletSm:45,phone:38},isActive:er===k.id,src:null!==(g=E("logo"))&&void 0!==g?g:""})}),(0,r.jsx)("button",{type:"button",className:p()["btn-transparent"],onClick:()=>W(!q),children:(0,r.jsx)(f.Z,{className:(0,s.Z)("icon",p()["header-menu__icon"])})})]})}),(0,r.jsx)("div",{className:(0,s.Z)(p()["header-menu--open"],{hidden:!q}),children:(0,r.jsx)("ul",{children:ew.map((e,t)=>(0,r.jsx)("li",{className:(0,s.Z)(p()["header-menu--open__items"],{[p()["page-dropdown"]]:e.id===(null==J?void 0:J.id)}),children:(0,r.jsxs)("div",{className:"flex w-full flex-col items-center justify-center overflow-x-hidden xl:overflow-y-scroll",children:[(0,r.jsx)(X,{navClassName:(0,s.Z)("h-10",{"bg-senecaTemplate-beige lg:[&>*]:text-senecaTemplate-blue":e.id===(null==J?void 0:J.id)}),href:C.asPath(e.path),pageNav:e,togglePageNav:ey,openDropdown:e.id===(null==J?void 0:J.id),website:Z}),e.id===(null==J?void 0:J.id)&&(0,r.jsx)("div",{className:"block xl:hidden",children:(0,r.jsx)(S.default,{pageMeta:J,isBuilder:z})})]})},t))})}),(0,r.jsxs)("nav",{className:(0,s.Z)(p()["websiteheader--header"],"puppeteer-header richtexteditor-punchzindex",{[p().scrolled]:U>=60}),children:[(0,r.jsx)("div",{className:(0,s.Z)("pointer-events-none absolute left-0 top-0 h-full w-full bg-senecaTemplate-blue opacity-0 transition-opacity duration-100",{"h-[9.375rem] opacity-[1]":G,"h-[7.3125rem]":G&&U>=60})}),(0,r.jsxs)("div",{ref:ec,className:(0,s.Z)("quantum-container container transition-all duration-200",p()["websiteheader--head-content"],{"pointer-events-none":z}),children:[es&&(0,r.jsx)("div",{className:p()["nav--logo"],children:E("logo")&&(0,r.jsx)(F.Z,{id:"imgPreview-navLogo",alt:null!==(b=E("logo-alt-text"))&&void 0!==b?b:"",minLength:400,maxHeight:{xl:61,lg:61,tabletSm:45,phone:38},isActive:er===k.id,src:null!==(w=E("logo"))&&void 0!==w?w:""})}),(0,r.jsx)("div",{ref:en,className:p()["nav--props"],children:ew.map(e=>{var t,l,a,n,i;let o=null==Z?void 0:Z.components.find(t=>{var l;return t.id===(null===(l=e.mainComponent)||void 0===l?void 0:l.id)&&"listings"===t.name}),c=o&&(null!==(a=null===(t=null==o?void 0:o.meta.data.find(e=>"feed"===e.key))||void 0===t?void 0:t.value)&&void 0!==a?a:null)==="idx",d=(null!==(i=[...null!==(n=null===(l=e.mainComponent)||void 0===l?void 0:l.meta.data)&&void 0!==n?n:[]].filter(e=>e.key.startsWith("listing")&&!(c&&et)||e.key.startsWith("community")).length)&&void 0!==i?i:0)>0;return(0,r.jsxs)("div",{className:(0,s.Z)(p()["header--nav"],"flex max-lg:z-30"),children:[(null==e?void 0:e.mainComponent)&&(0,r.jsx)("div",{className:(0,s.Z)("group relative mt-[0.1875rem] flex cursor-pointer flex-row items-center gap-2 border-b-[0.1875rem] border-b-transparent bg-transparent py-2 pb-[0.3125rem] hover:border-b-white"),onMouseOver:()=>{!z&&d&&(ed(),ey(e))},onMouseLeave:()=>{em()},onClick:()=>{ey(e)},children:(0,r.jsxs)("p",{className:(0,s.Z)(p()["paragraph-4"],"uppercase text-white"),children:[(0,r.jsxs)(L.Z,{className:"inline-flex",href:C.asPath(e.path),onClick:e=>z&&e.preventDefault(),children:[e.name,d&&(0,r.jsx)(T.Z,{"aria-hidden":!0,className:(0,s.Z)(p()["dropdown-arrow"],"ml-2 mt-2 h-1.5 w-2.5 -rotate-90 group-hover:rotate-90")})]}),d&&(null==J?void 0:J.id)===e.id&&(0,r.jsx)("div",{className:(0,s.Z)("absolute left-1/2 z-30 mt-[0.625rem] hidden -translate-x-1/2 lg:block"),children:(0,r.jsx)(S.default,{pageMeta:J,isBuilder:z,onMouseOver:()=>{ed()},onMouseLeave:()=>{em()}})})]})}),!(null==e?void 0:e.mainComponent)&&(0,r.jsx)(L.Z,{href:C.asPath(e.path),className:(0,s.Z)(p()["paragraph-4"],"mt-[0.1875rem] border-b-[0.1875rem] border-b-transparent py-2 pb-[0.3125rem] uppercase text-white hover:border-b-white"),onClick:e=>z&&e.preventDefault(),children:e.name})]},e.id)})})]})]}),(0,r.jsxs)("div",{className:(0,s.Z)(p()["websiteheader--content"],{"!h-[56.25rem]":el.query.tryTemplateName}),children:[es&&(0,r.jsx)("div",{className:(0,s.Z)(p()["hero--sidesocial"],"richtexteditor-punchzindex",{"!absolute":z,"pointer-events-none":ei&&ee,"!h-[56.25rem]":el.query.tryTemplateName}),style:{...(null!==(y=null===(n=ec.current)||void 0===n?void 0:n.clientHeight)&&void 0!==y?y:0)>=170?{top:(null!==(j=null===(o=ec.current)||void 0===o?void 0:o.clientHeight)&&void 0!==j?j:0)+72,alignItems:"flex-start"}:{}},children:(0,r.jsx)("div",{className:p().wrapper,children:ev.map(eN)})}),""!==E("videoUrl")&&void 0!==E("videoUrl")&&"video"===E("bannerBgType")?(0,r.jsx)(B.Y,{isBuilder:z,src:E("videoUrl")}):(0,r.jsx)(d.tq,{noSwiping:!0,loop:!eu,effect:"fade",speed:3e3,fadeEffect:{crossFade:!0},modules:[m.pt,m.xW],noSwipingClass:"swiper-slide",autoplay:el.query.tryTemplateName?void 0:{delay:3e3,disableOnInteraction:!0},draggable:!1,spaceBetween:0,slidesPerView:1,children:eu.map(e=>{var t,l;let a="".concat(e.key,"-alt-text"),n=null!==(l=null===(t=ep.find(e=>e.key===a))||void 0===t?void 0:t.value)&&void 0!==l?l:"";return(0,r.jsx)(d.o5,{children:(0,r.jsxs)("div",{className:(0,s.Z)(p()["websiteheader--content"],{"!h-[56.25rem]":el.query.tryTemplateName}),children:[(0,r.jsx)("div",{className:p()["black-overlay"]}),(0,r.jsx)(c(),{fill:!0,alt:n,className:"object-cover",src:e.value})]},e.id)},e.id)})}),(0,r.jsx)("div",{className:(0,s.Z)(p()["hero--overlay"],p()["hero-homepage"],"w-full",{"max-lg:tablet-sm:pb-[7.1875rem]":et}),children:(0,r.jsxs)("div",{className:(0,s.Z)("w-full flex-shrink-0 whitespace-normal break-words sm:px-8",p()["website-title"]),children:[E("taglineLogo")&&(0,r.jsx)("div",{className:(0,s.Z)("w-fit",{"w-full":es&&!z},{"relative mx-auto mb-2 tablet-sm:mb-4 lg:mb-8":"true"===E("adjustTaglineLogo"),"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2":"true"!==E("adjustTaglineLogo")}),children:(0,r.jsx)(F.Z,{alt:E("taglineLogo-alt-text"),id:"imgPreview-navTaglineLogo",maxHeight:{xl:220,lg:200,tabletSm:120,phone:64},src:E("taglineLogo"),isActive:er===k.id})}),(0,r.jsx)(M.ZP,{id:"websiteheader-tagline",text:E("tagline"),disableLinks:z}),(0,r.jsx)("div",{className:(0,s.Z)(p()["hero--sidesocial"],"richtexteditor-punchzindex",{"!absolute":z,"pointer-events-none":ei&&ee,"!h-[56.25rem]":el.query.tryTemplateName}),style:{...(null!==(N=null===(u=ec.current)||void 0===u?void 0:u.clientHeight)&&void 0!==N?N:0)>=150?{alignItems:"flex-start"}:{}},children:(0,r.jsxs)("div",{className:(0,s.Z)(p()["mobile-wrapper"],ev.length>8&&"max-sm:!pb-2.5",ev.length>6&&"max-[343px]:!pb-2.5"),children:[ev.filter(e=>["phone","email","office-address","dre"].includes(e.key)).map(eN),(0,r.jsx)("div",{className:(0,s.Z)(p()["mobile-wrapper--social"],{[p()["full-social"]]:ev.filter(e=>!["phone","email","office-address","dre"].includes(e.key)).length>4}),children:ev.filter(e=>!["phone","email","office-address","dre"].includes(e.key)).map(eN)})]})})]})})]}),(0,r.jsx)("p",{className:(0,s.Z)("caption-3",p()["address-copied"],{[p()["is-visible"]]:K.status}),children:(null==K?void 0:K.msg)||""}),(0,r.jsx)("div",{className:(0,s.Z)(p()["scroll-wrapper"],{"pointer-events-none":z}),children:(0,r.jsxs)("div",{className:p()["scroll-innerwrapper"],children:[(0,r.jsx)("button",{className:p().scroll,onClick:eg,children:(0,r.jsx)("span",{children:"SCROLL"})}),(0,r.jsxs)("button",{className:p()["scroll-arrow-wrapper"],onClick:eg,children:[(0,r.jsx)("div",{className:p()["scroll-arrow"]}),(0,r.jsx)("span",{className:"sr-only",children:"scroll next section"})]})]})})]}),(0,r.jsx)(P.default,{props:e})]})},X=e=>{var t,l,a,n,i;let{navClassName:o,href:c,pageNav:d,togglePageNav:m,openDropdown:u,website:h}=e,v=(0,I.GK)(e=>e.idxClient),x=null==h?void 0:h.components.find(e=>{var t;return e.id===(null===(t=d.mainComponent)||void 0===t?void 0:t.id)&&"listings"===e.name}),f=x&&(null!==(a=null===(t=null==x?void 0:x.meta.data.find(e=>"feed"===e.key))||void 0===t?void 0:t.value)&&void 0!==a?a:null)==="idx",g=(null!==(i=[...null!==(n=null===(l=d.mainComponent)||void 0===l?void 0:l.meta.data)&&void 0!==n?n:[]].filter(e=>e.key.startsWith("listing")&&!(v&&f)||e.key.startsWith("community")).length)&&void 0!==i?i:0)>0;return(null==d?void 0:d.mainComponent)&&g?(0,r.jsxs)("button",{className:(0,s.Z)("flex w-full flex-row items-center justify-center gap-2 bg-transparent ".concat(o),{"bg-[#115B90]":u}),onClick:()=>m(d),children:[(0,r.jsx)("p",{className:(0,s.Z)(p()["paragraph-2"],"!text-sm uppercase text-white"),children:u?(0,r.jsx)("a",{href:c,children:d.name}):d.name}),g&&(0,r.jsx)(C,{className:(0,s.Z)("icon fill-black text-[0.3125rem] transition-transform",{"rotate-180":u})})]}):(0,r.jsx)(L.Z,{href:c,className:(0,s.Z)(p()["paragraph-2"],p()["header-nav--items"]),children:d.name})};var q=V},4697:function(e){e.exports={"input-field":"DropDownInput_input-field__DxZSB","input-field--inactive":"DropDownInput_input-field--inactive__02P3b","input-field--with-value":"DropDownInput_input-field--with-value__URJek","input-wrapper":"DropDownInput_input-wrapper__78yi1","btn-arrow":"DropDownInput_btn-arrow__5HMsc","item--data-filter":"DropDownInput_item--data-filter__H0klX","item--data-filter__active":"DropDownInput_item--data-filter__active__QPVd2","data-dropdown":"DropDownInput_data-dropdown__JMKoF",chip:"DropDownInput_chip__AzkeY","chip--delete":"DropDownInput_chip--delete__RDDTM","scroll-buttons":"DropDownInput_scroll-buttons__hmjth"}},82707:function(e){e.exports={"item--data-filter":"Header_item--data-filter__5In1E","item--data-filter__active":"Header_item--data-filter__active__d7vp_","price-filter":"Header_price-filter__6vV9b","content-wrapper":"Header_content-wrapper__cFw4Z","main--btn-filter":"Header_main--btn-filter__CDWvD","main--btn-filter_search":"Header_main--btn-filter_search__wcQe3","btn--checkbox":"Header_btn--checkbox__bGinj","icon-wrapper":"Header_icon-wrapper__E9wQq","icon-wrapper--active":"Header_icon-wrapper--active__EdCF4"}}}]);