{"version":3,"sources":["webpack:///./src/views/OfficePropertiesForSale.vue?664a","webpack:///./src/views/OfficePropertiesForSale.vue","webpack:///./src/views/OfficePropertiesForSale.vue?e37d","webpack:///./src/views/OfficePropertiesForSale.vue?6dd0"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","on","handleFilter","listingFilter","_e","staticRenderFns","OfficePropertiesForSale","Mixins","View","constructor","filter","id","$route","params","API","Slugs","Resolve","then","resolved","Type","Id","SearchLevel","WebsiteLevel","Office","SearchGuid","OrderByStatements","ListingOrderBy","CreateDateDesc","__decorate","Component","components","Listings","ListingSearch","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,2DAA2D,KAAO,UAAUF,EAAG,aAAa,CAACE,MAAM,CAAC,cAAe,IAAO,CAACF,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,iBAAiB,OAAOC,GAAG,CAAC,eAAiBP,EAAIQ,gBAAiBR,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIS,cAAc,gBAAiB,KAAST,EAAIU,MAAM,IAAI,IAAI,IACxeC,EAAkB,G,gGC4BtB,IAAqBC,EAArB,cAAqDC,eAAOC,SAA5DC,c,oBACU,KAAAN,cAAsC,KAE9CD,aAAaQ,GACX,MAAMC,EAAKhB,KAAKiB,OAAOC,OAAOF,GAC1BA,GACFG,OAAIC,MAAMC,QAAQL,GAAIM,KAAMC,IACJ,WAAlBA,EAASC,OAES,yCAAhBD,EAASE,KAEXV,EAAOW,YAAcC,OAAaC,OAElCb,EAAOc,WAAa,wCAIF,yCAAhBN,EAASE,KAEXV,EAAOW,YAAcC,OAAaC,OAElCb,EAAOc,WAAa,wCAIF,yCAAhBN,EAASE,KAEXV,EAAOW,YAAcC,OAAaC,OAElCb,EAAOc,WAAa,yCAIxBd,EAAOe,kBAAoB,CAACC,OAAeC,gBAC3ChC,KAAKQ,cAAgBO,MAlCRJ,EAAuBsB,wBAAA,CAN3CC,eAAU,CACTC,WAAY,CACVC,gBACAC,yBAGiB1B,WC7B6X,I,YCO9Y2B,EAAY,eACd,EACAxC,EACAY,GACA,EACA,KACA,KACA,MAIa,aAAA4B,E","file":"js/chunk-2d213e69.594433d7.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 For Sale\",\"thin\":\"true\"}}),_c('ContentRow',{attrs:{\"noPaddingTop\":true}},[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"method-of-sale\":\"buy\"},on:{\"filter_updated\":_vm.handleFilter}}),(_vm.listingFilter)?_c('Listings',{attrs:{\"filter\":_vm.listingFilter,\"infiniteScroll\":false}}):_vm._e()],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 { View } from 'client-website-ts-library/plugins';\nimport { API } from 'client-website-ts-library/services';\nimport { WebsiteLevel } from 'client-website-ts-library/types';\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 OfficePropertiesForSale extends Mixins(View) {\n private listingFilter: ListingFilter | null = null;\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 = 'f2c947c3-1b35-41ce-8380-54f0ff32cd52';\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.Office;\n // eslint-disable-next-line no-param-reassign\n filter.SearchGuid = 'f9d229bb-51ff-4b83-94eb-4877c1c736d2';\n }\n }\n // eslint-disable-next-line no-param-reassign\n filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\n this.listingFilter = filter;\n });\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!./OfficePropertiesForSale.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!./OfficePropertiesForSale.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OfficePropertiesForSale.vue?vue&type=template&id=271ce085&\"\nimport script from \"./OfficePropertiesForSale.vue?vue&type=script&lang=ts&\"\nexport * from \"./OfficePropertiesForSale.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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}