{"version":3,"sources":["webpack:///./src/components/UI/Loader.vue","webpack:///./src/components/UI/Loader.vue?baee","webpack:///./src/components/UI/Loader.vue?8596","webpack:///./src/components/UI/Loader.vue?9492","webpack:///./src/views/PropertiesForSale.vue","webpack:///./src/views/PropertiesForSale.vue?d882","webpack:///./src/views/PropertiesForSale.vue?8e49","webpack:///./src/views/PropertiesForSale.vue?497c","webpack:///./src/components/UI/Loader.vue?fa85","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?1eb5","webpack:///./src/components/ListingSearch.vue","webpack:///./src/components/ListingSearch.vue?7d78","webpack:///./src/components/ListingSearch.vue?41dd","webpack:///./src/components/ListingSearch.vue?38eb","webpack:///./src/components/ListingSearch.vue?d04c","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?cb18","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?7010","webpack:///./node_modules/client-website-ts-library/components/MultiSelect.vue?cfde"],"names":["render","_vm","this","_c","_self","_setupProxy","directives","name","rawName","value","loading","expression","staticClass","staticRenderFns","Loader","Vue","__decorate","Prop","Component","component","attrs","on","handleFilter","listingFilter","_e","PropertiesForSale","Mixins","View","constructor","filter","console","log","OrderByStatements","ListingOrderBy","CreateDateDesc","Categories","ListingCategory","ResidentialSale","ResidentialLand","Rural","Commercial","CommercialLand","Business","components","Listings","ListingSearch","suburbs","suburbsUpdated","beds","$event","$$selectedVal","Array","prototype","call","target","options","o","selected","map","val","_value","multiple","_v","baths","mos","methodOfSale","ListingFilter","Statuses","ListingStatus","Current","UnderContract","PageSize","selectedSuburbs","updateSuburbsDebounce","undefined","emitDebounce","mounted","updateFilter","updateMos","updateSuburbs","clearTimeout","window","setTimeout","tmpFilter","Suburbs","API","GetSuburbs","then","suburb","Value","Label","ResidentialRental","MinBedrooms","MinBathrooms","s","Page","emitFilter","$emit","required","Watch","MultiSelect","class","focused","style","background","focusBg","itemBorderRad","defocus","_l","previewItems","item","key","_s","removeItem","selectedValue","length","previewCount","search","searchPlaceholder","domProps","updateSearch","gotFocus","composing","searchResults","result","Option","Selected","select","noResults","requestAnimationFrame","results","loweredSearch","toLowerCase","itm","indexOf","r","some","enableCustom","push","customLabelPrefix","customValuePrefix","option","v","idx","findIndex","splice","setValues","opt","slice","default"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOR,EAAIS,QAASC,WAAW,YAAYC,YAAY,YAEvMC,EAAkB,G,wBCEtB,IAAqBC,EAArB,cAAoCC,SAEhCC,gBADCC,kBACD,8BAFiBH,EAAM,gBAD1BI,QACoBJ,WCJ8X,I,wBCQ/YK,EAAY,eACd,EACAnB,EACAa,GACA,EACA,KACA,WACA,MAIa,OAAAM,E,2ECnBf,IAAInB,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,OAAO,CAACA,EAAG,eAAe,CAACiB,MAAM,CAAC,MAAQ,sBAAsB,KAAO,UAAUjB,EAAG,aAAa,CAACA,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACiB,MAAM,CAAC,iBAAiB,OAAOC,GAAG,CAAC,eAAiBpB,EAAIqB,gBAAiBrB,EAAIsB,cAAepB,EAAG,WAAW,CAACiB,MAAM,CAAC,OAASnB,EAAIsB,iBAAiBtB,EAAIuB,MAAM,IAAI,IAAI,IAE9YX,EAAkB,G,oFCctB,IAAqBY,EAArB,cAA+CC,eAAOC,SAAtDC,c,oBACU,KAAAL,cAAsC,KAE9CD,aAAaO,GACXC,QAAQC,IAAIF,GAEZA,EAAOG,kBAAoB,CAACC,OAAeC,gBAE3CL,EAAOM,WAAa,CAACC,OAAgBC,gBAAiBD,OAAgBE,gBAA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AKqD,QAAQ1B,OAAQsH,IAAsC,IAA9B1I,EAAM6H,QAAQa,EAAI1D,QAGtD,mBACd,OAAOvF,KAAKgH,cAAckC,MAAM,EAAGlJ,KAAKkH,aAAe,KAxGzDpG,GADCC,eAAK,CAAEiF,UAAU,KAClB,8BAGAlF,GADCC,eAAK,CAAEoI,SAAS,KACjB,mCAGArI,GADCC,eAAK,CAAEoI,QAAS,iBACjB,wCAGArI,GADCC,eAAK,CAAEoI,QAAS,aACjB,wCAGArI,GADCC,eAAK,CAAEoI,QAAS,KACjB,mCAGArI,GADCC,eAAK,CAAEoI,QAAS,YACjB,wCAGArI,GADCC,eAAK,CAAEoI,QAAS,sBACjB,gCAGArI,GADCC,eAAK,CAAEoI,QAAS,iBACjB,iCAGArI,GADCC,eAAK,CAAEoI,QAAS,UACjB,8BAGArI,GADCC,eAAK,CAAEoI,QAAS,YACjB,oCA7BmBjD,EAAW,GAD/BlF,QACoBkF,WClBmS,I,wBCQpTjF,EAAY,eACd,EACAnB,EACAa,GACA,EACA,KACA,WACA,MAIa,OAAAM,E","file":"js/chunk-ff358f66.46e89991.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loader\"})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\n\n@Component\nexport default class Loader extends Vue {\n @Prop()\n private readonly loading!: boolean;\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-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--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-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&prod&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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Page',[_c('SiteMasthead',{attrs:{\"title\":\"Properties For Sale\",\"mini\":\"true\"}}),_c('ContentRow',[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"method-of-sale\":\"buy\"},on:{\"filter_updated\":_vm.handleFilter}}),(_vm.listingFilter)?_c('Listings',{attrs:{\"filter\":_vm.listingFilter}}):_vm._e()],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Mixins } from 'vue-property-decorator';\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\nimport { View } from 'client-website-ts-library/plugins';\n\nimport { ListingCategory } 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 handleFilter(filter: ListingFilter) {\n console.log(filter);\n // eslint-disable-next-line no-param-reassign\n filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\n // eslint-disable-next-line no-param-reassign\n filter.Categories = [ListingCategory.ResidentialSale, ListingCategory.ResidentialLand, ListingCategory.Rural, ListingCategory.Commercial, ListingCategory.CommercialLand, ListingCategory.Business];\n this.listingFilter = filter;\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-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--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-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=779b11de&\"\nimport script from \"./PropertiesForSale.vue?vue&type=script&lang=ts&\"\nexport * from \"./PropertiesForSale.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--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loader.vue?vue&type=style&index=0&id=b15215d2&prod&scoped=true&lang=css&\"","export * from \"-!../../mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../vue-loader/lib/loaders/stylePostLoader.js!../../postcss-loader/src/index.js??ref--7-oneOf-1-2!../../cache-loader/dist/cjs.js??ref--1-0!../../vue-loader/lib/index.js??vue-loader-options!./MultiSelect.vue?vue&type=style&index=0&id=396af627&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"search\"},[_c('Row',[_c('Column',{attrs:{\"width\":\"6\"}},[_c('MultiSelect',{staticClass:\"search__suburbs\",attrs:{\"options\":_vm.suburbs,\"label\":\"Suburb\",\"preview-count\":\"3\"},on:{\"updated\":_vm.suburbsUpdated}})],1),_c('Column',{attrs:{\"width\":\"3\"}},[_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\":\"3\"}},[_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\")])])])])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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 } from 'client-website-ts-library/types';\nimport { API } 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 private mos: string = this.methodOfSale;\n\n private filter: ListingFilter = new ListingFilter({\n Statuses: [\n ListingStatus.Current,\n ListingStatus.UnderContract,\n ],\n PageSize: 9,\n });\n\n private suburbs: MultiSelectOption[] = [];\n\n private selectedSuburbs: MultiSelectOption[] = [];\n\n private beds = 0;\n\n private baths = 0;\n\n mounted() {\n this.updateFilter();\n }\n\n @Watch('methodOfSale')\n updateMos() {\n this.mos = this.methodOfSale;\n }\n\n private updateSuburbsDebounce: number | undefined = undefined;\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 @Watch('mos')\n @Watch('beds')\n @Watch('baths')\n updateFilter() {\n switch (this.mos) {\n case 'buy':\n this.filter.Categories = [\n ListingCategory.ResidentialSale,\n ListingCategory.ResidentialLand,\n ListingCategory.Rural,\n ];\n break;\n case 'rent':\n this.filter.Categories = [\n ListingCategory.ResidentialRental,\n ];\n break;\n default:\n this.filter.Categories = [];\n break;\n }\n\n this.updateSuburbs();\n\n this.filter.MinBedrooms = this.beds;\n this.filter.MinBathrooms = this.baths;\n\n this.filter.Suburbs = this.selectedSuburbs.map((s) => s.Value);\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 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--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-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--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-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=a6e32d68&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=a6e32d68&prod&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 \"a6e32d68\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListingSearch.vue?vue&type=style&index=0&id=a6e32d68&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;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)+\" \")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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--15-0!../../thread-loader/dist/cjs.js!../../babel-loader/lib/index.js!../../ts-loader/index.js??ref--15-3!../../cache-loader/dist/cjs.js??ref--1-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--15-0!../../thread-loader/dist/cjs.js!../../babel-loader/lib/index.js!../../ts-loader/index.js??ref--15-3!../../cache-loader/dist/cjs.js??ref--1-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&prod&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":""}