{"version":3,"sources":["webpack:///./src/pages/batch-management/BatchManagement.vue?6d45","webpack:///./src/pages/batch-management/components/BatchTxnsTable.vue?2d94","webpack:///./src/pages/batch-management/components/BatchTxnsTable.vue","webpack:///./src/pages/batch-management/components/BatchTxnsTable.vue?d655","webpack:///./src/pages/batch-management/components/BatchTxnsTable.vue?6155","webpack:///./src/pages/batch-management/components/SingleTxnsTable.vue?3d0a","webpack:///./src/pages/batch-management/components/SingleTxnModal.vue?d604","webpack:///./src/pages/batch-management/components/SingleTxnModal.vue","webpack:///./src/pages/batch-management/components/SingleTxnModal.vue?fde4","webpack:///./src/pages/batch-management/components/SingleTxnModal.vue?44d1","webpack:///./src/pages/batch-management/components/SingleTxnsTable.vue","webpack:///./src/pages/batch-management/components/SingleTxnsTable.vue?53ec","webpack:///./src/pages/batch-management/components/SingleTxnsTable.vue?cd84","webpack:///./src/pages/batch-management/BatchManagement.vue","webpack:///./src/pages/batch-management/BatchManagement.vue?cdc1","webpack:///./src/pages/batch-management/BatchManagement.vue?46d1"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","attrs","staticRenderFns","_v","columns","rows","on","onRowClick","scopedSlots","_u","key","fn","props","column","field","_s","row","createdDate","amount","class","statusClass","status","transactionsModule","searchTerm","batchTxns","fetchBatchTxns","getBatchTxns","result","batchList","length","filter","batch","transactionsList","sort","a","b","ac","created","seconds","bc","map","statusLabel","statusLabelClass","toLowerCase","transaction","reference","id","_batchCreatedDate","_getTotalAmount","actions","txnList","totalAmt","forEach","txn","parseFloat","num","params","$router","push","path","label","sortable","Action","components","CustomTable","CustomInput","SvgIcon","component","selectedBatch","accounts","resending","closeSingleTxnModal","onApproveBatch","onRejectBatch","onResendOTP","onCancelApproval","onConfirmApproval","otpError","onOTPModalClose","onOTPCodeSubmit","onProcessedModalClose","onCancelReject","onConfirmReject","$event","$emit","sourceAccountID","availableBalance","_e","destinationAccountName","date","settlementrail","destinationaccount","ownername","destinationAccountID","accountid","sourceaccount","sourceAccountName","ref","remarks","purpose","sourceAccount","find","acc","accountNumber","default","Loader","use","orgModule","error","singleTxns","_txnCreatedDate","fetchTxns","getSingleTxns","$modal","show","hide","showOTPModal","code","processTFA","batchID","err","message","resendTFA","State","SingleTxnModal","ApproveBatchModal","RejectBatchModal","ProcessedBatchModal","OTPModal","Tabs","TabItem","BatchTxnsTable","SingleTxnsTable"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACN,EAAIO,GAAG,GAAGH,EAAG,OAAO,CAACA,EAAG,UAAU,CAACI,MAAM,CAAC,KAAO,wBAAwB,CAACJ,EAAG,oBAAoB,GAAGA,EAAG,UAAU,CAACI,MAAM,CAAC,KAAO,qBAAqB,UAAW,IAAO,CAACJ,EAAG,mBAAmB,IAAI,IAAI,IACxUK,EAAkB,CAAC,WAAa,IAAIT,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,0CAA0C,CAACF,EAAG,KAAK,CAACE,YAAY,wCAAwC,CAACN,EAAIU,GAAG,wC,wECD5O,EAAS,WAAa,IAAIV,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,cAAc,CAACI,MAAM,CAAC,QAAUR,EAAIW,QAAQ,KAAOX,EAAIY,KAAK,kBAAiB,EAAK,qBAAqB,eAAe,WAAa,aAAaC,GAAG,CAAC,eAAeb,EAAIc,YAAYC,YAAYf,EAAIgB,GAAG,CAAC,CAACC,IAAI,YAAYC,GAAG,SAASC,GAAO,MAAO,CAAyB,gBAAvBA,EAAMC,OAAOC,MAAyBjB,EAAG,MAAM,CAACE,YAAY,6CAA6C,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eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,I,QCcM,EAArB,qIAA6C,QAAxB,EAAe,gBARnC,eAAU,CACTjE,WAAY,CACVkE,KAAA,OACAC,QAAA,OACAC,eAAA,EACAC,gBAAA,MAGiB,WChCyuB,ICO1vB,EAAY,eACd,EACA5I,EACAU,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-2d0db471.40209d02.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"py-10 px-12\"},[_vm._m(0),_c('Tabs',[_c('TabItem',{attrs:{\"name\":\"SINGLE TRANSACTIONS\"}},[_c('SingleTxnsTable')],1),_c('TabItem',{attrs:{\"name\":\"BATCH TRANSACTIONS\",\"selected\":true}},[_c('BatchTxnsTable')],1)],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"flex items-center justify-between mb-8\"},[_c('h2',{staticClass:\"text-3xl font-semibold text-blue-900\"},[_vm._v(\" Batch Transaction Management \")])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-6\"},[_c('CustomTable',{attrs:{\"columns\":_vm.columns,\"rows\":_vm.rows,\"header-actions\":true,\"search-placeholder\":\"Search Batch\",\"styleClass\":\"vgt-table\"},on:{\"on-row-click\":_vm.onRowClick},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field === 'createdDate')?_c('div',{staticClass:\"text-sm text-blue-900 whitespace-pre-line\"},[_vm._v(\" \"+_vm._s(props.row.createdDate)+\" \")]):(props.column.field === 'amount')?_c('div',{staticClass:\"text-sm text-blue-900\"},[_vm._v(\" PHP \"+_vm._s(props.row.amount)+\" \")]):(props.column.field === 'status')?_c('div',{staticClass:\"text-white uppercase text-center rounded-full py-2 text-xs\",class:[props.row.statusClass]},[_vm._v(\" \"+_vm._s(props.row.status)+\" \")]):_c('div',{staticClass:\"text-sm text-blue-900\"},[_vm._v(\" \"+_vm._s(props.row[props.column.field])+\" \")])]}}])})],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\nimport { Vue, Component } from \"vue-property-decorator\";\nimport { namespace } from \"vuex-class\";\n\nimport { CustomTable, CustomInput, SvgIcon } from \"@components\";\nimport {\n unixToDateString,\n getBatchStatusLabel,\n formatCurrency,\n} from \"@/utils/common\";\nimport { Batch, ListBatchResponse } from \"@/proto/batch/all_pb\";\nimport { Transaction } from \"@/proto/transactions/all_pb\";\n\nconst transactionsModule = namespace(\"transactions\");\n\n@Component({\n components: {\n CustomTable,\n CustomInput,\n SvgIcon,\n },\n})\nexport default class BatchTxnsTable extends Vue {\n @transactionsModule.Action(\"getBatchTxns\")\n getBatchTxns!: (batch: Array) => ListBatchResponse.AsObject;\n\n searchTerm = \"\";\n columns = {};\n batchTxns: Array = [];\n\n mounted() {\n this.fetchBatchTxns();\n }\n\n async fetchBatchTxns() {\n const result = await this.getBatchTxns([]);\n this.batchTxns = result.batchList;\n }\n\n get rows() {\n // If currently empty just explicitly return an empty array\n if (!this.batchTxns.length) {\n return [];\n }\n\n // Remove any empty transactionList\n let batchTxns = this.batchTxns.filter((batch) => {\n return batch.transactionsList.length !== 0;\n });\n\n // Sort single batch txn by created date\n batchTxns = batchTxns.sort((a, b) => {\n const ac = a.created.seconds;\n const bc = b.created.seconds;\n\n return ac > bc ? -1 : ac < bc ? 1 : 0;\n });\n\n return batchTxns.map((batch) => {\n const statusLabel = getBatchStatusLabel(batch.status);\n const statusLabelClass = `batch-${statusLabel.toLowerCase()}`;\n\n return {\n transaction: \"Batch Debit\",\n reference: batch.id,\n createdDate: this._batchCreatedDate(batch.created.seconds),\n status: statusLabel,\n statusClass: statusLabelClass,\n amount: this._getTotalAmount(batch.transactionsList),\n actions: \"\",\n };\n });\n }\n\n _batchCreatedDate(createdDate: number): string {\n if (!createdDate) return \"N/A\";\n return unixToDateString(createdDate);\n }\n\n _getTotalAmount(txnList: Array) {\n let totalAmt = 0;\n\n txnList.forEach((txn) => {\n totalAmt += parseFloat(txn.amount?.num as string);\n });\n\n return formatCurrency(totalAmt / 100);\n }\n\n onRowClick(params: Record) {\n this.$router.push({\n path: `/batches/${params.row.reference}`,\n });\n }\n\n created() {\n this.columns = [\n {\n field: \"transaction\",\n label: \"Transaction\",\n sortable: false,\n },\n {\n field: \"reference\",\n label: \"Reference\",\n sortable: false,\n },\n {\n field: \"createdDate\",\n label: \"Created Date\",\n sortable: false,\n },\n {\n field: \"amount\",\n label: \"Amount\",\n sortable: false,\n },\n {\n field: \"status\",\n label: \"Status\",\n sortable: false,\n },\n ];\n }\n}\n","import mod from \"-!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./BatchTxnsTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./BatchTxnsTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BatchTxnsTable.vue?vue&type=template&id=a1151d9a&\"\nimport script from \"./BatchTxnsTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./BatchTxnsTable.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/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('div',{staticClass:\"mt-6\"},[_c('CustomTable',{attrs:{\"columns\":_vm.columns,\"rows\":_vm.rows,\"header-actions\":true,\"search-placeholder\":\"Search Transaction\",\"styleClass\":\"vgt-table\"},on:{\"on-row-click\":_vm.onRowClick},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field === 'status')?_c('div',{staticClass:\"text-white uppercase text-center rounded-full py-2 text-xs\",class:[props.row.statusClass]},[_vm._v(\" \"+_vm._s(props.row.status)+\" \")]):(props.column.field === 'createdDate')?_c('div',{staticClass:\"text-sm text-blue-900 whitespace-pre-line\"},[_vm._v(\" \"+_vm._s(props.row.createdDate)+\" \")]):(props.column.field === 'amount')?_c('div',{staticClass:\"text-sm text-blue-900\"},[_vm._v(\" PHP \"+_vm._s(props.row.amount)+\" \")]):_c('div',{staticClass:\"text-sm text-blue-900\"},[_vm._v(\" \"+_vm._s(props.row[props.column.field])+\" \")])]}}])}),_c('modal',{attrs:{\"classes\":\"rounded-lg bg-white\",\"name\":\"single-txn-modal\",\"height\":\"auto\"}},[_c('SingleTxnModal',{attrs:{\"batch\":_vm.selectedBatch,\"accounts\":_vm.accounts,\"resending\":_vm.resending},on:{\"on-close-modal\":_vm.closeSingleTxnModal,\"on-approve\":_vm.onApproveBatch,\"on-reject\":_vm.onRejectBatch,\"on-resend-otp\":_vm.onResendOTP}})],1),_c('modal',{attrs:{\"classes\":\"rounded-lg bg-white\",\"name\":\"approve-txn-modal\",\"height\":\"auto\"}},[_c('ApproveBatchModal',{attrs:{\"batch\":_vm.selectedBatch},on:{\"on-cancel-approval\":_vm.onCancelApproval,\"on-confirm-approval\":_vm.onConfirmApproval}})],1),_c('modal',{attrs:{\"classes\":\"rounded-lg bg-white\",\"name\":\"otp-modal\",\"height\":\"auto\"}},[_c('OTPModal',{attrs:{\"modalTitle\":\"Verify Transfer\",\"externalError\":_vm.otpError},on:{\"on-modal-close\":_vm.onOTPModalClose,\"on-submit\":_vm.onOTPCodeSubmit}})],1),_c('modal',{attrs:{\"classes\":\"rounded-lg bg-white\",\"name\":\"processed-txn-modal\",\"height\":\"auto\"}},[_c('ProcessedBatchModal',{attrs:{\"is-single-txn\":true},on:{\"on-close\":_vm.onProcessedModalClose}})],1),_c('modal',{attrs:{\"classes\":\"rounded-lg bg-white\",\"name\":\"reject-txn-modal\",\"height\":\"auto\"}},[_c('RejectBatchModal',{attrs:{\"batch\":_vm.selectedBatch},on:{\"on-cancel-reject\":_vm.onCancelReject,\"on-confirm-reject\":_vm.onConfirmReject}})],1)],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('div',[_c('div',{staticClass:\"flex flex-col rounded-xl h-full\"},[_c('div',{staticClass:\"flex justify-between items-center px-8 py-4 border-b border-grey\"},[_c('span',{staticClass:\"text-lg leading-none font-semibold text-blue-900 uppercase\"},[_vm._v(\" TRANSFER SUMMARY \")]),_c('button',{on:{\"click\":function($event){return _vm.$emit('on-close-modal')}}},[_c('SvgIcon',{staticClass:\"w-8 h-8 text-blue-900\",attrs:{\"name\":\"Close\"}})],1)]),_c('div',{staticClass:\"px-12 py-10 border-b border-grey\"},[_c('div',{staticClass:\"flex items-start pb-4 border-b\"},[_c('span',{staticClass:\"w-1/2\"},[_vm._v(\"Transfer From\")]),_c('div',{staticClass:\"flex flex-col w-1/2\"},[_c('span',{staticClass:\"font-semibold\"},[_vm._v(_vm._s(_vm.txn.sourceAccountID))]),(_vm.availableBalance)?_c('div',{staticClass:\"w-full\"},[_vm._v(\" PHP \"+_vm._s(_vm.availableBalance)+\" \")]):_vm._e()])]),_c('div',{staticClass:\"flex items-start pt-4 pb-2\"},[_c('span',{staticClass:\"w-1/2\"},[_vm._v(\"Beneficiary Account Name\")]),_c('div',{staticClass:\"flex flex-col w-1/2\"},[_c('span',{staticClass:\"font-semibold\"},[_vm._v(_vm._s(_vm.txn.destinationAccountName))])])]),_c('div',{staticClass:\"flex items-start pb-2\"},[_c('span',{staticClass:\"w-1/2\"},[_vm._v(\"Beneficiary Account No.\")]),_c('div',{staticClass:\"flex flex-col w-1/2\"},[_c('span',{staticClass:\"font-semibold\"},[_vm._v(_vm._s(_vm.txn.sourceAccountID))])])]),_c('div',{staticClass:\"flex items-start pb-4 border-b\"},[_c('span',{staticClass:\"w-1/2\"},[_vm._v(\"Created Date\")]),_c('div',{staticClass:\"flex flex-col w-1/2\"},[_c('span',[_vm._v(_vm._s(_vm.txn.date))])])]),_c('div',{staticClass:\"flex items-start py-4 border-b\"},[_c('span',{staticClass:\"w-1/2\"},[_vm._v(\"Amount\")]),_c('div',{staticClass:\"flex flex-col w-1/2\"},[_c('span',[_vm._v(\"PHP \"+_vm._s(_vm.txn.amount))])])]),_c('div',{staticClass:\"flex items-start pt-4\"},[_c('span',{staticClass:\"w-1/2\"},[_vm._v(\"Mode\")]),_c('div',{staticClass:\"flex flex-col w-1/2\"},[_c('span',[_vm._v(_vm._s(_vm.txn.settlementrail || \"N/A\"))])])])]),(_vm.isPending)?_c('div',{staticClass:\"flex justify-end px-8 py-4\"},[_c('button',{staticClass:\"btn btn-grey mr-4\",on:{\"click\":function($event){return _vm.$emit('on-reject')}}},[_vm._v(\" REJECT \")]),_c('button',{staticClass:\"btn btn-orange\",on:{\"click\":function($event){return _vm.$emit('on-approve')}}},[_vm._v(\" APPROVE \")])]):_vm._e(),(_vm.isApproved)?_c('div',{staticClass:\"flex justify-end px-8 py-4\"},[_c('button',{staticClass:\"btn btn-orange\",on:{\"click\":function($event){return _vm.$emit('on-resend-otp')}}},[(_vm.resending)?_c('div',[(_vm.resending)?_c('Loader',{attrs:{\"icon-class\":\"w-5 h-5 mr-4\"}}):_vm._e(),_c('span',[_vm._v(\"PROCESSING\")])],1):_c('div',[_vm._v(\"PROCESS\")])])]):_vm._e()])])}\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\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\nimport { Vue, Component, Prop } from \"vue-property-decorator\";\n\nimport { SvgIcon, Loader } from \"@/components\";\nimport { Batch } from \"@/proto/batch/all_pb\";\nimport { unixToDateString, formatCurrency } from \"@/utils/common\";\nimport { OrgAccount } from \"@/types\";\n\n@Component({\n components: {\n SvgIcon,\n Loader,\n },\n})\nexport default class SingleTxnModal extends Vue {\n @Prop({ default: false })\n resending!: boolean;\n\n @Prop()\n batch!: Batch.AsObject;\n\n @Prop()\n accounts!: Array;\n\n get txn() {\n const txn = this.batch.transactionsList[0];\n const amount = parseFloat(txn?.amount?.num as string);\n\n return {\n destinationAccountName: txn?.destinationaccount?.ownername || \"N/A\",\n destinationAccountID: txn?.destinationaccount?.accountid || \"N/A\",\n sourceAccountID: txn?.sourceaccount?.accountid,\n sourceAccountName: txn?.sourceaccount?.ownername || \"N/A\",\n settlementrail: txn?.settlementrail,\n date: unixToDateString(this.batch?.created?.seconds),\n ref: this.batch?.id,\n remarks: this.batch?.purpose,\n amount: formatCurrency(amount / 100),\n };\n }\n\n get isProcessed() {\n return this.batch.status === \"Processed\";\n }\n\n get isProcessing() {\n return this.batch.status === \"Processing\";\n }\n\n get isPending() {\n return this.batch.status === \"Created\";\n }\n\n get isApproved() {\n return this.batch.status === \"Approved\";\n }\n\n get availableBalance() {\n const txn = this.batch.transactionsList[0];\n const sourceAccount: OrgAccount = this.accounts.find(\n (acc) => acc.accountNumber === txn.sourceaccount?.accountid\n ) as OrgAccount;\n\n if (sourceAccount.availableBalance) {\n return formatCurrency(sourceAccount.availableBalance);\n }\n\n return formatCurrency(0);\n }\n}\n","import mod from \"-!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleTxnModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleTxnModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SingleTxnModal.vue?vue&type=template&id=8d3411a2&\"\nimport script from \"./SingleTxnModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./SingleTxnModal.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/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\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\nimport { Vue, Component } from \"vue-property-decorator\";\nimport { namespace } from \"vuex-class\";\nimport VModal from \"vue-js-modal\";\n\nVue.use(VModal);\n\nimport {\n CustomTable,\n CustomInput,\n SvgIcon,\n ApproveBatchModal,\n RejectBatchModal,\n ProcessedBatchModal,\n OTPModal,\n} from \"@components\";\nimport SingleTxnModal from \"./SingleTxnModal.vue\";\nimport {\n unixToDateString,\n getBatchStatusLabel,\n formatCurrency,\n} from \"@/utils/common\";\nimport { ListBatchResponse, Batch } from \"@/proto/batch/all_pb\";\nimport { OrgAccount } from \"@/types\";\n\nconst transactionsModule = namespace(\"transactions\");\nconst orgModule = namespace(\"org\");\n\ninterface TFAPayload {\n code: string;\n batchID: string;\n}\n\n@Component({\n components: {\n CustomTable,\n CustomInput,\n SvgIcon,\n SingleTxnModal,\n ApproveBatchModal,\n RejectBatchModal,\n ProcessedBatchModal,\n OTPModal,\n },\n})\nexport default class SingleTxnsTable extends Vue {\n @orgModule.State(\"accounts\") accounts!: OrgAccount[];\n\n @transactionsModule.Action(\"getSingleTxns\")\n getSingleTxns!: () => ListBatchResponse.AsObject;\n @transactionsModule.Action(\"processTFA\") processTFA!: (\n payload: TFAPayload\n ) => void;\n @transactionsModule.Action(\"resendTFA\") resendTFA!: (batchID: string) => void;\n\n searchTerm = \"\";\n otpError = \"\";\n error = \"\";\n resending = false;\n selectedBatch: Batch.AsObject = {} as Batch.AsObject;\n singleTxns: Array = [];\n\n get columns() {\n return [\n {\n field: \"transaction\",\n label: \"Transaction\",\n sortable: false,\n },\n {\n field: \"reference\",\n label: \"Reference\",\n sortable: false,\n },\n {\n field: \"createdDate\",\n label: \"Date\",\n sortable: false,\n },\n {\n field: \"amount\",\n label: \"Amount\",\n sortable: false,\n },\n {\n field: \"status\",\n label: \"Status\",\n sortable: false,\n },\n ];\n }\n\n get rows() {\n // If currently empty just explicitly return an empty array\n if (!this.singleTxns.length) {\n return [];\n }\n\n // Remove any empty transactionList\n let singleTxns = this.singleTxns.filter((txn) => {\n return txn.transactionsList.length !== 0;\n });\n\n // Sort single batch txn by created date\n singleTxns = singleTxns.sort((a, b) => {\n const ac = a.created.seconds;\n const bc = b.created.seconds;\n\n return ac > bc ? -1 : ac < bc ? 1 : 0;\n });\n\n return singleTxns.map((batch) => {\n const txn = batch.transactionsList[0];\n const statusLabel = getBatchStatusLabel(batch.status);\n const statusLabelClass = `batch-${statusLabel.toLowerCase()}`;\n\n return {\n transaction: \"Fund Transfer\",\n reference: batch.id,\n createdDate: this._txnCreatedDate(batch.created.seconds),\n status: statusLabel,\n statusClass: statusLabelClass,\n amount: formatCurrency(parseFloat(txn.amount?.num as string) / 100),\n actions: \"\",\n };\n });\n }\n\n mounted() {\n this.fetchTxns();\n }\n\n async fetchTxns() {\n const result = await this.getSingleTxns();\n this.singleTxns = result.batchList;\n }\n\n onRowClick(params: Record) {\n const batch = this.singleTxns.find(\n (batch) => batch.id === params.row.reference\n ) as Batch.AsObject;\n\n this.selectedBatch = batch;\n this.$modal.show(\"single-txn-modal\");\n }\n\n closeSingleTxnModal() {\n this.$modal.hide(\"single-txn-modal\");\n }\n\n onApproveBatch() {\n this.closeSingleTxnModal();\n this.$modal.show(\"approve-txn-modal\");\n }\n\n onCancelApproval() {\n this.$modal.hide(\"approve-txn-modal\");\n }\n\n onCancelReject() {\n this.$modal.hide(\"reject-txn-modal\");\n }\n\n onConfirmReject() {\n this.$modal.hide(\"reject-txn-modal\");\n this.fetchTxns();\n }\n\n onConfirmApproval() {\n this.fetchTxns();\n this.$modal.hide(\"approve-txn-modal\");\n this.showOTPModal();\n }\n\n onProcessedModalClose() {\n this.$modal.hide(\"processed-txn-modal\");\n }\n\n onOTPModalClose() {\n this.$modal.hide(\"otp-modal\");\n }\n\n async onOTPCodeSubmit(code: string) {\n try {\n await this.processTFA({\n code: code,\n batchID: this.selectedBatch.id,\n });\n this.$modal.hide(\"otp-modal\");\n this.$modal.show(\"processed-txn-modal\");\n } catch (error) {\n const err = error as Error;\n this.otpError = err.message;\n }\n\n this.fetchTxns();\n }\n\n async onResendOTP() {\n this.resending = true;\n\n try {\n await this.resendTFA(this.selectedBatch.id);\n this.closeSingleTxnModal();\n this.showOTPModal();\n } catch (error) {\n const err = error as Error;\n this.error = err.message;\n } finally {\n this.resending = false;\n }\n }\n\n showOTPModal() {\n this.otpError = \"\";\n this.$modal.show(\"otp-modal\");\n }\n\n onRejectBatch() {\n this.closeSingleTxnModal();\n this.$modal.show(\"reject-txn-modal\");\n }\n\n _txnCreatedDate(createdDate: number): string {\n if (!createdDate) return \"N/A\";\n return unixToDateString(createdDate);\n }\n}\n","import mod from \"-!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleTxnsTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleTxnsTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SingleTxnsTable.vue?vue&type=template&id=4386605a&\"\nimport script from \"./SingleTxnsTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./SingleTxnsTable.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Vue, Component } from \"vue-property-decorator\";\n\nimport { Tabs, TabItem } from \"@/components\";\nimport BatchTxnsTable from \"./components/BatchTxnsTable.vue\";\nimport SingleTxnsTable from \"./components/SingleTxnsTable.vue\";\n\n@Component({\n components: {\n Tabs,\n TabItem,\n BatchTxnsTable,\n SingleTxnsTable,\n },\n})\nexport default class BatchManagement extends Vue {}\n","import mod from \"-!../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./BatchManagement.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/.pnpm/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../node_modules/.pnpm/babel-loader@8.2.3_7f185b6b63b1b293762538aa414d8c1b/node_modules/babel-loader/lib/index.js!../../../node_modules/.pnpm/ts-loader@6.2.2_typescript@3.9.10/node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/.pnpm/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./BatchManagement.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BatchManagement.vue?vue&type=template&id=28b1450a&\"\nimport script from \"./BatchManagement.vue?vue&type=script&lang=ts&\"\nexport * from \"./BatchManagement.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/.pnpm/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/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":""}