{"version":3,"file":"js/app.6b54b9ee83b1ae9c8537.js","mappings":"wpBAMe,8BAAc,EAAAA,IAGfC,kBACV,OAAOC,KAAKC,OAAOC,MAAM,GAAGF,KAAKG,cAA2B,YAAmB,iBAAK,EACtF,CAEQC,WAAWC,GACjB,MAAMC,EAAiBN,KAAKD,YAAYM,EAAEE,OAAOC,eACjD,IAAIC,EAAqB,KAErB,OAASH,EAAoB,MAC/BG,EAAqB,KAAKH,EAAoB,UAAQA,EAAqB,MAAK,WAGlFN,KAAKC,OAAOS,SAAS,GAAGV,KAAKG,4BAA6BQ,KAAKC,MAAMH,GACvE,GAfA,IAAC,IAAAI,MAAK,CAAEC,UAAU,I,0DADL,MAHd,IAAAC,WAAU,CACTC,KAAM,8C,qMCcR,SAXgB,E,QAAA,GACd,UACA,IACA,KACA,EACA,KACA,KACA,MAI8B,O,iJClBkN,QAAe,G,sDCAjQ,IAAIC,EAAS,SAASA,SAAS,IAAIC,EAAIlB,KAAKmB,EAAGD,EAAIE,MAAMD,GAAUD,EAAIE,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,4BAA4B,CAACH,EAAG,QAAQ,CAACI,MAAM,CAAC,IAAM,YAAY,CAACL,EAAIM,GAAG,kBAAkBN,EAAIM,GAAG,KAAKL,EAAG,SAAS,CAACG,YAAY,gBAAgBC,MAAM,CAAC,GAAK,WAAWE,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOR,EAAId,WAAWsB,EAAO,IAAIR,EAAIS,GAAIT,EAAe,aAAE,SAASU,GAAQ,OAAOT,EAAG,SAAS,CAACU,IAAI,uBAAuBD,EAAY,OAAKA,EAAa,OAAIE,SAAS,CAAC,MAAQF,EAAO,SAAWA,EAAkB,UAAE,YAAcV,EAAIa,GAAGH,EAAc,SAAK,IAAG,IAC3jB,EACII,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?597b"],"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 private get sortOptions(): Array {\n return this.$store.state[`${this.dataSource}`]['apiResponse']['sorting_options'] || [];\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","import { render, staticRenderFns } from \"./ProductListToolbarSortSelect.vue?vue&type=template&id=849cc786&\"\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',{attrs:{\"for\":\"sort_by\"}},[_vm._v(\"Sorteren op:\")]),_vm._v(\" \"),_c('select',{staticClass:\"--transparent\",attrs:{\"id\":\"sort_by\"},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","state","dataSource","updatePage","e","selectedOption","target","selectedIndex","selectedOptionJson","dispatch","JSON","parse","Prop","required","Component","name","render","_vm","_c","_self","_setupProxy","staticClass","attrs","_v","on","$event","_l","option","key","domProps","_s","staticRenderFns"],"sourceRoot":""}