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","ViewOrganization","ManageOrganization","ViewOrganizationSettings","ManageOrganizationSettings","ViewDonorInformation","ManageDonorInformation","ViewUsers","ManageUsers","ManageManualDeposits","ViewManualDeposits","ViewRecurringPayments","ManageRecurringPayments","ViewOrgRecurringPayment","ManageOrgRecurringPayment","OtpMode","Phone","Email","UserType","Individual","Company","TransactionType","Cash","Card","eCheck","Check","ManualDeposit","Role","Donor","Organization","SuperAdmin","PaymentGatewaySessionStatus","Pending","Processed","Error","Cancelled","Declined","AlertModal","constructor","activeModal","this","alertMessage","title","buttonText","close","static","t","i0","i1","_angular_core__WEBPACK_IMPORTED_MODULE_0__","VBU","selectors","inputs","decls","vars","consts","template","rf","ctx","item_r2","_r1","$implicit","ctx_r2","onClickPage","_c0","activePage","PaginationComponent","changeDetectorRef","totalRecords","recordsPerPage","pages","pageChangeSubject","BehaviorSubject","pageChange$","asObservable","ngOnChanges","pageCount","getPageCount","getArrayOfPage","detectChanges","totalPage","roundedPageCount","Math","floor","pageArray","i","push","getPageOption","skip","take","next","previous","gotoFirstPage","pageNumber","length","features","PaginationComponent_li_6_Template","GenericValidator","validationMessages","processMessages","container","messages","controlKey","controls","hasOwnProperty","c","FormGroup","childMessages","Object","assign","FormArray","forEach","arrayElementFormGroup","dirty","touched","errors","keys","map","messageKey","processMessagesV2","skipTouched","getErrorCount","errorCount","console","log","requiredStringValidator","control","value","trim","requiredString","debounceTime","dueTime","scheduler","asyncScheduler","operate","source","subscriber","activeTask","lastValue","lastTime","emit","unsubscribe","emitWhenIdle","targetTime","now","schedule","undefined","add","subscribe","createOperatorSubscriber","complete"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./src/app/models/enum.ts","./src/app/shared/components/alert-modal/alert-modal.component.ts","./src/app/shared/components/alert-modal/alert-modal.component.html","./src/app/shared/components/pagination/pagination.component.html","./src/app/shared/components/pagination/pagination.component.ts","./src/app/shared/generic-validator.ts","./src/app/shared/validators/required-string-validator.ts","./node_modules/rxjs/dist/esm/internal/operators/debounceTime.js"],"sourcesContent":["export enum Privilege {\r\n ViewOrganization = 1,\r\n ManageOrganization,\r\n ViewOrganizationSettings,\r\n ManageOrganizationSettings,\r\n ViewDonorInformation,\r\n ManageDonorInformation,\r\n ViewUsers,\r\n ManageUsers,\r\n ManageManualDeposits,\r\n ViewManualDeposits,\r\n ViewRecurringPayments,\r\n ManageRecurringPayments,\r\n ViewOrgRecurringPayment,\r\n ManageOrgRecurringPayment\r\n}\r\n\r\nexport enum OtpMode {\r\n Phone = 1,\r\n Email,\r\n}\r\n\r\nexport enum UserType {\r\n Individual = 1,\r\n Company\r\n}\r\n\r\nexport enum TransactionType\r\n{\r\n Cash = 1,\r\n Card = 2,\r\n eCheck = 3,\r\n Check = 4,\r\n ManualDeposit = 5\r\n}\r\n\r\nexport enum Role\r\n{\r\n Donor = 1,\r\n Organization,\r\n SuperAdmin\r\n}\r\n\r\nexport enum PaymentGatewaySessionStatus\r\n{\r\n Pending = 1,\r\n Processed,\r\n Error,\r\n Cancelled,\r\n Declined\r\n}","import { Component, Input } from \"@angular/core\";\r\nimport { NgbActiveModal } from \"@ng-bootstrap/ng-bootstrap\";\r\n\r\n@Component({\r\n templateUrl: './alert-modal.component.html'\r\n})\r\nexport class AlertModal {\r\n @Input()\r\n alertMessage: string = \"\";\r\n\r\n @Input()\r\n title: string = \"\";\r\n\r\n @Input()\r\n buttonText: string = \"\";\r\n\r\n constructor(\r\n private activeModal: NgbActiveModal,\r\n ) {\r\n\r\n }\r\n\r\n close = () => {\r\n this.activeModal.close();\r\n }\r\n}","
\r\n
\r\n
{{title}}
\r\n \r\n
\r\n
\r\n {{alertMessage}}\r\n
\r\n
\r\n \r\n
\r\n
\r\n","
\r\n \r\n
","import { Component, Input, EventEmitter, Output, OnChanges, ChangeDetectorRef } from '@angular/core';\r\nimport { PageOption } from 'src/app/models';\r\nimport { Subject, BehaviorSubject } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'app-pagination',\r\n templateUrl: './pagination.component.html'\r\n})\r\nexport class PaginationComponent implements OnChanges {\r\n @Input() totalRecords = 0;\r\n @Input() recordsPerPage = 0;\r\n\r\n public pages: number[] = [];\r\n activePage = 1;\r\n\r\n private pageChangeSubject = new BehaviorSubject(this.activePage);\r\n public pageChange$ = this.pageChangeSubject.asObservable();\r\n\r\n constructor(private changeDetectorRef: ChangeDetectorRef) {\r\n }\r\n\r\n ngOnChanges(): void {\r\n const isInitializing = this.activePage == null;\r\n const pageCount = this.getPageCount();\r\n this.pages = this.getArrayOfPage(pageCount);\r\n this.changeDetectorRef.detectChanges();\r\n }\r\n\r\n private getPageCount(): number {\r\n let totalPage = 0;\r\n\r\n if (this.totalRecords > 0 && this.recordsPerPage > 0) {\r\n const pageCount = this.totalRecords / this.recordsPerPage;\r\n const roundedPageCount = Math.floor(pageCount);\r\n\r\n totalPage = roundedPageCount < pageCount ? roundedPageCount + 1 : roundedPageCount;\r\n }\r\n\r\n return totalPage;\r\n }\r\n\r\n private getArrayOfPage(pageCount: number): number[] {\r\n const pageArray: number[] = [];\r\n\r\n if (pageCount > 0) {\r\n for (let i = 1; i <= pageCount; i++) {\r\n pageArray.push(i);\r\n }\r\n }\r\n\r\n return pageArray;\r\n }\r\n\r\n getPageOption(): PageOption {\r\n return {\r\n skip: (this.activePage - 1) * this.recordsPerPage,\r\n take: this.recordsPerPage\r\n };\r\n }\r\n\r\n next(): void {\r\n this.onClickPage(this.activePage + 1);\r\n }\r\n\r\n previous(): void {\r\n this.onClickPage(this.activePage - 1);\r\n }\r\n\r\n gotoFirstPage(): void {\r\n this.activePage = 1;\r\n this.pageChangeSubject.next(this.activePage);\r\n }\r\n\r\n onClickPage(pageNumber: number): void {\r\n if (pageNumber < 1) {\r\n return;\r\n }\r\n if (pageNumber > this.pages.length) {\r\n return;\r\n }\r\n this.activePage = pageNumber;\r\n this.pageChangeSubject.next(this.activePage);\r\n }\r\n}\r\n","import { FormArray, FormGroup, ValidationErrors } from '@angular/forms';\r\n\r\n// Generic validator for Reactive forms\r\n// Implemented as a class, not a service, so it can retain state for multiple forms.\r\nexport class GenericValidator {\r\n\r\n // Provide the set of valid validation messages\r\n // Stucture:\r\n // controlName1: {\r\n // validationRuleName1: 'Validation Message.',\r\n // validationRuleName2: 'Validation Message.'\r\n // },\r\n // controlName2: {\r\n // validationRuleName1: 'Validation Message.',\r\n // validationRuleName2: 'Validation Message.'\r\n // }\r\n constructor(private validationMessages: { [key: string]: { [key: string]: string } }) {\r\n\r\n }\r\n\r\n // Processes each control within a FormGroup\r\n // And returns a set of validation messages to display\r\n // Structure\r\n // controlName1: 'Validation Message.',\r\n // controlName2: 'Validation Message.'\r\n processMessages(container: FormGroup): { [key: string]: string } {\r\n const messages : { [key: string]: any } = {};\r\n for (const controlKey in container.controls) {\r\n if (container.controls.hasOwnProperty(controlKey)) {\r\n const c = container.controls[controlKey];\r\n // If it is a FormGroup, process its child controls.\r\n if (c instanceof FormGroup) {\r\n const childMessages = this.processMessages(c);\r\n Object.assign(messages, childMessages);\r\n } else if(c instanceof FormArray && c.controls.length > 0) {\r\n c.controls.forEach(arrayElementFormGroup => {\r\n const childMessages = this.processMessages(arrayElementFormGroup as FormGroup);\r\n Object.assign(messages, childMessages);\r\n });\r\n } else {\r\n // Only validate if there are validation messages for the control\r\n if (this.validationMessages[controlKey]) {\r\n messages[controlKey] = '';\r\n if ((c.dirty || c.touched) && c.errors) {\r\n Object.keys(c.errors).map(messageKey => {\r\n if (this.validationMessages[controlKey][messageKey]) {\r\n messages[controlKey] += this.validationMessages[controlKey][messageKey] + ' ';\r\n }\r\n });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return messages;\r\n }\r\n\r\n processMessagesV2(container: FormGroup, skipTouched : boolean = false): { [key: string]: string } {\r\n const messages : { [key: string]: any } = {};\r\n for (const controlKey in container.controls) {\r\n if (container.controls.hasOwnProperty(controlKey)) {\r\n const c = container.controls[controlKey];\r\n // If it is a FormGroup, process its child controls.\r\n if (c instanceof FormGroup) {\r\n const childMessages = this.processMessagesV2(c, skipTouched);\r\n messages[controlKey] = childMessages;\r\n // Object.assign(messages, childMessages);\r\n } else if(c instanceof FormArray && c.controls.length > 0) {\r\n const childMessages: { [key: string]: string; }[] = [];\r\n c.controls.forEach(arrayElementFormGroup => {\r\n childMessages.push(this.processMessagesV2(arrayElementFormGroup as FormGroup, skipTouched));\r\n // Object.assign(messages, childMessages);\r\n });\r\n messages[controlKey] = childMessages;\r\n } else {\r\n // Only validate if there are validation messages for the control\r\n if (this.validationMessages[controlKey]) {\r\n messages[controlKey] = '';\r\n if ((skipTouched || c.dirty || c.touched) && c.errors) {\r\n Object.keys(c.errors).map(messageKey => {\r\n if (this.validationMessages[controlKey][messageKey]) {\r\n messages[controlKey] += this.validationMessages[controlKey][messageKey] + ' ';\r\n }\r\n });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return messages;\r\n }\r\n\r\n getErrorCount(container: FormGroup): number {\r\n let errorCount = 0;\r\n for (const controlKey in container.controls) {\r\n if (container.controls.hasOwnProperty(controlKey)) {\r\n if (container.controls[controlKey].errors) {\r\n errorCount += Object.keys(container.controls[controlKey].errors as ValidationErrors).length;\r\n console.log(errorCount);\r\n }\r\n }\r\n }\r\n return errorCount;\r\n }\r\n}\r\n","import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\r\n\r\nexport function requiredStringValidator(): ValidatorFn {\r\n return (control: AbstractControl): ValidationErrors | null => {\r\n const isWhitespace = (control.value || '').trim().length === 0;\r\n return isWhitespace ? { requiredString: true } : null;\r\n };\r\n}\r\n","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler = asyncScheduler) {\n return operate((source, subscriber) => {\n let activeTask = null;\n let lastValue = null;\n let lastTime = null;\n const emit = () => {\n if (activeTask) {\n activeTask.unsubscribe();\n activeTask = null;\n const value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n function emitWhenIdle() {\n const targetTime = lastTime + dueTime;\n const now = scheduler.now();\n if (now < targetTime) {\n activeTask = this.schedule(undefined, targetTime - now);\n subscriber.add(activeTask);\n return;\n }\n emit();\n }\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n lastValue = value;\n lastTime = scheduler.now();\n if (!activeTask) {\n activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n subscriber.add(activeTask);\n }\n }, () => {\n emit();\n subscriber.complete();\n }, undefined, () => {\n lastValue = activeTask = null;\n }));\n });\n}\n"],"x_google_ignoreList":[7]}