":"&","hash=").concat(n,"&v=").concat(i)),require(["jquery"],function(t){if(!t("link[href='".concat(e,"']")).length){var a=t("head");if(a.length){var n=t('').attr("href",e);a.append(n),null!==o&&void 0!==o&&o.key&&null!==o&&void 0!==o&&o.value&&n.attr(o.key,o.value)}}"function"==typeof r&&r()})})}},o.ui={getWindowSize:function(e){return e>=1200?"lg":e>=992?"md":e>=768?"sm":"xs"},belowthefold:function(e,t,r,a){return(a&&a.offset()?a.offset().top+a.height():(t[0].innerHeight?t[0].innerHeight:t.height())+t.scrollTop())<=e.offset().top-(r||0)},rightoffold:function(e,t,r,a){return(a&&a.offset()?a.offset().left+a.width():t.width()+t.scrollLeft())<=e.offset().left-(r||0)},abovethetop:function(e,t,r,a){return(a&&a.offset()?a.offset().top:t.scrollTop())>=e.offset().top+(r||0)+e.height()},leftofbegin:function(e,t,r,a){return(a&&a.offset()?a.offset().left:t.scrollLeft())>=e.offset().left+(r||0)+e.width()},inviewport:function(e,t,r,a){return!(!e||!e.length)&&! {{#if district}} The {{#compare level "==" 1}}elementary{{else compare level "==" 2}}middle{{else compare level "==" 3}}high{{/compare}} school is part of the {{district.name}}. Unhandled Webservice Error")}catch(e){throw void 0!==E&&null!==E&&console.info(E),e}}})},O={},V=$.coStarBrand.is("citysnap"),G=300,q=_.debounce(function(){m()},450);return{update:i,restore:function(e){E.restore(e,o)},uninit:function(){U.uninit()},getState:E.getState.bind(E),register:N.register.bind(N),event:f}}}); "Managed Outside Homesnap":"Managed in ".concat(n),t.externalService=n}else e.status.pending||e.status.unscheduled?(t.dataStatusBadge="orange",t.spanTextColor="bs4--text-google-orange",t.spanIcon="watch_later",t.pText=e.status.pending?"Pending":"Unscheduled"):e.status.rejected? School data is provided by GreatSchools. ".concat(e.attributes.offMarketDate.shortMonth," ").concat(e.attributes.offMarketDate.day):"";switch(!0){case e.attributes.mlsStatus.expired:b="Expired".concat(v);break;case e.attributes.mlsStatus.canceled:b="Canceled".concat(v);break;case e.attributes.mlsStatus.withdrawn:b="Withdrawn".concat(v);break;case e.attributes.mlsStatus.hold:b="Hold".concat(v)}}var w=new t(b,"#006DC7",null);r.push(w)}return r},getOwnershipTypeAttributeDescription:function(e){switch(e){case 1:return"Absentee - In state";case 2:return"Absentee - Out of state";case 4:return"Corporate";case 8:return"Owner Occupied";default:return null}},getDistressedAttributeDescription:function(e){switch(e){case 1:return"Lis Pendens";case 2:return"Notice Of Default";case 4: (e.indexOf("homesnap.s(")>=0))return null;try{var t=e.indexOf("{"),r=e.lastIndexOf("}"),a=e.substring(t,r+1),n=JSON.parse(a),o=n.Response.Results.Data.Row.GEOMETRY,c=/[\d\-\.,\s]{5,}/g;matches=o.match(c);for(var s=[],i=0;ithis.maxZoom||a0;n--){var o="0",c=1<1||t.pa[0].propertyCount&&t.pa[0].propertyCount.raw>1){m.setAttribute("viewBox","0 0 20 35"),r.generateSVGCode(m,l,n,u),m.querySelector(".svgCenterCircle")&&m.querySelector(".svgCenterCircle").remove();var C=document.createElementNS(e,"path");C.setAttribute("fill-rule","evenodd"),C.setAttribute("clip-rule","evenodd"),C.setAttribute("d","M7.32422 15.7878H9.29268V13.9299H7.32422V15.7878ZM7.32422 13.2656H9.29268V11.4086H7.32422V13.2656ZM7.32422 10.744H9.29268V8.88696H7.32422V10.744ZM10.7051 15.8026H12.6744V13.9447H10.7051V15.8026ZM10.7051 13.281H12.6744V11.424H10.7051V13.281ZM10.7051 10.7596H12.6744V8.90259H10.7051V10.7596ZM6 16.6887H14V8.00146H6V16.6887Z"),C.setAttribute("fill",u),m.appendChild(C)}else if(m.setAttribute("viewBox","0 0 20 35"),r.generateSVGCode(m,l,n,u),t.pa&&t.pa[0]&&t.pa[0].status&&t.pa[0].status.isFavorited){m.querySelector(".svgCenterCircle")&&m.querySelector(".svgCenterCircle").remove();var A=document.createElementNS(e,"path");A.setAttribute("fill-rule","evenodd"),A.setAttribute("clip-rule","evenodd"),A.setAttribute("d","M10 6.00293L11.1226 9.45784H14.7553L11.8164 11.5931L12.9389 15.048L10 12.9128L7.06107 15.048L8.18364 11.5931L5.24472 9.45784H8.87743L10 6.00293Z"),A.setAttribute("fill",u),m.appendChild(A)}else if(t.pa&&t.pa[0]&&t.pa[0].listing&&t.pa[0].listing.openHouse&&t.pa[0].listing.openHouse.method.virtual){var L=document.createElementNS(e,"circle");L.setAttribute("cx","10.0599"),L.setAttribute("cy","11.4999"),L.setAttribute("r","1.5"),L.setAttribute("fill","#ffffff");var S=document.createElementNS(e,"path");S.setAttribute("fill-rule","evenodd"),S.setAttribute("clip-rule","evenodd"),S.setAttribute("d","M13.9 11.5253C13.9 10.4549 13.5181 9.44718 12.8464 8.69914C12.625 8.45258 12.2457 8.43218 11.9991 8.65357C11.7525 8.87496 11.7321 9.25431 11.9535 9.50087C12.4264 10.0275 12.7 10.7494 12.7 11.5253C12.7 12.2805 12.4409 12.9849 11.9899 13.5084C11.7736 13.7594 11.8018 14.1383 12.0528 14.3546C12.3038 14.5709 12.6827 14.5427 12.899 14.2916C13.5385 13.5493 13.9 12.5667 13.9 11.5253ZM8.04864 9.49838C8.26865 9.25059 8.24614 8.87136 7.99835 8.65134C7.75056 8.43133 7.37133 8.45384 7.15131 8.70163C6.48085 9.45674 6.09998 10.4726 6.09998 11.5512C6.09998 12.5721 6.44095 13.5375 7.04831 14.2799C7.25812 14.5364 7.63614 14.5742 7.89262 14.3644C8.1491 14.1546 8.18693 13.7766 7.97711 13.5201C7.54603 12.9932 7.29998 12.2965 7.29998 11.5512C7.29998 10.7644 7.5744 10.0325 8.04864 9.49838Z"),S.setAttribute("fill","#ffffff");var x=document.createElementNS(e,"path");x.setAttribute("fill-rule","evenodd"),x.setAttribute("clip-rule","evenodd"),x.setAttribute("d","M16 11.5411C16 9.89071 15.3974 8.34023 14.3414 7.19354C14.1169 6.94979 13.7373 6.93417 13.4936 7.15865C13.2498 7.38313 13.2342 7.76271 13.4587 8.00646C14.3103 8.93115 14.8 10.1913 14.8 11.5411C14.8 12.8548 14.3363 14.0841 13.5245 15.0027C13.3051 15.251 13.3285 15.6302 13.5768 15.8496C13.8251 16.069 14.2043 16.0456 14.4237 15.7973C15.4296 14.659 16 13.147 16 11.5411ZM6.54361 8.00399C6.76673 7.75899 6.74899 7.37951 6.50399 7.15639C6.25899 6.93327 5.8795 6.95101 5.65639 7.19602C4.60153 8.35434 4 9.91858 4 11.5832C4 13.1589 4.53869 14.646 5.49491 15.7857C5.7079 16.0395 6.08636 16.0726 6.34021 15.8596C6.59406 15.6467 6.62718 15.2682 6.41419 15.0143C5.63971 14.0913 5.2 12.8774 5.2 11.5832C5.2 10.2165 5.69064 8.94063 6.54361 8.00399Z"),x.setAttribute("fill","#ffffff"),m.appendChild(L),m.appendChild(S),m.appendChild(x)}if(null!==t&&void 0!==t&&null!==(h=t.pa[0])&&void 0!==h&&null!==(v=h.listing)&&void 0!==v&&null!==(g=v.openHouse)&&void 0!==g&&null!==(f=g.method)&&void 0!==f&&f.virtual){var w=t.pa[0].listing.openHouse,k=w.startDateUtc.raw||w.startDate.raw,M=w.endDateUtc.raw||w.endDate.raw,E=new Date,P=E.getTime();w.startDateUtc.raw&&w.endDateUtc.raw&&(P+=6e4*E.getTimezoneOffset());var H=new Date(k).getTime(),N=new Date(M).getTime();if(P>=H&&P<=N){var D=document.createElementNS(e,"path"),T=m.getElementsByTagName("path")[0];D.setAttribute("d",T.getAttribute("d")),D.setAttribute("fill","#7D12A1"),D.setAttribute("fill-opacity","0.258331512"),D.setAttribute("stroke","#7D12A1"),D.setAttribute("stroke-opacity","0.258331512"),D.setAttribute("stroke-width","10");var _=document.createElementNS(e,"animate");_.setAttribute("attributeType","xml"),_.setAttribute("attributeName","stroke-opacity"),_.setAttribute("begin","0s"),_.setAttribute("values","0;.5;0"),_.setAttribute("dur","3s"),_.setAttribute("repeatCount","indefinite"),D.appendChild(_),m.insertBefore(D,T),m.style.overflowX="visible",m.style.overflowY="visible"}}i.appendChild(m)}var V,F;if(t.pa.length>1){V=t.pa.filter(function(t){return t.listing&&(t.listing.isOpenHouse||t.listing.isAgentOpen)}).length===t.pa.length? define("controllers/schoolItem",["require","ControllerObjects"],function(e){return function(t){function n(e){i.call("bubble",e)}function r(){try{u.requireDom(),u.require("item")}catch(e){throw e}m.template.get({$dom:u.$dom,data:u.get("item")})}function o(e){var t=e.$dom,r=e.data;t.aSchoolName.length&&t.aSchoolName.on("click",function(e){return n({type:"url.unhandled",url:$(e.currentTarget).attr("href"),data:r}),!1})}var a=e("ControllerObjects"),c=new a.Unique(t),i=new a.Callbacks,l=new a.ChildControllerManager,u=new a.StateManager(l,{}),m={template:new a.Getter({namespace:c.get(),success:function(e){try{o(e)}catch(e){throw u&&console.info(u),e}},template:{url:"controllers/SchoolItem.html",dom:["aSchoolName"]}})};return{update:function(e){u.update(e),r()},restore:function(e){u.restore(e,r)},uninit:function(){l.uninit()},getState:u.getState.bind(u),register:i.register.bind(i),event:function(e,t){l.event(e,t)}}}}); ");case 2:return"Browse homes for sale, apartments for rent & more in ".concat(L.locationTitle," on ").concat(I.name,". "".concat(t.cssMainRootPath,"/").concat(e):"".concat(t.cssRootPath,"/").concat(e)}if(t.cssAppHashes&&t.cssRootPath&&0===e.indexOf(t.cssRootPath)){var l=e.replace("".concat(t.cssRootPath,"/"),"").toLowerCase();n=t.cssAppHashes[l]||a}else if(t.cssHashes&&t.cssMainRootPath&&0===e.indexOf(t.cssMainRootPath)){var c=e.replace("".concat(t.cssMainRootPath,"/"),"").toLowerCase();n=t.cssHashes[c]||a}else if(t.cssHashes&&t.cssRootPath&&0===e.indexOf(t.cssRootPath)){var u=e.replace("".concat(t.cssRootPath,"/"),"").toLowerCase();n=t.cssHashes[u]||a}void 0!==n&&""!==n&&(e+="".concat(-1===e.indexOf("?")?"? (Object.keys(e).forEach(function(e){var t=this[e];t&&"object"==typeof t? "Sorry, you can only":"You can"," search up to 5 areas"),type_:"notClickable"}]});for(var i=0;i-1&&(a.searchMode=2);var n=/p_\(? ".5":".5+"),1!=e||t&&0!=t||(r.label="Bath")),r},getSqFt:function(e){return e? Close (o=51,i=L.streetArea.id):null!==(t=L.multiArea.id)&&void 0!==t&&t.length&&(o=[],i=[],L.multiArea.id.forEach(function(e){o.push(e[0]),i.push(e[1])})),H.call("new",{listingCount:{count:e.data.count,truncated:e.data.status.countIsTruncated},clusters:e.data.clusters&&L.zoom<18?e.data.clusters:null,listings:e.data.listings||null,searchDefinition:r,currentZoom:L.zoom,streetArea:L.streetArea||void 0,commuteTimePlaces:L.commuteTime.places,entityType:o,entityID:i,callAppMode:!0})}catch(e){throw L&&console.info(L),e}}})}function h(){var e=l();F.schools.get({data:{latitudeMin:e.south||void 0,latitudeMax:e.north||void 0,longitudeMin:e.west||void 0,longitudeMax:e.east||void 0,skip:0,take:L.counts.listings,polygonType:1}})}function p(e){var t;return{clusters:Math.round(e/15e3),listings:null!==(t=Homesnap)&&void 0!==t&&t.puppeteer?850:Math.round(e/3e3)}}function f(){return L}function g(){if(L.school.id)return"".concat(L.searchDefinition.getTitle()," Near ").concat(L.locationTitle);if(L.area.id&&2===L.area.areaTypeID){var e,t,o=null!==L&&void 0!==L&&null!==(e=L.area)&&void 0!==e&&e.state? define("controllers/SchoolRelatedSchools",["require","ControllerObjects","Objects","bootstrap"],function(e){return function(t){function o(e){d.call("bubble",e)}function r(){try{u.requireDom(),u.require("schoolID"),u.optional("level"),u.optional("count"),u.optional("name")}catch(e){throw e}h.getRelated.get({$dom:u.$dom,data:{schoolID:u.get("schoolID"),level:u.get("level",0),count:u.get("count",10)},success:function(e){var t=null===e||void 0===e?void 0:e.data;t.name=u.get("name"),h.main.get({$dom:u.$dom,data:t})}})}function a(e){var t,r,a,l,n,i,c=e.$dom,h=e.data;c.divGraduateFromSchool&&e.data.from&&u.updateController("graduateFromSchoolItem",{$dom:c.divGraduateFromSchool,data:h.from.map(function(e){return{item:e}})}),c.divGraduateToSchool&&h.to&&u.updateController("graduateToSchoolItem",{$dom:c.divGraduateToSchool,data:h.to.map(function(e){return{item:e}})}),c.divElementarySchool&&h.elementary&&u.updateController("elementarySchoolItem",{$dom:c.divElementarySchool,data:h.elementary.map(function(e){return{item:e}})}),c.divMiddleSchool&&h.middle&&u.updateController("middleSchoolItem",{$dom:c.divMiddleSchool,data:h.middle.map(function(e){return{item:e}})}),c.divHighSchool&&h.high&&u.updateController("highSchoolItem",{$dom:c.divHighSchool,data:h.high.map(function(e){return{item:e}})}),null!==(t=c.divFrom)&&void 0!==t&&t.length&&c.divFrom.find("a").each(function(e,t){var r=$(t),a=r.data("index"),l=h.from[a];r.on("click",function(e){return o({type:"url.unhandled",url:e.currentTarget.getAttribute("href"),data:l}),!1}).attr("href","/schools".concat(l.urlName))}),null!==(r=c.divTo)&&void 0!==r&&r.length&&c.divTo.find("a").each(function(e,t){var r=$(t),a=r.data("index"),l=h.to[a];r.on("click",function(e){return o({type:"url.unhandled",url:e.currentTarget.getAttribute("href"),data:l}),!1}).attr("href","/schools".concat(l.urlName))}),null!==(a=c.divElementary)&&void 0!==a&&a.length&&c.divElementary.find("a").each(function(e,t){var r=$(t),a=r.data("index"),l=h.elementary[a];r.on("click",function(e){return o({type:"url.unhandled",url:e.currentTarget.getAttribute("href"),data:l}),!1}).attr("href","/schools".concat(l.urlName))}),null!==(l=c.divMiddle)&&void 0!==l&&l.length&&c.divMiddle.find("a").each(function(e,t){var r=$(t),a=r.data("index"),l=h.middle[a];r.on("click",function(e){return o({type:"url.unhandled",url:e.currentTarget.getAttribute("href"),data:l}),!1}).attr("href","/schools".concat(l.urlName))}),null!==(n=c.divHigh)&&void 0!==n&&n.length&&c.divHigh.find("a").each(function(e,t){var r=$(t),a=r.data("index"),l=h.high[a];r.on("click",function(e){return o({type:"url.unhandled",url:e.currentTarget.getAttribute("href"),data:l}),!1}).attr("href","/schools".concat(l.urlName))}),c.ulTabList.find("a").on("click",function(e){var t="paint-item-selected paint-first-border-b";$.each(c.ulTabList.find("a"),function(e,o){$(o).attr("aria-selected",!1).removeClass(t)}),$(e.currentTarget).attr("aria-selected",!0).addClass(t)}),0===(null===(i=h.elementary)||void 0===i?void 0:i.length)&&(h.middle.length>0?$("a[href='#".concat(c.divMiddleSchoolContainer[0].id,"']")).trigger("click").attr("aria-selected",!0):h.high.length>0&&$("a[href='#".concat(c.divHighSchoolContainer[0].id,"']")).trigger("click").attr("aria-selected",!0)),d.call("bubble",{type:"url.update"})}var l=e("ControllerObjects"),n=e("Objects"),i=(e("bootstrap"),new l.Unique(t)),d=new l.Callbacks,c=new l.ChildControllerManager,u=new l.StateManager(c,{});c.add("graduateFromSchoolItem",new l.ChildControllerArray({type:"controllers/schoolItem",namespace:i.get(),register:{bubble:o}})),c.add("graduateToSchoolItem",new l.ChildControllerArray({type:"controllers/schoolItem",namespace:i.get(),register:{bubble:o}})),c.add("elementarySchoolItem",new l.ChildControllerArray({type:"controllers/schoolItem",namespace:i.get(),register:{bubble:o}})),c.add("middleSchoolItem",new l.ChildControllerArray({type:"controllers/schoolItem",namespace:i.get(),register:{bubble:o}})),c.add("highSchoolItem",new l.ChildControllerArray({type:"controllers/schoolItem",namespace:i.get(),register:{bubble:o}}));var h={getRelated:new l.Getter({namespace:i.get(),type:n.HSSchoolRelated,webService:"/service/Schools/GetRelated",failure:function(){throw u&&console.info(u),new Error("School Related Schools controller: Unhandled Error")}}),main:new l.Getter({namespace:i.get(),success:function(e){try{a(e)}catch(e){throw u&&console.info(u),e}},template:{url:"controllers/SchoolRelatedSchools.html",dom:["divFrom","divGraduateTo","divGraduateFrom","divElementary","divMiddle","divHigh","divElementaryContainer","divMiddleSchoolContainer","divHighSchoolContainer",["divGraduateFromSchool"],["divGraduateToSchool"],["divElementarySchool"],["divMiddleSchool"],["divHighSchool"],"aElementaryLabel","aMiddleLabel","aHighLabel","ulTabList"]}})};return{update:function(e){u.update(e),r()},restore:function(e){u.restore(e,r)},uninit:function(){c.uninit()},getState:u.getState.bind(u),register:d.register.bind(d),event:function(e,t){c.event(e,t)}}}});

