{"version":3,"sources":["webpack:///./src/views/PropertiesForRent.vue?0419","webpack:///./src/views/PropertiesForRent.vue","webpack:///./src/views/PropertiesForRent.vue?5f55","webpack:///./src/views/PropertiesForRent.vue?58d8"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_v","listingFilter","_e","staticRenderFns","updateFilter","propertyCategories","propertyTypes","$route","query","ListingCategory","split","map","v","parseInt","filter","PropertyCategories","PropertyTypes","Statuses","Current","UnderContract","MethodsOfSale","Lease","Categories","ResidentialRental","PageSize","OrderByStatements","CreateDateDesc","keywordOptions","keywordOpts","opt","Type","Value","Suburbs","categories","length","searchVal","find","SearchTerm","areaMin","MinLandArea","areaMax","MaxLandArea","priceMin","MinPrice","priceMax","MaxPrice","suburbs","isVacantPosession","IsVacant","isTenanted","IsTenanted","isStandalone","IsWholeBuilding","isStrata","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,yBAAyBF,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACA,EAAG,kBAAkB,CAACJ,EAAIO,GAAG,qBAAqBH,EAAG,eAAe,CAACJ,EAAIO,GAAG,2BAA4BP,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIQ,cAAc,WAAY,KAASR,EAAIS,MAAM,IAAI,IAAI,IAC7ZC,EAAkB,G,8KC+BD,EAArB,yG,0BACU,EAAAF,cAAsC,KADhD,gDAGE,WACEP,KAAKU,iBAJT,0BAQE,WACE,IAAIC,EAAyC,GACzCC,EAAgC,GAEhCZ,KAAKa,OAAOC,MAAMC,kBAEpBJ,EAAsBX,KAAKa,OAAOC,MAAMC,gBAA4BC,MAAM,KAAKC,KAAI,SAACC,GAAD,OAAOC,SAASD,OAGjGlB,KAAKa,OAA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ElD,KAAKa,OAAOC,MAAMsC,UAAShC,EAAOkB,QAAWtC,KAAKa,OAAOC,MAAMsC,QAAmBpC,MAAM,MAExFhB,KAAKa,OAAOC,MAAMuC,oBAAmBjC,EAAOkC,UAAW,GACvDtD,KAAKa,OAAOC,MAAMyC,aAAYnC,EAAOoC,YAAa,GAClDxD,KAAKa,OAAOC,MAAM2C,eAAcrC,EAAOsC,iBAAkB,GACzD1D,KAAKa,OAAOC,MAAM6C,WAAUvC,EAAOkC,UAAW,GAElDtD,KAAKO,cAAgBa,MA9EzB,GAA+C,eAAO,SAQpD,yBADC,eAAM,iB,2BAwEN,MA/EkB,EAAiB,yBANrC,eAAU,CACTwC,WAAY,CACVC,WAAA,KACAC,gBAAA,SAGiB,WChCuX,I,YCOxYC,EAAY,eACd,EACAjE,EACAW,GACA,EACA,KACA,KACA,MAIa,aAAAsD,E","file":"js/chunk-2d2217e7.0a1466f6.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\"}}),_c('ContentRow',[_c('ContentContainer',[_c('SectionSubtitle',[_vm._v(\" Make the move \")]),_c('SectionTitle',[_vm._v(\" Properties for rent \")]),(_vm.listingFilter)?_c('Listings',{attrs:{\"filter\":_vm.listingFilter,\"fullWidth\":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\n\n\n\n\r\nimport { Component, Mixins, Watch } 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 { ListingCategory, ListingStatus, MethodOfSale, PropertyCategory, PropertyType } from 'client-website-ts-library/types';\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 PropertiesForRent extends Mixins(View) {\r\n private listingFilter: ListingFilter | null = null;\r\n\r\n mounted() {\r\n this.updateFilter();\r\n }\r\n\r\n @Watch('$route.query')\r\n updateFilter() {\r\n let propertyCategories: PropertyCategory[] = [];\r\n let propertyTypes: PropertyType[] = [];\r\n\r\n if (this.$route.query.ListingCategory) {\r\n // eslint-disable-next-line radix\r\n propertyCategories = (this.$route.query.ListingCategory! as string).split(',').map((v) => parseInt(v) as PropertyCategory);\r\n }\r\n\r\n if (this.$route.query.propertyTypes) {\r\n // eslint-disable-next-line radix\r\n propertyTypes = (this.$route.query.propertyTypes! as string).split('|').map((v) => parseInt(v) as PropertyType);\r\n }\r\n\r\n const filter = new ListingFilter({\r\n PropertyCategories: propertyCategories,\r\n PropertyTypes: propertyTypes,\r\n Statuses: [\r\n ListingStatus.Current,\r\n ListingStatus.UnderContract,\r\n ],\r\n MethodsOfSale: [\r\n MethodOfSale.Lease,\r\n ],\r\n Categories: [\r\n ListingCategory.ResidentialRental,\r\n ],\r\n PageSize: 9,\r\n OrderByStatements: [\r\n ListingOrderBy.CreateDateDesc,\r\n ],\r\n });\r\n\r\n if (this.$route.query.keywordOptions) {\r\n const keywordOpts = (this.$route.query.keywordOptions as string).split('|').map((opt) => {\r\n const split = opt.split(':');\r\n\r\n return {\r\n Type: split[0],\r\n Value: split[1],\r\n };\r\n });\r\n\r\n filter.Suburbs = keywordOpts.filter((opt) => opt.Type === 'suburb').map((opt) => opt.Value);\r\n\r\n const categories = keywordOpts.filter((opt) => opt.Type === 'categories').map((opt) => parseInt(opt.Value, 10));\r\n\r\n if (categories.length > 0) {\r\n filter.PropertyCategories = categories;\r\n }\r\n\r\n const searchVal = keywordOpts.find((opt) => opt.Type === 'search');\r\n\r\n if (searchVal) {\r\n filter.SearchTerm = searchVal.Value;\r\n }\r\n }\r\n\r\n if (this.$route.query.areaMin) filter.MinLandArea = this.$route.query.areaMin as string;\r\n if (this.$route.query.areaMax) filter.MaxLandArea = this.$route.query.areaMax as string;\r\n\r\n if (this.$route.query.priceMin) filter.MinPrice = this.$route.query.priceMin as string;\r\n if (this.$route.query.priceMax) filter.MaxPrice = this.$route.query.priceMax as string;\r\n if (this.$route.query.suburbs) filter.Suburbs = (this.$route.query.suburbs as string).split('|');\r\n\r\n if (this.$route.query.isVacantPosession) filter.IsVacant = true;\r\n if (this.$route.query.isTenanted) filter.IsTenanted = true;\r\n if (this.$route.query.isStandalone) filter.IsWholeBuilding = true;\r\n if (this.$route.query.isStrata) filter.IsVacant = true;\r\n\r\n this.listingFilter = filter;\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!./PropertiesForRent.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!./PropertiesForRent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PropertiesForRent.vue?vue&type=template&id=b6c5efec&\"\nimport script from \"./PropertiesForRent.vue?vue&type=script&lang=ts&\"\nexport * from \"./PropertiesForRent.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":""}