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AASU,GAAO,OAAOT,EAAG,KAAK,CAACG,YAAY,yBAAyBJ,EAAIS,GAAG,GAAQ,SAASE,GAAS,OAAOV,EAAG,4BAA4B,CAACW,IAAID,EAAY,GAAEE,MAAM,CAAC,cAAcb,EAAIxB,WAAW,QAAUmC,EAAQ,iBAAiBX,EAAIc,cAAc,KAAOd,EAAIe,QAAgB,SAAI,IAAG,EAAE,KAAI,EAChyB,EACIC,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/ProductList.vue?55bd","webpack:///./resources/area/web/default/js/components/catalog/ProductList.vue","webpack:///./resources/area/web/default/js/components/catalog/ProductList.vue?a6f1","webpack:///./resources/area/web/default/js/components/catalog/ProductList.vue?8617"],"sourcesContent":["\nimport {Component, Vue, Prop} from 'vue-property-decorator';\nimport ServiceContainer from '@flashpointbv/solar-service-container';\nimport {SolarDataLayer} from '@flashpointbv/solar-datalayer/dist';\n\n@Component({\n name: 'catalog-product-list',\n components: ServiceContainer().getComponents(),\n})\nexport default class extends Vue {\n @Prop({required: true}) readonly dataSource: string;\n @Prop({default: 6}) private chunkSize: number;\n @Prop({default: () => []}) private wishlistItems: Array<object>;\n\n private get isLoading(): boolean {\n return this.$store.getters[`${this.dataSource}/isLoading`];\n }\n\n private get products(): Array<object> {\n return this.$store.getters[`${this.dataSource}/productList`];\n }\n\n private get productChunks(): Array<object> {\n return Array.from({length: Math.ceil(this.products.length / this.chunkSize)}, (v, i) => this.products.slice(i * this.chunkSize, i * this.chunkSize + this.chunkSize));\n }\n\n private created(): void {\n SolarDataLayer.init().addViewItemsList(this.products, 'Product list');\n }\n}\n","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=701f5482&\"\nimport script from \"./ProductList.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductList.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-6.use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-6.use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"catalog__category-list\"},[(_vm.isLoading)?_c('div',{staticClass:\"--loading\"},[_c('div',{staticClass:\"--spinner\"})]):_vm._e(),_vm._v(\" \"),(_vm.products.length <= 0 && !_vm.isLoading)?_c('div',{staticClass:\"global__message--bg --warning --full-width --margin\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('No products were found in this category.'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.productChunks),function(chunk){return _c('ul',{staticClass:\"grid-x grid-padding-x\"},_vm._l((chunk),function(product){return _c('catalog-product-list-item',{key:product['id'],attrs:{\"data-source\":_vm.dataSource,\"product\":product,\"wishlist-items\":_vm.wishlistItems,\"type\":_vm.$parent['layout']}})}),1)})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","isLoading","this","$store","getters","dataSource","products","productChunks","Array","from","length","Math","ceil","chunkSize","v","i","slice","created","SolarDataLayer","init","addViewItemsList","Prop","required","default","Component","name","components","getComponents","render","_vm","_c","_self","_setupProxy","staticClass","_e","_v","_s","$t","_l","chunk","product","key","attrs","wishlistItems","$parent","staticRenderFns"],"sourceRoot":""}