{"version":3,"sources":["webpack:///./src/views/Invoices/Dashboard.vue","webpack:///src/views/Invoices/Dashboard.vue","webpack:///./src/views/Invoices/Dashboard.vue?f65d","webpack:///./src/views/Invoices/Dashboard.vue?43a6"],"names":["render","_vm","this","_c","_self","staticClass","attrs","$t","isSearching","invoicesPageState","startDate","endDate","datesChanged","locationId","meetingtypeId","companyId","staticRenderFns","InvoiceApprovalSplit","InvoicePaidSplit","ReservationInvoiceSplit","TotalExpiredInvoices","components","data","isLoadingLeft","isLoadingRight","Number","$route","params","timestamp","Date","getTime","computed","_objectSpread","mapState","methods","mapMutations","searchQuery","self","invoices","reservations","page","reachedEnd","setInvoicesPageState","component"],"mappings":"2HAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQL,EAAIM,GAAG,0CAA0CJ,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,iBAAiB,CAACG,MAAM,CAAC,SAAW,QAAQ,sBAAwBL,EAAIM,GAAG,sDAAsD,iBAAkB,EAAM,UAAYN,EAAIO,YAAY,UAAYP,EAAIQ,kBAAkBC,UAAU,QAAUT,EAAIQ,kBAAkBE,QAAQ,aAAeV,EAAIW,iBAAiB,GAAGT,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,0BAA0B,CAACE,YAAY,MAAMC,MAAM,CAAC,QAAUL,EAAIQ,kBAAkBE,QAAQ,WAAaV,EAAIY,WAAW,cAAgBZ,EAAIa,cAAc,UAAYb,EAAIQ,kBAAkBC,cAAc,GAAGP,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,uBAAuB,CAACE,YAAY,MAAMC,MAAM,CAAC,WAAaL,EAAIY,WAAW,QAAUZ,EAAIQ,kBAAkBE,QAAQ,UAAYV,EAAIQ,kBAAkBC,cAAc,GAAGP,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,mBAAmB,CAACE,YAAY,MAAMC,MAAM,CAAC,UAAYL,EAAIc,UAAU,WAAad,EAAIY,WAAW,QAAUZ,EAAIQ,kBAAkBE,QAAQ,UAAYV,EAAIQ,kBAAkBC,cAAc,OAAOP,EAAG,uBAAuB,CAACG,MAAM,CAAC,UAAYL,EAAIc,UAAU,WAAad,EAAIY,eAAe,MAEx3CG,EAAkB,G,kEC6DtBC,EAAA,kBACA,sFACAC,EAAA,kBACA,sFACAC,EAAA,kBACA,sFACAC,EAAA,kBACA,sFAEe,GACfC,WAAA,CAEAJ,uBACAC,mBACAC,0BACAC,wBAGAE,KAAA,WACA,OACAP,UAAA,EACAQ,eAAA,EACAC,gBAAA,EACAhB,aAAA,EACAK,WAAAY,OAAA,KAAAC,OAAAC,OAAAd,YACAC,cAAA,EACAc,WAAA,IAAAC,MAAAC,YAIAC,SAAAC,eAAA,GACAC,eAAA,uCAGAC,QAAAF,8BAAA,GACAG,eAAA,8CAEAvB,aAAA,SAAAwB,GACA,IAAAC,EAAA,KACAA,EAAA5B,kBAAA6B,SAAA,GACAD,EAAA5B,kBAAA8B,aAAA,GACAF,EAAA5B,kBAAA+B,KAAA,EACAH,EAAA5B,kBAAAgC,YAAA,EAEAJ,EAAA5B,kBAAAC,UAAA0B,EAAA1B,UACA2B,EAAA5B,kBAAAE,QAAAyB,EAAAzB,QAEA0B,EAAAK,qBAAAL,EAAA5B,mBAEA4B,EAAAT,WAAA,IAAAC,MAAAC,cChHiW,I,YCO7Va,EAAY,eACd,EACA3C,EACAgB,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/dashboard-invoices.js?id=2f30a2dfe9fa8dc7c248","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('ui-page-hero',{attrs:{\"title\":_vm.$t('Views.Invoices.Dashboard.Main_Title')}}),_c('div',{staticClass:\"filter-column mb-6\"},[_c('ui-search-form',{attrs:{\"dateMode\":\"range\",\"searchTermPlaceholder\":_vm.$t('Views.Invoices.Dashboard.Placeholder_InvoiceNumber'),\"showSearchInput\":false,\"isLoading\":_vm.isSearching,\"startDate\":_vm.invoicesPageState.startDate,\"endDate\":_vm.invoicesPageState.endDate,\"actionSearch\":_vm.datesChanged}})],1),_c('div',{staticClass:\"mb-6\"},[_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column\"},[_c('ReservationInvoiceSplit',{staticClass:\"box\",attrs:{\"endDate\":_vm.invoicesPageState.endDate,\"locationId\":_vm.locationId,\"meetingtypeId\":_vm.meetingtypeId,\"startDate\":_vm.invoicesPageState.startDate}})],1),_c('div',{staticClass:\"column\"},[_c('InvoiceApprovalSplit',{staticClass:\"box\",attrs:{\"locationId\":_vm.locationId,\"endDate\":_vm.invoicesPageState.endDate,\"startDate\":_vm.invoicesPageState.startDate}})],1),_c('div',{staticClass:\"column\"},[_c('InvoicePaidSplit',{staticClass:\"box\",attrs:{\"companyId\":_vm.companyId,\"locationId\":_vm.locationId,\"endDate\":_vm.invoicesPageState.endDate,\"startDate\":_vm.invoicesPageState.startDate}})],1)])]),_c('TotalExpiredInvoices',{attrs:{\"companyId\":_vm.companyId,\"locationId\":_vm.locationId}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<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","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!./Dashboard.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!./Dashboard.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=09be5e62\"\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\nexport default component.exports"],"sourceRoot":""}