1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4415],{73103:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/current-home-condition/chc-functions",function(){return r(83078)}])},86711:function(t,e,r){"use strict";r.r(e),r.d(e,{getPropertyValues:function(){return u},savePropertyItems:function(){return l}});var n=r(98788),o=r(22970),i=r(3291),a=r(90126),u=function(){var t=(0,n.Z)((function(t){var e;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),e=null,t?[3,2]:[4,i.Z.get(a.lp.GET_PROPERTY_ITEMS).then((function(t){return t.data}))];case 1:return e=r.sent(),[3,4];case 2:return[4,i.Z.post(a.lp.GET_PROPERTY_ITEMS,t).then((function(t){return t.data}))];case 3:e=r.sent(),r.label=4;case 4:return[2,e];case 5:return[2,r.sent()];case 6:return[2]}}))}));return function(e){return t.apply(this,arguments)}}(),l=function(){var t=(0,n.Z)((function(t){var e;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:e={propertyItems:t},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.post(a.lp.SET_PROPERTY_ITEMS,e).then((function(t){return t.data}))];case 2:return[2,r.sent()];case 3:return[2,r.sent()];case 4:return[2]}}
1))}));return function(e){return t.apply(this,arguments)}}();e.default=function(){return"exFn"}},2805:function(t,e,r){"use strict";r.r(e),r.d(e,{basicDropdownOptions:function(){return u},dropDownListBasicYesNo:function(){return s},dropdownOptions1To9:function(){return l},filterPropertyData:function(){return d},generateArrayOfYears:function(){return i},generateDropdownOptions:function(){return a},getAnchorTagName:function(){return f},getPageTitle:function(){return g},getPropertyItem:function(){return c},getTitleClassColor:function(){return v},goToAnchorTag:function(){return m},isAllDataFilled:function(){return h},isLast3Years:function(){return p}});var n=r(70865),o="",i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(new Date).getFullYear(),r=1972,n=[];(null===t||void 0===t?void 0:t.isYearBuilt)?(r=1920,n=[{label:o,value:o,dropdownLabel:"Not sure"}]):n=[{label:o,value:o,dropdownLabel:"Not done"}];for(var i=e;i>=r;i--)n.push({label:i.toString(),value:i.toString()});return n},a=function(t,e){var r=[];r.push({label:"0",value:"0"});for(var n=t;n<e+1;n++){var o=n.toString();r.push({label:o,value:o})}return r},u=function(t,e){var r=[];return r.push({label:t,value:"1"}),r.push({label:e,value:"0"}),r}
1,l=a(1,9),s=u("Yes","No"),c=function(t,e){var r,n=e.find((function(e){return e.propertyItemId==t})),o="Enter year",a="select",u={min:0,max:0},c=i();return 17!=t&&18!=t||(o="Enter size",a="input"),19!=t&&20!=t&&21!=t||(o="Enter number"),22==t&&(o="Enter option"),17==t&&(u={min:400,max:9999}),18==t&&(u={min:300,max:1e7}),19!=t&&20!=t&&21!=t||(c=l,u={min:1,max:9}),22==t&&(c=s,u={min:0,max:1}),23==t&&(c=i({isYearBuilt:!0})),{propertyItemName:(null===n||void 0===n?void 0:n.propertyItemName)||"",propertyItemId:(null===n||void 0===n?void 0:n.propertyItemId)||"",value:(null===n||void 0===n||null===(r=n.value)||void 0===r?void 0:r.toString())||"",label:o,inputType:a,inputMinMax:u,options:c}},p=function(t){return t>=(new Date).getFullYear()-2},d=function(t,e){e&&(o=e);var r=(0,n.Z)({title:"Kitchen",description:"[Including appliances, cabinets & floors]"},c(3,t)),i={title:"Latest remodels completed",header:"Update the year",items:[(0,n.Z)({title:"Whole house remodel",description:"[Down to the studs]"},c(2,t))]},a={title:"Latest bathroom remodels",title2:"including cabinets, tub and/or shower",header:"Update the year",items:[(0,n.Z)({title:"Primary bathroom",description:""},c(4,t)),(0,n.Z)({title:"Bathroom #2",description:""},c(5,t)),(0,n.Z)({title:"Bathroom #3",description:""},c(6,t)),(0,n.Z)({title:"\xbd Bath",description:"[if cabinets, toilet and floor were done]"},c(16,t))]},u={title:"Timing of house upgrades",title2:"for all or most of the house",header:"Update the year",items:[(0,n.Z)({title:"Current roof installed",description:""},c(11,t)),(0,n.Z)({title:"Current windows installed",description:""},c(9,t)),(0,n.Z)({title:"Current flooring installed",description:""},c(10,t)),(0,n.Z)({title:"Most recent interior paint done",description:""},c(14,t)),(0,n.Z)({title:"Most recent exterior paint or siding",description:""},c(13,t)),(0,n.Z)({title:"Current Heating and/or A/C installed",description:""},c(12,t))]},l={title:"Size and configuration",header:"Update if needed",items:[(0,n.Z)({title:"Year home built",description:""},c(23,t)),(0,n.Z)({title:"House size in sq.ft.",description:""},c(17,t)),(0,n.Z)({title:"Lot size in sq.ft.",description:""},c(18,t)),(0,n.Z)({title:"Bedrooms",description:""},c(19,t)),(0,n.Z)({title:"Bathrooms",description:""},c(20,t)),(0,n.Z)({title:"Garage spaces",description:""},c(21,t)),(0,n.Z)({title:"Swimming pool",description:""},c(22,t))]},s=[];return i.items.push(r),s.push(i),s.push(a),s.push(u),s.push(l),s},f=function(t){return t.replaceAll(" ","-").toLocaleLowerCase()},m=function(){var t=window.location.hash.substring(1);""!==t&&(location.href="#".concat(t))},h=function(t){var e=t.find((function(t){return 2==t.propertyItemId})),r=!1;return e&&(r=p(e.value)),t.find((function(t){return r?(null==t.value||"null"==t.value)&&1!==t.propertyItemId&&3!==t.propertyItemId&&4!==t.propertyItemId&&5!==t.propertyItemId&&6!==t.propertyItemId&&7!==t.propertyItemId&&8!==t.propertyItemId&&15!==t.propertyItemId&&16!==t.propertyItemId:(null==t.value||"null"==t.value)&&1!==t.propertyItemId&&7!==t.propertyItemId&&8!==t.propertyItemId&&15!==t.propertyItemId}))},g=function(t){return void 0!=h(t)?"Let\u2019s start improving your score!":"Excellent, your data is up to date."},v=function(t){return void 0!=h(t)?"k-color-secondary-accent":"k-color-senary-accent"};e.default=p},83078:function(t,e,r){"use strict";r.r(e),r.d(e,{filterPropertyData:function(){return l},generateArrayOfYears:function(){return i},generateDropdownOptions:function(){return a},getAnchorTagName:function(){return s},getPageTitle:function(){return f},getPropertyItem:function(){return u},getPropertyValues:function(){return h},getTitleClassColor:function(){return m},goToAnchorTag:function(){return c},inputValidation:function(){return v},isAllDataFilled:function(){return d},isLast3Years:function(){return p},savePropertyItems:function(){return g}});var n=r(2805),o=r(86711),i=n.generateArrayOfYears,a=n.generateDropdownOptions,u=n.getPropertyItem,l=n.filterPropertyData,s=n.getAnchorTagName,c=n.goToAnchorTag,p=n.isLast3Years,d=n.isAllDataFilled,f=n.getPageTitle,m=n.getTitleClassColor,h=o.getPropertyValues,g=o.savePropertyItems,v=function(t,e){var r=!0,n=parseInt(t);if(""!==t)return/^-?\d+$/.test(t)?n<e.min||n>e.max?r="Enter a number between ".concat(e.min," and ").concat(e.max):r:r="Please enter a valid number"+t};e.default=v}},function(t){t.O(0,[9774,2888,179],(function(){return e=73103,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.