{"version":3,"sources":["webpack:///./src/views/bankaccounts/BankAccountLogs.vue?f889","webpack:///./src/views/bankaccounts/BankAccountLogs.vue","webpack:///./src/views/bankaccounts/BankAccountLogs.vue?5c02","webpack:///./src/views/bankaccounts/BankAccountLogs.vue?805d"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","name","_v","params","bankAccountId","authorized","_e","headers","logs","scopedSlots","_u","key","fn","ref","item","_s","_f","createdDateTimeUtc","staticRenderFns","text","align","sortable","value","$store","state","selectedBankAccount","authorizedOperations","BankAccountOperations","VIEW_LOGS","resetInitializationValues","api","BankAccountsApi","getLogsAsync","member","jwt","handleInitializationErrorAsync","initializing","initializationError","ViewBase","default","required","component","VAlert","VCard","VCardText","VCardTitle","VCol","VContainer","VDataTable","VIcon","VProgressCircular","VRow"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAU,WAAW,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,GAAK,OAAO,CAACF,EAAG,cAAc,CAACG,YAAY,OAAOD,MAAM,CAAC,GAAK,CAACE,KAAM,wBAAwB,CAACR,EAAIS,GAAG,mBAAmBL,EAAG,SAAS,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACN,EAAIS,GAAG,iBAAiBL,EAAG,cAAc,CAACG,YAAY,OAAOD,MAAM,CAAC,GAAK,CAACE,KAAM,uBAAwBE,OAAO,CAACC,cAAeX,EAAIW,kBAAkB,CAACX,EAAIS,GAAG,mBAAmB,IAAI,GAAGL,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAU,WAAW,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,GAAK,OAAO,CAACF,EAAG,SAAS,CAACA,EAAG,eAAe,CAACG,YAAY,2BAA2B,C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C,MAAO,OAAQC,UAAU,EAAOC,MAAO,YAC3D,CAACH,KAAM,aAAcC,MAAO,OAAQC,UAAU,EAAMC,MAAO,cAZnE,kNAwBa5B,KAAK6B,OAAOC,MAAMC,oBAAoBC,qBAAuBC,EAAA,KAAsBC,WAxBhG,wBA0BYlC,KAAKW,YAAa,EA1B9B,SA6BgBX,KAAKmC,4BAECC,EAAM,IAAIC,EAAA,KA/BhC,SAgCkCD,EAAIE,aAAatC,KAAKU,cAAeV,KAAK6B,OAAOC,MAAMS,OAAOC,KAhChG,OAgCgBxC,KAAKc,KAhCrB,6EAmCsBd,KAAKyC,+BAAL,MAnCtB,yBAsCgBzC,KAAK0C,cAAe,EAtCpC,qKAgBQ,OAAM1C,KAAK0C,eAAiB1C,KAAK2C,wBAhBzC,GAA6CC,EAAA,MAEzC,gBADC,eAAK,CAACC,QAAS,EAAGC,UAAU,K,oCADZ,EAAe,gBAJnC,eAAU,CACHvC,KAAM,qBAGO,WCpDuY,I,6ICOxZwC,EAAY,eACd,EACAjD,EACA0B,GACA,EACA,KACA,KACA,MAIa,aAAAuB,EAAiB,QAchC,IAAkBA,EAAW,CAACC,SAAA,KAAOC,QAAA,KAAMC,UAAA,OAAUC,WAAA,OAAWC,OAAA,KAAKC,aAAA,KAAWC,aAAA,KAAWC,QAAA,KAAMC,oBAAA,KAAkBC,OAAA","file":"js/chunk-2d0cb687.d81f3b0d.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"xs\":\"12\"}},[_c('router-link',{staticClass:\"mr-2\",attrs:{\"to\":{name: 'memberbankaccounts'}}},[_vm._v(\"Bank Accounts\")]),_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-forward\")]),_c('router-link',{staticClass:\"ml-2\",attrs:{\"to\":{name: 'bankaccountdashboard', params:{bankAccountId: _vm.bankAccountId}}}},[_vm._v(\"Bank Account\")])],1)],1),_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"xs\":\"12\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline justify-center\"},[_vm._v(\"LOGS\")]),_c('v-card-text',{staticClass:\"mt-2 black--text\"},[(!_vm.authorized)?_c('div',{staticClass:\"text-center\"},[_c('v-alert',{attrs:{\"type\":\"error\",\"outlined\":\"\"}},[_vm._v(\"Viewing logs is not authorized.\")])],1):_vm._e(),(_vm.authorized)?_c('div',[(_vm.initializing)?_c('div',{staticClass:\"text-center\"},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})],1):_vm._e(),(_vm.initializationError)?_c('div',{staticClass:\"text-center\"},[_c('v-alert',{attrs:{\"type\":\"error\",\"outlined\":\"\"}},[_vm._v(\"An error occurred while processing the request.\")])],1):_vm._e(),(_vm.showLogs)?_c('div',[_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.headers,\"items\":_vm.logs},scopedSlots:_vm._u([{key:\"item.createdDateTimeUtc\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"formatDateTime\")(item.createdDateTimeUtc))+\" \")]}}],null,false,3838962644)})],1):_vm._e()]):_vm._e()])],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport {Component, Prop, Vue} from 'vue-property-decorator';\r\nimport ViewBase from '@/views/ViewBase';\r\nimport {BankAccountOperations} from '@/enums/BankAccountOperations';\r\nimport BankAccountsApi from '@/apis/BankAccountsApi';\r\nimport BankAccountLogResponseModel from '@/models/bankaccounts/BankAccountLogResponseModel';\r\n\r\n@Component({\r\n name: 'BankAccountLogs',\r\n },\r\n)\r\nexport default class BankAccountLogs extends ViewBase {\r\n @Prop({default: 0, required: true})\r\n public bankAccountId!: number;\r\n\r\n public logs: BankAccountLogResponseModel[] = [];\r\n public authorized: boolean = false;\r\n\r\n public headers = [\r\n {text: 'Date/Time', align: 'left', sortable: true, value: 'createdDateTimeUtc'},\r\n {text: 'Field', align: 'left', sortable: true, value: 'fieldName'},\r\n {text: 'Old Value', align: 'left', sortable: false, value: 'oldValue'},\r\n {text: 'New Value', align: 'left', sortable: false, value: 'newValue'},\r\n {text: 'Changed By', align: 'left', sortable: true, value: 'createdBy'},\r\n ];\r\n\r\n public get showLogs(): boolean {\r\n if ( !this.initializing && !this.initializationError ) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public async created() {\r\n if ( this.$store.state.selectedBankAccount.authorizedOperations & BankAccountOperations.VIEW_LOGS )\r\n {\r\n this.authorized = true;\r\n\r\n try {\r\n this.resetInitializationValues();\r\n\r\n const api = new BankAccountsApi();\r\n this.logs = await api.getLogsAsync(this.bankAccountId, this.$store.state.member.jwt);\r\n }\r\n catch ( err ) {\r\n await this.handleInitializationErrorAsync(err);\r\n }\r\n finally {\r\n this.initializing = false;\r\n }\r\n }\r\n }\r\n}\r\n\r\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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BankAccountLogs.vue?vue&type=script&lang=ts&\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BankAccountLogs.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BankAccountLogs.vue?vue&type=template&id=35f6d466&\"\nimport script from \"./BankAccountLogs.vue?vue&type=script&lang=ts&\"\nexport * from \"./BankAccountLogs.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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VAlert,VCard,VCardText,VCardTitle,VCol,VContainer,VDataTable,VIcon,VProgressCircular,VRow})\n"],"sourceRoot":""}