{"version":3,"sources":["webpack:///./src/views/OfficePropertiesForRent.vue?8706","webpack:///./src/views/OfficePropertiesForRent.vue","webpack:///./src/views/OfficePropertiesForRent.vue?e74a","webpack:///./src/views/OfficePropertiesForRent.vue?4ad8","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","_e","staticRenderFns","filter","id","$route","params","Slugs","Resolve","then","resolved","Type","Id","SearchLevel","Office","SearchGuid","OrderByStatements","CreateDateDesc","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","Statuses","Sold","Current","UnderContract","PageSize","agentGuid","API","WebsiteId","Profile","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","Categories","ResidentialLand","ResidentialSale","Rural","ResidentialRental","updateSuburbs","PropertyTypes","t","Number","MinBedrooms","MinBathrooms","MinPrice","MaxPrice","Page","emitFilter","$emit","required","MultiSelect","class","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","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,2DAA2D,KAAO,UAAUF,EAAG,aAAa,CAACE,MAAM,CAAC,cAAe,IAAO,CAACF,EAAG,mBAAmB,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,iBAAiB,QAAQC,GAAG,CAAC,eAAiBP,EAAIQ,gBAAiBR,EAAiB,cAAEI,EAAG,WAAW,CAACE,MAAM,CAAC,OAASN,EAAIS,cAAc,gBAAiB,KAAST,EAAIU,MAAM,IAAI,IAAI,IACzeC,EAAkB,G,4ZC4BtB,IAAqB,EAArB,cAAqD,eAAO,SAA5D,c,oBACU,KAAAF,cAAsC,KAE9C,aAAaG,GACX,MAAMC,EAAKZ,KAAKa,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,yCAIxBZ,EAAOa,kBAAoB,CAAC,OAAeC,gBAC3CzB,KAAKQ,cAAgBG,KAIvBA,EAAOa,kBAAoB,CAAC,OAAeC,gBAC3CzB,KAAKQ,cAAgBG,KA/BN,EAAuB,GAN3C,eAAU,CACTe,WAAY,CACVC,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QpThJ,EAAY,eACd,EACA/B,EACAY,GACA,EACA,KACA,WACA,MAIa,OAAAmB,E","file":"js/chunk-35c6d728.95523d63.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 For Rent\",\"thin\":\"true\"}}),_c('ContentRow',{attrs:{\"noPaddingTop\":true}},[_c('ContentContainer',[_c('ListingSearch',{attrs:{\"method-of-sale\":\"rent\"},on:{\"filter_updated\":_vm.handleFilter}}),(_vm.listingFilter)?_c('Listings',{attrs:{\"filter\":_vm.listingFilter,\"infiniteScroll\":false}}):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Mixins } from 'vue-property-decorator';\nimport { ListingFilter, ListingOrderBy } from 'client-website-ts-library/filters';\nimport { View } from 'client-website-ts-library/plugins';\nimport { WebsiteLevel } from 'client-website-ts-library/types';\nimport { API } from 'client-website-ts-library/services';\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 OfficePropertiesForRent extends Mixins(View) {\n private listingFilter: ListingFilter | null = null;\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 = '29d9080e-165e-4372-afc4-374f5b90fdde';\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 = '4e9814df-12f6-4c08-b411-1499c2b952c9';\n }\n }\n // eslint-disable-next-line no-param-reassign\n filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\n this.listingFilter = filter;\n });\n } else {\n // eslint-disable-next-line no-param-reassign\n filter.OrderByStatements = [ListingOrderBy.CreateDateDesc];\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!./OfficePropertiesForRent.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!./OfficePropertiesForRent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OfficePropertiesForRent.vue?vue&type=template&id=262a9e96&\"\nimport script from \"./OfficePropertiesForRent.vue?vue&type=script&lang=ts&\"\nexport * from \"./OfficePropertiesForRent.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","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":""}