{"version":3,"sources":["webpack:///./src/views/PropertiesForRent.vue?b0d9","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","listingFilter","_e","staticRenderFns","updateFilter","propertyCategories","$route","query","ListingCategory","split","map","v","parseInt","filter","PropertyCategories","Statuses","Current","UnderContract","Categories","Commercial","CommercialLand","MethodsOfSale","Lease","Both","PageSize","OrderByStatements","CreateDateDesc","keywordOptions","keywordOpts","opt","Type","Value","Suburbs","categories","length","searchVal","find","SearchTerm","areaMin","MinFloorArea","areaMax","MaxFloorArea","priceMin","MinPrice","parseFloat","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,uBAAuB,KAAO,UAAUF,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAAEJ,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIO,iBAAiBP,EAAIQ,MAAM,IAAI,IAAI,IACnTC,EAAkB,G,4ZCyBtB,IAAqB,EAArB,cAA+C,eAAO,SAAtD,c,oBACU,KAAAF,cAAsC,KAE9C,UACEN,KAAKS,eAIP,eACE,IAAIC,EAAyC,GAEzCV,KAAKW,OAAOC,MAAMC,kBAEpBH,EAAsBV,KAAKW,OAAOC,MAAMC,gBAA4BC,MAAM,KAAKC,IAAKC,GAAMC,SAASD,KAGrG,MAAME,EAAS,IAAI,OAAc,CAC/BC,mBAAoBT,EACpBU,SAAU,CACR,OAAcC,QACd,OAAcC,eAEhBC,WAAY,CACV,OAAgBC,WACh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6C,eAAcvC,EAAOwC,iBAAkB,GACzD1D,KAAKW,OAAOC,MAAM+C,WAAUzC,EAAOoC,UAAW,GAElDtD,KAAKM,cAAgBY,EAGvB,aAAaA,GACXlB,KAAKM,cAAgBY,IArEvB,GADC,eAAM,iB,2BAmEN,MA1EkB,EAAiB,GANrC,eAAU,CACT0C,WAAY,CACVC,WAAA,KACAC,gBAAA,SAGiB,WC1BuX,I,YCOxYC,EAAY,eACd,EACAjE,EACAU,GACA,EACA,KACA,KACA,MAIa,aAAAuD,E","file":"js/chunk-2d2217e7.88e82de1.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 Lease\",\"mini\":\"true\"}}),_c('ContentRow',[_c('ContentContainer',[(_vm.listingFilter)?_c('Listings',{attrs:{\"filter\":_vm.listingFilter}}):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Mixins, Watch } from 'vue-property-decorator';\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\nimport { ListingStatus, ListingCategory, MethodOfSale, PropertyCategory } from 'client-website-ts-library/types';\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 PropertiesForRent extends Mixins(View) {\n private listingFilter: ListingFilter | null = null;\n\n mounted() {\n this.updateFilter();\n }\n\n @Watch('$route.query')\n updateFilter() {\n let propertyCategories: PropertyCategory[] = [];\n\n if (this.$route.query.ListingCategory) {\n // eslint-disable-next-line radix\n propertyCategories = (this.$route.query.ListingCategory! as string).split(',').map((v) => parseInt(v) as PropertyCategory);\n }\n\n const filter = new ListingFilter({\n PropertyCategories: propertyCategories,\n Statuses: [\n ListingStatus.Current,\n ListingStatus.UnderContract,\n ],\n Categories: [\n ListingCategory.Commercial,\n ListingCategory.CommercialLand,\n ],\n MethodsOfSale: [\n MethodOfSale.Lease,\n MethodOfSale.Both,\n ],\n PageSize: 9,\n OrderByStatements: [\n ListingOrderBy.CreateDateDesc,\n ],\n });\n\n if (this.$route.query.keywordOptions) {\n const keywordOpts = (this.$route.query.keywordOptions as string).split('|').map((opt) => {\n const split = opt.split(':');\n\n return {\n Type: split[0],\n Value: split[1],\n };\n });\n\n filter.Suburbs = keywordOpts.filter((opt) => opt.Type === 'suburb').map((opt) => opt.Value);\n\n const categories = keywordOpts.filter((opt) => opt.Type === 'categories').map((opt) => parseInt(opt.Value, 10));\n\n if (categories.length > 0) {\n filter.PropertyCategories = categories;\n }\n\n const searchVal = keywordOpts.find((opt) => opt.Type === 'search');\n\n if (searchVal) {\n filter.SearchTerm = searchVal.Value;\n }\n }\n\n if (this.$route.query.areaMin) filter.MinFloorArea = this.$route.query.areaMin as string;\n if (this.$route.query.areaMax) filter.MaxFloorArea = this.$route.query.areaMax as string;\n\n if (this.$route.query.priceMin) filter.MinPrice = parseFloat(this.$route.query.priceMin as string) * 52;\n if (this.$route.query.priceMax) filter.MaxPrice = parseFloat(this.$route.query.priceMax as string) * 52;\n if (this.$route.query.suburbs) filter.Suburbs = (this.$route.query.suburbs as string).split('|');\n\n if (this.$route.query.isVacantPosession) filter.IsVacant = true;\n if (this.$route.query.isTenanted) filter.IsTenanted = true;\n if (this.$route.query.isStandalone) filter.IsWholeBuilding = true;\n if (this.$route.query.isStrata) filter.IsVacant = true;\n\n this.listingFilter = filter;\n }\n\n handleFilter(filter: ListingFilter) {\n this.listingFilter = filter;\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!./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=5ab5963c&\"\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":""}