{"version":3,"sources":["webpack:///./src/views/OfficePropertiesForRent.vue?68b1","webpack:///./src/views/OfficePropertiesForRent.vue","webpack:///./src/views/OfficePropertiesForRent.vue?e74a","webpack:///./src/views/OfficePropertiesForRent.vue?4ad8"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","on","handleFilter","listingFilter","_e","staticRenderFns","OfficePropertiesForRent","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":"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,2DAA2D,KAAO,UAAUF,EAAG,aAAa,CAACE,MAAM,CAAC,cAAe,IAAO,CAACF,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,iBAAiB,QAAQC,GAAG,CAAC,eAAiBP,EAAIQ,gBAAiBR,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIS,cAAc,gBAAiB,KAAST,EAAIU,MAAM,IAAI,IAAI,IACzeC,EAAkB,G,4ZC4BtB,IAAqBC,EAArB,cAAqDC,eAAOC,SAA5DC,c,oBACU,KAAAN,cAAsC,KAE9CD,aAAaQ,GACX,MAAMC,EAAKhB,KAAKiB,OAAOC,OAAOF,GAC1BA,EACFG,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,yCAIxBd,EAAOe,kBAAoB,CAACC,OAAeC,gBAC3ChC,KAAKQ,cAAgBO,KAIvBA,EAAOe,kBAAoB,CAACC,OAAeC,gBAC3ChC,KAAKQ,cAAgBO,KA/BNJ,EAAuBsB,EAAA,CAN3CC,eAAU,CACTC,WAAY,CACVC,gBACAC,yBAGiB1B,WC7B6X,I,YCO9Y2B,EAAY,eACd,EACAxC,EACAY,GACA,EACA,KACA,KACA,MAIa,aAAA4B,E","file":"js/chunk-2d0abc88.35219ebb.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 Rent\",\"thin\":\"true\"}}),_c('ContentRow',{attrs:{\"noPaddingTop\":true}},[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"method-of-sale\":\"rent\"},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\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\r\nimport { View } from 'client-website-ts-library/plugins';\r\nimport { WebsiteLevel } from 'client-website-ts-library/types';\r\nimport { API } from 'client-website-ts-library/services';\r\n\r\nimport Listings from '../components/Listings.vue';\r\nimport ListingSearch from '../components/ListingSearch.vue';\r\n\r\n@Component({\r\n components: {\r\n Listings,\r\n ListingSearch,\r\n },\r\n})\r\nexport default class OfficePropertiesForRent extends Mixins(View) {\r\n private listingFilter: ListingFilter | null = null;\r\n\r\n handleFilter(filter: ListingFilter) {\r\n const id = this.$route.params.id;\r\n if (id) {\r\n API.Slugs.Resolve(id).then((resolved) => {\r\n if (resolved.Type === 'Office') {\r\n // City\r\n if (resolved.Id === '91b553f9-7cbc-4697-bf7d-d70714b674a4') {\r\n // eslint-disable-next-line no-param-reassign\r\n filter.SearchLevel = WebsiteLevel.Office;\r\n // eslint-disable-next-line no-param-reassign\r\n filter.SearchGuid = '29d9080e-165e-4372-afc4-374f5b90fdde';\r\n }\r\n\r\n // Redlynch\r\n if (resolved.Id === 'f2c947c3-1b35-41ce-8380-54f0ff32cd52') {\r\n // eslint-disable-next-line no-param-reassign\r\n filter.SearchLevel = WebsiteLevel.Office;\r\n // eslint-disable-next-line no-param-reassign\r\n filter.SearchGuid = '4e9814df-12f6-4c08-b411-1499c2b952c9';\r\n }\r\n }\r\n // eslint-disable-next-line no-param-reassign\r\n filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\r\n this.listingFilter = filter;\r\n });\r\n } else {\r\n // eslint-disable-next-line no-param-reassign\r\n filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\r\n this.listingFilter = filter;\r\n }\r\n }\r\n}\r\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!./OfficePropertiesForRent.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!./OfficePropertiesForRent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OfficePropertiesForRent.vue?vue&type=template&id=ab98f678&\"\nimport script from \"./OfficePropertiesForRent.vue?vue&type=script&lang=ts&\"\nexport * from \"./OfficePropertiesForRent.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":""}