{"version":3,"sources":["webpack:///./src/components/Invoices/Editor/InvoiceEditorLines.vue","webpack:///src/components/Invoices/Editor/InvoiceEditorLines.vue","webpack:///./src/components/Invoices/Editor/InvoiceEditorLines.vue?b974","webpack:///./src/components/Invoices/Editor/InvoiceEditorLines.vue?a975","webpack:///./src/components/Invoices/Editor/InvoiceEditorLines.vue?3f3e"],"names":["render","_vm","this","_c","_self","staticClass","_v","_s","$t","lines","length","_e","attrs","on","$event","$emit","_l","line","index","key","_uid","currencyIso","taxRateOptions","staticRenderFns","InvoiceEditorLineRow","components","draggable","props","type","Array","required","String","default","data","component"],"mappings":"yHAAA,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,kDAAkD,OAAQP,EAAIQ,MAAMC,OAAQP,EAAG,MAAM,CAACE,YAAY,mEAAmE,CAACF,EAAG,MAAM,CAACE,YAAY,kCAAkC,CAACJ,EAAIK,GAAG,OAAOH,EAAG,MAAM,CAACE,YAAY,eAAe,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,sDAAsD,OAAOL,EAAG,MAAM,CAACE,YAAY,UAAU,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,8DAA8D,OAAOL,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,4DAA4D,OAAOL,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,sDAAsD,OAAOL,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,wDAAwD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B,CAACF,EAAG,oBAAoB,CAACS,MAAM,CAAC,KAAO,CAAC,MAAO,gBAAgB,GAAGT,EAAG,OAAO,CAACF,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,GAAG,iEAAiE,IAE9hFe,EAAkB,G,qDCyEtBC,EAAA,kBACA,iDAEe,GACfC,WAAA,CACAC,cACAF,wBAGAG,MAAA,CACAlB,MAAA,CACAmB,KAAAC,MACAC,UAAA,GAEAT,YAAA,CACAO,KAAAG,OACAC,QAAA,QAIAC,KAAA,WACA,OACAX,eAAA,YCjGyX,I,wBCQrXY,EAAY,eACd,EACAlC,EACAuB,GACA,EACA,KACA,WACA,MAIa,aAAAW,E,oECnBf","file":"js/chunk-6e3db874.js?id=0fb7bace83404ff6adb6","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_Lines'))+\" \")]),(_vm.lines.length)?_c('div',{staticClass:\"columns is-mobile is-gapless lineHeader is-size-7 has-text-grey\"},[_c('div',{staticClass:\"column is-narrow handle-spacer\"},[_vm._v(\" \")]),_c('div',{staticClass:\"column is-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.TableHeader_Qty'))+\" \")]),_c('div',{staticClass:\"column\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.TableHeader_Description'))+\" \")]),_c('div',{staticClass:\"column is-2 has-text-right\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.TableHeader_UnitPrice'))+\" \")]),_c('div',{staticClass:\"column is-2 has-text-right\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.TableHeader_Tax'))+\" \")]),_c('div',{staticClass:\"column is-2 has-text-right\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.TableHeader_Total'))+\" \")]),_c('div',{staticClass:\"column is-narrow action-spacer\"},[_vm._v(\" \")])]):_vm._e(),_c('draggable',{attrs:{\"list\":_vm.lines,\"handle\":\".handle\",\"animation\":150,\"ghost-class\":\"ghost\"},on:{\"end\":function($event){return _vm.$emit('reorder')}}},_vm._l((_vm.lines),function(line,index){return _c('InvoiceEditorLineRow',{key:line._uid,attrs:{\"line\":line,\"currencyIso\":_vm.currencyIso,\"taxRateOptions\":_vm.taxRateOptions},on:{\"edit\":function($event){return _vm.$emit('editLine', index)},\"cancel\":function($event){return _vm.$emit('cancelLine', index)},\"save\":function($event){return _vm.$emit('saveLine', index)},\"discard\":function($event){return _vm.$emit('discardLine', index)}}})}),1),(!_vm.lines.length)?_c('div',{staticClass:\"has-text-grey has-text-centered py-5\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Text_NoLines'))+\" \")]):_vm._e(),_c('div',{staticClass:\"buttons mt-4\"},[_c('a',{staticClass:\"button is-small is-link is-light\",on:{\"click\":function($event){return _vm.$emit('addLine')}}},[_c('span',{staticClass:\"icon is-small\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'plus']}})],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Button_AddLine')))])]),_c('a',{staticClass:\"button is-small is-light\",on:{\"click\":function($event){return _vm.$emit('addTextLine')}}},[_c('span',{staticClass:\"icon is-small\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'file-alt']}})],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Button_AddTextLine')))])])])],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_Lines') }}\n    </h2>\n\n    <!-- Column headers -->\n    <div v-if=\"lines.length\" class=\"columns is-mobile is-gapless lineHeader is-size-7 has-text-grey\">\n      <div class=\"column is-narrow handle-spacer\">&nbsp;</div>\n      <div class=\"column is-2\">\n        {{ $t('Components.Invoices.InvoiceEditor.TableHeader_Qty') }}\n      </div>\n      <div class=\"column\">\n        {{ $t('Components.Invoices.InvoiceEditor.TableHeader_Description') }}\n      </div>\n      <div class=\"column is-2 has-text-right\">\n        {{ $t('Components.Invoices.InvoiceEditor.TableHeader_UnitPrice') }}\n      </div>\n      <div class=\"column is-2 has-text-right\">\n        {{ $t('Components.Invoices.InvoiceEditor.TableHeader_Tax') }}\n      </div>\n      <div class=\"column is-2 has-text-right\">\n        {{ $t('Components.Invoices.InvoiceEditor.TableHeader_Total') }}\n      </div>\n      <div class=\"column is-narrow action-spacer\">&nbsp;</div>\n    </div>\n\n    <draggable\n      :list=\"lines\"\n      handle=\".handle\"\n      :animation=\"150\"\n      ghost-class=\"ghost\"\n      @end=\"$emit('reorder')\"\n    >\n      <InvoiceEditorLineRow\n        v-for=\"(line, index) in lines\"\n        :key=\"line._uid\"\n        :line=\"line\"\n        :currencyIso=\"currencyIso\"\n        :taxRateOptions=\"taxRateOptions\"\n        @edit=\"$emit('editLine', index)\"\n        @cancel=\"$emit('cancelLine', index)\"\n        @save=\"$emit('saveLine', index)\"\n        @discard=\"$emit('discardLine', index)\"\n      />\n    </draggable>\n\n    <div v-if=\"!lines.length\" class=\"has-text-grey has-text-centered py-5\">\n      {{ $t('Components.Invoices.InvoiceEditor.Text_NoLines') }}\n    </div>\n\n    <div class=\"buttons mt-4\">\n      <a class=\"button is-small is-link is-light\" @click=\"$emit('addLine')\">\n        <span class=\"icon is-small\">\n          <font-awesome-icon :icon=\"['fas', 'plus']\" />\n        </span>\n        <span>{{\n          $t('Components.Invoices.InvoiceEditor.Button_AddLine')\n        }}</span>\n      </a>\n      <a class=\"button is-small is-light\" @click=\"$emit('addTextLine')\">\n        <span class=\"icon is-small\">\n          <font-awesome-icon :icon=\"['fas', 'file-alt']\" />\n        </span>\n        <span>{{\n          $t('Components.Invoices.InvoiceEditor.Button_AddTextLine')\n        }}</span>\n      </a>\n    </div>\n  </div>\n</template>\n\n<script>\nimport draggable from 'vuedraggable'\n\nconst InvoiceEditorLineRow = () =>\n  import('@/components/Invoices/Editor/InvoiceEditorLineRow')\n\nexport default {\n  components: {\n    draggable,\n    InvoiceEditorLineRow,\n  },\n\n  props: {\n    lines: {\n      type: Array,\n      required: true,\n    },\n    currencyIso: {\n      type: String,\n      default: 'EUR',\n    },\n  },\n\n  data() {\n    return {\n      taxRateOptions: [0, 9, 21],\n    }\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.lineHeader {\n  padding: 0 0.5rem 0.25rem;\n  border-bottom: 1px solid $grey-lighter;\n}\n.handle-spacer {\n  width: 2rem;\n}\n.action-spacer {\n  width: 4.5rem;\n}\n.ghost {\n  opacity: 0.5;\n  background: $white-ter;\n}\n</style>\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!./InvoiceEditorLines.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!./InvoiceEditorLines.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./InvoiceEditorLines.vue?vue&type=template&id=7aa608d4&scoped=true\"\nimport script from \"./InvoiceEditorLines.vue?vue&type=script&lang=js\"\nexport * from \"./InvoiceEditorLines.vue?vue&type=script&lang=js\"\nimport style0 from \"./InvoiceEditorLines.vue?vue&type=style&index=0&id=7aa608d4&prod&lang=scss&scoped=true\"\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  \"7aa608d4\",\n  null\n  \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoiceEditorLines.vue?vue&type=style&index=0&id=7aa608d4&prod&lang=scss&scoped=true\""],"sourceRoot":""}