{"version":3,"sources":["webpack:///./src/components/ListingSearch.vue?5629","webpack:///./src/components/ListingSearch.vue?2814","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?2f5e","webpack:///./src/components/ListingSearch.vue?7bff","webpack:///./src/components/ListingSearch.vue?584e","webpack:///./src/components/ListingSearch.vue?af72","webpack:///./src/components/ListingSearch.vue","webpack:///./src/components/ListingSearch.vue?5492","webpack:///./src/components/ListingSearch.vue?069e","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?3402","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?2d48","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?7bcf","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","value","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","mos","multiple","attrs","_v","ref","propertyTypeOptions","propertyTypesUpdated","_e","doSearch","class","showAdvancedSearch","minPrice","searchType","_l","i","key","domProps","_s","moneyFormatter","format","maxPrice","commercialAreaMin","commercialAreaMax","minBeds","minBaths","staticRenderFns","ListingSearch","Vue","constructor","type","minCars","Intl","NumberFormat","style","currency","minimumFractionDigits","hasLand","methodOfSale","ListingFilter","Statuses","ListingStatus","Current","UnderContract","PageSize","suburbs","selectedSuburbs","Value","PropertyType","House","toString","Label","Apartment","Unit","Townhouse","Villa","BlockOfUnits","Studio","Retirement","Acreage","updateSuburbsDebounce","undefined","updateSuburbCallbacks","hasUpdated","emitDebounce","mounted","$route","query","ex","Logger","Log","LogLevel","Warning","updateSuburbs","then","split","$refs","SuburbMultiSelect","setValues","Suburbs","console","error","propertyTypes","join","selectedFilterTypes","selectedDropdownTypes","forEach","typeOption","indexOf","push","p","parseInt","_a","some","s","PropertyTypes","PropertyTypeMultiSelect","updateFilter","updateMos","Promise","resolve","reject","clearTimeout","window","setTimeout","tmpFilter","API","Listings","GetSuburbs","suburb","callbacks","length","clearPrice","MinPrice","MaxPrice","onPage","Categories","ListingCategory","ResidentialLand","ResidentialSale","Rural","OrderByStatements","ListingOrderBy","CreateDateDesc","ResidentialRental","Sold","SoldDateDesc","MinBedrooms","MinBathrooms","Page","emitFilter","suburbsUpdated","selectedPropertyTypes","types","v","$emit","toggleAdvancedSearch","log","navigate","$router","path","replace","__decorate","Prop","default","Watch","Component","components","MultiSelect","component","focused","background","focusBg","itemBorderRad","defocus","item","removeItem","selectedValue","previewCount","searchPlaceholder","updateSearch","gotFocus","composing","search","searchResults","result","Option","Selected","select","noResults","requestAnimationFrame","results","loweredSearch","toLowerCase","itm","r","enableCustom","customLabelPrefix","customValuePrefix","option","idx","findIndex","splice","opt","slice","required"],"mappings":"kHAAA,W,oCCAA,W,kFCAA,W,oCCAA,W,2DCAA,W,yDCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,SAAS,CAACG,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOV,EAAO,IAAEW,WAAW,QAAQL,YAAY,cAAcM,GAAG,CAAC,OAAS,SAASC,GAAQ,IAAIC,EAAgBC,MAAMC,UAAUC,OAAOC,KAAKL,EAAOM,OAAOC,SAAQ,SAASC,GAAG,OAAOA,EAAEC,YAAWC,KAAI,SAASF,GAAG,IAAIG,EAAM,WAAYH,EAAIA,EAAEI,OAASJ,EAAEX,MAAM,OAAOc,KAAOxB,EAAI0B,IAAIb,EAAOM,OAAOQ,SAAWb,EAAgBA,EAAc,MAAM,CAACV,EAAG,SAAS,CAACwB,MAAM,CAAC,MAAQ,QAAQ,CAAC5B,EAAI6B,GAAG,cAAczB,EAAG,SAAS,CAACwB,MAAM,CAAC,MAAQ,SAAS,CAAC5B,EAAI6B,GAAG,gBAAiB7B,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S,sB,gCAIjBF,EAAA,CADCC,eAAK,CAAEC,QAAS,iB,iCAIjBF,EAAA,CADCC,eAAK,CAAEC,QAAS,U,8BAIjBF,EAAA,CADCC,eAAK,CAAEC,QAAS,Y,oCA5BEI,EAAWN,EAAA,CAD/BI,QACoBE,WCxDmS,I,wBCQpTC,EAAY,eACd,EACA/K,EACAoD,GACA,EACA,KACA,WACA,MAIa,OAAA2H,E","file":"js/chunk-09112742.f1e39c51.js","sourcesContent":["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!./ListingSearch.vue?vue&type=style&index=1&lang=css&\"","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!./ListingSearch.vue?vue&type=style&index=3&lang=css&\"","export * from \"-!../../mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../vue-loader/lib/loaders/stylePostLoader.js!../../postcss-loader/src/index.js??ref--6-oneOf-1-2!../../cache-loader/dist/cjs.js??ref--0-0!../../vue-loader/lib/index.js??vue-loader-options!./MultiSelect.vue?vue&type=style&index=0&id=396af627&scoped=true&lang=css&\"","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!./ListingSearch.vue?vue&type=style&index=2&lang=css&\"","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!./ListingSearch.vue?vue&type=style&index=0&id=487edfb2&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"search__container\"},[_c('div',{staticClass:\"search\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mos),expression:\"mos\"}],staticClass:\"search__ddl\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.mos=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"buy\"}},[_vm._v(\"For Sale\")]),_c('option',{attrs:{\"value\":\"rent\"}},[_vm._v(\"For Rent\")])]),(_vm.showPropertyTypes)?_c('MultiSelect',{ref:\"PropertyTypeMultiSelect\",staticClass:\"search__property-types\",attrs:{\"searchPlaceholder\":\"Property Types\",\"options\":_vm.propertyTypeOptions,\"label\":\"Property Type\",\"preview-count\":\"3\"},on:{\"updated\":_vm.propertyTypesUpdated}}):_vm._e(),_c('Button',{staticClass:\"search__btn\",attrs:{\"backgroundColour\":\"var(--brand-secondary)\"},on:{\"click\":_vm.doSearch}},[_c('Icon',{staticClass:\"search__icon\",attrs:{\"icon\":\"searching-magnifying-glass\",\"colour\":\"white\"}})],1)],1),_c('div',{staticClass:\"search__advanced\",class:{'search__advanced search__advanced__hide': _vm.showAdvancedSearch}},[_c('div',{staticClass:\"search__field search__field--select\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.minPrice),expression:\"minPrice\"}],staticClass:\"search__field__input\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.minPrice=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Min Price\")]),(_vm.searchType === 'rent')?_vm._l((15),function(i){return _c('option',{key:i,domProps:{\"value\":i * 50}},[_vm._v(_vm._s(_vm.moneyFormatter.format(i * 50))+\"AUD pw\")])}):_vm._l((15),function(i){return _c('option',{key:i,domProps:{\"value\":i * 100000}},[_vm._v(_vm._s(_vm.moneyFormatter.format(i * 100000))+\"AUD\")])})],2)]),_c('div',{staticClass:\"search__field search__field--select\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.maxPrice),expression:\"maxPrice\"}],staticClass:\"search__field__input\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.maxPrice=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Max Price\")]),(_vm.searchType === 'rent')?_vm._l((15),function(i){return _c('option',{key:i,domProps:{\"value\":(i + 1) * 50}},[_vm._v(_vm._s(_vm.moneyFormatter.format((i + 1) * 50))+\"AUD pw\")])}):_vm._l((26),function(i){return _c('option',{key:i,domProps:{\"value\":((i + 1) * 100000) + 300000}},[_vm._v(_vm._s(_vm.moneyFormatter.format(((i + 1) * 100000) + 300000))+\"AUD\")])})],2)]),(_vm.searchType === 'commercial')?[_c('div',{staticClass:\"search__field search__field--select\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.commercialAreaMin),expression:\"commercialAreaMin\"}],staticClass:\"search__field__input\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.commercialAreaMin=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Area Min\")]),_vm._l((99),function(i){return _c('option',{key:i,domProps:{\"value\":i * 10}},[_vm._v(_vm._s(i * 10)+\" m²\")])})],2)]),_c('div',{staticClass:\"search__field search__field--select\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.commercialAreaMax),expression:\"commercialAreaMax\"}],staticClass:\"search__field__input\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.commercialAreaMax=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Area Max\")]),_vm._l((100),function(i){return _c('option',{key:i,domProps:{\"value\":i * 10}},[_vm._v(_vm._s(i * 10)+\" m²\")])})],2)])]:[_c('div',{staticClass:\"search__field search__field--select\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.minBeds),expression:\"minBeds\"}],staticClass:\"search__field__input\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.minBeds=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{staticClass:\"search__field__input--option\",attrs:{\"value\":\"0\"}},[_vm._v(\"Beds\")]),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1+ Bed\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"2+ Beds\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3+ Beds\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"4+ Beds\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5+ Beds\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"6+ Beds\")]),_c('option',{attrs:{\"value\":\"7\"}},[_vm._v(\"7+ Beds\")]),_c('option',{attrs:{\"value\":\"8\"}},[_vm._v(\"8+ Beds\")]),_c('option',{attrs:{\"value\":\"9\"}},[_vm._v(\"9+ Beds\")]),_c('option',{attrs:{\"value\":\"10\"}},[_vm._v(\"10+ Beds\")])])]),_c('div',{staticClass:\"search__field search__field--select\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.minBaths),expression:\"minBaths\"}],staticClass:\"search__field__input\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.minBaths=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Baths\")]),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1+ Bath\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"2+ Baths\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3+ Baths\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"4+ Baths\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5+ Baths\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"6+ Baths\")]),_c('option',{attrs:{\"value\":\"7\"}},[_vm._v(\"7+ Baths\")]),_c('option',{attrs:{\"value\":\"8\"}},[_vm._v(\"8+ Baths\")]),_c('option',{attrs:{\"value\":\"9\"}},[_vm._v(\"9+ Baths\")]),_c('option',{attrs:{\"value\":\"10\"}},[_vm._v(\"10+ Baths\")])])])]],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator';\r\n\r\nimport MultiSelect, { MultiSelectOption } from 'client-website-ts-library/components/MultiSelect.vue';\r\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\r\nimport { ListingCategory, ListingStatus, PropertyType } from 'client-website-ts-library/types';\r\nimport { API, Logger, LogLevel } from 'client-website-ts-library/services';\r\n\r\n@Component({\r\n components: {\r\n MultiSelect,\r\n },\r\n})\r\nexport default class ListingSearch extends Vue {\r\n @Prop({ default: 'buy' })\r\n private readonly methodOfSale!: string;\r\n\r\n @Prop()\r\n private readonly navigate!: boolean;\r\n\r\n @Prop()\r\n private readonly type!: string;\r\n\r\n @Prop({ default: true })\r\n private readonly showPropertyTypes!: boolean;\r\n\r\n @Prop({ default: false })\r\n private readonly isDefaultSearch!: boolean;\r\n\r\n private showAdvancedSearch = false;\r\n\r\n private searchType: string = this.type;\r\n\r\n private minPrice = '0';\r\n\r\n private maxPrice = '0';\r\n\r\n private minBeds = '0';\r\n\r\n private minBaths = '0';\r\n\r\n private minCars = '0';\r\n\r\n private commercialAreaMin = '0';\r\n\r\n private commercialAreaMax = '0';\r\n\r\n private moneyFormatter = new Intl.NumberFormat('en-AU', { style: 'currency', currency: 'AUD', minimumFractionDigits: 0 });\r\n\r\n private hasLand = false;\r\n\r\n private mos: string = this.methodOfSale || 'buy';\r\n\r\n private filter: ListingFilter = new ListingFilter({\r\n Statuses: [\r\n ListingStatus.Current,\r\n ListingStatus.UnderContract,\r\n ],\r\n PageSize: 9,\r\n });\r\n\r\n private suburbs: MultiSelectOption[] = [];\r\n\r\n private selectedSuburbs: MultiSelectOption[] = [];\r\n\r\n private propertyTypeOptions: MultiSelectOption[] = [\r\n { Value: PropertyType.House.toString(), Label: 'House' },\r\n { Value: PropertyType.Apartment.toString(), Label: 'Apartment' },\r\n { Value: PropertyType.Unit.toString(), Label: 'Unit' },\r\n { Value: PropertyType.Townhouse.toString(), Label: 'Townhouse' },\r\n { Value: PropertyType.Villa.toString(), Label: 'Villa' },\r\n { Value: PropertyType.BlockOfUnits.toString(), Label: 'Block Of Units' },\r\n { Value: PropertyType.Studio.toString(), Label: 'Studio' },\r\n { Value: PropertyType.Retirement.toString(), Label: 'Retirement Living' },\r\n { Value: PropertyType.Acreage.toString(), Label: 'Acreage' },\r\n { Value: 'Land', Label: 'Land' },\r\n ];\r\n\r\n mounted() {\r\n try {\r\n this.minBeds = this.$route.query.minBeds ? (this.$route.query.minBeds as string) : '0';\r\n this.minBaths = this.$route.query.minBaths ? (this.$route.query.minBaths as string) : '0';\r\n this.minCars = this.$route.query.minCars ? (this.$route.query.minCars as string) : '0';\r\n\r\n this.minPrice = this.$route.query.minPrice ? (this.$route.query.minPrice as string) : '0';\r\n this.maxPrice = this.$route.query.maxPrice ? (this.$route.query.maxPrice as string) : '0';\r\n } catch (ex) {\r\n Logger.Log(LogLevel.Warning, '[ListingMap]', 'Failed to parse beds, baths, min price and max price from query');\r\n }\r\n\r\n this.updateSuburbs().then(() => {\r\n try {\r\n if (this.$route.query.suburbs) {\r\n const suburbs = (this.$route.query.suburbs as string).split('|');\r\n (this.$refs.SuburbMultiSelect as MultiSelect).setValues(suburbs);\r\n this.filter!.Suburbs = suburbs;\r\n }\r\n } catch (ex) {\r\n console.error(ex);\r\n Logger.Log(LogLevel.Warning, '[ListingMap]', 'Failed to parse suburb multi select from query');\r\n }\r\n });\r\n\r\n try {\r\n if (this.$route.query.propertyTypes) {\r\n const propertyTypes = (this.$route.query.propertyTypes as string).split('|').join(',');\r\n\r\n const selectedFilterTypes: PropertyType[] = [];\r\n const selectedDropdownTypes: string[] = [];\r\n\r\n this.propertyTypeOptions.forEach((typeOption) => {\r\n if (propertyTypes.indexOf(typeOption.Value) !== -1) {\r\n selectedFilterTypes.push(...typeOption.Value.split(',').map((p) => parseInt(p, 10) as PropertyType));\r\n selectedDropdownTypes.push(typeOption.Value);\r\n }\r\n });\r\n\r\n this.hasLand = selectedDropdownTypes.some((s) => s === 'Land') ?? false;\r\n this.filter!.PropertyTypes = selectedFilterTypes;\r\n (this.$refs.PropertyTypeMultiSelect as MultiSelect).setValues(selectedDropdownTypes);\r\n }\r\n } catch (ex) {\r\n Logger.Log(LogLevel.Warning, '[ListingMap]', 'Failed to parse property type multi select from query');\r\n }\r\n\r\n this.updateFilter();\r\n }\r\n\r\n @Watch('methodOfSale')\r\n updateMos() {\r\n this.mos = this.methodOfSale || 'buy';\r\n }\r\n\r\n private updateSuburbsDebounce: number | undefined = undefined;\r\n\r\n /* updateSuburbs() {\r\n clearTimeout(this.updateSuburbsDebounce);\r\n\r\n this.updateSuburbsDebounce = window.setTimeout(() => {\r\n const tmpFilter = new ListingFilter(this.filter);\r\n\r\n tmpFilter.Suburbs = [];\r\n\r\n API.Listings.GetSuburbs(tmpFilter).then((suburbs) => {\r\n this.suburbs = suburbs.map((suburb) => ({ Value: suburb, Label: suburb }));\r\n });\r\n }, 2000);\r\n } */\r\n\r\n private updateSuburbCallbacks: ((result: (void | PromiseLike)) => void)[] = []\r\n\r\n updateSuburbs(): Promise {\r\n return new Promise((resolve, reject) => {\r\n if (!this.filter) return;\r\n\r\n this.updateSuburbCallbacks.push(resolve);\r\n\r\n clearTimeout(this.updateSuburbsDebounce);\r\n\r\n this.updateSuburbsDebounce = window.setTimeout(() => {\r\n const tmpFilter = new ListingFilter(this.filter);\r\n\r\n tmpFilter.Suburbs = [];\r\n\r\n API.Listings.GetSuburbs(tmpFilter).then((suburbs) => {\r\n this.suburbs = suburbs.map((suburb) => ({ Value: suburb, Label: suburb }));\r\n\r\n const callbacks = [...this.updateSuburbCallbacks];\r\n this.updateSuburbCallbacks = [];\r\n\r\n // eslint-disable-next-line no-plusplus\r\n for (let i = 0; i < callbacks.length; i++) {\r\n callbacks[i]();\r\n }\r\n });\r\n }, 2000);\r\n });\r\n }\r\n\r\n private hasUpdated = false\r\n\r\n @Watch('mos')\r\n clearPrice() {\r\n this.filter.MinPrice = this.minPrice;\r\n this.filter.MaxPrice = this.maxPrice;\r\n this.minPrice = '0';\r\n this.maxPrice = '0';\r\n }\r\n\r\n @Watch('mos')\r\n updateFilter(onPage = false) {\r\n this.searchType = this.mos;\r\n\r\n switch (this.mos) {\r\n case 'buy':\r\n if (this.filter.PropertyTypes && this.filter.PropertyTypes.length === 1 && this.hasLand) {\r\n this.filter.Categories = [ListingCategory.ResidentialLand];\r\n } else if (this.filter.PropertyTypes && this.filter.PropertyTypes.length > 1 && this.hasLand) {\r\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.ResidentialLand, ListingCategory.Rural];\r\n } else if (this.filter.PropertyTypes?.some((s) => s === 0)) {\r\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.Rural];\r\n } else if (this.filter.PropertyTypes.length > 0) {\r\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.Rural];\r\n } else {\r\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.ResidentialLand, ListingCategory.Rural];\r\n }\r\n this.filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\r\n break;\r\n case 'rent':\r\n this.filter.Categories = [\r\n ListingCategory.ResidentialRental,\r\n ];\r\n this.filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\r\n break;\r\n case 'sold':\r\n this.filter.Statuses = [\r\n ListingStatus.Sold,\r\n ];\r\n this.filter.OrderByStatements = [ListingOrderBy.SoldDateDesc];\r\n break;\r\n default:\r\n this.filter.Categories = [];\r\n this.filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\r\n break;\r\n }\r\n\r\n if (this.minPrice && this.minPrice !== '0') this.filter.MinPrice = this.minPrice;\r\n if (this.maxPrice && this.maxPrice !== '0') this.filter.MaxPrice = this.maxPrice;\r\n\r\n if (this.minBeds && this.minBeds !== '0') this.filter.MinBedrooms = this.minBeds;\r\n if (this.minBaths && this.minBaths !== '0') this.filter.MinBathrooms = this.minBaths;\r\n if (this.minCars && this.minCars !== '0') this.filter.MinBathrooms = this.minCars;\r\n\r\n this.updateSuburbs();\r\n\r\n if (onPage) {\r\n this.filter.Suburbs = this.selectedSuburbs.map((s) => s.Value);\r\n } else {\r\n this.filter.Suburbs = this.$route.query.suburbs ? this.$route.query.suburbs as string[] : [];\r\n }\r\n\r\n this.filter.Page = 1;\r\n\r\n if (this.filter.Statuses.length === 1 && this.filter.Statuses[0] === ListingStatus.Sold) {\r\n this.filter.OrderByStatements = [ListingOrderBy.SoldDateDesc];\r\n } else {\r\n this.filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\r\n }\r\n\r\n this.hasUpdated = true;\r\n\r\n this.emitFilter();\r\n }\r\n\r\n suburbsUpdated(selectedSuburbs: MultiSelectOption[]) {\r\n this.selectedSuburbs = selectedSuburbs;\r\n this.updateFilter();\r\n }\r\n\r\n propertyTypesUpdated(selectedPropertyTypes: MultiSelectOption[]) {\r\n if (!this.filter) return;\r\n\r\n this.filter.PropertyTypes = [];\r\n\r\n for (let i = 0; i < selectedPropertyTypes.length; i += 1) {\r\n // eslint-disable-next-line radix\r\n const types = selectedPropertyTypes[i].Value.split(',').map((v: string) => parseInt(v));\r\n\r\n this.filter.PropertyTypes.push(...types);\r\n }\r\n\r\n this.hasLand = selectedPropertyTypes.some((s) => s.Value === 'Land') ?? false;\r\n\r\n this.doSearch();\r\n }\r\n\r\n private emitDebounce: number | undefined = undefined;\r\n\r\n emitFilter() {\r\n this.$emit('filter_updated', this.filter);\r\n }\r\n\r\n toggleAdvancedSearch() {\r\n console.log(this.showAdvancedSearch);\r\n this.showAdvancedSearch = !this.showAdvancedSearch;\r\n }\r\n\r\n doSearch() {\r\n if (this.navigate) {\r\n this.updateFilter(true);\r\n\r\n switch (this.mos) {\r\n case 'buy':\r\n this.$router.push({\r\n path: '/properties/for-sale',\r\n query: {\r\n propertyTypes: this.filter.PropertyTypes.join('|') + (this.hasLand ? 'Land' : ''),\r\n suburbs: this.filter.Suburbs.join('|'),\r\n minBeds: this.minBeds.toString(),\r\n minBaths: this.minBaths.toString(),\r\n minCars: this.minCars.toString(),\r\n minPrice: this.minPrice.toString(),\r\n maxPrice: this.maxPrice.toString(),\r\n },\r\n });\r\n break;\r\n case 'rent':\r\n this.$router.push({\r\n path: '/properties/for-rent',\r\n query: {\r\n propertyTypes: this.filter.PropertyTypes.join('|') + (this.hasLand ? 'Land' : ''),\r\n suburbs: this.filter.Suburbs.join('|'),\r\n minBeds: this.minBeds.toString(),\r\n minBaths: this.minBaths.toString(),\r\n minCars: this.minCars.toString(),\r\n minPrice: this.minPrice.toString(),\r\n maxPrice: this.maxPrice.toString(),\r\n },\r\n });\r\n break;\r\n case 'sold':\r\n this.$router.push({\r\n path: '/properties/sold',\r\n query: {\r\n propertyTypes: this.filter.PropertyTypes.join('|') + (this.hasLand ? 'Land' : ''),\r\n suburbs: this.filter.Suburbs.join('|'),\r\n minBeds: this.minBeds.toString(),\r\n minBaths: this.minBaths.toString(),\r\n minCars: this.minCars.toString(),\r\n minPrice: this.minPrice.toString(),\r\n maxPrice: this.maxPrice.toString(),\r\n },\r\n });\r\n break;\r\n default:\r\n\r\n break;\r\n }\r\n } else {\r\n // REPLACE URL\r\n this.updateFilter(true);\r\n switch (this.mos) {\r\n case 'buy':\r\n this.$router.replace({\r\n path: '/properties/for-sale',\r\n query: {\r\n propertyTypes: this.filter.PropertyTypes.join('|') + (this.hasLand ? 'Land' : ''),\r\n suburbs: this.filter.Suburbs.join('|'),\r\n minBeds: this.minBeds.toString(),\r\n minBaths: this.minBaths.toString(),\r\n minCars: this.minCars.toString(),\r\n minPrice: this.minPrice.toString(),\r\n maxPrice: this.maxPrice.toString(),\r\n },\r\n });\r\n break;\r\n case 'rent':\r\n this.$router.replace({\r\n path: '/properties/for-rent',\r\n query: {\r\n propertyTypes: this.filter.PropertyTypes.join('|') + (this.hasLand ? 'Land' : ''),\r\n suburbs: this.filter.Suburbs.join('|'),\r\n minBeds: this.minBeds.toString(),\r\n minBaths: this.minBaths.toString(),\r\n minCars: this.minCars.toString(),\r\n minPrice: this.minPrice.toString(),\r\n maxPrice: this.maxPrice.toString(),\r\n },\r\n });\r\n break;\r\n case 'sold':\r\n this.$router.replace({\r\n path: '/properties/sold',\r\n query: {\r\n propertyTypes: this.filter.PropertyTypes.join('|') + (this.hasLand ? 'Land' : ''),\r\n suburbs: this.filter.Suburbs.join('|'),\r\n minBeds: this.minBeds.toString(),\r\n minBaths: this.minBaths.toString(),\r\n minCars: this.minCars.toString(),\r\n minPrice: this.minPrice.toString(),\r\n maxPrice: this.maxPrice.toString(),\r\n },\r\n });\r\n break;\r\n default:\r\n\r\n break;\r\n }\r\n }\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!./ListingSearch.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!./ListingSearch.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ListingSearch.vue?vue&type=template&id=487edfb2&scoped=true&\"\nimport script from \"./ListingSearch.vue?vue&type=script&lang=ts&\"\nexport * from \"./ListingSearch.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ListingSearch.vue?vue&type=style&index=0&id=487edfb2&scoped=true&lang=css&\"\nimport style1 from \"./ListingSearch.vue?vue&type=style&index=1&lang=css&\"\nimport style2 from \"./ListingSearch.vue?vue&type=style&index=2&lang=css&\"\nimport style3 from \"./ListingSearch.vue?vue&type=style&index=3&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 \"487edfb2\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"multi-select\",class:{'multi-select--focused': _vm.focused},style:({\n '--ms-bg': _vm.background,\n '--focus-bg': _vm.focusBg,\n '--item-border-rad': _vm.itemBorderRad,\n})},[_c('div',{staticClass:\"multi-select__abyss\",on:{\"click\":_vm.defocus}}),_c('div',{staticClass:\"multi-select__input-wrapper\"},[_c('div',{staticClass:\"multi-select__values\"},[_vm._l((_vm.previewItems),function(item){return _c('div',{key:item.Value,staticClass:\"multi-select__value\"},[_c('span',{staticClass:\"multi-select__value__label\"},[_vm._v(_vm._s(item.Label))]),_c('button',{staticClass:\"multi-select__value__remove\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.removeItem(item.Value)}}},[_c('Icon',{attrs:{\"icon\":\"close-button\",\"colour\":\"white\"}})],1)])}),(_vm.selectedValue.length + 1 > _vm.previewCount)?_c('div',{staticClass:\"multi-select__value\"},[_c('span',{staticClass:\"multi-select__value__label\"},[_vm._v(_vm._s(_vm.selectedValue.length + 1 - _vm.previewCount)+\" more\")])]):_vm._e()],2),_c('div',{staticClass:\"multi-select__input-wrap\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"multi-select__input\",attrs:{\"type\":\"text\",\"placeholder\":_vm.searchPlaceholder},domProps:{\"value\":(_vm.search)},on:{\"keyup\":_vm.updateSearch,\"focus\":_vm.gotFocus,\"input\":function($event){if($event.target.composing){ return; }_vm.search=$event.target.value}}})])]),_c('div',{staticClass:\"multi-select__dropdown\"},[(_vm.searchResults.length)?_c('ul',{staticClass:\"multi-select__dropdown__results\"},_vm._l((_vm.searchResults),function(result){return _c('li',{key:result.Option.Value,staticClass:\"multi-select__dropdown__result\",class:{'multi-select__dropdown__result--selected': result.Selected},on:{\"click\":function($event){return _vm.select(result)}}},[_vm._v(\" \"+_vm._s(result.Option.Label)+\" \")])}),0):_c('div',{staticClass:\"multi-select__dropdown__no-results\"},[_vm._v(\" \"+_vm._s(_vm.noResults)+\" \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\r\n\r\ninterface MultiSelectOption {\r\n Value: string;\r\n Label: string;\r\n}\r\n\r\ninterface MultiSelectResult {\r\n Option: MultiSelectOption;\r\n Selected: boolean;\r\n}\r\n\r\nexport {\r\n MultiSelectOption\r\n}\r\n\r\n@Component\r\nexport default class MultiSelect extends Vue {\r\n @Prop({ required: true })\r\n private readonly options!: MultiSelectOption[];\r\n\r\n @Prop({ default: false })\r\n private readonly enableCustom!: boolean;\r\n\r\n @Prop({ default: 'Search for ' })\r\n private readonly customLabelPrefix!: string;\r\n\r\n @Prop({ default: 'search:' })\r\n private readonly customValuePrefix!: string;\r\n\r\n @Prop({ default: 5 })\r\n private readonly previewCount!: number;\r\n\r\n @Prop({ default: 'Search' })\r\n private readonly searchPlaceholder!: string;\r\n\r\n @Prop({ default: 'No results found' })\r\n private readonly noResults!: string;\r\n\r\n @Prop({ default: 'transparent' })\r\n private readonly background!: string;\r\n\r\n @Prop({ default: '#fff' })\r\n private readonly focusBg!: string;\r\n\r\n @Prop({ default: '0.25em' })\r\n private readonly itemBorderRad!: string;\r\n\r\n private focused = false;\r\n\r\n private selectedValue: MultiSelectOption[] = [];\r\n\r\n private search = '';\r\n\r\n private searchResults: MultiSelectResult[] = [];\r\n\r\n gotFocus() {\r\n this.focused = true;\r\n this.updateSearch();\r\n }\r\n\r\n defocus() {\r\n requestAnimationFrame(() => {\r\n this.focused = false;\r\n });\r\n }\r\n\r\n updateSearch() {\r\n let results: MultiSelectOption[];\r\n\r\n if (this.search.length === 0) {\r\n results = this.options;\r\n } else {\r\n const loweredSearch = this.search.toLowerCase();\r\n\r\n results = this.options.filter((itm) => itm.Label.toLowerCase().indexOf(loweredSearch) !== -1);\r\n }\r\n\r\n this.searchResults = results\r\n .map((r) => ({ Option: r, Selected: this.selectedValue.some((s) => s.Value === r.Value) }));\r\n\r\n if (this.enableCustom) {\r\n this.searchResults.push({\r\n Option: {\r\n Label: `${this.customLabelPrefix}${this.search}`,\r\n Value: `${this.customValuePrefix}${this.search}`,\r\n },\r\n Selected: false,\r\n });\r\n }\r\n }\r\n\r\n select(option: MultiSelectResult) {\r\n if (!this.selectedValue.some((v) => v.Value === option.Option.Value)) {\r\n this.selectedValue.push(option.Option);\r\n\r\n this.search = '';\r\n\r\n this.updateSearch();\r\n\r\n this.$emit('updated', this.selectedValue);\r\n } else {\r\n this.removeItem(option.Option.Value);\r\n }\r\n }\r\n\r\n removeItem(value: string) {\r\n const idx = this.selectedValue.findIndex((itm) => itm.Value === value);\r\n\r\n if(idx !== -1) {\r\n this.selectedValue.splice(idx, 1);\r\n\r\n this.updateSearch();\r\n\r\n this.$emit('updated', this.selectedValue);\r\n }\r\n }\r\n\r\n public setValues(value: string[]): void {\r\n this.selectedValue = this.options.filter((opt) => value.indexOf(opt.Value) !== -1);\r\n }\r\n\r\n get previewItems(): MultiSelectOption[] {\r\n return this.selectedValue.slice(0, this.previewCount - 1);\r\n }\r\n}\r\n","import mod from \"-!../../cache-loader/dist/cjs.js??ref--14-0!../../thread-loader/dist/cjs.js!../../babel-loader/lib/index.js!../../ts-loader/index.js??ref--14-3!../../cache-loader/dist/cjs.js??ref--0-0!../../vue-loader/lib/index.js??vue-loader-options!./MultiSelect.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../cache-loader/dist/cjs.js??ref--14-0!../../thread-loader/dist/cjs.js!../../babel-loader/lib/index.js!../../ts-loader/index.js??ref--14-3!../../cache-loader/dist/cjs.js??ref--0-0!../../vue-loader/lib/index.js??vue-loader-options!./MultiSelect.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MultiSelect.vue?vue&type=template&id=396af627&scoped=true&\"\nimport script from \"./MultiSelect.vue?vue&type=script&lang=ts&\"\nexport * from \"./MultiSelect.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MultiSelect.vue?vue&type=style&index=0&id=396af627&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"396af627\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}