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AAO4C,GAAO,MAAO,CAACnB,EAAGD,EAAInB,yBAAyBL,GAAQ,CAAC6C,IAAI,kBAAkB7C,EAAa,OAAI8C,IAAI,YAAYH,MAAM,CAAC,OAAS3C,EAAO,cAAcwB,EAAI3B,WAAW,MAAQ+C,KAAS,KAAI,GAAGpB,EAAIK,GAAG,KAAKJ,EAAG,MAAM,CAACG,YAAY,qCAAqC,CAAEJ,EAAI1B,cAAoB,OAAE2B,EAAG,SAAS,CAACG,YAAY,yBAAyBK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIlB,eAAe,IAAI,CAACkB,EAAIK,GAAG,WAAWL,EAAIM,GAAGN,EAAIO,GAAG,iBAAiB,YAAYP,EAAIW,KAAKX,EAAIK,GAAG,KAAKJ,EAAG,SAAS,CAACG,YAAY,WAAWe,MAAM,CAAC,aAAa,KAAK,CAAClB,EAAG,OAAO,CAACkB,MAAM,CAAC,cAAc,SAAS,CAACnB,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,GAAG,+BAA+B,KAAKP,EAAIM,GAAGN,EAAI9B,mBAAmB,aAAa8B,EAAIW,IAC38D,EACIY,EAAkB,CAAC,WAAY,IAAatB,EAALtC,KAAYuC,MAAMD,GAAlBtC,KAAgCuC,MAAMC,YAAY,OAAOF,EAAG,SAAS,CAACG,YAAY,eAAee,MAAM,CAAC,aAAa,aAAa,KAAO,SAAS,aAAa,KAAK,CAAClB,EAAG,OAAO,CAACkB,MAAM,CAAC,cAAc,WAChP,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/ProductFilterList.vue?f079","webpack:///./resources/area/web/default/js/components/catalog/ProductFilterList.vue","webpack:///./resources/area/web/default/js/components/catalog/ProductFilterList.vue?1c60","webpack:///./resources/area/web/default/js/components/catalog/ProductFilterList.vue?eac2"],"sourcesContent":["\nimport {Component, Vue, Prop} from 'vue-property-decorator';\nimport ServiceContainer from '@flashpointbv/solar-service-container';\n\n@Component({\n name: 'catalog-product-filter-list',\n components: ServiceContainer().getComponents(),\n})\nexport default class extends Vue {\n @Prop({required: true}) readonly dataSource: string;\n @Prop({\n default: () => {\n return [];\n },\n })\n readonly subCategories: Array;\n @Prop() readonly categoryName: string;\n\n private filterOpen: boolean = ! this.$mobileDetect.mobile();\n private defaultFiltersToShow: number = 5;\n\n private get filtersToShow(): number {\n return this.subCategories.length > 0 ? this.defaultFiltersToShow - 1 : this.defaultFiltersToShow;\n }\n\n private get totalProductCount(): number {\n return this.$store.getters[`${this.dataSource}/totalItemCount`];\n }\n\n private get activeFilters(): Array {\n return this.$store.getters[`${this.dataSource}/activeFilters`];\n }\n\n private get filterList(): Array {\n return [\n ...(this.$store.getters[`${this.dataSource}/filterList`] || []).filter((f) => f['is_visible'] || f['type'] === 'price'),\n ];\n }\n\n private get filterListChunks(): Array {\n return this.filterList.map(f => f).splice(0, this.filtersToShow);\n }\n\n private determineFilterComponent(filter: object): string {\n if (filter['type'] === 'price') {\n return 'catalog-product-list-price-filter';\n }\n\n if (filter['renderer'] === 'swatch_visual') {\n return 'catalog-product-list-swatch-filter';\n }\n\n return 'catalog-product-list-attribute-filter';\n }\n\n private removeFilters(): void {\n this.$store.dispatch(`${this.dataSource}/fetchCatalog`, {filters: []});\n }\n\n private mounted(): void {\n const placeholder = document.getElementById('filterPlaceholder');\n if (placeholder) {\n placeholder.style.display = 'none';\n }\n }\n}\n","import { render, staticRenderFns } from \"./ProductFilterList.vue?vue&type=template&id=5d551b4c&\"\nimport script from \"./ProductFilterList.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductFilterList.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/ts-loader/index.js??clonedRuleSet-26.use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductFilterList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-26.use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductFilterList.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.totalProductCount > 0)?_c('section',[_c('div',{staticClass:\"modal__header show-for-small-only\"},[_c('span',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('category-filter')))]),_vm._v(\" \"),_vm._m(0)]),_vm._v(\" \"),_c('div',{staticClass:\"modal__content filter_menu\"},[_c('div',{staticClass:\"reset__filter hide-for-small-only\"},[(_vm.activeFilters.length)?_c('button',{staticClass:\"--button --transparent --small\",on:{\"click\":function($event){return _vm.removeFilters()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reset-filter'))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(_vm.subCategories.length)?_c('div',{staticClass:\"--sub-categories\"},[_c('dl',[_c('dt',{class:{ '--visible': _vm.filterOpen },on:{\"click\":function($event){_vm.filterOpen = ! _vm.filterOpen}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('autocomplete-categories'))+\"\\n \")]),_vm._v(\" \"),_c('dd',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.filterOpen),expression:\"filterOpen\"}]},[_c('div',{staticClass:\"filter__list\"},[_c('ol',_vm._l((_vm.subCategories),function(category){return _c('li',[_c('a',{attrs:{\"href\":category['url_key']}},[_vm._v(_vm._s(category['name']))])])}),0)])])])]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.filterList),function(filter,index){return [_c(_vm.determineFilterComponent(filter),{key:`product-filter-${filter['code']}`,tag:\"component\",attrs:{\"filter\":filter,\"data-source\":_vm.dataSource,\"index\":index}})]})],2),_vm._v(\" \"),_c('div',{staticClass:\"modal__footer show-for-small-only\"},[(_vm.activeFilters.length)?_c('button',{staticClass:\"--button --transparent\",on:{\"click\":function($event){return _vm.removeFilters()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reset-filter'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"--button\",attrs:{\"data-close\":\"\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(_vm._s(_vm.$t('checkout-coupon-add-button'))+\" (\"+_vm._s(_vm.totalProductCount)+\")\")])])])]):_vm._e()\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('button',{staticClass:\"close-button\",attrs:{\"aria-label\":\"Close menu\",\"type\":\"button\",\"data-close\":\"\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}})])\n}]\n\nexport { render, staticRenderFns }"],"names":["Vue","filterOpen","this","$mobileDetect","mobile","defaultFiltersToShow","filtersToShow","subCategories","length","totalProductCount","$store","getters","dataSource","activeFilters","filterList","filter","f","filterListChunks","map","splice","determineFilterComponent","removeFilters","dispatch","filters","mounted","placeholder","document","getElementById","style","display","Prop","required","default","Array","Component","name","components","getComponents","render","_vm","_c","_self","_setupProxy","staticClass","_v","_s","$t","_m","on","$event","_e","class","directives","rawName","value","expression","_l","category","attrs","index","key","tag","staticRenderFns"],"sourceRoot":""}