"33px":"30px",whiteSpace:"nowrap"},labelAnchor:new google.maps.Point(15,7),icon:z(o.fill,o.stroke,a)});return google.maps.event.addListener(s,"click",function(){ce.fitBounds(n),fe.coStarBrand.is("citysnap")&&!Pe.get("noMapRestriction",!1)&&ce.setCenter(n.getCenter())}),s}function b(){if(We.polygon.polygon){if(Array.isArray(We.polygon.polygon))for(var e=0;e4||Math.abs(p.y-o)>4){var a=fe.map.getLatLngByPixel(i.x+(t-r.left),i.y+(o-r.top),c);d.getPath().push(new google.maps.LatLng(a.lat,a.lng)),p=p||{},p.x=t,p.y=o}return!1},n=function t(n){n.stopPropagation(),n.preventDefault(),document.removeEventListener("touchend"===n.type?"touchmove":"mousemove",a),document.removeEventListener("touchend"===n.type? (We.polygon.bounds=new google.maps.LatLngBounds,We.polygon.bounds.extend({lat:J.south,lng:J.west}),We.polygon.bounds.extend({lat:J.north,lng:J.east})):We.polygon.bounds=A(We.polygon.polygon),We.polygon.type=t,We.polygon.data=J}!We.polygon.polygon&&J.latitude&&J.longitude&&(ce.setCenter({lat:J.latitude,lng:J.longitude}),ce.setZoom(18));break;case"HSPropertyAddressListingItem":case"HSPropertyAddressItem":if(a&&a.data&&Array.isArray(a.data)){w();var te,oe,ae,ne=!1;if(void 0!==a.transactionType&&a.transactionType!==We.transactionType&&(Ge.transactionType=We.transactionType,We.transactionType=a.transactionType),ne=2===We.transactionType&&2!==Ge.transactionType||2===Ge.transactionType&&2!==We.transactionType,"HSPropertyAddressListingItem"===t? "".concat(t.pa.length," Open Houses"):"".concat(t.pa.length," Listings"),F=t.pa[0].address.fullStreetAddressWithoutUnit}else if(t.pa[0].propertyCount&&t.pa[0].propertyCount.raw>1){var B=t.pa[0].properties?t.pa[0].properties.filter(function(t){return t.listing}):[];V=B.length>0&&!t.miniPin? "homesnap":"hybrid",a.classList.toggle("map-type-btn-selected"),a.classList.toggle("paint-first-background"),a.firstElementChild.classList.toggle("paint-first-background"),r(We.type)}),google.maps.event.addListener(t,"zoom_changed",function(){We&&"hybrid"!==We.type&&a.classList.remove("map-type-btn-selected")}),google.maps.event.addListenerOnce(t,"tilesloaded",function(){We&&"hybrid"===We.type&&(a.className+=" img-circle map-type-btn-selected")})}function J(e,t){var o=document.createElement("div");o.className=" polygon-control-wrapper pointer",e.appendChild(o);var a=document.createElement("div");a.className="polygon-btn paint-base-font",a.innerHTML="Save Search",o.appendChild(a),google.maps.event.addDomListener(a,"click",function(){Le.call("saveSearch",{})})}function Q(e,t){var o=document.createElement("div");o.className="mr-20 commute-times-btn bs4--rounded-circle",e.appendChild(o);var a=document.createElement("button");a.className="bs4--mt-auto bs4--border-0 bs4--bg-transparent paint-base-font",a.innerHTML="Commute",a.title="Search by commute",o.appendChild(a),google.maps.event.addDomListener(a,"click",function(){Le.call("commuteTimeModal",{})})}function ee(e,t){google.maps.event.addListenerOnce(t,"tilesloaded",function(){Te.add("heatMaps",new ye.ChildController({type:"controllers/Search/OffMarketOpportunities",namespace:Ce.get(),register:{bubble:o,change:function(e){Le.call("change",e)}}}),!0),Pe.updateController("heatMaps",{$dom:we(e),data:{currentHeatMaps:We.heatMaps}}),o({type:"heatMaps.requestTransactionType"})})}function te(e,t){var a=document.createElement("div");a.className=" heat-maps-control-wrapper pointer bs4--text-hs-blue bs4--text-center ",e.appendChild(a);var n=document.createElement("div");if(n.className="heat-maps-modal ",n.innerHTML='Heatmaps PRO',a.appendChild(n),We.heatMaps&&We.heatMaps.sectionKey){var s=ke.heatMapsSearchDefinitions.map(function(e){return e.sectionKey}).indexOf(We.heatMaps.sectionKey);if(null!==s){var l=ke.heatMapsSearchDefinitions[s],i=Homesnap.imageRootPath;fe.coStarBrand.is("citysnap")&&(i=i.replace("app_mls_website","app"));var r='');r+="".concat(l.sectionHeader),l.requires&&l.requires===ke.permissionLevel.PROPLUS&&(r+='')),n.innerHTML=r}}google.maps.event.addDomListener(n,"click",function(){var e=t.getCenter(),a=t.getZoom();Te.add("heatMapsMobile",new ye.ChildController({type:"controllers/Search/HeatMapsMobile",namespace:Ce.get(),register:{bubble:o,change:function(e){Le.call("change",e)},updateLabel:function(e){n.innerHTML=e}}}),!0),Pe.updateController("heatMapsMobile",{data:{currentHeatMaps:We.heatMaps,latitude:e.lat(),longitude:e.lng(),zoom:a>17?a:18}})})}function oe(e,t){var o=document.createElement("div");o.classList.add("mb-20"),e.appendChild(o);var a=document.createElement("button");a.className="bs4--bg-white text-hs-blue map-list-toggle text-right hidden-xs hidden-sm bs4--border-0 paint-first-font",a.title="Hide List";var n=document.createElement("span");n.innerText="Hide List",hideListIcon=document.createElement("i"),hideListIcon.classList.add("material-icons"),hideListIcon.setAttribute("aria-hidden","true"),hideListIcon.innerText="arrow_right",n.appendChild(hideListIcon);var s=document.createElement("span");s.innerText="Show List";var l=document.createElement("i");l.classList.add("material-icons"),l.innerText="arrow_left",l.setAttribute("aria-hidden","true"),s.insertBefore(l,s.childNodes[0]),a.appendChild(n),o.appendChild(a),google.maps.event.addDomListener(a,"click",function(){var e=!0;"Hide List"==a.title? "touchend":"mouseup",f),t.stopPropagation()},f=function t(i){document.removeEventListener("touchend"===i.type?

{{/if}} {{#or studentCount studentTeacherRatio}} Approximately {{~#if studentCount}} {{studentCount.commas}} students attends the school{{/if~}} {{~#and studentCount teacherCount}} and {{/and~}} {{~#if teacherCount}} {{teacherCount.commas}} teachers provides instruction{{/if~}} . Narrow listings by price, size, and location to find your next dream home. Data provided on student membership and staffing are from the official school level data for 2020-2021. Save your search for quick access to new listings and price cuts"),Ke.addClass("registration-reminder pos-abs text-white paint-first-background-before");var e=we("Save Search");e.addClass("btn pull-right registration-reminder-save text-white bs4--position-relative"),e.on("click",function(e){return Le.call("saveSearch",{}),!1});var t=we('');t.addClass("registration-reminder-cancel bs4--position-relative"),t.on("click",function(e){return $e.set(Ee,!0),Ke.hide(),!1}),Ke.append(e),Ke.append(t),Pe.$dom.parent().append(Ke)}return Ke}function F(){if(!Ne){Ne=we("Save your commute location(s) Sign up to access commute times on every property and save them for future updates"),Ne.addClass("registration-reminder pos-abs text-white paint-first-background-before");var e=we("Sign Up");e.addClass("btn pull-right registration-reminder-save text-white bs4--position-relative"),e.on("click",function(e){return o({type:"account.mode",mode:"default"}),!1});var t=we('');t.addClass("registration-reminder-cancel bs4--position-relative"),t.on("click",function(e){return Me.setReminder(),Ne.hide(),!1}),Ne.append(e).append(t),Pe.$dom.parent().append(Ne)}return Ne}function U(e,t){var o=document.createElement("div");o.className="bs4--rounded-circle mr-20",be.getBrowser().touch?o.classList.add("draw-polygon-mobile-btn"):o.classList.add("draw-polygon-btn"),e.appendChild(o);var a=document.createElement("button");a.className="bs4--mt-auto bs4--border-0 bs4--bg-transparent paint-base-font",a.title="Draw a custom area",a.innerHTML="Draw",o.appendChild(a),google.maps.event.addDomListener(a,"click",V)}function q(e,t){var o=document.createElement("div");o.className="layers-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="Layers",o.appendChild(a);var n;google.maps.event.addDomListener(a,"click",function(){var e=a.parentElement.parentElement,t=e.querySelectorAll("button");n? Narrow your search by price, size, and location to find a home in the school district of your choice. (L.hasPropertyAddresses=!0,b?m():e(["modules/MapPropertyAddressTiles"],function(e){b=new e,b.register("new",s),m()})):L.layer.propertyAddresses&&L.hasPropertyAddresses&&(H.call("new",{propertyAddresses:[]}),L.hasPropertyAddresses=!1),u(L.layer.schools)?h():L.layer.schools&&H.call("new",{schools:[]}),4===(null===(a=L.searchDefinition)||void 0===a?void 0:null===(r=a.transactionType)||void 0===r?void 0:r.value)&&null!==(n=L.allHomesSearchDefinition.heatMaps)&&void 0!==n&&n.value?L.heatmaps=k.getHeatMapCriteria(L.allHomesSearchDefinition.heatMaps.group,L.allHomesSearchDefinition.heatMaps.value):(L.heatmaps.sectionKey=null,L.heatmaps.sectionValues=null,L.heatmaps.colors=null,H.call("new",{heatMaps:L.heatmaps})),L.heatmaps&&(L.heatmaps.colors||L.heatmaps.sectionKey||L.heatmaps.sectionValues)&&H.call("new",{heatMaps:L.heatmaps});var p=o.set&&(o.set.bounds||o.set.centerZoom)||(null===(c=o.clear)||void 0===c?void 0:c.polygon),f=! In some instances, schools hire teachers part time, and some teachers are hired for specialized instruction with very small class sizes. (2===O.placardVersion),E.get("showAgo",!1)&&b.listing&&b.listing.ago)O.statusText=b.listing.ago;else if(E.get("showDistance",!1)&&E.get("showDistance").latitude&&E.get("showDistance").longitude&&b.latitude&&b.longitude){var e=$.map.getDistance(E.get("showDistance").latitude,E.get("showDistance").longitude,b.latitude,b.longitude);e>0&&(O.statusText="".concat($.string.getNumber(e).decimal1," Miles Away"))}else E.get("showUnit",!1)&&b.address&&b.address.unitNumber&&(O.statusText=b.address.unitNumber.string);E.get("statusCssClass",null)&&b.customStatus&&""!==b.customStatus&&(O.statusText=b.customStatus),O.paging=E.get("paging",!0),(E.get("link",!0)||E.get("detailsButton"))&&(O.detailsButton=!0),(O.corner||O.address)&&(O.paging=!1),O.priceAddressGroup=E.get("showPriceAddressGroup",!1),(O.units.total||O.units.listings)&&(O.price=!1,O.address=!1,O.statusBar=!1,O.statusText=!1),E.get("showBuildingUnit",!1)&&b.address&&b.address.unitNumber&&(O.buildingUnit="Unit ".concat(b.address.unitNumber.string),O.gradient=!0),E.set("paging",O.paging)}function a(e){"propertyFavoriteStatus.updated"===(null===e||void 0===e?void 0:e.type)&&y(e.data),N.call("bubble",e)}function i(e){E.update(e),r(),C=E.get("$container"),!1===E.get("lazy")?o():setTimeout(g,100)}function o(){try{if(E.requireDom(),!E.get("propertyAddressItem")&&!E.get("ids"))throw new Error("Requires state.data.propertyAddressItem OR state.data.ids")}catch(e){throw e}if(E.get("propertyAddressItem"))n();else{var e=E.get("ids");M.itemByIds.get({data:{propertyAddressID:e.propertyAddressID||0,propertyID:e.propertyID||0,listingID:e.listingID||0}})}}function n(e){if(e&&e.data&&E.set("propertyAddressItem",e.data),b=E.get("propertyAddressItem")){if(Array.isArray(b)&&b[0]){var t=b.filter(function(e){return e.listing&&(e.listing.isOpenHouse||e.listing.isAgentOpen)});O.openHouses=t.length===b.length,b.length>1&&(O.units.listings=$.string.getNumber(b.length).commas,O.units.total=_.get(b[0],"building.propertyCount.commas"),O.buildingSummary=!0,E.set("paging",!1)),E.set("propertyAddressItem",b[0]),b=b[0]}s(),O.statusBar&&!b.listing?z.getCurrentUser(function(e){var t,r,s;if(null===(t=(e.user||{}).currentDetails)||void 0===t?void 0:null===(r=t.products)||void 0===r?void 0:null===(s=r.pro)||void 0===s?void 0:s.availableForUse)if(b.attributes&&b.attributes.likelihoodToList&&!b.attributes.likelihoodToList.none)if(b.attributes.likelihoodToList.leastLikely)d();else{var a="",i="likely-status";b.attributes.likelihoodToList.mostLikely&&(a="Most ",i="most-likely-status"),a+="Likely To List",d({title:a,customClass:i})}else d();else d()}):d()}}function l(){(b=E.get("propertyAddressItem"))&&E&&E.$dom&&E.$dom.html("").concat(b.address.fullStreetAddress,"").concat(b.address.cityStateZip,""))}function d(e){if(A++,(S=Math.round(E.$dom.width()))>0){var t=2===O.placardVersion?{}:c(S);M.template.get({$dom:E.$dom,data:{item:b,paging:O.paging,link:E.get("link",!0),corner:O.corner,statusBar:O.statusBar,price:O.price,units:O.units,openHouses:O.openHouses,address:O.address,gradient:O.gradient,statusText:O.statusText,statusCssClass:O.statusCssClass,fonts:t,detailsButton:O.detailsButton,priceAddressGroup:O.priceAddressGroup,openInNewTab:E.get("openInNewTab",!1),puppeteer:!(!Homesnap||!Homesnap.puppeteer),singleFamilyResidence:!(!