{"version":3,"sources":["webpack:///src/components/Invoices/Editor/InvoiceEditorDetails.vue","webpack:///./src/components/Invoices/Editor/InvoiceEditorDetails.vue","webpack:///./src/components/Invoices/Editor/InvoiceEditorDetails.vue?bb02","webpack:///./src/components/Invoices/Editor/InvoiceEditorDetails.vue?306e","webpack:///./src/components/Invoices/Editor/InvoiceEditorDetails.vue?9816"],"names":["props","invoice","type","Object","required","currencies","Array","default","computed","_objectSpread","mapGetters","methods","onIssueDate","date","IssueDate","$emit","onDueDate","DueDate","onCurrency","value","CurrencyId","Number","match","find","c","Id","CurrencyIso","Code","onLanguage","language","Language","render","_vm","_c","_self","staticClass","_v","_s","$t","attrs","label","Reference","inputCssClass","on","input","$event","blur","openCalendarInModal","labelForInput","updateDates","options","objectValueField","objectTextField","_l","languages","l","key","LanguageId","class","click","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FA;AAEe;EACfA,KAAA;IACAC,OAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,QAAA;IACA;IACAC,UAAA;MACAH,IAAA,EAAAI,KAAA;MACAC,OAAA,WAAAA,SAAA;QACA;MACA;IACA;EACA;EAEAC,QAAA,EAAAC,iIAAA,KACAC,+DAAA,iCACA;EAEAC,OAAA;IACAC,WAAA,WAAAA,YAAAC,IAAA;MACA,KAAAZ,OAAA,CAAAa,SAAA,GAAAD,IAAA;MACA,KAAAE,KAAA;IACA;IAEAC,SAAA,WAAAA,UAAAH,IAAA;MACA,KAAAZ,OAAA,CAAAgB,OAAA,GAAAJ,IAAA;MACA,KAAAE,KAAA;IACA;IAEAG,UAAA,WAAAA,WAAAC,KAAA;MACA,KAAAlB,OAAA,CAAAmB,UAAA,GAAAC,MAAA,CAAAF,KAAA;MACA,IAAAG,KAAA,QAAAjB,UAAA,CAAAkB,IAAA,WAAAC,CAAA;QAAA,OAAAA,CAAA,CAAAC,EAAA,KAAAJ,MAAA,CAAAF,KAAA;MAAA;MACA,IAAAG,KAAA;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;;ACtCf;AAAwT,CAAgB,sVAAG,EAAC,C;;;;;;;;;;;;;ACA5U;AAAA;AAAA;AAAA;AAAA","file":"js/362.js?id=126c1ad6fc4ff8be3bb8","sourcesContent":["<template>\n  <div class=\"box\">\n    <h2 class=\"subtitle is-5 mb-4\">\n      {{ $t('Components.Invoices.InvoiceEditor.Title_Details') }}\n    </h2>\n\n    <ui-base-input-field\n      :label=\"$t('Components.Invoices.InvoiceEditor.Label_Reference')\"\n      :value=\"invoice.Reference\"\n      inputCssClass=\"is-small\"\n      @input=\"invoice.Reference = $event\"\n      @blur=\"$emit('save')\"\n    />\n\n    <div class=\"field is-horizontal\">\n      <div class=\"field-label is-small\">\n        <label class=\"label\">{{\n          $t('Components.Invoices.InvoiceEditor.Label_IssueDate')\n        }}</label>\n      </div>\n      <div class=\"field-body\">\n        <ui-base-date-field\n          :value=\"invoice.IssueDate\"\n          :openCalendarInModal=\"true\"\n          :labelForInput=\"false\"\n          inputCssClass=\"is-small\"\n          @input=\"onIssueDate\"\n          @updateDates=\"onIssueDate\"\n        />\n      </div>\n    </div>\n\n    <div class=\"field is-horizontal\">\n      <div class=\"field-label is-small\">\n        <label class=\"label\">{{\n          $t('Components.Invoices.InvoiceEditor.Label_DueDate')\n        }}</label>\n      </div>\n      <div class=\"field-body\">\n        <ui-base-date-field\n          :value=\"invoice.DueDate\"\n          :openCalendarInModal=\"true\"\n          :labelForInput=\"false\"\n          inputCssClass=\"is-small\"\n          @input=\"onDueDate\"\n          @updateDates=\"onDueDate\"\n        />\n      </div>\n    </div>\n\n    <div class=\"field is-horizontal\">\n      <div class=\"field-label is-small\">\n        <label class=\"label\">{{\n          $t('Components.Invoices.InvoiceEditor.Label_Currency')\n        }}</label>\n      </div>\n      <div class=\"field-body\">\n        <ui-select\n          :value=\"invoice.CurrencyId\"\n          :options=\"currencies\"\n          objectValueField=\"Id\"\n          objectTextField=\"Code\"\n          inputCssClass=\"is-small\"\n          @input=\"onCurrency\"\n        />\n      </div>\n    </div>\n\n    <div class=\"field is-horizontal\">\n      <div class=\"field-label is-small\">\n        <label class=\"label\">{{\n          $t('Components.Invoices.InvoiceEditor.Label_Language')\n        }}</label>\n      </div>\n      <div class=\"field-body\">\n        <div class=\"tabs is-toggle is-small\">\n          <ul>\n            <li\n              v-for=\"l in languages\"\n              :key=\"l.LanguageId\"\n              :class=\"{ 'is-active': invoice.Language === l.Language }\"\n            >\n              <a @click=\"onLanguage(l.Language)\">\n                <span>{{ $t('LanguageLabels.Language' + l.LanguageId) }}</span>\n              </a>\n            </li>\n          </ul>\n        </div>\n      </div>\n    </div>\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    currencies: {\n      type: Array,\n      default: function () {\n        return []\n      },\n    },\n  },\n\n  computed: {\n    ...mapGetters('locationStore', ['languages']),\n  },\n\n  methods: {\n    onIssueDate(date) {\n      this.invoice.IssueDate = date\n      this.$emit('save')\n    },\n\n    onDueDate(date) {\n      this.invoice.DueDate = date\n      this.$emit('save')\n    },\n\n    onCurrency(value) {\n      this.invoice.CurrencyId = Number(value)\n      const match = this.currencies.find((c) => c.Id === Number(value))\n      if (match) {\n        this.invoice.CurrencyIso = match.Code\n      }\n      this.$emit('save')\n    },\n\n    onLanguage(language) {\n      this.invoice.Language = language\n      this.$emit('save')\n    },\n  },\n}\n</script>\n","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\n    \"div\",\n    { staticClass: \"box\" },\n    [\n      _c(\"h2\", { staticClass: \"subtitle is-5 mb-4\" }, [\n        _vm._v(\n          \" \" +\n            _vm._s(_vm.$t(\"Components.Invoices.InvoiceEditor.Title_Details\")) +\n            \" \"\n        ),\n      ]),\n      _c(\"ui-base-input-field\", {\n        attrs: {\n          label: _vm.$t(\"Components.Invoices.InvoiceEditor.Label_Reference\"),\n          value: _vm.invoice.Reference,\n          inputCssClass: \"is-small\",\n        },\n        on: {\n          input: function ($event) {\n            _vm.invoice.Reference = $event\n          },\n          blur: function ($event) {\n            return _vm.$emit(\"save\")\n          },\n        },\n      }),\n      _c(\"div\", { staticClass: \"field is-horizontal\" }, [\n        _c(\"div\", { staticClass: \"field-label is-small\" }, [\n          _c(\"label\", { staticClass: \"label\" }, [\n            _vm._v(\n              _vm._s(\n                _vm.$t(\"Components.Invoices.InvoiceEditor.Label_IssueDate\")\n              )\n            ),\n          ]),\n        ]),\n        _c(\n          \"div\",\n          { staticClass: \"field-body\" },\n          [\n            _c(\"ui-base-date-field\", {\n              attrs: {\n                value: _vm.invoice.IssueDate,\n                openCalendarInModal: true,\n                labelForInput: false,\n                inputCssClass: \"is-small\",\n              },\n              on: { input: _vm.onIssueDate, updateDates: _vm.onIssueDate },\n            }),\n          ],\n          1\n        ),\n      ]),\n      _c(\"div\", { staticClass: \"field is-horizontal\" }, [\n        _c(\"div\", { staticClass: \"field-label is-small\" }, [\n          _c(\"label\", { staticClass: \"label\" }, [\n            _vm._v(\n              _vm._s(_vm.$t(\"Components.Invoices.InvoiceEditor.Label_DueDate\"))\n            ),\n          ]),\n        ]),\n        _c(\n          \"div\",\n          { staticClass: \"field-body\" },\n          [\n            _c(\"ui-base-date-field\", {\n              attrs: {\n                value: _vm.invoice.DueDate,\n                openCalendarInModal: true,\n                labelForInput: false,\n                inputCssClass: \"is-small\",\n              },\n              on: { input: _vm.onDueDate, updateDates: _vm.onDueDate },\n            }),\n          ],\n          1\n        ),\n      ]),\n      _c(\"div\", { staticClass: \"field is-horizontal\" }, [\n        _c(\"div\", { staticClass: \"field-label is-small\" }, [\n          _c(\"label\", { staticClass: \"label\" }, [\n            _vm._v(\n              _vm._s(_vm.$t(\"Components.Invoices.InvoiceEditor.Label_Currency\"))\n            ),\n          ]),\n        ]),\n        _c(\n          \"div\",\n          { staticClass: \"field-body\" },\n          [\n            _c(\"ui-select\", {\n              attrs: {\n                value: _vm.invoice.CurrencyId,\n                options: _vm.currencies,\n                objectValueField: \"Id\",\n                objectTextField: \"Code\",\n                inputCssClass: \"is-small\",\n              },\n              on: { input: _vm.onCurrency },\n            }),\n          ],\n          1\n        ),\n      ]),\n      _c(\"div\", { staticClass: \"field is-horizontal\" }, [\n        _c(\"div\", { staticClass: \"field-label is-small\" }, [\n          _c(\"label\", { staticClass: \"label\" }, [\n            _vm._v(\n              _vm._s(_vm.$t(\"Components.Invoices.InvoiceEditor.Label_Language\"))\n            ),\n          ]),\n        ]),\n        _c(\"div\", { staticClass: \"field-body\" }, [\n          _c(\"div\", { staticClass: \"tabs is-toggle is-small\" }, [\n            _c(\n              \"ul\",\n              _vm._l(_vm.languages, function (l) {\n                return _c(\n                  \"li\",\n                  {\n                    key: l.LanguageId,\n                    class: { \"is-active\": _vm.invoice.Language === l.Language },\n                  },\n                  [\n                    _c(\n                      \"a\",\n                      {\n                        on: {\n                          click: function ($event) {\n                            return _vm.onLanguage(l.Language)\n                          },\n                        },\n                      },\n                      [\n                        _c(\"span\", [\n                          _vm._v(\n                            _vm._s(\n                              _vm.$t(\"LanguageLabels.Language\" + l.LanguageId)\n                            )\n                          ),\n                        ]),\n                      ]\n                    ),\n                  ]\n                )\n              }),\n              0\n            ),\n          ]),\n        ]),\n      ]),\n    ],\n    1\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./InvoiceEditorDetails.vue?vue&type=template&id=b7d1bd5e\"\nimport script from \"./InvoiceEditorDetails.vue?vue&type=script&lang=js\"\nexport * from \"./InvoiceEditorDetails.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('b7d1bd5e')) {\n      api.createRecord('b7d1bd5e', component.options)\n    } else {\n      api.reload('b7d1bd5e', component.options)\n    }\n    module.hot.accept(\"./InvoiceEditorDetails.vue?vue&type=template&id=b7d1bd5e\", function () {\n      api.rerender('b7d1bd5e', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Invoices/Editor/InvoiceEditorDetails.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!./InvoiceEditorDetails.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!./InvoiceEditorDetails.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!./InvoiceEditorDetails.vue?vue&type=template&id=b7d1bd5e\""],"sourceRoot":""}