{"version":3,"sources":["webpack:///./src/views/OfficePropertiesSold.vue?aad1","webpack:///./src/views/OfficePropertiesSold.vue","webpack:///./src/views/OfficePropertiesSold.vue?9693","webpack:///./src/views/OfficePropertiesSold.vue?3cf7"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","on","handleFilter","listingFilter","staticRenderFns","Statuses","Sold","Categories","ResidentialSale","ResidentialLand","Rural","PageSize","OrderByStatements","SoldDateDesc","filter","id","$route","params","Slugs","Resolve","then","resolved","Type","Id","SearchLevel","Office","SearchGuid","Profile","components","Listings","ListingSearch","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,uDAAuD,KAAO,UAAUF,EAAG,aAAa,CAACE,MAAM,CAAC,cAAe,IAAO,CAACF,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,iBAAiB,QAAQC,GAAG,CAAC,eAAiBP,EAAIQ,gBAAgBJ,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIS,kBAAkB,IAAI,IAAI,IACjbC,EAAkB,G,gJC4BD,EAArB,yG,0BACU,EAAAD,cAA+B,IAAI,OAAc,CACvDE,SAAU,CACR,OAAcC,MAEhBC,WAAY,CACV,OAAgBC,gBAChB,OAAgBC,gBAChB,OAAgBC,OAElBC,SAAU,EACVC,kBAAmB,CACjB,OAAeC,gBAZrB,8DAgBeC,GAAqB,WAC1BC,EAAKpB,KAAKqB,OAAOC,OAAOF,GAC1BA,EACF,OAAIG,MAAMC,QAAQJ,GAAIK,MAAK,SAACC,GACJ,WAAlBA,EAASC,OAES,yCAAhBD,EAASE,KAEXT,EAAOU,YAAc,OAAaC,OAElCX,EAAOY,WAAa,wCAIF,yCAAhBL,EAASE,KAEXT,EAAOU,YAAc,OAAaC,OAElCX,EAAOY,WAAa,wCAIF,yCAAhBL,EAASE,KAEXT,EAAOU,YAAc,OAAaG,QAElCb,EAAOY,WAAa,yCAGxB,EAAKvB,cAAgBW,KAGvBnB,KAAKQ,cAAgBW,MAhD3B,GAAkD,eAAO,SAApC,EAAoB,gBANxC,eAAU,CACTc,WAAY,CACVC,WAAA,KACAC,gBAAA,SAGiB,WC7B0X,I,YCO3YC,EAAY,eACd,EACAtC,EACAW,GACA,EACA,KACA,WACA,MAIa,aAAA2B,E","file":"js/chunk-2d0a445d.f9c1db9a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Page',[_c('SiteMasthead',{attrs:{\"title\":\"Properties Sold\",\"thin\":\"true\"}}),_c('ContentRow',{attrs:{\"noPaddingTop\":true}},[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"method-of-sale\":\"sold\"},on:{\"filter_updated\":_vm.handleFilter}}),_c('Listings',{attrs:{\"filter\":_vm.listingFilter}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Mixins } from 'vue-property-decorator';\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\nimport { ListingStatus, ListingCategory, WebsiteLevel } from 'client-website-ts-library/types';\nimport { API } from 'client-website-ts-library/services';\nimport { View } from 'client-website-ts-library/plugins';\n\nimport Listings from '../components/Listings.vue';\nimport ListingSearch from '../components/ListingSearch.vue';\n\n@Component({\n components: {\n Listings,\n ListingSearch,\n },\n})\nexport default class OfficePropertiesSold extends Mixins(View) {\n private listingFilter: ListingFilter = new ListingFilter({\n Statuses: [\n ListingStatus.Sold,\n ],\n Categories: [\n ListingCategory.ResidentialSale,\n ListingCategory.ResidentialLand,\n ListingCategory.Rural,\n ],\n PageSize: 9,\n OrderByStatements: [\n ListingOrderBy.SoldDateDesc,\n ],\n });\n\n handleFilter(filter: ListingFilter) {\n const id = this.$route.params.id;\n if (id) {\n API.Slugs.Resolve(id).then((resolved) => {\n if (resolved.Type === 'Office') {\n // City\n if (resolved.Id === '91b553f9-7cbc-4697-bf7d-d70714b674a4') {\n // eslint-disable-next-line no-param-reassign\n filter.SearchLevel = WebsiteLevel.Office;\n // eslint-disable-next-line no-param-reassign\n filter.SearchGuid = '91b553f9-7cbc-4697-bf7d-d70714b674a4';\n }\n\n // Redlynch\n if (resolved.Id === 'f2c947c3-1b35-41ce-8380-54f0ff32cd52') {\n // eslint-disable-next-line no-param-reassign\n filter.SearchLevel = WebsiteLevel.Office;\n // eslint-disable-next-line no-param-reassign\n filter.SearchGuid = '91b553f9-7cbc-4697-bf7d-d70714b674a4';\n }\n\n // South\n if (resolved.Id === 'f9d229bb-51ff-4b83-94eb-4877c1c736d2') {\n // eslint-disable-next-line no-param-reassign\n filter.SearchLevel = WebsiteLevel.Profile;\n // eslint-disable-next-line no-param-reassign\n filter.SearchGuid = 'dbc21df2-268d-43da-a26c-da5711f7ee39';\n }\n }\n this.listingFilter = filter;\n });\n } else {\n this.listingFilter = filter;\n }\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfficePropertiesSold.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfficePropertiesSold.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OfficePropertiesSold.vue?vue&type=template&id=c61a0ee4&scoped=true&\"\nimport script from \"./OfficePropertiesSold.vue?vue&type=script&lang=ts&\"\nexport * from \"./OfficePropertiesSold.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"c61a0ee4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}