{"version":3,"sources":["webpack:///./src/views/bankaccounts/BankAccountMembers.vue?3d3e","webpack:///./src/views/bankaccounts/BankAccountMembers.vue","webpack:///./src/views/bankaccounts/BankAccountMembers.vue?e29b","webpack:///./src/views/bankaccounts/BankAccountMembers.vue?5596"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","name","_v","params","bankAccountId","authorized","_e","headers","members","scopedSlots","_u","key","fn","ref","item","bankAccountMemberId","staticRenderFns","text","align","sortable","value","$store","state","selectedBankAccount","authorizedOperations","BankAccountOperations","VIEW_MEMBERS","resetInitializationValues","api","BankAccountsApi","getMembersAsync","member","jwt","handleInitializationErrorAsync","initializing","initializationError","ViewBase","default","required","component","VAlert","VBtn","VCard","VCardText","VCardTitle","VCol","VContainer","VDataTable","VIcon","VProgressCircular","VRow"],"mappings":"uHAAA,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,KAAK,GAAK,IAAI,GAAK,IAAI,GAAK,MAAM,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,KAAK,GAAK,IAAI,GAAK,IA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,KAAM,SAAUC,MAAO,SAAUC,UAAU,EAAOC,MAAO,UAC1D,CAACH,KAAM,YAAaC,MAAO,OAAQC,UAAU,EAAMC,MAAO,WAC1D,CAACH,KAAM,aAAcC,MAAO,OAAQC,UAAU,EAAMC,MAAO,aAC3D,CAACH,KAAM,OAAQC,MAAO,OAAQC,UAAU,EAAMC,MAAO,aAX7D,kNAuBa1B,KAAK2B,OAAOC,MAAMC,oBAAoBC,qBAAuBC,EAAA,KAAsBC,cAvBhG,wBAyBYhC,KAAKW,YAAa,EAzB9B,SA4BgBX,KAAKiC,4BAECC,EAAM,IAAIC,EAAA,KA9BhC,SA+BqCD,EAAIE,gBAAgBpC,KAAKU,cAAeV,KAAK2B,OAAOC,MAAMS,OAAOC,KA/BtG,OA+BgBtC,KAAKc,QA/BrB,6EAkCsBd,KAAKuC,+BAAL,MAlCtB,yBAqCgBvC,KAAKwC,cAAe,EArCpC,wKAeQ,OAAMxC,KAAKwC,eAAiBxC,KAAKyC,wBAfzC,GAAgDC,EAAA,MAE5C,gBADC,eAAK,CAACC,QAAS,EAAGC,UAAU,K,oCADZ,EAAkB,gBAJtC,eAAU,CACHrC,KAAM,wBAGO,WCpD0Y,I,yJCO3ZsC,EAAY,eACd,EACA/C,EACAwB,GACA,EACA,KACA,KACA,MAIa,aAAAuB,EAAiB,QAehC,IAAkBA,EAAW,CAACC,SAAA,KAAOC,OAAA,KAAKC,QAAA,KAAMC,UAAA,OAAUC,WAAA,OAAWC,OAAA,KAAKC,aAAA,KAAWC,aAAA,KAAWC,QAAA,KAAMC,oBAAA,KAAkBC,OAAA","file":"js/chunk-2d0de76d.ab010e27.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\",\"sm\":\"9\",\"md\":\"9\",\"lg\":\"8\"}},[_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\",\"sm\":\"9\",\"md\":\"9\",\"lg\":\"8\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline justify-center\"},[_vm._v(\"BANK ACCOUNT MEMBERS\")]),_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 members 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.showMembers)?_c('div',[_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.headers,\"items\":_vm.members},scopedSlots:_vm._u([{key:\"item.action\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{attrs:{\"text\":\"\",\"icon\":\"\",\"color\":\"primary\",\"to\":{name: 'bankaccountmember', params: {bankAccountId: _vm.bankAccountId, bankAccountMemberId: item.bankAccountMemberId}}}},[_c('v-icon',[_vm._v(\"mdi-face\")])],1)]}}],null,false,310689364)})],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 BankAccountMemberResponseModel from '@/models/bankaccounts/BankAccountMemberResponseModel';\r\n\r\n@Component({\r\n name: 'BankAccountMembers',\r\n },\r\n)\r\nexport default class BankAccountMembers extends ViewBase {\r\n @Prop({default: 0, required: true})\r\n public bankAccountId!: number;\r\n\r\n public members: BankAccountMemberResponseModel[] = [];\r\n public authorized: boolean = false;\r\n\r\n public headers = [\r\n {text: 'Detail', align: 'center', sortable: false, value: 'action'},\r\n {text: 'Last Name', align: 'left', sortable: true, value: 'surname'},\r\n {text: 'First Name', align: 'left', sortable: true, value: 'givenName'},\r\n {text: 'Role', align: 'left', sortable: true, value: 'roleType'},\r\n ];\r\n\r\n public get showMembers(): 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_MEMBERS )\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.members = await api.getMembersAsync(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!./BankAccountMembers.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!./BankAccountMembers.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BankAccountMembers.vue?vue&type=template&id=b9e1ec2a&\"\nimport script from \"./BankAccountMembers.vue?vue&type=script&lang=ts&\"\nexport * from \"./BankAccountMembers.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 { 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,VBtn,VCard,VCardText,VCardTitle,VCol,VContainer,VDataTable,VIcon,VProgressCircular,VRow})\n"],"sourceRoot":""}