{"version":3,"sources":["webpack:///./src/views/PropertiesBusinesses.vue?b50d","webpack:///./src/views/PropertiesBusinesses.vue","webpack:///./src/views/PropertiesBusinesses.vue?deac","webpack:///./src/views/PropertiesBusinesses.vue?7805","webpack:///./src/views/PropertiesBusinesses.vue?9875"],"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","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":"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,aAAa,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,IACrVC,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,CAC/BC,mBAAoBT,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OwC,UAAW,GACvD1D,KAAKW,OAAOC,MAAM+C,aAAYzC,EAAO0C,YAAa,GAClD5D,KAAKW,OAAOC,MAAMiD,eAAc3C,EAAO4C,iBAAkB,GACzD9D,KAAKW,OAAOC,MAAMmD,WAAU7C,EAAOwC,UAAW,GAElD1D,KAAKM,cAAgBY,IAtEvB,yBADC,eAAM,iB,2BAwEN,MA/EkB,EAAoB,yBANxC,eAAU,CACT8C,WAAY,CACVC,WAAA,KACAC,gBAAA,SAGiB,WC1B0X,I,wBCQ3YC,EAAY,eACd,EACArE,EACAU,GACA,EACA,KACA,WACA,MAIa,aAAA2D,E,6CCnBf,yBAAmf,EAAG,G","file":"js/chunk-e136c01e.145a1a1b.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\":\"Businesses\",\"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\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 PropertiesCommercial 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\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.Business,\r\n ],\r\n MethodsOfSale: [\r\n MethodOfSale.Sale,\r\n MethodOfSale.Lease,\r\n MethodOfSale.Both,\r\n MethodOfSale.Auction,\r\n MethodOfSale.Tender,\r\n MethodOfSale.EOI,\r\n MethodOfSale.ForSale,\r\n MethodOfSale.Offers,\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!./PropertiesBusinesses.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!./PropertiesBusinesses.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PropertiesBusinesses.vue?vue&type=template&id=4c5b778c&scoped=true&\"\nimport script from \"./PropertiesBusinesses.vue?vue&type=script&lang=ts&\"\nexport * from \"./PropertiesBusinesses.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PropertiesBusinesses.vue?vue&type=style&index=0&id=4c5b778c&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 \"4c5b778c\",\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!./PropertiesBusinesses.vue?vue&type=style&index=0&id=4c5b778c&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!./PropertiesBusinesses.vue?vue&type=style&index=0&id=4c5b778c&scoped=true&lang=css&\""],"sourceRoot":""}