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,EAAEX,gGAA5B;AAA6CY,aAAW,EAAE,CAACR,qDAAD;AAA1D,CAbsC,EActC;AAAEM,MAAI,EAAE,OAAR;AAAiBC,WAAS,EAAEzH,uGAA5B;AAAiD0H,aAAW,EAAE,CAACR,qDAAD;AAA9D,CAdsC,EAetC;AAAEM,MAAI,EAAE,OAAR;AAAiBC,WAAS,EAAEN,iGAA5B;AAA+CO,aAAW,EAAE,CAACR,qDAAD;AAA5D,CAfsC,CAgBtC;AAhBsC,CAAnC","sources":["./src/app/directives/directives.module.ts","./src/app/directives/drag-drop-file.directive.ts","./src/app/forms/client-portal/loans-list/loans-list.component.ts","./src/app/forms/client-portal/loans-list/loans-list.component.html","./src/app/layouts/broker-portal/broker-layout/broker-layout.module.ts","./src/app/layouts/broker-portal/broker-layout/broker-layout.routing.ts"],"sourcesContent":["import { DragDropFileDirective } from './drag-drop-file.directive';\r\n\r\nimport { NgModule } from '@angular/core';\r\nimport { FileUploadModule } from 'ng2-file-upload';\r\n\r\n\r\n@NgModule({\r\n imports: [\r\n FileUploadModule\r\n ],\r\n declarations: [\r\n DragDropFileDirective\r\n ],\r\n exports: [\r\n DragDropFileDirective\r\n ],\r\n providers: []\r\n \r\n})\r\n\r\n\r\nexport class DirectivesModule { }\r\n","import {\r\n Directive,\r\n Output,\r\n Input,\r\n EventEmitter,\r\n HostBinding,\r\n HostListener\r\n} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[appDragDropFile]'\r\n})\r\n\r\nexport class DragDropFileDirective {\r\n @HostBinding('class.fileover') fileOver: boolean;\r\n @Output() fileDropped = new EventEmitter();\r\n\r\n // Dragover listener\r\n @HostListener('dragover', ['$event']) onDragOver(evt) {\r\n evt.preventDefault();\r\n evt.stopPropagation();\r\n this.fileOver = true;\r\n }\r\n\r\n // Dragleave listener\r\n @HostListener('dragleave', ['$event']) public onDragLeave(evt) {\r\n evt.preventDefault();\r\n evt.stopPropagation();\r\n this.fileOver = false;\r\n }\r\n\r\n // Drop listener\r\n @HostListener('drop', ['$event']) public ondrop(evt) {\r\n evt.preventDefault();\r\n evt.stopPropagation();\r\n this.fileOver = false;\r\n let files = evt.dataTransfer.files;\r\n if (files.length > 0) {\r\n this.fileDropped.emit(files);\r\n }\r\n }\r\n \r\n\r\n constructor() { }\r\n\r\n}\r\n","import { Component, ViewChild, AfterViewInit, OnInit } from '@angular/core';\r\nimport { MatPaginator } from '@angular/material/paginator';\r\nimport { MatTableDataSource } from '@angular/material/table';\r\nimport { LoansRecords } from 'app/ts/models/client-interfaces';\r\nimport { ApiService } from 'app/ts/ApiService';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { OtpComponent } from 'app/forms/broker-portal/authenticate/otp/otp.component';\r\nimport { OtpLoan } from 'app/ts/models/user-credentials';\r\nimport { DataSharingService } from 'app/data-sharing-service';\r\n\r\nexport interface LoansRecords2 {\r\n Id: number;\r\n accountNo: string;\r\n approvedPrincipal: number;\r\n loanProductName: string;\r\n disbursedOnDate: string;\r\n otpLoan: OtpLoan;\r\n}\r\n\r\nexport interface columnHeaders {\r\n DisplayName: string;\r\n DbName: string;\r\n}\r\n\r\n@Component({\r\n selector: 'app-loans-list',\r\n templateUrl: './loans-list.component.html',\r\n styleUrls: ['./loans-list.component.scss']\r\n})\r\nexport class LoansListComponent implements OnInit, AfterViewInit {\r\n\r\n @ViewChild(MatPaginator) paginator: MatPaginator;\r\n otpLoan: OtpLoan = {\r\n mobilenumber: '0618331734',\r\n otp: '',\r\n id: 0,\r\n loanId: 0,\r\n };\r\n clientProfile: any;\r\n clientId: any;\r\n Preagrement_Text = 'View Pre-agreement';\r\n Sign_preagreement_Text = 'Sign Pre-agreement';\r\n\r\n constructor(private api: ApiService, private dialog: MatDialog, private dataSharingService: DataSharingService) { }\r\n\r\n displayedColumns: string[] = ['id', 'accountNo', 'approvedPrincipal', 'loanProductName', 'loanStatus', 'disbursedOnDate', 'Actions'];\r\n mobileColumnsToDisplay = ['approvedPrincipal', 'loanProductName', 'loanStatus', 'Actions'];\r\n\r\n columns = [\r\n { DisplayName: 'Loan ID', DbName: 'id' },\r\n { DisplayName: 'Account No', DbName: 'accountNo' },\r\n { DisplayName: 'Principal Amount', DbName: 'approvedPrincipal' },\r\n { DisplayName: 'Loan Product', DbName: 'loanProductName' },\r\n { DisplayName: 'Status', DbName: 'loanStatus' },\r\n { DisplayName: 'Disbursed On Date', DbName: 'disbursedOnDate' },\r\n { DisplayName: 'Actions', DbName: 'Actions' },\r\n ];\r\n\r\n columnsToDisplay: string[] = this.displayedColumns.slice();\r\n dataSource = new MatTableDataSource();\r\n\r\n isDesktopColumn(columnName: string): boolean {\r\n return !['approvedPrincipal', 'loanProductName', 'loanStatus', 'Actions'].includes(columnName);\r\n }\r\n\r\n ngOnInit() {\r\n this.clientProfile = JSON.parse(sessionStorage.getItem('ClientInfo'));\r\n this.clientId = this.clientProfile.client.id;\r\n this.dataSource.data = this.clientProfile.loans;\r\n\r\n // Sort by loan id in descending order\r\n this.dataSource.data.sort((a, b) => b.id - a.id);\r\n this.clientProfile = JSON.parse(sessionStorage.getItem('ClientInfo'));\r\n \r\n }\r\n\r\n\r\n getClientInfo(mobileNumber: string , data: any) {\r\n this.api.GetFullClientInfo(mobileNumber).subscribe((data: any) => {\r\n if(data != null)\r\n {\r\n var json = JSON.stringify(data);\r\n sessionStorage.setItem('ClientInfo', json);\r\n sessionStorage.setItem('clientId', data.client.id.toString());\r\n }\r\n })\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.dataSource.paginator = this.paginator;\r\n this.getClientInfo(this.clientProfile.client.mobileNo, []);\r\n }\r\n\r\n viewPreAgreement(loan: LoansRecords) {\r\n const clientId = Number(sessionStorage.getItem('clientId'));\r\n this.Preagrement_Text = 'please wait';\r\n this.api.getLoanPreeAgreement(this.clientId, loan.id).subscribe((data: any) => {\r\n this.downloadPreagreement(data.text);\r\n loan.viewedPreagreement = true;\r\n this.dataSharingService.setViewedPreAgreement(true);\r\n });\r\n }\r\n\r\n downloadPreAgreement(loan: LoansRecords) {\r\n this.api.viewLoanPreAgreement(this.clientId, loan.id).subscribe((data: any) => {\r\n this.downloadPreagreement(data.text);\r\n loan.viewedPreagreement = true;\r\n });\r\n }\r\n\r\n signAgreement(loan: LoansRecords) {\r\n var clientId = Number(sessionStorage.getItem('clientId'));\r\n this.otpLoan.loanId = loan.id;\r\n this.otpLoan.mobilenumber = this.clientProfile.client.mobileNo;\r\n this.api.generateLoanPreeagreementOtp(this.otpLoan).subscribe((data: any) => {\r\n this.openDialog(data, loan.id);\r\n });\r\n }\r\n\r\n openDialog(id: number, loanid: number, invalid: boolean = false): void {\r\n const dialogRef = this.dialog.open(OtpComponent, {\r\n width: '350px',\r\n data: { otp: '', OtpType: 'Sign Document', InvalidOtp: invalid },\r\n disableClose: false\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => {\r\n\r\n if (result === undefined) return;\r\n\r\n if (result === \"\") return;\r\n\r\n this.otpLoan.otp = result;\r\n this.otpLoan.loanId = loanid;\r\n this.otpLoan.id = id;\r\n\r\n this.api.SignPreeagreementOtp(this.otpLoan).subscribe((data: any) => {\r\n if (data === 'Invalid OTP') {\r\n this.openDialog(0, loanid, true);\r\n return;\r\n }\r\n let currentLoan = this.dataSource.data.find(loan => loan.id === loanid);\r\n currentLoan.confirmed = true;\r\n this.dataSharingService.setsignedPreAgreement(true);\r\n this.downloadPreagreement(data.text);\r\n });\r\n });\r\n }\r\n\r\n downloadPreagreement(data: string) {\r\n const byteCharacters = atob(data);\r\n const byteNumbers = new Array(byteCharacters.length);\r\n for (let i = 0; i < byteCharacters.length; i++) {\r\n byteNumbers[i] = byteCharacters.charCodeAt(i);\r\n }\r\n const byteArray = new Uint8Array(byteNumbers);\r\n const blob = new Blob([byteArray], { type: 'application/pdf' });\r\n\r\n const url = window.URL.createObjectURL(blob);\r\n const a = document.createElement('a');\r\n document.body.appendChild(a);\r\n a.style.display = 'none';\r\n a.href = url;\r\n\r\n const fileName = `preagreement_${Date.now()}.pdf`;\r\n a.download = fileName;\r\n\r\n a.click();\r\n\r\n window.URL.revokeObjectURL(url);\r\n document.body.removeChild(a);\r\n }\r\n}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Loans

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n {{column.DisplayName}}\r\n \r\n \r\n \r\n N/A\r\n \r\n \r\n {{element[column.DbName] | date: 'shortDate'}}\r\n \r\n \r\n {{element[column.DbName] | currency: 'R': 'symbol'}}\r\n \r\n \r\n \r\n fiber_manual_record Pending\r\n \r\n \r\n fiber_manual_record Approved\r\n \r\n \r\n fiber_manual_record Active\r\n \r\n \r\n fiber_manual_record Rejected\r\n \r\n \r\n fiber_manual_record Rejected\r\n \r\n \r\n fiber_manual_record Closed\r\n \r\n \r\n \r\n {{element[column.DbName]}}\r\n \r\n \r\n \r\n \r\n \r\n download\r\n N/A\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n","import { DirectivesModule } from './../../../directives/directives.module';\r\nimport { BrokerLayoutComponent } from './broker-layout.component';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\n\r\nimport { ApiService } from '../../../ts/ApiService';\r\n\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { BrokerLayoutRoutes } from './broker-layout.routing';\r\nimport { BrokerFormsModule } from 'app/forms/broker-portal/broker-forms.module';\r\nimport { BrokerComponentsModule } from 'app/components/broker-portal/broker-components.module';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { FileUploadModule } from 'ng2-file-upload';\r\n\r\n\r\n@NgModule({\r\n imports: [ \r\n HttpClientModule,\r\n CommonModule,\r\n RouterModule.forChild(BrokerLayoutRoutes), \r\n FormsModule,\r\n ReactiveFormsModule,\r\n BrokerFormsModule,\r\n BrokerComponentsModule, \r\n DirectivesModule,\r\n MatDialogModule,\r\n FileUploadModule\r\n ],\r\n declarations: [\r\n ],\r\n providers: [\r\n ApiService\r\n ],\r\n bootstrap: [BrokerLayoutComponent]\r\n})\r\n\r\nexport class BrokerLayoutModule { }\r\n","import { UploadDocumentsComponent } from './../../../forms/broker-portal/upload-documents/upload-documents.component';\r\nimport { Routes } from '@angular/router';\r\nimport { BatchComponent } from 'app/forms/broker-portal/batch-upload/batch.component';\r\nimport { BrokerDashboardComponent } from 'app/components/broker-portal/broker-dashboard/broker-dashboard.component';\r\nimport { BrokerReportsComponent } from 'app/forms/broker-portal/broker-reports/broker-reports.component';\r\nimport { ClientCaptureComponent } from 'app/components/broker-portal/client-capture/client-capture.component';\r\nimport { LoansListComponent } from 'app/forms/client-portal/loans-list/loans-list.component';\r\nimport { AuthGuard } from 'app/auth.guard';\r\nimport { AboutUsComponent } from 'app/forms/broker-portal/about-us/about-us.component';\r\nimport { FindClientComponent } from 'app/forms/broker-portal/find-client/find-client.component';\r\nimport { LoanPendingApprovalComponent } from 'app/components/broker-portal/loan-pending-approval/loan-pending-approval.component';\r\nimport { ClientUpdateComponent } from 'app/components/broker-portal/client-update/client-update.component';\r\nimport { ClientCaptureFinalComponent } from 'app/forms/broker-portal/client-capture-final/client-capture-final.component';\r\n\r\nexport const BrokerLayoutRoutes: Routes = [\r\n\r\n { path: '', component: ClientCaptureComponent},\r\n // { path: 'login', component: LoginComponent },\r\n { path: 'dashboard', component: BrokerDashboardComponent, canActivate: [AuthGuard]},\r\n { path: 'client-capture/:token', component: ClientCaptureComponent},\r\n { path: 'client-capture', component: ClientCaptureComponent},\r\n { path: 'update-client', component: ClientUpdateComponent},\r\n { path: 'client-capture-final', component: ClientCaptureFinalComponent}, //@Note dev\r\n { path: 'find-client', component: FindClientComponent , canActivate: [AuthGuard]},\r\n { path: 'reports', component: BrokerReportsComponent , canActivate: [AuthGuard]},\r\n { path: 'loan-pending-approval', component: LoanPendingApprovalComponent, canActivate: [AuthGuard]},\r\n { path: 'upload-documents', component: UploadDocumentsComponent , canActivate: [AuthGuard]},\r\n { path: 'batch', component: BatchComponent , canActivate: [AuthGuard]},\r\n { path: 'loans', component: LoansListComponent , canActivate: [AuthGuard]},\r\n { path: 'about', component: AboutUsComponent , canActivate: [AuthGuard]}\r\n //{ path: 'about', component: ClientCaptureComponent , canActivate: [AuthGuard]}, //@Note dev\r\n\r\n];\r\n"],"names":["DragDropFileDirective","FileUploadModule","DirectivesModule","imports","declarations","exports","EventEmitter","evt","preventDefault","stopPropagation","fileOver","files","dataTransfer","length","fileDropped","emit","selectors","hostVars","hostBindings","ctx","MatPaginator","MatTableDataSource","ApiService","MatDialog","OtpComponent","DataSharingService","i0","ctx_r29","ctx_r32","ctx_r35","LoansListComponent","api","dialog","dataSharingService","mobilenumber","otp","id","loanId","DisplayName","DbName","displayedColumns","slice","columnName","includes","clientProfile","JSON","parse","sessionStorage","getItem","clientId","client","dataSource","data","loans","sort","a","b","mobileNumber","GetFullClientInfo","subscribe","json","stringify","setItem","toString","paginator","getClientInfo","mobileNo","loan","Number","Preagrement_Text","getLoanPreeAgreement","downloadPreagreement","text","viewedPreagreement","setViewedPreAgreement","viewLoanPreAgreement","otpLoan","generateLoanPreeagreementOtp","openDialog","loanid","invalid","dialogRef","open","width","OtpType","InvalidOtp","disableClose","afterClosed","result","undefined","SignPreeagreementOtp","currentLoan","find","confirmed","setsignedPreAgreement","byteCharacters","atob","byteNumbers","Array","i","charCodeAt","byteArray","Uint8Array","blob","Blob","type","url","window","URL","createObjectURL","document","createElement","body","appendChild","style","display","href","fileName","Date","now","download","click","revokeObjectURL","removeChild","viewQuery","BrokerLayoutComponent","HttpClientModule","RouterModule","CommonModule","FormsModule","ReactiveFormsModule","BrokerLayoutRoutes","BrokerFormsModule","BrokerComponentsModule","MatDialogModule","BrokerLayoutModule","bootstrap","forChild","i1","UploadDocumentsComponent","BatchComponent","BrokerDashboardComponent","BrokerReportsComponent","ClientCaptureComponent","AuthGuard","AboutUsComponent","FindClientComponent","LoanPendingApprovalComponent","ClientUpdateComponent","ClientCaptureFinalComponent","path","component","canActivate"],"sourceRoot":"webpack:///"}