{"version":3,"sources":["webpack:///src/views/Invoices/Dashboard.vue","webpack:///./src/views/Invoices/Dashboard.vue","webpack:///./src/views/Invoices/Dashboard.vue?43a6","webpack:///./src/views/Invoices/Dashboard.vue?35df","webpack:///./src/views/Invoices/Dashboard.vue?4ebc"],"names":["InvoiceApprovalSplit","InvoicePaidSplit","ReservationInvoiceSplit","TotalExpiredInvoices","components","data","companyId","isLoadingLeft","isLoadingRight","isSearching","locationId","Number","$route","params","meetingtypeId","timestamp","Date","getTime","computed","_objectSpread","mapState","methods","mapMutations","datesChanged","searchQuery","self","invoicesPageState","invoices","reservations","page","reachedEnd","startDate","endDate","setInvoicesPageState","render","_vm","_c","_self","staticClass","attrs","title","$t","dateMode","searchTermPlaceholder","showSearchInput","isLoading","actionSearch","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA;AAEA,IAAAA,oBAAA,YAAAA,qBAAA;EAAA,OACA;AAAA;AACA,IAAAC,gBAAA,YAAAA,iBAAA;EAAA,OACA;AAAA;AACA,IAAAC,uBAAA,YAAAA,wBAAA;EAAA,OACA;AAAA;AACA,IAAAC,oBAAA,YAAAA,qBAAA;EAAA,OACA;AAAA;AAEe;EACfC,UAAA;IACA;IACAJ,oBAAA,EAAAA,oBAAA;IACAC,gBAAA,EAAAA,gBAAA;IACAC,uBAAA,EAAAA,uBAAA;IACAC,oBAAA,EAAAA;EACA;EAEAE,IAAA,WAAAA,KAAA;IACA;MACAC,SAAA;MACAC,aAAA;MACAC,cAAA;MACAC,WAAA;MACAC,UAAA,EAAAC,MAAA,MAAAC,MAAA,CAAAC,MAAA,CAAAH,UAAA;MACAI,aAAA;MACAC,SAAA,MAAAC,IAAA,GAAAC,OAAA;IACA;EACA;EAEAC,QAAA,EAAAC,iIAAA,KACAC,6DAAA,wCACA;EAEAC,OAAA,EAAAF,iIAAA,CAAAA,iIAAA,KACAG,iEAAA;IAEAC,YAAA,WAAAA,aAAAC,WAAA;MACA,IAAAC,IA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T,iBAAiB,CAACK;IACnC;EACF,CAAC,CAAC,CACH,EACD,CACF,CAAC,CACF,CAAC,CACH,CAAC,EACFK,EAAE,CAAC,sBAAsB,EAAE;IACzBG,KAAK,EAAE;MAAEjC,SAAS,EAAE6B,GAAG,CAAC7B,SAAS;MAAEI,UAAU,EAAEyB,GAAG,CAACzB;IAAW;EAChE,CAAC,CAAC,CACH,EACD,CACF,CAAC,CACF,CAAC;AACJ,CAAC;AACD,IAAIqC,eAAe,GAAG,EAAE;AACxBb,MAAM,CAACc,aAAa,GAAG,IAAI;;;;;;;;;;;;;;AC3F3B;AAAA;AAAA;AAAA;AAAuF;AAC3B;AACL;;;AAGvD;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACtCf;AAAiS,CAAgB,2UAAG,EAAC,C;;;;;;;;;;;;;ACArT;AAAA;AAAA;AAAA;AAAA","file":"js/dashboard-invoices.js?id=ea5796a89fdfea203506","sourcesContent":["<template>\n  <div class=\"section\">\n    <div class=\"container\">\n      <ui-page-hero :title=\"$t('Views.Invoices.Dashboard.Main_Title')\" />\n\n      <div class=\"filter-column mb-6\">\n        <ui-search-form\n          dateMode=\"range\"\n          :searchTermPlaceholder=\"\n            $t('Views.Invoices.Dashboard.Placeholder_InvoiceNumber')\n          \"\n          :showSearchInput=\"false\"\n          :isLoading=\"isSearching\"\n          :startDate=\"invoicesPageState.startDate\"\n          :endDate=\"invoicesPageState.endDate\"\n          :actionSearch=\"datesChanged\"\n        />\n      </div>\n\n      <div class=\"mb-6\">\n        <div class=\"columns\">\n          <div class=\"column\">\n            <ReservationInvoiceSplit\n              :endDate=\"invoicesPageState.endDate\"\n              :locationId=\"locationId\"\n              :meetingtypeId=\"meetingtypeId\"\n              :startDate=\"invoicesPageState.startDate\"\n              class=\"box\"\n            />\n          </div>\n\n          <div class=\"column\">\n            <InvoiceApprovalSplit\n              :locationId=\"locationId\"\n              :endDate=\"invoicesPageState.endDate\"\n              :startDate=\"invoicesPageState.startDate\"\n              class=\"box\"\n            />\n          </div>\n\n          <div class=\"column\">\n            <InvoicePaidSplit\n              :companyId=\"companyId\"\n              :locationId=\"locationId\"\n              :endDate=\"invoicesPageState.endDate\"\n              :startDate=\"invoicesPageState.startDate\"\n              class=\"box\"\n            />\n          </div>\n        </div>\n      </div>\n\n      <TotalExpiredInvoices\n        :companyId=\"companyId\"\n        :locationId=\"locationId\"\n      />\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapState, mapMutations } from 'vuex'\n\nconst InvoiceApprovalSplit = () =>\n  import('@/components/Dashboards/InvoiceApprovalSplit')\nconst InvoicePaidSplit = () =>\n  import('@/components/Dashboards/InvoicePaidSplit')\nconst ReservationInvoiceSplit = () =>\n  import('@/components/Dashboards/ReservationInvoiceSplit')\nconst TotalExpiredInvoices = () =>\n  import('@/components/Dashboards/TotalExpiredInvoices')\n\nexport default {\n  components: {\n    // \"dates-filter\": DatesFilter,\n    InvoiceApprovalSplit,\n    InvoicePaidSplit,\n    ReservationInvoiceSplit,\n    TotalExpiredInvoices,\n  },\n\n  data() {\n    return {\n      companyId: 0,\n      isLoadingLeft: false,\n      isLoadingRight: false,\n      isSearching: false,\n      locationId: Number(this.$route.params.locationId),\n      meetingtypeId: 0,\n      timestamp: new Date().getTime(),\n    }\n  },\n\n  computed: {\n    ...mapState('invoiceStore', ['invoicesPageState']),\n  },\n\n  methods: {\n    ...mapMutations('invoiceStore', ['setInvoicesPageState']),\n\n    datesChanged(searchQuery) {\n      let self = this\n      self.invoicesPageState.invoices = []\n      self.invoicesPageState.reservations = []\n      self.invoicesPageState.page = 1\n      self.invoicesPageState.reachedEnd = false\n\n      self.invoicesPageState.startDate = searchQuery.startDate\n      self.invoicesPageState.endDate = searchQuery.endDate\n\n      self.setInvoicesPageState(self.invoicesPageState)\n\n      self.timestamp = new Date().getTime()\n    },\n  },\n}\n</script>\n","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\"div\", { staticClass: \"section\" }, [\n    _c(\n      \"div\",\n      { staticClass: \"container\" },\n      [\n        _c(\"ui-page-hero\", {\n          attrs: { title: _vm.$t(\"Views.Invoices.Dashboard.Main_Title\") },\n        }),\n        _c(\n          \"div\",\n          { staticClass: \"filter-column mb-6\" },\n          [\n            _c(\"ui-search-form\", {\n              attrs: {\n                dateMode: \"range\",\n                searchTermPlaceholder: _vm.$t(\n                  \"Views.Invoices.Dashboard.Placeholder_InvoiceNumber\"\n                ),\n                showSearchInput: false,\n                isLoading: _vm.isSearching,\n                startDate: _vm.invoicesPageState.startDate,\n                endDate: _vm.invoicesPageState.endDate,\n                actionSearch: _vm.datesChanged,\n              },\n            }),\n          ],\n          1\n        ),\n        _c(\"div\", { staticClass: \"mb-6\" }, [\n          _c(\"div\", { staticClass: \"columns\" }, [\n            _c(\n              \"div\",\n              { staticClass: \"column\" },\n              [\n                _c(\"ReservationInvoiceSplit\", {\n                  staticClass: \"box\",\n                  attrs: {\n                    endDate: _vm.invoicesPageState.endDate,\n                    locationId: _vm.locationId,\n                    meetingtypeId: _vm.meetingtypeId,\n                    startDate: _vm.invoicesPageState.startDate,\n                  },\n                }),\n              ],\n              1\n            ),\n            _c(\n              \"div\",\n              { staticClass: \"column\" },\n              [\n                _c(\"InvoiceApprovalSplit\", {\n                  staticClass: \"box\",\n                  attrs: {\n                    locationId: _vm.locationId,\n                    endDate: _vm.invoicesPageState.endDate,\n                    startDate: _vm.invoicesPageState.startDate,\n                  },\n                }),\n              ],\n              1\n            ),\n            _c(\n              \"div\",\n              { staticClass: \"column\" },\n              [\n                _c(\"InvoicePaidSplit\", {\n                  staticClass: \"box\",\n                  attrs: {\n                    companyId: _vm.companyId,\n                    locationId: _vm.locationId,\n                    endDate: _vm.invoicesPageState.endDate,\n                    startDate: _vm.invoicesPageState.startDate,\n                  },\n                }),\n              ],\n              1\n            ),\n          ]),\n        ]),\n        _c(\"TotalExpiredInvoices\", {\n          attrs: { companyId: _vm.companyId, locationId: _vm.locationId },\n        }),\n      ],\n      1\n    ),\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=20088676\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=js\"\nexport * from \"./Dashboard.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('20088676')) {\n      api.createRecord('20088676', component.options)\n    } else {\n      api.reload('20088676', component.options)\n    }\n    module.hot.accept(\"./Dashboard.vue?vue&type=template&id=20088676\", function () {\n      api.rerender('20088676', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/views/Invoices/Dashboard.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!./Dashboard.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!./Dashboard.vue?vue&type=script&lang=js\"","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"d2a26fb4-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!./Dashboard.vue?vue&type=template&id=20088676\""],"sourceRoot":""}