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,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/PriceToggle.vue?bce0","webpack:///./resources/area/web/default/js/components/PriceToggle.vue","webpack:///./resources/area/web/default/js/components/PriceToggle.vue?5471","webpack:///./resources/area/web/default/js/components/PriceToggle.vue?cc80"],"sourcesContent":["\nimport {Component, Vue, Prop} from 'vue-property-decorator';\nimport {ToggleButton} from 'vue-js-toggle-button';\n\n@Component({\n name: 'price-toggle',\n components: {\n ToggleButton,\n },\n})\n\nexport default class extends Vue {\n @Prop() private isBusiness: boolean;\n\n private get priceDisplay(): boolean {\n return this.$store.getters['GlobalSettings/getPriceView'] === 'excl_tax';\n }\n\n private get manuallyTriggered(): boolean {\n return this.$store.getters['GlobalSettings/getPriceTriggered'];\n }\n private set priceDisplay(value: boolean) {\n\n this.$store.dispatch('GlobalSettings/setPriceTriggered', true);\n this.$store.dispatch('GlobalSettings/setPriceView', value ? 'excl_tax' : 'incl_tax');\n }\n private created(): void {\n if (!this.manuallyTriggered) {\n if (this.isBusiness === true) {\n this.$store.dispatch('GlobalSettings/setPriceView', 'excl_tax');\n } else {\n this.$store.dispatch('GlobalSettings/setPriceView', 'incl_tax');\n }\n } else if(this.isBusiness === false && this.manuallyTriggered === true) {\n this.$store.dispatch('GlobalSettings/setPriceTriggered', false);\n }\n }\n}\n","import { render, staticRenderFns } from \"./PriceToggle.vue?vue&type=template&id=2e6ed51a&\"\nimport script from \"./PriceToggle.vue?vue&type=script&lang=ts&\"\nexport * from \"./PriceToggle.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!./PriceToggle.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!./PriceToggle.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',[_c('span',{class:{ '--inactive': _vm.priceDisplay }},[_vm._v(\"incl. BTW\")]),_vm._v(\" \"),_c('toggle-button',{ref:`price-toggle`,attrs:{\"width\":34,\"height\":22,\"color\":{checked: 'transparent', unchecked: 'transparent'},\"switch-color\":\"#000\"},model:{value:(_vm.priceDisplay),callback:function ($$v) {_vm.priceDisplay=$$v},expression:\"priceDisplay\"}}),_vm._v(\" \"),_c('span',{class:{ '--inactive': ! _vm.priceDisplay }},[_vm._v(\"Excl. BTW\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","priceDisplay","this","$store","getters","manuallyTriggered","value","dispatch","created","isBusiness","Prop","Component","name","components","ToggleButton","render","_vm","_c","_self","_setupProxy","class","_v","ref","attrs","checked","unchecked","model","callback","$$v","expression","staticRenderFns"],"sourceRoot":""}