{"version":3,"sources":["webpack:///src/components/Dashboards/TotalExpiredInvoices.vue","webpack:///./src/components/Dashboards/TotalExpiredInvoices.vue","webpack:///./src/components/Dashboards/TotalExpiredInvoices.vue?3901","webpack:///./src/components/Dashboards/TotalExpiredInvoices.vue?dc7f","webpack:///./src/components/Dashboards/TotalExpiredInvoices.vue?166a"],"names":["AnimatedNumber","components","props","companyId","type","Number","default","locationId","data","isLoading","totalInvoices","created","getTotalExpiredInvoices","methods","_this","invoiceProvider","then","response","status","finally","goToExpiredInvoices","$router","push","name","render","_vm","_c","_self","staticClass","on","click","staticStyle","hover","attrs","value","speed","_v","_s","$t","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;AAEA,IAAAA,cAAA,YAAAA,eAAA;EAAA;AAAA;AAEe;EACfC,UAAA;IACA,mBAAAD;EACA;EAEAE,KAAA;IACAC,SAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAC,UAAA;MACAH,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;EACA;EAEAE,IAAA,WAAAA,KAAA;IACA;MACAC,SAAA;MACAC,aAAA;IACA;EACA;EAEAC,OAAA,WAAAA,QAAA;IACA,KAAAC,uBAAA;EACA;EAEAC,OAAA;IACAD,uBAAA,WAAAA,wBAAA;MAAA,IAAAE,KAAA;MACA,KAAAL,SAAA;MAEAM,kEAAA,CAAAF,OAAA,CACAD,uBAAA,MAAAL,UAAA,OAAAJ,SAAA,EACAa,IAAA,WAAAC,QAAA;QACA,IAAAA,QAAA,CAAAC,MAAA;UACAJ,KAAA,CAAAJ,aAAA,GAAAO,QAAA,CAAAT,IAAA;QACA;MACA,GACAW,OAAA;QACAL,KAAA,CAAAL,SAAA;MACA;IACA;IAEAW,mBAAA,WAAAA,oBAAA;MACA,KAAAC,OAAA,CAAAC,IAAA;QACAC,IAAA;MACA;IACA;EACA;AACA,CAAC,E;;;;;;;;;;;;;ACjED;AAAA;AAAA,IAAIC,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38c7132c95265301a532","sourcesContent":["<template>\n  <div @click=\"goToExpiredInvoices\" class=\"tile is-parent\">\n    <article class=\"tile is-child box has-text-centered\">\n      <p class=\"title is-size-1\" style=\"hover: hand\">\n        <animated-number :value=\"totalInvoices\" :speed=\"7\" />\n      </p>\n      <p class=\"subtitle is-size-6\">{{$t('Components.Dashboards.TotalExpiredInvoices.Subtitle_ExpiredInvoices')}}</p>\n    </article>\n  </div>\n</template>\n\n<script>\nimport invoiceProvider from \"@/providers/invoice\";\n\nconst AnimatedNumber = () => import(\"@/components/UI/AnimatedNumber\");\n\nexport default {\n  components: {\n    \"animated-number\": AnimatedNumber\n  },\n\n  props: {\n    companyId: {\n      type: Number,\n      default: 0\n    },\n    locationId: {\n      type: Number,\n      default: 0\n    }\n  },\n\n  data() {\n    return {\n      isLoading: false,\n      totalInvoices: 0\n    };\n  },\n\n  created() {\n    this.getTotalExpiredInvoices();\n  },\n\n  methods: {\n    getTotalExpiredInvoices() {\n      this.isLoading = true;\n\n      invoiceProvider.methods\n        .getTotalExpiredInvoices(this.locationId, this.companyId)\n        .then(response => {\n          if (response.status === 200) {\n            this.totalInvoices = response.data;\n          }\n        })\n        .finally(() => {\n          this.isLoading = false;\n        });\n    },\n\n    goToExpiredInvoices() {\n      this.$router.push({\n        name: `expired-invoices-list`\n      });\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: \"tile is-parent\", on: { click: _vm.goToExpiredInvoices } },\n    [\n      _c(\"article\", { staticClass: \"tile is-child box has-text-centered\" }, [\n        _c(\n          \"p\",\n          { staticClass: \"title is-size-1\", staticStyle: { hover: \"hand\" } },\n          [\n            _c(\"animated-number\", {\n              attrs: { value: _vm.totalInvoices, speed: 7 },\n            }),\n          ],\n          1\n        ),\n        _c(\"p\", { staticClass: \"subtitle is-size-6\" }, [\n          _vm._v(\n            _vm._s(\n              _vm.$t(\n                \"Components.Dashboards.TotalExpiredInvoices.Subtitle_ExpiredInvoices\"\n              )\n            )\n          ),\n        ]),\n      ]),\n    ]\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./TotalExpiredInvoices.vue?vue&type=template&id=f87848d2\"\nimport script from \"./TotalExpiredInvoices.vue?vue&type=script&lang=js\"\nexport * from \"./TotalExpiredInvoices.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('f87848d2')) {\n      api.createRecord('f87848d2', component.options)\n    } else {\n      api.reload('f87848d2', component.options)\n    }\n    module.hot.accept(\"./TotalExpiredInvoices.vue?vue&type=template&id=f87848d2\", function () {\n      api.rerender('f87848d2', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Dashboards/TotalExpiredInvoices.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!./TotalExpiredInvoices.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!./TotalExpiredInvoices.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!./TotalExpiredInvoices.vue?vue&type=template&id=f87848d2\""],"sourceRoot":""}