{"version":3,"sources":["webpack:///src/components/Invoices/Editor/InvoiceEditorTotals.vue","webpack:///./src/components/Invoices/Editor/InvoiceEditorTotals.vue","webpack:///./src/components/Invoices/Editor/InvoiceEditorTotals.vue?bac7","webpack:///./src/components/Invoices/Editor/InvoiceEditorTotals.vue?0b5e","webpack:///./src/components/Invoices/Editor/InvoiceEditorTotals.vue?7f75"],"names":["props","invoice","type","Object","required","currencyIso","String","default","computed","_objectSpread","mapGetters","taxLines","TaxLines","filter","t","Total","render","_vm","_c","_self","staticClass","_v","_s","$t","InvoiceAddress","NoTax","_f","TotalExclTax","locationLanguageCulture","_e","_l","tax","index","key","Percentage","TotalInclTax","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA;AAEe;EACfA,KAAA;IACAC,OAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,QAAA;IACA;IACAC,WAAA;MACAH,IAAA,EAAAI,MAAA;MACAC,OAAA;IACA;EACA;EAEAC,QAAA,EAAAC,iIAAA,CAAAA,iIAAA,KACAC,+DAAA;IAEAC,QAAA,WAAAA,SAAA;MACA,aAAAV,OAAA,CAAAW,QAAA,QAAAC,MAAA,WAAAC,CAAA;QAAA,OAAAA,CAAA,CAAAC,KAAA;MAAA;IACA;EAAA;AAEA,CAAC,E;;;;;;;;;;;;;ACpED;AAAA;AAAA,IAAIC,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAG;EAC7B,IAAIC,GAAG,GAAG,IAAI;IACZC,EAAE,GAAGD,GAAG,CAACE,KAAK,CAACD,EAAE;EACnB,OAAOA,EAAE,CAAC,KAAK,EAAE;IAAEE,WAAW,EAAE;EAAM,CAAC,EAAE,CACvCF,EAAE,CAAC,IAAI,EAAE;IAAEE,WAAW,EAAE;EAAqB,CAAC,EAAE,CAC9CH,GAAG,CAACI,EAAE,CACJ,GAAG,GACDJ,GAAG,CAACK,EAAE,CAACL,GAAG,CAACM,EAAE,CAAC,gDAAgD,CAAC,CAAC,GAChE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AACe,gF;;;;;;;;;;;;;ACtCf;AAAuT,CAAgB,qVAAG,EAAC,C;;;;;;;;;;;;;ACA3U;AAAA;AAAA;AAAA;AAAA","file":"js/364.js?id=4e1cfe69e9c85e671ab9","sourcesContent":["<template>\n  <div class=\"box\">\n    <h2 class=\"subtitle is-5 mb-4\">\n      {{ $t('Components.Invoices.InvoiceEditor.Title_Totals') }}\n    </h2>\n\n    <table class=\"table is-fullwidth is-narrow\">\n      <tbody>\n        <tr v-if=\"!invoice.InvoiceAddress.NoTax\">\n          <td>{{ $t('Components.Invoices.InvoiceEditor.Label_TotalExclTax') }}</td>\n          <td class=\"has-text-right\">\n            {{ invoice.TotalExclTax | toCurrency(locationLanguageCulture, currencyIso) }}\n          </td>\n        </tr>\n\n        <tr\n          v-for=\"(tax, index) in taxLines\"\n          :key=\"index\"\n          class=\"has-text-grey\"\n        >\n          <td>\n            {{ $t('Components.Invoices.InvoiceEditor.Label_Tax') }}\n            {{ tax.Percentage }}%\n          </td>\n          <td class=\"has-text-right\">\n            {{ tax.Total | toCurrency(locationLanguageCulture, currencyIso) }}\n          </td>\n        </tr>\n\n        <tr class=\"has-text-weight-bold\">\n          <td>\n            {{\n              invoice.InvoiceAddress.NoTax\n                ? $t('Components.Invoices.InvoiceEditor.Label_Total')\n                : $t('Components.Invoices.InvoiceEditor.Label_TotalInclTax')\n            }}\n          </td>\n          <td class=\"has-text-right\">\n            {{ invoice.TotalInclTax | toCurrency(locationLanguageCulture, currencyIso) }}\n          </td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex'\n\nexport default {\n  props: {\n    invoice: {\n      type: Object,\n      required: true,\n    },\n    currencyIso: {\n      type: String,\n      default: 'EUR',\n    },\n  },\n\n  computed: {\n    ...mapGetters('locationStore', ['locationLanguageCulture']),\n\n    taxLines() {\n      return (this.invoice.TaxLines || []).filter((t) => t.Total !== 0)\n    },\n  },\n}\n</script>\n","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\"div\", { staticClass: \"box\" }, [\n    _c(\"h2\", { staticClass: \"subtitle is-5 mb-4\" }, [\n      _vm._v(\n        \" \" +\n          _vm._s(_vm.$t(\"Components.Invoices.InvoiceEditor.Title_Totals\")) +\n          \" \"\n      ),\n    ]),\n    _c(\"table\", { staticClass: \"table is-fullwidth is-narrow\" }, [\n      _c(\n        \"tbody\",\n        [\n          !_vm.invoice.InvoiceAddress.NoTax\n            ? _c(\"tr\", [\n                _c(\"td\", [\n                  _vm._v(\n                    _vm._s(\n                      _vm.$t(\n                        \"Components.Invoices.InvoiceEditor.Label_TotalExclTax\"\n                      )\n                    )\n                  ),\n                ]),\n                _c(\"td\", { staticClass: \"has-text-right\" }, [\n                  _vm._v(\n                    \" \" +\n                      _vm._s(\n                        _vm._f(\"toCurrency\")(\n                          _vm.invoice.TotalExclTax,\n                          _vm.locationLanguageCulture,\n                          _vm.currencyIso\n                        )\n                      ) +\n                      \" \"\n                  ),\n                ]),\n              ])\n            : _vm._e(),\n          _vm._l(_vm.taxLines, function (tax, index) {\n            return _c(\"tr\", { key: index, staticClass: \"has-text-grey\" }, [\n              _c(\"td\", [\n                _vm._v(\n                  \" \" +\n                    _vm._s(\n                      _vm.$t(\"Components.Invoices.InvoiceEditor.Label_Tax\")\n                    ) +\n                    \" \" +\n                    _vm._s(tax.Percentage) +\n                    \"% \"\n                ),\n              ]),\n              _c(\"td\", { staticClass: \"has-text-right\" }, [\n                _vm._v(\n                  \" \" +\n                    _vm._s(\n                      _vm._f(\"toCurrency\")(\n                        tax.Total,\n                        _vm.locationLanguageCulture,\n                        _vm.currencyIso\n                      )\n                    ) +\n                    \" \"\n                ),\n              ]),\n            ])\n          }),\n          _c(\"tr\", { staticClass: \"has-text-weight-bold\" }, [\n            _c(\"td\", [\n              _vm._v(\n                \" \" +\n                  _vm._s(\n                    _vm.invoice.InvoiceAddress.NoTax\n                      ? _vm.$t(\"Components.Invoices.InvoiceEditor.Label_Total\")\n                      : _vm.$t(\n                          \"Components.Invoices.InvoiceEditor.Label_TotalInclTax\"\n                        )\n                  ) +\n                  \" \"\n              ),\n            ]),\n            _c(\"td\", { staticClass: \"has-text-right\" }, [\n              _vm._v(\n                \" \" +\n                  _vm._s(\n                    _vm._f(\"toCurrency\")(\n                      _vm.invoice.TotalInclTax,\n                      _vm.locationLanguageCulture,\n                      _vm.currencyIso\n                    )\n                  ) +\n                  \" \"\n              ),\n            ]),\n          ]),\n        ],\n        2\n      ),\n    ]),\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./InvoiceEditorTotals.vue?vue&type=template&id=19f15870\"\nimport script from \"./InvoiceEditorTotals.vue?vue&type=script&lang=js\"\nexport * from \"./InvoiceEditorTotals.vue?vue&type=script&lang=js\"\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\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('19f15870')) {\n      api.createRecord('19f15870', component.options)\n    } else {\n      api.reload('19f15870', component.options)\n    }\n    module.hot.accept(\"./InvoiceEditorTotals.vue?vue&type=template&id=19f15870\", function () {\n      api.rerender('19f15870', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Invoices/Editor/InvoiceEditorTotals.vue\"\nexport default component.exports","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoiceEditorTotals.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoiceEditorTotals.vue?vue&type=script&lang=js\"","export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"381a4baa-vue-loader-template\\\"}!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoiceEditorTotals.vue?vue&type=template&id=19f15870\""],"sourceRoot":""}