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EAAO,SAAWA,EAAkB,UAAE,YAAcX,EAAIM,GAAGK,EAAc,SAAK,IAAG,IAChiB,EACIG,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/ProductListToolbarSortSelect.vue?cfec","webpack:///./resources/area/web/default/js/components/catalog/ProductListToolbarSortSelect.vue","webpack:///./resources/area/web/default/js/components/catalog/ProductListToolbarSortSelect.vue?775c","webpack:///./resources/area/web/default/js/components/catalog/ProductListToolbarSortSelect.vue?5c72"],"sourcesContent":["\n import {Component, Vue, Prop} from 'vue-property-decorator';\n\n @Component({\n name: 'product-list-toolbar-sort-select'\n })\n\n export default class extends Vue {\n @Prop({required: true}) readonly dataSource: string;\n\n private get sortOptions(): Array<object> {\n return this.$store.getters[`${this.dataSource}/sortingOptions`] || [];\n }\n\n private get currentSorting(): object {\n return typeof this.$store.getters[`${this.dataSource}/currentSort`] !== 'undefined' ? this.$store.getters[`${this.dataSource}/currentSort`] : {};\n }\n\n private updatePage(e): void {\n const selectedOption = this.sortOptions[e.target.selectedIndex];\n let selectedOptionJson = '{}';\n\n if (null !== selectedOption['key']) {\n selectedOptionJson = `{\"${selectedOption['key']}\": \"${selectedOption['sort'] || 'asc'}\"}`;\n }\n\n this.$store.dispatch(`${this.dataSource}/updatePageSort`, JSON.parse(selectedOptionJson));\n }\n\n private checkSelected(selection): boolean {\n return JSON.stringify(this.currentSorting) === JSON.stringify(selection);\n }\n }\n","import { render, staticRenderFns } from \"./ProductListToolbarSortSelect.vue?vue&type=template&id=22de856e&\"\nimport script from \"./ProductListToolbarSortSelect.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductListToolbarSortSelect.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!./ProductListToolbarSortSelect.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!./ProductListToolbarSortSelect.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-sorter\"},[_c('span',{staticClass:\"hide-for-small-only\"},[_vm._v(_vm._s(_vm.$t('Sort by'))+\":\")]),_vm._v(\" \"),_c('select',{on:{\"change\":function($event){return _vm.updatePage($event)}}},_vm._l((_vm.sortOptions),function(option){return _c('option',{key:`catalog-sort-option-${option['key']}-${option['sort']}`,domProps:{\"value\":option,\"selected\":option['is_active'],\"textContent\":_vm._s(option['label'])}})}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","sortOptions","this","$store","getters","dataSource","currentSorting","updatePage","e","selectedOption","target","selectedIndex","selectedOptionJson","dispatch","JSON","parse","checkSelected","selection","stringify","Prop","required","Component","name","render","_vm","_c","_self","_setupProxy","staticClass","_v","_s","$t","on","$event","_l","option","key","domProps","staticRenderFns"],"sourceRoot":""}