{"version":3,"sources":["webpack:///./src/views/PropertiesForRent.vue?4f7b","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","promo","listingFilter","_e","staticRenderFns","Type","EmbeddedContent","Youtube","EmbedId","updateFilter","propertyCategories","$route","query","ListingCategory","split","map","v","parseInt","filter","PropertyCategories","Statuses","Current","UnderContract","Categories","ResidentialRental","MethodsOfSale","Lease","Both","PageSize","OrderByStatements","CreateDateDesc","keywordOptions","keywordOpts","opt","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","VideoBanner","Embeddable","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,CAACE,MAAM,CAAC,cAAe,EAAK,iBAAkB,EAAK,SAAU,EAAK,gBAAkB,mCAAmC,CAACF,EAAG,mBAAmB,CAACA,EAAG,aAAa,CAACE,MAAM,CAAC,WAAaN,EAAIO,UAAU,IAAI,GAAGH,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAAEJ,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIQ,iBAAiBR,EAAIS,MAAM,IAAI,IAAI,IAC5gBC,EAAkB,G,kmBCmCD,EAArB,yG,0BACU,EAAAF,cAAsC,KAE7B,EAAAD,MAAyB,CACxCI,KAAMC,EAAA,KAAoBC,QAC1BC,QAAS,eALb,gDAQE,WACEb,KAAK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ElD,KAAKgB,OAAOC,MAAMoC,WAAU9B,EAAO+B,SAA8D,GAAnDF,WAAWpD,KAAKgB,OAAOC,MAAMoC,WAC3ErD,KAAKgB,OAAOC,MAAMsC,UAAShC,EAAOiB,QAAWxC,KAAKgB,OAAOC,MAAMsC,QAAmBpC,MAAM,MAExFnB,KAAKgB,OAAOC,MAAMuC,oBAAmBjC,EAAOkC,UAAW,GACvDzD,KAAKgB,OAAOC,MAAMyC,aAAYnC,EAAOoC,YAAa,GAClD3D,KAAKgB,OAAOC,MAAM2C,eAAcrC,EAAOsC,iBAAkB,GACzD7D,KAAKgB,OAAOC,MAAM6C,WAAUvC,EAAOkC,UAAW,GAElDzD,KAAKO,cAAgBgB,IA7EzB,0BAgFE,SAAaA,GACXvB,KAAKO,cAAgBgB,MAjFzB,GAA+C,eAAO,SAapD,GADC,eAAM,iB,2BAkEN,MA9EkB,EAAiB,GARrC,eAAU,CACTwC,WAAY,CACVC,WAAA,KACAC,gBAAA,KACAC,cAAA,KACAC,aAAA,SAGiB,WCpCuX,I,YCOxYC,EAAY,eACd,EACAtE,EACAW,GACA,EACA,KACA,KACA,MAIa,aAAA2D,E","file":"js/chunk-2d2217e7.a8c46a6c.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',{attrs:{\"hasMarginTop\":true,\"hasMarginBottom\":true,\"lighten\":true,\"backgroundImage\":\"/assets/images/photos/buy.webp\"}},[_c('ContentContainer',[_c('Embeddable',{attrs:{\"embeddable\":_vm.promo}})],1)],1),_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\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 { ListingStatus, ListingCategory, MethodOfSale, PropertyCategory } from 'client-website-ts-library/types';\r\nimport { View } from 'client-website-ts-library/plugins';\r\n\r\nimport Embeddable from '@/components/Common/Embeddable.vue';\r\nimport { EmbeddedContent, EmbeddedContentType } from 'client-website-ts-library/types/EmbeddedContent/EmbeddedContent';\r\nimport Listings from '../components/Listings.vue';\r\nimport ListingSearch from '../components/ListingSearch.vue';\r\nimport VideoBanner from '../components/VideoBanner.vue';\r\n\r\n@Component({\r\n components: {\r\n Listings,\r\n ListingSearch,\r\n VideoBanner,\r\n Embeddable,\r\n },\r\n})\r\nexport default class PropertiesForRent extends Mixins(View) {\r\n private listingFilter: ListingFilter | null = null;\r\n\r\n private readonly promo: EmbeddedContent = {\r\n Type: EmbeddedContentType.Youtube,\r\n EmbedId: 'IucYcOmAySs',\r\n }\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\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 const filter = new ListingFilter({\r\n PropertyCategories: propertyCategories,\r\n Statuses: [\r\n ListingStatus.Current,\r\n ListingStatus.UnderContract,\r\n ],\r\n Categories: [\r\n ListingCategory.ResidentialRental,\r\n ],\r\n MethodsOfSale: [\r\n MethodOfSale.Lease,\r\n MethodOfSale.Both,\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.MinFloorArea = this.$route.query.areaMin as string;\r\n if (this.$route.query.areaMax) filter.MaxFloorArea = this.$route.query.areaMax as string;\r\n\r\n if (this.$route.query.priceMin) filter.MinPrice = parseFloat(this.$route.query.priceMin as string) * 52;\r\n if (this.$route.query.priceMax) filter.MaxPrice = parseFloat(this.$route.query.priceMax as string) * 52;\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 handleFilter(filter: ListingFilter) {\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=97659092&\"\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":""}