{"version":3,"sources":["webpack:///./src/views/App/CashFlow/Workload/index.vue?2ce6","webpack:///./src/views/App/CashFlow/Workload/FiltersCard.vue?cad3","webpack:///./src/views/App/CashFlow/Workload/FiltersCard.vue","webpack:///./src/views/App/CashFlow/Workload/FiltersCard.vue?1b3c","webpack:///./src/views/App/CashFlow/Workload/FiltersCard.vue?842b","webpack:///./src/views/App/CashFlow/Workload/InstallationsWorkloadTable.vue?4464","webpack:///./src/model/communication/workload/DownloadWorkloadReportCommand.ts","webpack:///./src/views/App/CashFlow/Workload/InstallationsWorkloadTable.vue","webpack:///./src/views/App/CashFlow/Workload/InstallationsWorkloadTable.vue?5d30","webpack:///./src/views/App/CashFlow/Workload/InstallationsWorkloadTable.vue?a27c","webpack:///./src/views/App/CashFlow/Workload/index.vue","webpack:///./src/views/App/CashFlow/Workload/index.vue?604e","webpack:///./src/views/App/CashFlow/Workload/index.vue?26b4","webpack:///./src/components/DataTableColumnVisibilityFilter/ColumnVisibilityFilter.vue?32f2","webpack:///./src/components/DataTableColumnVisibilityFilter/ColumnVisibilityFilter.vue","webpack:///./src/components/DataTableColumnVisibilityFilter/ColumnVisibilityFilter.vue?b73e","webpack:///./src/components/DataTableColumnVisibilityFilter/ColumnVisibilityFilter.vue?6f88"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","MODULE_COLORS","CASH_FLOW","$t","model","value","callback","$$v","deviceTreeSelectedObjectItems","expression","on","$event","onSubmit","ref","staticRenderFns","staticClass","currencies","length","_v","_s","radioSelection","_l","d","key","id","i18nLabel","scopedSlots","_u","fn","_g","dateRangeFormatted","v","Date","dateRange","proxy","currencySelected","canSubmit","submit","_e","extend","data","moment","filters","startDate","endDate","currency","startDatePicker","endDatePicker","currentReqData","GetWorkloadReqData","defaultDateRanges","computed","state","installationWorkload","isInstallationsListFetching","undefined","dateRangeString","forEach","date","format","userDateFormat","slice","get","res","push","toISOString","substr","set","b","setUTCHours","setUTCMinutes","setUTCSeconds","watch","startDateTemp","endDateTemp","subtract","utc","methods","$emit","mounted","component","VAlert","VBtn","VCard","VCol","VCombobox","VDatePicker","VDivider","VMenu","VRadio","VRadioGroup","VRow","VSkeletonLoader","VTextField","downloadLoading","availableHeaders","filter","enabled","installationsList","totalInstallationsCount","options","dataTableItemsPerPage","currentTableCurrency","initialAvailableHeaders","c","exportAs","domProps","$vuetify","breakpoint","tag","name","header","text","formatCurrency","staticStyle","ENDPOINT","downloadType","endPoint","httpVerb","payload","responseType","executeCommand","Command","components","ColumnVisibilityFilter","ignoreOptionsChanges","firstOptionsChange","sortable","width","align","reqData","currencyBalance","currenciesCombobox","temp","handler","deep","currentOptions","newReqData","offset","page","itemsPerPage","queryLimit","orderBy","sortBy","orderByDescending","sortDesc","type","execute","fileURL","window","URL","createObjectURL","Blob","fileLink","document","createElement","href","setAttribute","headers","substring","body","appendChild","click","console","log","backToTheFirst","debug","defaultReqData","VAvatar","VChip","VChipGroup","VDataTable","VSpacer","VToolbar","VToolbarItems","VToolbarTitle","VTooltip","DeviceTreeAppPage","FiltersCard","InstallationsWorkloadTable","newValue","installationNames","folderIds","DeviceTreeNodeTypeEnum","Device","map","Folder","$refs","mainTable","currentHeaders","canBeHidden","e","onSwitchChange","props","pageTitle","String","initialHeaders","Array","syncHeaders","emitChange","getLocalStorageKey","headerValue","LocalStorageManager","Write","find","includes","actionsIndex","findIndex","splice","migrateUndefinedValue","localStorageKey","readValue","Read","legacyKey","Remove","created","VList","VListItem","VListItemAction","VListItemContent","VListItemTitle","VSwitch"],"mappings":"0IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,uBAAuB,CAACE,MAAM,CAAC,KAAO,gBAAgB,MAAQN,EAAIO,cAAcC,UAAU,UAAYR,EAAIS,GAAG,4BAA4B,gBAAkBT,EAAIS,GAAG,yBAAyB,aAAc,GAAMC,MAAM,CAACC,MAAOX,EAAiC,8BAAEY,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IAAkBA,EAAW,CAACE,OAAA,KAAKsI,QAAA,KAAMC,YAAA,KAAUC,kBAAA,KAAgBC,iBAAA,OAAiBC,eAAA,OAAepI,QAAA,KAAMqI,UAAA","file":"js/chunk_app_cash_cash_workload_view.1b3a61f6.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('device-tree-app-page',{attrs:{\"icon\":\"fa-chart-line\",\"color\":_vm.MODULE_COLORS.CASH_FLOW,\"pageTitle\":_vm.$t('workloadReport.pageTitle'),\"deviceTreeTitle\":_vm.$t('common.filter_devices'),\"hideActions\":true},model:{value:(_vm.deviceTreeSelectedObjectItems),callback:function ($$v) {_vm.deviceTreeSelectedObjectItems=$$v},expression:\"deviceTreeSelectedObjectItems\"}},[_c('FiltersCard',{on:{\"submit-event\":function($event){return _vm.onSubmit($event)}}}),_c('installations-workload-table',{ref:\"mainTable\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:\"my-3\",attrs:{\"loading\":_vm.currencies.length < 0}},[_c('v-row',{attrs:{\"align\":\"center\",\"dense\":\"\"}},[_c('v-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\"}},[_c('span',{staticClass:\"ml-5 text-h6\"},[_vm._v(_vm._s(_vm.$t(\"workloadReport.filtersSectionTitle\")))]),_c('v-divider',{staticClass:\"mx-5 mt-3\"})],1),_c('v-col',[_c('v-skeleton-loader',{staticClass:\"mx-auto\",attrs:{\"type\":\"article\",\"loading\":_vm.currencies == null}},[(_vm.currencies && _vm.currencies.length > 0)?_c('v-radio-group',{attrs:{\"column\":\"\",\"row\":\"\"},model:{value:(_vm.radioSelection),callback:function ($$v) {_vm.radioSelection=$$v},expression:\"radioSelection\"}},_vm._l((_vm.defaultDateRanges),function(d){return _c('v-radio',{key:d.id,staticClass:\"mx-5 my-1\",attrs:{\"label\":_vm.$t(d.i18nLabel),\"value\":d.value},scopedSlots:_vm._u([(d.id == 'customDateRange')?{key:\"label\",fn:function(){return [_c('v-menu',{attrs:{\"close-on-content-click\":false,\"transition\":\"fade-transition\",\"offset-y\":\"\",\"min-width\":\"320px\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-text-field',_vm._g({attrs:{\"label\":_vm.$t('cash_report.select_date_range'),\"append-icon\":\"fas fa-calendar-check\",\"readonly\":\"\",\"disabled\":_vm.radioSelection != 3},model:{value:(_vm.dateRangeFormatted),callback:function ($$v) {_vm.dateRangeFormatted=$$v},expression:\"dateRangeFormatted\"}},on))]}}],null,true)},[_c('v-date-picker',{attrs:{\"range\":\"\",\"scrollable\":\"\",\"no-title\":\"\",\"allowed-dates\":function (v) { return new Date() > new Date(v); }},model:{value:(_vm.dateRange),callback:function ($$v) {_vm.dateRange=$$v},expression:\"dateRange\"}})],1)]},proxy:true}:null],null,true)})}),1):_c('v-alert',{staticClass:\"mx-2\",attrs:{\"text\":\"\",\"border\":\"left\",\"color\":\"warning\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"workloadReport.noTransactions\"))+\" \")])],1)],1)],1),(_vm.currencies.length > 0)?_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{staticClass:\"ml-5\",attrs:{\"cols\":\"auto\"}},[_c('v-combobox',{attrs:{\"items\":_vm.currencies,\"label\":_vm.$t('workloadReport.selectCurrency'),\"outlined\":\"\",\"dense\":\"\"},model:{value:(_vm.currencySelected),callback:function ($$v) {_vm.currencySelected=$$v},expression:\"currencySelected\"}})],1),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-card',{staticClass:\"text-center mx-5 my-1\",attrs:{\"flat\":\"\"}},[_c('v-btn',{attrs:{\"color\":\"success\",\"disabled\":!_vm.canSubmit},on:{\"click\":_vm.submit}},[_c('v-fa-icon',{staticClass:\"mx-2\",attrs:{\"icon\":\"search\"}}),_vm._v(\" \"+_vm._s(_vm.$t(\"common.submit\"))+\" \")],1)],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport moment from \"moment\";\r\n\r\n// vuex\r\nimport { mapActions, mapGetters, mapState } from \"vuex\";\r\nimport { RootState } from \"@/store\";\r\nimport * as a from \"@/store/modules/InstallationsWorkloadModule/actions\";\r\n\r\n// model\r\nimport { GetWorkloadReqData } from \"@/model/communication/workload/GetWorkloadReqData\";\r\n\r\nexport default Vue.extend({\r\n data() {\r\n return {\r\n moment,\r\n filters: {\r\n startDate: null,\r\n endDate: null,\r\n currency: null,\r\n },\r\n startDatePicker: null,\r\n endDatePicker: null,\r\n radioSelection: null,\r\n currentReqData: new GetWorkloadReqData(null),\r\n defaultDateRanges: [\r\n {\r\n id: \"lastMonth\",\r\n i18nLabel: \"workloadReport.lastMonth\",\r\n value: 0,\r\n },\r\n {\r\n id: \"last3Months\",\r\n i18nLabel: \"workloadReport.last3Months\",\r\n value: 1,\r\n },\r\n {\r\n id: \"last6Months\",\r\n i18nLabel: \"workloadReport.last6Months\",\r\n value: 2,\r\n },\r\n {\r\n id: \"customDateRange\",\r\n i18nLabel: \"\",\r\n value: 3,\r\n },\r\n ],\r\n currencySelected: \"\",\r\n };\r\n },\r\n computed: {\r\n ...mapState({\r\n currencies: (state: RootState): string[] => state.installationWorkload.currencies,\r\n isInstallationsListFetching: (state: RootState): boolean => state.installationWorkload.isInstallationsListFetching,\r\n }),\r\n ...mapGetters([\"userDateFormat\"]),\r\n dateRangeFormatted() {\r\n if (this.dateRange == null || this.dateRange == undefined || this.dateRange.length == 0) return this.dateRange;\r\n let dateRangeString = \"\";\r\n this.dateRange.forEach((date) => {\r\n dateRangeString += moment(date).format(this.userDateFormat) + \",\";\r\n });\r\n return dateRangeString.slice(0, -1);\r\n },\r\n canSubmit() {\r\n return (this.radioSelection != 3 || this.dateRange.length == 2) && !this.isInstallationsListFetching;\r\n },\r\n dateRange: {\r\n get() {\r\n let res = [];\r\n if (this.startDatePicker) res.push(this.startDatePicker.toISOString().substr(0, 10));\r\n if (this.endDatePicker) res.push(this.endDatePicker.toISOString().substr(0, 10));\r\n return res;\r\n },\r\n set(v: number[]) {\r\n if (v.length == 1) {\r\n this.startDatePicker = new Date(v[0]);\r\n this.endDatePicker = null;\r\n } else {\r\n const a = new Date(v[0]);\r\n const b = new Date(v[1]);\r\n if (a < b) {\r\n this.startDatePicker = a;\r\n this.endDatePicker = b;\r\n } else {\r\n this.startDatePicker = b;\r\n this.endDatePicker = a;\r\n }\r\n\r\n this.endDatePicker.setUTCHours(23);\r\n this.endDatePicker.setUTCMinutes(59);\r\n this.endDatePicker.setUTCSeconds(59);\r\n\r\n this.filters.startDate = this.startDatePicker as Date;\r\n this.filters.endDate = this.endDatePicker as Date;\r\n }\r\n },\r\n },\r\n },\r\n watch: {\r\n radioSelection(value) {\r\n let startDateTemp = null;\r\n let endDateTemp = new Date();\r\n\r\n if (value != 3) {\r\n this.startDatePicker = null;\r\n this.endDatePicker = null;\r\n }\r\n\r\n switch (value) {\r\n case 0:\r\n startDateTemp = moment().subtract(1, \"months\").utc();\r\n break;\r\n case 1:\r\n startDateTemp = moment().subtract(3, \"months\").utc();\r\n break;\r\n case 2:\r\n startDateTemp = moment().subtract(6, \"months\").utc();\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n\r\n this.filters.startDate = startDateTemp as Date;\r\n this.filters.endDate = endDateTemp as Date;\r\n },\r\n currencySelected(value) {\r\n this.filters.currency = value;\r\n },\r\n },\r\n methods: {\r\n ...mapActions([a.GET_WORKLOAD_CURRENCIES]),\r\n\r\n submit() {\r\n this.$emit(\"submit-event\", this.filters);\r\n },\r\n },\r\n async mounted() {\r\n await this[a.GET_WORKLOAD_CURRENCIES]();\r\n this.radioSelection = 0;\r\n this.currencySelected = this.currencies[0];\r\n },\r\n});\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FiltersCard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FiltersCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FiltersCard.vue?vue&type=template&id=e03d51e8&\"\nimport script from \"./FiltersCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./FiltersCard.vue?vue&type=script&lang=ts&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VCombobox } from 'vuetify/lib/components/VCombobox';\nimport { VDatePicker } from 'vuetify/lib/components/VDatePicker';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRadio } from 'vuetify/lib/components/VRadioGroup';\nimport { VRadioGroup } from 'vuetify/lib/components/VRadioGroup';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSkeletonLoader } from 'vuetify/lib/components/VSkeletonLoader';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VAlert,VBtn,VCard,VCol,VCombobox,VDatePicker,VDivider,VMenu,VRadio,VRadioGroup,VRow,VSkeletonLoader,VTextField})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{attrs:{\"loading\":_vm.downloadLoading || _vm.isInstallationsListFetching}},[_c('v-data-table',{staticClass:\"pb-5\",attrs:{\"headers\":_vm.availableHeaders.filter(function (v) { return v.enabled; }),\"items\":_vm.installationsList,\"server-items-length\":_vm.totalInstallationsCount,\"options\":_vm.options,\"item-key\":\"name\",\"footer-props\":{ 'items-per-page-options': _vm.dataTableItemsPerPage }},on:{\"update:options\":function($event){_vm.options=$event}},scopedSlots:_vm._u([{key:\"top\",fn:function(){return [_c('v-toolbar',{staticClass:\"mb-5\"},[_c('v-fa-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"list\",\"medium\":\"\",\"color\":\"primary\"}}),(_vm.currentTableCurrency.length > 0)?_c('v-toolbar-title',[_vm._v(_vm._s(_vm.$t(\"workloadReport.tableTitle\"))+\" - \"+_vm._s(_vm.currentTableCurrency))]):_c('v-toolbar-title',[_vm._v(_vm._s(_vm.$t(\"workloadReport.tableTitle\")))]),_c('v-spacer'),_c('v-toolbar-items',[_c('ColumnVisibilityFilter',{attrs:{\"pageTitle\":\"device_workload\",\"initialHeaders\":_vm.initialAvailableHeaders},on:{\"onValueChange\":function (c) { return (_vm.availableHeaders = c); }}})],1),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"icon\":\"\",\"color\":\"primary\",\"small\":\"\"},on:{\"click\":function($event){return _vm.exportAs('csv')}}},on),[_c('v-fa-icon',{attrs:{\"icon\":\"file-csv\"}})],1)]}}])},[_c('span',{domProps:{\"textContent\":_vm._s(_vm.$t('cash_report.export_as_csv'))}})])],1),_c('TableTopScrollbar')]},proxy:true},{key:\"item.lastMessage\",fn:function(ref){\nvar value = ref.value;\nreturn [_c('date-moment-tooltip',{attrs:{\"date\":value}})]}},{key:\"item.tags\",fn:function(ref){\nvar value = ref.value;\nreturn [(_vm.$vuetify.breakpoint.mdAndUp)?_c('v-card',{attrs:{\"flat\":\"\",\"max-width\":\"500\"}},[_c('v-col',{staticClass:\"pa-0\"},[_c('v-chip-group',{attrs:{\"show-arrows\":\"\"}},_vm._l((value),function(tag){return _c('TagChip',{key:tag.name,attrs:{\"tag\":tag}})}),1)],1)],1):_c('span',_vm._l((value),function(tag){return _c('TagChip',{key:tag.name,attrs:{\"tag\":tag,\"x-small\":\"\"}})}),1)]}},{key:\"header.operationsCount\",fn:function(ref){\nvar header = ref.header;\nreturn [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({},on),[_vm._v(_vm._s(header.text)+\" \"),_c('v-fa-icon',{attrs:{\"icon\":\"info-circle\",\"x-small\":\"\"}})],1)]}}],null,true)},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t(\"workloadReport.installationColumn\"))+\" \")])])]}},{key:\"header.banknotesQty\",fn:function(ref){\nvar header = ref.header;\nreturn [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({},on),[_vm._v(_vm._s(header.text)+\" \"),_c('v-fa-icon',{attrs:{\"icon\":\"info-circle\",\"x-small\":\"\"}})],1)]}}],null,true)},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t(\"workloadReport.installationColumn\"))+\" \")])])]}},{key:\"header.coinsQty\",fn:function(ref){\nvar header = ref.header;\nreturn [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({},on),[_vm._v(_vm._s(header.text)+\" \"),_c('v-fa-icon',{attrs:{\"icon\":\"info-circle\",\"x-small\":\"\"}})],1)]}}],null,true)},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t(\"workloadReport.installationColumn\"))+\" \")])])]}},{key:\"item.divider\",fn:function(){return [_c('v-divider',{attrs:{\"vertical\":\"\"}})]},proxy:true},{key:\"header.divider\",fn:function(){return [_c('v-divider',{attrs:{\"vertical\":\"\"}})]},proxy:true},{key:\"header.currencyBalance.cashIn\",fn:function(ref){\nvar header = ref.header;\nreturn [_vm._v(\" \"+_vm._s(header.text)+\" (\"+_vm._s(_vm.currentTableCurrency)+\") \")]}},{key:\"item.currencyBalance.cashIn\",fn:function(ref){\nvar value = ref.value;\nreturn [_c('v-chip',{attrs:{\"pill\":\"\",\"medium\":\"\"}},[_c('v-avatar',{attrs:{\"left\":\"\",\"color\":\"green\"}},[_c('v-fa-icon',{attrs:{\"icon\":\"sign-in-alt\"}})],1),_vm._v(\" \"+_vm._s(_vm.formatCurrency(_vm.currentTableCurrency, value))+\" \")],1)]}},{key:\"header.currencyBalance.cashOut\",fn:function(ref){\nvar header = ref.header;\nreturn [_vm._v(\" \"+_vm._s(header.text)+\" (\"+_vm._s(_vm.currentTableCurrency)+\") \")]}},{key:\"item.currencyBalance.cashOut\",fn:function(ref){\nvar value = ref.value;\nreturn [_c('v-chip',{attrs:{\"pill\":\"\",\"medium\":\"\"}},[_c('v-avatar',{attrs:{\"left\":\"\",\"color\":\"red\"}},[_c('v-fa-icon',{attrs:{\"icon\":\"sign-out-alt\"}})],1),_vm._v(\" \"+_vm._s(_vm.formatCurrency(_vm.currentTableCurrency, value))+\" \")],1)]}},{key:\"header.currencyBalance.balance\",fn:function(ref){\nvar header = ref.header;\nreturn [_vm._v(\" \"+_vm._s(header.text)+\" (\"+_vm._s(_vm.currentTableCurrency)+\") \")]}},{key:\"item.currencyBalance.balance\",fn:function(ref){\nvar value = ref.value;\nreturn [(value >= 0)?_c('b',{staticStyle:{\"color\":\"green\"}},[_vm._v(\" \"+_vm._s(_vm.formatCurrency(_vm.currentTableCurrency, value))+\" \")]):_c('b',{staticStyle:{\"color\":\"red\"}},[_vm._v(\" \"+_vm._s(_vm.formatCurrency(_vm.currentTableCurrency, value))+\" \")])]}}],null,true)})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Command, HttpVerbType, API_PREFIX, API_VERSION } from \"../Command\";\r\nimport { GetWorkloadReqData } from \"./GetWorkloadReqData\";\r\nimport { AxiosResponse } from \"axios\";\r\n\r\nconst ENDPOINT = \"/cash_flow/workload/download\";\r\n\r\nexport class DownloadWorkloadReportCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"post\";\r\n payload: GetWorkloadReqData;\r\n\r\n constructor(downloadType: string, filters: GetWorkloadReqData) {\r\n super();\r\n this.endPoint = this.endPoint + \"/\" + downloadType;\r\n this.payload = filters;\r\n this.responseType = \"text\";\r\n }\r\n\r\n public async execute(): Promise {\r\n return await this.executeCommand(this.payload);\r\n }\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\n\r\n// vuex\r\nimport { mapActions, mapMutations, mapState } from \"vuex\";\r\nimport { RootState } from \"@/store\";\r\nimport * as a from \"@/store/modules/InstallationsWorkloadModule/actions\";\r\nimport * as m from \"@/store/modules/InstallationsWorkloadModule/mutations\";\r\nimport ColumnVisibilityFilter from \"@/components/DataTableColumnVisibilityFilter/ColumnVisibilityFilter.vue\";\r\n\r\n// model\r\nimport { dataTableItemsPerPage } from \"@/utility/Constants\";\r\nimport { formatCurrency } from \"@/utility/Formatter\";\r\nimport { InstallationWorkload } from \"@/model/data/workload/InstallationWorkload\";\r\nimport { DataOptions } from \"vuetify\";\r\nimport { GetWorkloadReqData } from \"@/model/communication/workload/GetWorkloadReqData\";\r\nimport { DownloadWorkloadReportCommand } from \"@/model/communication/workload/DownloadWorkloadReportCommand\";\r\n\r\nexport default Vue.extend({\r\n components: {\r\n ColumnVisibilityFilter,\r\n },\r\n data() {\r\n return {\r\n options: {},\r\n ignoreOptionsChanges: false,\r\n firstOptionsChange: true,\r\n dataTableItemsPerPage,\r\n downloadLoading: false,\r\n availableHeaders: [],\r\n initialAvailableHeaders: [\r\n {\r\n enabled: true,\r\n text: this.$t(\"common.name\"),\r\n value: \"name\",\r\n sortable: false,\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"common.branch\"),\r\n value: \"branch.name\",\r\n sortable: false,\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"common.tags\"),\r\n value: \"tags\",\r\n sortable: false,\r\n },\r\n {\r\n enabled: false,\r\n text: this.$t(\"device_status.pc_name\"),\r\n value: \"connectedPc\",\r\n sortable: false,\r\n },\r\n {\r\n enabled: false,\r\n text: this.$t(\"common.last_update\"),\r\n value: \"lastMessage\",\r\n width: \"120px\",\r\n sortable: false,\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"workloadReport.numberOfTransactions\"),\r\n value: \"operationsCount\",\r\n align: \"center\",\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"workloadReport.banknotesQty\"),\r\n value: \"banknotesQty\",\r\n align: \"center\",\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"workloadReport.coinsQty\"),\r\n value: \"coinsQty\",\r\n align: \"center\",\r\n },\r\n {\r\n text: \"\",\r\n value: \"divider\",\r\n width: \"1\",\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"workloadReport.cashIn\"),\r\n value: \"currencyBalance.cashIn\",\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"workloadReport.cashOut\"),\r\n value: \"currencyBalance.cashOut\",\r\n },\r\n {\r\n enabled: true,\r\n text: this.$t(\"workloadReport.balance\"),\r\n value: \"currencyBalance.balance\",\r\n },\r\n ],\r\n };\r\n },\r\n computed: {\r\n ...mapState({\r\n installationsList: (state: RootState): InstallationWorkload[] => state.installationWorkload.installationsList,\r\n totalInstallationsCount: (state: RootState): number => state.installationWorkload.totalInstallationsCount,\r\n isInstallationsListFetching: (state: RootState): boolean => state.installationWorkload.isInstallationsListFetching,\r\n\r\n reqData: function (state: RootState): GetWorkloadReqData {\r\n return state.installationWorkload.reqData;\r\n },\r\n }),\r\n\r\n currentTableCurrency() {\r\n return this.installationsList != null && this.installationsList.length > 0 && this.installationsList[0].currencyBalance != null\r\n ? this.installationsList[0].currencyBalance.currency\r\n : \"\";\r\n },\r\n\r\n currenciesCombobox() {\r\n let res = [];\r\n this.currencies.forEach((c) => {\r\n let temp = {\r\n id: res.length,\r\n currency: c,\r\n };\r\n res.push(temp);\r\n });\r\n return res;\r\n },\r\n },\r\n watch: {\r\n reqData: {\r\n handler() {\r\n this[a.FETCH_INSTALLATIONS_WORKLOAD]();\r\n },\r\n deep: true,\r\n },\r\n options() {\r\n if (!this.ignoreOptionsChanges) {\r\n let currentOptions: DataOptions = this.options;\r\n\r\n let newReqData: GetWorkloadReqData = new GetWorkloadReqData(this.reqData);\r\n newReqData.offset = (currentOptions.page - 1) * currentOptions.itemsPerPage;\r\n newReqData.queryLimit = currentOptions.itemsPerPage;\r\n newReqData.orderBy = currentOptions.sortBy;\r\n newReqData.orderByDescending = currentOptions.sortDesc;\r\n\r\n this[m.SET_REQUEST_DATA](newReqData);\r\n } else this.ignoreOptionsChanges = false;\r\n },\r\n },\r\n methods: {\r\n ...mapActions([a.ON_PAGE_LOAD, a.FETCH_INSTALLATIONS_WORKLOAD]),\r\n ...mapMutations([m.SET_REQUEST_DATA]),\r\n formatCurrency,\r\n\r\n async exportAs(type) {\r\n this.downloadLoading = true;\r\n try {\r\n const res = await new DownloadWorkloadReportCommand(type, this.reqData).execute();\r\n\r\n let fileURL = window.URL.createObjectURL(new Blob([res.data]));\r\n let fileLink = document.createElement(\"a\");\r\n fileLink.href = fileURL;\r\n fileLink.setAttribute(\"download\", res.headers[\"content-disposition\"].substring(\"attachment; filename=\".length));\r\n document.body.appendChild(fileLink);\r\n fileLink.click();\r\n this.downloadLoading = false;\r\n } catch (e) {\r\n console.log(\"Something went wrong\", e);\r\n this.downloadLoading = false;\r\n }\r\n },\r\n\r\n backToTheFirst() {\r\n if (this.options.page != 1) {\r\n this.ignoreOptionsChanges = true;\r\n this.options.page = 1;\r\n console.debug(\"backToTheFirst, this.options: \", this.options);\r\n }\r\n },\r\n },\r\n mounted() {\r\n let defaultReqData: GetWorkloadReqData = new GetWorkloadReqData(this.reqData);\r\n defaultReqData.queryLimit = this.dataTableItemsPerPage[0];\r\n this[m.SET_REQUEST_DATA](defaultReqData);\r\n },\r\n});\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InstallationsWorkloadTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InstallationsWorkloadTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InstallationsWorkloadTable.vue?vue&type=template&id=0ec5a858&\"\nimport script from \"./InstallationsWorkloadTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./InstallationsWorkloadTable.vue?vue&type=script&lang=ts&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAvatar } from 'vuetify/lib/components/VAvatar';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VChipGroup } from 'vuetify/lib/components/VChipGroup';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarItems } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VAvatar,VBtn,VCard,VChip,VChipGroup,VCol,VDataTable,VDivider,VSpacer,VToolbar,VToolbarItems,VToolbarTitle,VTooltip})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\n\r\n// vue components\r\nimport DeviceTreeAppPage from \"@/components/DeviceTreeAppPage.vue\";\r\nimport FiltersCard from \"./FiltersCard.vue\";\r\nimport InstallationsWorkloadTable from \"./InstallationsWorkloadTable.vue\";\r\n\r\n// vuex\r\nimport { mapActions, mapMutations, mapState } from \"vuex\";\r\nimport { RootState } from \"@/store\";\r\nimport { InstallationsWorkloadState } from \"@/store/modules/InstallationsWorkloadModule/state\";\r\nimport * as a from \"@/store/modules/InstallationsWorkloadModule/actions\";\r\nimport * as m from \"@/store/modules/InstallationsWorkloadModule/mutations\";\r\n\r\n//model\r\nimport { dataTableItemsPerPage, MODULE_COLORS } from \"@/utility/Constants\";\r\nimport { InstallationWorkload } from \"@/model/data/workload/InstallationWorkload\";\r\nimport { GetWorkloadReqData } from \"@/model/communication/workload/GetWorkloadReqData\";\r\nimport { DataTableOptions } from \"@/model/communication/supportObjects/DataTableOptions\";\r\nimport { DataOptions } from \"vuetify\";\r\nimport { DeviceTreeNodeTypeEnum } from \"@/model/data/deviceTree/DeviceTreeNodeTypeEnum\";\r\n\r\nexport default Vue.extend({\r\n components: {\r\n DeviceTreeAppPage,\r\n FiltersCard,\r\n InstallationsWorkloadTable,\r\n },\r\n data() {\r\n return {\r\n MODULE_COLORS,\r\n dataTableItemsPerPage,\r\n deviceTreeSelectedObjectItems: [],\r\n };\r\n },\r\n computed: {\r\n ...mapState({\r\n installationsList: (state: RootState): InstallationWorkload[] => state.installationWorkload.installationsList,\r\n\r\n reqData: function (state: RootState): GetWorkloadReqData {\r\n return state.installationWorkload.reqData;\r\n },\r\n\r\n currencies: (state: RootState): string[] => state.installationWorkload.currencies,\r\n }),\r\n },\r\n watch: {\r\n deviceTreeSelectedObjectItems(newValue) {\r\n var newReqData: GetWorkloadReqData = new GetWorkloadReqData(this.reqData);\r\n\r\n newReqData.installationNames = null;\r\n newReqData.folderIds = null;\r\n if (newValue) {\r\n if (newValue.filter((c) => c.type == DeviceTreeNodeTypeEnum.Device).length > 0)\r\n newReqData.installationNames = newValue.filter((c) => c.type == DeviceTreeNodeTypeEnum.Device).map((c) => c.id);\r\n if (newValue.filter((c) => c.type == DeviceTreeNodeTypeEnum.Folder).length > 0)\r\n newReqData.folderIds = newValue.filter((c) => c.type == DeviceTreeNodeTypeEnum.Folder).map((c) => c.id);\r\n }\r\n\r\n // ritorno alla prima pagina\r\n newReqData.offset = 0;\r\n this.$refs.mainTable.backToTheFirst();\r\n\r\n this[m.SET_REQUEST_DATA](newReqData);\r\n },\r\n },\r\n methods: {\r\n ...mapActions([a.ON_PAGE_LOAD, a.FETCH_INSTALLATIONS_WORKLOAD]),\r\n ...mapMutations([m.SET_REQUEST_DATA]),\r\n\r\n onSubmit(filters) {\r\n var newReqData: GetWorkloadReqData = new GetWorkloadReqData(this.reqData);\r\n newReqData.currency = filters.currency;\r\n newReqData.startDate = filters.startDate;\r\n newReqData.endDate = filters.endDate;\r\n newReqData.offset = 0;\r\n newReqData.queryLimit = this.dataTableItemsPerPage[0];\r\n newReqData.orderBy = [];\r\n newReqData.orderByDescending = [];\r\n this.$refs.mainTable.backToTheFirst();\r\n this[m.SET_REQUEST_DATA](newReqData);\r\n },\r\n },\r\n async mounted() {\r\n this.deviceTreeSelectedObjectItems = [];\r\n await this[a.ON_PAGE_LOAD]();\r\n },\r\n});\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=d0169272&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-menu',{attrs:{\"open-on-hover\":\"\",\"offset-x\":\"\",\"left\":\"\",\"transition\":\"slide-y-transition\",\"close-on-click\":false,\"close-on-content-click\":false},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"icon\":\"\"}},on),[_c('v-fa-icon',{attrs:{\"small\":\"\",\"icon\":\"eye\"}})],1)]}}])},[_c('v-list',_vm._l((_vm.currentHeaders.filter(function (c) { return c.value != 'divider' && c.canBeHidden != false; })),function(header){return _c('v-list-item',{key:header.value},[_c('v-list-item-action',[_c('v-switch',{attrs:{\"input-value\":header.enabled},on:{\"change\":function (e) { return _vm.onSwitchChange(header.value, e); }}})],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" \"+_vm._s(header.text)+\" \")])],1)],1)}),1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { LocalStorageManager } from \"@/plugins/LocalStorageManager\";\r\n\r\nexport default Vue.extend({\r\n data: () => ({\r\n currentHeaders: [],\r\n }),\r\n props: {\r\n pageTitle: String,\r\n initialHeaders: Array,\r\n },\r\n watch: {\r\n initialHeaders() {\r\n this.syncHeaders();\r\n },\r\n currentHeaders() {\r\n this.emitChange();\r\n },\r\n },\r\n methods: {\r\n emitChange() {\r\n this.$emit(\"onValueChange\", this.currentHeaders);\r\n },\r\n getLocalStorageKey(headerValue: string) {\r\n return this.pageTitle + \"_\" + headerValue + \"_visible_column\";\r\n },\r\n onSwitchChange(headerValue: string, enabled: any) {\r\n LocalStorageManager.Write(this.getLocalStorageKey(headerValue), enabled ? \"true\" : \"false\");\r\n this.currentHeaders.find((c) => c.value == headerValue).enabled = enabled;\r\n },\r\n syncHeaders() {\r\n if (!this.initialHeaders) return;\r\n\r\n // aggiungo quelli che devo aggiungere\r\n this.initialHeaders.forEach((c) => {\r\n if (!this.currentHeaders.map((c) => c.value).includes(c.value)) {\r\n this.currentHeaders.push(c);\r\n }\r\n });\r\n let actionsIndex = this.currentHeaders.findIndex((c) => c.value == \"actions\");\r\n if (actionsIndex > -1) this.currentHeaders.push(this.currentHeaders.splice(actionsIndex, 1)[0]);\r\n\r\n this.currentHeaders.forEach((header) => {\r\n this.migrateUndefinedValue(header.value);\r\n const localStorageKey = this.getLocalStorageKey(header.value);\r\n const readValue = LocalStorageManager.Read(localStorageKey);\r\n\r\n if (readValue) {\r\n header.enabled = readValue == \"true\";\r\n } else {\r\n LocalStorageManager.Write(localStorageKey, header.enabled ? \"true\" : \"false\");\r\n }\r\n });\r\n },\r\n migrateUndefinedValue(headerValue) {\r\n const legacyKey = `undefined_${headerValue}_visible_column`;\r\n const readValue = LocalStorageManager.Read(legacyKey);\r\n if (readValue != null && readValue != undefined) {\r\n LocalStorageManager.Write(this.getLocalStorageKey(headerValue), readValue);\r\n LocalStorageManager.Remove(legacyKey);\r\n }\r\n },\r\n },\r\n created() {\r\n this.syncHeaders();\r\n },\r\n});\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ColumnVisibilityFilter.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ColumnVisibilityFilter.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ColumnVisibilityFilter.vue?vue&type=template&id=5751f014&\"\nimport script from \"./ColumnVisibilityFilter.vue?vue&type=script&lang=ts&\"\nexport * from \"./ColumnVisibilityFilter.vue?vue&type=script&lang=ts&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAction } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\ninstallComponents(component, {VBtn,VList,VListItem,VListItemAction,VListItemContent,VListItemTitle,VMenu,VSwitch})\n"],"sourceRoot":""}