(\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*\/. 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)}}}}); Homesnap.templates["controllers/generic.html"] = '{{header}} {{/if}} {{#each items}} {{#compare type_ "HSAreaItem"}} {{name}} {{#compare areaTypeID 1}}
State {{/compare}} {{#compare areaTypeID 2}} {{#if state}}
{{state}} {{else}}
Metro Area {{/if}} {{/compare}} {{#compare areaTypeID 3}}
{{state}} {{/compare}} {{#compare areaTypeID 4}}
City/Town {{/compare}} {{#compare areaTypeID 5}}
Zip {{/compare}} {{#compare areaTypeID 6}}
{{#if uspsCity}}{{uspsCity}}, {{/if}}{{state}} {{/compare}} {{#unless status.hasMLSCoverage}}
Notify Me When Available {{/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 "yellow"}} • {{/compare}} {{#compare propertyStatus.color "purple"}} • {{/compare}} {{#compare propertyStatus.color "green"}} • {{/compare}}
{{address.cityStateZip}} {{else compare type_ "HSSchool"}} {{name}}
{{address.city}}, {{address.state}} {{else compare type_ "HSStreetArea"}} {{name}}
{{area.name}} {{else compare type_ "HSSavedSearch"}} {{name}} {{#if summary}}
{{{summary}}} {{/if}} {{else compare type_ "CommuteTimeBanner"}} Find Homes by Commute Time {{else compare type_ "HSIPLocation"}} Current Location {{else compare type_ "notClickable"}} {{name}} {{else compare type_ "ListingCarts"}} Imported Listing Carts {{else compare type_ "SavedSearches"}} Imported Saved Searches {{/compare}} {{#if autocompleteStatus.farFromBoundary}}
Too far away. Incredible, once in a lifetime opportunity to own the perfect combination of one of Fresno's finest luxury homes along w/the most beautiful River & Bluff views anywhere in town. Previous "".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? The highly functional kitchen features wood custom cabinets, double dishwashers, eight burner Star stove, double ovens, lrg walk-in pantry & gorgeous stone counters. "touchend":"mouseup",f),t.stopPropagation()},f=function t(i){document.removeEventListener("touchend"===i.type? ":"&","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)&&! "".concat(L.locationTitle," "):"").concat(L.searchDefinition.getTitle())}function y(){if(L.area.id)switch(L.area.areaTypeID){case 1:return"Search ".concat(L.locationTitle," homes for sale, apartments for rent, open houses, and more on ").concat(I.name,". {protocol: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)}},o.path={getImageUrl:function(){var e=arguments.length>0&&void 0!==arguments[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(".
'; Homesnap.templates["controllers/SearchDropdown.html"] = '{{#with data}}{{#each this}} {{#if header}} State {{/compare}} {{#compare areaTypeID 2}} {{#if state}}
{{state}} {{else}}
Metro Area {{/if}} {{/compare}} {{#compare areaTypeID 3}}
{{state}} {{/compare}} {{#compare areaTypeID 4}}
City/Town {{/compare}} {{#compare areaTypeID 5}}
Zip {{/compare}} {{#compare areaTypeID 6}}
{{#if uspsCity}}{{uspsCity}}, {{/if}}{{state}} {{/compare}} {{#unless status.hasMLSCoverage}}
Notify Me When Available {{/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 "yellow"}} • {{/compare}} {{#compare propertyStatus.color "purple"}} • {{/compare}} {{#compare propertyStatus.color "green"}} • {{/compare}}
{{address.cityStateZip}} {{else compare type_ "HSSchool"}} {{name}}
{{address.city}}, {{address.state}} {{else compare type_ "HSStreetArea"}} {{name}}
{{area.name}} {{else compare type_ "HSSavedSearch"}} {{name}} {{#if summary}}
{{{summary}}} {{/if}} {{else compare type_ "CommuteTimeBanner"}} Find Homes by Commute Time {{else compare type_ "HSIPLocation"}} Current Location {{else compare type_ "notClickable"}} {{name}} {{else compare type_ "ListingCarts"}} Imported Listing Carts {{else compare type_ "SavedSearches"}} Imported Saved Searches {{/compare}} {{#if autocompleteStatus.farFromBoundary}}
Too far away. Incredible, once in a lifetime opportunity to own the perfect combination of one of Fresno's finest luxury homes along w/the most beautiful River & Bluff views anywhere in town. Previous "".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? The highly functional kitchen features wood custom cabinets, double dishwashers, eight burner Star stove, double ovens, lrg walk-in pantry & gorgeous stone counters. "touchend":"mouseup",f),t.stopPropagation()},f=function t(i){document.removeEventListener("touchend"===i.type? ":"&","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)&&! "".concat(L.locationTitle," "):"").concat(L.searchDefinition.getTitle())}function y(){if(L.area.id)switch(L.area.areaTypeID){case 1:return"Search ".concat(L.locationTitle," homes for sale, apartments for rent, open houses, and more on ").concat(I.name,". {protocol: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)}},o.path={getImageUrl:function(){var e=arguments.length>0&&void 0!==arguments[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(".