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AAS,CAACG,YAAY,gBAAgBG,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOR,EAAIb,WAAWqB,EAAO,IAAIR,EAAIS,GAAIT,EAAe,aAAE,SAASU,EAAOC,GAAO,OAAOV,EAAG,SAAS,CAACW,IAAID,EAAME,SAAS,CAAC,MAAQxB,KAAKM,UAAUe,EAAOhC,SAAS,SAAWsB,EAAIP,cAAciB,EAAOhC,WAAW,CAACsB,EAAIK,GAAG,WAAWL,EAAIM,GAAGN,EAAIvB,GAAGiC,EAAOnC,OAAO,WAAW,IAAG,IAC1kB,EACIuC,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?8d34","webpack:///./resources/area/web/default/js/components/catalog/toolbar/ProductListToolbarSortSelect.vue?7797"],"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<object> = [\n    {\n      name: this.$t('Popularity'),\n      sorting: { popularity_index_i: 'desc' },\n    },\n    {\n      name: this.$t('Newest'),\n      sorting: { product_id_i: 'desc' },\n    },\n    {\n      name: this.$t('Name (A-Z)'),\n      sorting: { name_s: 'asc' },\n    },\n    {\n      name: this.$t('Name (Z-A)'),\n      sorting: { name_s: 'desc' },\n    },\n    {\n      name: this.$t('Price (Ascending)'),\n      sorting: { price: 'asc' },\n    },\n    {\n      name: this.$t('Price (Descending)'),\n      sorting: { price: '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=74e893a2&\"\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('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","popularity_index_i","product_id_i","name_s","price","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":""}