Baker Middle School. Homesnap.templates["controllers/SchoolItem.html"] = '{{#with data}}
{{/with}}'; ".5":".5+"),1!=e||t&&0!=t||(r.label="Bath")),r},getSqFt:function(e){return e? ((null===e||void 0===e?void 0:e.type_)===(null===t||void 0===t?void 0:t.type_)&&"HSConversationItem"===(null===e||void 0===e?void 0:e.type_)&&e.id===t.id&&e.status.raw===t.status.raw&&e.recentMessage&&t.recentMessage&&e.recentMessage.id===t.recentMessage.id&&e.recentMessage.status.raw===t.recentMessage.status.raw&&(e.recentMessage.readTimestamp&&t.recentMessage.readTimestamp&&e.recentMessage.readTimestamp.raw===t.recentMessage.readTimestamp.raw||!e.recentMessage.readTimestamp&&!t.recentMessage.readTimestamp))},getMessageImage:function(e,t){var r="https://s3.amazonaws.com/homesnap.messages/";return r+="".concat(n.string.reverse(e.toString()),"_"),{small:"".concat(r).concat(t,"_192.jpg"),medium:"".concat(r).concat(t,"_576.jpg"),original:"".concat(r).concat(t,"_original.jpg")}}},n.listing={mapping:{mini:303,listing:302,large:301,original:301},getImage:function(e,t,r){var o,i,s=null===(o=window.Homesnap)||void 0===o?void 0:null===(i=o.rootURLs)||void 0===i?void 0:i.akamaiListingImagesURLFormat.toLowerCase();return s? ").concat(r);window.location.replace(a)}},n.showing={getStylesBasedOnStatus:function(e){var t=n.coStarBrand.is("citysnap"),r={mapMarkerFill:t? {raw:e,string:e.toLocaleString(),label:"Acres"}:null},getPrice:function(e,t){if(e){var r=Math.round(e),a="$"+r.toLocaleString();t&&2==t&&(a+="/mo");var n;return r<1e4?n=r.toLocaleString():r<999500?(n=Math.round(r/1e3).toString(),n+="K"):r<105e4?n="1M":r<9995e4? (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),google.maps.event.addDomListener(a,"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=We.paItems.markers.getItem(e.toString());t||(t=We.listingGroups.markers.getItem(e.toString())),t&&t.listingMarker.click()}else Ce.register("clickWhenMapReady_",function(){var t=We.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=ke.getHeatMapCriteria(e.group,e.value)||{};e.sectionKey=t.sectionKey,e.colors=t.colors,e.sectionValues=t.sectionValues}if(e&&e.sectionKey!=We.heatMaps.sectionKey&&We.heatMaps.polygon&&We.paItems.markers.each(function(e,t){var o=t;o.polygon&&o.setVisibility(!1)}),e&&null===e.sectionKey&&We.heatMaps.polygon)ie();else{var o=0;for(var a in We.paItems.data.items){if(!We.paItems.data.items.hasOwnProperty(a))return;var n=We.paItems.data.items[a],s=n[0]||null,i=null,l=null;if(! Previous We will send you an update approximately yearly. //# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Property/PropertyAddressItem.js.map?hash=029ef2f1414c76b194f39c2433f1ca8d What percent of students have achieved state testing proficiency in math and reading? . The California School Directory contains information about California public schools, private schools (including nonpublic nonsectarian schools), . ");g.url=new d.ControllerStateUrl("/schools".concat(r.urlName),c,u)}g.updateController("searchBreadCrumbs",{$dom:o.divBreadCrumbs,data:{entityType:26,entityID:r.id,hidePropertyAddress:!0}}),o.aSchoolDistrict&&t.data.district&&o.aSchoolDistrict.on("click",function(e){return a({type:"url.unhandled",url:$(e.currentTarget).attr("href"),data:t.data.district}),!1}),g.updateController("schoolDetailsKeyMetrics",{$dom:o.divSchoolDetailsKeyMetrics,data:{schoolDetails:t.data}}),g.updateController("listingsActive",{$dom:o.divListingsActive,data:{schoolID:r.id,name:r.name,sListingStatus:1,skip:0,take:8}}),g.updateController("listingsSold",{$dom:o.divListingsSold,data:{schoolID:r.id,name:r.name,sListingStatus:4,skip:0,take:8}}),r&&r.latitude&&r.longitude?Homesnap&&!Homesnap.puppeteer&&(g.updateController("map",{$dom:o.divMap,data:{type:{hybrid:{min:100,max:100},homesnap:{min:1,max:100}},lazyLoad:!1,show:{propertyTiles:{color:"FFFFFF"},offMarketTiles:!0,HSSchool:{data:{item:r,fit:{percent:-.2}}}},ui:{polygon:{status:!1},mapTypeToggle:{status:!0}}}}),e(["modules/SearchManager"],function(e){if(void 0===e||null===e)return!1;if(! Narrow listings by price, size, and location to find your next dream home. The nearest high school to Bernardo Heights Middle School is. School Overview. //# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/SchoolDetails.js.map?hash=8e4ba15be53560c4e33b6baad8eeb0c1 {{/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~}} . 10 /10. ");return"Discover homes for sale, apartments for rent, open houses, and more on ".concat(I.name,". Please note that a smaller student/teacher ratio does not necessarily translate to smaller class size. 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)}}}}); define("controllers/SchoolDetails",["require","ControllerObjects","Objects","Utilities"],function(e){return function(t){function o(){v=null}function a(e){if("url.unhandled"===(null===e||void 0===e?void 0:e.type)){var t;if("HSSchool"===(null===e||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.type_)&&!e.polygon)return b=!0,void l({data:{schoolID:e.data.id,polygonType:1,hydration:""}})}h.call("bubble",e)}function r(e){if(!e)return!1;var t=e.state.data.url[1];return f.detailsByUrl.get({$dom:e.$dom,data:{url:t,polygonType:1,hydration:""},success:function(t){try{t.data? "For Rent":"For Sale";return u},getMonthlyPayment:function(e,t,r){return 0==r?e/t:e*r*Math.pow(1+r,t)/(Math.pow(1+r,t)-1)},getAffordabilityHomePrice:function(e){if(!e||"Object"==typeof e)return null;var t=+e.interestRate.toFixed(10),r=e.loanTerm,a=e.income/12*e.debtToIncome-e.monthlyDebts;a=a.toFixed(10);var n=+(e.annualPropertyTax/12).toFixed(10)+ +(e.annualHomeownersInsurance/12).toFixed(10)+ +(e.annualMortgageInsurance/12).toFixed(10)+e.hoaFees;n=parseInt(n,10);var o=Math.pow(1+t,r);o=+o.toFixed(10);var i=(o-1)/(t*o)||0;return i=+i.toFixed(10),e.downPayment+(a-n)*i},isOpenHouseNow:function(e){var t,r,a,n;if(!e||"object"!=typeof e)return!1;var o=(null===(t=e.startDateUtc)||void 0===t?void 0:t.raw)||e.startDate.raw,i=(null===(r=e.endDateUtc)||void 0===r?void 0:r.raw)||e.endDate.raw,s=new Date,c=s.getTime();null!==(a=e.startDateUtc)&&void 0!==a&&a.raw&&null!==(n=e.endDateUtc)&&void 0!==n&&n.raw&&(c+=6e4*s.getTimezoneOffset());var l=new Date(o).getTime(),u=new Date(i).getTime();return c>=l&&c<=u}},n.themes={_current:null,get current(){var e;return null!==(e=this._current)&&void 0!==e?e:this.preset},key:"data-theme",preset:"hswa",mapping:{none:"hswa",nyc:"empire"},set:function(e){var t,r=null!==(t=Object.keys(e).filter(function(t){return!0===e[t]})[0])&&void 0!==t?t:"none",a=this.mapping[r];2===window.Homesnap.coStarBrand&&a===this.mapping.nyc||(this.load(a),this._current=a)},load:function(e){$("html").attr("data-theme",e),e===this.preset||$("link[".concat(this.key,"='").concat(e,"']")).length||n.handlebars.loadCSS("themes/".concat(e,".css"),null,{key:this.key,value:e})},unload:function(e){$("html").attr("data-theme")===e&&($("html").attr("data-theme",this.preset),this._current=this.preset,$("link[".concat(this.key,"='").concat(e,"']")).remove())},paint:{load:function(e){n.handlebars.loadCSS(e? 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)}}}}); The 2,168 sq. ", ".concat(L.area.state," "):"";return"".concat(null!==(t=L.locationTitle)&&void 0!==t?t:"").concat(o).concat(L.searchDefinition.getTitle())}return"".concat(L.locationTitle? define("modules/DMPManager",["require","Objects","ControllerObjects","Utilities"],function(e){function t(e){var t=Date.now();if(e&&c&&t=u)&&(e&&i.register("_getCandy",e),g||(g=!0,l.getCandy.get({data:{forceNew:!1},success:function(e){e.data? "),Object.keys(e.queryString).forEach(function(t){"brokerageID"===t&&(r.withBrokerageID=!0),r.url=r.url.concat("".concat(t,"="),e.queryString[t],"&")}))}return r},reloadWithBrokerage:function(e,t){var r,a,n=null===e||void 0===e?void 0:null===(r=e.agentDetails)||void 0===r?void 0:null===(a=r.brokerageDetails)||void 0===a?void 0:a.entityID;if((null===t||void 0===t||!t.withBrokerageID)&&null!==t&&void 0!==t&&t.url&&n)return t.url.indexOf("&")>-1&&!t.url.endsWith("&")?t.url="".concat(t.url,"&"):-1!==t.url.indexOf("&")||t.url.endsWith("?")||(t.url="".concat(t.url,"? What grades does Bernardo Heights Middle School offer ? Bernardo Heights Middle School is part of Poway Unified School District. Bernardo Heights Middle: Student/teacher ratio: . Rancho Bernardo High School. (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,""))}function d(e){if(D++,(I=Math.floor(V.$dom.width()))>0){var t=2===G.placardVersion?{}:c(I);X.template.get({$dom:V.$dom,data:{item:B,paging:G.paging,link:V.get("link",!0),corner:G.corner,statusBar:G.statusBar,price:G.price,units:G.units,openHouses:G.openHouses,address:G.address,gradient:G.gradient,statusText:G.statusText,statusCssClass:G.statusCssClass,fonts:t,detailsButton:G.detailsButton,priceAddressGroup:G.priceAddressGroup,openInNewTab:V.get("openInNewTab",!1),puppeteer:!(!Homesnap||!Homesnap.puppeteer),singleFamilyResidence:!(! Homesnap.templates["controllers/SchoolDetailsKeyMetrics.html"] = '{{#with data.schoolDetails}}{{#or expenditurePerStudentTotal studentTeacherRatio ethnicity freeLunches}}

Key Metrics


{{#or expenditurePerStudentTotal studentTeacherRatio}}
{{#if expenditurePerStudentTotal}}

{{expenditurePerStudentTotal.dollars}}

Spending Per Student

{{/if}} {{#if studentTeacherRatio}}

{{studentTeacherRatio.decimal0}} to 1

Student:Teacher Ratio

{{/if}}
{{/or}} {{#or ethnicity freeLunches}}
{{#if ethnicity}}

Ethnicity
{{/if}} {{#if freeLunches}}

Free/Reduced Lunch
{{/if}}
{{/or}}{{/or}}{{#if studentsByGrade.groups}}

Students By Grade


{{#each studentsByGrade.groups}}
{{#if (lookup @root/data/takeGradeNameOutOfBar @index) }}
{{name}}
{{count.raw}}
{{else}}
{{count.raw }} {{name}}
{{/if}}
{{/each}}
{{/if}}{{/with}}'; It has 25.5 students to every teacher. All-inclusive admission is $20 which includes, food, games, and fun! "258px":"297px":"175px";var y="controllers/Property/PropertyAddressItem";Homesnap.jsAppHashes&&!Homesnap.jsAppHashes["".concat(y.replace("controllers/","").js)]&&(y="".concat(Homesnap.jsMainRootPath,"/").concat(y,".js")),t(["".concat(y),"jquery"],function(t,r){var s=new t((new Date).getTime().toString());r(i).attr("data-placard-version",d),s.update({$dom:r(i),data:{propertyAddressItem:"HSPropertyAddressItem"===p||Array.isArray(o)?o:void 0,ids:"HSListingMapDot"===p? Rancho Bernardo High School. Total Students: 1,474 Pupil/Teacher Ratio: 25.5:1 Full Time Teachers: 57.74 Enrollment Rank Nationally: Unranked (a.conversationLong="".concat(e[o.getDay()]," ").concat(a.formattedTime),a.conversationShort=e[o.getDay()],a):(a.conversationLong="".concat(a.monthDayYear," ").concat(a.formattedTime),a.conversationShort=a.monthDayYear,a)}return null},getSummary:function(e){var t="";return e.text&&(t=e.text),e.propertyAddress? Narrow listings by price, size, and location to find your next dream home. (Object.keys(e).forEach(function(e){var t=this[e];t&&"object"==typeof t? "touchend":"mouseup",t);var r="touchend"===i.type?i.changedTouches[0]:i,s={x:r.pageX,y:r.pageY,timeStamp:i.timeStamp};Math.sqrt(Math.pow(Math.abs(x.x-s.x),2)+Math.pow(Math.abs(x.y-s.y),2))>20?setTimeout(function(){A=!1},50):s.timeStamp-x.timeStamp<300&&i.target.classList.toString().indexOf("nextPrev")<0? (We.ui.saveSearch.$dom&&We.ui.saveSearch.$dom.addClass("hidden"),We.ui.polygon.status&&We.ui.polygon.$dom&&We.ui.polygon.$dom.find(".polygon-btn").css("border-radius","20px")):(We.ui.saveSearch.$dom&&We.ui.saveSearch.$dom.removeClass("hidden"),We.ui.polygon.status&&We.ui.polygon.$dom&&We.ui.polygon.$dom.find(".polygon-btn").css("border-radius","")),ce&&ce.controls&&setTimeout(function(){ce.controls[2].push(""),ce.controls[2].pop()},5);break;case"heatMapSelectionChanged":var a=We.heatMaps.sectionKey!==t.sectionKey;if(Ie?se(t):t.sectionKey&&t.sectionValues&&(We.heatMaps.sectionKey=t.sectionKey,We.heatMaps.colors=t.colors,We.heatMaps.sectionValues=t.sectionValues),1==We.isSavedSearch?We.isSavedSearch=!1:We.ui.saveSearch.$dom&&We.ui.saveSearch.$dom.find(".polygon-btn").html("Save Search"),null!==(o=We.bubble.marker)&&void 0!==o&&o.listingMarker&&a){var n=We.bubble.marker.pa[0].id;We.paItems.markers.getItem(n).listingMarker.click()}Te.event("HeatMapSelection.Changed",t);break;case"heatMapsSelectionClear":ie(!0,null);break;case"heatMapsBtn.toggle":4===t? (_=!0,t.data.pop()):_=!1,e.push({header:"Saved Searches",items:t.data,divider:!0})),u(e)}})}function d(e,t){if(I.handlebars.getPartialHTML("hsLoadingGraphic",function(e){z.$dom.ul.html(''.concat(e,""))}),z.$dom&&z.$dom.ul){var a;M&&(a={headers:{HSLocation:"lat=".concat(M.latitude.toString(),"&lng=").concat(M.longitude.toString())}}),z.get("multiArea",!1)?N.autocomplete.get({data:{text:e,polygonType:1,skip:0,take:8,submit:!0===t,geographyFilters:F,latitude:B,longitude:H},webServiceOptions:a,pass:e}):N.data.get({data:{text:e,polygonType:1,skip:0,take:8,submit:!0===t},webServiceOptions:a,pass:e})}}function p(e){var t=[];return e.length&&e.forEach(function(e){if(!h(e.item)){var a,n=null!==(a=e.item)&&void 0!==a?a:e;e.status&&(n.autocompleteStatus=e.status),t.push(n)}}),t}function h(e){return F.filter(function(t){return"object"==typeof e&&(t.Id===e.entityID||t.Id===e.id)}).length>0}function m(e){if(e&&e.pass&&e.pass===q){var t=[],a=e.data,n=F.length>0;if(K&&t.push({items:[{latitude:null,longitude:null,type_:"HSIPLocation"}],divider:!0,multiAreaReset:n}),a)if(a.recent&&a.recent.length)t.push({header:"Recent Searches",items:a.recent,multiAreaReset:n});else{if(a.savedSearches&&a.savedSearches.length&&t.push({header:"Saved Searches",items:p(a.savedSearches),multiAreaReset:n}),a[0]&&a[0].type_&&"HSSavedSearch"===a[0].type_&&t.push({header:"Saved Searches",items:a.savedSearches,multiAreaReset:n}),a.areas&&a.areas.length&&F.length<5&&t.push({header:"Places",items:p(a.areas)}),a.streetAreas&&a.streetAreas.length&&F.length<5&&t.push({header:"Streets",items:p(a.streetAreas)}),a.properties&&a.properties.length){var r=[],o=[];a.properties.forEach(function(e){var t;e.building||null!==e&&void 0!==e&&null!==(t=e.item)&&void 0!==t&&t.building?o.push(e):r.push(e)}),r.length&&t.push({header:"Homes",items:p(r),multiAreaReset:n}),o.length&&t.push({header:"Buildings",items:p(o),multiAreaReset:n})}a.schools&&a.schools.length&&F.length<5&&t.push({header:"Schools",items:p(a.schools)})}z.get("commuteTimeBanner",!1)&&t.unshift({items:[{type_:"CommuteTimeBanner"}]}),F.length>=1&&t.unshift({items:[{name:"".concat(F.length>=5?