{"version":3,"sources":["webpack:///./src/components/Dashboards/TotalExpiredInvoices.vue","webpack:///src/components/Dashboards/TotalExpiredInvoices.vue","webpack:///./src/components/Dashboards/TotalExpiredInvoices.vue?b292","webpack:///./src/components/Dashboards/TotalExpiredInvoices.vue?3901"],"names":["render","_vm","this","_c","_self","staticClass","on","goToExpiredInvoices","staticStyle","attrs","totalInvoices","_v","_s","$t","staticRenderFns","AnimatedNumber","components","props","companyId","type","Number","default","locationId","data","isLoading","created","getTotalExpiredInvoices","methods","_this","invoiceProvider","then","response","status","finally","$router","push","name","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,iBAAiBC,GAAG,CAAC,MAAQL,EAAIM,sBAAsB,CAACJ,EAAG,UAAU,CAACE,YAAY,uCAAuC,CAACF,EAAG,IAAI,CAACE,YAAY,kBAAkBG,YAAY,CAAC,MAAQ,SAAS,CAACL,EAAG,kBAAkB,CAACM,MAAM,CAAC,MAAQR,EAAIS,cAAc,MAAQ,MAAM,GAAGP,EAAG,IAAI,CAACE,YAAY,sBAAsB,CAACJ,EAAIU,GAAGV,EAAIW,GAAGX,EAAIY,GAAG,gFAE5ZC,EAAkB,G,gECYtBC,EAAA,mEAEe,GACfC,WAAA,CACA,kBAAAD,GAGAE,MAAA,CACAC,UAAA,CACAC,KAAAC,OACAC,QAAA,GAEAC,WAAA,CACAH,KAAAC,OACAC,QAAA,IAIAE,KAAA,WACA,OACAC,WAAA,EACAd,cAAA,IAIAe,QAAA,WACA,KAAAC,2BAGAC,QAAA,CACAD,wBAAA,eAAAE,EAAA,KACA,KAAAJ,WAAA,EAEAK,OAAAF,QACAD,wBAAA,KAAAJ,WAAA,KAAAJ,WACAY,MAAA,SAAAC,GACA,MAAAA,EAAAC,SACAJ,EAAAlB,cAAAqB,EAAAR,SAGAU,SAAA,WACAL,EAAAJ,WAAA,MAIAjB,oBAAA,WACA,KAAA2B,QAAAC,KAAA,CACAC,KAAA,6BC7D4W,I,YCOxWC,EAAY,eACd,EACArC,EACAc,GACA,EACA,KACA,KACA,MAIa,aAAAuB,E","file":"js/chunk-2d21e92c.js?id=b5ade4410a5fb7c5a5f7","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"tile is-parent\",on:{\"click\":_vm.goToExpiredInvoices}},[_c('article',{staticClass:\"tile is-child box has-text-centered\"},[_c('p',{staticClass:\"title is-size-1\",staticStyle:{\"hover\":\"hand\"}},[_c('animated-number',{attrs:{\"value\":_vm.totalInvoices,\"speed\":7}})],1),_c('p',{staticClass:\"subtitle is-size-6\"},[_vm._v(_vm._s(_vm.$t('Components.Dashboards.TotalExpiredInvoices.Subtitle_ExpiredInvoices')))])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<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","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!./TotalExpiredInvoices.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!./TotalExpiredInvoices.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TotalExpiredInvoices.vue?vue&type=template&id=55a39fd0\"\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\nexport default component.exports"],"sourceRoot":""}