2046 W. Main Street #2, Stamford, CT 06902. //# sourceMappingURL=https://assets.homesnap.com/app/js_min/modules/SearchRecentSearches.js.map?hash=d94413680150e9c1019ebc5348325f67 [^A-Z]*)/g).slice(0,-1).join(" "),r.name? "Last 7 Days":i>=7&&i<14? "),Object.keys(e.queryString).forEach(function(t){"brokerageID"===t&&(r.withBrokerageID=!0),r.url=r.url.concat("".concat(t,"="),e.queryString[t],"&")}))}return r},reloadWithBrokerage:function(e,t){var r,a,n=null===e||void 0===e?void 0:null===(r=e.agentDetails)||void 0===r?void 0:null===(a=r.brokerageDetails)||void 0===a?void 0:a.entityID;if((null===t||void 0===t||!t.withBrokerageID)&&null!==t&&void 0!==t&&t.url&&n)return t.url.indexOf("&")>-1&&!t.url.endsWith("&")?t.url="".concat(t.url,"&"):-1!==t.url.indexOf("&")||t.url.endsWith("?")||(t.url="".concat(t.url,"? ").toLowerCase()}},n.brokerage={originateUrl:function(e){var t,r;if(null!==e&&void 0!==e&&null!==(t=e.url)&&void 0!==t&&t.input&&(r={url:"".concat(e.url.input),withBrokerageID:!1},e.queryString)){if(e.queryString.brokerageid)return r.withBrokerageID=!0,r;Object.keys(e.queryString).length&&(r.url="".concat(r.url,"? "In state":"Absentee - In state";case 2:return t? View more property details and sales history on Xome. "Sorry, you can only":"You can"," search up to 5 areas"),type_:"notClickable"}]});for(var i=0;i-1&&(a.searchMode=2);var n=/p_\(? 'star_half':"",s=0;sstar';for(var c=0;cstar_outline';return"".concat(r).concat(i).concat(a)}},n.brand={getImage:function(e,t,r){var a="//s3.amazonaws.com/homesnap.brands/"+n.string.reverse(e.toString())+"_";return{aspectRatio:t,url:{default:a+"aspect.png",light:a+"light_aspect.png",dark:r?a+"dark_aspect.png":null}}}},n.conversationMessageItem={filterHTML:function(e){function t(e){return a.innerHTML=e,e=a.textContent,a.textContent="",e}var r=document.implementation.createHTMLDocument(""),a=r.createElement("div");return function(e){if(e&&"string"==typeof e){for(var r=t(e);e!==r;)e=r,r=t(r);return r}}(e)}},n.conversation={getDate:function(t){if(t){var r=new Date,a=n.date.getDateInfo(t),o=new Date(t);if(r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate())return a.conversationLong=a.formattedTime,a.conversationShort=a.formattedTime,a;if(r.setDate(r.getDate()-1),r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate())return a.conversationLong="Yesterday ".concat(a.formattedTime),a.conversationShort="Yesterday",a;return o>new Date(r.getFullYear(),r.getMonth(),r.getDate()-6)? (t.google=!0,t.name="Google",t.color={text:"#db3236",background:"#ef5c42",rgb:"239,92,66",gradient:"radial-gradient(at bottom right, #E07C3D 0%, #E23A3A 100%)"},t.icon={color:n.path.getImageUrl("/listing-promos/google-colored-256px.png"),colorSM:n.path.getImageUrl("/listing-promos/google-colored-70px-2x.png"),white:n.path.getImageUrl("/listing-promos/google-white-70px-2x.png"),grey:n.path.getImageUrl("/listing-promos/google-grey-70px-2x.png")}):4===e&&(t.waze=!0,t.name="Waze",t.color={text:"#00b7d6",background:"#00b8d2",rgb:"0, 184, 210",gradient:"linear-gradient(313.13deg, #22E0FF 0%, #1CD6F6 15.8%, #15C9EA 35.86%, #15CAEB 36.43%, #15CAEB 36.44%, #15CAEB 36.44%, #15CAEB 37.2%, #15C9EA 37.36%, #15C9EA 37.52%, #15C9EA 38.16%, #14C8E9 39.89%, #14C8E9 39.89%, #13C6E7 43.86%, #10C0E2 53.61%, #00A4C8 100%)"},t.icon={color:n.path.getImageUrl("/listing-promos/waze-colored-256px-1.png"),colorSM:n.path.getImageUrl("/listing-promos/waze-colored-70px-2x-1.png"),white:n.path.getImageUrl("/listing-promos/waze-white-70px-2x.png"),grey:n.path.getImageUrl("/listing-promos/waze-grey-70px-2x.png")}),t},getPlatformIDByName:function(e){if(!e)return null;var t;switch(e.toLowerCase()){case"facebook":t=1;break;case"instagram":t=2;break;case"google":case"googlesearch":case"googlediscovery":t=3;break;case"waze":t=4}return t}},n.leads={getNetwork:function(e,t){var r=Object.assign({},n.ads.getPlatformType(n.ads.getPlatformIDByName(t)));if(r.id=e,r.raw=e,r[t])return r;switch(r.color={text:"#000000",background:"#ffffff",rgb:"0, 0, 0",gradient:null},r.icon={color:"",colorSM:"",white:"",grey:""},e){case 0:r.name="Unknown";break;case 1:r.name="Homesnap";break;case 32:r.name="YouTube";break;case 64:case 256:r.name="Google Ads";break;case 128:r.name="Google's Local Services Ads"}return r},getPlatform:function(e){var t,r={};return r.match=null!==(t=Object.keys(e).filter(function(t){return!0===e[t]})[0])&&void 0!==t?t:"",r.name=(r.match.charAt(0).toUpperCase()+r.match.substr(1)).match(/([A-Z]? "".concat(e.address.fullStreetAddress,", ").concat(e.address.cityStateZip):"",r=n.coStarBrand.is("citysnap");return e.listing&&e.listing.sourceNumber&&r?t+=" | RLS #".concat(e.listing.sourceNumber):e.listing&&e.listing.sourceNumber&&!r&&(t+=" | MLS #".concat(e.listing.sourceNumber)),t},getGraphImage:function(e){return{raw:e,large:e.replace("{w}","1000").replace("{h}","120")}},getPieChartImage:function(e,t){var r="";for(var a in t)t.hasOwnProperty(a)&&(r+=t[a].Value+" - "+t[a].Label,r+="|");return{raw:e,small:e.replace("{w}","320").replace("{h}","160").replace("{color0}","00A3E1").replace("{color1}","56BBE1").replace("{color2}","abddf0").replace("{color3}","cccccc")+"&chdl="+r.slice(0,-1)}},getStatusBadges:function(e){function t(e,t,r){this.text=e,this.color=t,this.secondaryColor=r}var r=[];if(e.listing){if(e.listing.specialFeatures.comingSoon){var a=new t("Coming Soon","#fac332","");r.push(a)}else{var o,i,s=2===e.transactionType.raw;if(e.listing.sListingStatus.active)o=s? "For Rent":"For Sale";return u},getMonthlyPayment:function(e,t,r){return 0==r?e/t:e*r*Math.pow(1+r,t)/(Math.pow(1+r,t)-1)},getAffordabilityHomePrice:function(e){if(!e||"Object"==typeof e)return null;var t=+e.interestRate.toFixed(10),r=e.loanTerm,a=e.income/12*e.debtToIncome-e.monthlyDebts;a=a.toFixed(10);var n=+(e.annualPropertyTax/12).toFixed(10)+ +(e.annualHomeownersInsurance/12).toFixed(10)+ +(e.annualMortgageInsurance/12).toFixed(10)+e.hoaFees;n=parseInt(n,10);var o=Math.pow(1+t,r);o=+o.toFixed(10);var i=(o-1)/(t*o)||0;return i=+i.toFixed(10),e.downPayment+(a-n)*i},isOpenHouseNow:function(e){var t,r,a,n;if(!e||"object"!=typeof e)return!1;var o=(null===(t=e.startDateUtc)||void 0===t?void 0:t.raw)||e.startDate.raw,i=(null===(r=e.endDateUtc)||void 0===r?void 0:r.raw)||e.endDate.raw,s=new Date,c=s.getTime();null!==(a=e.startDateUtc)&&void 0!==a&&a.raw&&null!==(n=e.endDateUtc)&&void 0!==n&&n.raw&&(c+=6e4*s.getTimezoneOffset());var l=new Date(o).getTime(),u=new Date(i).getTime();return c>=l&&c<=u}},n.themes={_current:null,get current(){var e;return null!==(e=this._current)&&void 0!==e?e:this.preset},key:"data-theme",preset:"hswa",mapping:{none:"hswa",nyc:"empire"},set:function(e){var t,r=null!==(t=Object.keys(e).filter(function(t){return!0===e[t]})[0])&&void 0!==t?t:"none",a=this.mapping[r];2===window.Homesnap.coStarBrand&&a===this.mapping.nyc||(this.load(a),this._current=a)},load:function(e){$("html").attr("data-theme",e),e===this.preset||$("link[".concat(this.key,"='").concat(e,"']")).length||n.handlebars.loadCSS("themes/".concat(e,".css"),null,{key:this.key,value:e})},unload:function(e){$("html").attr("data-theme")===e&&($("html").attr("data-theme",this.preset),this._current=this.preset,$("link[".concat(this.key,"='").concat(e,"']")).remove())},paint:{load:function(e){n.handlebars.loadCSS(e? Homesnap.templates["controllers/Header.html"] = '{{#with data}}