{"version":3,"sources":["webpack:///./src/views/OfficePropertiesSold.vue?5b9a","webpack:///./src/views/OfficePropertiesSold.vue","webpack:///./src/views/OfficePropertiesSold.vue?9693","webpack:///./src/views/OfficePropertiesSold.vue?3cf7","webpack:///./src/components/ListingSearch.vue?c265","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?e1b8","webpack:///./src/components/ListingSearch.vue?42b6","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?51fc","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","attrs","on","handleFilter","listingFilter","staticRenderFns","Statuses","Sold","Categories","ResidentialSale","ResidentialLand","Rural","PageSize","OrderByStatements","SoldDateDesc","filter","id","$route","params","Slugs","Resolve","then","resolved","Type","Id","SearchLevel","Office","SearchGuid","Profile","components","Listings","ListingSearch","component","staticClass","suburbs","suburbsUpdated","directives","name","rawName","value","expression","$event","$$selectedVal","Array","prototype","call","target","options","o","selected","map","val","_value","beds","multiple","_v","baths","propertyTypes","propertyTypesUpdated","minPrice","methodOfSale","_l","i","key","domProps","_s","moneyFormatter","format","maxPrice","mos","Current","UnderContract","agentGuid","API","WebsiteId","WebsiteLevel","selectedSuburbs","selectedPropertyTypes","Intl","NumberFormat","style","currency","minimumFractionDigits","prices","getPrices","updateSuburbsDebounce","undefined","emitDebounce","updateFilter","getPropertyTypes","price","push","toLocaleString","clearTimeout","window","setTimeout","tmpFilter","Suburbs","GetSuburbs","suburb","Value","Label","House","toString","Apartment","Unit","Townhouse","Villa","BlockOfUnits","Studio","Retirement","Acreage","hasLand","some","s","length","ResidentialRental","updateSuburbs","PropertyTypes","t","Number","MinBedrooms","MinBathrooms","MinPrice","MaxPrice","Page","emitFilter","$emit","required","MultiSelect","class","focused","background","focusBg","itemBorderRad","defocus","item","removeItem","selectedValue","previewCount","_e","searchPlaceholder","updateSearch","gotFocus","composing","search","searchResults","result","Option","Selected","select","noResults","requestAnimationFrame","results","loweredSearch","toLowerCase","itm","indexOf","r","enableCustom","customLabelPrefix","customValuePrefix","option","v","idx","findIndex","splice","opt","slice","default"],"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,uDAAuD,KAAO,UAAUF,EAAG,aAAa,CAACE,MAAM,CAAC,cAAe,IAAO,CAACF,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,iBAAiB,QAAQC,GAAG,CAAC,eAAiBP,EAAIQ,gBAAgBJ,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIS,kBAAkB,IAAI,IAAI,IACjbC,EAAkB,G,4ZC4BtB,IAAqB,EAArB,cAAkD,eAAO,SAAzD,c,oBACU,KAAAD,cAA+B,IAAI,OAAc,CACvDE,SAAU,CACR,OAAcC,MAEhBC,WAAY,CACV,OAAgBC,gBAChB,OAAgBC,gBAChB,OAAgBC,OAElBC,SAAU,EACVC,kBAAmB,CACjB,OAAeC,gBAInB,aAAaC,GACX,MAAMC,EAAKpB,KAAKqB,OAAOC,OAAOF,GAC1BA,EACF,OAAIG,MAAMC,QAAQJ,GAAIK,KAAMC,IACJ,WAAlBA,EAASC,OAES,yCAAhBD,EAASE,KAEXT,EAAOU,YAAc,OAAaC,OAElCX,EAAOY,WAAa,wCAIF,yCAAhBL,EAASE,KAEXT,EAAOU,YAAc,OAAaC,OAElCX,EAAOY,WAAa,wCAIF,yCAAhBL,EAASE,KAEXT,EAAOU,YAAc,OAAaG,QAElCb,EAAOY,WAAa,yCAGxB/B,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Y,oCA5BE,EAAW,GAD/B,QACoB,WCxDmS,I,wBCQpTzI,EAAY,eACd,EACAtC,EACAW,GACA,EACA,KACA,WACA,MAIa,OAAA2B,E","file":"js/chunk-2ef15e81.341ca16b.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\":\"Properties Sold\",\"thin\":\"true\"}}),_c('ContentRow',{attrs:{\"noPaddingTop\":true}},[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"method-of-sale\":\"sold\"},on:{\"filter_updated\":_vm.handleFilter}}),_c('Listings',{attrs:{\"filter\":_vm.listingFilter}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Mixins } from 'vue-property-decorator';\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\nimport { ListingStatus, ListingCategory, WebsiteLevel } from 'client-website-ts-library/types';\nimport { API } from 'client-website-ts-library/services';\nimport { View } from 'client-website-ts-library/plugins';\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 OfficePropertiesSold extends Mixins(View) {\n private listingFilter: ListingFilter = new ListingFilter({\n Statuses: [\n ListingStatus.Sold,\n ],\n Categories: [\n ListingCategory.ResidentialSale,\n ListingCategory.ResidentialLand,\n ListingCategory.Rural,\n ],\n PageSize: 9,\n OrderByStatements: [\n ListingOrderBy.SoldDateDesc,\n ],\n });\n\n handleFilter(filter: ListingFilter) {\n const id = this.$route.params.id;\n if (id) {\n API.Slugs.Resolve(id).then((resolved) => {\n if (resolved.Type === 'Office') {\n // City\n if (resolved.Id === '91b553f9-7cbc-4697-bf7d-d70714b674a4') {\n // eslint-disable-next-line no-param-reassign\n filter.SearchLevel = WebsiteLevel.Office;\n // eslint-disable-next-line no-param-reassign\n filter.SearchGuid = '91b553f9-7cbc-4697-bf7d-d70714b674a4';\n }\n\n // Redlynch\n if (resolved.Id === 'f2c947c3-1b35-41ce-8380-54f0ff32cd52') {\n // eslint-disable-next-line no-param-reassign\n filter.SearchLevel = WebsiteLevel.Office;\n // eslint-disable-next-line no-param-reassign\n filter.SearchGuid = '91b553f9-7cbc-4697-bf7d-d70714b674a4';\n }\n\n // South\n if (resolved.Id === 'f9d229bb-51ff-4b83-94eb-4877c1c736d2') {\n // eslint-disable-next-line no-param-reassign\n filter.SearchLevel = WebsiteLevel.Profile;\n // eslint-disable-next-line no-param-reassign\n filter.SearchGuid = 'dbc21df2-268d-43da-a26c-da5711f7ee39';\n }\n }\n this.listingFilter = filter;\n });\n } else {\n this.listingFilter = filter;\n }\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!./OfficePropertiesSold.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!./OfficePropertiesSold.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OfficePropertiesSold.vue?vue&type=template&id=c61a0ee4&scoped=true&\"\nimport script from \"./OfficePropertiesSold.vue?vue&type=script&lang=ts&\"\nexport * from \"./OfficePropertiesSold.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 \"c61a0ee4\",\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!./ListingSearch.vue?vue&type=style&index=0&id=4c5b1f00&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!./ListingSearch.vue?vue&type=style&index=0&id=4c5b1f00&scoped=true&lang=css&\"","import mod 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=4b217463&scoped=true&lang=css&\"; export default mod; 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=4b217463&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('MultiSelect',{staticClass:\"search__suburbs\",attrs:{\"searchPlaceholder\":\"Suburbs\",\"options\":_vm.suburbs,\"label\":\"Suburb\",\"preview-count\":\"3\"},on:{\"updated\":_vm.suburbsUpdated}}),_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\",attrs:{\"name\":\"minBeds\"},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(\"Bedrooms (min)\")]),_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('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\",attrs:{\"name\":\"minBaths\"},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(\"Bathrooms (min)\")]),_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('MultiSelect',{staticClass:\"search__property-types\",attrs:{\"searchPlaceholder\":\"Property Types\",\"options\":_vm.propertyTypes,\"label\":\"Property Type\",\"preview-count\":\"3\"},on:{\"updated\":_vm.propertyTypesUpdated}}),_c('div',{staticClass:\"form-field search__form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.minPrice),expression:\"minPrice\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"name\":\"minPrice\"},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(\"Price (min)\")]),(_vm.methodOfSale === 'rent')?_vm._l((59),function(i){return _c('option',{key:i,domProps:{\"value\":i * 50}},[_vm._v(_vm._s(_vm.moneyFormatter.format(i * 50))+\"pw\")])}):_vm._l((99),function(i){return _c('option',{key:i,domProps:{\"value\":i * 50000}},[_vm._v(_vm._s(_vm.moneyFormatter.format(i * 50000)))])})],2)]),_c('div',{staticClass:\"form-field search__form-field\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.maxPrice),expression:\"maxPrice\"}],staticClass:\"form-field__input form-field__input--has-value\",attrs:{\"name\":\"maxPrice\"},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(\"Price (max)\")]),(_vm.methodOfSale === 'rent')?_vm._l((59),function(i){return _c('option',{key:i,domProps:{\"value\":(i + 1) * 50}},[_vm._v(_vm._s(_vm.moneyFormatter.format((i + 1) * 50))+\"pw\")])}):_vm._l((99),function(i){return _c('option',{key:i,domProps:{\"value\":(i + 1) * 50000}},[_vm._v(_vm._s(_vm.moneyFormatter.format((i + 1) * 50000)))])})],2)])],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\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator';\n\nimport MultiSelect, { MultiSelectOption } from 'client-website-ts-library/components/MultiSelect.vue';\nimport { ListingFilter } from 'client-website-ts-library/filters';\nimport { ListingCategory, ListingStatus, PropertyType, WebsiteLevel } from 'client-website-ts-library/types';\nimport { API, Config } from 'client-website-ts-library/services';\n\n@Component({\n components: {\n MultiSelect,\n },\n})\nexport default class ListingSearch extends Vue {\n @Prop({ required: true })\n private readonly methodOfSale!: string;\n\n @Prop({ required: false })\n private readonly agentGuid!: string;\n\n private mos: string = this.methodOfSale;\n\n private filter: ListingFilter = new ListingFilter({\n Statuses: this.methodOfSale === 'sold' ? [ListingStatus.Sold] : [ListingStatus.Current, ListingStatus.UnderContract],\n PageSize: 9,\n SearchGuid: this.agentGuid || Config.API.WebsiteId,\n SearchLevel: this.agentGuid ? WebsiteLevel.Profile : Config.API.WebsiteLevel,\n });\n\n private suburbs: MultiSelectOption[] = [];\n\n private selectedSuburbs: MultiSelectOption[] = [];\n\n private propertyTypes: MultiSelectOption[] = [];\n\n private selectedPropertyTypes: MultiSelectOption[] = [];\n\n private beds = 0;\n\n private baths = 0;\n\n private minPrice = 0;\n\n private maxPrice = 0;\n\n private moneyFormatter = new Intl.NumberFormat('en-AU', { style: 'currency', currency: 'AUD', minimumFractionDigits: 0 });\n\n private prices = this.getPrices();\n\n mounted() {\n this.updateFilter();\n this.getPrices();\n this.getPropertyTypes();\n }\n\n @Watch('methodOfSale')\n updateMos() {\n this.mos = this.methodOfSale;\n }\n\n private updateSuburbsDebounce: number | undefined = undefined;\n\n getPrices() {\n const prices: number[] = [];\n let price = 50000;\n for (let i = 0; i < 18; i += 1) {\n prices.push(price);\n price += 25000;\n }\n for (let i = 0; i < 10; i += 1) {\n prices.push(price);\n price += 50000;\n }\n for (let i = 0; i < 10; i += 1) {\n prices.push(price);\n price += 100000;\n }\n for (let i = 0; i < 4; i += 1) {\n prices.push(price);\n price += 250000;\n }\n for (let i = 0; i < 4; i += 1) {\n prices.push(price);\n price += 500000;\n }\n for (let i = 0; i < 5; i += 1) {\n prices.push(price);\n price += 1000000;\n }\n prices.push(price);\n price += 2000000;\n prices.push(price);\n price += 3000000;\n prices.push(price);\n return prices;\n }\n\n asDollars(value: number) {\n return `$${value.toLocaleString()}`;\n }\n\n updateSuburbs() {\n clearTimeout(this.updateSuburbsDebounce);\n\n this.updateSuburbsDebounce = window.setTimeout(() => {\n const tmpFilter = new ListingFilter(this.filter);\n\n tmpFilter.Suburbs = [];\n\n API.Listings.GetSuburbs(tmpFilter).then((suburbs) => {\n this.suburbs = suburbs.map((suburb) => ({ Value: suburb, Label: suburb }));\n });\n }, 2000);\n }\n\n getPropertyTypes() {\n this.propertyTypes = [\n { Value: PropertyType.House.toString(), Label: 'House' },\n { Value: PropertyType.Apartment.toString(), Label: 'Apartment' },\n { Value: PropertyType.Unit.toString(), Label: 'Unit' },\n { Value: PropertyType.Townhouse.toString(), Label: 'Townhouse' },\n { Value: PropertyType.Villa.toString(), Label: 'Villa' },\n { Value: PropertyType.BlockOfUnits.toString(), Label: 'Block Of Units' },\n { Value: PropertyType.Studio.toString(), Label: 'Studio' },\n { Value: PropertyType.Retirement.toString(), Label: 'Retirement Living' },\n { Value: PropertyType.Acreage.toString(), Label: 'Acreage' },\n { Value: 'Land', Label: 'Land' },\n ];\n }\n\n @Watch('mos')\n @Watch('beds')\n @Watch('baths')\n @Watch('minPrice')\n @Watch('maxPrice')\n updateFilter() {\n switch (this.mos) {\n case 'buy':\n {\n const hasLand = this.selectedPropertyTypes?.some((s) => s.Value === 'Land') ?? false;\n\n if (this.selectedPropertyTypes && this.selectedPropertyTypes.length === 1 && hasLand) {\n this.filter.Categories = [ListingCategory.ResidentialLand];\n } else if (this.selectedPropertyTypes && this.selectedPropertyTypes.length > 1 && hasLand) {\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.ResidentialLand, ListingCategory.Rural];\n } else if (this.selectedPropertyTypes?.some((s) => s.Value === '0')) {\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.Rural];\n } else if (this.selectedPropertyTypes && this.selectedPropertyTypes.length === 1 && !hasLand) {\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.Rural];\n } else {\n this.filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.ResidentialLand, ListingCategory.Rural];\n }\n }\n break;\n case 'rent':\n this.filter.Categories = [ListingCategory.ResidentialRental];\n break;\n default:\n this.filter.Categories = [];\n break;\n }\n\n this.updateSuburbs();\n this.filter.Suburbs = this.selectedSuburbs.map((s) => s.Value);\n this.filter.PropertyTypes = this.selectedPropertyTypes.filter((t) => t.Value !== 'Land').map((s) => Number(s.Value));\n\n this.filter.MinBedrooms = this.beds;\n this.filter.MinBathrooms = this.baths;\n this.filter.MinPrice = this.minPrice;\n this.filter.MaxPrice = this.maxPrice;\n\n this.filter.Page = 1;\n\n this.emitFilter();\n }\n\n suburbsUpdated(selectedSuburbs: MultiSelectOption[]) {\n this.selectedSuburbs = selectedSuburbs;\n\n this.updateFilter();\n }\n\n propertyTypesUpdated(selectedPropertyTypes: MultiSelectOption[]) {\n this.selectedPropertyTypes = selectedPropertyTypes;\n this.updateFilter();\n }\n\n private emitDebounce: number | undefined = undefined;\n\n emitFilter() {\n this.$emit('filter_updated', this.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!./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=4c5b1f00&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=4c5b1f00&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 \"4c5b1f00\",\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=4b217463&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=4b217463&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 \"4b217463\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}