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AA0B,kBAAOwB,EAAIK,GAAG,KAAKJ,EAAG,OAAO,CAACG,YAAY,WAAW,CAACJ,EAAIK,GAAGL,EAAIM,GAAGN,EAAIR,WAAWQ,EAAIxB,YAA+B,yBAASwB,EAAIK,GAAG,KAAML,EAAoB,iBAAEC,EAAG,OAAO,CAACG,YAAY,aAAa,CAACJ,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,GAAG,mBAAmB,IAAIP,EAAIM,GAAGN,EAAIpB,qBAAqBoB,EAAIQ,OAAOP,EAAG,OAAO,CAACG,YAAY,WAAW,CAACJ,EAAIK,GAAGL,EAAIM,GAAGN,EAAIR,WAAWQ,EAAIxB,YAA+B,yBAASwB,EAAIQ,IAC31B,EACIC,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/product/ProductPrice.vue?f49a","webpack:///./resources/area/admin/js/helpers/priceHelper.ts","webpack:///./resources/area/web/default/js/components/catalog/product/ProductPrice.vue","webpack:///./resources/area/web/default/js/components/catalog/product/ProductPrice.vue?550a","webpack:///./resources/area/web/default/js/components/catalog/product/ProductPrice.vue?434c"],"sourcesContent":["\nimport {Component, Prop, Vue} from 'vue-property-decorator';\nimport {mixins} from 'vue-class-component';\nimport PriceHelper from \"../../../../../../admin/js/helpers/priceHelper\";\n@Component({\n name: 'catalog-product-price'\n})\n\nexport default class ProductPrice extends mixins(PriceHelper) {\n @Prop({default: () => []}) private productData: Array;\n\n private get totalPrices(): number {\n return this.$store.getters['CatalogProduct/totalPrices'];\n }\n\n private get promotionEndTime(): string {\n if (this.productData['special_price_end_date'] || null) {\n let date = new Date(this.productData['special_price_end_date']);\n\n return date.toLocaleDateString('nl-NL');\n }\n\n return '';\n }\n\n private get fromPrices(): number {\n return this.$store.getters['CatalogGroupedProduct/fromPrices'];\n }\n\n}\n","import {Component, Vue} from \"vue-property-decorator\";\n\ninterface Interface {\n parsePrice: Function;\n}\n@Component\nexport default class PriceHelper extends Vue {\n public parsePrice(price: number): string {\n if(!price){\n return '';\n }\n return price.toLocaleString(this.locale ?? 'nl-NL',{minimumFractionDigits: 2});\n }\n private get locale(): string {\n return this.$config.get('locale');\n }\n\n}\n","import { render, staticRenderFns } from \"./ProductPrice.vue?vue&type=template&id=0c8076f6&\"\nimport script from \"./ProductPrice.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductPrice.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!./ProductPrice.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!./ProductPrice.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.fromPrices['totalPriceInclTax'] > 0 || _vm.totalPrices['totalPriceInclTax'] > 0)?_c('div',{staticClass:\"price__holder\"},[(_vm.totalPrices['totalPriceInclTax'] !== _vm.totalPrices['priceInclTax'])?_c('span',{staticClass:\"--special\"},[_c('span',{staticClass:\"--price\"},[_c('span',{staticClass:\"--old\"},[_vm._v(_vm._s(_vm.parsePrice(_vm.totalPrices['priceInclTax'])))]),_vm._v(\" \"),_c('span',{staticClass:\"--final\"},[_vm._v(_vm._s(_vm.parsePrice(_vm.totalPrices['totalPriceInclTax'])))])]),_vm._v(\" \"),(_vm.promotionEndTime)?_c('span',{staticClass:\"--message\"},[_vm._v(_vm._s(_vm.$t('Promotion till'))+\" \"+_vm._s(_vm.promotionEndTime))]):_vm._e()]):_c('span',{staticClass:\"--price\"},[_vm._v(_vm._s(_vm.parsePrice(_vm.totalPrices['totalPriceInclTax'])))])]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["ProductPrice","mixins","totalPrices","this","$store","getters","promotionEndTime","productData","Date","toLocaleDateString","fromPrices","Prop","default","Array","Component","name","PriceHelper","Vue","parsePrice","price","toLocaleString","locale","minimumFractionDigits","$config","get","render","_vm","_c","_self","_setupProxy","staticClass","_v","_s","$t","_e","staticRenderFns"],"sourceRoot":""}