{"version":3,"sources":["webpack:///$_lazy_route_resources|lazy|groupOptions: {}|namespace object","webpack:///src/app/app.component.ts","webpack:///src/app/app.component.html","webpack:///src/app/app.module.ts","webpack:///src/app/doc-dist/doc-dist.component.html","webpack:///src/app/doc-dist/doc-dist.component.ts","webpack:///src/app/doc-modal/doc-modal.component.html","webpack:///src/app/doc-modal/doc-modal.component.ts","webpack:///src/app/home/home.component.ts","webpack:///src/app/home/home.component.html","webpack:///src/app/models/enumerations/screen-size.enum.ts","webpack:///src/app/nav-menu/nav-menu.component.ts","webpack:///src/app/nav-menu/nav-menu.component.html","webpack:///src/app/screen-size-detector/screen-size-detector.component.html","webpack:///src/app/screen-size-detector/screen-size-detector.component.ts","webpack:///src/environments/environment.ts","webpack:///src/main.ts","webpack:///src/services/app-init.ts","webpack:///src/services/app.raygun.setup.ts","webpack:///src/services/file.download.service.ts","webpack:///src/services/file.protection.service.ts","webpack:///src/services/interceptors/global-http-interceptor.service.ts","webpack:///src/services/resize.service.ts","webpack:///src/services/token.service.ts"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","id","module","exports","AppComponent","resizeSvc","title","onResize$","subscribe","x","size","routes","path","component","HomeComponent","pathMatch","DocDistComponent","loadChildren","m","ErrorsModule","appInitProviderFactory","provider","load","AppModule","AppInitProvider","provide","APP_INITIALIZER","useFactory","deps","multi","HTTP_INTERCEPTORS","useClass","GlobalHttpInterceptorService","ErrorHandler","ErrorService","DatePipe","BrowserModule","appId","BrowserAnimationsModule","DataTablesModule","HttpClientModule","FormsModule","ReactiveFormsModule","ToastrModule","RouterModule","NgbModule","NavMenuComponent","ScreenSizeDetectorComponent","DocModalComponent","route","modalService","httpClient","tokenService","baseUrl","token","env","environment","participants","getDocuments","queryParams","params","get","result","documentDistributions","error","console","log","currentScreenSize","i","groupMembersCount","$row","$","groupID","toggleClass","modalRef","open","ariaLabelledBy","componentInstance","eventID","registrantID","registrantName","documentID","categoryID","churchID","email","emailOverride","emailOverrideChK","files","Inject","datePipe","fileProtectionService","downloadsService","submitted","modalForm","controls","form","value","setValidators","Validators","clearValidators","updateValueAndValidity","FormGroup","FormControl","tokenExpiration","documentChanges","invalid","headers","HttpHeaders","append","validatedPayload","ParticipantEmailInvite","f","body","JSON","stringify","HttpParams","post","res","vbody","emailSent","emaiSent","val","errorSent","throwError","onSendEmail","reset","dismissAll","fileDateTime","Date","now","fileDateTimeString","transform","registrantFileName","removeSpecialCharacters","payload","downloadPDF","next","downloadedFile","saveAs","blob","content","closeModal","getDismissReason","reason","ModalDismissReasons","input","replace","onClose","downloadDocuments","onSubmit","FilesDownloadPayload","GeneratedFilesData","ScreenSize","isExpanded","elementRef","prefix","sizes","name","css","detectScreenSize","currentSize","find","el","nativeElement","querySelector","isVisible","window","getComputedStyle","display","onResize","envName","serverEndpointBaseAddress","production","raygunClientAPIKey","getBaseUrl","document","getElementsByTagName","href","providers","enableProdMode","platformBrowser","bootstrapModule","err","injector","all","TokenService","router","Router","modelService","NgbModal","HttpErrorResponse","navigateByUrl","state","errorMessage","VERSION_NUMBER","toastr","ToastrService","guid","status","toString","onActivateTick","enableHtml","timeOut","tags","FileDownloadService","downloadUrl","responseType","observe","pipe","map","httpResponse","extractFileNameAndBlob","Injectable","contentDisposition","contentType","Blob","type","fileName","FileProtectionService","statusText","handle","tap","data","ErrorEvent","navigate","ResizeService","resizeSubject","Subject","asObservable","distinctUntilChanged","http","localStorage","getToken"],"mappings":";;;;;;;;;;AAAA,eAASA,wBAAT,CAAkCC,GAAlC,EAAuC;AACtC;AACA;AACA,eAAOC,OAAO,CAACC,OAAR,GAAkBC,IAAlB,CAAuB,YAAW;AACxC,cAAIC,CAAC,GAAG,IAAIC,KAAJ,CAAU,yBAAyBL,GAAzB,GAA+B,GAAzC,CAAR;AACAI,WAAC,CAACE,IAAF,GAAS,kBAAT;AACA,gBAAMF,CAAN;AACA,SAJM,CAAP;AAKA;;AACDL,8BAAwB,CAACQ,IAAzB,GAAgC,YAAW;AAAE,eAAO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D;;;;;;;yBAhBUuN,c;AAAa,O;;;eAAbA,c;AAAa,iBAAbA,cAAa,K;AAAA,oBAFZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCGDxC,aAAY;AAGvB,8BAAsB6C,IAAtB,EAAwC;AAAA;;AAAlB,eAAAA,IAAA,GAAAA,IAAA;AAFf,eAAAhL,KAAA,GAAQiL,YAAY,CAAC,OAAD,CAApB;AAGL,eAAKC,QAAL;AACD;;AALsB;AAAA;AAAA,iBAOvB,oBAAW;AACT,mBAAO,KAAKlL,KAAZ;AACD;AATsB;;AAAA;AAAA,S;;;yBAAZmI,a,EAAY,oH;AAAA,O;;;eAAZA,a;AAAY,iBAAZA,aAAY,K;AAAA,oBAHX;;AAGDA,mBAAY,eADxB,+CAAA2B,UAAA,GACwB,GAAZ3B,aAAY,CAAZ","file":"main-es5.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 8255;\nmodule.exports = webpackEmptyAsyncContext;","import { ChangeDetectorRef, Component, HostBinding, OnInit } from '@angular/core';\nimport { ResizeService } from '../services/resize.service';\nimport { ScreenSize } from './models/enumerations/screen-size.enum';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html'\n})\nexport class AppComponent {\n title = 'app';\n size: ScreenSize;\n\n //constructor(public settings: SettingsService) { }\n\n constructor(private resizeSvc: ResizeService) {\n // Subscribe to the screensize change event.\n this.resizeSvc.onResize$.subscribe(x => {\n this.size = x;\n });\n }\n\n ngOnInit() {\n //// prevent empty links to reload the page\n //document.addEventListener('click', e => {\n // const target = e.target as HTMLElement;\n // if (target.tagName === 'A' && ['', '#'].indexOf(target.getAttribute('href')) > -1)\n // e.preventDefault();\n //});\n }\n\n\n}\n","\n \n \n
\n \n
\n \n\n","import { AppInitProvider } from '../services/app-init';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { APP_INITIALIZER, ErrorHandler, NgModule } from '@angular/core';\nimport { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';\nimport { RouterModule, Routes } from '@angular/router';\nimport { CommonModule, DatePipe } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { DataTablesModule } from 'angular-datatables';\nimport { AppComponent } from './app.component';\nimport { NavMenuComponent } from './nav-menu/nav-menu.component';\nimport { HomeComponent } from './home/home.component';\nimport { DocDistComponent } from './doc-dist/doc-dist.component';\n\nimport { ErrorService } from '../services/app.raygun.setup';\nimport { GlobalHttpInterceptorService } from '../services/interceptors/global-http-interceptor.service';\n\nimport { ToastrModule } from 'ngx-toastr';\nimport { ScreenSizeDetectorComponent } from './screen-size-detector/screen-size-detector.component';\nimport { DocModalComponent } from './doc-modal/doc-modal.component';\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\n//import { AngularMaterialModule } from './material.module';\n\n\nconst routes: Routes = [\n { path: '', component: HomeComponent, pathMatch: 'full' },\n { path: 'doc-dist', component: DocDistComponent },\n { path: 'doc-dist/:token', component: DocDistComponent },\n { path: 'doc-dist/:payload', component: DocDistComponent },\n { path: 'errors', loadChildren: () => import('..//routes/errors/errors.module').then(m => m.ErrorsModule) }\n];\n\nexport function appInitProviderFactory(provider: AppInitProvider) {\n return () => provider.load();\n}\n@NgModule({\n declarations: [\t\n AppComponent,\n NavMenuComponent,\n HomeComponent,\n DocDistComponent,\n ScreenSizeDetectorComponent,\n DocModalComponent,\n \n ],\n exports: [\n RouterModule,\n //AngularMaterialModule,\n [ToastrModule]\n ],\n imports: [\n BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),\n BrowserAnimationsModule, // required for ng2-tag-input\n DataTablesModule,\n HttpClientModule,\n FormsModule,\n ReactiveFormsModule,\n //AngularMaterialModule,\n ToastrModule.forRoot(),\n RouterModule.forRoot(routes),\n NgbModule,\n ],\n entryComponents: [\n DocModalComponent\n ],\n providers: [\n AppInitProvider,\n {\n provide: APP_INITIALIZER,\n useFactory: appInitProviderFactory,\n deps: [AppInitProvider],\n multi: true\n },\n {\n provide: HTTP_INTERCEPTORS,\n useClass: GlobalHttpInterceptorService,\n multi: true\n },\n {\n provide: ErrorHandler,\n useClass: ErrorService\n },\n DatePipe],\n bootstrap: [AppComponent],\n})\nexport class AppModule { }\n","
= 1\">\n \n
\n
\n
\n
\n
\n

Legend

\n

{{ documentDistributions.eventName }}

\n

Event Leader: {{ documentDistributions.leaderName }}

\n

\n - Open Group Members\n - Open Documents\n - Documents Pending\n - Documents Ready\n

\n
\n
\n
\n \n

Event Documentation

\n
\n
\n
\n
\n Loading...\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
Name Category # Members Documents Ready Actions
{{ grp.groupName }} {{ grp.groupCategoryName }}{{ grp.groupMembersCount }} \n \n   Group Members\n \n
{{ member.registrantName}}{{ member.registrantCategoryName }} 1 \n   Manage Documents\n
{{ pap.registrantName }}{{ pap.registrantCategoryName }}1\n   Manage Documents\n
\n
\n
\n
\n
\n\n
\n \n
\n
\n
\n
\n
\n

Legend

\n

{{ documentDistributions.eventName }}

\n

Event Leader: {{ documentDistributions.leaderName }}

\n

\n - Open Group Members\n - Open Documents\n - Documents Pending\n - Documents Ready\n

\n
\n
\n
\n
\n \n

Event Documentation

\n
\n
\n
\n
\n Loading...\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
Name Category # Members Documents Ready Actions
{{ grp.groupName }} {{ grp.groupCategoryName }}{{ grp.groupMembersCount }} \n \n \n \n
{{ member.registrantName}}{{ member.registrantCategoryName }} 1 \n \n
{{ pap.registrantName }}{{ pap.registrantCategoryName }}1\n \n
\n
\n
\n
\n","import { Component, OnInit, Inject, Injectable, Input, ChangeDetectorRef} from '@angular/core';\nimport { environment } from '../../environments/environment';\nimport { Observable } from 'rxjs';\nimport { of } from 'rxjs';\nimport { FormBuilder, FormControl, FormGroup, NgForm, Validators } from '@angular/forms';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { ListFormat } from 'typescript';\nimport { ActivatedRoute } from '@angular/router';\nimport { ScreenSize } from '../models/enumerations/screen-size.enum';\nimport { ResizeService } from 'src/services/resize.service';\nimport { ModalDismissReasons, NgbActiveModal, NgbModal} from '@ng-bootstrap/ng-bootstrap';\nimport { AppComponent } from '../app.component';\nimport { DocModalComponent, FilesDownloadPayload } from '../doc-modal/doc-modal.component';\nimport { TokenService } from '../../services/token.service';\ndeclare var $: any;\n\n@Injectable({\n providedIn: 'root'\n})\n\n@Component({\n selector: 'app-doc-dist',\n templateUrl: './doc-dist.component.html',\n styleUrls: ['./doc-dist.component.css']\n})\n\nexport class DocDistComponent implements OnInit {\n env = environment;\n documentDistributions: Observable;\n participants: any = [];\n size: ScreenSize;\n\n constructor(private route: ActivatedRoute, private resizeSvc: ResizeService, private modalService: NgbModal, private httpClient: HttpClient, private tokenService: TokenService, @Inject('BASE_URL') baseUrl: string, @Inject('token') token: string) {\n // Subscribe to the screensize change event.\n this.resizeSvc.onResize$.subscribe(x => {\n this.size = x;\n });\n\n this.getDocuments(httpClient, baseUrl, tokenService, token);\n }\n\n getDocuments(httpClient: HttpClient, @Inject('BASE_URL') baseUrl: string, tokenService: TokenService, @Inject('token') token: string) {\n\n this.route.queryParams.subscribe(params => {\n token = params.token;\n this.tokenService.token = params.token;\n });\n\n httpClient.get>(baseUrl + 'documentdistributiondata/?token=' + token)\n .subscribe(result => {\n this.documentDistributions = result;\n }, error => {\n console.log(error);\n });\n }\n\n ngOnInit() {\n // Get the current screesize.\n this.size = this.resizeSvc.currentScreenSize;\n }\n\n collapse(e) {\n for (var i = 0; i < e.groupMembersCount; i++) {\n var $row = $('#groupMember_' + e.groupID + '_' + i); // Find the row\n $($row).toggleClass('toggle');\n }\n return false;\n }\n\n viewDocs(e) {\n\n const modalRef = this.modalService.open(DocModalComponent, { ariaLabelledBy: 'modal-basic-title' });\n\n modalRef.componentInstance.eventID = e.eventID;\n modalRef.componentInstance.registrantID = e.registrantID;\n modalRef.componentInstance.groupID = e.groupID;\n modalRef.componentInstance.registrantName = e.registrantName;\n modalRef.componentInstance.documentID = e.documentID;\n modalRef.componentInstance.categoryID = e.categoryID;\n modalRef.componentInstance.churchID = e.churchID;\n modalRef.componentInstance.email = e.email;\n modalRef.componentInstance.emailOverride = e.emailOverride;\n modalRef.componentInstance.emailOverrideChK = e.emailOverrideChK;\n modalRef.componentInstance.files = e.files;\n modalRef.componentInstance.token = e.token;\n\n }\n}\n\ninterface DocumentDistributionData {\n leaderName: string;\n date: string;\n participants: Array;\n groupCategoryName: string;\n groupDocumentCount: number;\n memberCount: null;\n checked?: boolean;\n churchID: string;\n}\n\ninterface RegistrantData {\n registrantID: number;\n registrantName: string;\n email: string;\n emailOverride: string;\n emailOverrideChK: boolean;\n docName: string;\n files: Array;\n registrantCategoryName: string;\n checked?: boolean;\n EmailSentStatus: string;\n}\n\ninterface GeneratedFilesData {\n registrantID: number;\n docID: number;\n docName: string;\n docLink: string;\n date: string;\n}\n","
\n

Document Distributions

\n \n
\n
\n
\n\n
\n Participant Info\n
\n\n
\n
{{registrantName}}
\n

\n \n

\n
\n\n \n \n
\n
\n \n
\n
\n \n \n
\n
\n
Email is required
\n
Email is invalid
\n
\n
\n\n \n \n \n\n
\n
\n\n \n\n
\n
\n\n
\n \n
\n","import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';\nimport { Component, OnInit, Input, Inject } from '@angular/core';\nimport { FormControl, FormGroup, ValidationErrors, ValidatorFn, Validators } from '@angular/forms';\nimport { ModalDismissReasons, NgbModal } from '@ng-bootstrap/ng-bootstrap';\nimport { FileDownloadService } from '../../services/file.download.service';\nimport { saveAs } from 'file-saver';\nimport { ActivatedRoute } from '@angular/router';\nimport { Observable, throwError } from 'rxjs';\nimport { FileProtectionService } from '../../services/file.protection.service';\nimport { DatePipe } from '@angular/common';\n\n//import { MaterialModule } from '../material.module'\n@Component({\n selector: 'app-doc-modal',\n templateUrl: './doc-modal.component.html',\n styleUrls: ['./doc-modal.component.css']\n})\n\nexport class DocModalComponent implements OnInit {\n\n @Input() eventID;\n @Input() groupID;\n @Input() registrantID;\n @Input() registrantName;\n @Input() documentID;\n @Input() categoryID;\n @Input() churchID;\n @Input() files;\n @Input() email;\n @Input() emailOverride;\n @Input() emailOverrideChK;\n @Input() token;\n @Input() tokenExpiration;\n @Input() documentChanges;\n\n constructor(private datePipe: DatePipe, private modalService: NgbModal, private route: ActivatedRoute, private fileProtectionService: FileProtectionService, private downloadsService: FileDownloadService, private httpClient: HttpClient, @Inject('BASE_URL') baseUrl: string) { }\n\n //Modal Form Validables\n closeModal: string;\n modalForm: FormGroup;\n submitted = false;\n emaiSent;\n\n //Add user form actions\n get f() { return this.modalForm.controls; }\n\n validateIfChecked(): ValidatorFn {\n return (form: FormGroup): ValidationErrors | null => {\n const emailOverride = form.get('emailOverride');\n const emailOverrideChK = form.get('emailOverrideChK');\n\n if (emailOverrideChK.value) {\n emailOverride.setValidators(Validators.required);\n } else {\n emailOverride.clearValidators();\n }\n\n emailOverride.updateValueAndValidity();\n\n if (emailOverrideChK.value && !emailOverride) {\n return {\n 'err': true\n };\n }\n\n return null;\n }\n }\n\n ngOnInit() {\n\n this.modalForm = new FormGroup({\n eventID: new FormControl(),\n groupID: new FormControl(),\n registrantID: new FormControl(),\n registrantName: new FormControl(),\n documentID: new FormControl(),\n categoryID: new FormControl(),\n churchID: new FormControl(),\n files: new FormControl(),\n token: new FormControl(),\n email: new FormControl(),\n emailOverride: new FormControl('',[Validators.required, Validators.email]),\n emailOverrideChK: new FormControl(),\n tokenExpiration: new FormControl(),\n documentChanges: new FormControl()\n });\n\n\n //this.f;\n //this.f.emailOverride.valueChanges.subscribe((bool: boolean) => {\n // bool ? this.modalForm.get('emailOverride').setValidators([Validators.required, Validators.email]) :\n // this.modalForm.get('emailOverride').clearValidators();\n //});\n\n }\n\n onSendEmail() {\n\n if (this.modalForm) {\n this.submitted = true;\n // stop here if form is invalid\n if (this.modalForm.invalid) {\n return;\n }\n }\n\n if (this.submitted) {\n\n //True if all the fields are filled\n const headers = new HttpHeaders()\n .append(\n 'Content-Type',\n 'application/json'\n );\n\n let validatedPayload = new ParticipantEmailInvite();\n validatedPayload.registrantID = this.registrantID;\n validatedPayload.registrantName = this.registrantName;\n validatedPayload.emailOverride = this.f.emailOverride.value;\n validatedPayload.groupID = this.groupID;\n validatedPayload.eventID = this.eventID;\n validatedPayload.categoryID = this.categoryID;\n validatedPayload.tokenExpiration = this.tokenExpiration;\n validatedPayload.documentChanges = this.documentChanges;\n \n const body = JSON.stringify(validatedPayload);\n\n const params = new HttpParams() // no query string here but required\n this.httpClient.post('/documentdistributiondata/validateparticipantdocumentinvite?payload=', body, { headers: headers, params: params, }).subscribe(\n (res) => {\n validatedPayload.token = res.token;\n validatedPayload.documentChanges = res.documentChanges;\n\n const vbody = JSON.stringify(validatedPayload);\n\n this.httpClient.post(\"/documentdistributiondata/sendparticipantdocumentinvite\", vbody, { headers: headers, params: params, }).subscribe(\n (emailSent) => {\n this.emaiSent = emailSent;\n $(\".messageResponseDiv\").val(\"Email Sent Successful!\");\n $(\".messageResponseDiv\").toggleClass(\"text-muted\");\n return this.emaiSent;\n },\n (errorSent) => {\n this.emaiSent = errorSent;\n $(\".messageResponseDiv\").val(\"Email Send Failed!\");\n $(\".messageResponseDiv\").toggleClass(\"text-muted\");\n throwError('Failed to Send Email!');\n return this.emaiSent;\n }\n );\n }) \n }\n }\n\n onSubmit() {\n this.submitted = true;\n // stop here if form is invalid\n if (this.modalForm.invalid) {\n return;\n }\n //True if all the fields are filled\n if (this.submitted) {\n this.onSendEmail();\n return;\n }\n }\n\n onReset() {\n if (this.modalForm) {\n $(\".messageResponseDiv\").toggleClass(\"card-footer text-muted\");\n this.modalForm.reset();\n return;\n }\n }\n\n onClose() {\n this.modalService.dismissAll();\n }\n\n /**\n * used to get file from server working\n */\n downloadDocuments() {\n\n //True if all the fields are filled\n const headers = new HttpHeaders()\n .append(\n 'Content-Type',\n 'application/json'\n );\n\n let fileDateTime: number = Date.now();\n let fileDateTimeString = this.datePipe.transform(fileDateTime, 'yyyy-MM-dd-mm-ss')\n let registrantFileName = this.removeSpecialCharacters(this.registrantName)\n let payload = new ParticipantEmailInvite();\n payload.registrantID = this.registrantID;\n payload.registrantName = this.registrantName;\n payload.emailOverride = this.email == this.f.emailOverride.value ? this.email : this.f.emailOverride.value;\n payload.files = this.files;\n payload.tokenExpiration = this.tokenExpiration;\n payload.eventID = this.eventID;\n\n const body = JSON.stringify(payload);\n\n const params = new HttpParams() // no query string here but required\n\n this.httpClient.post('/documentdistributiondata/validateparticipantdocumentinvite?payload=', body, { headers: headers, params: params, }).subscribe(\n (res) => {\n this.downloadsService.downloadPDF('/documentdistributiondata/downloadpartcipantfiles?token=', res.token).subscribe({\n next: downloadedFile => {\n saveAs(downloadedFile.blob, registrantFileName + '_' + fileDateTimeString);\n }\n },\n )\n }\n );\n\n //this.route.queryParams.subscribe(params => {\n // this.token = params.token;\n //});\n\n\n //this.fileProtectionService.getFileProtection('/documentdistributiondata/validateparticipantdocumentinvite?payload=', this.token ).subscribe(\n // (result) => {\n // this.token = result;\n // }, (error) => {\n // console.log(error);\n // $(\".messageResponseDiv\").val(\"Download Failed!\");\n // $(\".messageResponseDiv\").toggleClass(\"text-muted\");\n // return;\n // });\n }\n\n\n triggerModal(content) {\n this.modalService.open(content, { ariaLabelledBy: 'modal-basic-title' }).result.then((res) => {\n this.closeModal = `Closed with: ${res}`;\n return res;\n }, (res) => {\n this.closeModal = `Dismissed ${this.getDismissReason(res)}`;\n return res;\n });\n }\n\n private getDismissReason(reason: any): string {\n if (reason === ModalDismissReasons.ESC) {\n return 'by pressing ESC';\n } else if (reason === ModalDismissReasons.BACKDROP_CLICK) {\n return 'by clicking on a backdrop';\n } else {\n return `with: ${reason}`;\n }\n }\n private removeSpecialCharacters(input: string): string {\n return input.replace(/[^a-zA-Z0-9\\s]/g, '');\n }\n}\n\ninterface RegistrantData {\n registrantID: number;\n registrantName: string;\n email: string;\n emailOverride: string;\n emailOverrideChK: boolean;\n docName: string;\n files: Array;\n registrantCategoryName: string;\n checked?: boolean;\n EmailSentStatus: string;\n}\n\nexport class ParticipantEmailInvite {\n registrantID: number;\n registrantName: string;\n emailOverride: string;\n groupID: number;\n eventID: number;\n categoryID: number;\n files: Observable;\n token: string;\n tokenExpiration: Date;\n documentChanges: boolean;\n}\n\nexport class FilesDownloadPayload {\n blob: Blob;\n fileName: string;\n}\n\nexport class GeneratedFilesData {\n documentID: number;\n docName: string;\n docLink: string;\n date: string;\n sortOrder: number;\n}\n\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n})\nexport class HomeComponent {\n \n}\n\n","
\n
\n
\n
\n

fine arts

\n

Welcome to FAF Leaders Document Portal

\n
\n
\n

Quick Tips!

\n

\n - Open Group Members\n - Open Documents\n - Documents Pending\n - Documents Ready\n

\n
\n
\n Need Help?\n
\n
\n
\n
\n","export enum ScreenSize {\n XS,\n SM,\n MD,\n LG,\n XL\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-nav-menu',\n templateUrl: './nav-menu.component.html',\n styleUrls: ['./nav-menu.component.css']\n})\nexport class NavMenuComponent {\n isExpanded = false;\n\n collapse() {\n this.isExpanded = false;\n }\n\n toggle() {\n this.isExpanded = !this.isExpanded;\n }\n}\n"," \n \n\n","
\n","import { Component, ElementRef, AfterViewInit, HostListener } from '@angular/core';\nimport { ResizeService } from 'src/services/resize.service';\nimport { ScreenSize } from '../models/enumerations/screen-size.enum';\n\n@Component({\n selector: 'app-screen-size-detector',\n templateUrl: './screen-size-detector.component.html',\n styleUrls: ['./screen-size-detector.component.css']\n})\nexport class ScreenSizeDetectorComponent implements AfterViewInit {\n prefix = 'is-';\n sizes = [\n {\n id: ScreenSize.XS, name: 'xs',\n css: `d-block d-sm-none`\n },\n {\n id: ScreenSize.SM, name: 'sm',\n css: 'd-none d-sm-block d-md-none'\n },\n {\n id: ScreenSize.MD, name: 'md',\n css: 'd-none d-md-block d-lg-none'\n },\n {\n id: ScreenSize.LG, name: 'lg',\n css: 'd-none d-lg-block d-xl-none'\n },\n {\n id: ScreenSize.XL, name: 'xl',\n css: 'd-none d-xl-block'\n },\n ];\n\n constructor(private elementRef: ElementRef, private resizeSvc: ResizeService) { }\n\n @HostListener(\"window:resize\", [])\n private onResize() {\n this.detectScreenSize();\n }\n\n ngAfterViewInit() {\n this.detectScreenSize();\n }\n\n private detectScreenSize() {\n const currentSize = this.sizes.find(x => {\n const el = this.elementRef.nativeElement.querySelector(`.${this.prefix}${x.id}`);\n const isVisible = window.getComputedStyle(el).display !== 'none';\n\n return isVisible;\n });\n\n this.resizeSvc.onResize(currentSize.id);\n }\n\n}\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n envName: 'dev',\n serverEndpointBaseAddress: 'http://localhost:32044',\n production: false,\n raygunClientAPIKey: '5Xf3K7FSuE1p3jGj5PNROg'\n};\n\n/*\n * In development mode, to ignore zone related error stack frames such as\n * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can\n * import the following file, but please comment it out in production mode\n * because it will have performance impact when throw error\n */\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\n","/***************************************************************************************************\n * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.\n */\nimport '@angular/localize/init';\nimport { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nexport function getBaseUrl() {\n return document.getElementsByTagName('base')[0].href;\n}\n\nexport function token() {\n return document.getElementsByTagName('base')[0];\n}\n\n\nconst providers = [\n { provide: 'BASE_URL', useFactory: getBaseUrl, deps: [] },\n { provide: 'token', useFactory: token, deps: [] }\n];\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic(providers).bootstrapModule(AppModule)\n .catch(err => console.log(err));\n","import { HttpErrorResponse } from '@angular/common/http';\nimport { Injectable, Injector } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\nimport { TokenService } from './token.service';\n\n\n@Injectable()\nexport class AppInitProvider {\n\n constructor(private injector: Injector, public tokenService: TokenService){ }\n\n async load() {\n return Promise.all([\n this.tokenService = this.injector.get(TokenService),\n ])\n .catch(err => {\n\n const router = this.injector.get(Router);\n const modelService = this.injector.get(NgbModal);\n\n if (err instanceof HttpErrorResponse) {\n modelService.dismissAll();\n router.navigateByUrl('/errors/500', { state: { errorMessage: err.error.title || \"Server error\" } });\n }\n else {\n modelService.dismissAll();\n router.navigateByUrl('/errors/500');\n }\n });\n\n }\n}\n","import { Injectable, ErrorHandler, Injector } from '@angular/core';\nimport { ToastrService } from 'ngx-toastr';\nimport * as rg4js from 'raygun4js';\nimport { environment } from '../environments/environment';\nimport { v4 as uuidv4 } from 'uuid';\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\n\nconst env = environment;\nconst VERSION_NUMBER = '1.0.0.0';\nrg4js('apiKey', \"4RsO5meb6zGlG1nMLEZSgw\");\nrg4js('setVersion', VERSION_NUMBER);\nrg4js('enableCrashReporting', true);\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ErrorService implements ErrorHandler {\n\n constructor(private injector: Injector) { }\n\n // Show an error message for any unhandled errors\n handleError(error: any) {\n const toastr = this.injector.get(ToastrService);\n const modelService = this.injector.get(NgbModal);\n const guid = uuidv4(); // Generate an identifier for the error being reported.\n\n // Filter out 401 errors from toastr messaging since they will be common on login timeouts.\n // TODO: error.status.toString() is returning an error all the time...\n if (error.status && error.status.toString() !== \"401\") {\n toastr.error('An email has been sent to the developers. If you have any questions, please contact us at sdswebteam@ag.org.

Your reference number is:
' + guid, 'An error has occurred', {\n onActivateTick: true, enableHtml: true, timeOut: 10000\n });\n modelService.dismissAll();\n }\n\n // Send the error log to Raygun.\n if (env.production || env.envName == 'qa') {\n rg4js('send', {\n error: error,\n tags: [guid]\n });\n }\n else {\n console.error(error);\n }\n }\n}\n\n","import { HttpClient, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { FilesDownloadPayload } from '../app/doc-modal/doc-modal.component';\n\n@Injectable({\n providedIn: 'root'\n})\n@Injectable()\nexport class FileDownloadService {\n constructor(private httpClient: HttpClient) { }\n\n public downloadPDF(downloadUrl: string, token: string): Observable {\n return this.httpClient\n .get(downloadUrl + token, { responseType: \"arraybuffer\", observe: \"response\" })\n .pipe(\n map((httpResponse: HttpResponse) =>\n extractFileNameAndBlob(httpResponse)\n )\n );\n }\n}\n\nexport function extractFileNameAndBlob(\n httpResponse: HttpResponse\n): FilesDownloadPayload {\n const headers = httpResponse.headers;\n const contentDisposition = headers.get(\"Content-Disposition\");\n\n //if (contentDisposition == null) {\n // throw new Error(`Server Error: Cannot retrieve file name.\n // Either Content-Dispostion header is not available or it is not exposed using Access-Control-Expose Header.`);\n //}\n\n //const fileNameItem = contentDisposition\n // .split(\";\")\n // .map(item => item.trim())\n // .find(item => item.toLowerCase().startsWith(\"fileName=\"));\n //if (fileNameItem == null) {\n // throw new Error(`Server didn't send a docName`);\n //}\n\n //let fileName = fileNameItem.split(\"=\")[1];\n //if (fileName.startsWith('\"'))\n // fileName = fileName.substring(1, fileName.length - 1);\n\n const contentType = headers.get(\"Content-Type\");\n const blob = new Blob([httpResponse.body], { type: contentType });\n return {\n blob: blob,\n fileName: 'CertificatesScores.pdf'\n };\n}\n","import { HttpClient, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\n@Injectable()\nexport class FileProtectionService {\n constructor(private httpClient: HttpClient) { }\n\n public getFileProtection(downloadUrl: string, token: string) {\n console.log('getFileProtection');\n console.log(token);\n return this.httpClient\n .get(downloadUrl + token, { observe: \"body\" })\n .pipe(\n map((httpResponse: HttpResponse) => {\n return {\n token: httpResponse.statusText \n };\n }\n )\n );\n }\n}\n","import { Injectable, Injector } from \"@angular/core\";\nimport { Router } from '@angular/router';\nimport { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpErrorResponse } from '@angular/common/http';\nimport { Observable, of, throwError } from \"rxjs\";\nimport { catchError, tap } from 'rxjs/operators';\nimport { NgbModal } from \"@ng-bootstrap/ng-bootstrap\";\n\n@Injectable()\nexport class GlobalHttpInterceptorService implements HttpInterceptor {\n\n constructor(public router: Router, private injector: Injector) {\n }\n\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\n\n return next.handle(req).pipe(\n tap(\n data => {},\n error => {\n // NOTE: Had to use tap instead of catchError for router to properly navigate.\n if (error instanceof HttpErrorResponse) {\n if (error.error instanceof ErrorEvent) {\n\n } else {\n const modelService = this.injector.get(NgbModal);\n switch (error.status) {\n case 400: \n this.router.navigate(['/errors/not-found']);\n modelService.dismissAll();\n break;\n case 401:\n this.router.navigate(['/errors/invalid-invitation']);\n modelService.dismissAll();\n break;\n case 403: \n this.router.navigate(['/errors/unauthorized']);\n modelService.dismissAll();\n break;\n case 404: \n this.router.navigate(['/errors/not-found']);\n modelService.dismissAll();\n break;\n case 417:\n this.router.navigate(['/errors/invalid-invitation']);\n modelService.dismissAll();\n break; \n case 500:\n this.router.navigate(['/errors/500']);\n modelService.dismissAll();\n break;\n }\n }\n }\n }\n )\n )\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { distinctUntilChanged } from 'rxjs/operators';\nimport { ScreenSize } from 'src/app/models/enumerations/screen-size.enum';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ResizeService {\n currentScreenSize: ScreenSize;\n\n get onResize$(): Observable {\n return this.resizeSubject.asObservable().pipe(distinctUntilChanged());\n }\n\n private resizeSubject: Subject;\n\n constructor() {\n this.resizeSubject = new Subject();\n }\n\n onResize(size: ScreenSize) {\n this.resizeSubject.next(size);\n this.currentScreenSize = size;\n }\n\n}\n\n","import { HttpClient, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\n@Injectable()\nexport class TokenService {\n public token = localStorage['token'];\n\n constructor(protected http: HttpClient) {\n this.getToken();\n }\n\n getToken() {\n return this.token;\n }\n}\n\n"]}