2&&void 0!==arguments[2]?arguments[2]:{},i="string"==typeof e?[e]:Array.isArray(e)?e:[e];null!==(n=window.Homesnap.mlsVersionNumber)&&void 0!==n||window.Homesnap.versionNumber;i.forEach(function(e){var n,i=window.Homesnap.versionNumber;if(-1==e.indexOf("https://")&&0!=e.indexOf("//")){var s=e.toLowerCase();e=t.cssAppHashes&&!t.cssAppHashes["".concat(s)]?"".concat(t.cssMainRootPath,"/").concat(e):"".concat(t.cssRootPath,"/").concat(e)}if(t.cssAppHashes&&t.cssRootPath&&0===e.indexOf(t.cssRootPath)){var l=e.replace("".concat(t.cssRootPath,"/"),"").toLowerCase();n=t.cssAppHashes[l]||r}else if(t.cssHashes&&t.cssMainRootPath&&0===e.indexOf(t.cssMainRootPath)){var c=e.replace("".concat(t.cssMainRootPath,"/"),"").toLowerCase();n=t.cssHashes[c]||r}else if(t.cssHashes&&t.cssRootPath&&0===e.indexOf(t.cssRootPath)){var u=e.replace("".concat(t.cssRootPath,"/"),"").toLowerCase();n=t.cssHashes[u]||r}void 0!==n&&""!==n&&(e+="".concat(-1===e.indexOf("?")?"?":"&","hash=").concat(n,"&v=").concat(i)),require(["jquery"],function(t){if(!t("link[href='".concat(e,"']")).length){var r=t("head");if(r.length){var n=t('').attr("href",e);r.append(n),null!==o&&void 0!==o&&o.key&&null!==o&&void 0!==o&&o.value&&n.attr(o.key,o.value)}}"function"==typeof a&&a()})})}},n.ui={getWindowSize:function(e){return e>=1200?"lg":e>=992?"md":e>=768?"sm":"xs"},belowthefold:function(e,t,r,a){return(a&&a.offset()?a.offset().top+a.height():(t[0].innerHeight?t[0].innerHeight:t.height())+t.scrollTop())<=e.offset().top-(r||0)},rightoffold:function(e,t,r,a){return(a&&a.offset()?a.offset().left+a.width():t.width()+t.scrollLeft())<=e.offset().left-(r||0)},abovethetop:function(e,t,r,a){return(a&&a.offset()?a.offset().top:t.scrollTop())>=e.offset().top+(r||0)+e.height()},leftofbegin:function(e,t,r,a){return(a&&a.offset()?a.offset().left:t.scrollLeft())>=e.offset().left+(r||0)+e.width()},inviewport:function(e,t,r,a){return!(!e||!e.length)&&!(this.rightoffold(e,t,r,a)||this.leftofbegin(e,t,r,a)||this.belowthefold(e,t,r,a)||this.abovethetop(e,t,r,a))},findEdges:function(e){var t;if(e&&e.length){var r=e.offset();r&&(t={top:r.top,left:r.left,bottom:r.top+e.height(),right:r.left+e.width()})}return t}},n.string={reverse:function(e){for(var t=e.length-1,r="";t>=0;r+=e[t--]);return r},getPrice:function(e){return e||0===e?{raw:e,short:"$"+this.getShortNumber(e),dollars:"$"+parseInt(e).toLocaleString(),dollarsWithoutCommas:"$"+parseInt(e,10),dollarsWithCents:"$"+e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:2,minimumFractionDigits:2})}:null},getShortNumber:function(e){if(e||0===e){var t,r=!1;return e<0&&(r=!0,e*=-1),e<1e4?t=e.toLocaleString():e<999500?(t=Math.round(e/1e3).toString(),t+="K"):e<105e4?t="1M":e<9995e4?(t=(Math.round(e/1e5)/10).toFixed(1).toString(),t+="M"):(t=Math.round(e/1e6).toString(),t+="M"),r?"-".concat(t):t}return null},getNumber:function(e){return e||0===e?{raw:e,commas:e.toLocaleString(),short:this.getShortNumber(e),decimal0:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:0}),decimal1:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:1,minimumFractionDigits:1}),decimal2:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:2,minimumFractionDigits:2}),decimal3:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:3,minimumFractionDigits:3})}:null},getPercent:function(e,t){if(e||0===e){var r=t||1,a=this.getNumber(Math.abs(e*r));return{raw:e*r,abs:a.raw,commas:a.commas+"%",decimal0:a.decimal0+"%",decimal1:a.decimal1+"%",decimal2:a.decimal2+"%",decimal3:a.decimal3+"%",isPositive:e>0}}return null},getPhoneNumber:function(e){if(e&&"string"==typeof e){var t=e.replace(/\D/g,"").replace(/^1/,""),r=(t.substr(0,10),t.substr(10,100)),a="("+t.substr(0,3)+") "+t.substr(3,3)+"-"+t.substr(6,4),n=t.substr(0,3)+"-"+t.substr(3,3)+"-"+t.substr(6,4),o=a;return r.length>0&&(o+=" x"+r),{raw:e,digits:t,withParentheses:a,withDashes:n,withExtension:o}}return null},getPercentChange:function(e,t){if(e&&t){var r=(e-t)/t*100;return this.getPercent(r)}},firstLetterToUpper:function(e){if(e)return e.toLowerCase().charAt(0).toUpperCase()+e.toLowerCase().slice(1)},findUrls:function(e){var t=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/g;return"string"==typeof e?e.match(t):null}},n.date={getDateInfo:function(e){if(e){var t,r=new Date(e),a={weekday:"long",year:"numeric",month:"long",day:"numeric"},o={weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];return{raw:r.getTime(),date:r,month:r.getMonth()+1,day:r.getDate(),year:r.getFullYear(),monthDayYear:r.getMonth()+1+"/"+r.getDate()+"/"+r.getFullYear().toString().substr(2,2),formattedDate:r.toLocaleString("en-us",a),formattedDateTime:r.toLocaleString("en-us",o),shortMonth:s[r.getMonth()],longMonth:l[r.getMonth()],formattedTime:r.toLocaleTimeString("en-us",{hour:"2-digit",minute:"2-digit"}),ago:n.date.getAgo(r),agoFriendly:n.date.getAgoFriendly(r),shortDay:i[r.getDay()],longDay:null===(t=n.date.getDayOfWeek(r.getDay()))||void 0===t?void 0:t.dayFull}}return null},getAgo:function(e){var t=Date.now();if(e){var r=t-e.getTime(),a=Math.round(r/1e3),n=Math.round(a/60),o=Math.round(n/60),i=Math.round(o/24),s=Math.round(i/7),l=Math.round(i/30);return a<=0?"now":a<60?a.toString()+"s":n<60?n.toString()+"m":o<24?o.toString()+"h":i<7?i.toString()+"d":s<5?s.toString()+"w":l.toString()+"mo"}},getAgoFriendly:function(e){var t=Date.now();if(e){var r=t-e.getTime(),a=Math.round(r/1e3),n=Math.round(a/60),o=Math.round(n/60),i=Math.round(o/24);return a<=0?"Today":a<60?"Today":n<60?"Today":o<24?"Today":o>=24&&o<48?"Yesterday":i<7?"Last 7 Days":i>=7&&i<14?"Last 14 Days":i>=14&&i<30?"Last 30 Days":i>=30&&i<90?"Last 90 Days":i>=90&&i<365?"This Year":"All Time"}},getTicks:function(e){if(e)return parseFloat(e.toString().replace(/\D/g,""))},getDuration:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!("number"!=typeof e||e<0)){var t=new Date(null);t.setSeconds(e);var r=t.toISOString().substr(11,8),a=r.split(":");return{raw:e,hours:+a[0],minutes:+a[1],seconds:+a[2],formatted:r,formattedTrimmed:r.replace(/^0(?:0:0?)?/,""),roundedMinutes:Math.round(e/60)}}},getDayOfWeekArray:function(){return[{dayFull:"Sunday",dayAbbr:"Sun",dayLongAbbr:"Sun"},{dayFull:"Monday",dayAbbr:"M",dayLongAbbr:"Mon"},{dayFull:"Tuesday",dayAbbr:"T",dayLongAbbr:"Tues"},{dayFull:"Wednesday",dayAbbr:"W",dayLongAbbr:"Wed"},{dayFull:"Thursday",dayAbbr:"Th",dayLongAbbr:"Thurs"},{dayFull:"Friday",dayAbbr:"F",dayLongAbbr:"Fri"},{dayFull:"Saturday",dayAbbr:"S",dayLongAbbr:"Sat"}]},getDayOfWeek:function(e){return n.date.getDayOfWeekArray()[e]},getTimeOptions:function(){for(var e=[],t=function(e){return e.toString().padStart(2,"0")},r=0;r<2;r++)for(var a=r?"PM":"AM",n=0;n<12;n++)for(var o=0;o<60;o+=15){var i=r?n+12:n;e.push({label:"".concat(n||12,":").concat(t(o)," ").concat(a),value:"".concat(t(i),":").concat(t(o),":00"),minutes:60*i+o})}return e}},n.user={getFileID:function(e){return e.toString().split("").reverse().join("")},getProfileImage:function(e,t,r){var a=e>0?"homesnap.users":"homesnap.noimage",o="//s3.amazonaws.com/"+a+"/",i=e>0?o+n.string.reverse(e.toString())+"_":o+"user_",s="";return t&&(s="?"+t),{small:r||i+"50.jpg"+s,medium:r||i+"150.jpg"+s,large:r||i+"300.jpg"+s,photoVersion:t}},updateProfileImage:function(e,t){if(e)return e.status.raw+=1,e.status.hasPhoto=!0,e.photoVersion=t,e.profileImage=this.getProfileImage(e.userID,e.photoVersion),e},getName:function(e,t,r){if(!e&&!t&&!r)return null;var a,e=e?e.trim():null,t=t?t.trim():null;return a=e||(t||(r||" ")),{first:e,last:t,firstOrLast:a,full:e&&t?e+" "+t:a,initials:e&&t?e.charAt(0).toUpperCase()+t.charAt(0).toUpperCase():a.charAt(0).toUpperCase()}},getFriendlyName:function(e,t){return t?e.name&&e.name.full?e.name.full:"Homesnap User":e.name&&e.name.first?e.name.first:"Homesnap User"},getProfileURL:function(e,t,r){return e?"/"+e:"/entity/"+r+(t?"/"+t:"")},getBackgroundImageURL:function(e){var t="https://s3.amazonaws.com/homesnap.backgrounds/";return t+=n.string.reverse(e.toString()),{listingAds:"".concat(t,"_2064x1080.jpg"),large:"".concat(t,"_2000x640.jpg"),medium:"".concat(t,"_1000x320.jpg"),small:"".concat(t,"_500x160.jpg")}},getRatingStars:function(e,t){for(var r="",a="",n=(Math.round(2*e)/2).toFixed(1),o=t?Math.floor(5-n):Math.ceil(5-n),i=n%1!=0&&t?'star_half ':"",s=0;sstar';for(var l=0;lstar_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)?(a.conversationLong="".concat(e[o.getDay()]," ").concat(a.formattedTime),a.conversationShort=e[o.getDay()],a):(a.conversationLong="".concat(a.monthDayYear," ").concat(a.formattedTime),a.conversationShort=a.monthDayYear,a)}return null},getSummary:function(e){var t="";return e.text&&(t=e.text),e.propertyAddress?(t.length&&(t+=" "),t+="[".concat(e.propertyAddress.address.fullStreetAddress,", ").concat(e.propertyAddress.address.cityStateZip,"]")):e.image?(t.length&&(t+=" "),t+="[1 Image Attached]"):e.entity&&(t.length&&(t+=" "),t+="[".concat(n.user.getFriendlyName(e.entity,!0),"]")),t},getTitle:function(e){var t="Me";if(e&&e.members&&e.members.length){var r=e.members.length,a=e.members.map(function(e,t){return n.user.getFriendlyName(e,1===r||1===e.entityID)});1===r?t=a[0]:2===r?t="".concat(a[0]," & ").concat(a[1]):3===r?t="".concat(a[0],", ").concat(a[1]," & ").concat(a[2]):(t="".concat(a[0],", ").concat(a[1],", ").concat(a[2]),t+=" & ".concat((r-3).toString()," more"))}return t},isEqual:function(e,t){return!!((null===e||void 0===e?void 0:e.type_)===(null===t||void 0===t?void 0:t.type_)&&"HSConversationItem"===(null===e||void 0===e?void 0:e.type_)&&e.id===t.id&&e.status.raw===t.status.raw&&e.recentMessage&&t.recentMessage&&e.recentMessage.id===t.recentMessage.id&&e.recentMessage.status.raw===t.recentMessage.status.raw&&(e.recentMessage.readTimestamp&&t.recentMessage.readTimestamp&&e.recentMessage.readTimestamp.raw===t.recentMessage.readTimestamp.raw||!e.recentMessage.readTimestamp&&!t.recentMessage.readTimestamp))},getMessageImage:function(e,t){var r="https://s3.amazonaws.com/homesnap.messages/";return r+="".concat(n.string.reverse(e.toString()),"_"),{small:"".concat(r).concat(t,"_192.jpg"),medium:"".concat(r).concat(t,"_576.jpg"),original:"".concat(r).concat(t,"_original.jpg")}}},n.listing={mapping:{mini:303,listing:302,large:301,original:301},getImage:function(e,t,r){var o,i,s=null===(o=window.Homesnap)||void 0===o?void 0:null===(i=o.rootURLs)||void 0===i?void 0:i.akamaiListingImagesURLFormat.toLowerCase();return s?(s=s.replace("{sizeid}",e.toString()),s=s.replace("{mediaidreversed}",n.string.reverse(r.toString())),s=s.replace("{listingidreversed}",n.string.reverse(t.toString()))):(a("RootURL AkamaiListingImagesURLFormat is undefined"),"")},getImageSet:function(e,t){var r=this,a={};return Object.entries(this.mapping).forEach(function(n){var o=_slicedToArray(n,2),i=o[0],s=o[1];a[i]=r.getImage(s,e,t)}),a},getPrimaryImage:function(e,t){return this.getImageSet(e,t)},getSecondaryImages:function(e,t){for(var r=[],a=0;a')}else if(o){var g;u.priority=20,u.color="purple",u.pinName="purple",u.primaryColor="purple",u.pinHex="00B100",u.text="Open House",i&&(u.text="Open ".concat(i)),c&&null!==(g=c.method)&&void 0!==g&&g.virtual&&(u.text="Live ",n.listing.isOpenHouseNow(c)?u.text+="Now ":i&&(u.text+="".concat(i," ")),u.text+=' ')}else u.priority=30,u.color="green",u.pinName="green",u.primaryColor="green",u.pinHex="00B100",u.text=p?"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,l=s.getTime();null!==(a=e.startDateUtc)&&void 0!==a&&a.raw&&null!==(n=e.endDateUtc)&&void 0!==n&&n.raw&&(l+=6e4*s.getTimezoneOffset());var c=new Date(o).getTime(),u=new Date(i).getTime();return l>=c&&l<=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?"".concat(e):"paint/paint.css")},set:function(e,t,r,a,n){var o=document.documentElement.style;e&&t&&o&&(o.setProperty("--".concat(e,"-hex"),t),"number"==typeof r&&"number"==typeof a&&"number"==typeof n&&(o.setProperty("--".concat(e,"-hue"),"".concat(r)),o.setProperty("--".concat(e,"-sat"),"".concat(a,"%")),o.setProperty("--".concat(e,"-lte"),"".concat(n,"%"))))}},converters:{rgb2hsl:function(e,t,r){var a=Math.max(e,t,r),n=a-Math.min(e,t,r),o=1-Math.abs(a+a-n-1),i=n&&(a===e?(t-r)/n:a===t?2+(r-e)/n:4+(e-t)/n);return[60*(i<0?i+6:i),o?n/o:0,(a+a-n)/2]}}},n.propertyAddress={getAddress:function(e,t,r,a,n){var o,i,s,l,c;return{fullStreetAddress:e,fullStreetAddressWithoutUnit:this.getFullStreetAddressWithoutUnit(e,t),unitNumber:t?{raw:t,string:"#"+t}:null,city:r,state:a,zip:n,cityState:(r?r+", ":"")+(a?a+" ":""),cityStateZip:(r?r+", ":"")+(a?a+" ":"")+(n||""),streetNumber:null===(o=this.getFullStreetAddressWithoutUnit(e,t))||void 0===o?void 0:null===(i=o.split(" "))||void 0===i?void 0:i[0],streetNameWithoutNumber:null===(s=this.getFullStreetAddressWithoutUnit(e,t))||void 0===s?void 0:null===(l=s.split(" "))||void 0===l?void 0:null===(c=l.splice(1))||void 0===c?void 0:c.join(" ")}},getFullStreetAddressWithoutUnit:function(e,t){return t&&t.toString().length>0?e.split(" #")[0]:e},getBeds:function(e){return e?{raw:e,string:e.toString(),label:1==e?"Bed":"Beds"}:null},getBaths:function(e,t){var r;return e&&(r={raw:{full:e,half:t||0},string:e.toString(),label:"Baths"},t&&t>0&&(r.string+=1==t?".5":".5+"),1!=e||t&&0!=t||(r.label="Bath")),r},getSqFt:function(e){return e?{raw:e,string:e.toLocaleString()}:null},getLotSize:function(e){return e?{raw:e,string:e.toLocaleString(),label:"Acres"}:null},getPrice:function(e,t){if(e){var r=Math.round(e),a="$"+r.toLocaleString();t&&2==t&&(a+="/mo");var n;return r<1e4?n=r.toLocaleString():r<999500?(n=Math.round(r/1e3).toString(),n+="K"):r<105e4?n="1M":r<9995e4?(n=(Math.round(r/1e5)/10).toFixed(1).toString(),n+="M"):(n=Math.round(r/1e6).toString(),n+="M"),t&&2==t&&(n+="/mo"),{raw:e,dollars:a,short:"$"+n}}return null},getPropertyStatus:function(e,t,r){var a={color:"blue",pinName:"blue_pin",primaryColor:"blue",secondaryColor:null,text:t||"Off-Market",pinHex:"006DC7"};if(r)switch(!0){case r.expired:a.text="Expired";break;case r.canceled:a.text="Canceled";break;case r.withdrawn:a.text="Withdrawn";break;case r.hold:a.text="Hold"}return a},getSPropertyType:function(e){if(e){var t;switch(e){case 1:t="Detached";break;case 2:t="Townhouse";break;case 4:t="Condo";break;case 16:t="Multi-Family";break;case 32:t="Lots/Land";break;case 64:t="Mobile/Manufactured";break;case 128:t="Commercial";break;case 256:t="Co-op";break;case 8:default:t="Other"}return{raw:e,string:t}}return null},getClusterColors:function(e,t,r){var a={fill:"#4392CE",stroke:"#3589CF"};return e&&(t?(a.fill="#F1CC39",a.stroke="#E5BE37"):2==(2&e)?(a.fill="#F37F21",a.stroke="#D76C25"):4==(4&e)?(a.fill="#E02844",a.stroke="#9A1B1E"):1==(1&e)&&(r?(a.fill="#00B100",a.stroke="#00B100"):(a.fill="#71bf44",a.stroke="#538c32"))),a},getSingleEntityTypeAndID:function(e){if(e){var t,r;return e.listing?(t=7,r=e.listing.id):e.propertyID?(t=6,r=e.propertyID):e.id&&(t=5,r=e.id),{type:t,id:r}}},getPageTitle:function(e){var t=e.address?"".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",i="#00b100";else if(e.listing.sListingStatus.contract)o=s?"Pending":"Contract",i="#ff7f17";else if(e.listing.sListingStatus.sold)o=s?"Rented":"Sold",i="#f71200";else if((e.listing.sListingStatus.inactive||e.listing.sListingStatus.removed)&&(i="#006DC7",o="Off-Market",e.listing.mlsStatus)){var l=e.listing.offMarketDate?" ".concat(e.listing.offMarketDate.shortMonth," ").concat(e.listing.offMarketDate.day):"";switch(!0){case e.listing.mlsStatus.expired:o="Expired".concat(l);break;case e.listing.mlsStatus.canceled:o="Canceled".concat(l);break;case e.listing.mlsStatus.withdrawn:o="Withdrawn".concat(l);break;case e.listing.mlsStatus.hold:o="Hold".concat(l)}}var c=new t(o,i,null);r.push(c)}if(e.listing.specialFeatures.brokerOpen||e.listing.specialFeatures.openHouse){var u,p,d=e.listing.openHouse&&e.listing.openHouse.times?"Open ".concat(e.listing.openHouse.times):"Open House";null!==(u=e.listing.openHouse.method)&&void 0!==u&&u.virtual&&(d="Live ",n.listing.isOpenHouseNow(e.listing.openHouse)?d+="Now ":e.listing.openHouse.times&&(d+="".concat(e.listing.openHouse.times," ")),d+=' ');var g=new t(d,"#00B100",null);if(r.push(g),null!==e&&void 0!==e&&e.transactionType.forSale&&null!==e&&void 0!==e&&null!==(p=e.listing)&&void 0!==p&&p.openHouse.method.byAppointmentOnly){var m=n.coStarBrand.is("citysnap")?"#b0b0b0":"#6b758a",h=new t("Appointment Only",m,null);r.push(h),3===r.length&&r.shift()}}if(e.listing.specialFeatures.contingent){var f=new t("Contingent","#00B100",null);r.push(f)}else if(e.listing.specialFeatures.shortSale){var y=new t("Short Sale","#00b100",null);r.push(y)}else if(e.listing.specialFeatures.auction){var b=new t("Auction","#00b100",null);r.push(b)}else if(e.listing.specialFeatures.realEstateOwned){var v=new t("Real Estate Owned","#f71200",null);r.push(v)}else if(e.listing.specialFeatures.foreclosure){var w=new t("Foreclosure","#00b100",null);r.push(w)}}else if(e&&e.propertyID){var S="Off-Market";if(e.attributes&&e.attributes.mlsStatus){var x=e.attributes.offMarketDate?" ".concat(e.attributes.offMarketDate.shortMonth," ").concat(e.attributes.offMarketDate.day):"";switch(!0){case e.attributes.mlsStatus.expired:S="Expired".concat(x);break;case e.attributes.mlsStatus.canceled:S="Canceled".concat(x);break;case e.attributes.mlsStatus.withdrawn:S="Withdrawn".concat(x);break;case e.attributes.mlsStatus.hold:S="Hold".concat(x)}}var k=new t(S,"#006DC7",null);r.push(k)}return r},getOwnershipTypeAttributeDescription:function(e,t){switch(e){case 1:return t?"In state":"Absentee - In state";case 2:return t?"Out of state":"Absentee - Out of state";case 4:return"Corporate";case 8:return"Owner Occupied";default:return null}},getDistressedAttributeDescription:function(e,t){switch(e){case 1:return"Lis Pendens";case 2:return"Notice Of Default";case 4:return t?"Foreclosure Notice":"Notice Of Foreclosure Sale";case 8:return t?"Notice of Sale":"Notice Of Trustee Sale";case 32:return"Affidavit Notice of Sale Published or Mailed";case 64:return"Cancelled";case 128:return"Certificate of Purchase / Certificate of Foreclosure Recorded";case 256:return"Order Rescheduling Foreclosure Sale Date";case 512:return"Foreclosure Judgment Entered";case 2048:return"Newly Filed Complaint";case 4096:return"Order of Dismissal/Cancellation/Release of Lis Pendens";case 8192:return"Power of Attorney to Foreclose Mortgage";case 16384:return"Re-Recorded Notice of Default";case 32768:return"Re-Recorded Final Judgment of Foreclosure";case 65536:return"Re-Recorded Notice of Lis Pendens";case 131072:return"Re-Recorded Order of Dismissal";case 524288:return"NFNS Updated with Sale Information Rescheduled";case 1048576:return"Re-Recorded Notice of Trustees Sale";case 2097152:return"Sold";case 4194304:return"Re-Recorded Notice of Sale";case 8388608:return"Standalone Mortgage";case 1073741824:return"Other";default:return null}}},n.js={dedupeHashTables:function(e,t,r){var a={add:[],keep:[],remove:[]};return e&&0!=e.length?t&&0!=t.length?(e.each(function(e,n){t.hasItem(e)?r&&!r(n,t.getItem(e))?(a.remove.push(e),a.add.push(e)):a.keep.push(e):a.remove.push(e)}),t.each(function(t,r){e.hasItem(t)||a.add.push(t)})):a.remove=e.keys():t&&t.length>0&&(a.add=t.keys()),a},round:function(e,t){return Number(Math.round(e+"e"+t)+"e-"+t)}},n.map={getXYbyLatLng:function(e,t,r){if(isNaN(parseFloat(e))||isNaN(parseFloat(t))||isNaN(parseInt(r,10)))return null;var a=parseInt(256*Math.pow(2,r-1)+t*(256*Math.pow(2,r)/360)),n=Math.sin(e*Math.PI/180);return n<-.9999&&(n=-.9999),n>.9999&&(n=.9999),{x:a,y:parseInt(256*Math.pow(2,r-1)+.5*Math.log((1+n)/(1-n))*(-256*Math.pow(2,r)/(2*Math.PI)))}},getLatLngByPixel:function(e,t,r){if(isNaN(parseInt(e,10))||isNaN(parseInt(t,10))||isNaN(parseInt(r,10)))return null;var a=e*(360/(256*Math.pow(2,r)))-180,o=t*(2/(256*Math.pow(2,r)));return o=1-o,o*=Math.PI,o=n.map.getRadiansByDegrees(Math.atan(Math.sinh(o))),{lat:o,lng:a}},getRadiansByDegrees:function(e){return e*(180/Math.PI)},getDistance:function(e,t,r,a,n){if(isNaN(parseFloat(e))||isNaN(parseFloat(t))||isNaN(parseFloat(r))||isNaN(parseFloat(a)))return null;var o=Math.PI*e/180,i=Math.PI*r/180,s=t-a,l=Math.PI*s/180,c=Math.sin(o)*Math.sin(i)+Math.cos(o)*Math.cos(i)*Math.cos(l);return c=Math.acos(c.toPrecision(14)),c=180*c/Math.PI,c=60*c*1.1515,"K"==n&&(c*=1.609344),"N"==n&&(c*=.8684),c},getDecodedPolygon:function(e){var t=function(e){for(var t=e.split("$"),r=[],a=0;a-1&&e.push(t+5e3);for(;t<1e6;)t+=25e3,e.push(t);for(;t<2e6;)t+=1e5,e.push(t);for(;t<3e6;)t+=25e4,e.push(t);for(;t<5e6;)t+=5e5,e.push(t);for(;t<1e7;)t+=1e6,e.push(t);for(;t<=25e6;)t+=25e5,e.push(t);n.coStarBrand.is("citysnap")&&(e=e.filter(function(e){return 0===e||e>19e4}));for(var a=e.map(function(e){return{value:e,label:e<=1e6?"$".concat(n.string.getShortNumber(e)):"$".concat((e/1e6).toString(),"M")}}),o=[],i=0;i<=1e4;i+=100)o.push(i);for(var s=10500;s<15e3;s+=500)o.push(s);for(var l=15e3;l<=2e4;l+=1e3)o.push(l);o.push(1e8),n.coStarBrand.is("citysnap")&&(o=o.filter(function(e){return 0===e||e>900}));var c=o.map(function(e){return{value:e,label:e<1e4?"$".concat(n.string.getShortNumber(e)):"$".concat((e/1e3).toString(),"K")}}),u={sale:{min:a.slice(0,-1),max:a.slice(1)},rent:{min:c.slice(0,-1),max:c.slice(1)}};return u.sale.max[u.sale.max.length-1]={label:"$25M+",value:1e8},u.rent.max[u.rent.max.length-1].label="$20K+",u},getYearBuiltOptions:function(){for(var e=new Date,t=e.getFullYear(),r=[];t>=2014;)r.push(t),t-=1;r=r.concat([2010,2005,2e3,1990,1980,1970,1960,1950,1925,1900]);var a=r.map(function(e){return{value:e,label:e}}),n={min:_toConsumableArray(a).reverse(),max:a};return n.max.unshift({label:"Any",value:3e3}),n.min.unshift({label:"Any",value:0}),n}},n.savedSearches={getSavedSearchUrl:function(e){var t,r=e.sd.getUrl(),a="",n="";if(null!==(t=e.boundaryEntities)&&void 0!==t&&t.length){if(n="/p_",1===e.boundaryEntities.length){var o=e.boundaryEntities[0];n+="".concat(o.entityType,",").concat(o.entityID)}else e.boundaryEntities.forEach(function(e){n+="(".concat(e.entityType,",").concat(e.entityID,")")});a=1===e.boundaryEntities.length?e.boundaryEntities[0].url:"/areas"}else if(e.boundaryEntity){switch(e.boundaryEntity.type_){case"HSAreaItem":n="/p_(21,".concat(e.boundaryEntity.areaID,")");break;case"HSSchool":n="/p_(26,".concat(e.boundaryEntity.id,")");break;case"HSStreetArea":n="/p_(51,".concat(e.boundaryEntity.id,")")}a=e.boundaryEntity.url}var i="";if(e.bounds&&e.bounds.center){var s=e.bounds.center();i="/c_"+s.lat.toString()+","+s.lng.toString()}var l="/b_"+e.bounds.north+","+e.bounds.east+"-"+e.bounds.south+","+e.bounds.west,c="";e.criteria&&e.criteria.filters&&e.criteria.filters.shape&&e.criteria.filters.shape.encodedPolygons&&void 0!==e.criteria.filters.shape.encodedPolygons&&(c="/cp_"+encodeURIComponent(e.criteria.filters.shape.encodedPolygons));var u="";if(e.commuteTimePlaces){u="/ct_";for(var p=0;p0?t.push(a.minimum.toString()+"+ Beds"):a.maximum===a.minimum?t.push(a.minimum.toString()+" Beds"):a.minimum>0&&a.maximum<100&&t.push(a.minimum.toString()+"-"+a.maximum.toString()+" Beds");var n=r.filters&&r.filters.baths?r.filters.baths:{};0===n.minimum&&1===n.maximum?t.push("0-1 Baths"):1===n.minimum&&2===n.maximum?t.push("1-2 Baths"):2===n.minimum&&3===n.maximum?t.push("2-3 Baths"):3===n.minimum&&4===n.maximum?t.push("3-4 Baths"):4===n.minimum&&5===n.maximum?t.push("4-5 Baths"):5===n.minimum&&50===n.maximum?t.push("5+ Baths"):0===n.minimum&&0===n.maximum?t.push("0 Baths"):50===n.maximum&&n.minimum>0?t.push(n.minimum.toString()+"+ Baths"):void 0!==n.minimum&&n.maximum===n.minimum?t.push(n.minimum.toString()+" Baths"):n.minimum>0&&n.maximum<50&&t.push(n.minimum.toString()+"-"+n.maximum.toString()+" Baths");var o=r.filters&&r.filters.price?r.filters.price:{};if(o.minimum&&o.minimum.raw>0&&o.maximum&&o.maximum.raw<1e8?t.push(o.minimum.short+" - "+o.maximum.short):o.maximum&&o.maximum.raw<1e8?t.push("<"+o.maximum.short):o.minimum&&o.minimum.raw>0&&t.push(">"+o.minimum.short),r&&r.filters&&r.filters.date)switch(r.filters.date){case 1:t.push("Today");break;case 2:t.push("Over 1 Week");break;case 3:t.push("Over 1 Month");break;case 4:t.push("Over 3 Months");break;case 5:t.push("Over 6 Months");break;case 6:t.push("Over a Year");break;case 7:t.push("Past Week");break;case 8:t.push("Past Month");break;case 9:t.push("Past 3 Months");break;case 10:t.push("Past 6 Months");break;case 11:t.push("Past Year");break;case 12:t.push("Tomorrow");break;case 13:t.push("This Week");break;case 14:t.push("Saturday");break;case 15:t.push("Sunday");break;case 16:t.push("This Weekend");break;case 17:t.push("This Week");break;case 18:t.push("Next Weekend")}return t=t.join(", "),e&&e.boundaryEntity?"HSAreaItem"==e.boundaryEntity.type_?t+=" in "+e.boundaryEntity.name:"HSSchool"==e.boundaryEntity.type_?t+=" near "+e.boundaryEntity.name:"HSStreetArea"==e.boundaryEntity.type_&&(t+=" on "+e.boundaryEntity.name):e&&e.encodedPolygons&&(t+=" in custom area "),t}},n.data={base64ToArrayBuffer:function(e){if(e){for(var t=e.replace(/^data\:([^\;]+)\;base64,/gim,""),r=atob(t),a=r.length,n=new Uint8Array(a),o=0;o0&&"{"===e.substring(0,1)&&"}"===e.substring(r-1,r))try{t=JSON.parse(e)}catch(e){}return t},deleteNullProperties:function(e){return e?(Object.keys(e).forEach(function(e){var t=this[e];t&&"object"==typeof t?(n.data.deleteNullProperties(t),0===Object.keys(t).length&&delete this[e]):null===t&&delete this[e]},e),e):{}},update:function(e,t,r){e&&Object.keys(e).forEach(function(a){var o="string"==typeof e[a]?e[a].replace(/^\s+|\s+$/g,""):e[a];"object"==typeof o?n.data.update(o,t,r):o===t&&(e[a]=r)})}},n.byte={length:function(e){return void 0!==e?decodeURIComponent(encodeURIComponent(JSON.stringify(e))).length||0:0},size:function(e,t){if(!e)return 0;var r=t?t.toUpperCase():"MB",a=0;switch(e.forEach(function(e){a+=n.byte.length(e)}),r){case"B":return a;case"KB":return+(a/1024).toFixed(3);default:return+(a/1024/1024).toFixed(3)}}},n.entityContent={getKeyFrameUrl:function(e,t){return"https://s3.amazonaws.com/homesnap.entitycontents/".concat(n.string.reverse(e.toString()),"_").concat(t,".jpg")},getDataUrl:function(e,t){return"https://s3.amazonaws.com/homesnap.entitycontents/".concat(n.string.reverse(e.toString()),"_").concat(t,".mp4")}},n.ads={getPlatformType:function(e){if(!e)return null;var t={raw:e,id:e};return 1===e?(t.facebook=!0,t.name="Facebook",t.color={text:"#3b5998",background:"#4b6dad",rgb:"75,109,173",gradient:"radial-gradient(at bottom right, #87BAFF 0%, #005EA8 100%)"},t.icon={color:n.path.getImageUrl("/listing-promos/fb-colored-256px.png"),colorSM:n.path.getImageUrl("/listing-promos/fb-colored-70px-2x.png"),white:n.path.getImageUrl("/listing-promos/fb-white-70px-2x.png"),grey:n.path.getImageUrl("/listing-promos/fb-grey-70px-2x.png")}):2===e?(t.instagram=!0,t.name="Instagram",t.color={text:"#c93a9b",background:"#c9399b",rgb:"201,57,155",gradient:"radial-gradient(at bottom right, #7D3CAF 0%, #B33393 100%)"},t.icon={color:n.path.getImageUrl("/listing-promos/ig-colored-256px.png"),colorSM:n.path.getImageUrl("/listing-promos/ig-colored-70px-2x.png"),white:n.path.getImageUrl("/listing-promos/ig-white-70px-2x.png"),grey:n.path.getImageUrl("/listing-promos/ig-grey-70px-2x.png")}):3===e?(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]?[^A-Z]*)/g).slice(0,-1).join(" "),r.name?(r.id=e.raw,r):null}},n.styles={getProp:function(e){var t;return!(!window||null===(t=document)||void 0===t||!t.documentElement)&&window.getComputedStyle(document.documentElement).getPropertyValue(e)}},n.application={parseQueryString:function(e){for(var t,r,a=/(?:\?|\&)([^(\=|\&)]+)(?:\=([^&]+))?/g;t=a.exec(e);)r=r||{},"string"==typeof t[2]?r[decodeURIComponent(t[1].toLowerCase())]=decodeURIComponent(t[2]):"="!==e.charAt(e.indexOf(t[1])+t[1].length)&&(r[decodeURIComponent(t[1].toLowerCase())]=!0);return r},parseUrl:function(e){if(!e||"string"!=typeof e)return null;var t=/^(http:|https:)?(?:\/\/)?(([^\/\:]+)?(?:(?:\:)([\d]+))?)?(\/[^\s\?]*)(\?[^\#\s]+)?(\#\S+)?$/i,r=e.match(t);return r?{protocol:r[1]||location.protocol,host:r[2]||location.host,hostname:r[3]||location.hostname,port:r[4]||location.port,pathname:r[5],search:r[6],hash:r[7]}:null},isiOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent||navigator.vendor||window.opera)&&!window.MSStream},isAndroid:function(){return/android/i.test(navigator.userAgent||navigator.vendor||window.opera)},isChromeiOS:function(){return/CriOS/i.test(navigator.userAgent||navigator.vendor||window.opera)},isWebView:function(){return/wv/i.test(navigator.userAgent||navigator.vendor||window.opera)},isHSPuppeteer:function(){return/HSPuppeteer/i.test(navigator.userAgent||navigator.vendor||window.opera)}},n.path={getImageUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.imageRootPath+e},getJSUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.jsRootPath+e},getHandlebarUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.handlebarRootPath+e},getDomain:function(e){var t=e.split(".");return t.slice(t.length-2).join(".").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,"?"),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,"?")),t.url=t.url.concat("brokerageid=",n),n&&window.location.replace("".concat(window.location.origin).concat(t.url)),!1}},n.reload={withUtmTags:function(e){if(!e||"object"!=typeof e||e.constructor!==Object)return!1;var t={promoCampaign:"utm_campaign",promoSource:"utm_source",promoMedium:"utm_medium",promoTerm:"utm_term",promoContent:"utm_content",promoDate:"date",salesUserID:"sdr",triggerEmailSubject:"subj"},r=Object.keys(e).map(function(r){if(e[r])return"".concat(t[r],"=").concat(e[r])}).filter(Boolean).join("&"),a="".concat(window.location.origin).concat(window.location.pathname,"?").concat(r);window.location.replace(a)}},n.showing={getStylesBasedOnStatus:function(e){var t=n.coStarBrand.is("citysnap"),r={mapMarkerFill:t?"#000000":"#006DC7"};if(e.status.cancelled)r.dataStatusBadge="red",r.spanTextColor="bs4--text-google-red",r.spanIcon="cancel",r.pText="Canceled";else if(e.status.completed)r.dataStatusBadge="gray",r.spanTextColor="bs4--text-gray-300",r.spanIcon="check_circle",r.pText="Toured",r.mapMarkerFill="#6B758A";else if(e.status.confirmed)r.dataStatusBadge="green",r.spanTextColor="bs4--text-google-green",r.spanIcon="check_circle",r.pText="Confirmed";else if(e.status.external){var a,o=e.service||(null===(a=e.listing)||void 0===a?void 0:a.service)||{},i="Unknown";o.homesnap?i="Homesnap":o.showingTime?i="ShowingTime":o.sentriKey&&(i="SentriKey"),r.dataStatusBadge="blue",r.spanTextColor="bs4--text-hs-blue",r.spanIcon="watch_later",r.pText="Unknown"===i?"Managed Outside Homesnap":"Managed in ".concat(i),r.externalService=i}else e.status.pending||e.status.unscheduled?(r.dataStatusBadge="orange",r.spanTextColor="bs4--text-google-orange",r.spanIcon="watch_later",r.pText=e.status.pending?"Pending":"Unscheduled"):e.status.rejected?(r.dataStatusBadge="red",r.spanTextColor="bs4--text-google-red",r.spanIcon="cancel",r.pText="Declined"):e.status.none&&(r.dataStatusBadge="gray",r.spanTextColor="bs4--text-gray-300",r.spanIcon="watch_later",r.pText="No Status");return r}},n.coStarBrand={_current:window.Homesnap&&window.Homesnap.coStarBrand,_internalDictionary:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("number"==typeof e)return 2940===e?4:2;switch(e.toLowerCase()){case"citysnap":return 4;case"homesnap":default:return 2}},is:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e){var t=this._internalDictionary(e);return t&&this._current===t}},getCurrent:function(e){var t=e?this._internalDictionary(e):this._current;switch(t){case 4:return{name:"Citysnap",supportEmail:"support@citysnap.com",listingService:"RLS",raw:t,appleApp:"https://apps.apple.com/us/app/citysnap-nyc-rentals-homes/id1603890256",googlePlay:"https://play.google.com/store/apps/details?id=com.homesnap.citysnap",includedMLSIds:[511e3]};default:return{name:"Homesnap",supportEmail:"support@homesnap.com",listingService:"MLS",raw:t,appleApp:"https://apps.apple.com/us/app/homesnap-real-estate-rentals/id506563991",googlePlay:"https://play.google.com/store/apps/details?id=com.homesnap",includedMLSIds:[]}}}},n}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),Object.assign&&"function"==typeof Object.assign||Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null===e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),a=1;a>16),s((65280&n)>>8),s(255&n);return 2==o?s(255&(n=c(e.charAt(t))<<2|c(e.charAt(t+1))>>4)):1==o&&(s((n=c(e.charAt(t))<<10|c(e.charAt(t+1))<<4|c(e.charAt(t+2))>>2)>>8&255),s(255&n)),i},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,u="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t>18&63)+a(o>>12&63)+a(o>>6&63)+a(63&o);switch(i){case 1:u+=a((n=e[e.length-1])>>2),u+=a(n<<4&63),u+="==";break;case 2:u+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10),u+=a(n>>4&63),u+=a(n<<2&63),u+="="}return u}}(void 0===f?this.base64js={}:f)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(O,e,H){(function(e,t,g,n,r,o,i,u,a){var s=O("base64-js"),f=O("ieee754");function g(e,t,n){if(!(this instanceof g))return new g(e,t,n);var r,o,i,u,a,s=typeof e;if("base64"===t&&"string"==s)for(e=(r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==s)o=x(e);else if("string"==s)o=g.byteLength(e,t);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");o=x(e.length)}if(g._useTypedArrays?i=g._augment(new Uint8Array(o)):((i=this).length=o,i._isBuffer=!0),g._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(S(a=e)||g.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(u=0;u>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}function c(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o>>0)):(t+1>>0),o}function h(e,t,n,r){if(r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1>>8*(r?u:1-u)}function _(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3>>8*(r?u:3-u)&255}function E(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+1this.length&&(r=this.length),e.length-t=this.length))return this[e]},g.prototype.readUInt16LE=function(e,t){return l(this,e,!0,t)},g.prototype.readUInt16BE=function(e,t){return l(this,e,!1,t)},g.prototype.readUInt32LE=function(e,t){return d(this,e,!0,t)},g.prototype.readUInt32BE=function(e,t){return d(this,e,!1,t)},g.prototype.readInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,t){return h(this,e,!0,t)},g.prototype.readInt16BE=function(e,t){return h(this,e,!1,t)},g.prototype.readInt32LE=function(e,t){return p(this,e,!0,t)},g.prototype.readInt32BE=function(e,t){return p(this,e,!1,t)},g.prototype.readFloatLE=function(e,t){return b(this,e,!0,t)},g.prototype.readFloatBE=function(e,t){return b(this,e,!1,t)},g.prototype.readDoubleLE=function(e,t){return m(this,e,!0,t)},g.prototype.readDoubleBE=function(e,t){return m(this,e,!1,t)},g.prototype.writeUInt8=function(e,t,n){n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t=this.length||(this[t]=e)},g.prototype.writeUInt16LE=function(e,t,n){v(this,e,t,!0,n)},g.prototype.writeUInt16BE=function(e,t,n){v(this,e,t,!1,n)},g.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},g.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},g.prototype.writeInt8=function(e,t,n){n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},g.prototype.writeInt16LE=function(e,t,n){E(this,e,t,!0,n)},g.prototype.writeInt16BE=function(e,t,n){E(this,e,t,!1,n)},g.prototype.writeInt32LE=function(e,t,n){I(this,e,t,!0,n)},g.prototype.writeInt32BE=function(e,t,n){I(this,e,t,!1,n)},g.prototype.writeFloatLE=function(e,t,n){A(this,e,t,!0,n)},g.prototype.writeFloatBE=function(e,t,n){A(this,e,t,!1,n)},g.prototype.writeDoubleLE=function(e,t,n){B(this,e,t,!0,n)},g.prototype.writeDoubleBE=function(e,t,n){B(this,e,t,!1,n)},g.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),D("number"==typeof e&&!isNaN(e),"value is not a number"),D(t<=n,"end < start"),n!==t&&0!==this.length){D(0<=t&&t"},g.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function M(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function N(e,t){D("number"==typeof e,"cannot write a non-number as a number"),D(0<=e,"specified a negative value for writing an unsigned value"),D(e<=t,"value is larger than maximum value for type"),D(Math.floor(e)===e,"value has a fractional component")}function Y(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(n<=e,"value smaller than minimum allowed value"),D(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(n<=e,"value smaller than minimum allowed value")}function D(e,t){if(!e)throw new Error(t||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=L.get,e.set=L.set,e.write=L.write,e.toString=L.toString,e.toLocaleString=L.toString,e.toJSON=L.toJSON,e.copy=L.copy,e.slice=L.slice,e.readUInt8=L.readUInt8,e.readUInt16LE=L.readUInt16LE,e.readUInt16BE=L.readUInt16BE,e.readUInt32LE=L.readUInt32LE,e.readUInt32BE=L.readUInt32BE,e.readInt8=L.readInt8,e.readInt16LE=L.readInt16LE,e.readInt16BE=L.readInt16BE,e.readInt32LE=L.readInt32LE,e.readInt32BE=L.readInt32BE,e.readFloatLE=L.readFloatLE,e.readFloatBE=L.readFloatBE,e.readDoubleLE=L.readDoubleLE,e.readDoubleBE=L.readDoubleBE,e.writeUInt8=L.writeUInt8,e.writeUInt16LE=L.writeUInt16LE,e.writeUInt16BE=L.writeUInt16BE,e.writeUInt32LE=L.writeUInt32LE,e.writeUInt32BE=L.writeUInt32BE,e.writeInt8=L.writeInt8,e.writeInt16LE=L.writeInt16LE,e.writeInt16BE=L.writeInt16BE,e.writeInt32LE=L.writeInt32LE,e.writeInt32BE=L.writeInt32BE,e.writeFloatLE=L.writeFloatLE,e.writeFloatBE=L.writeFloatBE,e.writeDoubleLE=L.writeDoubleLE,e.writeDoubleBE=L.writeDoubleBE,e.fill=L.fill,e.inspect=L.inspect,e.toArrayBuffer=L.toArrayBuffer,e}}).call(this,O("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(l,d,e){(function(e,t,u,n,r,o,i,a,s){var u=l("buffer").Buffer,f=4,c=new u(f);c.fill(0);d.exports={hash:function(e,t,n,r){return u.isBuffer(e)||(e=new u(e)),function(e,t,n){for(var r=new u(t),o=n?r.writeInt32BE:r.writeInt32LE,i=0;ih?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u>>32-a,n);var u,a}function d(e,t,n,r,o,i,u){return l(t&n|~t&r,e,t,o,i,u)}function h(e,t,n,r,o,i,u){return l(t&r|n&~r,e,t,o,i,u)}function p(e,t,n,r,o,i,u){return l(t^n^r,e,t,o,i,u)}function g(e,t,n,r,o,i,u){return l(n^(t|~r),e,t,o,i,u)}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}b.exports=function(e){return f.hash(e,c,16)}}).call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,l,t){(function(e,t,n,r,o,i,u,a,s){var f,c;c=function(e){for(var t,n=new Array(e),r=0;r>>((3&r)<<3)&255;return n},l.exports=f||c}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(l,d,e){(function(e,t,n,r,o,i,u,a,s){var f=l("./helpers");function c(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i,u,a=Array(80),s=1732584193,f=-271733879,c=-1732584194,l=271733878,d=-1009589776,h=0;h>16)+(t>>16)+(n>>16)<<16|65535&n}function E(e,t){return e<>>32-t}d.exports=function(e){return f.hash(e,c,20,!0)}}).call(this,l("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(l,d,e){(function(e,t,n,r,o,i,u,a,s){function B(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function L(e,t){return e>>>t|e<<32-t}function f(e,t){var n,r,o,i,u,a,s,f,c,l,d=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),h=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),p=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,y,w,b,m,v,_,E,I=0;I>>10),p[A-7]),(_=p[A-15],L(_,7)^L(_,18)^_>>>3)),p[A-16]),c=B(B(B(B(f,L(v=u,6)^L(v,11)^L(v,25)),(m=u)&a^~m&s),d[A]),p[A]),l=B(L(b=n,2)^L(b,13)^L(b,22),(g=n)&(y=r)^g&(w=o)^y&w),f=s,s=a,a=u,u=B(i,c),i=o,o=r,r=n,n=B(c,l);h[0]=B(n,h[0]),h[1]=B(r,h[1]),h[2]=B(o,h[2]),h[3]=B(i,h[3]),h[4]=B(u,h[4]),h[5]=B(a,h[5]),h[6]=B(s,h[6]),h[7]=B(f,h[7])}return h}var c=l("./helpers");d.exports=function(e){return c.hash(e,f,32,!0)}}).call(this,l("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,c,t){(function(e,t,n,r,o,i,u,a,s){function f(){}(e=c.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0>1,c=-7,l=n?o-1:0,d=n?-1:1,h=e[t+l];for(l+=d,i=h&(1<<-c)-1,h>>=-c,c+=a;0>=-c,c+=r;0>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,u=c):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),2<=(t+=1<=u+l?d/s:d*Math.pow(2,1-l))*s&&(u++,s/=2),c<=u+l?(a=0,u=c):1<=u+l?(a=(t*s-1)*Math.pow(2,o),u+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,o),u=0));8<=o;e[n+h]=255&a,h+=p,a/=256,o-=8);for(u=u<0&&void 0!==arguments[0]&&arguments[0],n="";n=x?"hs-pro-plus":N?"hs-pro":"hs",x?U.divLogo.addClass("navbar-pro-plus-logo"):U.divLogo.removeClass("navbar-pro-plus-logo"),U.divLogo.parent().data("data-logo",n).attr("data-logo",n),U.divLogo.parent().data("data-logo-transparent",e).attr("data-logo-transparent",e)}function c(){S.add("mobileTabs",new y.ChildController({type:"controllers/MobileTabBar",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("mobileTabs",{$dom:U.divNavbarMobile,data:{pro:N}})}function u(){R.newsFeedDropdown||(S.get("newsFeed")||S.add("newsFeed",new y.ChildController({type:"controllers/NewsFeedDropdown",namespace:B.get(),register:{bubble:o}})),M.updateController("newsFeed",{$dom:U.liNewsFeed}),R.newsFeedDropdown=!0)}function p(){R.messagesDropdown||(S.get("conversations")||S.add("conversations",new y.ChildController({type:"controllers/ConversationsDropdown",namespace:B.get(),register:{bubble:o}})),M.updateController("conversations",{$dom:U.liMessages}),R.messagesDropdown=!0)}function m(){R.agentsDropdown||(S.add("agents",new y.ChildController({type:"controllers/AgentsDropdown",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("agents",{$dom:U.liAgents,data:{pro:N}}),R.agentsDropdown=!0)}function g(){R.meDropdown||(S.add("currentUser",new y.ChildController({type:"controllers/CurrentUserDropdown",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("currentUser",{$dom:U.liCurrentUser}),R.meDropdown=!0)}function v(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];R.brand||(S.add("brand",new y.ChildController({type:"controllers/BrandItem",namespace:B.get(),register:{bubble:o}}),!0),w.getIDXBrand(function(n){var o=n;if(0!==(null===o||void 0===o?void 0:o.id)||3433!==I.brand.id){var r=3433===I.brand.id&&(null===o||void 0===o?void 0:o.id)>=0?o:I.brand;M.updateController("brand",{$dom:U.divBrandLogo,data:{brand:r,inverse:e}}),e||U.divBrandLogo.css({backgroundColor:"#ffffff"}),r.primaryColor&&U.nav.parents("nav").css("border-top-color",r.primaryColor),R.brand=!0}}))}function f(){R.proPlusDropdown||(S.add("proPlus",new y.ChildController({type:"controllers/Header/ProPlusDropdown",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("proPlus",{$dom:U.liProPlus,data:{}}),R.proPlusDropdown=!0)}function b(){R.impersonationHeader||w.getCurrentUser(function(e){var n,r;null!==e&&void 0!==e&&null!==(n=e.user)&&void 0!==n&&null!==(r=n.permissions)&&void 0!==r&&r.homeSnapAdminTools&&(w.getImpersonation(function(n){if(n){var r,a=$("").addClass("bg-sold");M.$dom.addClass("impersonating-user"),U.nav.prepend(a),a.css({"border-bottom":"5px solid ".concat((null===(r=e.user.brand)||void 0===r?void 0:r.primaryColor)||"#006DC7")}),S.add("impersonationHeader",new y.ChildController({type:"controllers/ImpersonationHeader",namespace:B.get(),register:{bubble:o}})),M.updateController("impersonationHeader",{$dom:a,data:{impersonatedUser:n}})}}),R.impersonationHeader=!0)},!0)}function h(e){S.add("stickyNotification",new y.ChildController({type:"controllers/StickyNotification",namespace:B.get(),register:{bubble:o}}),!0);var n={};e&&(n={colorClass:e.colorClass,showIcon:e.showIcon,icon:e.icon,text:e.text,delayTime:e.delayTime}),M.updateController("stickyNotification",{$dom:U.divStickyNotification,data:n})}function C(e,n){if("window.scroll"===e&&H.transparent&&U&&I&&(n.fold.top>51?(U.nav.addClass("affix"),l(!1),R.brand&&(S.get("brand").event("updateLogo",{transparent:!1}),U.divBrandLogo.css("backgroundColor","#ffffff"))):0===n.fold.top&&(U.nav.removeClass("affix"),l(!0),R.brand&&(S.get("brand").event("updateLogo",{transparent:!0}),U.divBrandLogo.css("backgroundColor","transparent")))),"window.newSize"===e&&n&&n.size&&("xs"===n.size.new||"xs"===n.size.previous)&&d(n.size.new),"stickyNotification.show"===e)return void h(null===n||void 0===n?void 0:n.notificationSettings);"headerBrand.showByTenX"!==e||q||(q=!0,s(!0)),S.event(e,n)}var w=e("Application"),y=e("ControllerObjects"),k=e("Utilities");e("bootstrap");var B=new y.Unique(n),D=new y.Callbacks,S=new y.ChildControllerManager,M=new y.StateManager(S);S.add("search",new y.ChildController({type:"controllers/MultiAreaSearch/Manager",namespace:B.get(),register:{bubble:o}}));var U,T,L,N,x,A,P,F={template:new y.Getter({namespace:B.get(),template:{url:"controllers/Header.html",dom:["nav","divContainer","formSearch","aNavbarBrand","liMyAgent","btnMyAgent","liRegister","aRegister","liSignIn","aSignIn","aMobileSignUp","liAgents","liNewsFeed","liMessages","liCurrentUser","liProPlus","divBrandLogo","divMobileSignUp","divNavbarMobile","divLogo","divStickyNotification"]}})},I={},H={simple:!1,fluid:!1,transparent:!1,search:!0,hide:!1,commuteTimeBanner:!1},z=!0,R={newsFeedDropdown:!1,messagesDropdown:!1,agentsDropdown:!1,meDropdown:!1,brand:!1,proPlusDropdown:!1,impersonationHeader:!1},q=!1,O=3433,j={on:function(){U.nav.find("div.main-navbar-hs").addClass("bs4--d-none").removeClass("bs4--d-flex")},off:function(){U.nav.find("div.main-navbar-hs").addClass("bs4--d-flex").removeClass("bs4--d-none")}},E={on:function(){U&&U.divContainer.hasClass("container")&&U.divContainer.addClass("container-fluid").removeClass("container")},off:function(){U&&U.divContainer.hasClass("container-fluid")&&U.divContainer.addClass("container").removeClass("container-fluid")}},X={on:function(){M.$dom.find("nav").addClass("transparent-nav"),l(!0),R.brand&&(S.event("updateLogo",{transparent:!0}),U.divBrandLogo.css("backgroundColor","transparent"))},off:function(){M.$dom.find("nav").removeClass("transparent-nav"),l(!1),R.brand&&(S.event("updateLogo",{transparent:!1}),U.divBrandLogo.css("backgroundColor","#ffffff"))}},G={on:function(){U.formSearch.show(),U.aNavbarBrand.find("svg").addClass("bs4--d-lg-none").removeClass("hidden"),U.divLogo.addClass("bs4--d-none bs4--d-lg-block")},off:function(){U.formSearch.hide(),U.aNavbarBrand.find("svg").removeClass("bs4--d-lg-none").addClass("hidden"),U.divLogo.removeClass("bs4--d-none bs4--d-lg-block")}},J={on:function(){M.$dom.hide()},off:function(){M.$dom.show()}},K={on:function(){S.get("search").event("commuteTimeBanner.status",!0)},off:function(){S.get("search").event("commuteTimeBanner.status",!1)}};return w.getAppMode(function(e){k.themes.set(e)}),{update:r,restore:function(e){M.restore(e,a)},uninit:function(){S.uninit()},getState:M.getState.bind(M),register:D.register.bind(D),event:C}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Header.js.map?hash=667e142a5203b8ad4f9b89a2c81a98d8define("controllers/Footer",["require","ControllerObjects","Application"],function(e){return function(t){function n(e){c.call("bubble",e)}function o(e){s.update(e),r()}function r(){var e=(new Date).getFullYear();s.$dom&&p.get({$dom:s.$dom,data:{hide:s.get("hide",!1),year:e,showIDXDisclaimer:s.get("showIDXDisclaimer")}})}function a(e){var t=e.$dom;e.data;t.divContainer.find("a").on("click",function(e){var t=$(e.target).attr("href"),o="_blank"==$(e.target).attr("target")||$(e.target).data("ignore");if(t&&-1===t.indexOf("http")&&-1===t.indexOf("mailto:")&&!o)return n({type:"url.unhandled",url:t}),!1}),t.aFooterRegister.off("click").on("click",function(e){return n({type:"account.mode",data:"default"}),!1}),t.aDownloadMobileApp.off("click").on("click",function(e){return n({type:"account.mode",data:"app"}),!1}),l.getCurrentUser(function(e){var o,r=e.user;r&&r.registrationStatus&&!r.registrationStatus.notRegistered&&(t.divSupport.removeClass("bs4--d-none"),t.aFooterRegister.addClass("bs4--d-none")),null!==r&&void 0!==r&&null!==(o=r.permissions)&&void 0!==o&&o.paidAgent?(t.spanSupportPhone.removeClass("bs4--d-none"),t.aFindAnAgent.off("click").on("click",function(e){return n({type:"url.unhandled",url:"/agents"}),!1}).attr("href","/agents")):t.aFindAnAgent.off("click").on("click",function(e){return n({type:"account.mode",data:"myAgent"}),!1})},!0),l.getIDXBrand(function(e){e&&t.idxDisclaimer.addClass("bs4--d-none")}),t.aDoNotSell.on("click",function(e){return n({type:"url.unhandled",url:$(e.currentTarget).attr("href")}),!1}),s.updateController("seoFooter",{$dom:e.$dom.divSeo,data:{}})}var i=e("ControllerObjects"),l=e("Application"),d=new i.Unique(t),c=new i.Callbacks,u=new i.ChildControllerManager,s=new i.StateManager(u,{hide:!0});u.add("seoFooter",new i.ChildController({type:"controllers/SeoFooter",namespace:d.get(),register:{bubble:n}}));var p=new i.Getter({namespace:d.get(),success:function(e){try{a(e)}catch(e){throw s&&console.info(s),e}},template:{url:"controllers/Footer.html",dom:["divSeo","divContainer","idxDisclaimer","aFooterRegister","aDownloadMobileApp","divSupport","spanSupportPhone","aSupportEmail","aFindAnAgent","aDoNotSell"]}});return{update:o,restore:function(e){s.restore(e,r)},uninit:function(){u.uninit()},getState:s.getState.bind(s),register:c.register.bind(c),event:function(e,t){u.event(e,t)}}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Footer.js.map?hash=fd257f30f41ecaccfcf21ce873ad67f4define("controllers/generic",["require","ControllerObjects","Objects","controllers/Variable","Application"],function(e){return function(t){function r(e){b.call("bubble",e)}function o(e){p.update(e),n()}function n(){C?a():p.$dom&&m.content.get({$dom:p.$dom,data:{}})}function a(e){e&&e.$dom&&(C=e.$dom),p.updateController("header",{$dom:C.divHeader,data:p&&p.controllers&&p.controllers.header?p.controllers.header.data:{}}),p.updateController("footer",{$dom:C.divFooter,data:p&&p.controllers&&p.controllers.footer?p.controllers.footer.data:{}}),p.updateController("content",p.get("name"),{$dom:C.divContent,data:p&&p.controllers&&p.controllers.content?p.controllers.content.data:{}}),h.done(function(){v&&v.registrationStatus&&v.registrationStatus.registered&&C.divFooter.addClass("user-logged-in"),v&&v.brand&&C.divFooter.addClass("user-has-brand")}),C.skipNav.off().on("click keyup",l)}function l(e){return("click"===e.type||"keyup"===e.type&&"Enter"===e.key)&&($("html,body").animate({scrollTop:C.divContent.offset().top},350),C.divContent.attr("tabindex","0").trigger("focus"),C.divContent.removeAttr("tabindex")),!1}function i(){g.uninit()}function d(e,t){g.event(e,t)}var c=e("ControllerObjects"),s=(e("Objects"),e("controllers/Variable")),u=e("Application"),f=new c.Unique(t),b=new c.Callbacks,g=new c.ChildControllerManager,p=new c.StateManager(g);g.add("header",new c.ChildController({type:"controllers/Header",namespace:f.get(),register:{bubble:r}})),g.add("footer",new c.ChildController({type:"controllers/Footer",namespace:f.get(),register:{bubble:r}})),g.add("content",new c.ChildController({type:s,namespace:f.get(),register:{bubble:r}}));var C,v,m={content:new c.Getter({namespace:f.get(),template:{url:"controllers/generic.html",dom:["divHeader","divContent","divFooter","skipNav"]},success:function(e){try{a(e)}catch(e){throw p&&console.info(p),e}},failure:function(){console.log("addGetter failure")}})},h=function(){var e=$.Deferred();return u.getCurrentUser(function(t){v=t.user,e.resolve()}),e}();return{update:o,restore:function(e){p.restore(e,n)},uninit:i,getState:p.getState.bind(p),register:b.register.bind(b),event:d}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/generic.js.map?hash=e0b946063f8921924b59330432cea1e7define("controllers/Property/PropertyAddressItem",["require","ControllerObjects","Objects","Utilities","Application","sly","jquery","lodash"],function(e){return function(t){function r(){S=void 0,B=void 0,I=void 0,k=0,x=-1,C=!1,P=void 0,A=void 0,T=void 0,D=0,G={paging:!1,corner:!1,statusBar:!0,price:!0,units:{total:null,listings:null},openHouses:!1,address:!1,gradient:!0,statusText:!1,statusCssClass:null,detailsButton:!1,buildingSummary:!1,buildingUnit:!1,priceAddressGroup:!1,placardVersion:1},L=void 0,F=_.getBrowser()}function i(){G.corner=V.get("showCorner",!1),G.statusBar=V.get("showStatusBar",!0),G.statusCssClass=V.get("statusCssClass",!1),G.price=!V.get("showAddress",!1)&&V.get("showPrice",!0),G.placardVersion=V.get("placardVersion",1);var e=V.get("showDistance",null);if(G.price&&B.propertyCount&&B.propertyCount.raw&&B.propertyCount.raw>1?(G.openHouses=B.listing&&(B.listing.isOpenHouse||B.listing.isAgentOpen),G.units.total=B.propertyCount.commas,G.buildingSummary=!0,V.set("paging",!1)):G.price||(G.units=!1),G.address=B.address&&V.get("showAddress",!1)&&!G.price,V.get("showAddressAndPrice",!1)&&(G.address=!0,G.price=!0),G.gradient=(G.price||G.address||G.units.total)&&!(2===G.placardVersion),V.get("showAgo",!1)&&B.listing&&B.listing.ago)G.statusText=B.listing.ago;else if(e&&e.latitude&&e.longitude&&B.latitude&&B.longitude){var t=U.map.getDistance(e.latitude,e.longitude,B.latitude,B.longitude);t>0&&(G.statusText="".concat(U.string.getNumber(t).decimal1," Miles Away"))}else V.get("showUnit",!1)&&B.address&&B.address.unitNumber&&(G.statusText=B.address.unitNumber.string);V.get("statusCssClass",null)&&B.customStatus&&""!==B.customStatus&&(G.statusText=B.customStatus),G.paging=V.get("paging",!0),(V.get("link",!0)||V.get("detailsButton"))&&(G.detailsButton=!0),(G.corner||G.address)&&(G.paging=!1),G.priceAddressGroup=V.get("showPriceAddressGroup",!1),(G.units.total||G.units.listings)&&(G.price=!1,G.address=!1,G.statusBar=!1,G.statusText=!1),V.get("showBuildingUnit",!1)&&B.address&&B.address.unitNumber&&(G.buildingUnit="Unit ".concat(B.address.unitNumber.string),G.gradient=!0),V.set("paging",G.paging)}function a(e){"propertyFavoriteStatus.updated"===(null===e||void 0===e?void 0:e.type)&&h(e.data),E.call("bubble",e)}function s(e){V.update(e),r(),P=V.get("$container"),!1===V.get("lazy")?o():setTimeout(g,100)}function o(){try{if(V.requireDom(),!V.get("propertyAddressItem")&&!V.get("ids"))throw new Error("Requires state.data.propertyAddressItem OR state.data.ids")}catch(e){throw e}if(V.get("propertyAddressItem"))n();else{var e=V.get("ids");X.itemByIds.get({data:{propertyAddressID:e.propertyAddressID||0,propertyID:e.propertyID||0,listingID:e.listingID||0}})}}function n(e){if(e&&e.data&&V.set("propertyAddressItem",e.data),B=V.get("propertyAddressItem")){if(Array.isArray(B)&&B[0]){var t=B.filter(function(e){return e.listing&&(e.listing.isOpenHouse||e.listing.isAgentOpen)});G.openHouses=t.length===B.length,B.length>1&&(G.units.listings=U.string.getNumber(B.length).commas,G.units.total=M.get(B[0],"building.propertyCount.commas"),G.buildingSummary=!0,V.set("paging",!1)),V.set("propertyAddressItem",B[0]),B=B[0]}i(),G.statusBar&&!B.listing?_.getCurrentUser(function(e){var t,r,i;if(null===(t=(e.user||{}).currentDetails)||void 0===t?void 0:null===(r=t.products)||void 0===r?void 0:null===(i=r.pro)||void 0===i?void 0:i.availableForUse)if(B.attributes&&B.attributes.likelihoodToList&&!B.attributes.likelihoodToList.none)if(B.attributes.likelihoodToList.leastLikely)d();else{var a="",s="likely-status";B.attributes.likelihoodToList.mostLikely&&(a="Most ",s="most-likely-status"),a+="Likely To List",d({title:a,customClass:s})}else d();else d()}):d()}}function l(){(B=V.get("propertyAddressItem"))&&V&&V.$dom&&V.$dom.html("").concat(B.address.fullStreetAddress,"").concat(B.address.cityStateZip," "))}function d(e){if(D++,(I=Math.floor(V.$dom.width()))>0){var t=2===G.placardVersion?{}:c(I);X.template.get({$dom:V.$dom,data:{item:B,paging:G.paging,link:V.get("link",!0),corner:G.corner,statusBar:G.statusBar,price:G.price,units:G.units,openHouses:G.openHouses,address:G.address,gradient:G.gradient,statusText:G.statusText,statusCssClass:G.statusCssClass,fonts:t,detailsButton:G.detailsButton,priceAddressGroup:G.priceAddressGroup,openInNewTab:V.get("openInNewTab",!1),puppeteer:!(!Homesnap||!Homesnap.puppeteer),singleFamilyResidence:!(!(B&&B.sPropertyType2&&B.sPropertyType2.raw)||1!==B.sPropertyType2.raw&&2!==B.sPropertyType2.raw&&4!==B.sPropertyType2.raw&&64!==B.sPropertyType2.raw),buildingSummary:G.buildingSummary,buildingUnit:G.buildingUnit,likelihoodStatus:e,secondaryBanner:V.get("secondaryBanner",!1),showFavoriteIcon:V.get("showFavoriteIcon",!1),showAddressAndPrice:V.get("showAddressAndPrice",!1),placardVersion:G.placardVersion,keyStats:y(B,G.placardVersion),siteRootUrl:q?window.Homesnap.siteRootUrl:"https://www.homesnap.com",onMap:V.get("onMap")}}),C=!0}else D<10&&setTimeout(d,100)}function u(r){var i,s,o,n=r.data||{};S=r.$dom;var l={},d=n.item||V.get("propertyAddressItem")||B,u=r.$dom;if(!d)throw void 0!==V&&null!==V&&window.TrackJS&&window.TrackJS.console&&window.TrackJS.console.log({pa:d,state:V}),new Error("PropertyAddressItem controller: No Property address item");if(!u)throw void 0!==V&&null!==V&&window.TrackJS&&window.TrackJS.console.log({state:V}),new Error("PropertyAddressItem controller: No $dom");if(G.buildingSummary&&u.buildingPageLink.on("click mousedown mouseup dblclick",function(){return a({type:"url.unhandled",url:d.building.url,data:d.building}),!1}),n.secondaryBanner&&S.divLikelihoodStatusBar.length){var c=S.divLikelihoodStatusBar.find("div").find("div");c.html(n.secondaryBanner.text).css("--banner-bg-color",n.secondaryBanner.color).addClass("secondary-banner-bar"),2===n.placardVersion&&c.attr("title",n.secondaryBanner.text),n.secondaryBanner.textColor&&c.css("--banner-text-color",n.secondaryBanner.textColor)}if(V.get("link",!0)&&d&&d.url){var g=V.get("href",null),m=g||d.url;u.aFrame.on("click",function(e){return!V.get("openInNewTab",!1)&&(a({type:"url.unhandled",url:m,data:g?null:B}),E.exists("click")&&E.call("click"),!1)}).attr("href",m)}if(d&&d.primaryImage&&!n.buildingSummary){var h=V.$dom.width(),y=d.primaryImage.mini;h>150&&(y=d.primaryImage.listing),h>384&&(y=d.primaryImage.large),Homesnap&&Homesnap.puppeteer?(u.liPrimary.css({"background-image":"url(".concat(y,")")}),u.imgFinal.attr("HSPuppeteer-src",y)):(u.liPrimary.css({"background-image":"url(".concat(y,")")}),u.imgFinal.attr("src",y))}else if(null!==(i=d.building)&&void 0!==i&&i.imageUrl||d.skyView){var w=u.liPrimary[0],b="";if(!w)return!1;d.skyView?(b=d.skyView.imageUrl,w.style.setProperty("background-position","center center")):d.building.imageUrl&&(b=d.building.imageUrl.replace("/{size}/","/115/")),w.style.setProperty("background-size","cover"),w.style.setProperty("background-image","url(".concat(b,")"),"important")}else Homesnap&&!Homesnap.puppeteer&&e(["modules/StaticMap"],function(e){return!!e&&(e.get({$dom:u.liPrimary,type:d.status&&d.status.suppressGoogleStreetView?"satellite":"street",lat:d.latitude,lng:d.longitude,address:d.building?d.address:null}),!1)});if(n.paging||G.buildingSummary){I=Math.floor(u.aFrame.width()),u.ul.children("li").width(I),d&&d.secondaryImages&&(k=d.secondaryImages.length),void 0===L?L=new window.Sly(u.slyContainer,{horizontal:1,itemNav:"basic",smart:1,mouseDragging:1,touchDragging:1,releaseSwing:1,swingSpeed:.1,scrollTrap:!0,speed:300,prevPage:u.iPrevious,nextPage:u.iNext,disabledClass:"slyDisabled",activeClass:"active",pagesBar:u.ulSliderPager,pageBuilder:function(e){return''.concat(e+1," ")}},{load:function(e){u.ulSliderPager.find("li").length>1?u.ulSliderPager.removeClass("hidden"):u.ulSliderPager.addClass("hidden")},move:function(e){var t,i;i=t=this.pos.cur=this.pos.end-I?this.pos.end-I-this.pos.cur:0,u.divOverlay.css("content").toLowerCase().indexOf("scroll")>-1&&2!==n.placardVersion&&(u.divOverlay.css("transform","translateX("+t+"px)"),r.data&&r.data.statusBar&&(u.divStatusBar.length>0&&u.divStatusBar.css("transform","translateX( ".concat(i,"px)")),u.divSecondaryStatusBar.length>0&&u.divSecondaryStatusBar.css("transform","translateX( ".concat(i,"px)")),u.divLikelihoodStatusBar.length>0&&u.divLikelihoodStatusBar.css("transform","translateX( ".concat(i,"px)"))));var a=Math.floor(this.pos.cur/I);a>x&&p(a,u),u.ulSliderPager.find(".active").prev().removeClass("dot_small_2").addClass("dot_small_1"),u.ulSliderPager.find(".active").prev().prev().removeClass("dot_small_1").addClass("dot_small_2"),u.ulSliderPager.find(".active").prev().prev().prevAll().removeClass("dot_small_2 dot_small_1"),u.ulSliderPager.find(".active").removeClass("dot_small_2 dot_small_1")},moveEnd:function(e){u.ulSliderPager.find(".active").nextAll().removeClass("dot_small_2").removeClass("dot_small_1")}}).init():"function"==typeof L.reload&&L.reload(),l=_.getBrowser();var C,P;V.get("noHoverEffect",!1)||u.aFrame.mouseenter(function(){C||R()}).mouseleave(function(){R.cancel()}),l.mouseover&&u.aFrame.mouseover(function(e){return P=!0,C||L.set("keyboardNavBy","pages"),!1}).mouseout(function(e){return P=!1,C||L.set("keyboardNavBy",0),!1}).mousedown(function(e){C=!0,H(document).on("mouseup.".concat(t),function(e){H(document).off("mouseup.".concat(t)),C=!1})}),u.iPrevious.add(u.iNext).on("click mousedown mouseup dblclick",function(e){return!1})}if(!l.iOS&&!l.android&&n.paging&&!V.get("onMap")){var A;V.$dom.on("touchstart",function(e){A={x:e.originalEvent.changedTouches[0].pageX,y:e.originalEvent.changedTouches[0].pageY},V.$dom.on("touchmove.".concat(t),function(e){var t={x:e.originalEvent.changedTouches[0].pageX,y:e.originalEvent.changedTouches[0].pageY};Math.abs(A.x-t.x)>Math.abs(A.y-t.y)&&e.preventDefault()}),V.$dom.on("touchend.".concat(t),function(e){V.$dom.off("touchmove.".concat(t)),V.$dom.off("touchend.".concat(t))})})}if(r.data&&r.data.statusBar&&(u.divSecondaryStatusBar.length>0||u.divLikelihoodStatusBar.length>0)){var T=u.divStatusBar.width(),D=0,F=0,$=u.divStatusBar.length>0?1:0;u.divSecondaryStatusBar.length>0&&(D=u.divSecondaryStatusBar.width(),$+=1),u.divLikelihoodStatusBar.length>0&&(F=u.divLikelihoodStatusBar.width(),$+=1);var z=Math.max(T,D,F);u.divStatusBar.css("width",z).attr("data-status-bar-count",$),D&&u.divSecondaryStatusBar.css("width",z).attr("data-status-bar-count",$),F&&u.divLikelihoodStatusBar.css("width",z).attr("data-status-bar-count",$),T=A.bottom+j,n=t.left>=A.right+j;i||a||s||n?D||l():o()}else l()}function m(){var e;null!==(e=B)&&void 0!==e&&e.id&&a({type:"listing.hover.show",data:{pa:B}})}function v(e,t){O.add("propertyFavorite",new $.ChildController({type:"controllers/Property/PropertyFavorite",namespace:N.get(),register:{bubble:a}}),!0),V.updateController("propertyFavorite",{$dom:e.spanFavorite,data:{propertyAddressItem:t.item,showText:!1}})}function h(e){var t,r,i,a=(null===(t=B)||void 0===t?void 0:null===(r=t.listing)||void 0===r?void 0:r.id)===(null===e||void 0===e?void 0:null===(i=e.ids)||void 0===i?void 0:i.listingID),s=B&&!B.listing&&(null===e||void 0===e?void 0:e.ids)&&!e.ids.listingID&&B.propertyID===e.ids.propertyID,o=B&&!B.listing&&(null===e||void 0===e?void 0:e.ids)&&!e.ids.listingID&&!B.propertyID&&!e.ids.propertyID&&B.id===e.ids.propertyAddressID;(a||s||o)&&(!0===(null===e||void 0===e?void 0:e.favoriteStatus)?(B.status.raw|=1,B.status.isFavorited=!0):!1===(null===e||void 0===e?void 0:e.favoriteStatus)&&(B.status.raw&=-2,B.status.isFavorited=!1),V.get("propertyAddressItem")&&V.set("propertyAddressItem",B),S&&v(S,{item:B}))}function y(e,t){var r=[];return e?(e.beds&&r.push({label:e.beds.label,value:e.beds.string}),e.baths&&r.push({label:e.baths.label,value:e.baths.string}),e.sqFt&&r.push({label:"Sq Ft",value:e.sqFt.string}),e.lotSize&&r.push({label:e.lotSize.label,value:e.lotSize.string}),e.yearBuilt&&r.push({label:"Year Built",value:e.yearBuilt}),r.slice(0,2===t?3:2)):r}function f(t,r){e(["modules/MLSIDXInfo"],function(e){e.getMLSInfo(t,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.idxBits||{};if(t.showIdxLogo&&r.divIDXLogo.length){var i=H(' ').attr("src",e.brand.image.url.default).attr("alt",e.longName).attr("loading","lazy");i.addClass("bs4--img-fluid bs4--h-auto"),i.css({"aspect-ratio":e.brand.image.aspectRatio,"max-height":"40px",width:"auto","max-width":"75px"}),r.divIDXLogo.html(i).removeClass("bs4--d-none").addClass(" bs4--position-absolute").css({bottom:"18px",right:"14px"})}t.showByTenX&&a({type:"reflect",name:"headerBrand.showByTenX"})})})}function w(){if(S&&V.get("paging",!1)&&V.$dom.width()){if(Math.floor(S.aFrame.width())!==I&&(I=Math.floor(S.aFrame.width()),S.ul.children("li").width(I),"object"==typeof L&&"function"==typeof L.reload)){var e=L.rel.centerItem;L.reload(),L.toCenter(e,!0)}}}function b(e,t){switch(e){case"$container.scroll":P||(P=t.$container),g(null,null,!0);break;case"window.newSize":case"window.resize":J(),g(t.$window,t.fold);break;case"modal.scroll":g(t.$window,t.fold,!0);break;case"window.scroll":g(t.$window,t.fold);break;case"dropdown.opened":g();break;case"propertyFavoriteStatus.updated":h(t)}O.event(e,t)}var S,B,I,k,x,C,P,A,T,D,F,L,$=e("ControllerObjects"),z=e("Objects"),U=e("Utilities"),_=e("Application"),H=(e("sly"),e("jquery")),M=e("lodash"),N=new $.Unique(t),E=new $.Callbacks,O=new $.ChildControllerManager,V=new $.StateManager(O,{}),X={template:new $.Getter({namespace:N.get(),success:function(e){try{u(e)}catch(e){throw void 0!==V&&null!==V&&console.info(V),e}},failure:function(){try{throw new Error("PropertyAddressItem controller: Unhandled Error")}catch(e){throw void 0!==V&&null!==V&&console.info(V),e}},template:{url:"controllers/Property/PropertyAddressItem.html",dom:["aFrame","slyContainer","ul","liPrimary",["liSecondary"],"divStatusBar","divSecondaryStatusBar","divOverlay","imgFinal","iPrevious","iNext","ulSliderPager","divLikelihoodStatusBar","buildingPageLink","spanFavorite","divIDXLogo"]}}),itemByIds:new $.Getter({namespace:N.get(),type:z.HSPropertyAddressItem,webService:"/service/PropertyAddresses/GetByIDs",success:function(e){try{n(e)}catch(e){throw void 0!==V&&null!==V&&console.info(V),e}},failure:function(){try{throw new Error("PropertyAddressItem controller: GetByIDs. Unhandled Webservice Error")}catch(e){throw void 0!==V&&null!==V&&console.info(V),e}}})},G={},q=U.coStarBrand.is("citysnap"),j=300,R=M.debounce(function(){m()},450),J=M.debounce(w,200,{maxWait:400});return{update:s,restore:function(e){V.restore(e,o)},uninit:function(){J.cancel(),O.uninit()},getState:V.getState.bind(V),register:E.register.bind(E),event:b}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyAddressItem.js.map?hash=3949c6b111c049742c349972360922e9define("controllers/Variable",["require","ControllerObjects"],function(e){return function(n){function t(e,n){if((n||l&&l.name!=e)&&(l.uninit(),l=null),!l){var t={};c.hashTable.each(function(e,n){for(var r=0;r0&&F.length<1?(a({type:"url.unhandled",url:"/search",data:{type_:"HSSearchQuery",searchText:e}}),!1):z.get("multiArea",!1)?(a({type:"multiArea.submit"}),!1):(z.$dom.input.parent(".form-group").addClass("has-error"),!1)})}function o(){z.$dom.container.addClass("open")}function i(){z.$dom.container.removeClass("open")}function c(){i(),z.$dom.input.val("")}function l(e){var t=z.$dom.input.val().toLowerCase();t&&t.length&&t.length>0?q&&t===q&&!0!==e?o():!0===e?(w&&clearTimeout(w),d(t,e)):q&&t===q||(q=t,w&&clearTimeout(w),w=setTimeout(function(){d(t)},200)):(q="",s())}function u(e){var t=j.get(10);J.done(function(){if(Y){var t=Object.keys(Y).some(function(e){return Y[e].hasListingCarts}),a=Object.keys(Y).some(function(e){return Y[e].hasSavedSearches}),n=[];(t||a)&&(a&&n.push({type_:"SavedSearches"}),t&&n.push({type_:"ListingCarts"}),e.unshift({header:"MLS",items:n,divider:!0}))}}),!z.get("multiArea",!1)&&(t&&t.length>0||e&&e.length>0)?(t.length&&e.push({header:"Recent Searches",items:t}),z.get("commuteTimeBanner",!1)&&e.unshift({items:[{type_:"CommuteTimeBanner"}]}),N.template.get({$dom:z.$dom.ul,data:e})):i()}function s(){var e=[];K&&e.push({items:[{latitude:null,longitude:null,type_:"HSIPLocation"}],divider:!0}),N.savedSearchesList.get({data:{skip:0,take:6},success:function(t){t.data&&t.data.length>0&&(6===t.data.length?(_=!0,t.data.pop()):_=!1,e.push({header:"Saved Searches",items:t.data,divider:!0})),u(e)}})}function d(e,t){if(I.handlebars.getPartialHTML("hsLoadingGraphic",function(e){z.$dom.ul.html(''.concat(e,"
"))}),z.$dom&&z.$dom.ul){var a;M&&(a={headers:{HSLocation:"lat=".concat(M.latitude.toString(),"&lng=").concat(M.longitude.toString())}}),z.get("multiArea",!1)?N.autocomplete.get({data:{text:e,polygonType:1,skip:0,take:8,submit:!0===t,geographyFilters:F,latitude:B,longitude:H},webServiceOptions:a,pass:e}):N.data.get({data:{text:e,polygonType:1,skip:0,take:8,submit:!0===t},webServiceOptions:a,pass:e})}}function p(e){var t=[];return e.length&&e.forEach(function(e){if(!h(e.item)){var a,n=null!==(a=e.item)&&void 0!==a?a:e;e.status&&(n.autocompleteStatus=e.status),t.push(n)}}),t}function h(e){return F.filter(function(t){return"object"==typeof e&&(t.Id===e.entityID||t.Id===e.id)}).length>0}function m(e){if(e&&e.pass&&e.pass===q){var t=[],a=e.data,n=F.length>0;if(K&&t.push({items:[{latitude:null,longitude:null,type_:"HSIPLocation"}],divider:!0,multiAreaReset:n}),a)if(a.recent&&a.recent.length)t.push({header:"Recent Searches",items:a.recent,multiAreaReset:n});else{if(a.savedSearches&&a.savedSearches.length&&t.push({header:"Saved Searches",items:p(a.savedSearches),multiAreaReset:n}),a[0]&&a[0].type_&&"HSSavedSearch"===a[0].type_&&t.push({header:"Saved Searches",items:a.savedSearches,multiAreaReset:n}),a.areas&&a.areas.length&&F.length<5&&t.push({header:"Places",items:p(a.areas)}),a.streetAreas&&a.streetAreas.length&&F.length<5&&t.push({header:"Streets",items:p(a.streetAreas)}),a.properties&&a.properties.length){var r=[],o=[];a.properties.forEach(function(e){var t;e.building||null!==e&&void 0!==e&&null!==(t=e.item)&&void 0!==t&&t.building?o.push(e):r.push(e)}),r.length&&t.push({header:"Homes",items:p(r),multiAreaReset:n}),o.length&&t.push({header:"Buildings",items:p(o),multiAreaReset:n})}a.schools&&a.schools.length&&F.length<5&&t.push({header:"Schools",items:p(a.schools)})}z.get("commuteTimeBanner",!1)&&t.unshift({items:[{type_:"CommuteTimeBanner"}]}),F.length>=1&&t.unshift({items:[{name:"".concat(F.length>=5?"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_\(?(\d{2}),\d+(\)\(\d{2},\d+)*/i,r=e.match(n);return"26"!==(null===r||void 0===r?void 0:r[1])||r[2]?e.indexOf("/cp_")>-1?a.polygonType=2:e.indexOf("/ct_")>-1?a.polygonType=1:"21"!==(null===r||void 0===r?void 0:r[1])||r[2]||(a.polygonType=4):a.polygonType=3,e.indexOf("hm_")>-1&&(a.heatmapOption=e.match(/.*\/hm_(\w*)_\d*\/.*/i)[1],a.searchMode=4),"function"!=typeof t?a:(t(a),!1)}function y(e){return!z.get("multiArea",!1)&&(D.getDeviceSize(function(t){var n=e.heatmapOption?R.getHeatMapEnum(e.heatmapOption):null;a({type:"trackUserEvent",data:{webServiceName:"analytics",serviceMethod:"TrackEvent",data:{eventType:"PropertiesAndAreasSearched",data:{utm:{medium:"web-".concat(t)},searchType:e.searchType,polygonType:e.polygonType,searchMode:e.searchMode||1,heatmapOption:n,autocompleteSourceType:e.autocompleteSourceType}}}})}),!1)}function b(){G.add("listingCarts",new O.ChildController({type:"controllers/MLS/Integrations/ListingCarts",namespace:U.get(),register:{bubble:a}}),!0),z.updateController("listingCarts",{data:{accounts:Y}})}function T(){G.add("savedSearches",new O.ChildController({type:"controllers/MLS/Integrations/SavedSearches",namespace:U.get(),register:{bubble:a}})),z.updateController("savedSearches",{data:{accounts:Y}})}function k(){G.uninit()}function A(e,t){var a;switch(e){case"location.new":t.lat&&t.lng&&(M={latitude:t.lat,longitude:t.lng,type_:"HSIPLocation"});break;case"commuteTimeBanner.status":z.set("commuteTimeBanner",t);break;case"geographies.update":if(Array.isArray(null===(a=t.data)||void 0===a?void 0:a.id)){var n={21:1,26:2,51:3},r=[],o=t.data,i=o.id,c=o.longitude,l=o.latitude;i.forEach(function(e){var t;null!==e&&void 0!==e&&null!==(t=e[2])&&void 0!==t&&t.hasNoPolygon&&(Q=!0),r.push({Type:n[e[0]],Id:e[1]})}),F=r,B=l&&c?l:null,H=l&&c?c:null}return!1}return G.event(e,t),!1}var C,w,M,L,_,B,H,O=e("ControllerObjects"),x=e("Objects"),D=e("Application"),I=e("Utilities"),R=e("SearchDefinitions"),j=e("modules/SearchRecentSearches"),P=e("modules/MLSAccounts"),U=new O.Unique(t),E=new O.Callbacks,G=new O.ChildControllerManager,z=new O.StateManager(G),N={data:new O.Getter({namespace:U.get(),type:x.HSSearchResult,webService:"/service/Misc/Search",failure:function(){"object"==typeof z&&console.info(z)},cache:{expire:2},success:m}),autocomplete:new O.Getter({namespace:U.get(),type:x.HSAutocompleteResult,webService:"/service/Misc/Autocomplete",failure:function(){"object"==typeof z&&console.info(z)},cache:{expire:2},success:m}),savedSearchesList:new O.Getter({namespace:U.get(),type:[x.HSSavedSearch],webService:"/service/SavedSearches/List",failure:function(){"object"==typeof z&&console.info(z)},cache:{expire:2}}),template:new O.Getter({namespace:U.get(),success:function(e){try{v(e)}catch(e){"object"==typeof z&&console.info(z)}},template:{url:"controllers/SearchDropdown.html",dom:["liMoreSavedSearches","liListingService"]}})},q="",F=[],Q=!1;D.getLocation(function(e){e&&(M=e)});var Y={},J=function(){var e=$.Deferred();return P.getAccounts(function(t){Y=t,e.resolve()}),e}(),K=!(null===(C=navigator)||void 0===C||!C.geolocation);return{update:n,restore:function(e){z.restore(e,r)},uninit:k,getState:z.getState.bind(z),register:E.register.bind(E),event:A}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/SearchDropdown.js.map?hash=b00d37ee48933dfc2d1b62851b1f3d6edefine("modules/ErrorLogging",["require"],function(n){function e(n){var e=[n.userID?n.userID.toString():"",n.entityID?n.entityID.toString():"",n.entityType?n.entityType.toString():""],r={userId:e.join(" | ")};"undefined"!=typeof TrackJS?TrackJS.configure(r):(window.TrackJS&&(r.token=window.TrackJS.token),window.TrackJS=r)}return{errorLogConfig:e}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/modules/ErrorLogging.js.map?hash=126a653e58b4dd7877bf5939344a6c4cdefine("modules/SearchRecentSearches",["require","Objects","Utilities"],function(e){function t(){return c||(c=r()||[]),c}function r(){return d.get(!0,n,525600)}function i(){var e=t();d.set(!0,n,e)}function a(e){var r=t();if("object"==typeof e&&e.type_){for(var a,s=0;so&&(r.length=o),i(),!0}}return!1}function s(e){return t().slice(0,e)}var c,S=e("Objects"),n=(e("Utilities"),"Searches"),o=25,d=new S.LocalStorage("SearchRecentSearches");return{save:a,get:s}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/modules/SearchRecentSearches.js.map?hash=d94413680150e9c1019ebc5348325f67function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};f.getIDXBrand(function(t){if(!t){var a;null!==(a=e.idxBits)&&void 0!==a&&a.showByTenX&&(P.idxDisclaimer.removeClass("bs4--d-none"),r({type:"reflect",name:"headerBrand.showByTenX"}))}})})}),e(["ga"],function(e){if("function"!=typeof e)return!1;if(D.get("listingID")||D.get("propertyID")){var t=H.beds?H.beds.raw:null,r=H.sPropertyType2?H.sPropertyType2.string:null,a=H.price?H.price.raw:null;if(a){var i=a/5e4,o=Math.round(i);a=o>0?5e4*o:a}D.get("listingID")&&e("set","dimension4",D.get("listingID")),e("set","dimension1",t),e("set","dimension2",r),e("set","dimension3",a),e("send","pageview"),e("set",{dimension1:null,dimension2:null,dimension3:null,dimension4:null})}}),t.data.badges&&P.divBadges&&D.updateController("badges",{$dom:P.divBadges,data:{badges:t.data.badges,classes:"pr-20 pl-20"}}),(t.data.actionBar&&P.divActionBar||D.$dom.actionBar)&&(S=D.$dom&&D.$dom.actionBar?D.$dom.actionBar:P.divActionBar,T=!0),S&&(w.add("actionBar",new v.ChildController({type:"controllers/ActionBar",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("actionBar",{$dom:S,data:{propertyAddressItem:H,showShare:!0,showFavorite:!0,showContactAgent:!0,showContact:!0,showSendInAMessage:!0,showInverseColors:T}})),D.updateController("searchBreadCrumbs",{$dom:P.divBreadCrumbs,data:{propertyAddressItem:H,searchDefinition:D.get("searchDefinition")}}),H.listing&&H.transactionType&&H.transactionType.forSale&&H.price&&(w.add("payment",new v.ChildController({type:"controllers/MortgagePayment",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("payment",{$dom:P.spanEstMortgage,data:{price:t.data.propertyAddressItem.price.raw,propertyAddressItem:t.data.propertyAddressItem}})),D.updateController("header",{$dom:t.$dom.divHeader,data:{propertyAddressItem:H,listingID:D.get("listingID")}});var C=0,A=(null===(a=H)||void 0===a?void 0:a.address)&&!H.address.unitNumber;if((null===(i=H)||void 0===i?void 0:null===(o=i.unitCount)||void 0===o?void 0:o.raw)>1&&A&&C++,null!==(s=H)&&void 0!==s&&s.beds&&C++,null!==(n=H)&&void 0!==n&&n.baths&&C++,null!==(d=H)&&void 0!==d&&d.lotSize&&A&&C++,null!==(p=H)&&void 0!==p&&p.sqFt&&C++,null!==(c=H)&&void 0!==c&&c.yearBuilt&&C++,0===C)P.divKeyStats.addClass("hidden");else{var B=P.divKeyStats.width(),M=B/C;P.divKeyStats.find("span").each(function(){$(this).css("max-width",M)})}var k=D.$dom&&D.$dom.content?D.$dom.content:D.$dom;D.updateController("propertyCommuteTimes",{$dom:P.divPropertyCommuteTimes,data:{propertyAddressItem:H}}),t.data.searchMatches&&(w.add("buildingSearchMatches",new v.ChildController({type:"controllers/Property/SearchMatches",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("buildingSearchMatches",{$dom:P.buildingSearchMatches,data:t.data}));var L=D.get("searchDefinition"),O=y(D.get("qs",{}));if(D.get("listingID")>0)j.getListingDetails.get({$dom:k,data:{listingID:D.get("listingID"),parts:506,schoolsPolygonType:1,impersonateAs:D.get("preview",!1)?4:void 0,promo:O},pass:{propertyStatus:H&&H.propertyStatus?H.propertyStatus:void 0}});else if(D.get("propertyID")>0){var _;j.getPropertyDetails.get({$dom:k,data:{propertyID:D.get("propertyID"),parts:26,transactionType:L&&2==(null===(_=L.transactionType)||void 0===_?void 0:_.value)?L.transactionType.value:1,promo:O}})}else if(D.get("propertyAddressID")>0){var U;j.getPropertyAddressDetails.get({$dom:k,data:{propertyAddressID:D.get("propertyAddressID"),parts:26,transactionType:L&&2==(null===(U=L.transactionType)||void 0===U?void 0:U.value)?L.transactionType.value:1,promo:O}})}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;"function"==typeof gtag&&(r?gtag("set",{listingID:"".concat(r)}):gtag("set",{listingID:void 0}),gtag("event","Listing viewed",{event_category:e,event_label:t,send_to:Homesnap.citySnapGTagID}))}function p(e){var t,r=D.get("currentHeatMap"),a=h.propertyAddress.getStatusBadges(H);r&&"function"==typeof r.getBannerColorAndLabel&&(t=r.getBannerColorAndLabel.call(r,H))&&t.textColor&&(t.style="color: ".concat(t.textColor)),t?a.push(t):e&&a.push(e),j.main.get({$dom:D.$dom&&D.$dom.content?D.$dom.content:D.$dom,data:{propertyAddressItem:H,badges:a,actionBar:D.get("actionBar")||!1,searchMatches:D.get("searchMatches"),appMode:O,isCitysnap:h.coStarBrand.is("citysnap")}})}function c(t,a){var i,o,s,n,d,l,p,c,m,g,b,C,f,S,T,B,$,M=null!==(i=t.data)&&void 0!==i?i:{};null!==(o=M.defaultParentArea)&&void 0!==o&&o.cityModeID&&e(["modules/AppMode"],function(e){if(void 0!==e){var t;e().parse(null===(t=M.defaultParentArea)||void 0===t?void 0:t.cityModeID,!1,a)}});var L={propertyAddressItem:H,detailsData:M,image:H.primaryImage?H.primaryImage.large:null,url:H.url,description:M.remarks?M.remarks:null!==(s=M.metaDescription)&&void 0!==s?s:"",name:"".concat(H.address.fullStreetAddress,", ").concat(H.address.cityStateZip),address:H.address,propertyType:M.propertyType?M.propertyType:null,productId:H.id,sqFt:H.sqFt,latitude:H.latitude,longitude:H.longitude,price:M.currentPrice?M.currentPrice.raw:null!==(n=null===(d=H.price)||void 0===d?void 0:d.raw)&&void 0!==n?n:null,secondaryImages:H.secondaryImages&&H.secondaryImages.length>2?H.secondaryImages.slice(0,2):H.secondaryImages,transactionType:H.transactionType,openHouse:M.openHouses?M.openHouses:null,singleFamilyResidence:M.sPropertyType2&&M.sPropertyType2.raw&&(1===M.sPropertyType2.raw||2===M.sPropertyType2.raw||4===M.sPropertyType2.raw||64===M.sPropertyType2.raw)};D.updateController("schema",{$dom:P.divSchema,data:{schemaData:L}}),w.get("actionBar").event("listingDetails.loaded",M);var O=M&&M.price?M.price:null;if(H.price&&O&&O.raw!==H.price.raw&&P.divPriceContainer.text(O.dollars),w.add("propertySidebar",new v.ChildController({type:"controllers/Property/PropertySidebar",namespace:I.get(),register:{bubble:r}})),H){var _=D.get("qs",{});D.updateController("propertySidebar",{$dom:P.divSideBar,data:{details:M,propertyAddressItem:H,sticky:["md","lg"],ref:D.get("ref"),preview:D.get("preview",!1),mlsFeedbackParams:D.get("mlsFeedbackParams")?D.get("mlsFeedbackParams"):x.get("MLSFeedbackParams"),mobileActionsContainer:P.divMobileActionsContainer,mobileConversationsContainer:P.divMobileConversations,mobileAgentsContainer:P.divMobileAgents,entityID:M.id,qs:_,promo:y(_)}})}!H.listing&&H.propertyID&&D.updateController("likelihoodToList",{$dom:P.divLikelihoodToList,data:{propertyAddressItem:H}}),H&&H.propertyID&&D.updateController("ownershipSnapshot",{$dom:P.divOwnershipSnapshot,data:{isListing:H.listing,propertyID:H.propertyID,attributes:H.attributes}});var E={};if(M&&"HSPropertyAddressDetail"===M.type_?E.propertyAddress=M:M&&"HSPropertyAddressItem"===M.type_?E.property=M:E.listing=M,H.building&&(E.building=H.building),M&&M.listingID&&(w.add("listingRemarks",new v.ChildController({type:"controllers/Property/ListingRemarks",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("listingRemarks",{$dom:P.divListingRemarks,data:E})),null!==(l=k)&&void 0!==l&&null!==(p=l.status)&&void 0!==p&&p.isAdmin&&(w.add("propertyAdminPanel",new v.ChildController({type:"controllers/Property/PropertyAdminPanel",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("propertyAdminPanel",{$dom:P.divPropertyAdminPanel,data:E})),w.add("propertySummary",new v.ChildController({type:"controllers/Property/PropertySummary",namespace:I.get(),register:{bubble:r}})),D.updateController("propertySummary",{$dom:P.divPropertySummary,data:_objectSpread(_objectSpread({},E),{},{propertyAddressItem:H})}),E&&(E.listing&&(null!==(c=E.listing.buildingAmenities)&&void 0!==c&&c.length||null!==(m=E.listing.amenities)&&void 0!==m&&m.length)||E.propertyAddress&&(null!==(g=E.propertyAddress.amenities)&&void 0!==g&&g.length||null!==(b=E.propertyAddress.buildingAmenities)&&void 0!==b&&b.length)||E.property&&(null!==(C=E.property.amenities)&&void 0!==C&&C.length||null!==(f=E.property.buildingAmenities)&&void 0!==f&&f.length))&&(P.divPropertyAmenities.removeClass("bs4--d-none"),w.add("propertyAmenities",new v.ChildController({type:"controllers/Property/PropertyAmenities",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("propertyAmenities",{$dom:P.divPropertyAmenities,data:E})),M.defaultParentAreaID&&(null!==(S=M.defaultParentArea)&&void 0!==S&&null!==(T=S.areaTypeFlag)&&void 0!==T&&T.neighborhoods||null!==(B=M.defaultParentArea)&&void 0!==B&&null!==($=B.areaTypeFlag)&&void 0!==$&&$.zips)&&(P.divExploreNeighborhoodContainer.removeClass("bs4--d-none"),P.aExploreNeighborhood.attr("href","/area".concat(M.defaultParentArea.url,"/").concat(M.defaultParentAreaID)).on("click",function(e){var t=Object.assign({},M.defaultParentArea,{showAreaPage:!0});return r({type:"url.unhandled",url:e.currentTarget.getAttribute("href"),data:t}),!1})),P.divThrobber.remove(),P.listingMediaCardsContainer.removeClass("hidden"),"HSListingDetail"===M.type_&&(w.add("listingHistoryCapsule",new v.ChildController({type:"controllers/ListingHistoryCapsule",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("listingHistoryCapsule",{$dom:P.divListingHistoryCapsule,data:{propertyAddressItem:H,listing:M}})),M&&M.openHouses&&M.openHouses.length>0){var F,G;j.getOpenHouse=new v.Getter({namespace:I.get(),template:{name:"controllers/Property/PropertyAddressMaster_OpenHouse",html:' \t
Open House \t
\t{{#each this}} \t
" "1"}} bs4--col-sm-6{{/compare}} bs4--col-12">
\t{{/each}} \t
',dom:[["divOpenHouse"]]}}),j.getOpenHouse.get({$dom:P.divOpenHouses,data:M.openHouses,success:function(e){w.add("openHouse",new v.ChildControllerArray({type:"controllers/ListingOpenHouse",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("openHouse",{$dom:e.$dom.divOpenHouse,data:e.data.map(function(e){return{openHouse:e,propertyAddressItem:H}})})}}),M&&null!==(F=M.openHouses[0])&&void 0!==F&&null!==(G=F.method)&&void 0!==G&&G.virtual&&w.event("media.available",{mediaType:"openHouseLink",linkURL:M.openHouses[0].virtualURL,posterImageURL:H.primaryImage?H.primaryImage.large:null})}if(w.add("history",new v.ChildController({type:"controllers/Property/PropertyHistory",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("history",{$dom:P.divHistory,data:{propertyAddressItem:H,history:M.history,propertyStatus:H&&H.propertyStatus?H.propertyStatus:null}}),M.propertyCount&&M.propertyCount.raw>0){w.add("propertyUnits",new v.ChildController({type:"controllers/Property/PropertyUnits",namespace:I.get(),register:{bubble:r}}));var q=M.supportsPublicRecordDocuments;D.updateController("propertyUnits",{$dom:P.divUnits,data:{propertyAddressID:M.id,supportsACRIS:q}}),r({type:"trackUserEvent",data:{webServiceName:"propertyAddresses",userEventType:1,associatedEntityType:5,associatedEntityID:M.id}})}if(M&&(M.valuePercentChange||M.rentPercentChange||M.rent&&M.rentLow&&M.rentHigh||M.value&&M.valueLow&&M.valueHigh)?(w.add("analysis",new v.ChildController({type:"controllers/Property/PropertyAnalysis",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("analysis",{$dom:P.divAnalysis,data:{propertyDetails:M}})):P.divAnalysis.remove(),D.updateController("collapses",{$dom:P.divCollapses,data:{propertyDetails:M,propertyAddressItem:H,accordionOpen:!(D.$dom&&D.$dom.content)}}),M&&M.listingID){var R=M;w.add("listingDisclaimer",new v.ChildController({type:"controllers/ListingDisclaimer",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("listingDisclaimer",{$dom:P.divListingDisclaimer,data:{mlsID:R.mlsID,sourceNumber:R.sourceNumber,listingID:R.listingID,modificationTimestamp:R.modificationTimestamp}})}M&&M.schools.length>0&&(w.add("schoolDisclaimer",new v.ChildController({type:"controllers/SchoolDisclaimer",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("schoolDisclaimer",{$dom:P.divSchoolDisclaimer})),D.updateController("nearByAreas",{$dom:P.divNearByAreas,data:{propertyAddressID:D.get("propertyAddressID"),propertyID:D.get("propertyID"),listingID:M.listingID?M.listingID:null,propertyAddressItem:M,searchDefinition:D.get("searchDefinition")}}),P.btnSuggestEdit.length&&H.propertyID&&P.btnSuggestEdit.on("click",function(e){return u(H.propertyID),!1}),H.url&&(D.url=new v.ControllerStateUrl(H.url,h.propertyAddress.getPageTitle(H),M.metaDescription)),U&&(U=!1,A.call("bubble",{type:"url.handled",data:H})),A.call("bubble",{type:"url.update"})}function u(e){w.add("userSuggestedEdit",new v.ChildController({type:"controllers/UserSuggestedEdit",namespace:I.get(),register:{bubble:r}}),!0),D.updateController("userSuggestedEdit",{data:{entityID:e,entityType:3}})}function y(e){return{promoCampaign:(null===e||void 0===e?void 0:e.utm_campaign)||null,promoSource:(null===e||void 0===e?void 0:e.utm_source)||null,promoMedium:"web-".concat(L),promoTerm:(null===e||void 0===e?void 0:e.utm_term)||null,promoContent:(null===e||void 0===e?void 0:e.utm_content)||null,promoDate:(null===e||void 0===e?void 0:e.date)||null}}function m(){w.uninit()}function g(e,t){switch(e){case"window.newSize":A.call("window.resize",t),L=t.size.new}w.event(e,t)}var v=e("ControllerObjects"),b=e("Objects"),h=e("Utilities"),C=e("controllers/Variable"),f=e("Application"),I=new v.Unique(t),A=new v.Callbacks,w=new v.ChildControllerManager,D=new v.StateManager(w,{propertyAddressItem:[["listingID","listing.id"],["propertyID","propertyID"],["propertyAddressID","id"]],listingID:!0,propertyID:!0,propertyAddressID:!0,actionBar:!0});w.add("mediaMaster",new v.ChildController({type:"controllers/MediaCenter/MediaMaster",namespace:I.get(),register:{bubble:r}})),w.add("schema",new v.ChildController({type:"controllers/Property/PropertyAddressSchema",namespace:I.get(),register:{bubble:r}})),w.add("searchBreadCrumbs",new v.ChildController({type:"controllers/SearchBreadcrumbs",namespace:I.get(),register:{bubble:r}})),w.add("header",new v.ChildController({type:"controllers/Property/PropertyAddressHeader",namespace:I.get(),register:{bubble:r,skyCamAvailable:function(e){w.event("media.available",{mediaType:"skyCam",linkURL:e.url,posterImageURL:e.posterImage})}}})),w.add("badges",new v.ChildController({type:"controllers/Badges",namespace:I.get(),register:{bubble:r}})),w.add("details",new v.ChildController({type:C,namespace:I.get(),register:{bubble:r}})),w.add("propertyCommuteTimes",new v.ChildController({type:"controllers/PropertyCommuteTimes",namespace:I.get(),register:{bubble:r}})),w.add("nearByAreas",new v.ChildController({type:"controllers/Property/NearByAreas",namespace:I.get(),register:{bubble:r}})),w.add("collapses",new v.ChildController({type:"controllers/Property/PropertyCollapses",namespace:I.get(),register:{bubble:r}})),w.add("likelihoodToList",new v.ChildController({type:"controllers/Property/LikelihoodToList",namespace:I.get(),register:{bubble:r}})),w.add("ownershipSnapshot",new v.ChildController({type:"controllers/Property/OwnershipSnapshot",namespace:I.get(),register:{bubble:r}}));var P,S,T,B,H,M,k,L,O,j={main:new v.Getter({namespace:I.get(),success:function(e){try{d(e)}catch(e){throw D&&console.info(D),e}},template:{url:"controllers/Property/PropertyAddressMaster.html",dom:["divSchema","divActionBar","divHeader","divBadges","divPriceContainer","spanEstMortgage","divListingHistoryCapsule","divBreadCrumbs","divKeyStats","divSideBar","divThrobber","divDetails","divListingRemarks","divPropertySummary","divPropertyAdminPanel","divOpenHouses","divHistory","divAnalysis","divMobileActionsContainer","divMobileConversations","divMobileAgents","divCollapses","divListingDisclaimer","divSchoolDisclaimer","divPropertyCommuteTimes","listingMediaCardsContainer","listingMediaCards","listingMediaCircles","divNearByAreas","divLikelihoodToList","divOwnershipSnapshot","divUnits","buildingSearchMatches","btnSuggestEdit","divPropertyAmenities","aExploreNeighborhood","divExploreNeighborhoodContainer","idxDisclaimer"]}}),itemByIds:new v.Getter({namespace:I.get(),type:b.HSPropertyAddressItem,webService:"/service/PropertyAddresses/GetByIDs",success:n,cache:{expire:5}}),getByUrl:new v.Getter({namespace:I.get(),type:b.HSPropertyAddressItem,webService:"/service/PropertyAddresses/GetByUrl",cache:{expire:5}}),getListingDetails:new v.Getter({namespace:I.get(),type:b.HSListingDetail,webService:"/service/Listings/GetDetails",success:function(e){try{c(e,"/Listings/GetDetails")}catch(e){throw D&&console.info(D),e}},cache:{expire:5}}),getPropertyAddressDetails:new v.Getter({namespace:I.get(),type:b.HSPropertyAddressDetail,webService:"/service/PropertyAddresses/GetDetails",success:function(e){try{c(e,"/PropertyAddresses/GetDetails")}catch(e){throw D&&console.info(D),e}},cache:{expire:5}}),getPropertyDetails:new v.Getter({namespace:I.get(),type:b.HSPropertyDetail,webService:"/service/Properties/GetDetails",success:function(e){try{c(e,"/Properties/GetDetails")}catch(e){throw D&&console.info(D),e}},cache:{expire:5}})},U=!1,x=new b.LocalStorage("MLSFeedbackParams");f.getDeviceSize(function(e){L=e}),f.getAppMode(function(e){O=e});!function(){var e=$.Deferred();f.getCurrentUser(function(t){k=t.user,e.resolve()})}();return{update:o,restore:function(e){D.restore(e,s)},uninit:m,getState:D.getState.bind(D),register:A.register.bind(A),event:g}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyAddressMaster.js.map?hash=8837851e2ba471c48aa882e867fbed2ddefine("controllers/Property/PropertyAddressHeader",["require","ControllerObjects","hls"],function(e){return function(i){function t(e){s.call("bubble",e)}function r(e){m.update(e),a()}function a(){var e,i,t;try{m.requireDom(),m.require("propertyAddressItem")}catch(e){throw e}var r=m.get("propertyAddressItem"),a=!r.propertyID,l=!r.primaryImage&&r.propertyID&&!r.listing,d=(null===(e=r.building)||void 0===e?void 0:null===(i=e.buildingMedia)||void 0===i?void 0:i.length)>2||(null===(t=r.buildingMedia)||void 0===t?void 0:t.length)>2;c.get({$dom:m.$dom,data:{propertyAddressItem:r,showSkyCamVideo:(r.listing||a||l)&&r.skyView,showImageSlider:r.primaryImage||d&&!r.skyView,hasBuildingMedia:d,buildingMedia:d?null:n(r)}})}function l(r){var a=r.$dom,l=r.data||{},n=l.propertyAddressItem||{};if(n.skyView||l.useVideo){if(p.isSupported()){var o=new p;o.loadSource(n.skyView.streamUrl),o.attachMedia(a.video[0])}var u,g="";n.skyView&&(u={m3u8:n.skyView.streamUrl,mp4:n.skyView.videoUrl},g=n.skyView.imageUrl),s.call("skyCamAvailable",{url:u,posterImage:g}),a.video.on("click",function(e){t({type:"media.clicked",data:{mediaType:"skyCam",source:"imageSlider"}})}),"function"==typeof gtag&>ag("event","sky_cam_view",{event_category:"property header"})}if(n.primaryImage)d(n,a);else if(l.showSkyCamVideo)a.video.bind("contextmenu",function(){return!1}),s.register("mediaCenter.close",function(){a.video[0].paused&&a.video[0].play()},i),s.register("mediaCenter.opened",function(){a.video[0].paused||a.video[0].pause()},i);else if(l.hasBuildingMedia)d(n,a);else{var m;if(null!==(m=n.status)&&void 0!==m&&m.suppressGoogleStreetView)e(["modules/StaticMap"],function(e){e&&e.get({$dom:a.divPrimaryImage,type:"satellite",lat:n.latitude,lng:n.longitude,polygon:"lot"})}),e(["modules/StaticMap"],function(e){e&&e.get({$dom:a.divHeaderMapContainer,type:"roadmap",lat:n.latitude,lng:n.longitude,zoom:16,marker:!0})});else{var c,v,y;null!==(c=n.building)&&void 0!==c&&c.imageUrl||e(["modules/StaticMap"],function(e){void 0!==e&&e.get({$dom:a.divPrimaryImage,type:"street",polygon:"lot",lat:n.latitude,lng:n.longitude,address:n.building?n.address:null})}),null!==(v=n.building)&&void 0!==v&&null!==(y=v.buildingMedia)&&void 0!==y&&y[1]||e(["modules/StaticMap"],function(e){void 0!==e&&e.get({$dom:a.divHeaderMapContainer,type:"satellite",lat:n.latitude,lng:n.longitude,zoom:16,polygon:"lot"})})}}}function d(e,i){g.add("slider",new o.ChildController({type:"controllers/ImageSlider",namespace:u.get(),register:{bubble:t}}),!0),m.updateController("slider",{$dom:i.divImageSlider,data:{propertyAddressItem:e,listingID:m.get("listingID")}})}function n(e){var i,t=[];return null!==(i=e.building)&&void 0!==i&&i.imageUrl?(t.push(e.building.imageUrl.replace("/{size}/","/114/")),e.building.buildingMedia&&e.building.buildingMedia.forEach(function(i){e.building.imageUrl!==i.url&&t.push(i.url.replace("/{size}/","/114/"))})):e.imageUrl&&(t.push(e.imageUrl.replace("/{size}/","/114/")),null===e||void 0===e||e.buildingMedia.forEach(function(i){e.imageUrl!==i.url&&t.push(i.url.replace("/{size}/","/114/"))})),t}var o=e("ControllerObjects"),u=new o.Unique(i),s=new o.Callbacks,g=new o.ChildControllerManager,m=new o.StateManager(g,{}),p=e("hls"),c=new o.Getter({namespace:u.get(),success:function(e){try{l(e)}catch(e){throw void 0!==m&&null!==m&&console.info(m),e}},template:{url:"controllers/Property/PropertyAddressHeader.html",dom:["video","divPrimaryImageRow","divPrimaryImage","divImageSlider","divHeaderMapContainer","divJumbotron"]}});return{update:r,restore:function(e){m.restore(e,a)},uninit:function(){g.uninit()},getState:m.getState.bind(m),register:s.register.bind(s),event:function(e,i){return"media.skyCam.resume"===e&&s.exists("mediaCenter.close")?void s.call("mediaCenter.close"):"media.skyCam.pause"===e?void(s.exists("mediaCenter.opened")&&s.call("mediaCenter.opened")):void g.event(e,i)}}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyAddressHeader.js.map?hash=224b651c22915aa8be855bf5e4082b9adefine("controllers/Property/PropertyAddressSchema",["require","ControllerObjects","Utilities"],function(t){return function(e){function n(){try{l.requireDom()}catch(t){throw t}u.template.get({$dom:l.$dom,data:{schema:l.get("schemaData"),siteRootUrl:i.coStarBrand.is("citysnap")?window.Homesnap.siteRootUrl:"https://www.homesnap.com"}})}function r(t){t.$dom}var o=t("ControllerObjects"),i=t("Utilities"),a=new o.Unique(e),c=new o.Callbacks,s=new o.ChildControllerManager,l=new o.StateManager(s,{}),u={template:new o.Getter({namespace:a.get(),success:function(t){try{r(t)}catch(t){throw l&&console.info(l),t}},template:{url:"controllers/Property/PropertyAddressSchema.html"}})};return{update:function(t){l.update(t),n()},restore:function(t){l.restore(t,n)},uninit:function(){s.uninit()},getState:l.getState.bind(l),register:c.register.bind(c),event:function(t,e){s.event(t,e)}}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyAddressSchema.js.map?hash=f24f0fab7737d092a6f360a5e063db61define("controllers/Property/PropertySidebar",["require","ControllerObjects","Application","Objects","Utilities"],function(e){return function(t){function n(e){switch(e.type){case"trackUserEvent":e.data&&(e.data.viewSourceID=3);break;case"leadgenForm.show":d();break;case"sellspeed.show":return j.exists("showSellSpeed")&&j.call("showSellSpeed"),!1;case"sellspeed.open":return j.exists("openSellSpeed")&&j.call("openSellSpeed"),!1;case"getAvailability.success":return R&&B.get("myListingAdminPanel").event("getAvailability.data",e.data.getAvailabilityData),!1;case"userItem.phoneNumberClicked":return"function"==typeof gtag&>ag("event","listing_lead_gen_phone_click"),!1}return j.call("bubble",e),!1}function o(e){W.update(e),i()}function i(){try{W.requireDom(),W.require("details"),W.require("propertyAddressItem"),W.optional("mlsFeedbackParams"),W.optional("qs")}catch(e){throw e}q.getCurrentUser(function(e){var t,n,o,i;h=e.user,S=null===(t=h)||void 0===t?void 0:null===(n=t.currentDetails)||void 0===n?void 0:null===(o=n.products)||void 0===o?void 0:null===(i=o.pro)||void 0===i?void 0:i.availableForUse,H.template.get({$dom:W.$dom,data:{details:W.get("details"),pro:S,permissions:h.permissions,coStarBrand:_},pass:{$mobileActionsContainer:W.get("mobileActionsContainer"),$mobileConversationsContainer:W.get("mobileConversationsContainer"),$mobileAgentsContainer:W.get("mobileAgentsContainer")}})})}function r(e){var t,o,r,u;A=e.$dom,y=e.data.details;var v=_.includedMLSIds;y.mlsID&&v.indexOf(y.mlsID)>-1&&(B.add("listingRelatedListings",new x.ChildController({type:"controllers/Property/ListingRelatedListings",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("listingRelatedListings",{$dom:A.divRelatedListings,data:{listingID:y.listingID}}));var m=W.get("propertyAddressItem"),C=W.get("mlsFeedbackParams");if(R=!1,h&&h.permissions&&h.permissions.mlsAgent){var b,M=y&&y.agentOnly&&y.agentOnly.agents.filter(function(e){return e.agent.entityID===h.entityID&&e});if(R=M&&M.length>=1,R&&(I=M.role),M&&h.permissions.homeSnapAdminTools&&null!==(b=Homesnap)&&void 0!==b&&b.environmentType&&1!=(1&Homesnap.environmentType)){var L=$("").addClass("font-12").text("to toggle the My Listing Admin Panel"),k=$("").addClass("bs4--border-0 bs4--bg-transparent bs4--text-hs-blue").text("Click Here");L.prepend(k),A.divFloatingContainer.append(L),k.on("click",function(e){return W.set("currentUserRelatedToListing",!R),i(),!1}),R=W.get("currentUserRelatedToListing")}a(e.pass.$mobileActionsContainer)}if(y&&y.conversations&&l(e.pass.$mobileConversationsContainer),(null!==(t=h)&&void 0!==t&&null!==(o=t.permissions)&&void 0!==o&&o.mlsAgent||S)&&p(),y.status&&y.status.canGenerateRapidCMA&&!R&&(B.add("requestCMA",new x.ChildController({type:"controllers/ListingRequestCMA",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("requestCMA",{$dom:A.divRequestCMA,data:{listing:y,pro:S}}),A.divAgentActions.removeClass("hidden")),y.agentOnly&&(y.agentOnly.status&&y.agentOnly.status.checkForShowingUrl&&(R?g(m):(B.add("scheduleShowing",new x.ChildController({type:"controllers/ListingScheduleShowing",namespace:N.get(),register:{bubble:n,showingUrlSuccess:function(){A.divAgentActions.removeClass("hidden")},showingUrlHomesnapSuccess:function(){g(m)}}}),!0),W.updateController("scheduleShowing",{$dom:A.divScheduleShowing,data:{propertyAddressItem:W.get("propertyAddressItem")}}))),y.agentOnly.agents&&!R)){A.divRelatedAgentsPanel.length>0&&A.divRelatedAgentsPanel.removeClass("bs4--d-none"),c(e.pass.$mobileAgentsContainer);var P=y.agentOnly.agents.length>1;B.add("relatedAgents",new x.ChildControllerArray({type:"controllers/ListingRelatedAgent",namespace:N.get(),register:{bubble:n,listingRelatedAgentCheck:function(e){B.get("relatedAgents").event("check",e.data),B.get("conversationInlineSend").event("relatedAgentsRecipient",e.data)},listingRelatedAgentUnCheck:function(e){B.get("relatedAgents").event("uncheck",e.data)}}}),!0),W.updateController("relatedAgents",{$dom:A.divRelatedAgents,data:y.agentOnly.agents.map(function(e,t){return{relatedAgent:e,showCheckBox:P&&e.status.showWithMessageTextBox,checked:0===t}})}),B.add("conversationInlineSend",new x.ChildController({type:"controllers/ConversationInlineSend",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("conversationInlineSend",{$dom:A.divInlineConversation,data:{relatedAgent:y.agentOnly.agents[0],listing:y}})}if(y&&!y.listingID&&S&&m&&m.propertyID&&H.getOwner.get({$dom:W.$dom,data:{propertyID:m.propertyID},success:s,failure:function(){throw W&&console.info(W),new Error("Property Sidebar controller: Unhandled Error in GetOwnershipSnapshot web service")}}),null!==(r=h)&&void 0!==r&&null!==(u=r.permissions)&&void 0!==u&&u.agent){var D;null!==m&&void 0!==m&&null!==(D=m.transactionType)&&void 0!==D&&D.forSale&&!y.listingID&&A.btnNetSheet.on("click",function(){return B.add("netSheetCalculator",new x.ChildController({type:"controllers/NetSheetCalculator",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("netSheetCalculator",{data:{propertyAddressItem:m,propertyDetails:y}}),!1}).removeClass("hidden"),B.add("advertiseUnits",new x.ChildController({type:"controllers/AdvertiseUnits",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("advertiseUnits",{$dom:A.divAdvertiseUnits,data:{placementType:m&&m.listing?3:4,currentUser:h}})}var F=R&&y.sListingStatus&&(y.sListingStatus.active||y.specialFeatures.comingSoon),O=y&&!y.listingID&&h&&h.permissions&&h.permissions.mlsAgent,T=h&&h.permissions&&h.permissions.homeSnapAdminTools;(O||F||T)&&(B.add("myPhotography",new x.ChildController({type:"controllers/account/MyPhotography",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("myPhotography",{$dom:A.myPhotographyContainer,data:{details:y,pro:S}}),B.add("findPhotographer",new x.ChildController({type:"controllers/FindPhotographer",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("findPhotographer",{$dom:A.findPhotographer,data:{details:y,pro:S}}));var U=C&&"object"==typeof C&&Object.keys(C).length>0;m&&A.divLeadGenForm&&!U&&d(e.pass.$mobileAgentsContainer),y.conversations&&y.conversations.length>0&&A.divRelatedConversations&&(B.add("conversationItem",new x.ChildControllerArray({type:"controllers/ConversationItem",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("conversationItem",{$dom:A.divRelatedConversations,data:y.conversations.map(function(e){return{conversationItem:e,relatedConversation:!0}})}),A.btnSendInAMessage.on("click",function(){return B.add("sendInAMessageMaster",new x.ChildController({type:"controllers/SendInAMessageMaster",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("sendInAMessageMaster",{data:{paItem:y}}),!1})),h&&h.currentDetails&&(h.currentDetails.clientAppType&&!h.currentDetails.clientAppType.isAppUser?(B.add("downloadMobileApp",new x.ChildController({type:"controllers/DownloadMobileApp",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("downloadMobileApp",{$dom:A.divDownloadMobileApp,data:{}})):A.divDownloadMobileApp.remove()),U&&(B.add("MLSFeedback",new x.ChildController({type:"controllers/MyAgent/MLSFeedback",namespace:N.get(),register:{bubble:n,display:function(e){f=!!e&&W.get("sticky",!1)}}}),!0),W.updateController("MLSFeedback",{$dom:A.divMLSFeedback,data:{propertyAddressItem:m,mlsFeedbackParams:C}})),q.getDeviceSize(function(e){w=e})}function s(e){e.data.length>0&&(A.btnContactOwner.on("click",function(){n({type:"scrollToCurrentOwner"})}),A.divContactOwner.removeClass("hidden"))}function a(t){R?(B.add("myListingAdminPanel",new x.ChildController({type:"controllers/Property/MyListingAdminPanel",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("myListingAdminPanel",{$dom:A.divMyListingAdmin,data:{propertyAddressItem:W.get("propertyAddressItem"),details:y,currentUser:h,mobilePanelContainer:t,currentUserAgentRole:I}})):h&&h.permissions&&h.permissions.paidAgent&&e(["modules/MoveController"],function(e){return void 0!==e&&null!==e&&(M=new e({locations:{xs:t,sm:A.divAgentActionsContainer,md:A.divAgentActionsContainer,lg:A.divAgentActionsContainer},success:function(e){A.divAgentActions.appendTo(e)}}),!1)})}function l(t){e(["modules/MoveController"],function(e){return void 0!==e&&null!==e&&(L=new e({locations:{xs:t,sm:A.divConversationsContainer,md:A.divConversationsContainer,lg:A.divConversationsContainer},success:function(e){A.divConversationsContent.appendTo(e)}}),!1)})}function d(t){e(["modules/MoveController"],function(e){return void 0!==e&&null!==e&&(k=new e({locations:{xs:t,sm:A.divLeadGenContainer,md:A.divLeadGenContainer,lg:A.divLeadGenContainer},success:function(e){A.divLeadGenForm.appendTo(e)}}),!1)}),B.add("leadGenForm",new x.ChildController({type:"controllers/MyAgent/Master",namespace:N.get(),register:{bubble:n,display:function(e){f=!!e&&W.get("sticky",!1)}}}),!0),W.updateController("leadGenForm",{$dom:A.divLeadGenForm,data:{propertyAddressItem:W.get("propertyAddressItem"),twoColumnLayout:["sm"],ref:W.get("ref"),preview:W.get("preview",!1),source:"xs"===w?1024:64}})}function c(t){e(["modules/MoveController"],function(e){return void 0!==e&&null!==e&&(P=new e({locations:{xs:t,sm:A.divRelatedAgentsContainer,md:A.divRelatedAgentsContainer,lg:A.divRelatedAgentsContainer},success:function(e){A.divRelatedAgentsPanel.appendTo(e)}}),!1)})}function p(){var e,t,o,i,r,s,a=null!==(e=y)&&void 0!==e&&e.listingID&&null!==(t=y.transactionType)&&void 0!==t&&t.forSale&&null!==(o=y.sListingStatus)&&void 0!==o&&o.active&&null!==(i=y.currentPrice)&&void 0!==i&&i.raw?7:6,l=7===a?null===(r=y)||void 0===r?void 0:r.listingID:null===(s=y)||void 0===s?void 0:s.propertyID;if(!l)return!1;var d=W.get("qs",{});B.add("sellSpeed",new x.ChildController({type:"controllers/SellSpeed/Manager",namespace:N.get(),register:{bubble:n}}),!0);var c=function(){return B.get("sellSpeed").event("sellspeed.open"),!1};return j.register("showSellSpeed",function(){R?(j.register("openSellSpeed",c),B.get("myListingAdminPanel").event("sellspeed.show")):(A.divSellSpeed.on("click",c),A.divAgentActions.add(A.divSellSpeed).removeClass("hidden")),null!==d&&void 0!==d&&d.lts&&c()}),W.updateController("sellSpeed",{data:{entityType:a,entityID:l,qs:d,currentUserRelatedToListing:R}}),!1}function g(e){var t=!!W.get("qs",{}).bookshowing,o=!1;R&&(o=!0),B.add("scheduleTour",new x.ChildController({type:"controllers/Property/ScheduleTour",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("scheduleTour",{$dom:A.divScheduleTour,data:{propertyAddressItem:e,inSideBar:!0,inListingAdminPanel:o,showingData:{bookingType:"listing",listingId:e.listing.id,listingAddress:"".concat(e.address.fullStreetAddress,", ").concat(e.address.cityStateZip),itineraryName:e.address.streetNameWithoutNumber},triggerOpenModal:t,promo:u()}})}function u(){var e=W.get("promo",{}),t=e.promoMedium,n=e.promoContent,o=e.promoTerm,i=e.promoDate,r=e.promoSource;return"mls"!==r&&(r=W.get("qs",{}).bookshowing?"booking_url":"ListingPage"),{campaign:"showings",source:r,medium:t,content:n,term:o,date:i}}function v(){F=parseFloat(A.divFloatingContainer.css("margin-top"))-E,O=void 0,T=void 0,U=void 0,O=void 0,f&&f.indexOf(w)>-1&&A.divFloatingContainer.css({width:"",position:"",top:"",bottom:""})}function m(e,t,n){if(A&&f&&!(f.indexOf(w)<0)){if(D||(D=n?50:100),F||(F=parseFloat(A.divFloatingContainer.css("margin-top"))-E),!O||n){var o=W.$dom.offset();O=o&&o.top?o.top:0}if(T=O+W.$dom.height(),(!U||U<50)&&(U=W.$dom.width()),"top"===J){O-t.topT-Z;a&&C("bottom")}else C("top")}else if("bottom"===J){var l=T-Z-t.top0?(u.add("schools",new p.ChildController({type:"controllers/Property/PropertySchools",namespace:d.get(),register:{bubble:r}}),!0),m.updateController("schools",{$dom:n.divSchools,data:{schools:a.schools,accordionOpen:e.data.accordionOpen}})):n.divSchools.remove(),-1===t.exclusions.indexOf("features")&&a&&a.type_&&"HSListingDetail"==a.type_?(u.add("propertyFeatures",new p.ChildController({type:"controllers/Property/PropertyFeatures",namespace:d.get(),register:{bubble:r}}),!0),m.updateController("propertyFeatures",{$dom:n.divFeatures,data:{listing:a,accordionOpen:e.data.accordionOpen}})):n.divFeatures.remove(),-1===t.exclusions.indexOf("map")?(u.add("propertyMap",new p.ChildController({type:"controllers/Property/PropertyMap",namespace:d.get(),register:{bubble:r}}),!0),m.updateController("propertyMap",{$dom:n.divMap,data:{listing:a,propertyStatus:o&&o.propertyStatus?o.propertyStatus:""}})):n.divMap.remove(),-1===t.exclusions.indexOf("transit")?(n.divMassTransit.hide(),u.add("massTransitCollapse",new p.ChildController({type:"controllers/Property/MassTransitCollapse",namespace:d.get(),register:{bubble:r}}),!0),m.updateController("massTransitCollapse",{$dom:n.divMassTransit,data:{propertyAddressId:o.id}})):n.divMassTransit.remove(),-1===t.exclusions.indexOf("commute")?(u.add("commuteTimesCollapse",new p.ChildController({type:"controllers/PropertyCommuteTimesCollapse",namespace:d.get(),register:{bubble:r}}),!0),m.updateController("commuteTimesCollapse",{$dom:n.divCommuteTimes,data:{propertyAddressItem:o}})):n.divCommuteTimes.remove(),-1===t.exclusions.indexOf("mortgage")&&a&&a.type_&&"HSListingDetail"==a.type_&&a.transactionType&&a.transactionType.forSale?(u.add("mortgageCalculatorCollapse",new p.ChildController({type:"controllers/MortgageCalculatorCollapse",namespace:d.get(),register:{bubble:r}}),!0),a&&a.currentPrice&&m.updateController("mortgageCalculatorCollapse",{$dom:n.divMortgageCalculator,data:{price:a.currentPrice.raw,propertyAddressItem:o,propertyDetails:a}})):n.divMortgageCalculator.remove(),-1===t.exclusions.indexOf("similar")&&a&&(!a.type_||"HSPropertyAddressDetail"!=a.type_)&&a.status&&a.status.canGetSimilarListings){u.add("similar",new p.ChildController({type:"controllers/SimilarListings",namespace:d.get(),register:{bubble:r}}),!0);var s={};a.type_&&"HSListingDetail"==a.type_&&(s.listingID=a.listingID),s.propertyID=a.propertyID,s.transactionType=a.transactionType,s.count=8,s.baths=a.baths?a.baths.raw.full:void 0,s.beds=a.beds?a.beds.raw:void 0,a.type_&&"HSListingDetail"==a.type_?(s.price=a.currentPrice?a.currentPrice.raw:void 0,s.sPropertyType2=a.sPropertyType2.raw):(s.price=a.value?a.value.raw:void 0,s.sPropertyType2=a.mappedSPropertyType),s.yearBuilt=a.yearBuilt,s.latitude=a.latitude,s.longitude=a.longitude,m.updateController("similar",{$dom:n.divSimilar,data:s})}else n.divSimilar.remove()}function i(){u.uninit()}function l(e,t){u.event(e,t)}var n,p=e("ControllerObjects"),d=new p.Unique(t),c=new p.Callbacks,u=new p.ChildControllerManager,m=new p.StateManager(u,{}),y={template:new p.Getter({namespace:d.get(),success:function(e){try{s(e)}catch(e){throw m&&console.info(m),e}},template:{url:"controllers/Property/PropertyCollapses.html",dom:["divSchools","divMap","divMassTransit","divFeatures","divMortgageCalculator","divSimilar","divCommuteTimes"]}})};return{update:o,restore:function(e){m.restore(e,a)},uninit:i,getState:m.getState.bind(m),register:c.register.bind(c),event:l}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyCollapses.js.map?hash=8ac09e49d6f290c9411f26251fdd000b Download The App
Or text me link
{{/with}}';Homesnap.templates["controllers/DownloadMobileAppForm.html"] = '{{#with data}}{{/with}}';Homesnap.templates["controllers/Footer.html"] = '{{#with data}}{{/with}}';Homesnap.templates["controllers/generic.html"] = 'Skip to main content ';Homesnap.templates["controllers/Header.html"] = '{{#with data}} {{#theme "empire"}}Citysnap Logo{{else}} Homesnap Logo {{/theme}}
{{!-- {{http://bootsnipp.com/snippets/featured/fancy-navbar-login-sign-in-form-- }} --}} Register Sign In {{/with}}';Homesnap.templates["controllers/Property/PropertyAddressItem.html"] = '{{#with data}}{{#and item.latitude item.longitude}} {{/and}}{{#if item.primaryImage }} {{/if}}
{{#or paging buildingSummary}} {{/or}} {{#and (compare placardVersion "==" 2) item.price (compare buildingSummary "==" false) }} {{item.price.dollars}}
{{/and}} {{#if statusBar}} {{~{item.propertyStatus.text}~}} {{~#and item.listing.sListingStatus.contract item.listing.contractDate}} {{item.listing.contractDate.shortMonth}} {{item.listing.contractDate.day}} {{~else and item.listing.sListingStatus.sold item.listing.closeDate}} {{item.listing.closeDate.shortMonth}} {{item.listing.closeDate.day}} {{else}} {{~#or item.attributes.mlsStatus.expired item.attributes.mlsStatus.canceled item.attributes.mlsStatus.withdrawn item.attributes.mlsStatus.hold}} {{#if item.attributes.offMarketDate}} {{item.attributes.offMarketDate.shortMonth}} {{item.attributes.offMarketDate.day}} {{/if}} {{/or~}} {{/and~}}
{{~#or item.listing.specialFeatures.contingent item.listing.specialFeatures.auction item.listing.specialFeatures.shortSale item.listing.specialFeatures.foreclosure ~}} {{!-- item.listing.specialFeatures.newHome --}} {{#with item.listing.specialFeatures ~}}
{{~#if contingent~}} Contingent {{~else if shortSale~}} Short Sale {{~else if auction~}} Auction {{~else if foreclosure~}} Foreclosure {{~else if newHome~}} New Construction {{~/if~}}
{{~/with}} {{/or}} {{#or likelihoodStatus secondaryBanner ~}}
{{likelihoodStatus.title}}
{{/or}}
{{/if}} {{#if paging}} {{#if gradient}}
{{/if}}
{{#and item.price (compare placardVersion "!==" 2)}}
{{item.price.short}}
{{/and}}
{{item.address.fullStreetAddress}} {{~#if item.address.city}}{{item.address.city}}, {{/if~}} {{~#if item.address.state}}{{item.address.state}} {{/if~}} {{~#if item.address.zip}}{{item.address.zip}} {{/if~}} {{#if units.total}}{{units.total}} Units {{/if}} {{#and item.listing.attribution (compare placardVersion "==" 2) }}
{{item.listing.attribution}}
{{/and}}
{{#each keyStats}}
{{{this.value}}} {{#compare @root/data/placardVersion "!==" 2}} {{/compare}} {{this.label}} {{~#unless @last~}} {{~#compare @root/data/placardVersion "==" 2}}•{{/compare~}} {{~/unless~}}
{{/each}}
{{/if}} {{#if buildingSummary}} {{#if gradient}}
{{/if}}
{{#and units.listings (compare @root/data/placardVersion "!==" 2)}} {{units.listings}} Listings {{/and}}
{{#if units.total}}{{item.address.fullStreetAddressWithoutUnit}}{{else}}{{item.address.fullStreetAddress}}{{/if}} {{~#if item.address.city}}{{item.address.city}}, {{/if~}} {{~#if item.address.state}}{{item.address.state}} {{/if~}} {{~#if item.address.zip}}{{item.address.zip}} {{/if~}} {{#and units.listings (compare @root/data/placardVersion "==" 2)}} {{units.listings}} Listings {{#and units.total (compare @root/data/placardVersion "==" 2)}} | {{/and}} {{/and}} {{#if units.total}} {{units.total}} Units {{/if}}
{{/if}} {{#if showFavoriteIcon}} {{/if}} {{#compare placardVersion "==" 2 }} {{/compare}}{{#if singleFamilyResidence}}<script type="application/ld+json"> {{#if item.listing.openHouse}}[{{/if}} {"@context":"https://schema.org","@type":"SingleFamilyResidence","address": {"@type": "PostalAddress","@context":"https://schema.org","streetAddress": "{{item.address.fullStreetAddress}}","addressLocality": "{{item.address.city}}","addressRegion": "{{item.address.state}}","addressCountry": "USA","postalCode": "{{item.address.zip}}"},{{#if item.primaryImage}}"photo": {"@type": "ImageObject","url": "{{item.primaryImage.large}}" }, {{/if}}"geo": {"@type": "GeoCoordinates","latitude": "{{item.longitude}}","longitude": "{{item.longitude}}"},"description": "{{item.remarks}}","name": "{{item.address.fullStreetAddress}}, {{item.address.cityStateZip}}","url": "{{@root/data/siteRootUrl}}{{item.url}}" } {{#if item.listing.openHouse}},{ "@context": "https://schema.org", "@type": "Event", "name": "Open House {{item.listing.openHouse.times}}", "description": "{{item.remarks}}", "url": "{{@root/data/siteRootUrl}}{{item.url}}", {{#if item.primaryImage}} "image": [ {{#if item.primaryImage.large}}"{{item.primaryImage.large}}"{{/if}} {{#each item.secondaryImages}} ,"{{listing}}" {{/each}} ], {{/if}} "startDate": "{{item.listing.openHouse.startDateString}}", {{#if item.price}} "offers": { "@type": "Offer", "@id": "{{@root/data/siteRootUrl}}{{item.url}}", "image": [ {{#if item.primaryImage.large}}"{{ item.primaryImage.large}}"{{/if}} {{#each item.secondaryImages}} ,"{{listing}}" {{/each}} ], "url": "{{@root/data/siteRootUrl}}{{item.url}}", "description": "{{item.remarks}}", "price": "{{item.price.raw}}", "priceCurrency": "USD", "BusinessFunction": "https://purl.org/goodrelations/v1#{{#if item.transactionType.forSale}}Sell{{else if item.transactionType.forRent}}LeaseOut{{/if}}" }, {{/if}} {{#with item.address}} "location": { "@type": "Place", "name": "{{fullStreetAddress}}", "address": { "@type": "PostalAddress", "addressCountry": "USA", "addressLocality": "{{city}}", "addressRegion": "{{state}}", "postalCode": "{{zip}}", "streetAddress": "{{fullStreetAddress}}" } } {{/with}} } {{/if}} {{#if item.listing.openHouse}}]{{/if}}</script>{{/if}}
{{/with}}';Homesnap.templates["controllers/SearchDropdown.html"] = '{{#with data}}{{#each this}}{{#if header}}{{header}} {{/if}}{{#each items}}{{#compare type_ "HSAreaItem"}} {{name}} {{#compare areaTypeID 1}} State {{/compare}} {{#compare areaTypeID 2}} {{#if state}} {{state}} {{else}} Metro Area {{/if}} {{/compare}} {{#compare areaTypeID 3}} {{state}} {{/compare}} {{#compare areaTypeID 4}} City/Town {{/compare}} {{#compare areaTypeID 5}} Zip {{/compare}} {{#compare areaTypeID 6}} {{#if uspsCity}}{{uspsCity}}, {{/if}}{{state}} {{/compare}} {{#unless status.hasMLSCoverage}} Notify Me When Available {{/unless}}{{else compare type_ "HSPropertyAddressItem"}}{{#if building.name}}{{building.name}} {{/if}}{{address.fullStreetAddress}}{{#compare propertyStatus.color "red"}}• {{/compare}}{{#compare propertyStatus.color "orange"}}• {{/compare}}{{#compare propertyStatus.color "yellow"}}• {{/compare}}{{#compare propertyStatus.color "purple"}}• {{/compare}}{{#compare propertyStatus.color "green"}}• {{/compare}}{{address.cityStateZip}} {{else compare type_ "HSSchool"}}{{name}}{{address.city}}, {{address.state}} {{else compare type_ "HSStreetArea"}}{{name}}{{area.name}} {{else compare type_ "HSSavedSearch"}}{{name}}{{#if summary}}{{{summary}}} {{/if}}{{else compare type_ "CommuteTimeBanner"}}Find Homes by Commute Time {{else compare type_ "HSIPLocation"}}Current Location{{else compare type_ "notClickable"}}{{name}}{{else compare type_ "ListingCarts"}}list Imported Listing Carts{{else compare type_ "SavedSearches"}}search Imported Saved Searches{{/compare}}{{#if autocompleteStatus.farFromBoundary}}Too far away. {{else if autocompleteStatus.notCombinable}}Area not combinable. {{else if ../multiAreaReset}}Clear and run this search {{/if}} {{#if @last}}{{#compare type_ "HSSavedSearch"}}More Saved Searches {{/compare}}{{/if}}{{/each}}{{#if divider}}{{/if}}{{else}} No Results
Try one of these:
Address City/Town Zip Code Neighborhood Street Name MLS# {{/each}}{{/with}}';Homesnap.templates["controllers/Property/PropertyAddressMaster.html"] = '{{#with data}}{{#if actionBar}} {{/if}}{{#with propertyAddressItem}}
{{#if @root/data/badges}}
{{/if}}
{{#if propertyCount}}
{{propertyCount.commas}} Units
{{else if price}}
{{#and listing transactionType.forSale}}
Est. Mortgage:
{{/and}}
{{price.dollars}}
{{#if listing}}
{{/if}}
{{/if}}
{{#and listing sPropertyType2 (or (compare sPropertyType2.raw "==" 2) (compare sPropertyType2.raw "==" 4) (compare sPropertyType2.raw "==" 256))}}
{{sPropertyType2.string}}
{{/and}}
{{#if @root/data/searchMatches}}
{{/if}}
{{#unless address.unitNumber}}{{#compare unitCount.raw ">" 1}}{{unitCount.commas}}Units {{/compare}}{{/unless}}{{#if beds}}{{beds.string}} {{beds.label}} {{/if}}{{#if baths}}{{{baths.string}}} {{baths.label}} {{/if}}{{#unless address.unitNumber}}{{#if lotSize}}{{lotSize.string}} {{lotSize.label}} {{/if}}{{/unless}}{{#if sqFt}}{{sqFt.string}} SQ FT {{/if}}{{#if yearBuilt}}{{yearBuilt}} Year Built {{/if}}
{{#if listing}}Listing{{else if propertyID}}Property{{else}}Building{{/if}} Media {{/with}}
{{#if propertyAddressItem.propertyID}}
All information listed is assumed to be accurate, but is subject to inaccuracies of our data sources..
{{/if}}
{{#unless isCitysnap}}
{{/unless}}
{{/with}}';Homesnap.templates["controllers/Property/PropertyAddressHeader.html"] = '{{#with data.propertyAddressItem}} {{#if @root/data/showImageSlider}} {{else if @root/data/showSkyCamVideo}} {{#if skyView.streamUrl}} {{/if}} {{#if skyView.videoUrl}} {{/if}}
{{else}} {{#if @root/data/buildingMedia.[0]}} {{/if}}
{{#if @root/data/buildingMedia.[1]}} {{/if}}
{{/if}} {{#if address}} {{/if}}{{/with}}';Homesnap.templates["controllers/Property/PropertyAddressSchema.html"] = '{{#with data.schema}}<script type="application/ld+json">[{"@context": "http://schema.org","@type":"RealEstateListing","@id": "{{@root/data/siteRootUrl}}{{url}}","additionalType": "http://www.productontology.org/id/Real_estate","about": {{{#if singleFamilyResidence}}"@type":["SingleFamilyResidence", "Product"],{{else if detailsData.propertyCount}}"@type":["ApartmentComplex", "LocalBusiness"],{{/if}}"name": "{{cleanEscape address.fullStreetAddress}}, {{address.cityStateZip}}","description": "{{cleanEscape description}}","category": "Real Estate {{#if propertyType}}> {{cleanEscape propertyType}}{{/if}}","productId": "{{productId}}","url": "{{@root/data/siteRootUrl}}{{url}}",{{#if detailsData.propertyType}}"accommodationCategory": "{{cleanEscape detailsData.propertyType}}",{{/if}}{{#if image}}"photo": {"@type":"ImageObject","contentUrl": "https:{{image}}"},{{/if}}{{#if secondaryImages.length}}"image": [{{#each secondaryImages}}"https:{{listing}}"{{#unless @last}},{{/unless}}{{/each}}],{{/if}}{{#if sqFt}}"floorSize":{"@type": "QuantitativeValue","value": "{{sqFt.string}}","unitCode": "FTK"},{{/if}}{{#if propertyAddressItem.beds}}"numberOfBedrooms": {{propertyAddressItem.beds.raw}},{{/if}}{{#if propertyAddressItem.baths}}"numberOfBathroomsTotal": {{math propertyAddressItem.baths.raw.full "+" propertyAddressItem.baths.raw.half}},{{#if propertyAddressItem.baths.raw.full}}"numberOfFullBathrooms": {{propertyAddressItem.baths.raw.full}},{{/if}}{{#if propertyAddressItem.baths.raw.half}}"numberOfPartialBathrooms": {{propertyAddressItem.baths.raw.half}},{{/if}}{{/if}}{{#if detailsData.propertyCount}}"numberOfAccommodationUnits": "detailsData.propertyCount",{{/if}}{{#and latitude longitude}}"geo": {"@type": "GeoCoordinates","latitude": "{{latitude}}","longitude": "{{longitude}}"},{{/and}}"address": {"@type": "PostalAddress","addressCountry": "USA","addressLocality": "{{address.city}}","addressRegion": "{{address.state}}","postalCode": "{{address.zip}}","streetAddress": "{{cleanEscape address.fullStreetAddress}}"}{{#if detailsData.yearBuilt}}, "yearBuilt": {{detailsData.yearBuilt}}{{/if}}{{#if price}},"offers":{"@type": "{{#if transactionType.forSale}}OfferForPurchase{{else if transactionType.forRent}}OfferForLease{{/if}}","availability":{{~#or transactionType.forSale transactionType.forRent~}}"http://schema.org/InStock"{{~else~}}{{~#if detailsData.specialFeatures.comingSoon~}}"http://schema.org/PreOrder"{{~else~}}"http://schema.org/OutOfStock"{{~/if~}}{{~/or}},"@id": "{{@root/data/siteRootUrl}}{{url}}","image":[{{#if image}}"https:{{image}}"{{/if}}{{#if secondaryImages}},{{/if}}{{#each secondaryImages}}"https:{{listing}}"{{#unless @last}},{{/unless}}{{/each}}],"url": "{{@root/data/siteRootUrl}}{{url}}","description": "{{cleanEscape description}}","priceSpecification": {"@type":"UnitPriceSpecification","price": "{{price}}","priceCurrency": "USD"{{#if transactionType.forRent}}, "unitCode": "MON"{{/if}}},"price": "{{price}}","priceCurrency": "USD","BusinessFunction": "http://purl.org/goodrelations/v1#{{#if transactionType.forSale}}Sell{{else if transactionType.forRent}}LeaseOut{{/if}}"}{{/if}}{{#if openHouse}},"event" : [{{~#each openHouse~}}{"@context": "http://schema.org","@type": "Event","name": "Open House {{times}}","description": "{{cleanEscape ../description}}","url": "{{@root/data/siteRootUrl}}{{../url}}",{{#if ../image}}"image": [{{#if ../image}}"https:{{../image}}"{{/if}}{{#each ../secondaryImages}},"https:{{listing}}"{{/each}}],{{/if}}"startDate": "{{startDateString}}", "location": {"@type": "Place","address": {"@type": "PostalAddress","addressCountry": "USA","addressLocality": "{{../address.city}}","addressRegion": "{{../address.state}}","postalCode": "{{../address.zip}}","streetAddress": "{{cleanEscape ../address.fullStreetAddress}}"},"url": "{{@root/data/siteRootUrl}}{{../url}}"}{{#if ../price}}, "offers":{"@type": "Offer","@id": "{{@root/data/siteRootUrl}}{{../url}}",{{#if image}}"photo": {"@type":"ImageObject","contentUrl": "https:{{image}}"},{{/if}}{{#if secondaryImages.length}}"image": [{{#each secondaryImages}}"https:{{listing}}"{{#unless @last}},{{/unless}}{{/each}}],{{/if}}"url": "{{@root/data/siteRootUrl}}{{../url}}","description": "{{cleanEscape ../description}}","price": "{{../price}}","priceSpecification": {"@type":"UnitPriceSpecification","price": "{{../price}}","priceCurrency": "USD"{{#if transactionType.forRent}}, "unitCode": "MON"{{/if}}},"priceCurrency": "USD","BusinessFunction": "http://purl.org/goodrelations/v1#{{#if ../transactionType.forSale}}Sell{{else if ../transactionType.forRent}}LeaseOut{{/if}}"}{{/if}}} {{#unless @last}},{{/unless}}{{/each}}]{{/if}}}}]</script>{{/with}}';Homesnap.templates["controllers/Property/PropertySidebar.html"] = '{{#with data.details}}
{{#if conversations}}
Related Conversations
{{#each conversations}}
{{/each}}
{{/if}}
{{#or agentOnly status.canGenerateRapidCMA @root/data/pro @root/data/permissions/agent}}
Agent Actions {{#if @root/data/pro}} {{/if}}
{{#if @root/data/pro}}
Sell Speed {{#and listingID transactionType.forSale sListingStatus.active currentPrice.raw}} {{/and}} chevron_right
{{/if}} {{#if agentOnly.status.checkForShowingUrl}}
{{/if}} {{#if status.canGenerateRapidCMA}}
{{/if}}
{{#if @root/data/permissions/agent}}
Net Sheet Calculator chevron_right
{{/if}} {{#if @root/data/pro}}
Contact the Owner chevron_right
{{/if}}
{{/or}} {{#if agentOnly.agents}}
Related Agents {{#if @root/data/pro}}PRO {{/if}}
{{#each agentOnly.agents}}
{{/each}} {{#if agentOnly.agents.[0].status.showWithMessageTextBox}}
{{/if}}
{{/if}}
{{/with}}';Homesnap.templates["controllers/Property/PropertyCollapses.html"] = '{{#with data}}
{{/with}}';