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WAAWqB,EAAO,IAAIR,EAAIS,GAAIT,EAAe,aAAE,SAASU,EAAOC,GAAO,OAAOV,EAAG,SAAS,CAACW,IAAID,EAAME,SAAS,CAAC,MAAQxB,KAAKM,UAAUe,EAAO/B,SAAS,SAAWqB,EAAIP,cAAciB,EAAO/B,WAAW,CAACqB,EAAIK,GAAG,WAAWL,EAAIM,GAAGN,EAAItB,GAAGgC,EAAOlC,OAAO,WAAW,IAAG,IACtkB,EACIsC,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/toolbar/ProductListToolbarSortSelect.vue?6a40","webpack:///./resources/area/web/default/js/components/catalog/toolbar/ProductListToolbarSortSelect.vue","webpack:///./resources/area/web/default/js/components/catalog/toolbar/ProductListToolbarSortSelect.vue?3136","webpack:///./resources/area/web/default/js/components/catalog/toolbar/ProductListToolbarSortSelect.vue?7f26"],"sourcesContent":["\nimport {Component, Vue, Prop} from 'vue-property-decorator';\n\n@Component({\n name: 'catalog-product-list-toolbar-sort-select',\n})\nexport default class extends Vue {\n @Prop({required: true}) readonly dataSource: string;\n\n readonly sortOptions: Array = [\n {\n name: this.$t('sort-price-desc'),\n sorting: {price: 'desc'},\n },\n {\n name: this.$t('sort-price-asc'),\n sorting: {price: 'asc'},\n },\n {\n name: this.$t('sort-recommended'),\n sorting: {popularity_index_i: 'desc'},\n },\n {\n name: this.$t('sort-name-asc'),\n sorting: {name_s: 'asc'},\n },\n {\n name: this.$t('sort-name-desc'),\n sorting: {name_s: 'desc'},\n },\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(sorting): void {\n this.$store.dispatch(`${this.dataSource}/updatePageSort`, JSON.parse(sorting.target.value));\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=cb857458&\"\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-26.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-26.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('label',{staticClass:\"hide-for-small-only\"},[_vm._v(_vm._s(_vm.$t('sort-by')))]),_vm._v(\" \"),_c('select',{staticClass:\"--transparent\",on:{\"change\":function($event){return _vm.updatePage($event)}}},_vm._l((_vm.sortOptions),function(option,index){return _c('option',{key:index,domProps:{\"value\":JSON.stringify(option.sorting),\"selected\":_vm.checkSelected(option.sorting)}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(option.name))+\"\\n \")])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","sortOptions","name","this","$t","sorting","price","popularity_index_i","name_s","currentSorting","$store","getters","dataSource","updatePage","dispatch","JSON","parse","target","value","checkSelected","selection","stringify","Prop","required","Component","render","_vm","_c","_self","_setupProxy","staticClass","_v","_s","on","$event","_l","option","index","key","domProps","staticRenderFns"],"sourceRoot":""}