Yes. "homesnap.users":"homesnap.noimage",o="//s3.amazonaws.com/"+a+"/",i=e>0?o+n.string.reverse(e.toString())+"_":o+"user_",s="";return t&&(s="? "Managed Outside Homesnap":"Managed in ".concat(i),r.externalService=i}else e.status.pending||e.status.unscheduled?(r.dataStatusBadge="orange",r.spanTextColor="bs4--text-google-orange",r.spanIcon="watch_later",r.pText=e.status.pending?"Pending":"Unscheduled"):e.status.rejected? (U.nav.addClass("affix"),l(!1),R.brand&&(S.get("brand").event("updateLogo",{transparent:!1}),U.divBrandLogo.css("backgroundColor","#ffffff"))):0===n.fold.top&&(U.nav.removeClass("affix"),l(!0),R.brand&&(S.get("brand").event("updateLogo",{transparent:!0}),U.divBrandLogo.css("backgroundColor","transparent")))),"window.newSize"===e&&n&&n.size&&("xs"===n.size.new||"xs"===n.size.previous)&&d(n.size.new),"stickyNotification.show"===e)return void h(null===n||void 0===n?void 0:n.notificationSettings);"headerBrand.showByTenX"!==e||q||(q=!0,s(!0)),S.event(e,n)}var w=e("Application"),y=e("ControllerObjects"),k=e("Utilities");e("bootstrap");var B=new y.Unique(n),D=new y.Callbacks,S=new y.ChildControllerManager,M=new y.StateManager(S);S.add("search",new y.ChildController({type:"controllers/MultiAreaSearch/Manager",namespace:B.get(),register:{bubble:o}}));var U,T,L,N,x,A,P,F={template:new y.Getter({namespace:B.get(),template:{url:"controllers/Header.html",dom:["nav","divContainer","formSearch","aNavbarBrand","liMyAgent","btnMyAgent","liRegister","aRegister","liSignIn","aSignIn","aMobileSignUp","liAgents","liNewsFeed","liMessages","liCurrentUser","liProPlus","divBrandLogo","divMobileSignUp","divNavbarMobile","divLogo","divStickyNotification"]}})},I={},H={simple:!1,fluid:!1,transparent:!1,search:!0,hide:!1,commuteTimeBanner:!1},z=!0,R={newsFeedDropdown:!1,messagesDropdown:!1,agentsDropdown:!1,meDropdown:!1,brand:!1,proPlusDropdown:!1,impersonationHeader:!1},q=!1,O=3433,j={on:function(){U.nav.find("div.main-navbar-hs").addClass("bs4--d-none").removeClass("bs4--d-flex")},off:function(){U.nav.find("div.main-navbar-hs").addClass("bs4--d-flex").removeClass("bs4--d-none")}},E={on:function(){U&&U.divContainer.hasClass("container")&&U.divContainer.addClass("container-fluid").removeClass("container")},off:function(){U&&U.divContainer.hasClass("container-fluid")&&U.divContainer.addClass("container").removeClass("container-fluid")}},X={on:function(){M.$dom.find("nav").addClass("transparent-nav"),l(!0),R.brand&&(S.event("updateLogo",{transparent:!0}),U.divBrandLogo.css("backgroundColor","transparent"))},off:function(){M.$dom.find("nav").removeClass("transparent-nav"),l(!1),R.brand&&(S.event("updateLogo",{transparent:!1}),U.divBrandLogo.css("backgroundColor","#ffffff"))}},G={on:function(){U.formSearch.show(),U.aNavbarBrand.find("svg").addClass("bs4--d-lg-none").removeClass("hidden"),U.divLogo.addClass("bs4--d-none bs4--d-lg-block")},off:function(){U.formSearch.hide(),U.aNavbarBrand.find("svg").removeClass("bs4--d-lg-none").addClass("hidden"),U.divLogo.removeClass("bs4--d-none bs4--d-lg-block")}},J={on:function(){M.$dom.hide()},off:function(){M.$dom.show()}},K={on:function(){S.get("search").event("commuteTimeBanner.status",!0)},off:function(){S.get("search").event("commuteTimeBanner.status",!1)}};return w.getAppMode(function(e){k.themes.set(e)}),{update:r,restore:function(e){M.restore(e,a)},uninit:function(){S.uninit()},getState:M.getState.bind(M),register:D.register.bind(D),event:C}}}); "Notice of Sale":"Notice Of Trustee Sale";case 32:return"Affidavit Notice of Sale Published or Mailed";case 64:return"Cancelled";case 128:return"Certificate of Purchase / Certificate of Foreclosure Recorded";case 256:return"Order Rescheduling Foreclosure Sale Date";case 512:return"Foreclosure Judgment Entered";case 2048:return"Newly Filed Complaint";case 4096:return"Order of Dismissal/Cancellation/Release of Lis Pendens";case 8192:return"Power of Attorney to Foreclose Mortgage";case 16384:return"Re-Recorded Notice of Default";case 32768:return"Re-Recorded Final Judgment of Foreclosure";case 65536:return"Re-Recorded Notice of Lis Pendens";case 131072:return"Re-Recorded Order of Dismissal";case 524288:return"NFNS Updated with Sale Information Rescheduled";case 1048576:return"Re-Recorded Notice of Trustees Sale";case 2097152:return"Sold";case 4194304:return"Re-Recorded Notice of Sale";case 8388608:return"Standalone Mortgage";case 1073741824:return"Other";default:return null}}},n.js={dedupeHashTables:function(e,t,r){var a={add:[],keep:[],remove:[]};return e&&0!=e.length?t&&0!=t.length?(e.each(function(e,n){t.hasItem(e)?r&&!r(n,t.getItem(e))? Grades: 6-8. State School ID: CA-3768296-6107460. $1,350. //# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Map.js.map?hash=e35175297cb5342cc905ec9b40ccbdd7 This condo located in Rancho Bernardo, San Diego, CA 92127 is currently for sale for $479,500. ");case 3:return"Browse homes for sale, apartments for rent & more in ".concat(L.locationTitle," on ").concat(I.name,". Contact (254) 231-1018. ");return t.slice(t.length-2).join(". Rancho Bernardo High! ");case 5:var i=L.locationTitle;if(L.locationTitle){var a=L.locationTitle.split("(");a&&a[0]&&(i=a[0].trim())}return"Discover homes for sale, apartments for rent & more in ".concat(i," on ").concat(I.name,". Narrow listings by price, size, and location to find your next dream home. See Rancho Bernardo High in the ranking list, Defining Race and Ethnicity Data, National Center for Education Statistics, 11th Grade English Language Arts/Literacy (Poway Unified), 11th Grade English Language Arts/Literacy (California). "touchend":"mouseup",w),t.stopPropagation()},w=function t(i){document.removeEventListener("touchend"===i.type? MLS # 50102087 Google Map Link opens new browser tab. For Rent. Close Always check with your school or other local education authority before making . NCES School ID: 063153009425. ")}function v(e){var t=!0;if(4!==L.searchDefinition.transactionType.value)return t;for(var o=0;o=16&&Ge.heatMaps&&Ge.heatMaps.sectionKey&&(We.heatMaps.sectionKey=Ge.heatMaps.sectionKey,We.heatMaps.sectionValues=Ge.heatMaps.sectionValues,Ge.heatMaps.sectionKey=null,Ge.heatMaps.sectionValues=null)))}var a=ce.getBounds();if(a&&(!We.bounds||d(We.bounds,a))){Ge.bounds=We.bounds,We.bounds=a;var n=c(We.bounds),s=We.bounds.getNorthEast(),i=We.bounds.getSouthWest(),p=!1;if(We.polygon.polygon&&We.polygon.bounds&&"HSPropertyAddressItem"!==We.polygon.type){new google.maps.LatLng({lat:s.lat(),lng:i.lng()}),new google.maps.LatLng({lat:i.lat(),lng:s.lng()});We.bounds.intersects(We.polygon.bounds)||(p=!0)}p&&b();var u=new ve.Bounds(s.lat(),i.lat(),s.lng(),i.lng());u&&e&&n&&Ce.call("change",{bounds:{bounds:u,zoom:e,pixels:n},clearPolygon:p}),1==We.isSavedSearch?We.isSavedSearch=!1:We.ui.saveSearch.$dom&&We.ui.saveSearch.$dom.find(".polygon-btn").html("Save Search"),We.ui.heatMaps.status&&e<18&&We.heatMaps.polygon&&ie(!0),We.localContext.mapShown&&pe&&!We.localContext.contextBubbleVisible&&(pe.locationRestriction=null,pe.isTransitioningMapBounds=!1,pe.isTransitioningMapBounds&&Ge.bounds!==We.bounds||pe.search())}}function l(e){var t="homesnap",o=Pe.get("type");if(o&&o.homesnap&&1===o.homesnap.min&o.homesnap.max>=20&&We.type)return We.type;if(o&&e)for(var a in o)if(o.hasOwnProperty(a)&&o[a].min&&o[a].max&&e>=o[a].min&&e<=o[a].max){t=a;break}return t}function r(e){ce.setMapTypeId(e),"hybrid"===e?ce.setOptions({styles:Fe.hide}):ce.setOptions({styles:Fe.default})}function d(e,t){var o={topRight:ce.getProjection().fromLatLngToPoint(e.getNorthEast()),bottomLeft:ce.getProjection().fromLatLngToPoint(e.getSouthWest())};o.diagonal=Math.sqrt(Math.pow(o.topRight.x-o.bottomLeft.x,2)+Math.pow(o.topRight.y-o.bottomLeft.y,2));var a={topRight:ce.getProjection().fromLatLngToPoint(t.getNorthEast()),bottomLeft:ce.getProjection().fromLatLngToPoint(t.getSouthWest())},n={topRight:Math.sqrt(Math.pow(o.topRight.x-a.topRight.x,2)+Math.pow(o.topRight.y-a.topRight.y,2)),bottomLeft:Math.sqrt(Math.pow(o.bottomLeft.x-a.bottomLeft.x,2)+Math.pow(o.bottomLeft.y-a.bottomLeft.y,2))};return n.topRight>.05*o.diagonal||n.bottomLeft>.05*o.diagonal}function c(e){var t=u(e.getNorthEast()),o=u(e.getSouthWest());return(o.y-t.y)*(t.x-o.x)}function p(e){var t={top:0,bottom:0,left:0,right:0},o=u(e),a=u(We.bounds.getNorthEast()),n=u(We.bounds.getSouthWest());return t.top=Math.round(Math.abs(a.y-o.y)),t.bottom=Math.round(Math.abs(n.y-o.y)),t.right=Math.round(Math.abs(a.x-o.x)),t.left=Math.round(Math.abs(n.x-o.x)),t}function u(e){var t=ce.getProjection().fromLatLngToPoint(ce.getBounds().getNorthEast()),o=ce.getProjection().fromLatLngToPoint(ce.getBounds().getSouthWest()),a=Math.pow(2,ce.getZoom()),n=ce.getProjection().fromLatLngToPoint(e);return new google.maps.Point((n.x-o.x)*a,(n.y-t.y)*a)}function g(){Ce.call("changing",{bounds:!0})}function m(e,t){if("object"!=typeof e)switch(e.toLowerCase()){case"zoom":"number"==typeof t&&(g(),ce.setZoom(t));break;case"center":"object"==typeof t&&t.lat&&t.lng&&(g(),ce.setCenter({lat:t.lat,lng:t.lng}));break;case"tilt":if("number"==typeof t){var o=45===t?45:0;ce.setTilt(o)}break;case"type":"string"==typeof t&&r(t);break;case"customboundingbox":if("object"==typeof t&&t.north&&t.east&&t.south&&t.west){We.ui.saveSearch.$dom&&We.ui.saveSearch.$dom.find(".polygon-btn").html(' Saved Search'),We.isSavedSearch=!0;var a=new google.maps.LatLngBounds;a.extend({lat:t.south,lng:t.west}),a.extend({lat:t.north,lng:t.east}),ce.fitBounds(H(a,-.3)),m("zoom",ce.getZoom())}}else for(var n in e)e.hasOwnProperty(n)&&m(n,e[n])}function y(e,t){var o;if("object"!=typeof e)switch(e){case"polygon":case"area":case"school":if("MultiAreaItem"==(null===(o=We.polygon)||void 0===o?void 0:o.type)&&S(),We.polygon.polygon&&"HSPropertyAddressItem"!==We.polygon.type){b();break}case"streetArea":if("HSPropertyAddressItem"!==We.polygon.type){b();break}case"propertyTiles":break;case"drivingDirections":C()}else for(var a in e)e.hasOwnProperty(a)&&y(a,e[a])}function h(t,a){if("object"!=typeof t){switch(t){case"HSStreetArea":if(a&&a.data&&!Array.isArray(a.data)){var n="HSStreetArea"===a.data.type_?a.data:a.data.item,s=a.data.fit||void 0;if(b(),s&&g(),n.segments&&n.segments.length){var i=n.segments.map(function(e){return google.maps.geometry.encoding.decodePath(e)});We.polygon.polygon=P({paths:i})}else I("Remove Street");n.north&&n.south&&n.east&&n.west&&(We.polygon.bounds=new google.maps.LatLngBounds,We.polygon.bounds.extend({lat:n.south,lng:n.west}),We.polygon.bounds.extend({lat:n.north,lng:n.east}),s&&ce.fitBounds(H(We.polygon.bounds,s.percent))),We.polygon.type=t,We.polygon.data=n}break;case"HSAreaItem":if(a&&a.data&&!Array.isArray(a.data)){var l="HSAreaItem"===a.data.type_?a.data:a.data.item;if(We.polygon&&We.polygon.type===t&&We.polygon.data.areaID===l.areaID)break;var r=a.data.fit||void 0;b(),r&&g();var d=E(l.polygon);We.polygon.polygon=x({paths:d,fit:r}),l.north&&l.south&&l.east&&l.west? National Center for Education Statistics, U.S. Dept of Education. Narrow your search by price, size, and location to find a home in the school district of your choice. ".concat(e.attributes.offMarketDate.shortMonth," ").concat(e.attributes.offMarketDate.day):"";switch(!0){case e.attributes.mlsStatus.expired:S="Expired".concat(x);break;case e.attributes.mlsStatus.canceled:S="Canceled".concat(x);break;case e.attributes.mlsStatus.withdrawn:S="Withdrawn".concat(x);break;case e.attributes.mlsStatus.hold:S="Hold".concat(x)}}var k=new t(S,"#006DC7",null);r.push(k)}return r},getOwnershipTypeAttributeDescription:function(e,t){switch(e){case 1:return t? {{#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}}. What is Bernardo Heights Middle School's ranking? 16 absences will trigger a 2nd letter, and 20 will trigger a 3rd. {{/if}} {{#if expenditurePerStudentTotal}} {{#compare expenditurePerStudentTotal.raw ">" 2000}} {{#compare expenditurePerStudentTotal.raw "<" 50000}} The average annual expenditure per student is {{expenditurePerStudentTotal.dollars}}. {listingID:o.listingID}:void 0,link:!1,detailsButton:!0,lazy:!1,onMap:!0,secondaryBanner:Array.isArray(o)&&o[0]?o[0].secondaryBanner:null,placardVersion:d}}),s.register("bubble",function(t){t&&t.type&&"url.unhandled"===t.type&&e.onClick&&e.onClick(t.data,!0)})})}else if("HSSchool"===p){var b;i.style.fontSize="1.2em",i.style.padding="15px",i.style.height="150px";var f="".concat(o.name,"");f+=o.address.fullStreetAddress,f+="".concat(o.address.cityStateZip),i.innerHTML=f,n=document.createElement("a"),n.setAttribute("href",o.url),n.className="paint-first-font",n.innerHTML="View School Details",i.appendChild(n),!o.hasPolygon||null!==this&&void 0!==this&&null!==(b=this.marker)&&void 0!==b&&b.isCurrentSearch||(a=document.createElement("a"),a.setAttribute("href",o.polygonUrl),a.className="paint-first-font",a.innerHTML="See homes in school zone",i.appendChild(a))}else if("HSPlace"===p){i.style.fontSize="1.2em",i.style.padding="15px",i.style.height="260px";var C="controllers/CommuteTime/MapBubble";Homesnap.jsAppHashes&&!Homesnap.jsAppHashes["".concat(C.replace("controllers/","").js)]&&(C="".concat(Homesnap.jsMainRootPath,"/").concat(C,".js")),t([C,"jquery"],function(t,r){var s=new t((new Date).getTime().toString());s.update({$dom:r(i),data:{commuteTimePlace:o}}),s.register("bubble",function(t){e.onClick&&e.onClick(t)})})}var A;if(this.clickListener=null===(s=this.getMap())||void 0===s?void 0:null===(l=s.getDiv())||void 0===l?void 0:l.addEventListener("click",function(t){if("select"===t.target.nodeName.toLowerCase())return!1;!A&&e.onHide&&e.onHide("Bubble")},{once:!0}),"HSSchool"===p){var L;n&&n.addEventListener("click",function(t){t.preventDefault(),e.onClick&&e.onClick(e.data,!1,!0),t.cancelBubble=!0}),!o.hasPolygon||null!==this&&void 0!==this&&null!==(L=this.marker)&&void 0!==L&&L.isCurrentSearch||!a||a.addEventListener("click",function(t){t.preventDefault(),e.onClick&&e.onClick(e.data,!0,!1),t.cancelBubble=!0})}else{var x,S=function(t){A=!0;var e="touchstart"===t.type?t.touches[0]:t;if(x&&t.timeStamp-x.timeStamp<300)return!1;x={x:e.pageX,y:e.pageY,timeStamp:t.timeStamp},document.addEventListener("touchstart"===t.type? Public High School. An OCIS contract allows your student to do the work that he or she would be doing if they were in class - and helps the school to continue to be funded by the state. Accompany your student to the office, and sign them in at the Attendance desk. Attendance Information ATTENDANCE HOTLINE: 858-485-4888, available 24 hours Only parents or legal guardians may call to excuse absences or authorize Off Campus Passes At BHMS, we believe there is no substitute for school attendance. define("controllers/SchoolDetailsKeyMetrics",["require","ControllerObjects","lodash","Utilities","tinycolor"],function(t){return function(e){function r(t){g.call("bubble",t)}function a(t){m.update(t),o()}function o(){try{m.requireDom()}catch(t){throw t}var t=m.get("schoolDetails");if(t.studentsByGrade){var e=t.studentsByGrade.groups.map(function(t){return t.count.raw}),r=h.max(e),a=h.sortBy(e).reverse(),o=t.studentsByGrade.groups.map(function(t){return(t.count.raw/r*100).toFixed(2)}),n=o.map(function(t){return t>25}),i=t.studentsByGrade.groups.map(function(t){var e=a.indexOf(t.count.raw),r=c.split("|");return e<2?r[e]:r[2]});y.template.get({$dom:m.$dom,data:{schoolDetails:t,percentages:o,takeGradeNameOutOfBar:n,barColors:i}})}}function n(t){var e=t.$dom,a=t.data;a.schoolDetails.ethnicity&&(f.add("ethnicityPieChart",new u.ChildController({type:"controllers/Charts/PieChart",namespace:p.get(),register:{bubble:r}}),!0),m.updateController("ethnicityPieChart",{$dom:e.divEthnicityPieChart,data:{chartData:i(a.schoolDetails.ethnicity),colorsArray:c.split("|"),total:a.schoolDetails.ethnicity.total.raw,tooltipFormat:"label",height:160,presorted:!0}})),a.schoolDetails.freeLunches&&(f.add("lunchPieChart",new u.ChildController({type:"controllers/Charts/PieChart",namespace:p.get(),register:{bubble:r}}),!0),m.updateController("lunchPieChart",{$dom:e.divLunchPieChart,data:{chartData:i(a.schoolDetails.freeLunches),colorsArray:c.split("|"),total:a.schoolDetails.freeLunches.total.raw,tooltipFormat:"label",height:160}}))}function i(t){for(var e={datasets:[],labels:[]},r=t.total.raw,a=0,o=t.groups.length;a0?$("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)}}}}); School Directory Information. (t.facebook=!0,t.name="Facebook",t.color={text:"#3b5998",background:"#4b6dad",rgb:"75,109,173",gradient:"radial-gradient(at bottom right, #87BAFF 0%, #005EA8 100%)"},t.icon={color:n.path.getImageUrl("/listing-promos/fb-colored-256px.png"),colorSM:n.path.getImageUrl("/listing-promos/fb-colored-70px-2x.png"),white:n.path.getImageUrl("/listing-promos/fb-white-70px-2x.png"),grey:n.path.getImageUrl("/listing-promos/fb-grey-70px-2x.png")}):2===e? (delete e.state,e.data={schoolID:t.data.id},g.update(e),s(t)):h.call("bubble",{type:"url.404",url:e.state.data.url[0]})}catch(e){throw g&&console.info(g),e}}}),!0}function n(e,t){var o=new c.HSSchool(e);f.template.get({$dom:t.$dom,data:o,success:function(e){try{delete Homesnap.data,delete t.state,t.data={schoolID:e.data.id},g.update(t),s(e)}catch(e){throw g&&console.info(g),e}}})}function l(e){var t,o;return Homesnap&&Homesnap.data&&Homesnap.data.d&&""!==Homesnap.data.d?void n(Homesnap.data.d,e):null!==e&&void 0!==e&&null!==(t=e.state)&&void 0!==t&&null!==(o=t.data)&&void 0!==o&&o.url?void r(e):(g.update(e),void i())}function i(){o();try{g.requireDom(),g.require("schoolID")}catch(e){throw void 0!==g&&null!==g&&(console.info("SchoolDetails Controller"),console.info(g)),e}f.detailsByID.get({$dom:g.$dom,data:{schoolID:g.get("schoolID"),polygonType:1,hydration:""}})}function s(t){var o=t.$dom,r=t.data;if(o.spanGradeRange.length&&o.spanGradeRange.text(r.gradeRange.replace("0","").replace("to","through")),r.urlName){var n,l="",i="",s=r.gradeRange? {raw:t,string:"#"+t}:null,city:r,state:a,zip:n,cityState:(r?r+", ":"")+(a?a+" ":""),cityStateZip:(r?r+", ":"")+(a?a+" ":"")+(n||""),streetNumber:null===(o=this.getFullStreetAddressWithoutUnit(e,t))||void 0===o?void 0:null===(i=o.split(" "))||void 0===i?void 0:i[0],streetNameWithoutNumber:null===(s=this.getFullStreetAddressWithoutUnit(e,t))||void 0===s?void 0:null===(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? "hs-pro":"hs",x?U.divLogo.addClass("navbar-pro-plus-logo"):U.divLogo.removeClass("navbar-pro-plus-logo"),U.divLogo.parent().data("data-logo",n).attr("data-logo",n),U.divLogo.parent().data("data-logo-transparent",e).attr("data-logo-transparent",e)}function c(){S.add("mobileTabs",new y.ChildController({type:"controllers/MobileTabBar",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("mobileTabs",{$dom:U.divNavbarMobile,data:{pro:N}})}function u(){R.newsFeedDropdown||(S.get("newsFeed")||S.add("newsFeed",new y.ChildController({type:"controllers/NewsFeedDropdown",namespace:B.get(),register:{bubble:o}})),M.updateController("newsFeed",{$dom:U.liNewsFeed}),R.newsFeedDropdown=!0)}function p(){R.messagesDropdown||(S.get("conversations")||S.add("conversations",new y.ChildController({type:"controllers/ConversationsDropdown",namespace:B.get(),register:{bubble:o}})),M.updateController("conversations",{$dom:U.liMessages}),R.messagesDropdown=!0)}function m(){R.agentsDropdown||(S.add("agents",new y.ChildController({type:"controllers/AgentsDropdown",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("agents",{$dom:U.liAgents,data:{pro:N}}),R.agentsDropdown=!0)}function g(){R.meDropdown||(S.add("currentUser",new y.ChildController({type:"controllers/CurrentUserDropdown",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("currentUser",{$dom:U.liCurrentUser}),R.meDropdown=!0)}function v(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];R.brand||(S.add("brand",new y.ChildController({type:"controllers/BrandItem",namespace:B.get(),register:{bubble:o}}),!0),w.getIDXBrand(function(n){var o=n;if(0!==(null===o||void 0===o?void 0:o.id)||3433!==I.brand.id){var r=3433===I.brand.id&&(null===o||void 0===o?void 0:o.id)>=0?o:I.brand;M.updateController("brand",{$dom:U.divBrandLogo,data:{brand:r,inverse:e}}),e||U.divBrandLogo.css({backgroundColor:"#ffffff"}),r.primaryColor&&U.nav.parents("nav").css("border-top-color",r.primaryColor),R.brand=!0}}))}function f(){R.proPlusDropdown||(S.add("proPlus",new y.ChildController({type:"controllers/Header/ProPlusDropdown",namespace:B.get(),register:{bubble:o}}),!0),M.updateController("proPlus",{$dom:U.liProPlus,data:{}}),R.proPlusDropdown=!0)}function b(){R.impersonationHeader||w.getCurrentUser(function(e){var n,r;null!==e&&void 0!==e&&null!==(n=e.user)&&void 0!==n&&null!==(r=n.permissions)&&void 0!==r&&r.homeSnapAdminTools&&(w.getImpersonation(function(n){if(n){var r,a=$("").addClass("bg-sold");M.$dom.addClass("impersonating-user"),U.nav.prepend(a),a.css({"border-bottom":"5px solid ".concat((null===(r=e.user.brand)||void 0===r?void 0:r.primaryColor)||"#006DC7")}),S.add("impersonationHeader",new y.ChildController({type:"controllers/ImpersonationHeader",namespace:B.get(),register:{bubble:o}})),M.updateController("impersonationHeader",{$dom:a,data:{impersonatedUser:n}})}}),R.impersonationHeader=!0)},!0)}function h(e){S.add("stickyNotification",new y.ChildController({type:"controllers/StickyNotification",namespace:B.get(),register:{bubble:o}}),!0);var n={};e&&(n={colorClass:e.colorClass,showIcon:e.showIcon,icon:e.icon,text:e.text,delayTime:e.delayTime}),M.updateController("stickyNotification",{$dom:U.divStickyNotification,data:n})}function C(e,n){if("window.scroll"===e&&H.transparent&&U&&I&&(n.fold.top>51? Distance: 2 mi. (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:!(! 988 is the suicide and crisis lifeline. We and our partners use cookies to Store and/or access information on a device. //# sourceMappingURL=https://assets.homesnap.com/app/js_min/controllers/Header.js.map?hash=667e142a5203b8ad4f9b89a2c81a98d8