{"version":3,"sources":["webpack:///./src/components/ListingSearch.vue?5629","webpack:///./src/components/UI/Loader.vue?c8b4","webpack:///./src/components/UI/Loader.vue","webpack:///./src/components/UI/Loader.vue?05d4","webpack:///./src/components/UI/Loader.vue?d4ac","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?2f5e","webpack:///./src/components/UI/Loader.vue?b05e","webpack:///./src/views/ResidentialForSale.vue?0239","webpack:///./src/views/ResidentialForSale.vue","webpack:///./src/views/ResidentialForSale.vue?e1d6","webpack:///./src/views/ResidentialForSale.vue?f918","webpack:///./src/components/ListingSearch.vue?7bff","webpack:///./src/components/ListingSearch.vue?5d9f","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?cca5","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","directives","name","rawName","value","expression","staticClass","staticRenderFns","component","attrs","on","handleFilter","listingFilter","_e","filter","console","log","$root","$data","coreLogicFormData","components","Listings","ListingSearch","$event","$$selectedVal","Array","prototype","call","target","options","o","selected","map","val","_value","mos","multiple","_v","suburbs","suburbsUpdated","beds","baths","updateFilter","methodOfSale","Statuses","Current","UnderContract","SearchLevel","Office","SearchGuid","Website","Settings","WebsiteId","PageSize","selectedSuburbs","updateSuburbsDebounce","undefined","emitDebounce","clearTimeout","window","setTimeout","tmpFilter","Suburbs","GetSuburbs","then","suburb","Value","Label","Categories","ResidentialSale","ResidentialLand","Rural","ResidentialRental","updateSuburbs","MinBedrooms","MinBathrooms","s","Page","MethodsOfSale","Sale","ForSale","Auction","Tender","EOI","Offers","Both","Lease","Commercial","CommercialLand","Business","Sold","emitFilter","$emit","default","MultiSelect","class","focused","style","background","focusBg","itemBorderRad","defocus","_l","item","key","_s","removeItem","selectedValue","length","previewCount","searchPlaceholder","domProps","updateSearch","gotFocus","composing","search","searchResults","result","Option","Selected","select","noResults","requestAnimationFrame","results","loweredSearch","toLowerCase","itm","indexOf","r","some","enableCustom","push","customLabelPrefix","customValuePrefix","option","v","idx","findIndex","splice","opt","slice","required"],"mappings":"kHAAA,W,oCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOT,EAAW,QAAEU,WAAW,YAAYC,YAAY,YACvMC,EAAkB,G,wECOD,EAArB,qJAAoC,QAEhC,yBADC,kB,8BADgB,EAAM,yBAD1B,QACoB,WCR8X,I,wBCQ/YC,EAAY,eACd,EACAd,EACAa,GACA,EACA,KACA,WACA,MAIa,OAAAC,E,kECnBf,W,kCCAA,W,2CCAA,IAAId,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,eAAe,CAACU,MAAM,CAAC,MAAQ,gCAAgC,KAAO,UAAUV,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACU,MAAM,CAAC,aAAe,YAAYC,GAAG,CAAC,eAAiBf,EAAIgB,gBAAiBhB,EAAiB,cAAEI,EAAG,WAAW,CAACU,MAAM,CAAC,WAAY,EAAM,OAASd,EAAIiB,iBAAiBjB,EAAIkB,MAAM,IAAI,IAAI,IAC7aN,EAAkB,G,4GCyBD,EAArB,yG,0BACU,EAAAK,cAAsC,KADhD,qDAGE,SAAaE,GACXlB,KAAKgB,cAAgBE,IAJzB,qBAOE,WACEC,QAAQC,IAAI,OAAQpB,KAAKqB,MAAMC,MAAMC,uBARzC,GAAgD,eAAO,SAAlC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KAAK+G,kBAnFjC,wBAyFE,SAAWvG,GACT,IAAMoI,EAAM5I,KAAK+G,cAAc8B,WAAU,SAACX,GAAD,OAASA,EAAI5D,QAAU9D,MAEpD,IAAToI,IACD5I,KAAK+G,cAAc+B,OAAOF,EAAK,GAE/B5I,KAAKoH,eAELpH,KAAKgG,MAAM,UAAWhG,KAAK+G,kBAjGjC,uBAqGS,SAAUvG,GACfR,KAAK+G,cAAgB/G,KAAKiC,QAAQf,QAAO,SAAC6H,GAAD,OAAuC,IAA9BvI,EAAM2H,QAAQY,EAAIzE,YAtGxE,wBAyGE,WACE,OAAOtE,KAAK+G,cAAciC,MAAM,EAAGhJ,KAAKiH,aAAe,OA1G3D,GAAyC,QAEvC,yBADC,eAAK,CAAEgC,UAAU,K,8BAIlB,yBADC,eAAK,CAAEhD,SAAS,K,mCAIjB,yBADC,eAAK,CAAEA,QAAS,iB,wCAIjB,yBADC,eAAK,CAAEA,QAAS,a,wCAIjB,yBADC,eAAK,CAAEA,QAAS,K,mCAIjB,yBADC,eAAK,CAAEA,QAAS,Y,wCAIjB,yBADC,eAAK,CAAEA,QAAS,sB,gCAIjB,yBADC,eAAK,CAAEA,QAAS,iB,iCAIjB,yBADC,eAAK,CAAEA,QAAS,U,8BAIjB,yBADC,eAAK,CAAEA,QAAS,Y,oCA5BE,EAAW,yBAD/B,QACoB,WCxDmS,I,wBCQpTrF,EAAY,eACd,EACAd,EACAa,GACA,EACA,KACA,WACA,MAIa,OAAAC,E","file":"js/chunk-73a3becd.f8f037c5.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&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loader\"})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\r\nimport { Component, Vue, Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class Loader extends Vue {\r\n @Prop()\r\n private readonly loading!: boolean;\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!./Loader.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!./Loader.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Loader.vue?vue&type=template&id=b15215d2&scoped=true&\"\nimport script from \"./Loader.vue?vue&type=script&lang=ts&\"\nexport * from \"./Loader.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Loader.vue?vue&type=style&index=0&id=b15215d2&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 \"b15215d2\",\n null\n \n)\n\nexport default component.exports","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!./Loader.vue?vue&type=style&index=0&id=b15215d2&scoped=true&lang=css&\"","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 Sale in Cairns\",\"mini\":\"true\"}}),_c('ContentRow',[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"methodOfSale\":\"for-sale\"},on:{\"filter_updated\":_vm.handleFilter}}),(_vm.listingFilter)?_c('Listings',{attrs:{\"fullWidth\":false,\"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\r\nimport { Component, Mixins } from 'vue-property-decorator';\r\nimport { ListingFilter } from 'client-website-ts-library/filters';\r\nimport { View } from 'client-website-ts-library/plugins';\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 ResidentialForSale extends Mixins(View) {\r\n private listingFilter: ListingFilter | null = null;\r\n\r\n handleFilter(filter: ListingFilter) {\r\n this.listingFilter = filter;\r\n }\r\n\r\n mounted() {\r\n console.log('DATA', this.$root.$data.coreLogicFormData);\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!./ResidentialForSale.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!./ResidentialForSale.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ResidentialForSale.vue?vue&type=template&id=1e9e381a&\"\nimport script from \"./ResidentialForSale.vue?vue&type=script&lang=ts&\"\nexport * from \"./ResidentialForSale.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","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=65318bd8&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\"},[_c('Row',[_c('Column',{attrs:{\"width\":\"2\"}},[_c('div',{staticClass:\"form-field search__form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mos),expression:\"mos\"}],staticClass:\"form-field__input form-field__input--has-value\",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\":\"for-sale\"}},[_vm._v(\"Buy\")]),_c('option',{attrs:{\"value\":\"land-for-sale\"}},[_vm._v(\"Buy Land\")]),_c('option',{attrs:{\"value\":\"for-rent\"}},[_vm._v(\"Rent\")]),_c('option',{attrs:{\"value\":\"commercial-sale\"}},[_vm._v(\"Commercial Sale\")]),_c('option',{attrs:{\"value\":\"commercial-rent\"}},[_vm._v(\"Commercial Rent\")]),_c('option',{attrs:{\"value\":\"sold\"}},[_vm._v(\"Sold\")])])])]),_c('Column',{attrs:{\"width\":\"4\"}},[_c('MultiSelect',{staticClass:\"search__suburbs\",attrs:{\"options\":_vm.suburbs,\"label\":\"Suburb\",\"preview-count\":\"3\"},on:{\"updated\":_vm.suburbsUpdated}})],1),_c('Column',{attrs:{\"width\":\"2\"}},[_c('div',{staticClass:\"form-field search__form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.beds),expression:\"beds\"}],staticClass:\"form-field__input form-field__input--has-value\",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.beds=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Min Beds\")]),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1+ Bedroom\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"2+ Bedrooms\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3+ Bedrooms\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"4+ Bedrooms\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5+ Bedrooms\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"6+ Bedrooms\")])])])]),_c('Column',{attrs:{\"width\":\"2\"}},[_c('div',{staticClass:\"form-field search__form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.baths),expression:\"baths\"}],staticClass:\"form-field__input form-field__input--has-value\",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.baths=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"0\"}},[_vm._v(\"Min Baths\")]),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1+ Bathroom\")]),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"2+ Bathrooms\")]),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3+ Bathrooms\")]),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"4+ Bathrooms\")]),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5+ Bathrooms\")]),_c('option',{attrs:{\"value\":\"6\"}},[_vm._v(\"6+ Bathrooms\")])])])]),_c('Column',{attrs:{\"width\":\"2\",\"md-width\":\"6\"}},[_c('Button',{attrs:{\"block\":\"true\"},on:{\"click\":_vm.updateFilter}},[_vm._v(\"Search\")])],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\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 } from 'client-website-ts-library/filters';\r\nimport { ListingCategory, ListingStatus, MethodOfSale, WebsiteLevel } from 'client-website-ts-library/types';\r\nimport { API, Config } 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: 'for-sale' })\r\n private readonly methodOfSale!: string;\r\n\r\n private mos: string = this.methodOfSale;\r\n\r\n private filter: ListingFilter = new ListingFilter({\r\n Statuses: [\r\n ListingStatus.Current,\r\n ListingStatus.UnderContract,\r\n ],\r\n SearchLevel: WebsiteLevel.Office,\r\n SearchGuid: Config.Website.Settings!.WebsiteId,\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 beds = 0;\r\n\r\n private baths = 0;\r\n\r\n mounted() {\r\n this.updateFilter();\r\n }\r\n\r\n // @Watch('methodOfSale')\r\n updateMos() {\r\n this.mos = this.methodOfSale;\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 // @Watch('mos')\r\n // @Watch('beds')\r\n // @Watch('baths')\r\n updateFilter() {\r\n switch (this.mos) {\r\n case 'buy':\r\n this.filter.Categories = [\r\n ListingCategory.ResidentialSale,\r\n ListingCategory.ResidentialLand,\r\n ListingCategory.Rural,\r\n ];\r\n break;\r\n case 'rent':\r\n this.filter.Categories = [\r\n ListingCategory.ResidentialRental,\r\n ];\r\n break;\r\n default:\r\n this.filter.Categories = [];\r\n break;\r\n }\r\n\r\n this.updateSuburbs();\r\n\r\n this.filter.MinBedrooms = this.beds;\r\n this.filter.MinBathrooms = this.baths;\r\n\r\n this.filter.Suburbs = this.selectedSuburbs.map((s) => s.Value);\r\n this.filter.Page = 1;\r\n\r\n switch (this.mos) {\r\n case 'for-sale':\r\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.Rural, ListingCategory.ResidentialLand];\r\n this.filter.MethodsOfSale = [MethodOfSale.Sale, MethodOfSale.ForSale, MethodOfSale.Auction, MethodOfSale.Tender, MethodOfSale.EOI, MethodOfSale.Offers, MethodOfSale.Both];\r\n this.filter.Statuses = [ListingStatus.Current, ListingStatus.UnderContract];\r\n break;\r\n case 'land-for-sale':\r\n this.filter.Categories = [ListingCategory.ResidentialLand];\r\n this.filter.MethodsOfSale = [MethodOfSale.Sale, MethodOfSale.ForSale, MethodOfSale.Auction, MethodOfSale.Tender, MethodOfSale.EOI, MethodOfSale.Offers, MethodOfSale.Both];\r\n this.filter.Statuses = [ListingStatus.Current, ListingStatus.UnderContract];\r\n break;\r\n case 'for-rent':\r\n this.filter.Categories = [ListingCategory.ResidentialRental, ListingCategory.Rural];\r\n this.filter.MethodsOfSale = [MethodOfSale.Lease, MethodOfSale.Both];\r\n this.filter.Statuses = [ListingStatus.Current, ListingStatus.UnderContract];\r\n break;\r\n case 'commercial-sale':\r\n this.filter.Categories = [ListingCategory.Commercial, ListingCategory.CommercialLand, ListingCategory.Business];\r\n this.filter.MethodsOfSale = [MethodOfSale.Sale, MethodOfSale.ForSale, MethodOfSale.Auction, MethodOfSale.Tender, MethodOfSale.EOI, MethodOfSale.Offers, MethodOfSale.Both];\r\n this.filter.Statuses = [ListingStatus.Current, ListingStatus.UnderContract];\r\n break;\r\n case 'commercial-rent':\r\n this.filter.Categories = [ListingCategory.Commercial, ListingCategory.CommercialLand, ListingCategory.Business];\r\n this.filter.MethodsOfSale = [MethodOfSale.Lease, MethodOfSale.Both];\r\n this.filter.Statuses = [ListingStatus.Current, ListingStatus.UnderContract];\r\n break;\r\n case 'sold':\r\n this.filter.Categories = [];\r\n this.filter.Statuses = [ListingStatus.Sold];\r\n break;\r\n default:\r\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.Rural, ListingCategory.ResidentialLand];\r\n this.filter.MethodsOfSale = [MethodOfSale.Sale, MethodOfSale.ForSale, MethodOfSale.Auction, MethodOfSale.Tender, MethodOfSale.EOI, MethodOfSale.Offers, MethodOfSale.Both];\r\n this.filter.Statuses = [ListingStatus.Current, ListingStatus.UnderContract];\r\n break;\r\n }\r\n\r\n this.emitFilter();\r\n }\r\n\r\n suburbsUpdated(selectedSuburbs: MultiSelectOption[]) {\r\n this.selectedSuburbs = selectedSuburbs;\r\n\r\n // this.updateFilter();\r\n }\r\n\r\n private emitDebounce: number | undefined = undefined;\r\n\r\n emitFilter() {\r\n this.filter.SearchLevel = WebsiteLevel.Office;\r\n this.filter.SearchGuid = Config.Website.Settings!.WebsiteId;\r\n\r\n this.$emit('filter_updated', this.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!./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=65318bd8&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=65318bd8&scoped=true&lang=css&\"\nimport style1 from \"./ListingSearch.vue?vue&type=style&index=1&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 \"65318bd8\",\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":""}