{"version":3,"sources":["webpack:///./src/views/PropertiesForSale.vue?b55d","webpack:///./src/views/PropertiesForSale.vue?02c1","webpack:///./src/views/PropertiesForSale.vue?c6c6","webpack:///./src/views/PropertiesForSale.vue?b0d6","webpack:///./src/views/PropertiesForSale.vue?2569"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","listingFilter","_e","staticRenderFns","updateFilter","propertyCategories","propertyTypes","hasLand","hasRural","$route","query","ListingCategory","split","map","v","parseInt","includes","filter","PropertyCategories","PropertyTypes","Statuses","Current","UnderContract","MethodsOfSale","Sale","Both","Auction","Tender","EOI","ForSale","Offers","PageSize","OrderByStatements","CreateDateDesc","Categories","push","Rural","Cropping","Dairy","Farmlet","Horticulture","Lifestyle","Livestock","MixedFarming","Viticulture","Other","ResidentialLand","House","BlockOfUnits","Acreage","Alpine","Studio","Terrace","Townhouse","Unit","Villa","Warehouse","Apartment","Duplex","Flat","Retirement","SemiDetached","ServicedApartment","ResidentialSale","areaMin","MinLandArea","areaMax","MaxLandArea","priceMin","MinPrice","priceMax","MaxPrice","suburbs","Suburbs","isVacantPosession","IsVacant","isTenanted","IsTenanted","isStandalone","IsWholeBuilding","isStrata","keywordOptions","keywordOpts","opt","Type","Value","categories","length","searchVal","find","test","SearchTerm","components","Listings","ListingSearch","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,iCAAiC,KAAO,UAAUF,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,SAAW,OAAO,aAAe,SAAUN,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIO,cAAc,eAAgB,EAAK,gBAAiB,KAASP,EAAIQ,MAAM,IAAI,IAAI,IAC9aC,EAAkB,G,gZ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WAAU/D,EAAO0D,UAAW,GAE9ChF,KAAKc,OAAOC,MAAMuE,eAAgB,CACpC,MAAMC,EAAevF,KAAKc,OAAOC,MAAMuE,eAA0BrE,MAAM,KAAKC,IAAKsE,IAC/E,MAAMvE,EAAQuE,EAAIvE,MAAM,KAExB,MAAO,CACLwE,KAAMxE,EAAM,GACZyE,MAAOzE,EAAM,MAIjBK,EAAOwD,QAAUS,EAAYjE,OAAQkE,GAAqB,WAAbA,EAAIC,MAAmBvE,IAAKsE,GAAQA,EAAIE,OAErF,MAAMC,EAAaJ,EAAYjE,OAAQkE,GAAqB,eAAbA,EAAIC,MAAuBvE,IAAKsE,GAAQpE,SAASoE,EAAIE,MAAO,KAEvGC,EAAWC,OAAS,IACtBtE,EAAOC,mBAAqBoE,GAG9B,MAAME,EAAYN,EAAYO,KAAMN,GAAqB,WAAbA,EAAIC,MAE5CI,IACG,QAAQE,KAAKF,EAAUH,QAC1BpE,EAAS,IAAI,OAAc,IAG3BA,EAAO0E,WAAaH,EAAUH,OAE9BpE,EAAO0E,WAAaH,EAAUH,OAKpC1F,KAAKM,cAAgBgB,IA5HvB,GADC,eAAM,iB,2BA8HN,MArIkB,EAAiB,GANrC,eAAU,CACT2E,WAAY,CACVC,WAAA,KACAC,gBAAA,SAGiB,WC3BuX,I,wBCQxYC,EAAY,eACd,EACAtG,EACAU,GACA,EACA,KACA,WACA,MAIa,aAAA4F,E,6CCnBf,yBAAgf,EAAG","file":"js/chunk-003c107e.bf3ed61a.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\":\"Innisfail Real Estate For Sale\",\"mini\":\"true\"}}),_c('ContentRow',[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"maxWidth\":'100%',\"methodOfSale\":\"Buy\"}}),(_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\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 PropertiesForSale 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 let propertyTypes: PropertyType[] = [];\n let hasLand = false;\n let hasRural = false;\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 if (this.$route.query.propertyTypes) {\n // eslint-disable-next-line radix\n propertyTypes = (this.$route.query.propertyTypes! as string).split('|').map((v) => parseInt(v) as PropertyType);\n hasLand = this.$route.query.propertyTypes!.includes('Land');\n hasRural = this.$route.query.propertyTypes!.includes('Rural');\n }\n\n let filter = new ListingFilter({\n PropertyCategories: propertyCategories,\n PropertyTypes: propertyTypes,\n Statuses: [\n ListingStatus.Current,\n ListingStatus.UnderContract,\n ],\n MethodsOfSale: [\n MethodOfSale.Sale,\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 (hasRural) {\n filter.Categories.push(ListingCategory.Rural);\n filter.PropertyTypes.push(PropertyType.Cropping);\n filter.PropertyTypes.push(PropertyType.Dairy);\n filter.PropertyTypes.push(PropertyType.Farmlet);\n filter.PropertyTypes.push(PropertyType.Horticulture);\n filter.PropertyTypes.push(PropertyType.Lifestyle);\n filter.PropertyTypes.push(PropertyType.Livestock);\n filter.PropertyTypes.push(PropertyType.MixedFarming);\n filter.PropertyTypes.push(PropertyType.Viticulture);\n filter.PropertyTypes.push(PropertyType.Other);\n }\n\n if (hasLand) {\n filter.Categories.push(ListingCategory.ResidentialLand);\n }\n\n if (filter.PropertyTypes.includes(PropertyType.House)\n || filter.PropertyTypes.includes(PropertyType.BlockOfUnits)\n || filter.PropertyTypes.includes(PropertyType.Acreage)\n || filter.PropertyTypes.includes(PropertyType.Alpine)\n || filter.PropertyTypes.includes(PropertyType.Studio)\n || filter.PropertyTypes.includes(PropertyType.Terrace)\n || filter.PropertyTypes.includes(PropertyType.Townhouse)\n || filter.PropertyTypes.includes(PropertyType.Unit)\n || filter.PropertyTypes.includes(PropertyType.Villa)\n || filter.PropertyTypes.includes(PropertyType.Warehouse)\n || filter.PropertyTypes.includes(PropertyType.Apartment)\n || filter.PropertyTypes.includes(PropertyType.Duplex)\n || filter.PropertyTypes.includes(PropertyType.Flat)\n || filter.PropertyTypes.includes(PropertyType.Retirement)\n || filter.PropertyTypes.includes(PropertyType.SemiDetached)\n || filter.PropertyTypes.includes(PropertyType.ServicedApartment)) {\n filter.Categories.push(ListingCategory.ResidentialSale);\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 (filter.MaxPrice as number >= 3000000) {\n filter.MaxPrice = 100000000;\n }\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 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 if ((/^\\d+$/.test(searchVal.Value))) {\n filter = new ListingFilter({\n });\n\n filter.SearchTerm = searchVal.Value;\n } else {\n filter.SearchTerm = searchVal.Value;\n }\n }\n }\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!./PropertiesForSale.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!./PropertiesForSale.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PropertiesForSale.vue?vue&type=template&id=46a3f868&scoped=true&\"\nimport script from \"./PropertiesForSale.vue?vue&type=script&lang=ts&\"\nexport * from \"./PropertiesForSale.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PropertiesForSale.vue?vue&type=style&index=0&id=46a3f868&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 \"46a3f868\",\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!./PropertiesForSale.vue?vue&type=style&index=0&id=46a3f868&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!./PropertiesForSale.vue?vue&type=style&index=0&id=46a3f868&scoped=true&lang=css&\""],"sourceRoot":""}