2&&void 0!==argomenti[2]?argomenti[2]:{},i="stringa"==tipo di e?[e]:Array.isArray(e)?e:[e];null!==( a=window.Homesnap.mlsVersionNumber)&&void 0!==a||window.Homesnap.versionNumber;i.forEach(function(e){var a,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 c=e.replace("".concat(t.cssRootPath,"/"),"").toLowerCase();a=t.cssAppHashes[c]||r} else if(t.cssHashes&&t.cssMainRootPath&&0===e.indexOf(t.cssMainRootPath)){var l=e.replace("".concat(t.cssMainRootPath,"/"),"").toLowerCase(); a=t.cssHashes[l]||r}else if(t.cssHashes&&t.cssRootPath&&0===e.indexOf(t.cssRootPath)){var u=e.replace("".concat(t.cssRootPath," /"),"").toLowerCase();a=t.cssHashes[u]||r}void 0!==a&&""!==a&&(e+="".concat(-1===e .indexOf("?")?"?":"&","hash=").concat(a,"&v=").concat(i)),require(["jquery"],funzione(t) {if(!t("link[href='".concat(e,"']")).length){var r=t("head");if(r.length){var a=t( '').attr("href",e);r.append(a),null!==o&&void 0!==o&&o.key&&null!==o&&void 0!==o&&o.value&&a.attr(o.key, o.value)}}"function"==typeof n&&n()})})}},a.ui={getWindowSize:function(e){return e>=1200?"lg":e>=992?" md":e>=768?"sm":"xs"},belowthefold:function(e,t,r,n){return(n&&n.offset()?n.offset().top+n.height( ):(t[0].innerHeight?t[0].innerHeight:t.height())+t.scrollTop())<=e.offset().top-(r||0)},rightoffold: function(e,t,r,n){return(n&&n.offset()?n.offset().left+n.width():t.width()+t.scrollLeft())<=e.offset ().left-(r||0)},abovethetop:function(e,t,r,n){return(n&&n.offset()?n.offset().top:t.scrollTop())>= e.offset().top+(r||0)+e.height()},leftofbegin:function(e,t,r,n){return(n&&n.offset()?n.offset().left: t.scrollLeft())>=e.offset().left+(r||0)+e.width()},inviewport:function(e,t,r,n){return!(!e||! e.lunghezza)&&!(this.rightoffold(e,t,r,n)||this.leftofbegin(e,t,r,n)||this.belowthefold(e,t,r,n)||this .abovethetop(e,t,r,n))},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}},a.stringa={reverse:funzione(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,n=this.getNumber(Math.abs(e*r));return{raw:e*r,abs:n .raw,virgole:n.virgole+"%",decimal0:n.decimal0+"%",decimal1:n.decimal1+"%",decimal2:n.decimal2+"%",decimal3:n.decimal3+"%",isPositive: e>0}}return null},getNumeroTelefono:function(e,t){if(!e)return null;var r=e.replace(/\D/g,"").replace(/^1/, ""),n=null!==t&&void 0!==t?t:r.substr(10,100),a="(".concat(r.substr(0,3),") ").concat( r.substr(3,3),"-").concat(r.substr(6,4)),o="".concat(r.substr(0,3),"-").concat(r .substr(3,3),"-").concat(r.substr(6,4)),i="".concat(r.substr(0,3),".").concat(r. substr(3,3),".".concat(r.substr(6,4)),s=a,c=a;return n.length>0&&(s="".concat(a," ext ").concat(n),c="".concat(a,",").concat(n)),{raw:e,cifre:r,ext:n,withParentheses:a,withDashes:o,withDots :i,withExtension:s,withExtensionAsLink:c}},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}},a.date={getDateInfo:function(e){if(e){var t,r=new Date(e ),n={giorno della settimana:"lungo",anno:"numerico",mese:"lungo",giorno:"numerico"},o={giorno della settimana:"lungo",anno:"numerico",mese:"lungo" ,giorno:"numerico",ora:"numerico",minuto:"numerico",secondo:"numerico"},i=["Dom","Lun","Mar","Mer","Gio"," ven","sab"],s=["gen","feb","mar","apr","mag","giu","lug","ago","set","ott" ,"nov","dic"],c=["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre"," ottobre","novembre","dicembre"];return{raw:r.getTime(),data:r,mese:r.getMonth()+1,giorno:r.getDate(),anno:r.getFullYear( ),monthDayYear:r.getMonth()+1+"/"+r.getDate()+"/"+r.getFullYear().toString().substr(2,2),formattedDate:r.toLocaleString(" en-us",n),formattedDateTime:r.toLocaleString("en-us",o),shortMonth:s[r.getMonth()],longMonth:c[r.getMonth()],formattedTime:r.toLocaleTimeString ("it-it",{ora:"2 cifre",minuti:"2 cifre"}),ago:a.date.getAgo(r),agoFriendly:a.date.getAgoFriendly(r),shortDay: i[r.getDay()],longDay:null===(t=a.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(),n=Math.round(r/1e3),a=Math.round(n /60),o=Math.round(a/60),i=Math.round(o/24),s=Math.round(i/7),c=Math.round(i/30);return n <=0?"now":n<60?n.toString()+"s":a<60?a.toString()+"m":o<24?o.toString()+"h": i<7?i.toString()+"d":s<5?s.toString()+"w":c.toString()+"mo"}},getAgoFriendly:function(e){var t= Date.now();if(e){var r=t-e.getTime(),n=Math.round(r/1e3),a=Math.round(n/60),o=Math.round(a/ 60),i=Math.round(o/24);return n<=0?"Oggi":n<60?"Oggi":a<60?"Oggi":o<24?"Oggi":o> =24&&o<48?"Ieri":i<7?"Ultimi 7 giorni":i>=7&&i<14?"Ultimi 14 giorni":i>=14&&i<30?"Ultimi 30 giorni":i>=30&&i< 90?"Ultimi 90 giorni":i>=90&&i<365?"Quest'anno":"Da sempre"}},getTicks:function(e){if(e)return parseFloat(e.toString().replace(/ \D/g,""))},getDuration:function(){var e=arguments.length>0&&void 0!==argomenti[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),n=r.split(": ");return{raw:e,hours:+n[0],minutes:+n[1],seconds:+n[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:"Mer"},{dayFull:"Thursday",dayAbbr:"Th",dayLongAbbr:"Thurs"},{dayFull:"Friday",dayAbbr:"F",dayLongAbbr:"Fri "},{dayFull:"Saturday",dayAbbr:"S",dayLongAbbr:"Sat"}]},getDayOfWeek:function(e){return a.date.getDayOfWeekArray()[e]},getTimeOptions:function() {for(var e=[],t=function(e){return e.toString().padStart(2,"0")},r=0;r<2;r++)for(var n=r? "PM":"AM",a=0;a<12;a++)for(var o=0;o<60;o+=15){var i=r?a+12:a;e.push({ label:"".concat(a||12,":").concat(t(o)," ").concat(n),value:"".concat(t(i),":"). concat(t(o),":00"),minutes:60*i+o})}return e}},a.user={getFileID:function(e){return e.toString().split(" ").reverse().join("")},getProfileImage:function(e,t,r){var n=e>0?"homesnap.users":"homesnap.noimage",o="//s3 .amazonaws.com/"+n+"/",i=e>0?o+a.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 n,e=e?e.trim() :null,t=t?t.trim():null;return n=e||(t||(r||" ")),{first:e,last:t,firstOrLast:n,full:e&&t ?e+" "+t:n,initials:e&&t?e.charAt(0).toUpperCase()+t.charAt(0).toUpperCase():n.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+=a.string.reverse(e.toString()),{listingAds:"".concat(t,"_2064x1080.jpg"), grande:"".concat(t,"_2000x640.jpg"),medio:"".concat(t,"_1000x320.jpg"),piccolo:"".concat(t,"_500x160.jpg")}}, getRatingStars:function(e,t){for(var r="",n="",a=(Math.round(2*e)/2).toFixed(1),o=t?Math.floor( 5-a):Math.ceil(5-a),i=a%1!=0&&t?'star_half ':"",s=0;sstella';for(var c=0;cstar_outline';return"".concat(r).concat(i).concat(n)}},a.brand={getImage:function(e,t,r){var n="//s3.amazonaws. com/homesnap.brands/"+a.string.reverse(e.toString())+"_";return{aspectRatio:t,url:{default:n+"aspect.png",light:n+"light_aspect.png ",dark:r?n+"dark_aspect.png":null}}}},a.conversationMessageItem={filterHTML:function(e){function t(e){return n.innerHTML=e,e=n.textContent, n.textContent="",e}var r=document.implementation.createHTMLDocument(""),n=r.createElement("div");return function(e){if(e&&"string"==tipo di e) {for(var r=t(e);e!==r;)e=r,r=t(r);return r}}(e)}},a.conversation={getDate:function(t) {if(t){var r=nuova data,n=a.data.getDateInfo(t),o=nuova data(t);if(r.getFullYear()===o.getFullYear()&&r.getMonth( )===o.getMonth()&&r.getDate()===o.getDate())return n.conversationLong=n.formattedTime,n.conversationShort=n.formattedTime,n;if(r.setDate(r. getDate()-1),r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate())return n. conversazioneLong="Ieri ".concat(n.formattedTime),n.conversationShort="Ieri",n;return o>new Date(r.getFullYear(),r.getMonth(),r.getDate()-6)? (n.conversationLong="".concat(e[o.getDay()]," ").concat(n.formattedTime),n.conversationShort=e[o.getDay()],n):(n.conversationLong ="".concat(n.monthDayYear," ").concat(n.formattedTime),n.conversationShort=n.monthDayYear,n)}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 immagine allegata]"):e.entity&&(t.length&&(t+=" "),t+="[".concat(a.user.getFriendlyName(e.entity,!0),"]")),t},getTitle:function(e){var t="Me";if( e&&e.members&&e.members.length){var r=e.members.length,n=e.members.map(function(e,t){return a.user.getFriendlyName(e,1===r||1 ===e.entityID)});1===r?t=n[0]:2===r?t="".concat(n[0]," & ").concat(n[ 1]):3===r?t="".concat(n[0],", ").concat(n[1]," & ").concat(n[2]):(t= "".concat(n[0],", ").concat(n[1],", ").concat(n[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. latestMessage.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(a.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")}}},a.listing={mappatura:{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 }",a.string.reverse(r.toString())),s=s.replace("{listingidreversed}",a.string.reverse(t.toString()))):(n("RootURL AkamaiListingImagesURLFormat is undefined"),"")},getImageSet:function(e,t){var r=this,n={};return Object.entries(this.mapping).forEach(function(a){var o=_slicedToArray (a,2),i=o[0],s=o[1];n[i]=r.getImage(s,e,t)}),n},getPrimaryImage:function(e,t){ return this.getImageSet(e,t)},getSecondaryImages:function(e,t){for(var r=[],n=0;n')}else if(o){var g;u.priority=20,u.color="viola",u.pinName="viola",u.primaryColor="viola",u.pinHex="00B100", u.text="Open House",i&&(u.text="Apri ".concat(i)),l&&null!==(g=l.method)&&void 0!==g&&g.virtual&&(u.text=" Live ",a.listing.isOpenHouseNow(l)?u.text+="Ora ":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 Affitto":"In vendita";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,n=e.income/12*e.debtToIncome-e.monthlyDebts;n=n.toFixed(10);var a=+(e.annualPropertyTax/12).toFixed(10)+ + (e.annual HomeownersInsurance/12).toFixed(10)+ +(e.annualMortgageInsurance/12).toFixed(10)+e.hoaFees;a=parseInt(a,10);var o=Math.pow(1+t ,r);o=+o.toFisso(10);var i=(o-1)/(t*o)||0;return i=+i.toFisso(10),e.anticipo+(n-a)* i},isOpenHouseNow:funzione(e){var t,r,n,a;if(!e||"oggetto"!=tipo di 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=nuova data,c=s.getTime();null!==(n=e.startDateUtc)&&void 0!==n&&n.raw&&null!==( a=e.endDateUtc)&&void 0!==a&&a.raw&&(c+=6e4*s.getTimezoneOffset());var l=new Date(o).getTime(),u=new Date(i).getTime() ;return c>=l&&c<=u}},a.themes={_locked:!1,_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,t){var r;if(this._locked)return"locked";var n=null!==(r=Object.keys(e).filter(function(t){return!0===e[t]})[ 0])&&void 0!==r?r:"none",a=this.mapping[n];return(2!==window.Homesnap.coStarBrand||a!==this.mapping.nyc)&&( this.load(a),this._current=a,t&&(this._locked=!0),!0)},load:function(e){$("html").attr("data-theme", e),e===this.preset||$("link[".concat(this.key,"='").concat(e,"']")).length||a.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){a.handlebars.loadCSS(e?"".concat(e):" paint/paint.css")},set:function(e,t,r,n,a){var o=document.documentElement.style;e&&t&&o&&(o.setProperty("--".concat(e,"- hex"),t),"numero"==tipo di r&&"numero"==tipo di n&&"numero"==tipo di a&&(o.setProperty("--".concat(e,"-hue"),"" .concat(r)),o.setProperty("--".concat(e,"-sat"),"".concat(n,"%")),o.setProperty("--".concat( e,"-lte"),"".concat(a,"%"))))}},converters:{rgb2hsl:function(e,t,r){var n=Math.max(e,t, r),a=n-Math.min(e,t,r),o=1-Math.abs(n+n-a-1),i=a&&(n===e?(t-r)/a:n ===t?2+(r-e)/a:4+(e-t)/a);return[60*(i<0?i+6:i),o?a/o:0,(n+n-a )/2]}}},a.propertyAddress={getAddress:function(e,t,r,n,a){var o,i,s,c,l;return{fullStreetAddress:e,fullStreetAddressWithoutUnit:this.getFullStreetAddressWithoutUnit (e,t),unitNumber:t?{raw:t,string:"#"+t}:null,city:r,state:n,zip:a,cityState:(r?r+", ":"" )+(n?n+" ":""),cityStateCap:(r?r+", ":"")+(n?n+" ":"")+(a||""),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===(c=s.split(" "))||void 0===c?void 0:null===(l=c.splice(1))||void 0===l?void 0:l.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":"Letti"}: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),n="$"+r.toLocaleString();t&&2==t&&(n+="/mo");var a;return r<1e4?a=r.toLocaleString( ):r<999500?(a=Math.round(r/1e3).toString(),a+="K"):r<105e4?a="1M":r<9995e4?(a=(Math.round (r/1e5)/10).toFixed(1).toString(),a+="M"):(a=Math.round(r/1e6).toString(),a+="M"),t&&2= =t&&(a+="/mo"),{raw:e,dollars:n,short:"$"+a}}return null},getPropertyStatus:function(e,t,r){var n={color: "blue",pinName:"blue_pin",primaryColor:"blue",secondaryColor:null,text:t||"Off-Market",pinHex:"006DC7"};if(r)switch(!0){case r .expired:n.text="Scaduto";break;caso r.canceled:n.text="Annullato";break;caso r.withdrawn:n.text="Ritirato";break;caso r.hold:n. text="Hold"}return n},getSPropertyType:function(e){if(e){var t;switch(e){case 1:t="Detached";break;case 2:t="Townhouse"; break;caso 4:t="Condomino";break;caso 16:t="Plurifamiliare";break;caso 32:t="Lotti/Terreni";break;caso 64:t="Mobile/Fabbricato"; break;case 128:t="Commerciale";break;case 256:t="Co-op";break;case 8:default:t="Altro"}return{raw:e,string:t}}return null },getClusterColors:function(e,t,r){var n={fill:"#4392CE",stroke:"#3589CF"};return e&&(t?(n.fill="#F1CC39",n.stroke ="#E5BE37"):2==(2&e)?(n.fill="#F37F21",n.stroke="#D76C25"):4==(4&e)?(n.fill="#E02844" ,n.stroke="#9A1B1E"):1==(1&e)&&(r?(n.fill="#00B100",n.stroke="#00B100"):(n.fill="#71bf44" ,n.stroke="#538c32"))),n},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),{tipo:t,id:r}}},getPageTitle:funzione(e ){var t=e.address?"".concat(e.address.fullStreetAddress,", ").concat(e.address.cityStateZip):"",r=a.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 n in t)t.hasOwnProperty(n)&&(r+=t[n].Value+" - "+t[n].Label,r+="|");return{raw:e ,small:e.replace("{w}","320").replace("{h}","160").replace("{color0}","00A3E1").replace("{color1} ","56BBE1").replace("{colore2}","abddf0").replace("{colore3}","cccccc")+"&chdl="+r.slice(0,-1)}}, getStatusBadges:funzione(e){funzione t(e,t,r){this.text=e,this.color=t,this.secondaryColor=r}var r=[];if(e.listing){if( e.listing.specialFeatures.comingSoon){var n=new t("Prossimamente","#fac332","");r.push(n)}else{var o,i,s=2===e .transactionType.raw;if(e.listing.sListingStatus.active)o=s?"In affitto":"In vendita",i="#00b100";else if(e.listing.sListingStatus.contract)o=s ?"In sospeso":"Contratto",i="#ff7f17";else if(e.listing.sListingStatus.sold)o=s?"Rented":"Venduto",i="#f71200";else if(( e.listing.sListingStatus.inactive||e.listing.sListingStatus.removed)&&(i="#006DC7",o="Off-Market",e.listing.mlsStatus)){var c=e.listing.offMarketDate ?" ".concat(e.listing.offMarketDate.shortMonth," ").concat(e.listing.offMarketDate.day):"";switch(!0){case e.listing.mlsStatus.expired:o="Expired" .concat(c);break;case e.listing.mlsStatus.canceled:o="Annullato".concat(c);break;case e.listing.mlsStatus.withdrawn:o="Withdrawn".concat(c); break;case e.listing.mlsStatus.hold:o="Hold".concat(c)}}var l=new t(o,i,null);r.push(l)}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 ",a.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=a.coStarBrand.is("citysnap")?"#b0b0b0":"#6b758a",h =new t("Solo appuntamento",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="Scaduto".concat(x);break;case e.attributes.mlsStatus.canceled:S="Annullato".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){ caso 1:restituzione "Lis Pendens";caso 2:restituzione"Notifica di inadempienza";caso 4:restituzione t?"Avviso di preclusione":"Avviso di preclusione vendita";caso 8:restituzione t?"Avviso di vendita":" Avviso di vendita fiduciaria";caso 32:restituzione"Affidavit avviso di vendita pubblicato o spedito";caso 64:restituzione"Annullato";caso 128:restituzione"Certificato di acquisto/certificato di pignoramento registrato";caso 256:restituzione"Riprogrammazione dell'ordine Data di vendita di pignoramento";causa 512:restituzione"Sentenza di preclusione iscritta";causa 2048:restituzione"Denuncia appena depositata";causa 4096:restituzione"Ordine di licenziamento/annullamento/rilascio della litispendenza";causa 8192:restituzione"Procura per pignorare un mutuo";caso 16384:restituzione"Avviso di inadempienza riregistrato";caso 32768:restituzione"Sentenza definitiva di pignoramento riregistrata";caso 65536:restituzione"Avviso di liti pendenti riregistrato";caso 131072:restituzione "Ordine di licenziamento riregistrato"; caso 524288: restituzione "NFNS aggiornato con informazioni sulla vendita riprogrammate"; -Avviso di vendita registrato";case 8388608:return"Standalone Mortgage";case 1073741824:return"Other";default:return null}}},a.js={dedupeHashTables:function(e,t,r){var n ={add:[],keep:[],remove:[]};return e&&0!=e.length?t&&0!=t.length?(e.each(function(e,a){t.hasItem(e )?r&&!r(a,t.getItem(e))?(n.remove.push(e),n.add.push(e)):n.keep.push(e):n.remove.push (e)}),t.each(function(t,r){e.hasItem(t)||n.add.push(t)})):n.remove=e.keys():t&&t.length >0&&(n.add=t.keys()),n},round:funzione(e,t){return Number(Math.round(e+"e"+t)+"e-"+t)}} ,a.map={getXYbyLatLng:function(e,t,r){if(isNaN(parseFloat(e))||isNaN(parseFloat(t))||isNaN(parseInt(r,10)))return null; var n=parseInt(256*Math.pow(2,r-1)+t*(256*Math.pow(2,r)/360)),a=Math.sin(e*Math.PI/180) ;restituisce a<-.9999&&(a=-.9999),a>.9999&&(a=.9999),{x:n,y:parseInt(256*Math.pow(2,r-1)+.5 *Math.log((1+a)/(1-a))*(-256*Math.pow(2,r)/(2*Math.PI)))}},getLatLngByPixel:funzione(e,t ,r){if(isNaN(parseInt(e,10))||isNaN(parseInt(t,10))||isNaN(parseInt(r,10)))return null;var n=e*(360/( 256*Math.pow(2,r)))-180,o=t*(2/(256*Math.pow(2,r)));return o=1-o,o*=Math.PI, o=a.map.getRadiansByDegrees(Math.atan(Math.sinh(o))),{lat:o,lng:n}},getRadiansByDegrees:function(e){return e*(180/Math.PI)} ,getDistance:function(e,t,r,n,a){if(isNaN(parseFloat(e))||isNaN(parseFloat(t))||isNaN(parseFloat(r))||isNaN(parseFloat(n )))return null;var o=Math.PI*e/180,i=Math.PI*r/180,s=t-n,c=Math.PI*s/180,l=Math.sin(o)* Math.sin(i)+Math.cos(o)*Math.cos(i)*Math.cos(c);return l=Math.acos(l.toPrecision(14)),l=180*l/Math .PI,l=60*l*1.1515,"K"==a&&(l*=1.609344),"N"==a&&(l*=.8684),l},getDecodedPolygon:funzione(e){var t =funzione(e){for(var t=e.split("$"),r=[],n=0;n-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);a.coStarBrand.is("citysnap")&&(e=e.filter(function(e){return 0 ===e||e>19e4}));for(var n=e.map(function(e){return{value:e,label:e<=1e6?"$".concat(a.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 c=15e3;c<=2e4;c+=1e3)o.push(c); o.push(1e8),a.coStarBrand.is("citysnap")&&(o=o.filter(function(e){return 0===e||e>900}));var l=o. map(funzione(e){return{valore:e,label:e<1e4?"$".concat(a.string.getShortNumber(e)):"$".concat((e/1e3).toString() ,"K")}}),u={vendita:{min:n.fetta(0,-1),max:n.fetta(1)},affitto:{min:l.fetta(0,-1 ),max:l.fetta(1)}};return u.sale.max[u.sale.max.length-1]={etichetta:"$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 n=r. map(function(e){return{value:e,label:e}}),a={min:_toConsumableArray(n).reverse(),max:n};return a.max.unshift({label:" Any",value:3e3}),a.min.unshift({label:"Any",value:0}),a}},a.savedSearches={getSavedSearchUrl:function(e){var t,r=e .sd.getUrl(),n="",a="";if(null!==(t=e.boundaryEntities)&&void 0!==t&&t.length){if(a="/p_",1 ===e.boundaryEntities.length){var o=e.boundaryEntities[0];a+="".concat(o.entityType,",").concat(o.entityID)}else e.boundaryEntities.forEach( function(e){a+="(".concat(e.entityType,",").concat(e.entityID,")")});n=1===e.boundaryEntities.length?e.boundaryEntities [0].url:"/areas"}else if(e.boundaryEntity){switch(e.boundaryEntity.type_){case"HSAreaItem":a="/p_(21,".concat(e.boundaryEntity.areaID ,")");break;case"HSSchool":a="/p_(26,".concat(e.boundaryEntity.id,")");break;case"HSStreetArea":a="/p_(51 ,".concat(e.boundaryEntity.id,")")}n=e.boundaryEntity.url}var i="";if(e.bounds&&e.bounds.center){var s=e.bounds.center( );i="/c_".concat(s.lat.toString(),",").concat(s.lng.toString())}var c="/b_".concat(e.bounds.north ,",").concat(e.bounds.east,"-").concat(e.bounds.south,",").concat(e.bounds.west),l="";e.criteria&&e. policies.filters&&e.criteria.filters.shape&&e.criteria.filters.shape.encodedPolygons&&void 0!==e.criteria.filters.shape.encodedPolygons&&(l="/cp_".concat(encodeURIComponent(e.criteria.filters.shape. codificatiPoligoni)));var u="";if(e.commuteTimePlaces){u="";for(var p=0;p0?t.push("".concat(n.minimum.toString(),"+ letti")):n.maximum===n.minimum?t.push("".concat(n.minimum.toString ()," Letti")):n.minimum>0&&n.maximum<100&&t.push("".concat(n.minimum.toString(),"-").concat(n.maximum.toString()," Letti"));var a=r.filters&&r.filters.baths?r.filters.baths:{};0===a.minimum&&1===a.maximum?t.push("0-1 bagni") :1===a.minimo&&2===a.massimo?t.push("1-2 Bagni"):2===a.minimo&&3===a.massimo?t.push("2-3 Bagni "):3===a.minimo&&4===a.massimo?t.push("3-4 Bagni"):4===a.minimo&&5===a.massimo?t.push("4- 5 Baths"):5===a.minimum&&50===a.maximum?t.push("5+ Baths"):0===a.minimum&&0===a.maximum?t.push("0 Baths"):50===a.maximum&&a.minimum>0?t.push("".concat(a.minimum.toString(),"+ Baths")):void 0!==a.minimum&&a.maximum ===a.minimum?t.push("".concat(a.minimum.toString()," Baths")):a.minimum>0&&a.maximum<50&&t.push("".concat(a.minimum .toString(),"-").concat(a.maximum.toString()," Baths"));var o=r.filters&&r.filters.price?r.filters.price:{};if(o. minimo&&o.minimo.raw>0&&o.massimo&&o.massimo.raw<1e8?t.push("".concat(o.minimo.short," - ").concat(o.massimo.breve)):o.massimo&&o. maximum.raw<1e8?t.push("<".concat(o.maximum.short)):o.minimum&&o.minimum.raw>0&&t.push(">".concat(o.minimum.short)), r&&r.filters&&r.filters.date)switch(r.filters.date){case 1:t.push("Oggi");break;case 2:t.push("Over 1 Week");break;case 3: t.push("Oltre 1 mese");break;case 4:t.push("Oltre 3 mesi");break;case 5:t.push("Oltre 6 mesi");break;case 6:t. push("Più di un anno");break;case 7:t.push("Settimana passata");break;case 8:t.push("Mese passato");break;case 9:t.push("Mese passato 3 mesi");break;case 10:t.push("Ultimi 6 mesi");break;case 11:t.push("Anno passato");break;case 12:t.push("Domani"); break;caso 13:t.push("Questa settimana");break;caso 14:t.push("Sabato");break;caso 15:t.push("Domenica");break;caso 16:t. push("Questo weekend");break;case 17:t.push("This Week");break;case 18:t.push("Prossimo weekend")}return t=t.join(", "), e&&e.boundaryEntity?"HSAreaItem"===e.boundaryEntity.type_?t+=" in ".concat(e.boundaryEntity.name):"HSSchool"===e.boundaryEntity.type_?t+=" vicino a ".concat (e.boundaryEntity.name):"HSStreetArea"===e.boundaryEntity.type_&&(t+=" on ".concat(e.boundaryEntity.name)):e&&e.encodedPolygons&&(t+=" nell'area personalizzata "),t }},a.data={base64ToArrayBuffer:function(e){if(e){for(var t=e.replace(/^data\:([^\;]+)\;base64,/gim," "),r=atob(t),n=r.length,a=new Uint8Array(n),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?(a.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(n){var o="stringa"==typeof e[n]?e[n].replace(/^\s+|\s+$/ g,""):e[n];"object"==tipo di o?a.data.update(o,t,r):o===t&&(e[n]=r)})}}, a.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",n=0;switch(e.forEach(function(e){n+=a.byte.length(e)}) ,r){case"B":return n;case"KB":return+(n/1024).toFixed(3);default:return+(n/1024/1024).toFixed(3)}}},a. entityContent={getKeyFrameUrl:function(e,t){return"https://s3.amazonaws.com/homesnap.entitycontents/".concat(a.string.reverse(e.toString()),"_"). concat(t,".jpg")},getDataUrl:function(e,t){return"https://s3.amazonaws.com/homesnap.entitycontents/".concat(a.string.reverse(e.toString( )),"_").concat(t,".mp4")}},a.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(in basso a destra, #87BAFF 0%, #005EA8 100%)"},t.icon={color:a.path.getImageUrl("/listing-promos/fb-coloured-256px. png"),colorSM:a.path.getImageUrl("/listing-promos/fb-coloured-70px-2x.png"),white:a.path.getImageUrl("/listing-promos/fb-white-70px- 2x.png"),grey:a.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(in basso a destra, #7D3CAF 0%, # B33393 100%)"},t.icon={color:a.path.getImageUrl("/listing-promos/ig-coloured-256px.png"),colorSM:a.path.getImageUrl("/listing-promos/ ig-coloured-70px-2x.png"),bianco:a.path.getImageUrl("/listing-promos/ig-white-70px-2x.png"),grigio:a.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(in basso a destra, #E07C3D 0%, #E23A3A 100%)"},t.icon={color:a. path.getImageUrl("/listing-promos/google-coloured-256px.png"),colorSM:a.path.getImageUrl("/listing-promos/google-coloured-70px-2x.png"),white:a. path.getImageUrl("/listing-promos/google-white-70px-2x.png"),grey:a.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", gradiente:"gradiente lineare(313,13 gradi, #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={colore:a.path.getImageUrl ("/listing-promos/waze-coloured-256px-1.png"),colorSM:a.path.getImageUrl("/listing-promos/waze-coloured-70px-2x-1.png"),white:a .path.getImageUrl("/listing-promos/waze-white-70px-2x.png"),grey:a.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}},a.leads={getNetwork:function(e,t ){var r=Object.assign({},a.ads.getPlatformType(a.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:" ",bianco:"",grigio:""},e){case 0:r.name="Sconosciuto";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="Annunci di Servizi locali di Google"}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}},a.styles={getProp:function(e) {var t;return!(!window||null===(t=document)||void 0===t||!t.documentElement)&&window.getComputedStyle(document.documentElement).getPropertyValue(e)}} ,a.application={parseQueryString:function(e){for(var t,r,n=/(?:\?|\&)([^(\=|\&)]+)(?:\= ([^&]+))?/g;t=n.exec(e);)r=r||{},"stringa"==tipo di 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||"stringa"!=typeof e)return null;var t=/^(http:|https :)?(?:\/\/)?(([^\/\:]+)?(?:(?:\:)([\d]+))?)?(\/[^\ s\?]*)(\?[^\#\s]+)?(\#\S+)?$/i,r=e.match(t);return r?{protocollo: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)}},a.path={getImageUrl:function(){var e=arguments.length>0&&void 0!==argomenti[ 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()}},a.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, n,a=null===e||void 0===e?void 0:null===(r=e.agentDetails)||void 0===r?void 0:null===(n =r.dettagli intermediazione)||void 0===n?void 0:n.entityID;if((null===t||void 0===t||!t.withBrokerageID)&&null!==t&&void 0 !==t&&t.url&&a)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=",a),a&&window.location.replace("".concat(window.location.origin).concat(t.url)),!1}},a .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("&" ),n="".concat(window.location.origin).concat(window.location.pathname,"?").concat(r);window.location.replace(n)}},a.showing={ getStylesBasedOnStatus:function(e){var t=a.coStarBrand.is("citysnap"),r={mapMarkerFill:t?"#000000":"#006DC7"};if(e.status.cancelled)r.dataStatusBadge ="rosso",r.spanTextColor="bs4--text-google-red",r.spanIcon="cancel",r.pText="Annullato";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. confermato)r.dataStatusBadge="green",r.spanTextColor="bs4--text-google-green",r.spanIcon="check_circle",r.pText="Confermato";else if(e.status.external) {var n,o=e.service||(null===(n=e.listing)||void 0===n?void 0:n.service)||{},i="Sconosciuto"; 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?"Gestito all'esterno di Homesnap":"Gestito 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. in sospeso?"In sospeso":"Non programmato"):e.status.rejected?(r.dataStatusBadge="red",r.spanTextColor="bs4--text-google-red",r.spanIcon="cancel",r .pText="Rifiutato"):e.status.none&&(r.dataStatusBadge="gray",r.spanTextColor="bs4--text-gray-300",r.spanIcon="watch_later",r.pText=" No Status");return r}},a.coStarBrand={_current:window.Homesnap&&window.Homesnap.coStarBrand,_internalDictionary:function(){var e=arguments.length>0&&void 0!==argomenti[0]?argomenti[ 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:[]}}}},a}),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&&"funzione "==typeof Object.assign||Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null===e)throw new TypeError("Impossibile convertire undefined o null all'oggetto");for(var r=Object(e),n=1;n>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=funzione(e){var t,n,r,o,i=e. lunghezza%3,u="";funzione a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.lunghezza-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;caso 2:u+=a((n=(e[e.lunghezza-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"!=tipo di self?self:"undefined"!=tipo di finestra?window:{},e("buffer" ).Buffer,argomenti[3],argomenti[4],argomenti[5],argomenti[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:[funzione(O,e,H){(funzione(e,t,g,n,r, o,i,u,a){var s=O("base64-js"),f=O("ieee754");funzione g(e,t,n){if(!(questa istanza di g))return new g(e,t,n);var r,o,i,u,a,s=tipo di mi;if("base64"===t&&"stringa"==s)for(e=(r=e .trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("numero" ==s)o=x(e);else if("stringa"==s)o=g.byteLength(e,t);else{if("oggetto"!=s)throw new Error("Primo argomento deve essere un numero, un array o una stringa.");o=x(e.length)}if(g._useTypedArrays?i=g._augment(new Uint8Array(o)):((i=this).length= o,i._isBuffer=!0),g._useTypedArrays&&"number"==tipo di e.byteLength)i._set(e);else if(S(a=e)||g.isBuffer(a)||a&& "oggetto"==tipodia&&"numero"==tipodia.lunghezza)for(u=0;u>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}funzione c(e,t,n){var r= "";n=Math.min(e.length,n);for(var o=t;o>>0)):(t+1>>0),o}funzione h(e,t,n,r){if(r||(D("boolean"==tipo di n,"endian mancante o non valido"),D(null!=t, "offset mancante"),D(t+1>>8*(r?u:1-u)}funzione _(e,t,n,r,o){o||(D(null!=t,"valore mancante"),D("booleano" ==tipo di r,"endian mancante o non valido"),D(null!=n,"offset mancante"),D(n+3>>8*(r?u:3-u)&255}funzione E(e,t,n,r,o){o||(D(null!=t,"valore mancante"),D("valore booleano "==typeof r,"endian mancante o non valido"),D(null!=n,"offset mancante"),D(n+1this.length&&(r=this.length),e.length-t=this.length))return this[e]},g.prototype.readUInt16LE=funzione(e,t){return l(this,e,!0,t)},g.prototype.readUInt16BE=funzione(e, t){return l(this,e,!1,t)},g.prototype.readUInt32LE=funzione(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,"offset mancante "), D(es=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=funzione(e,t){return h(this, e,!0,t)},g.prototype.readInt16BE=funzione(e,t){return h(this,e,!1,t)},g.prototype.readInt32LE=funzione(e,t){return p(this,e,!0,t)},g.prototype.readInt32BE=funzione(e,t){return p(this,e,!1,t)},g.prototype.readFloatLE=funzione(e, t){return b(this,e,!0,t)},g.prototype.readFloatBE=funzione(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. prototipo.writeUInt8=funzione(e,t,n){n||(D(null!=e,"valore mancante"),D(null!=t,"offset mancante"),D(t=this.length||(this[t]=e)},g.prototype.writeUInt16LE=funzione(e,t,n){v(this,e,t,!0,n)},g.prototype. writeUInt16BE=funzione(e,t,n){v(questo,e,t,!1,n)},g.prototype.writeUInt32LE=funzione(e,t,n){_(questo,e,t,! 0,n)},g.prototype.writeUInt32BE=funzione(e,t,n){_(this,e,t,!1,n)},g.prototype.writeInt8=funzione(e,t,n) {n||(D(null!=e,"valore mancante"),D(null!=t,"offset mancante"),D(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},g.prototype.writeInt16LE=funzione(e, t,n){E(questo,e,t,!0,n)},g.prototype.writeInt16BE=funzione(e,t,n){E(questo,e,t,!1,n)}, g.prototype.writeInt32LE=funzione(e,t,n){I(this,e,t,!0,n)},g.prototype.writeInt32BE=funzione(e,t,n){I(this,e ,t,!1,n)},g.prototype.writeFloatLE=funzione(e,t,n){A(this,e,t,!0,n)},g.prototype.writeFloatBE=funzione(e, t,n){A(questo,e,t,!1,n)},g.prototype.writeDoubleLE=funzione(e,t,n){B(questo,e,t,!0,n)}, g.prototype.writeDoubleBE=funzione(e,t,n){B(this,e,t,!1,n)},g.prototype.fill=funzione(e,t,n){if(e=e ||0,t=t||0,n=n||this.length,"stringa"==tipo di e&&(e=e.charCodeAt(0)),D("numero"==tipo di e&&!isNaN( e),"il valore non è un numero"),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 non supportato in questo browser");if(g._useTypedArrays)return new g(this .buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.lunghezza||o>=e.lunghezza);o++)t[o+n]=e[o];return o}funzione M(e){try{return decodeURIComponent(e)}catch(e){ return String.fromCharCode(65533)}}funzione N(e,t){D("number"==typeof e,"impossibile scrivere un non-numero come numero"),D(0<=e,"specificato un valore negativo per la scrittura di un valore senza segno"),D(e<=t,"il valore è maggiore del valore massimo per il tipo"),D(Math.floor(e)===e,"il valore ha una componente frazionaria") }funzione Y(e,t,n){D("numero"==tipodi e,"impossibile scrivere un non-numero come numero"),D(e<=t,"valore maggiore del valore massimo consentito") ,D(n<=e,"valore minore del valore minimo consentito"),D(Math.floor(e)===e,"il valore ha una componente frazionaria")}funzione F(e,t,n){ D("numero"==tipodi e,"impossibile scrivere un non-numero come numero"),D(e<=t,"valore maggiore del valore massimo consentito"),D(n<=e,"valore minore del valore minimo consentito")}funzione 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:"non definito"!=tipo di finestra?finestra:{},O("buffer").Buffer,argomenti[3],argomenti[4],argomenti[5],argomenti[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:[funzione(l,d,e){(funzione(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 )),funzione(e,t,n){for(var r=new u(t),o=n?r.writeInt32BE:r.writeInt32LE,i=0;ih?t=e(t):t.lunghezza>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u>>32-a,n);var u,a}funzione d(e,t,n,r,o,i,u){return l(t&n|~t&r,e,t,o,i,u) }funzione h(e,t,n,r,o,i,u){return l(t&r|n&~r,e,t,o,i,u)}funzione p(e,t,n,r, o,i,u){return l(t^n^r,e,t,o,i,u)}funzione g(e,t,n,r,o,i,u){return l(n^ (t|~r),e,t,o,i,u)}funzione 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"!=tipo di self?self:"undefined"!=tipo di finestra?finestra:{},w("buffer").Buffer,argomenti[3],argomenti[4],argomenti[5],argomenti[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:[funzione(e,l,t){(funzione(e,t,n,r,o,i,u,a,s){var f,c;c=funzione(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 "!=tipo di finestra?window:{},e("buffer").Buffer,argomenti[3],argomenti[4],argomenti[5],argomenti[6],"/node_modules/gulp-browserify/node_modules/ crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[funzione(l,d,e){( funzione(e,t,n,r,o,i,u,a,s){var f=l("./helpers");funzione 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}funzione 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:"non definito"!=tipo di finestra?window:{},l("buffer").Buffer,argomenti[3],argomenti[4],argomenti[5],argomenti[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:[funzione(l,d,e){(funzione(e,t,n,r,o,i,u,a,s){funzione B(e,t){var n=(65535&e)+ (65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}funzione L(e,t){return e>>>t|e<<32 -t}funzione 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,2 64347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,358452 8711,113926993,338241895 ,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3 345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,153700206 3,1747873779,1955562222 ,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),h=nuovo array(1779033703,3144134277,1013904242,2773 480762,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"!=tipo di self?self:"undefined"!=tipo di finestra?finestra:{},l ("buffer").Buffer,argomenti[3],argomenti[4],argomenti[5],argomenti[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:[funzione(e,c,t){(funzione(e, t,n,r,o,i,u,a,s){funzione f(){}(e=c.exports={}).nextTick=funzione(){var e="undefined"!=tipo di finestra&&finestra .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+=re,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(){D.add("mobileTabs",new y.ChildController({type:"controllers/MobileTabBar",namespace:k.get(),register:{bubble:o}}),!0),M.updateController("mobileTabs",{$dom:U.divNavbarMobile,data:{pro:N}})}function u(){R.newsFeedDropdown||(D.get("newsFeed")||D.add("newsFeed",new y.ChildController({type:"controllers/NewsFeedDropdown",namespace:k.get(),register:{bubble:o}})),M.updateController("newsFeed",{$dom:U.liNewsFeed}),R.newsFeedDropdown=!0)}function p(){R.messagesDropdown||(D.get("conversations")||D.add("conversations",new y.ChildController({type:"controllers/ConversationsDropdown",namespace:k.get(),register:{bubble:o}})),M.updateController("conversations",{$dom:U.liMessages}),R.messagesDropdown=!0)}function m(){R.agentsDropdown||(D.add("agents",new y.ChildController({type:"controllers/AgentsDropdown",namespace:k.get(),register:{bubble:o}}),!0),M.updateController("agents",{$dom:U.liAgents,data:{pro:N}}),R.agentsDropdown=!0)}function g(){R.meDropdown||(D.add("currentUser",new y.ChildController({type:"controllers/CurrentUserDropdown",namespace:k.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||(D.add("brand",new y.ChildController({type:"controllers/BrandItem",namespace:k.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||(D.add("proPlus",new y.ChildController({type:"controllers/Header/ProPlusDropdown",namespace:k.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")}),D.add("impersonationHeader",new y.ChildController({type:"controllers/ImpersonationHeader",namespace:k.get(),register:{bubble:o}})),M.updateController("impersonationHeader",{$dom:a,data:{impersonatedUser:n}})}}),R.impersonationHeader=!0)},!0)}function h(e){D.add("stickyNotification",new y.ChildController({type:"controllers/StickyNotification",namespace:k.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&&(D.get("brand").event("updateLogo",{transparent:!1}),U.divBrandLogo.css("backgroundColor","#ffffff"))):0===n.fold.top&&(U.nav.removeClass("affix"),l(!0),R.brand&&(D.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)),D.event(e,n)}var w=e("Application"),y=e("ControllerObjects"),B=e("Utilities");e("bootstrap");var k=new y.Unique(n),S=new y.Callbacks,D=new y.ChildControllerManager,M=new y.StateManager(D);D.add("search",new y.ChildController({type:"controllers/MultiAreaSearch/Manager",namespace:k.get(),register:{bubble:o}}));var U,T,L,N,x,A,P,F={template:new y.Getter({namespace:k.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=B.coStarBrand.is("citysnap"),E={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")}},X={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")}},G={on:function(){M.$dom.find("nav").addClass("transparent-nav"),l(!0),R.brand&&(D.event("updateLogo",{transparent:!0}),U.divBrandLogo.css("backgroundColor","transparent"))},off:function(){M.$dom.find("nav").removeClass("transparent-nav"),l(!1),R.brand&&(D.event("updateLogo",{transparent:!1}),U.divBrandLogo.css("backgroundColor","#ffffff"))}},J={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")}},K={on:function(){M.$dom.hide()},off:function(){M.$dom.show()}},Q={on:function(){D.get("search").event("commuteTimeBanner.status",!0)},off:function(){D.get("search").event("commuteTimeBanner.status",!1)}};return w.getAppMode(function(e){B.themes.set(e)}),{update:r,restore:function(e){M.restore(e,a)},uninit:function(){D.uninit()},getState:M.getState.bind(M),register:S.register.bind(S),event:C}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Header.js.map?hash=472dccee1e085f50bc5d3c4e6f25b97ddefine("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(){p=void 0;var e=(new Date).getFullYear();s.$dom&&f.get({$dom:s.$dom,data:{hide:s.get("hide",!1),year:e,showIDXDisclaimer:s.get("showIDXDisclaimer")}})}function a(e){var t=e.$dom,o=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),p=function(e){l.getIDXBrand(function(n){e&&!n&&o.showIDXDisclaimer&&t.idxDisclaimer.removeClass("bs4--d-none")})},p(),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,f=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){"headerBrand.showByTenX"===e&&p&&p(!0),u.event(e,t)}}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Footer.js.map?hash=9d33811c6675575b12ff2844acf24bb0define("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=H.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),O.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?H.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," "))}funzione 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)}funzione 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("secondaryBanner.color). -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}),O .exists("click")&&O.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("dimensione-sfondo","copertina"),w.style.setProperty("immagine-sfondo","url(".concat(b,")"),"importante")}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&&u.slyContainer.length ?L=nuova finestra.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:funzione(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():"object"==tipo di L&&"funzione"==tipo di L.reload&&L.reload(),l=H.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,_(document).on("mouseup.".concat(t) ,function(e){_(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),funzione(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()}funzione m( ){var e;null!==(e=B)&&void 0!==e&&e.id&&a({type:"listing.hover.show",data:{pa:B}})}funzione v(e,t ){e&&e.spanFavorite.length&&t&&t.item&&(E.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}}))}funzione 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),v(S,{item:B}))}funzione 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}funzione f(t,r){e(["modules/MLSIDXInfo"],function(e){e.getMLSInfo(t,function(){var e=arguments.length>0&&void 0!==argomenti [0]?arguments[0]:{},t=e.idxBits||{},i=e.features||{};if(t.showIdxLogo&&r.divIDXLogo.length){var s=_(' ').attr("src",e.brand.image.url.default).attr("alt",e.longName).attr("loading","lazy");s.addClass("bs4-- img-fluid bs4--h-auto"),s.css({"aspect-ratio":e.brand.image.aspectRatio,"max-height":"40px",width:"auto","max- width":"75px"}),r.divIDXLogo.html(s).removeClass("bs4--d-none").addClass(" bs4--position-absolute").css({bottom:"18px" ,right:"14px"})}i.showByTenXOnHomesnap&&H.getCurrentUser(function(e){var t,r=(null===e||void 0===e?void 0:e.user)||{ };null!==(t=r.permissions)&&void 0!==t&&t.mlsAgent||r.clientDetails||a({type:"reflect",name:"headerBrand.showByTenX"})})}) })}funzione w(){if(S&&S.slyContainer.length&&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"==tipo di L&&"funzione"==tipo di L. reload)){var e=L.rel.centerItem;L.reload(),L.toCenter(e,!0)}}}funzione 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)}E.event(e,t)}var S,B,I,k,x,C, P,A,T,D,F,L,$=e("ControllerObjects"),z=e("Objects"),U=e("Utilities"),H=e("Application"),_= (e("sly"),e("jquery")),M=e("lodash"),N=nuovo $.Unique(t),O=nuovo $.Callbacks,E=nuovo $.ChildControllerManager,V =new $.StateManager(E,{}),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. Errore non gestito del servizio Web")}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(),E.uninit()},getState:V.getState.bind(V),register:O.register .bind(O),event:b}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyAddressItem.js.map?hash=029ef2f1414c76b194f39c2433f1ca8ddefine("controllers/ Property/PropertyFavorite",["require","ControllerObjects","Objects","Application"],function(e){return function(t){function r(e){v.call("bubble",e) }funzione o(){try{p.requireDom(),p.require("propertyAddressItem"),p.optional("showText")}catch(e){throw e}y.template.get({$dom: p.$dom,data:{propertyAddressItem:p.get("propertyAddressItem"),showText:p.get("showText",!0)}})}funzione n(e){var t,r=e.$ dom,o=e.data.propertyAddressItem,n={propertyAddressID:o.id,propertyID:o.propertyID?o.propertyID:0,listingID:null!==o&&void 0!==o&&null!==(t=o .listing)&&void 0!==t&&t.id?o.listing.id:null},s=g.get(!1,"favoriteItems",60),c=n.propertyAddressID;c+=n.propertyID?" ::".concat(n.propertyID):"",c+=n.listingID?"::".concat(n.listingID):"",s&&(s.favorites.indexOf(c)>-1?a (!0,n,o,r,c,!1):s.notFavorites.indexOf(c)>-1&&a(!1,n,o,r,c,!1)),r.buttonFavorite.on( "click",function(){return i(r,n,o,c),!1}),r.spanFavoriteText.on("click",function(){return i(r,n,o,c) ,!1})}funzione i(t,o,n,c){F.done(function(){return s.registrationStatus.registered?(!0===t.buttonFavorite.data("favorite-status" )?y.unFavorite.get({data:o,success:function(e){e.data&&a(!1,o,n,t,c,!0)}}):y.favorite.get({data :o,success:function(r){!r.data||!0!==r.data.success&&!0!==r.data.alreadyFavorite||(a(!0,o,n,t, c,!0),e(["modules/FBDare"],function(e){void 0!==e&&e.fbDareEvent("InitiateCheckout",[o.listingID])})),"function"==typeof gtag&>ag("event","listing_favorited")}}),!1):({type:"account.mode",callback:function(){d.getCurrentUser(function(e){var r,a; null!==e&&null 0!==e&&null!==(r=e.user)&&void 0!==r&&null!==(a=r.registrationStatus)&&void 0!==a&&a.registered&&i(t,o,n ,c)},!0)}}),!1)})}funzione a(e,t,o,n,i,a){var s=g.get(!1,"favoriteItems",60) ;if(n.buttonFavorite.data("favorite-status",e).find("span").text(e?"star":"star_border"),n.buttonFavorite.attr("aria-label", e?"Click to Unfavorite":"Click to Favorite"),n.spanFavoriteText.text(e?"UnFavorite":"Favorite"),a){if(r({type:"reflect",name:"propertyFavoriteStatus .updated",data:{favoriteStatus:e,ids:t,propertyAddressItem:o}}),s){var c=s.favorites.indexOf(i),u=s.notFavorites.indexOf(i);c> -1&&s.favorites.splice([c],1),u>-1&&s.notFavorites.splice([u],1)}else s={favorites:[],notFavorites:[]};s[e?" favorites":"notFavorites"].push(i),g.set(!1,"favoriteItems",s)}!a&&!e&&s&&s.notFavorites.indexOf(i)>-1&&r({type:"favoriteProperty.remove" ,data:{favoriteStatus:e,ids:t,propertyAddressItem:o}})}var s,c=e("ControllerObjects"),u=e("Oggetti"),d=e("Applicazione"),l =nuovo c.Unique(t),v=nuovo c.Callbacks,f=nuovo c.ChildControllerManager,p=nuovo c.StateManager(f,{}),y={template:nuovo c.Getter({namespace:l .get(),success:function(e){try{n(e)}catch(e){throw p&&console.info(p),e}},failure:function(){throw p&&console.info(p), new Error("PropertyFavorite controller: Unhandled Error")},template:{url:"controllers/Property/PropertyFavorite.html",dom:["spanFavoriteText","buttonFavorite"]}}),favorite:new c.Getter( {type:u.HSPropertyAddressesFavoriteErrorCodeEnum,webService:"/service/PropertyAddresses/Favorite_2",namespace:l.get(),success:function(e){try{n(e)}catch(e){throw p&&console.info( p),e}},failure:function(){try{throw new Error("PropertyFavorite controller: Favorite. Errore non gestito del servizio Web")}catch(e){throw void 0!==p&&null!==p&&console.info(p),e}},cache:{expire:0}}),unFavorite:new c.Getter({ type:Boolean,webService:"/service/PropertyAddresses/Unfavorite",namespace:l.get(),success:function(e){try{n(e)}catch(e){throw p&&console.info(p), e}},failure:function(){try{throw new Error("PropertyFavorite controller: Unhandled Webservice Error")}catch(e){throw void 0!==p&&null!==p&&console.info(p), e}},cache:{expire:0}})},g=new u.LocalStorage("Property/PropertyFavorite"),F=function(){var e=$.Deferred();return d.getCurrentUser(function (t){s=t.user,e.resolve()}),e}();return{update:function(e){p.update(e),o()},restore:function(e) {p.restore(e,o)},uninit:function(){f.uninit()},getState:p.getState.bind(p),register:v.register.bind(v),event:function( e,t){f.event(e,t)}}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyFavorite.js.map?hash= b6192efd5cf931cf4f57144065c9eec7define("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)})}funzione o(){z.$dom.container.addClass("open")}funzione i(){z.$dom.container.removeClass("open")}funzione c() {i(),z.$dom.input.val("")}funzione 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())}funzione 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()}funzione 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:"Ricerche salvate",items:t.data,divider:!0})),u(e)}})}funzione d(e,t){if(I.handlebars.getPartialHTML("hsLoadingGraphic", funzione(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})}}funzione 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}funzione h(e){return F.filter(function(t){return"object"==typeof e&&(t.Id=== e.entityID||t.Id===e.id)}).length>0}funzione 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:"Ricerche salvate",items:p(a.savedSearches),multiAreaReset:n}),a[0]&&a[0].type_&&"HSSavedSearch"===a[0].type_&&t.push({header: "Ricerche salvate",items:a.savedSearches,multiAreaReset:n}),a.areas&&a.areas.length&&F.length<5&&t.push({header:"Luoghi",items:p(a.aree)}),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:"Case",items:p(r),multiAreaReset:n}),o.length&&t.push({header: "Edifici",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?"Spiacente, puoi solo":"Puoi"," cercare fino a 5 aree"),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),"funzione"!=tipodi t?a:(t(a), !1)}funzione 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)}funzione 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}})}funzione k(){G.uninit()}funzione A (e,t){var a;switch(e){case"location.new":t.lat&&t.lng&&(M={latitudine: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.longitudine,l=o.latitudine;i.forEach(funzione(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(" oggetti"),D=e("Applicazione"),I=e("Utilità"),R=e("SearchDefinitions"),j=e("modules/SearchRecentSearches"),P=e("modules/MLSAccounts "),U=nuovo O.Unique(t),E=nuovo O.Callbacks,G=nuovo O.ChildControllerManager,z=nuovo O.StateManager(G),N={data:nuovo 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=funzione(){var e=$.Deferred();return P.getAccounts(funzione(t){Y=t,e.resolve()}),e}(),K =!(null===(C=navigatore)||void 0===C||!C.geolocalizzazione);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=fe0916444e058e927889b8409c1f498ddefine("controllers/UserItem",["require","ControllerObjects"],function(e){return function(t){function n(e){s .call("bolla",e)}funzione r(e){d.update(e),a()}funzione a(){var e;try{d.requireDom(),d.require("userItem" ),d.require("userItem","IUserItem"),d.optional("link"),d.optional("useConsumerViewDisplayPhone"),d.optional("showUserLocation")}catch(e){throw e} var t,n=d.get("userItem");if(d.get("subhead",!0)){var r,a,o;"string"==typeof d.get("subhead", !0)?t=d.get("subhead"):null!==(r=n.agentDetails)&&void 0!==r&&r.brokerage?t=n.agentDetails.brokerage:null!==(a= n.agentDetails)&&void 0!==a&&null!==(o=a.office)&&void 0!==o&&o.name&&(t=n.agentDetails.office.name)}var i;d.get("brand" ,!1)&&(i=n.brand),c.template.get({$dom:d.$dom,data:{image:d.get("image"),user:n,subhead:t, showUserLocation:d.get("showUserLocation"),termometer:d.get("termometro",!1),badge:d.get("badge"),note:d.get("nota"),brand:i ,chevron:d.get("chevron"),license:d.get("license",!1),useConsumerViewDisplayPhone:d.get("useConsumerViewDisplayPhone",!1)&&!(null===(e=n .agentDetails)||void 0===e||!e.consumerViewDisplayPhone)}})}funzione o(e){var t,r,a=e.$dom,o=e.data||{}, s=o.user||{},c=o.useConsumerViewDisplayPhone;if(!d.get("link",!0)||s.status.doesNotHaveProfile||c)a.aName.length&&a.aName.on ("click",function(e){return n({type:"url.unhandled",url:$(e.currentTarget).attr("href"),data:s}),!1});else {var m,g,h=null!==s.entityType||null!==s.entityID&&0!==s.entityID?s.entityType:2;g=60===h?s.entityGuid:s .entityID?s.entityID:s.userID;var b;b=null!==(m=s.agentDetails)&&void 0!==m&&m.urlName?"/".concat(s.agentDetails.urlName):" /entity/".concat(h,"/").concat(g).concat(d.get("promoSource")?"?utm_source=".concat(d.get("promoSource")):"" ),a.a.on("click",function(e){return n({type:"url.unhandled",url:b,data:s}),!1}).attr("href",b)} o.image&&(u.add("image",new i.ChildController({type:"controllers/UserProfileImage",namespace:l.get(),register:{bubble:n}}),!0),d. updateController("image",{$dom:a.divImage,data:{userItem:s,cssClass:"paint-second-background",link:!!c}})),o.badges&&(u.add(" badges",new i.ChildController({type:"controllers/Badges",namespace:l.get(),register:{bubble:n}}),!0),d.updateController("badges",{$dom :a.divBadges,data:{badge:o.badges,classes:"small"}})),d.get("brand",!1),o.thermometer&&null!==(t=s.agentDetails)&&void 0!==t&&null!==(r=t.activity)&&void 0!==r&&r.percentages&&(u.add("termometro",new i.ChildController({type:"controllers/UserThermometer",namespace:l. get(),register:{bolla:n}}),!0),d.updateController("termometro",{$dom:a.divThermometer,data:{termometro:s.agentDetails.activity.percentages}})) ,a.divPhoneNumber.length&&a.divPhoneNumber.on("click",function(){n({type:"userItem.phoneNumberClicked"})})}var i=e("ControllerObjects"),l=new i.Unique (t),s=nuovo i.Callbacks,u=nuovo i.ChildControllerManager,d=nuovo i.StateManager(u,{}),c={template:nuovo i.Getter({namespace:l.get(), success:function(e){try{o(e)}catch(e){throw d&&console.info(d),e}},template:{url:"controllers/UserItem.html",dom:["a" ,"aName","divImage","divText","divThermometer","divBrand","divBadges","divPhoneNumber"]}})};return{update:r,restore:function(e){d.restore (e,a)},uninit:function(){u.uninit()},getState:d.getState.bind(d),register:s.register.bind(s),event:function(e,t) {u.event(e,t)}}}});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/UserItem.js.map?hash=e62a817c3f9f35c4fd269e08a1bc224ddefine("modules/ErrorLogging ",["require"],funzione(i){funzione o(i){var o,n,d,r,l,t,v=[null!==(o=null===i||void 0===i?void 0:null===(n=i.userID)||void 0===n?void 0:n.toString())&&void 0!==o?o:"", null!==(d=null===i||void 0===i?void 0:null===(r=i.entityID)||void 0===r?void 0:r.toString ())&&void 0!==d?d:"",null!==(l=null===i||void 0===i?void 0:null===(t=i.entityType) ||void 0===t?void 0:t.toString())&&void 0!==l?l:""],u={userId:v.join(" | ")};void 0!==window.TrackJS?window.TrackJS.configure(u):(window._trackJs&&(u.token=window._trackJs.token),window._trackJs=u)}return{errorLogConfig:o }});//# sourceMappingURL=https://assets.homesnap.com/app/js_min/modules/ErrorLogging.js.map?hash=901eda350904ec30d42718991d31df53define("modules/SearchRecentSearches",["require","Objects", "Utilità"],funzione(e){funzione t(){return c||(c=r()||[]),c}funzione r(){return d.get(!0,n,525600) }funzione i(){var e=t();d.set(!0,n,e)}funzione a(e){var r=t();if("object"==typeof e&&e.type_) {for(var a,s=0;so&&(r.length=o),i(),!0}}return!1}funzione s(e){return t().slice(0,e)}var c,S=e("Oggetti") ,n=(e("Utilità"),"Ricerche"),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=d94413680150e9c1019ebc5348325f67 Scarica L'App
Oppure mandami il link
{{/with}}';Homesnap.templates["controllers/DownloadMobileAppForm.html"] = '{{#with data}}{{/with}}';Homesnap.templates["controllers/Footer.html"] = '{{#con dati}}{{/with}}';Homesnap.templates["controllers/generic.html"] = 'Passa al contenuto principale ';Homesnap.templates["controllers/Header.html"] = '{{#con dati}} {{#theme "empire"}}Logo Citysnap{{else}} Logo Homesnap {{/theme}}
{{!-- {{http://bootsnipp.com/snippets/featured/fancy-navbar-login-sign-in-form-- }} --}} Registrati Registrazione {{^tema "impero"}} {{/tema}} (Video) Jaguar sends WARNING to Tiffany Haddish regarding Common! Pt. 5
{{/with}}';Homesnap.templates["controllers/Property/PropertyAddressItem.html"] = '{{#con dati}}{{/with}}';Homesnap.templates["controllers/Property/PropertyFavorite.html"] = '{{#with data}}{{#if showText}}{{#if propertyAddressItem.status.isFavorited}}Rimuovi dai preferiti{{else}}Preferiti{{/if}} {{/if}}{{/with}}';Homesnap.templates["controllers/SearchDropdown.html"] = '{{#with data}}{{#each this}}{{#if header}}{{intestazione}} {{/if}}{{#each elementi}}{{#compare type_ "HSAreaItem"}} {{nome}} {{#compare areaTypeID 1}}Stato {{/compare}} {{#compare areaTypeID 2}} {{#if state}}{{stato}} {{altro}}Zona Metropolitana {{/if}} {{/compare}} {{#compare areaTypeID 3}}{{stato}} {{/compare}} {{#compare areaTypeID 4}}Città/Paese {{/compare}} {{#compare areaTypeID 5}}Cerniera lampo {{/compare}} {{#compare areaTypeID 6}}{{#if uspsCity}}{{uspsCity}}, {{/if}}{{state}} {{/compare}} {{#unless status.hasMLSCoverage}}Avvisami quando disponibile {{/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 "giallo"}}• {{/compare}}{{#compare propertyStatus.color "viola"}}• {{/compare}}{{#compare propertyStatus.color "green"}}• {{/confrontare}}{{address.cityStateZip}} {{else compare type_ "HSSchool"}}{{name}}{{indirizzo.città}}, {{indirizzo.stato}} {{else compare type_ "HSStreetArea"}}{{name}}{{nome.area}} {{else compare type_ "HSSavedSearch"}}{{name}}{{#if summary}}{{{riepilogo}}} {{/if}}{{else compare type_ "CommuteTimeBanner"}}Trova case per tempo di percorrenza {{else compare type_ "HSIPLocation"}}Posizione attuale{{else compare type_ "notClickable"}}{{name}}{{else compare type_ "ListingCarts"}}elenco Carrelli di elenchi importati{{else compare type_ "SavedSearches"}}ricerca Ricerche salvate importate{{/compare}}{{#if autocompleteStatus.farFromBoundary}}Troppo distanti. {{else if autocompleteStatus.notCombinable}}Zona non cumulabile. {{else if ../multiAreaReset}}Cancella ed esegui questa ricerca {{/Se}} {{#if @last}}{{#compare type_ "HSSavedSearch"}}Altre ricerche salvate {{/compare}}{{/if}}{{/each}}{{#if divisore}}{{/se altro}} Nessun risultato
Prova uno di questi:
(Video) Jaguar Wright alleges that Diddy is a "S*X Trafficker"! Pt. 1
Indirizzo Città/Paese Cap Quartiere Nome della strada MLS# {{/each}}{{/with}}';Homesnap.templates["controllers/UserItem.html"] = '{{#with data}}{{#if useConsumerViewDisplayPhone}}{{#if immagine}}
{{/Se}}
{{#if useConsumerViewDisplayPhone}}
{{#if agentDetails.doingBusinessAs}} {{user.agentDetails.doingBusinessAs}} {{else if user.agentDetails.agentDisplayName}} {{user.agentDetails.agentDisplayName}} {{else}} {{user.name.full }} {{/if}} {{#if useConsumerViewDisplayPhone}}a{{else}}div{{/if}}>{{#and license user.agentDetails.license}}{{user.agentDetails.license}} {{/and}} {{#if termometro}} {{/if}} {{#if useConsumerViewDisplayPhone}} {{user.agentDetails.consumerViewDisplayPhone.phone.withExtension}} {{/if}} {{#if sottotitolo}}
{{{subhead}}}
{{/if}} {{#e showUserLocation user.agentDetails.office.address.cityState}}
{{{user.agentDetails.office.address.cityState}}}
{{/and}} {{#if badge}}
{{/Se}}
{{#if marca}}
{{else if chevron}}
tastiera_freccia_destra
{{/if}} {{#if nota}}
{{Nota}}
{{/if}}{{#if useConsumerViewDisplayPhone}}div{{else}}a{{/if}}>{{/with}}';