{"version":3,"sources":["webpack:///./src/views/PropertiesCommercial.vue?5c0a","webpack:///./src/views/PropertiesCommercial.vue?4d96","webpack:///./src/views/PropertiesCommercial.vue?83cc","webpack:///./src/views/PropertiesCommercial.vue?540d","webpack:///./src/views/PropertiesCommercial.vue?4da3"],"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","Business","MethodsOfSale","Sale","Lease","Both","Auction","Tender","EOI","ForSale","Offers","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":"kJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,wBAAwB,KAAO,UAAUF,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAAEJ,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIO,cAAc,eAAgB,EAAK,gBAAiB,KAASP,EAAIQ,MAAM,IAAI,IAAI,IAChWC,EAAkB,G,oFCyBtB,IAAqB,EAArB,cAAkD,eAAO,SAAzD,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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,MAExFd,KAAKW,OAAOC,MAAM+C,oBAAmBzC,EAAO0C,UAAW,GACvD5D,KAAKW,OAAOC,MAAMiD,aAAY3C,EAAO4C,YAAa,GAClD9D,KAAKW,OAAOC,MAAMmD,eAAc7C,EAAO8C,iBAAkB,GACzDhE,KAAKW,OAAOC,MAAMqD,WAAU/C,EAAO0C,UAAW,GAElD5D,KAAKM,cAAgBY,IAxEvB,yBADC,eAAM,iB,2BA0EN,MAjFkB,EAAoB,yBANxC,eAAU,CACTgD,WAAY,CACVC,WAAA,KACAC,gBAAA,SAGiB,WC1B0X,I,wBCQ3YC,EAAY,eACd,EACAvE,EACAU,GACA,EACA,KACA,WACA,MAIa,aAAA6D,E,6CCnBf,yBAAmf,EAAG","file":"js/chunk-9441dd94.cb1a98f7.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\":\"Commercial Sale/Lease\",\"mini\":\"true\"}}),_c('ContentRow',[_c('ContentContainer',[(_vm.listingFilter)?_c('Listings',{attrs:{\"filter\":_vm.listingFilter,\"allowLoadMore\":true,\"infiniteScroll\":false}}):_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 { View } from 'client-website-ts-library/plugins';\nimport { ListingCategory, ListingStatus, MethodOfSale, PropertyCategory, PropertyType } 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 PropertiesCommercial 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 ListingCategory.Business,\n ],\n MethodsOfSale: [\n MethodOfSale.Sale,\n MethodOfSale.Lease,\n MethodOfSale.Both,\n MethodOfSale.Auction,\n MethodOfSale.Tender,\n MethodOfSale.EOI,\n MethodOfSale.ForSale,\n MethodOfSale.Offers,\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.MinLandArea = this.$route.query.areaMin as string;\n if (this.$route.query.areaMax) filter.MaxLandArea = this.$route.query.areaMax as string;\n\n if (this.$route.query.priceMin) filter.MinPrice = this.$route.query.priceMin as string;\n if (this.$route.query.priceMax) filter.MaxPrice = this.$route.query.priceMax as string;\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","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!./PropertiesCommercial.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!./PropertiesCommercial.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PropertiesCommercial.vue?vue&type=template&id=02a6948f&scoped=true&\"\nimport script from \"./PropertiesCommercial.vue?vue&type=script&lang=ts&\"\nexport * from \"./PropertiesCommercial.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PropertiesCommercial.vue?vue&type=style&index=0&id=02a6948f&scoped=true&lang=css&\"\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 \"02a6948f\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertiesCommercial.vue?vue&type=style&index=0&id=02a6948f&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertiesCommercial.vue?vue&type=style&index=0&id=02a6948f&scoped=true&lang=css&\""],"sourceRoot":""}