"Last 30 Days":i>=30&&i<90? (Ge.polygon.bounds=new google.maps.LatLngBounds,Ge.polygon.bounds.extend({lat:l.south,lng:l.west}),Ge.polygon.bounds.extend({lat:l.north,lng:l.east})):Ge.polygon.bounds=A(Ge.polygon.polygon),Ge.polygon.type=t,Ge.polygon.data=l,v()}break;case"MultiAreaItem":var c,u,p;if(null===a||void 0===a||!a.data||Array.isArray(a.data))return;var m=a.data.item,y=null===a||void 0===a?void 0:null===(c=a.data)||void 0===c?void 0:c.fit;b(),T(Ge.polygon.marker),y&&g();var M=[],H=[];if(Ge.polygon.bounds=new google.maps.LatLngBounds,Ge.polygon.polygon=null!==m&&void 0!==m&&m.length&&Ge.polygon.polygon?Ge.polygon.polygon:[],Array.isArray(m)&&m.forEach(function(e){var t,o;if("HSStreetArea"===(null===e||void 0===e?void 0:e.type_)&&null!==(t=e.segments)&&void 0!==t&&t.length){var a=null===e||void 0===e?void 0:e.segments.map(function(e){return e});H=H.concat(a)}else if(null!==e&&void 0!==e&&e.polygon)M.push(e.polygon);else if(null!==e&&void 0!==e&&null!==(o=e.zones)&&void 0!==o&&o.length){var n=e.zones.map(function(e){return e.polygon})[0];n&&M.push(n)}e.north&&e.south&&e.east&&e.west&&(Ge.polygon.bounds.extend({lat:e.south,lng:e.west}),Ge.polygon.bounds.extend({lat:e.north,lng:e.east}))}),H.length){var z=H.map(function(e){return google.maps.geometry.encoding.decodePath(e)});Ge.polygon.polygon=Ge.polygon.polygon.concat(P({paths:z}))}if(M.length){var D=O(M);Ge.polygon.polygon=Ge.polygon.polygon.concat(x({paths:D,fit:y}))}y&&ce.fitBounds(E(Ge.polygon.bounds,y.percent));var B=a.data.item.filter(function(e){return 26===e.entityType});if(B.length){var R;We.multiAreasSchools.data=Ge.multiAreasSchools.data,Ge.multiAreasSchools.data=new ve.HashTable,B.forEach(function(e){Ge.multiAreasSchools.data.setItem(e.id.toString(),e)});var j=fe.js.dedupeHashTables(We.multiAreasSchools.data,Ge.multiAreasSchools.data);null!==j&&void 0!==j&&null!==(R=j.remove)&&void 0!==R&&R.length&&j.remove.forEach(function(e,t){var o=Ge.multiAreasSchools.markers.getItem(e);o&&(T(o),Ge.multiAreasSchools.markers.removeItem(e))}),e(["modules/MapCustomMarker"],function(e){var t;if(void 0===e||null===e)return!1;if((null===j||void 0===j?void 0:null===(t=j.add)||void 0===t?void 0:t.length)>0){var n,s=function(t,a){function n(e,t){_({latLng:t,marker:Ge.multiAreasSchools.markers.getItem(e.id.toString()),data:e,onClick:function(e,t,a){o({type:"url.unhandled",url:e&&e.hasPolygon&&t?e.polygonUrl:e.url,data:e,polygon:t,details:a})}})}var s=new google.maps.LatLng(t.latitude,t.longitude);return new e.School(s,a,t,!0,n)};null===j||void 0===j||null===(n=j.add)||void 0===n||n.forEach(function(e){var t=Ge.multiAreasSchools.data.getItem(e);if(!1!==a.marker&&t.latitude&&t.longitude){var o=s(t,ce);Ge.multiAreasSchools.markers.setItem(t.id.toString(),o)}})}})}else Ge.multiAreasSchools.data.length&&S();1===m.length&&fe.ajax.isType(m[0],"HSSchool")&&(null===(u=m[0])||void 0===u||null===(p=u.zones)||void 0===p||!p.length)&&m[0].latitude&&m[0].longitude&&(ce.setCenter({lat:m[0].latitude,lng:m[0].longitude}),ce.setZoom(Pe.get("nonPolygonZoom",18))),Ge.polygon.type=t,Ge.polygon.data=m;break;case"HSSchool":if(a&&a.data&&Array.isArray(a.data)){We.schools.data=Ge.schools.data,a.ui&&a.ui.schools&&(Ge.ui.schools=a.ui.schools),Ge.schools.data=new ve.HashTable;for(var K=0;K0;Ge.polygon.polygon.forEach(function(o){google.maps.geometry.poly.containsLocation(t,o)&&!n&&Ge.schools.data.setItem(e.id.toString(),e)})}}();var N=fe.js.dedupeHashTables(We.schools.data,Ge.schools.data);if(N&&N.remove&&N.remove.length>0)for(var V=0;V0&&e(["modules/MapCustomMarker"],function(e){if(void 0===e||null===e)return!1;for(var t=0;t0){var X=U.zones.reduce(function(e,t){return t.polygon&&(e=e||[],e.push(t.polygon)),e},void 0),Y=O(X);Ge.polygon.polygon=x({paths:Y,fit:q}),U.north&&U.south&&U.east&&U.west? Phone: (703) 957-4325 . )/g;return"string"==typeof e?e.match(t):null}},a.date={getDateInfo:function(e){if(e){var t,r=new Date(e),n={weekday:"long",year:"numeric",month:"long",day:"numeric"},o={weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];return{raw:r.getTime(),date:r,month:r.getMonth()+1,day:r.getDate(),year:r.getFullYear(),monthDayYear:r.getMonth()+1+"/"+r.getDate()+"/"+r.getFullYear().toString().substr(2,2),formattedDate:r.toLocaleString("en-us",n),formattedDateTime:r.toLocaleString("en-us",o),shortMonth:s[r.getMonth()],longMonth:c[r.getMonth()],formattedTime:r.toLocaleTimeString("en-us",{hour:"2-digit",minute:"2-digit"}),ago:a.date.getAgo(r),agoAsDays:a.date.getAgoAsDays(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? (a.title="Show List",a.replaceChild(s,n),a.style.paddingRight="5px"):(e=!1,a.title="Hide List",a.replaceChild(n,s),a.style.paddingRight="0"),Ce.call("listToggle",e)})}function ae(e,t){var o=document.createElement("div");o.className="mobile-list-toggle-btn bs4--rounded-circle mr-20",e.appendChild(o);var a=document.createElement("button");a.className="bs4--mt-auto bs4--border-0 bs4--bg-transparent paint-base-font",a.innerHTML="List",a.title="Toggle Search List",a.setAttribute("data-hide-status",!1),o.appendChild(a),a.addEventListener("click",function(){var e=a.getAttribute("data-hide-status");a.setAttribute("data-hide-status","false"===e),Ce.call("listToggle","false"===e)})}function ne(e){if(Ie){var t=Ge.paItems.markers.getItem(e.toString());t||(t=Ge.listingGroups.markers.getItem(e.toString())),t&&t.listingMarker.click()}else Ce.register("clickWhenMapReady_",function(){var t=Ge.paItems.markers.getItem(e.toString());t&&t.listingMarker.click()})}function se(e){if(ce&&ce.getZoom()<16)return!1;if(e&&e.group&&e.value){var t=Me.getHeatMapCriteria(e.group,e.value)||{};e.sectionKey=t.sectionKey,e.colors=t.colors,e.sectionValues=t.sectionValues}if(e&&e.sectionKey!=Ge.heatMaps.sectionKey&&Ge.heatMaps.polygon&&Ge.paItems.markers.each(function(e,t){var o=t;o.polygon&&o.setVisibility(!1)}),e&&null===e.sectionKey&&Ge.heatMaps.polygon)ie();else{var o=0;for(var a in Ge.paItems.data.items){if(!Ge.paItems.data.items.hasOwnProperty(a))return;var n=Ge.paItems.data.items[a],s=n[0]||null,i=null,l=null;if(! Ten-X holds real estate
licenses in all 50 states and D.C.
§ 442-H New York Standard Operating Procedures
New York Fair Housing Notice TREC: Information about brokerage services, Consumer protection notice
California DRE #01937601
Contact Ten-X Brokerage