{"version":3,"sources":["webpack:///./src/components/Invoices/Editor/InvoiceEditorDetails.vue","webpack:///src/components/Invoices/Editor/InvoiceEditorDetails.vue","webpack:///./src/components/Invoices/Editor/InvoiceEditorDetails.vue?b317","webpack:///./src/components/Invoices/Editor/InvoiceEditorDetails.vue?bb02"],"names":["render","_vm","this","_c","_self","staticClass","_v","_s","$t","attrs","invoice","Reference","on","$event","$emit","IssueDate","onIssueDate","DueDate","onDueDate","CurrencyId","currencies","onCurrency","_l","languages","l","key","LanguageId","class","Language","onLanguage","staticRenderFns","props","type","Object","required","Array","default","computed","_objectSpread","mapGetters","methods","date","value","Number","match","find","c","Id","CurrencyIso","Code","language","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,KAAK,CAACE,YAAY,sBAAsB,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,oDAAoD,OAAOL,EAAG,sBAAsB,CAACM,MAAM,CAAC,MAAQR,EAAIO,GAAG,qDAAqD,MAAQP,EAAIS,QAAQC,UAAU,cAAgB,YAAYC,GAAG,CAAC,MAAQ,SAASC,GAAQZ,EAAIS,QAAQC,UAAYE,GAAQ,KAAO,SAASA,GAAQ,OAAOZ,EAAIa,MAAM,YAAYX,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,QAAQ,CAACE,YAAY,SAAS,CAACJ,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,GAAG,2DAA2DL,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,qBAAqB,CAACM,MAAM,CAAC,MAAQR,EAAIS,QAAQK,UAAU,qBAAsB,EAAK,eAAgB,EAAM,cAAgB,YAAYH,GAAG,CAAC,MAAQX,EAAIe,YAAY,YAAcf,EAAIe,gBAAgB,KAAKb,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aAAa,CAACzB,EAAG,OAAO,CAACF,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,GAAG,0BAA4BgB,EAAEE,uBAAsB,UAAU,IAEp3EI,EAAkB,G,4EC8FP,GACfC,MAAA,CACArB,QAAA,CACAsB,KAAAC,OACAC,UAAA,GAEAd,WAAA,CACAY,KAAAG,MACAC,QAAA,WACA,YAKAC,SAAAC,eAAA,GACAC,eAAA,gCAGAC,QAAA,CACAxB,YAAA,SAAAyB,GACA,KAAA/B,QAAAK,UAAA0B,EACA,KAAA3B,MAAA,SAGAI,UAAA,SAAAuB,GACA,KAAA/B,QAAAO,QAAAwB,EACA,KAAA3B,MAAA,SAGAO,WAAA,SAAAqB,GACA,KAAAhC,QAAAS,WAAAwB,OAAAD,GACA,IAAAE,EAAA,KAAAxB,WAAAyB,MAAA,SAAAC,GAAA,OAAAA,EAAAC,KAAAJ,OAAAD,MACAE,IACA,KAAAlC,QAAAsC,YAAAJ,EAAAK,MAEA,KAAAnC,MAAA,SAGAe,WAAA,SAAAqB,GACA,KAAAxC,QAAAkB,SAAAsB,EACA,KAAApC,MAAA,WCxI2X,I,YCOvXqC,EAAY,eACd,EACAnD,EACA8B,GACA,EACA,KACA,KACA,MAIa,aAAAqB,E","file":"js/chunk-2d215fac.js?id=6631a40aeb5cdbb94e57","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"box\"},[_c('h2',{staticClass:\"subtitle is-5 mb-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Title_Details'))+\" \")]),_c('ui-base-input-field',{attrs:{\"label\":_vm.$t('Components.Invoices.InvoiceEditor.Label_Reference'),\"value\":_vm.invoice.Reference,\"inputCssClass\":\"is-small\"},on:{\"input\":function($event){_vm.invoice.Reference = $event},\"blur\":function($event){return _vm.$emit('save')}}}),_c('div',{staticClass:\"field is-horizontal\"},[_c('div',{staticClass:\"field-label is-small\"},[_c('label',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Label_IssueDate')))])]),_c('div',{staticClass:\"field-body\"},[_c('ui-base-date-field',{attrs:{\"value\":_vm.invoice.IssueDate,\"openCalendarInModal\":true,\"labelForInput\":false,\"inputCssClass\":\"is-small\"},on:{\"input\":_vm.onIssueDate,\"updateDates\":_vm.onIssueDate}})],1)]),_c('div',{staticClass:\"field is-horizontal\"},[_c('div',{staticClass:\"field-label is-small\"},[_c('label',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Label_DueDate')))])]),_c('div',{staticClass:\"field-body\"},[_c('ui-base-date-field',{attrs:{\"value\":_vm.invoice.DueDate,\"openCalendarInModal\":true,\"labelForInput\":false,\"inputCssClass\":\"is-small\"},on:{\"input\":_vm.onDueDate,\"updateDates\":_vm.onDueDate}})],1)]),_c('div',{staticClass:\"field is-horizontal\"},[_c('div',{staticClass:\"field-label is-small\"},[_c('label',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Label_Currency')))])]),_c('div',{staticClass:\"field-body\"},[_c('ui-select',{attrs:{\"value\":_vm.invoice.CurrencyId,\"options\":_vm.currencies,\"objectValueField\":\"Id\",\"objectTextField\":\"Code\",\"inputCssClass\":\"is-small\"},on:{\"input\":_vm.onCurrency}})],1)]),_c('div',{staticClass:\"field is-horizontal\"},[_c('div',{staticClass:\"field-label is-small\"},[_c('label',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Label_Language')))])]),_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"tabs is-toggle is-small\"},[_c('ul',_vm._l((_vm.languages),function(l){return _c('li',{key:l.LanguageId,class:{ 'is-active': _vm.invoice.Language === l.Language }},[_c('a',{on:{\"click\":function($event){return _vm.onLanguage(l.Language)}}},[_c('span',[_vm._v(_vm._s(_vm.$t('LanguageLabels.Language' + l.LanguageId)))])])])}),0)])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<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","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../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/thread-loader/dist/cjs.js!../../../../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\"","import { render, staticRenderFns } from \"./InvoiceEditorDetails.vue?vue&type=template&id=5f2aeaf6\"\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\nexport default component.exports"],"sourceRoot":""}