webpackJsonp([6,7],{"/626":function(t,e){},"3Di9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"app",function(){return j});var a=n("lRwf"),r=n.n(a),i=n("M93x"),s=n("IcnI"),o=n("YaEn"),c=n("cX0o"),u=n("uPHq"),l=n("M+UZ"),d=n.n(l),f=n("IcMm"),g=n.n(f),h=n("XRgG"),p=n.n(h),m=n("fYhH"),v=n.n(m),w=n("7Q1V"),R=n.n(w),P=n("7M7f"),E=n.n(P),S=n("f/u0"),y=n.n(S),b=n("BOXn"),D=n.n(b),M=n("LmeB"),B=n.n(M),V=n("QLUw"),L=n.n(V),T=n("DBae"),x=n.n(T),I=n("6VHA"),A=n.n(I),_=n("fAhx"),O=(n.n(_),n("DYfX")),C=n("DYTo"),N=(n.n(C),n("IHMs")),H=n.n(N);n.d(e,"router",function(){return o.a}),n.d(e,"store",function(){return s.a}),function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.Event=t}(),Object.defineProperty(r.a.prototype,"$helpers",{value:c.a}),Object.defineProperty(r.a.prototype,"$svc",{value:u.a}),r.a.component("loading",O.a),r.a.filter("currency",function(t,e,n){void 0===e&&(e=2);var a=parseFloat(t);return isNaN(a)?"":(e=e<=0?0:e>2?2:e,"$"+(n&&a<0?"(":"")+a.toFixed(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+(n&&a<0?")":""))}),r.a.filter("percentage",function(t,e,n){return isNaN(parseFloat(t))?"":(e=0===e?0:e||2,n&&(t=100*parseFloat(t)),parseFloat(t).toFixed(e).toString()+"%")}),r.a.filter("suffix",function(t,e){return null===t||void 0===t||""===t?"":null===e||void 0===e||""===e||"unknown"===t.toString().toLowerCase()?t.toString():"sqft"===e.toString().trim()?t.toString()+" ft²":t.toString()+e}),r.a.use(d.a,{components:{VApp:g.a,VDivider:p.a,VList:v.a,VBtn:R.a,VIcon:E.a,VCard:y.a,VAlert:D.a,VDataTable:B.a,VProgressCircular:L.a,VMenu:x.a,transitions:A.a},directives:{Ripple:C.Ripple},theme:{primary:H.a.grey.darken3,secondary:H.a.grey.darken4,accent:H.a.grey.lighten1,error:H.a.red.base,warning:H.a.orange.lighten1,info:H.a.blue.base,success:H.a.green.base}}),r.a.config.productionTip=!1;var j=new r.a({el:"#read-app",store:s.a,router:o.a,components:{App:i.a},template:""});j.$vuetify.setDimensions=function(){j.$vuetify.clientHeight="undefined"==typeof document?0:Math.max(document.documentElement.clientHeight,0),j.$vuetify.clientWidth="undefined"==typeof document?0:Math.max(document.documentElement.clientWidth,0)},j.$helpers.initGTM()},"3TcT":function(t,e){},"4Wrh":function(t,e){},"6DHi":function(t,e){},"6nfk":function(t,e){},"90VL":function(t,e){},"9DHQ":function(t,e){},ATJn:function(t,e){},BCfr:function(t,e){},DYfX:function(t,e,n){"use strict";var a=n("XyMi"),r=Object(a.a)(null,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-xs-center mt-4"},[e("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}}),this._v(" "),e("p",[this._v("Loading")])],1)},[],!1,null,null,null);e.a=r.exports},"HNa/":function(t,e){},IcnI:function(t,e,n){"use strict";var a={};n.d(a,"searchResultsOverview",function(){return l}),n.d(a,"searchResultsList",function(){return d}),n.d(a,"searchResultsTotalRows",function(){return f}),n.d(a,"searchPage",function(){return g}),n.d(a,"searchRecordsPerPage",function(){return h}),n.d(a,"searchParams",function(){return p}),n.d(a,"isLoading",function(){return m}),n.d(a,"isSearchError",function(){return v}),n.d(a,"noSearch",function(){return w}),n.d(a,"isSearchLoading",function(){return R}),n.d(a,"isReport",function(){return P}),n.d(a,"searchReport",function(){return E}),n.d(a,"lastSearchParams",function(){return S}),n.d(a,"sort",function(){return y});var r={};n.d(r,"search",function(){return D}),n.d(r,"searchByReport",function(){return M}),n.d(r,"getResultsPage",function(){return B}),n.d(r,"setSearchRecordsPerPage",function(){return V});var i={};n.d(i,"searchResults",function(){return L}),n.d(i,"updateResults",function(){return T}),n.d(i,"isSearchError",function(){return x}),n.d(i,"toggleLoading",function(){return I}),n.d(i,"updateNoSearch",function(){return A}),n.d(i,"initPaging",function(){return _}),n.d(i,"initSearch",function(){return O}),n.d(i,"updateSearchRecordsPerPage",function(){return C}),n.d(i,"setReportSearch",function(){return N}),n.d(i,"setLastSearchParams",function(){return H});var s=n("lRwf"),o=n.n(s),c=n("SJI6"),u=n.n(c),l=function(t){return t.searchResultsOverview},d=function(t){return t.searchResultsList},f=function(t){return t.searchResultsTotalRows},g=function(t){return t.searchPage},h=function(t){return t.searchRecordsPerPage},p=function(t){return t.searchParams},m=function(t){return t.isLoading},v=function(t){return t.isSearchError},w=function(t){return t.noSearch},R=function(t){return t.isSearchLoading},P=function(t){return t.isReport},E=function(t){return t.searchReport},S=function(t){return t.lastSearchParams},y=function(t){return t.searchParams.sort},b=n("uPHq"),D=function(t,e){var n=t.commit,a=t.getters;n("initSearch",{}),n("updateNoSearch",{status:!1});var r=void 0;e&&e.isSort?(r=a.lastSearchParams).sort=a.sort:(r=a.searchParams).rows=a.searchRecordsPerPage,n("setLastSearchParams",{params:Object.assign({},r)}),b.a.search(r).then(function(t){n("searchResults",{searchResults:t}),n("toggleLoading",{status:!1})}).catch(function(t){console.log("error getting search results"),console.log(t),n("isSearchError",{status:!0}),n("toggleLoading",{status:!1})})},M=function(t,e){var n=t.commit,a=t.getters;n("initSearch",{}),n("setReportSearch",e),n("updateNoSearch",{status:!1}),b.a.searchReport({id:e.id,rows:a.searchRecordsPerPage,sort:a.searchParams.sort}).then(function(t){n("searchResults",{searchResults:t}),n("toggleLoading",{status:!1})}).catch(function(t){console.log("error getting report results"),console.log(t),n("isSearchError",{status:!0}),n("toggleLoading",{status:!1})})},B=function(t,e){var n=t.commit,a=t.getters;n("initPaging",{}),n("updateNoSearch",{status:!1});var r=e.page<1?1:e.page,i=a.searchResultsList.slice((r-1)*e.count,r*e.count);b.a.getOverviewDetails(i).then(function(t){n("updateResults",{results:t,page:r}),n("toggleLoading",{status:!1})}).catch(function(t){console.log("error getting page results"),console.log(t),n("isSearchError",{status:!0}),n("toggleLoading",{status:!1})})},V=function(t,e){var n=t.commit;t.getters;n("updateSearchRecordsPerPage",{count:e.count})},L=function(t,e){t.searchResultsOverview=e.searchResults.overview,t.searchResultsList=e.searchResults.matchingParcelIds,t.searchResultsTotalRows=e.searchResults.totalRows,t.searchPage=1},T=function(t,e){t.searchResultsOverview=e.results,t.searchPage=e.page},x=function(t,e){t.isSearchError=e.status},I=function(t,e){t.isSearchLoading=e.status},A=function(t,e){t.noSearch=e.status},_=function(t,e){t.isSearchLoading=!0,t.isSearchError=!1},O=function(t,e){t.isSearchLoading=!0,t.isSearchError=!1,t.noSearch=!0,t.isReport=!1},C=function(t,e){t.searchRecordsPerPage=e.count},N=function(t,e){t.isReport=!0,t.searchReport=e},H=function(t,e){t.lastSearchParams=e.params};o.a.use(u.a);var j=new u.a.Store({state:{searchResultsOverview:[],searchResultsList:[],searchResultsTotalRows:null,searchPage:0,searchRecordsPerPage:10,searchReport:null,isReport:!1,noSearch:!0,hideFilters:!0,isSearchLoading:!1,isSearchError:!1,searchParams:{baseSearch:null,subdivision:null,salesDateMin:null,salesDateMax:null,salesPriceMin:null,salesPriceMax:null,yearBuiltMin:null,yearBuiltMax:null,finishedSqFtMin:null,finishedSqFtMax:null,nbrBedroomsMin:null,nbrBedroomsMax:null,nbrBathsMin:null,nbrBathsMax:null,nbrHalfBathsMin:null,nbrHalfBathsMax:null,magisterialDistrict:null,lotSizeMin:null,lotSizeMax:null,isResidential:!0,isCommercial:!0,isActive:!0,isInactive:!0,isImproved:!0,isUnimproved:!0,buildingUseCode:null,residentialStories:null,residentialStyle:null,residentialBasement:null,sort:0},lastSearchParams:null,isLoading:!1},getters:a,actions:r,mutations:i});e.a=j},JLzs:function(t,e){},M93x:function(t,e,n){"use strict";var a={data:function(){return{env:"production",version:"2.1"}},computed:{environment:function(){return"production"===this.env?"":" ("+this.env+")"}},created:function(){document.getElementsByTagName("body")[0].setAttribute("data-app","true"),this.$helpers.mutated()},updated:function(){this.$helpers.mutated()}},r=n("XyMi"),i=Object(r.a)(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",{attrs:{id:"read-app",light:""}},[n("router-view",{attrs:{id:"read-content"}}),t._v(" "),n("footer",{staticClass:"primary px-2"},[n("div",{staticClass:"hidden-sm-and-down d-inline-block"},[t._v("Real Estate Assessment Data")]),t._v(" "),n("div",{staticClass:"right d-inline-block"},[t._v("v."+t._s(t.version)+t._s(t.environment))])])],1)},[],!1,null,null,null);e.a=i.exports},P0ba:function(t,e){},PJ2A:function(t,e){},R681:function(t,e){},SJI6:function(t,e){t.exports=Vuex},V5lI:function(t,e){},XC5Q:function(t,e){},YaEn:function(t,e,n){"use strict";var a=n("lRwf"),r=n.n(a),i=n("pRNm"),s=n.n(i),o=n("cX0o"),c=n("XyMi"),u=Object(c.a)(null,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"alert alert-danger"},[e("span",{staticClass:"glyphicon glyphicon-info-sign"}),this._v("\n Oops, The requested page could not be found\n")])}],!1,null,null,null).exports,l=n("DYfX");r.a.use(s.a);var d=new s.a({base:"",mode:"hash",routes:[{name:"search",path:"/",component:function(){return{component:Promise.all([n.e(3),n.e(1)]).then(n.bind(null,"Ao6p")),loading:l.a,delay:200,timeout:3e3}}},{name:"details",path:"/Details/:parcelId",component:function(){return{component:Promise.all([n.e(3),n.e(2)]).then(n.bind(null,"HT4Z")),loading:l.a,delay:200,timeout:3e3}},props:!0},{name:"print",path:"/Print/:parcelId",component:function(){return{component:Promise.all([n.e(3),n.e(0)]).then(n.bind(null,"P8vg")),loading:l.a,delay:200,timeout:3e3}},props:!0},{name:"NotFound",path:"*",component:u}]});d.afterEach(function(t,e){o.a.scrollTo("read-app",0),o.a.mutated(),o.a.setAnalyticsPageView()});e.a=d},bbkW:function(t,e){},cX0o:function(t,e,n){"use strict";var a=n("y1vT"),r=n.n(a),i={initGA:function(){},initGTM:function(){this._loadGTAG(),this._initGTM()},_loadGTAG:function(){var t,e,n,a,r,i;function s(){window.dataLayer.push(arguments)}t=window,e=document,n="script",a="readApp_gtag",console.log("init GTAG"),t.GoogleTagObject=a,t[a]=t[a]||function(){(t[a].q=t[a].q||[]).push(arguments)},t[a].l=1*new Date,r=e.createElement(n),i=e.getElementsByTagName(n)[0],r.async=1,r.src="https://www.googletagmanager.com/gtag/js?id=UA-8004758-18",i.parentNode.insertBefore(r,i),window.dataLayer=window.dataLayer||[],s("js",new Date),s("config",window.readApp_ga)},_initGTM:function(){!function(t,e,n,a,r){t[a]=t[a]||[],t[a].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=e.getElementsByTagName(n)[0],s=e.createElement(n);s.async=!0,s.src="https://www.googletagmanager.com/gtm.js?id=GTM-N79CBNT",i.parentNode.insertBefore(s,i)}(window,document,"script","dataLayer")},setAnalyticsPageView:r()(function(){this.setAnalyticsTag("Pageview",{url:window.location.href})},250),setAnalyticsTag:r()(function(t,e){window.dataLayer=window.dataLayer||[];var n=Object.assign({event:t},e);window.dataLayer.push(n)},100),mutated:r()(function(){window.dispatchEvent(new Event("resize"))},50),isPositiveInteger:function(t){return"0"===t||/^[1-9]\d*$/.test(t)},validateMinMaxNumber:function(t,e,n){var a={valid:!1,message:void 0};return void 0===t||null===t||""===t?a.valid=!0:this.isPositiveInteger(t)?void 0!==e&&null!==e&&""!==e&&this.isPositiveInteger(e)?(t=Number.parseInt(t),e=Number.parseInt(e),n&&t>e||!n&&t0-e)){var r=a-n+e;window.scrollTo(0,r)}}};e.a=i},"d/lB":function(t,e){},fAhx:function(t,e){},jQdp:function(t,e){},kP4z:function(t,e){},kVeV:function(t,e){},lRwf:function(t,e){t.exports=Vue},lThp:function(t,e){},pRNm:function(t,e){t.exports=VueRouter},"q/9b":function(t,e){},sBiC:function(t,e){},uKc5:function(t,e){},uPHq:function(t,e,n){"use strict";var a=n("mtWM"),r=n.n(a);r.a.defaults.baseURL="https://api.chesterfield.gov/api",r.a.interceptors.request.use(function(t){return t.headers.common["X-ApiKey"]="357bb5d5-ceb1-44a8-a10a-9c1eab6ace09",t});var i={search:function(t){return t.returnOverview=!0,new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/Search",{params:t}).then(function(t){e(t.data)}).catch(function(t){console.log(t),n(t)})})},searchReport:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/DefinedSearch/"+t.id,{params:t}).then(function(t){e(t.data)}).catch(function(t){n(t)})})},getOverviewDetails:function(t){return new Promise(function(e,n){r.a.post("/RealEstate/V1.0/Details/GetOverviewResults",{ParcelIds:t}).then(function(t){e(t.data)}).catch(function(t){n(t)})})},getOverviewExport:function(t){return new Promise(function(e,n){r.a.post("/RealEstate/V1.0/Details/GetOverviewResults",{ParcelIds:t},{headers:{Accept:"text/csv"},responseType:"blob"}).then(function(t){var n=new Date,a="READ_"+(n.getMonth()+1)+"_"+n.getDate()+"_"+n.getFullYear()+"-"+n.getHours()+"_"+n.getMinutes()+".csv",r=new Blob([t.data],{type:t.data.type||"text/csv"});if(window.navigator&&window.navigator.msSaveBlob)window.navigator.msSaveBlob(r,a);else{var i=document.createElement("a"),s=window.URL.createObjectURL(r);i.href=s,i.download=a,i.click(),window.URL.revokeObjectURL(s)}e()}).catch(function(t){n(t)})})},details:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/Details",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(t){n(t.response)})})},getImprovements:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/Improvements",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(){n(Error())})})},getResidentialBuildings:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/ResidentialBuildings",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(){n(Error())})})},getCommercialBuildings:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/CommercialBuildings",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(){n(Error())})})},getAssessmentHistory:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/AssessmentHistory",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(){n(Error())})})},getOwnershipHistory:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/OwnershipHistory",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(){n(Error())})})},getBuildingDimensions:function(t,e){return new Promise(function(n,a){r.a.get("/RealEstate/V1.0/Details/BuildingDimensions",{params:{parcelId:t,buildingNumber:e}}).then(function(t){n(t.data)}).catch(function(){a(Error())})})},getRemarks:function(t){return new Promise(function(e,n){r.a.get("/RealEstate/V1.0/Details/Remarks",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(){n(Error())})})},getTaxHistory:function(t){return new Promise(function(e,n){r.a.get("/Tax/V1.0/History/TaxHistory",{params:{parcelId:t}}).then(function(t){e(t.data)}).catch(function(){n(Error())})})},getSubdivisionsMasterData:function(){return new Promise(function(t,e){r.a.get("/Planning/V1.0/MasterData/Subdivisions",{params:{}}).then(function(e){t(e.data)}).catch(function(){e(Error())})})},getMapAreasMasterData:function(){return new Promise(function(t,e){r.a.get("/RealEstate/V1.0/MasterData/AllMapAreas",{params:{}}).then(function(e){t(e.data)}).catch(function(){e(Error())})})},getMagisterialDistrictsMasterData:function(){return new Promise(function(t,e){r.a.get("/Core/V1.0/MasterData/MagisterialDistricts",{params:{}}).then(function(e){t(e.data)}).catch(function(){e(Error())})})},getBuildingUseCodeMasterData:function(){return new Promise(function(t,e){r.a.get("/RealEstate/V1.0/MasterData/AllBuildingUseCodes",{params:{}}).then(function(e){t(e.data)}).catch(function(){e(Error())})})},getResidentialStoriesMasterData:function(){return new Promise(function(t,e){r.a.get("/RealEstate/V1.0/MasterData/ResidentialBuildingStories",{params:{}}).then(function(e){t(e.data)}).catch(function(){e(Error())})})},getResidentialBuildingStyleMasterData:function(){return new Promise(function(t,e){r.a.get("/RealEstate/V1.0/MasterData/ResidentialBuildingStyle",{params:{}}).then(function(e){t(e.data)}).catch(function(){e(Error())})})},getResidentialBasementMasterData:function(){return new Promise(function(t,e){r.a.get("/RealEstate/V1.0/MasterData/ResidentialBuildingBasementType",{params:{}}).then(function(e){t(e.data)}).catch(function(){e(Error())})})}};e.a=i}},["3Di9"]);