1"use strict";(self.webpackChunkUI=self.webpackChunkUI||[]).push([[470],{4229:(st,ae,d)=>{d.d(ae,{F:()=>ce});var b=d(5412),E=d(4650),x=d(7392),T=d(4859);let ce=(()=>{class e{constructor(z,Y){this.dialogRef=z,this.data=Y,Y.autoCloseTimeout||(this.data.autoCloseTimeout=3e3)}ngOnInit(){this.data.autoCloseTimeout&&setTimeout(()=>{this.dialogRef.close()},this.data.autoCloseTimeout)}onCancelClick(){this.dialogRef.close(!1)}}return e.\u0275fac=function(z){return new(z||e)(E.\u0275\u0275directiveInject(b.so),E.\u0275\u0275directiveInject(b.WI))},e.\u0275cmp=E.\u0275\u0275defineComponent({type:e,selectors:[["app-success-text-dialog"]],decls:13,vars:1,consts:[[1,"modal-popup","displayNone"],[1,"modal-popup-inside"],[1,"common-material-dialog__header"],["mat-icon-button","","tabindex","-1",3,"click"],["aria-label","Dismiss Dialog","fontSet","fal","fontIcon","fa-times"],[1,"mat-typography","common-material-dialog__content"],["fontSet","fal","fontIcon","fa-check",1,"common-material-dialog__icon","confirmation-dialog__icon","success"],[1,"common-material-dialog__body"],[1,"common-material-dialog__title"],["align","end",1,"common-material-dialog__actions","confirmation-dialog__actions"],["mat-button","","mat-dialog-close","","tabindex","-1",1,"common-material-dialog__action","common-material-dialog__action--no",3,"click"]],template:function(z,Y){1&z&&(E.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h3",2)(3,"button",3),E.\u0275\u0275listener("click",function(){return Y.onCancelClick()}),E.\u0275\u0275element(4,"mat-icon",4),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(5,"mat-dialog-content",5),E.\u0275\u0275element(6,"mat-icon",6),E.\u0275\u0275elementStart(7,"div",7)(8,"h4",8),E.\u0275\u0275text(9),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementStart(10,"mat-dialog-actions",9)(11,"button",10),E.\u0275\u0275listener("click",function(){return Y.onCancelClick()}),E.\u0275\u0275text(12,"Close"),E.\u0275\u0275elementEnd()()()()),2&z&&(E.\u0275\u0275advance(9),E.\u0275\u0275textInterpolate(Y.data.text))},dependencies:[x.Hw,b.ZT,b.xY,b.H8,T.lW],encapsulation:2}),e})()},1082:(st,ae,d)=>{d.r(ae),d.d(ae,{ComprehensiveEventReportModule:()=>et});var b=d(3689),E=d(6895),x=d(4006),T=d(7005),ce=d(7392),e=d(266),f=d(243),z=d(4229),Y=d(47),m=d(2986),k=d(9204),S=d(9107),C=d(7418),V=d(5846),J=d(4034),fe=d(9664),ue=d(8039),H=d(2110);var De=d(3298),Te=d(5439),y=d(4650),Oe=d(5412),Ge=d(918),be=d(5676),ne=d(9549),Pe=d(4144),Fe=d(9602),je=d(3807),Ie=d(8793);function q(j,K){1&j&&(y.\u0275\u0275elementStart(0,"mat-error"),y.\u0275\u0275text(1,"End date is required."),y.\u0275\u0275elementEnd())}function ge(j,K){1&j&&(y.\u0275\u0275elementStart(0,"mat-error"),y.\u0275\u0275text(1,"Start date must be less than or equal to end date."),y.\u0275\u0275elementEnd())}function ee(j,K){1&j&&(y.\u0275\u0275elementStart(0,"mat-error"),y.\u0275\u0275text(1,"Please select a service component."),y.\u0275\u0275elementEnd())}function le(j,K){1&j&&(y.\u0275\u0275elementStart(0,"mat-error"),y.\u0275\u0275text(1,"Please select a deployment phase."),y.\u0275\u0275elementEnd())}let We=(()=>{class j{constructor(M,O,he,ye,R,i,p,I,F){this.fb=M,this.dialog=O,this.breadCrumbService=he,this.appFeatureService=ye,this.militaryComponentService=R,this.deploymentPhaseService=i,this.comprehensiveReportClient=p,this.renderer=I,this.document=F,this.title="Comprehensive Event Analysis Report",this.serviceComponentLabel="Hosting Component*",this.deploymentPhaseLabel="Deployment Phase*",this.helpUrl="",this.emptyGuid=S.Q1,this.confirmValidParentMatcher=new C.q0,this.dateMask={guide:!0,showMask:!0,mask:k.X8},this.userRoles=[],this.endDate=new Date,this.startDate=new Date,this.startDate.setFullYear(this.endDate.getFullYear()-1)}ngOnInit(){this.appFeature=this.appFeatureService.GetAppFeatures(),this.isServiceComponentEnabled=this.appFeature.ServiceComponent.Enabled,this.isDeploymentPhaseEnabled=this.isServiceComponentEnabled&&this.appFeature.Event.HasDeploymentPhases,this.renderer.addClass(this.document.body,"comprehensive-event-report-page"),this.helpUrl=De.Ko.Description,this._initServiceComponents(),this._initDeploymentPhases(),this._setupBreadCrumb(),this._setupForm(),this.comprehensiveReportClient.getCurrentUser().pipe((0,m.q)(1)).subscribe(M=>{this.currentUser=M,this._filterServiceComponents()})}ngOnDestroy(){this.renderer.removeClass(this.document.body,"lms-courses-report-page")}generateReport(){const M=this._getDateForServer(this.datesGroup.controls.beginDate?.value),O=this._getDateForServer(this.datesGroup.controls.endDate?.value),ye=new H.qr({startDate:M,endDate:O,serviceComponentIds:this.filterForm.controls.serviceComponentTypes?.value,deploymentPhaseIds:this.filterForm.controls.deploymentPhases?.value});
1this.comprehensiveReportClient.submitReportRequest(ye).pipe((0,m.q)(1)).subscribe(R=>{R&&this.dialog.open(z.F,{panelClass:"mat-dialog-container-no-padding",data:{text:"Your request for a report has been submitted successfully! You should receive an email shortly with a link to download your report."}})},R=>{this.dialog.open(Y.I,{data:{title:"Error",message:JSON.stringify(R)},autoFocus:!1})})}_getDateForServer(M){const O=Te(M).format("YYYY-MM-DD")+"T00:00Z";return new Date(O)}_setupForm(){this.datesGroup=this.fb.group({beginDate:[this.startDate,[x.Validators.required]],endDate:[this.endDate,[x.Validators.required]]},{validator:function(K){if(!K.get("beginDate")||!K.get("endDate"))return null;const M=K.get("beginDate").value,O=K.get("endDate").value;return M>O&&!(0,S.qJ)(M,O)?{rangeViolation:!0}:null}}),this.filterForm=this.fb.group({serviceComponentTypes:[{value:this.serviceComponentIds,disabled:!1},[x.Validators.required]],deploymentPhases:[{value:this.deploymentPhaseIds,disabled:!1},[x.Validators.required]],dates:this.datesGroup})}_initDeploymentPhases(){this.deploymentPhases=this.isDeploymentPhaseEnabled?this.deploymentPhaseService.getAllPhases().map(M=>new fe.rh(M)):[],this.deploymentPhaseIds=this.deploymentPhases.map(M=>M.Id)}_initServiceComponents(){this.serviceComponentTypes=this.isServiceComponentEnabled?this.militaryComponentService.filterComponents(!1,!1,M=>this.militaryComponentService.isGuardOrReserve(M),this.militaryComponentService.alphabeticalSort).map(M=>new fe.wv(M)):[],this.serviceComponentIds=this.serviceComponentTypes.map(M=>M.Id)}_filterServiceComponents(){const M=this.currentUser.roleTypeList[0].id;"d45b510c-7596-4cdb-ad2f-098b75415b00"===M||"c35b510c-7596-4cdb-ad2f-098b75415b99"===M?this.serviceComponentTypes=this.serviceComponentTypes.filter(O=>"N"===O.ComponentCode):("a1c2a64a-e791-422c-9b67-f13dc0d3aba7"===M||"4686e73f-0ff9-4aae-ba45-8449195df32d"===M)&&(this.serviceComponentTypes=this.serviceComponentTypes.filter(O=>O.Id===this.currentUser.militaryComponentTypeId)),this.serviceComponentIds=this.serviceComponentTypes.map(O=>O.Id)}_setupBreadCrumb(){this.breadCrumbService.newBreadCrumb([{text:"Report Center",cssClass:"breadCrumbItem tools showArrow",alwaysShowArrow:!0},{text:this.title}])}}return j.\u0275fac=function(M){return new(M||j)(y.\u0275\u0275directiveInject(x.UntypedFormBuilder),y.\u0275\u0275directiveInject(Oe.uw),y.\u0275\u0275directiveInject(Ge._),y.\u0275\u0275directiveInject(ue.l),y.\u0275\u0275directiveInject(V.H),y.\u0275\u0275directiveInject(J.s),y.\u0275\u0275directiveInject(H.bG),y.\u0275\u0275directiveInject(y.Renderer2),y.\u0275\u0275directiveInject(E.K0))},j.\u0275cmp=y.\u0275\u0275defineComponent({type:j,selectors:[["app-comprehensive-event-report"]],decls:35,vars:23,consts:[[3,"pageTitle","helpUrl"],[1,"mt-5","col-12",3,"formGroup"],[1,"row","main-selection"],["formGroupName","dates"],[1,"col","col-date"],["appearance","outline",3,"textMask"],["matInput","","formControlName","beginDate",3,"matDatepicker"],["matSuffix","",3,"for"],["localDatepickerStart",""],[1,"col","col-date","col-date--last"],["matInput","","formControlName","endDate",3,"matDatepicker","errorStateMatcher"],["localDatepickerEnd",""],[4,"ngIf"],[1,"col","col-selector","col-6"],["formControlName","serviceComponentTypes","filterBarPlaceholder","Start typing service component type...","cssClass","militarycomponents-dropdown-select height-of-matinput",3,"dataSource","label","defaultToSelectAllOnDataSourceChange","required"],["formControlName","deploymentPhases","filterBarPlaceholder","Start typing service component type...","cssClass","deploymentphases-dropdown-select height-of-matinput",3,"dataSource","label","defaultToSelectAllOnDataSourceChange","required"],[1,"row","mr-4","ml-4","mt-4"],[1,"btn","btn-green","long-running-reports-container",3,"disabled","click"]],template:function(M,O){if(1&M&&(y.\u0275\u0275elementStart(0,"app-post-login-page-layout",0),y.\u0275\u0275elementContainerStart(1),y.\u0275\u0275elementStart(2,"div",1)(3,"section",2),y.\u0275\u0275elementContainerStart(4,3),y.\u0275\u0275elementStart(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),y.\u0275\u0275text(8,"Start Date"),y.\u0275\u0275elementEnd(),y.\u0275\u0275element(9,"input",6)(10,"mat-datepicker-toggle",7)(11,"mat-datepicker",null,8),y.\u0275\u0275elementStart(13,"mat-error"),y.\u0275\u0275text(14,"Start date is required."),y.\u0275\u0275elementEnd()()(),y.\u0275\u0275elementStart(15,"div",9)(16,"mat-form-field",5)(17,"mat-label"),y.\u0275\u0275text(18,"End Date"),y.\u0275\u0275elementEnd(),y.\u0275\u0275element(19,"input",10)(20,"mat-datepicker-toggle",7)(21,"mat-datepicker",null,11),y.\u0275\u0275template(23,q,2,0,"mat-error",12),y.\u0275\u0275template(24,ge,2,0,"mat-error",12),y.\u0275\u0275elementEnd()(),y.\u0275\u0275elementContainerEnd(),y.\u0275\u0275elementStart(25,"div",13),y.\u0275\u0275element(26,"app-multiselect-wrapper",14),y.\u0275\u0275template(27,ee,2,0,"mat-error",12),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(28,"div",13),y.\u0275\u0275element(29,"app-multiselect-wrapper",15),y.\u0275\u0275template(30,le,2,0,"mat-error",12),y.\u0275\u0275elementEnd()()(),y.\u0275\u0275elementContainerEnd(),y.\u0275\u0275elementStart(31,"div",16)(32,"button",17),y.\u0275\u0275listener("click",function(){return O.generateReport()}),y.\u0275\u0275elementStart(33,"span"),y.\u0275\u0275text(34,"Generate Report"),y.\u0275\u0275elementEnd()()()()),2&M){const he=y.\u
10275\u0275reference(12),ye=y.\u0275\u0275reference(22);y.\u0275\u0275property("pageTitle",O.title)("helpUrl",O.helpUrl),y.\u0275\u0275advance(2),y.\u0275\u0275property("formGroup",O.filterForm),y.\u0275\u0275advance(4),y.\u0275\u0275property("textMask",O.dateMask),y.\u0275\u0275advance(3),y.\u0275\u0275property("matDatepicker",he),y.\u0275\u0275advance(1),y.\u0275\u0275property("for",he),y.\u0275\u0275advance(6),y.\u0275\u0275property("textMask",O.dateMask),y.\u0275\u0275advance(3),y.\u0275\u0275property("matDatepicker",ye)("errorStateMatcher",O.confirmValidParentMatcher),y.\u0275\u0275advance(1),y.\u0275\u0275property("for",ye),y.\u0275\u0275advance(3),y.\u0275\u0275property("ngIf",O.datesGroup.controls.endDate.hasError("required")),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",O.filterForm.controls.dates.hasError("rangeViolation")),y.\u0275\u0275advance(2),y.\u0275\u0275property("dataSource",O.serviceComponentTypes)("label",O.serviceComponentLabel)("defaultToSelectAllOnDataSourceChange",!1)("required",!0),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",O.filterForm.controls.serviceComponentTypes.hasError("required")),y.\u0275\u0275advance(2),y.\u0275\u0275property("dataSource",O.deploymentPhases)("label",O.deploymentPhaseLabel)("defaultToSelectAllOnDataSourceChange",!1)("required",!0),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",O.filterForm.controls.deploymentPhases.hasError("required")),y.\u0275\u0275advance(2),y.\u0275\u0275property("disabled",!O.filterForm.valid)}},dependencies:[E.O5,x.DefaultValueAccessor,x.NgControlStatus,x.NgControlStatusGroup,x.RequiredValidator,x.FormGroupDirective,x.FormControlName,x.FormGroupName,be.j,ne.TO,ne.KE,ne.hX,ne.R9,Pe.Nt,Fe.Mq,Fe.hl,Fe.nW,je.hd,Ie.L],styles:[".col-date[_ngcontent-%COMP%]{width:190px;flex-basis:190px;flex-shrink:0;max-width:190px}.col-selector[_ngcontent-%COMP%]{width:380px;max-width:380px;min-width:380px;margin-bottom:30px}.col-selector[_ngcontent-%COMP%], .col-date--last[_ngcontent-%COMP%]{margin-right:60px}.col[_ngcontent-%COMP%] app-multiselect-wrapper[_ngcontent-%COMP%]{margin-top:4px;display:block}"]}),j})();var Ve=d(7680),Qe=d(4385),we=d(1948),qe=d(3626),He=d(8818),Be=d(5421),Ne=d(9199),Ae=d(8234),$e=d(4859),Ke=d(6709),Ze=d(3238),Ye=d(1150),Xe=d(3152);const ie=[{path:"",component:We}];let et=(()=>{class j{}return j.\u0275fac=function(M){return new(M||j)},j.\u0275mod=y.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=y.\u0275\u0275defineInjector({providers:[V.H,J.s,Be.h,Ne.g,Ae.D,Xe.$],imports:[e.AV,ce.Ps,E.ez,x.ReactiveFormsModule,T.E,f.I,ne.lN,Pe.c,Qe.LD,we.Fk,Fe.FA,qe.p0,je.QA,Ve.y,He.o,$e.ot,Ke.p9,Ye.S,Ze.XK,b.Bz.forChild(ie)]}),j})()},2110:(st,ae,d)=>{d.d(ae,{bG:()=>k,qr:()=>V});var b=d(1709),E=d(7221),x=d(5254),T=d(1737),ce=d(1086),e=d(6498),f=d(4650),z=d(529);const Y=new f.InjectionToken("API_BASE_URL");let k=(()=>{class L extends class m{constructor(){}defaultJsonReviver(r,u){let w;if("string"==typeof u&&(w=/\/Date\(([-]?\d+)\)\//gi.exec(u),w&&w[1])){const D=new Date(parseInt(w[1],10)),_=D.getTimezoneOffset();return new Date(D.valueOf()+60*_*1e3)}return u}transformOptions(r){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(r)}}{constructor(u,w){super(),this.jsonParseReviver=void 0,this.http=u,this.baseUrl=w??""}submitReportRequest(u){let w=this.baseUrl+"/api/ComprehensiveReport/SubmitReportRequest";w=w.replace(/[?&]$/,"");let _={body:JSON.stringify(u),observe:"response",responseType:"blob",headers:new z.WM({"Content-Type":"application/json",Accept:"application/json"})};return(0,x.D)(this.transformOptions(_)).pipe((0,b.zg)(N=>this.http.request("post",w,N))).pipe((0,b.zg)(N=>this.processSubmitReportRequest(N))).pipe((0,E.K)(N=>{if(!(N instanceof z.QO))return(0,T._)(N);try{return this.processSubmitReportRequest(N)}catch(te){return(0,T._)(te)}}))}processSubmitReportRequest(u){const w=u.status,D=u instanceof z.Zn?u.body:u.error instanceof Blob?u.error:void 0;let _={};if(u.headers)for(let N of u.headers.keys())_[N]=u.headers.get(N);return 200===w?P(D).pipe((0,b.zg)(N=>{let te=null,se=""===N?null:JSON.parse(N,this.jsonParseReviver);return te=se?S.fromJS(se):null,(0,ce.of)(te)})):200!==w&&204!==w?P(D).pipe((0,b.zg)(N=>pe("An unexpected server error occurred.",w,N,_))):(0,ce.of)(null)}
1getCurrentUser(){let u=this.baseUrl+"/api/ComprehensiveReport/GetCurrentUser";u=u.replace(/[?&]$/,"");let w={observe:"response",responseType:"blob",headers:new z.WM({Accept:"application/json"})};return(0,x.D)(this.transformOptions(w)).pipe((0,b.zg)(D=>this.http.request("get",u,D))).pipe((0,b.zg)(D=>this.processGetCurrentUser(D))).pipe((0,E.K)(D=>{if(!(D instanceof z.QO))return(0,T._)(D);try{return this.processGetCurrentUser(D)}catch(_){return(0,T._)(_)}}))}processGetCurrentUser(u){const w=u.status,D=u instanceof z.Zn?u.body:u.error instanceof Blob?u.error:void 0;let _={};if(u.headers)for(let N of u.headers.keys())_[N]=u.headers.get(N);return 200===w?P(D).pipe((0,b.zg)(N=>{let te=null,se=""===N?null:JSON.parse(N,this.jsonParseReviver);return te=se?fe.fromJS(se):null,(0,ce.of)(te)})):200!==w&&204!==w?P(D).pipe((0,b.zg)(N=>pe("An unexpected server error occurred.",w,N,_))):(0,ce.of)(null)}}return L.\u0275fac=function(u){return new(u||L)(f.\u0275\u0275inject(z.eN),f.\u0275\u0275inject(Y,8))},L.\u0275prov=f.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac}),L})();class S{constructor(r){if(r)for(var u in r)r.hasOwnProperty(u)&&(this[u]=r[u])}init(r){r&&(this.state=r.State,this.stateDescription=r.StateDescription,this.validationMessage=r.ValidationMessage,this.downloadUrl=r.DownloadUrl,this.canFinishWithinThresholdTime=r.CanFinishWithinThresholdTime,this.id=r.Id,this.serverPollingIntervalMs=r.ServerPollingIntervalMs,this.maxWaitingForAReportMs=r.MaxWaitingForAReportMs,this.userEmail=r.UserEmail)}static fromJS(r){r="object"==typeof r?r:{};let u=new S;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).State=this.state,r.StateDescription=this.stateDescription,r.ValidationMessage=this.validationMessage,r.DownloadUrl=this.downloadUrl,r.CanFinishWithinThresholdTime=this.canFinishWithinThresholdTime,r.Id=this.id,r.ServerPollingIntervalMs=this.serverPollingIntervalMs,r.MaxWaitingForAReportMs=this.maxWaitingForAReportMs,r.UserEmail=this.userEmail,r}}class V{constructor(r){if(r)for(var u in r)r.hasOwnProperty(u)&&(this[u]=r[u])}init(r){if(r){if(this.startDate=r.StartDate?new Date(r.StartDate.toString()):void 0,this.endDate=r.EndDate?new Date(r.EndDate.toString()):void 0,Array.isArray(r.ServiceComponentIds)){this.serviceComponentIds=[];for(let u of r.ServiceComponentIds)this.serviceComponentIds.push(u)}if(Array.isArray(r.DeploymentPhaseIds)){this.deploymentPhaseIds=[];for(let u of r.DeploymentPhaseIds)this.deploymentPhaseIds.push(u)}}}static fromJS(r){r="object"==typeof r?r:{};let u=new V;return u.init(r),u}toJSON(r){if((r="object"==typeof r?r:{}).StartDate=this.startDate?this.startDate.toISOString():void 0,r.EndDate=this.endDate?this.endDate.toISOString():void 0,Array.isArray(this.serviceComponentIds)){r.ServiceComponentIds=[];for(let u of this.serviceComponentIds)r.ServiceComponentIds.push(u)}if(Array.isArray(this.deploymentPhaseIds)){r.DeploymentPhaseIds=[];for(let u of this.deploymentPhaseIds)r.DeploymentPhaseIds.push(u)}return r}}class J{constructor(r){if(r)for(var u in r)r.hasOwnProperty(u)&&(this[u]=r[u])}init(r){r&&(this.id=r.Id,this.version=r.Version,this.isNew=r.IsNew)}static fromJS(r){r="object"==typeof r?r:{};let u=new J;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).Id=this.id,r.Version=this.version,r.IsNew=this.isNew,r}}class fe extends J{constructor(r){super(r)}init(r){if(super.init(r),r){if(this.approverUserId=r.ApproverUserId,this.isDeleted=r.IsDeleted,this.passwordExpired=r.PasswordExpired,this.userIdInfo=r.UserIdInfo?ue.fromJS(r.UserIdInfo):void 0,this.primaryEmail=r.PrimaryEmail,this.firstName=r.FirstName,this.lastName=r.LastName,this.passwordId=r.PasswordId,this.tempPasswordId=r.TempPasswordId,this.passwordTag=r.PasswordTag,this.mobilePhone=r.MobilePhone,this.otherPhone=r.OtherPhone,this.phone=r.Phone,this.workFax=r.WorkFax,this.workMobilePhone=r.WorkMobilePhone,this.workPhone=r.WorkPhone,this.homeAddressId=r.HomeAddressId,this.militaryComponentTypeId=r.MilitaryComponentTypeId,this.militaryInstallationTypeId=r.MilitaryInstallationTypeId,this.businessAddressId=r.BusinessAddressId,this.cacDodId=r.CacDodId,this.cacSerialNumber=r.CacSerialNumber,this.cacSubject=r.CacSubject,this.cacEmail=r.CacEmail,this.cacExpiryDate=r.CacExpiryDate?new Date(r.CacExpiryDate.toString()):void 0,this.hasTwoFactor=r.HasTwoFactor,this.isActive=r.IsActive,this.isLocked=r.IsLocked,this.isAccountUnlockRequested=r.IsAccountUnlockRequested,Array.isArray(r.Roles)){this.roles=[];for(let u of r.Roles)this.roles.push(Se.fromJS(u))}if(Array.isArray(r.PendingRoles)){this.pendingRoles=[];for(let u of r.PendingRoles)this.pendingRoles.push(Se.fromJS(u))}if(Array.isArray(r.RoleType2ClientTypes)){this.roleType2ClientTypes=[];for(let u of r.RoleType2ClientTypes)this.roleType2ClientTypes.push(X.fromJS(u))}if(Array.isArray(r.States)){this.states=[];for(let u of r.States)this.states.push(H.fromJS(u))}if(this.stateAccessSqlFilter=r.StateAccessSqlFilter,Array.isArray(r.Certification)){this.certification=[];for(let u of r.Certification)this.certification.push(de.fromJS(u))}if(this.roleTypeStr=r.RoleTypeStr,this.pendingRoleTypeStr=r.PendingRoleTypeStr,Array.isArray(r.RoleTypeList)){this.roleTypeList=[];for(let u of r.RoleTypeList)this.roleTypeList.push(re.fromJS(u))}if(Array.isArray(r.PendingRoleTypeList)){this.pendingRoleTypeList=[];for(let u of r.PendingRoleTypeList)this.pendingRoleTypeList.push(re.fromJS(u))}if(Array.isArray(r.StateTypeList)){this.stateTypeList=[];for(let u of r.StateTypeList)this.stateTypeList.push(B.fromJS(u))}if(this.stateAffliate=r.StateAffliate?B.fromJS(r.StateAffliate):void 0,this.country=r.Country?W.fromJS(r.Country):void 0,this.user2StateAffliate=r.User2StateAffliate?H.fromJS(r.User2StateAffliate):void 0,this.isOSD=r.IsOSD,this.allStateAccess=r.AllStateAccess,this.prefix=r.Prefix,this.formattedName=r.FormattedName,this.formattedNameSalutationFirst=r.FormattedNameSalutationFirst,Array.isArray(r.FeaturePermissionsByRole)){this.featurePermissionsByRole=[];for(let u of r.FeaturePermissionsByRole)this.featurePermissionsByRole.push(Q.fromJS(u))}if(Array.isArray(r.FeaturePermissionsByUser)){this.featurePermissionsByUser=[];for(let u of r.FeaturePermissionsByUser)this.featurePermissionsByUser.push(g.fromJS(u))}if(Array.isArray(r.TargetContentRoleType)){this.targetContentRoleType=[];for(let u of r.TargetContentRoleType)this.targetContentRoleType.push(re.fromJS(u))}if(r.VisibleRoles){this.visibleRoles={};for(let u in r.VisibleRoles)r.VisibleRoles.hasOwnProperty(u)&&(this.visibleRoles[u]=r.VisibleRoles[u]?r.VisibleRoles[u].map(w=>re.fromJS(w)):[])}this.militaryRankTypeId=r.MilitaryRankTypeId,this.currentPassword=r.CurrentPassword?oe.fromJS(r.CurrentPassword):void 0,this.callerIdentity=r.CallerIdentity?Re.fromJS(r.CallerIdentity):void 0,this.hasCac=r.HasCac,this.workPhoneRaw=r.WorkPhoneRaw,this.workPhoneExt=r.WorkPhoneExt}}static fromJS(r){r="object"==typeof r?r:{};let u=new fe;return u.init(r),u}toJSON(r){if((r="object"==typeof r?r:{}).ApproverUserId=this.approverUserId,r.IsDeleted=this.isDeleted,r.PasswordExpired=this.passwordExpired,r.UserIdInfo=this.userIdInfo?this.userIdInfo.toJSON():void 0,r.PrimaryEmail=this.primaryEmail,r.FirstName=this.firstName,r.LastName=this.lastName,r.PasswordId=this.passwordId,r.TempPasswordId=this.tempPasswordId,r.PasswordTag=this.passwordTag,r.MobilePhone=this.mobilePhone,r.OtherPhone=this.otherPhone,r.Phone=this.phone,r.WorkFax=this.workFax,r.WorkMobilePhone=this.workMobilePhone,r.WorkPhone=this.workPhone,r.HomeAddressId=this.homeAddressId,r.MilitaryComponentTypeId=this.militaryComponentTypeId,r.MilitaryInstallationTypeId=this.militaryInstallationTypeId,r.BusinessAddressId=this.businessAddressId,r.CacDodId=this.cacDodId,r.CacSerialNumber=this.cacSerialNumber,r.CacSubject=this.cacSubject,r.CacEmail=this.cacEmail,r.CacExpiryDate=this.cacExpiryDate?this.cacExpiryDate.toISOString():void 0,r.HasTwoFactor=this.hasTwoFactor,r.IsActive=this.isActive,r.IsLocked=this.isLocked,r.IsAccountUnlockRequested=this.isAccountUnlockRequested,Array.isArray(this.roles)){r.Roles=[];for(let u of this.roles)r.Roles.push(u.toJSON())}if(Array.isArray(this.pendingRoles)){r.PendingRoles=[];for(let u of this.pendingRoles)r.PendingRoles.push(u.toJSON())}if(Array.isArray(this.roleType2ClientTypes)){r.RoleType2ClientTypes=[];for(let u of this.roleType2ClientTypes)r.RoleType2ClientTypes.push(u.toJSON())}if(Array.isArray(this.states)){r.States=[];for(let u of this.states)r.States.push(u.toJSON())}if(r.StateAccessSqlFilter=this.stateAccessSqlFilter,Array.isArray(this.certification)){r.Certification=[];for(let u of this.certification)r.Certification.push(u.toJSON())}if(r.RoleTypeStr=this.roleTypeStr,r.PendingRoleTypeStr=this.pendingRoleTypeStr,Array.isArray(this.roleTypeList)){r.RoleTypeList=[];for(let u of this.roleTypeList)r.RoleTypeList.push(u.toJSON())}if(Array.isArray(this.pendingRoleTypeList)){r.PendingRoleTypeList=[];for(let u of this.pendingRoleTypeList)r.PendingRoleTypeList.push(u.toJSON())}if(Array.isArray(this.stateTypeList)){r.StateTypeList=[];for(let u of this.stateTypeList)r.StateTypeList.push(u.toJSON())}if(r.StateAffliate=this.stateAffliate?this.stateAffliate.toJSON():void 0,r.Country=this.country?this.country.toJSON():void 0,r.User2StateAffliate=this.user2StateAffliate?this.user2StateAffliate.toJSON():void 0,r.IsOSD=this.isOSD,r.AllStateAccess=this.allStateAccess,r.Prefix=this.prefix,r.FormattedName=this.formattedName,r.FormattedNameSalutationFirst=this.formattedNameSalutationFirst,Array.isArray(this.featurePermissionsByRole)){r.FeaturePermissionsByRole=[];for(let u of this.featurePermissionsByRole)r.FeaturePermissionsByRole.push(u.toJSON())}if(Array.isArray(this.featurePermissionsByUser)){r.FeaturePermissionsByUser=[];for(let u of this.featurePermissionsByUser)r.FeaturePermissionsByUser.push(u.toJSON())}if(Array.isArray(this.targetContentRoleType)){r.TargetContentRoleType=[];for(let u of this.targetContentRoleType)r.TargetContentRoleType.push(u.toJSON())}if(this.visibleRoles){r.VisibleRoles={};for(let u in this.visibleRoles)this.visibleRoles.hasOwnProperty(u)&&(r.VisibleRoles[u]=this.visibleRoles[u])}return r.MilitaryRankTypeId=this.militaryRankTypeId,r.CurrentPassword=this.currentPassword?this.currentPassword.toJSON():void 0,r.CallerIdentity=this.callerIdentity?this.callerIdentity.toJSON():void 0,r.HasCac=this.hasCac,r.WorkPhoneRaw=this.workPhoneRaw,r.WorkPhoneExt=this.workPhoneExt,super.toJSON(r),r}}class ue extends J{constructor(r){super(r)}init(r){if(super.init(r),r){if(this.activeStatusChangeDate=r.ActiveStatusChangeDate?new Date(r.ActiveStatusChangeDate.toString()):void 0,this.agreeToAup=r.AgreeToAup,this.businessAddressId=r.BusinessAddressId,this.cacDodId=r.CacDodId,this.cacEmail=r.CacEmail,this.cacExpiryDate=r.CacExpiryDate?new Date(r.CacExpiryDate.toString()):void 0,this.cacSerialNumber=r.CacSerialNumber,this.cacSubject=r.CacSubject,this.dataConfirmedDate=r.DataConfirmedDate?new Date(r.DataConfirmedDate.toString()):void 0,this.firstName=r.FirstName,this.hasProvidedEmailPreference=r.HasProvidedEmailPreference,this.hasTwoFactor=r.HasTwoFactor,this.homeAddressId=r.HomeAddressId,this.homeFax=r.HomeFax,this.isAccountUnlockRequested=r.IsAccountUnlockRequested,this.isActive=r.IsActive,this.isLocked=r.IsLocked,this.isSubscribedToApprovalEmails=r.IsSubscribedToApprovalEmails,this.isSubscribedToJssCommunication=r.IsSubscribedToJssCommunication,this.lastModifiedBy=r.LastModifiedBy,this.lastModifiedOn=r.LastModifiedOn?new Date(r.LastModifiedOn.toString()):void 0,this.lastName=r.LastName,this.militaryComponentTypeId=r.MilitaryComponentTypeId,this.militaryInstallationTypeId=r.MilitaryInstallationTypeId,this.militaryRank2MilitaryComponentId=r.MilitaryRank2MilitaryComponentId,this.mobilePhone=r.MobilePhone,this.otherPhone=r.OtherPhone,this.passwordId=r.PasswordId,this.passwordTag=r.PasswordTag,this.phone=r.Phone,this.primaryEmail=r.PrimaryEmail,this.salutationTypeId=r.S
1alutationTypeId,this.secondaryEmail=r.SecondaryEmail,this.securityAnswer=r.SecurityAnswer,this.serviceMemberEmergencyContact=r.ServiceMemberEmergencyContact,this.serviceMemberFirstName=r.ServiceMemberFirstName,this.serviceMemberLastName=r.ServiceMemberLastName,this.serviceMemberMilitaryRank2MilitaryComponentId=r.ServiceMemberMilitaryRank2MilitaryComponentId,this.showEventCreateHelp=r.ShowEventCreateHelp,this.showOnSpn=r.ShowOnSpn,this.spnDescription=r.SpnDescription,this.statusTypeId=r.StatusTypeId,this.system=r.System,this.systemAdminComments=r.SystemAdminComments,this.tempPasswordId=r.TempPasswordId,this.unitFrgCommandId=r.UnitFrgCommandId,this.userName=r.UserName,this.workFax=r.WorkFax,this.workMobilePhone=r.WorkMobilePhone,this.workPhone=r.WorkPhone,this.workPhoneExt=r.WorkPhoneExt,this.workTollFreePhone=r.WorkTollFreePhone,Array.isArray(r.States)){this.states=[];for(let u of r.States)this.states.push(H.fromJS(u))}if(this.stateAffliate=r.StateAffliate?ve.fromJS(r.StateAffliate):void 0,this.user2StateAffliate=r.User2StateAffliate?H.fromJS(r.User2StateAffliate):void 0,Array.isArray(r.StateTypeList)){this.stateTypeList=[];for(let u of r.StateTypeList)this.stateTypeList.push(ve.fromJS(u))}}}static fromJS(r){r="object"==typeof r?r:{};let u=new ue;return u.init(r),u}toJSON(r){if((r="object"==typeof r?r:{}).ActiveStatusChangeDate=this.activeStatusChangeDate?this.activeStatusChangeDate.toISOString():void 0,r.AgreeToAup=this.agreeToAup,r.BusinessAddressId=this.businessAddressId,r.CacDodId=this.cacDodId,r.CacEmail=this.cacEmail,r.CacExpiryDate=this.cacExpiryDate?this.cacExpiryDate.toISOString():void 0,r.CacSerialNumber=this.cacSerialNumber,r.CacSubject=this.cacSubject,r.DataConfirmedDate=this.dataConfirmedDate?this.dataConfirmedDate.toISOString():void 0,r.FirstName=this.firstName,r.HasProvidedEmailPreference=this.hasProvidedEmailPreference,r.HasTwoFactor=this.hasTwoFactor,r.HomeAddressId=this.homeAddressId,r.HomeFax=this.homeFax,r.IsAccountUnlockRequested=this.isAccountUnlockRequested,r.IsActive=this.isActive,r.IsLocked=this.isLocked,r.IsSubscribedToApprovalEmails=this.isSubscribedToApprovalEmails,r.IsSubscribedToJssCommunication=this.isSubscribedToJssCommunication,r.LastModifiedBy=this.lastModifiedBy,r.LastModifiedOn=this.lastModifiedOn?this.lastModifiedOn.toISOString():void 0,r.LastName=this.lastName,r.MilitaryComponentTypeId=this.militaryComponentTypeId,r.MilitaryInstallationTypeId=this.militaryInstallationTypeId,r.MilitaryRank2MilitaryComponentId=this.militaryRank2MilitaryComponentId,r.MobilePhone=this.mobilePhone,r.OtherPhone=this.otherPhone,r.PasswordId=this.passwordId,r.PasswordTag=this.passwordTag,r.Phone=this.phone,r.PrimaryEmail=this.primaryEmail,r.SalutationTypeId=this.salutationTypeId,r.SecondaryEmail=this.secondaryEmail,r.SecurityAnswer=this.securityAnswer,r.ServiceMemberEmergencyContact=this.serviceMemberEmergencyContact,r.ServiceMemberFirstName=this.serviceMemberFirstName,r.ServiceMemberLastName=this.serviceMemberLastName,r.ServiceMemberMilitaryRank2MilitaryComponentId=this.serviceMemberMilitaryRank2MilitaryComponentId,r.ShowEventCreateHelp=this.showEventCreateHelp,r.ShowOnSpn=this.showOnSpn,r.SpnDescription=this.spnDescription,r.StatusTypeId=this.statusTypeId,r.System=this.system,r.SystemAdminComments=this.systemAdminComments,r.TempPasswordId=this.tempPasswordId,r.UnitFrgCommandId=this.unitFrgCommandId,r.UserName=this.userName,r.WorkFax=this.workFax,r.WorkMobilePhone=this.workMobilePhone,r.WorkPhone=this.workPhone,r.WorkPhoneExt=this.workPhoneExt,r.WorkTollFreePhone=this.workTollFreePhone,Array.isArray(this.states)){r.States=[];for(let u of this.states)r.States.push(u.toJSON())}if(r.StateAffliate=this.stateAffliate?this.stateAffliate.toJSON():void 0,r.User2StateAffliate=this.user2StateAffliate?this.user2StateAffliate.toJSON():void 0,Array.isArray(this.stateTypeList)){r.StateTypeList=[];for(let u of this.stateTypeList)r.StateTypeList.push(u.toJSON())}return super.toJSON(r),r}}class H extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.isAffiliate=r.IsAffiliate,this.stateTypeId=r.StateTypeId,this.userId=r.UserId)}static fromJS(r){r="object"==typeof r?r:{};let u=new H;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).IsAffiliate=this.isAffiliate,r.StateTypeId=this.stateTypeId,r.UserId=this.userId,super.toJSON(r),r}}class ve extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.countryTypeId=r.CountryTypeId,this.description=r.Description,this.lastUpdateDate=r.LastUpdateDate?new Date(r.LastUpdateDate.toString()):void 0,this.locationCoords=r.LocationCoords,this.locationMarker=r.LocationMarker,this.shortName=r.ShortName)}static fromJS(r){r="object"==typeof r?r:{};let u=new ve;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).CountryTypeId=this.countryTypeId,r.Description=this.description,r.LastUpdateDate=this.lastUpdateDate?this.lastUpdateDate.toISOString():void 0,r.LocationCoords=this.locationCoords,r.LocationMarker=this.locationMarker,r.ShortName=this.shortName,super.toJSON(r),r}}class Se extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.modifyByUserId=r.ModifyByUserId,this.modifyDate=r.ModifyDate?new Date(r.ModifyDate.toString()):void 0,this.roleTypeId=r.RoleTypeId,this.userId=r.UserId,this.userRoleStatusTypeId=r.UserRoleStatusTypeId)}static fromJS(r){r="object"==typeof r?r:{};let u=new Se;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).ModifyByUserId=this.modifyByUserId,r.ModifyDate=this.modifyDate?this.modifyDate.toISOString():void 0,r.RoleTypeId=this.roleTypeId,r.UserId=this.userId,r.UserRoleStatusTypeId=this.userRoleStatusTypeId,super.toJSON(r),r}}class X extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.clientTypeId=r.ClientTypeId,this.roleTypeId=r.RoleTypeId)}static fromJS(r){r="object"==typeof r?r:{};let u=new X;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).ClientTypeId=this.clientTypeId,r.RoleTypeId=this.roleTypeId,super.toJSON(r),r}}class de extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.certificationId=r.CertificationId,this.modifiedByUserId=r.ModifiedByUserId,this.modifyTime=r.ModifyTime?new Date(r.ModifyTime.toString()):void 0,this.userId=r.UserId)}static fromJS(r){r="object"==typeof r?r:{};let u=new de;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).CertificationId=this.certificationId,r.ModifiedByUserId=this.modifiedByUserId,r.ModifyTime=this.modifyTime?this.modifyTime.toISOString():void 0,r.UserId=this.userId,super.toJSON(r),r}}class re extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.communityTypeId=r.CommunityTypeId,this.componentAcce
1ssTypeId=r.ComponentAccessTypeId,this.description=r.Description,this.forumGroupId=r.ForumGroupId,this.isAccessAllState=r.IsAccessAllState,this.isVisible=r.IsVisible,this.programTypeId=r.ProgramTypeId,this.toolTip=r.ToolTip)}static fromJS(r){r="object"==typeof r?r:{};let u=new re;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).CommunityTypeId=this.communityTypeId,r.ComponentAccessTypeId=this.componentAccessTypeId,r.Description=this.description,r.ForumGroupId=this.forumGroupId,r.IsAccessAllState=this.isAccessAllState,r.IsVisible=this.isVisible,r.ProgramTypeId=this.programTypeId,r.ToolTip=this.toolTip,super.toJSON(r),r}}class B extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.countryTypeId=r.CountryTypeId,this.description=r.Description,this.lastUpdateDate=r.LastUpdateDate?new Date(r.LastUpdateDate.toString()):void 0,this.locationCoords=r.LocationCoords,this.locationMarker=r.LocationMarker,this.regionCode=r.RegionCode,this.regionTypeId=r.RegionTypeId,this.shortName=r.ShortName)}static fromJS(r){r="object"==typeof r?r:{};let u=new B;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).CountryTypeId=this.countryTypeId,r.Description=this.description,r.LastUpdateDate=this.lastUpdateDate?this.lastUpdateDate.toISOString():void 0,r.LocationCoords=this.locationCoords,r.LocationMarker=this.locationMarker,r.RegionCode=this.regionCode,r.RegionTypeId=this.regionTypeId,r.ShortName=this.shortName,super.toJSON(r),r}}class W extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.description=r.Description,this.lastUpdateBy=r.LastUpdateBy,this.lastUpdateDate=r.LastUpdateDate?new Date(r.LastUpdateDate.toString()):void 0,this.shortName=r.ShortName)}static fromJS(r){r="object"==typeof r?r:{};let u=new W;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).Description=this.description,r.LastUpdateBy=this.lastUpdateBy,r.LastUpdateDate=this.lastUpdateDate?this.lastUpdateDate.toISOString():void 0,r.ShortName=this.shortName,super.toJSON(r),r}}class Q extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.clientTypeId=r.ClientTypeId,this.cRUD=r.CRUD,this.featureTypeId=r.FeatureTypeId,this.isAlwaysEnabled=r.IsAlwaysEnabled,this.militaryComponentTypeId=r.MilitaryComponentTypeId,this.roleTypeId=r.RoleTypeId)}static fromJS(r){r="object"==typeof r?r:{};let u=new Q;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).ClientTypeId=this.clientTypeId,r.CRUD=this.cRUD,r.FeatureTypeId=this.featureTypeId,r.IsAlwaysEnabled=this.isAlwaysEnabled,r.MilitaryComponentTypeId=this.militaryComponentTypeId,r.RoleTypeId=this.roleTypeId,super.toJSON(r),r}}class g extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.cRUD=r.CRUD,this.featureId=r.FeatureId,this.isDefault=r.IsDefault,this.userId=r.UserId)}static fromJS(r){r="object"==typeof r?r:{};let u=new g;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).CRUD=this.cRUD,r.FeatureId=this.featureId,r.IsDefault=this.isDefault,r.UserId=this.userId,super.toJSON(r),r}}class oe extends J{constructor(r){super(r)}init(r){super.init(r),r&&(this.dateChanged=r.DateChanged?new Date(r.DateChanged.toString()):void 0,this.isTemp=r.IsTemp,this.password=r.Password,this.userId=r.UserId)}static fromJS(r){r="object"==typeof r?r:{};let u=new oe;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).DateChanged=this.dateChanged?this.dateChanged.toISOString():void 0,r.IsTemp=this.isTemp,r.Password=this.password,r.UserId=this.userId,super.toJSON(r),r}}class Re{constructor(r){if(r)for(var u in r)r.hasOwnProperty(u)&&(this[u]=r[u])}init(r){r&&(this.userId=r.UserId)}static fromJS(r){r="object"==typeof r?r:{};let u=new Re;return u.init(r),u}toJSON(r){return(r="object"==typeof r?r:{}).UserId=this.userId,r}}class $ extends Error{constructor(r,u,w,D,_){super(),this.isSwaggerException=!0,this.message=r,this.status=u,this.response=w,this.headers=D,this.result=_}static isSwaggerException(r){return!0===r.isSwaggerException}}function pe(L,r,u,w,D){return(0,T._)(null!=D?D:new $(L,r,u,w,null))}function P(L){return new e.y(r=>{if(L){let u=new FileReader;u.onload=w=>{r.next(w.target.result),r.complete()},u.readAsText(L)}else r.next(""),r.complete()})}},3285:(st,ae,d)=>{d.r(ae),d.d(ae,{EventCreationReportModule:()=>ye});var b=d(3689),E=d(6895),x=d(4006),T=d(7005),ce=d(7392),e=d(266),f=d(243),z=d(4229),Y=d(47),m=d(2986),k=d(9204),S=d(9107),
1C=d(1998),V=d(5866),J=d(833),ue=d(7418),H=d(5846),ve=d(9664),Se=d(8039),X=d(1709),de=d(7221),re=d(5254),B=d(1737),W=d(1086),Q=d(6498),g=d(4650),oe=d(529);const Re=new g.InjectionToken("API_BASE_URL");let pe=(()=>{class R extends class ${constructor(){}defaultJsonReviver(i,p){let I;if("string"==typeof p&&(I=/\/Date\(([-]?\d+)\)\//gi.exec(p),I&&I[1])){const F=new Date(parseInt(I[1],10)),U=F.getTimezoneOffset();return new Date(F.valueOf()+60*U*1e3)}return p}transformOptions(i){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(i)}}{constructor(p,I){super(),this.jsonParseReviver=void 0,this.http=p,this.baseUrl=I??""}submitReportRequest(p){let I=this.baseUrl+"/api/EventCreationReport/SubmitReportRequest";I=I.replace(/[?&]$/,"");let U={body:JSON.stringify(p),observe:"response",responseType:"blob",headers:new oe.WM({"Content-Type":"application/json",Accept:"application/json"})};return(0,re.D)(this.transformOptions(U)).pipe((0,X.zg)(A=>this.http.request("post",I,A))).pipe((0,X.zg)(A=>this.processSubmitReportRequest(A))).pipe((0,de.K)(A=>{if(!(A instanceof oe.QO))return(0,B._)(A);try{return this.processSubmitReportRequest(A)}catch(me){return(0,B._)(me)}}))}processSubmitReportRequest(p){const I=p.status,F=p instanceof oe.Zn?p.body:p.error instanceof Blob?p.error:void 0;let U={};if(p.headers)for(let A of p.headers.keys())U[A]=p.headers.get(A);return 200===I?ne(F).pipe((0,X.zg)(A=>{let me=null,Ee=""===A?null:JSON.parse(A,this.jsonParseReviver);return me=Ee?P.fromJS(Ee):null,(0,W.of)(me)})):200!==I&&204!==I?ne(F).pipe((0,X.zg)(A=>be("An unexpected server error occurred.",I,A,U))):(0,W.of)(null)}getCurrentUser(){let p=this.baseUrl+"/api/EventCreationReport/GetCurrentUser";p=p.replace(/[?&]$/,"");let I={observe:"response",responseType:"blob",headers:new oe.WM({Accept:"application/json"})};return(0,re.D)(this.transformOptions(I)).pipe((0,X.zg)(F=>this.http.request("get",p,F))).pipe((0,X.zg)(F=>this.processGetCurrentUser(F))).pipe((0,de.K)(F=>{if(!(F instanceof oe.QO))return(0,B._)(F);try{return this.processGetCurrentUser(F)}catch(U){return(0,B._)(U)}}))}processGetCurrentUser(p){const I=p.status,F=p instanceof oe.Zn?p.body:p.error instanceof Blob?p.error:void 0;let U={};if(p.headers)for(let A of p.headers.keys())U[A]=p.headers.get(A);return 200===I?ne(F).pipe((0,X.zg)(A=>{let me=null,Ee=""===A?null:JSON.parse(A,this.jsonParseReviver);return me=Ee?w.fromJS(Ee):null,(0,W.of)(me)})):200!==I&&204!==I?ne(F).pipe((0,X.zg)(A=>be("An unexpected server error occurred.",I,A,U))):(0,W.of)(null)}}return R.\u0275fac=function(p){return new(p||R)(g.\u0275\u0275inject(oe.eN),g.\u0275\u0275inject(Re,8))},R.\u0275prov=g.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})();class P{constructor(i){if(i)for(var p in i)i.hasOwnProperty(p)&&(this[p]=i[p])}init(i){i&&(this.state=i.State,this.stateDescription=i.StateDescription,this.validationMessage=i.ValidationMessage,this.downloadUrl=i.DownloadUrl,this.canFinishWithinThresholdTime=i.CanFinishWithinThresholdTime,this.id=i.Id,this.serverPollingIntervalMs=i.ServerPollingIntervalMs,this.maxWaitingForAReportMs=i.MaxWaitingForAReportMs,this.userEmail=i.UserEmail)}static fromJS(i){i="object"==typeof i?i:{};let p=new P;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).State=this.state,i.StateDescription=this.stateDescription,i.ValidationMessage=this.validationMessage,i.DownloadUrl=this.downloadUrl,i.CanFinishWithinThresholdTime=this.canFinishWithinThresholdTime,i.Id=this.id,i.ServerPollingIntervalMs=this.serverPollingIntervalMs,i.MaxWaitingForAReportMs=this.maxWaitingForAReportMs,i.UserEmail=this.userEmail,i}}
1class r{constructor(i){if(i)for(var p in i)i.hasOwnProperty(p)&&(this[p]=i[p])}init(i){if(i&&(this.startDate=i.StartDate?new Date(i.StartDate.toString()):void 0,this.endDate=i.EndDate?new Date(i.EndDate.toString()):void 0,this.timeGap=i.TimeGap,Array.isArray(i.ServiceComponentIds))){this.serviceComponentIds=[];for(let p of i.ServiceComponentIds)this.serviceComponentIds.push(p)}}static fromJS(i){i="object"==typeof i?i:{};let p=new r;return p.init(i),p}toJSON(i){if((i="object"==typeof i?i:{}).StartDate=this.startDate?this.startDate.toISOString():void 0,i.EndDate=this.endDate?this.endDate.toISOString():void 0,i.TimeGap=this.timeGap,Array.isArray(this.serviceComponentIds)){i.ServiceComponentIds=[];for(let p of this.serviceComponentIds)i.ServiceComponentIds.push(p)}return i}}class u{constructor(i){if(i)for(var p in i)i.hasOwnProperty(p)&&(this[p]=i[p])}init(i){i&&(this.id=i.Id,this.version=i.Version,this.isNew=i.IsNew)}static fromJS(i){i="object"==typeof i?i:{};let p=new u;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).Id=this.id,i.Version=this.version,i.IsNew=this.isNew,i}}class w extends u{constructor(i){super(i)}init(i){if(super.init(i),i){if(this.approverUserId=i.ApproverUserId,this.isDeleted=i.IsDeleted,this.passwordExpired=i.PasswordExpired,this.userIdInfo=i.UserIdInfo?D.fromJS(i.UserIdInfo):void 0,this.primaryEmail=i.PrimaryEmail,this.firstName=i.FirstName,this.lastName=i.LastName,this.passwordId=i.PasswordId,this.tempPasswordId=i.TempPasswordId,this.passwordTag=i.PasswordTag,this.mobilePhone=i.MobilePhone,this.otherPhone=i.OtherPhone,this.phone=i.Phone,this.workFax=i.WorkFax,this.workMobilePhone=i.WorkMobilePhone,this.workPhone=i.WorkPhone,this.homeAddressId=i.HomeAddressId,this.militaryComponentTypeId=i.MilitaryComponentTypeId,this.militaryInstallationTypeId=i.MilitaryInstallationTypeId,this.businessAddressId=i.BusinessAddressId,this.cacDodId=i.CacDodId,this.cacSerialNumber=i.CacSerialNumber,this.cacSubject=i.CacSubject,this.cacEmail=i.CacEmail,this.cacExpiryDate=i.CacExpiryDate?new Date(i.CacExpiryDate.toString()):void 0,this.hasTwoFactor=i.HasTwoFactor,this.isActive=i.IsActive,this.isLocked=i.IsLocked,this.isAccountUnlockRequested=i.IsAccountUnlockRequested,Array.isArray(i.Roles)){this.roles=[];for(let p of i.Roles)this.roles.push(te.fromJS(p))}if(Array.isArray(i.PendingRoles)){this.pendingRoles=[];for(let p of i.PendingRoles)this.pendingRoles.push(te.fromJS(p))}if(Array.isArray(i.RoleType2ClientTypes)){this.roleType2ClientTypes=[];for(let p of i.RoleType2ClientTypes)this.roleType2ClientTypes.push(se.fromJS(p))}if(Array.isArray(i.States)){this.states=[];for(let p of i.States)this.states.push(_.fromJS(p))}if(this.stateAccessSqlFilter=i.StateAccessSqlFilter,Array.isArray(i.Certification)){this.certification=[];for(let p of i.Certification)this.certification.push(ke.fromJS(p))}if(this.roleTypeStr=i.RoleTypeStr,this.pendingRoleTypeStr=i.PendingRoleTypeStr,Array.isArray(i.RoleTypeList)){this.roleTypeList=[];for(let p of i.RoleTypeList)this.roleTypeList.push(Ce.fromJS(p))}if(Array.isArray(i.PendingRoleTypeList)){this.pendingRoleTypeList=[];for(let p of i.PendingRoleTypeList)this.pendingRoleTypeList.push(Ce.fromJS(p))}if(Array.isArray(i.StateTypeList)){this.stateTypeList=[];for(let p of i.StateTypeList)this.stateTypeList.push(Me.fromJS(p))}if(this.stateAffliate=i.StateAffliate?Me.fromJS(i.StateAffliate):void 0,this.country=i.Country?Ue.fromJS(i.Country):void 0,this.user2StateAffliate=i.User2StateAffliate?_.fromJS(i.User2StateAffliate):void 0,this.isOSD=i.IsOSD,this.allStateAccess=i.AllStateAccess,this.prefix=i.Prefix,this.formattedName=i.FormattedName,this.formattedNameSalutationFirst=i.FormattedNameSalutationFirst,Array.isArray(i.FeaturePermissionsByRole)){this.featurePermissionsByRole=[];for(let p of i.FeaturePermissionsByRole)this.featurePermissionsByRole.push(De.fromJS(p))}if(Array.isArray(i.FeaturePermissionsByUser)){this.featurePermissionsByUser=[];for(let p of i.FeaturePermissionsByUser)this.featurePermissionsByUser.push(Te.fromJS(p))}if(Array.isArray(i.TargetContentRoleType)){this.targetContentRoleType=[];for(let p of i.TargetContentRoleType)this.targetContentRoleType.push(Ce.fromJS(p))}if(i.VisibleRoles){this.visibleRoles={};for(let p in i.VisibleRoles)i.VisibleRoles.hasOwnProperty(p)&&(this.visibleRoles[p]=i.VisibleRoles[p]?i.VisibleRoles[p].map(I=>Ce.fromJS(I)):[])}this.militaryRankTypeId=i.MilitaryRankTypeId,this.currentPassword=i.CurrentPassword?y.fromJS(i.CurrentPassword):void 0,this.callerIdentity=i.CallerIdentity?Oe.fromJS(i.CallerIdentity):void 0,this.hasCac=i.HasCac,this.workPhoneRaw=i.WorkPhoneRaw,this.workPhoneExt=i.WorkPhoneExt}}
1static fromJS(i){i="object"==typeof i?i:{};let p=new w;return p.init(i),p}toJSON(i){if((i="object"==typeof i?i:{}).ApproverUserId=this.approverUserId,i.IsDeleted=this.isDeleted,i.PasswordExpired=this.passwordExpired,i.UserIdInfo=this.userIdInfo?this.userIdInfo.toJSON():void 0,i.PrimaryEmail=this.primaryEmail,i.FirstName=this.firstName,i.LastName=this.lastName,i.PasswordId=this.passwordId,i.TempPasswordId=this.tempPasswordId,i.PasswordTag=this.passwordTag,i.MobilePhone=this.mobilePhone,i.OtherPhone=this.otherPhone,i.Phone=this.phone,i.WorkFax=this.workFax,i.WorkMobilePhone=this.workMobilePhone,i.WorkPhone=this.workPhone,i.HomeAddressId=this.homeAddressId,i.MilitaryComponentTypeId=this.militaryComponentTypeId,i.MilitaryInstallationTypeId=this.militaryInstallationTypeId,i.BusinessAddressId=this.businessAddressId,i.CacDodId=this.cacDodId,i.CacSerialNumber=this.cacSerialNumber,i.CacSubject=this.cacSubject,i.CacEmail=this.cacEmail,i.CacExpiryDate=this.cacExpiryDate?this.cacExpiryDate.toISOString():void 0,i.HasTwoFactor=this.hasTwoFactor,i.IsActive=this.isActive,i.IsLocked=this.isLocked,i.IsAccountUnlockRequested=this.isAccountUnlockRequested,Array.isArray(this.roles)){i.Roles=[];for(let p of this.roles)i.Roles.push(p.toJSON())}if(Array.isArray(this.pendingRoles)){i.PendingRoles=[];for(let p of this.pendingRoles)i.PendingRoles.push(p.toJSON())}if(Array.isArray(this.roleType2ClientTypes)){i.RoleType2ClientTypes=[];for(let p of this.roleType2ClientTypes)i.RoleType2ClientTypes.push(p.toJSON())}if(Array.isArray(this.states)){i.States=[];for(let p of this.states)i.States.push(p.toJSON())}if(i.StateAccessSqlFilter=this.stateAccessSqlFilter,Array.isArray(this.certification)){i.Certification=[];for(let p of this.certification)i.Certification.push(p.toJSON())}if(i.RoleTypeStr=this.roleTypeStr,i.PendingRoleTypeStr=this.pendingRoleTypeStr,Array.isArray(this.roleTypeList)){i.RoleTypeList=[];for(let p of this.roleTypeList)i.RoleTypeList.push(p.toJSON())}if(Array.isArray(this.pendingRoleTypeList)){i.PendingRoleTypeList=[];for(let p of this.pendingRoleTypeList)i.PendingRoleTypeList.push(p.toJSON())}if(Array.isArray(this.stateTypeList)){i.StateTypeList=[];for(let p of this.stateTypeList)i.StateTypeList.push(p.toJSON())}if(i.StateAffliate=this.stateAffliate?this.stateAffliate.toJSON():void 0,i.Country=this.country?this.country.toJSON():void 0,i.User2StateAffliate=this.user2StateAffliate?this.user2StateAffliate.toJSON():void 0,i.IsOSD=this.isOSD,i.AllStateAccess=this.allStateAccess,i.Prefix=this.prefix,i.FormattedName=this.formattedName,i.FormattedNameSalutationFirst=this.formattedNameSalutationFirst,Array.isArray(this.featurePermissionsByRole)){i.FeaturePermissionsByRole=[];for(let p of this.featurePermissionsByRole)i.FeaturePermissionsByRole.push(p.toJSON())}if(Array.isArray(this.featurePermissionsByUser)){i.FeaturePermissionsByUser=[];for(let p of this.featurePermissionsByUser)i.FeaturePermissionsByUser.push(p.toJSON())}if(Array.isArray(this.targetContentRoleType)){i.TargetContentRoleType=[];for(let p of this.targetContentRoleType)i.TargetContentRoleType.push(p.toJSON())}if(this.visibleRoles){i.VisibleRoles={};for(let p in this.visibleRoles)this.visibleRoles.hasOwnProperty(p)&&(i.VisibleRoles[p]=this.visibleRoles[p])}return i.MilitaryRankTypeId=this.militaryRankTypeId,i.CurrentPassword=this.currentPassword?this.currentPassword.toJSON():void 0,i.CallerIdentity=this.callerIdentity?this.callerIdentity.toJSON():void 0,i.HasCac=this.hasCac,i.WorkPhoneRaw=this.workPhoneRaw,i.WorkPhoneExt=this.workPhoneExt,super.toJSON(i),i}}class D extends u{constructor(i){super(i)}init(i){if(super.init(i),i){if(this.activeStatusChangeDate=i.ActiveStatusChangeDate?new Date(i.ActiveStatusChangeDate.toString()):void 0,this.agreeToAup=i.AgreeToAup,this.businessAddressId=i.BusinessAddressId,this.cacDodId=i.CacDodId,this.cacEmail=i.CacEmail,this.cacExpiryDate=i.CacExpiryDate?new Date(i.CacExpiryDate.toString()):void 0,this.cacSerialNumber=i.CacSerialNumber,this.cacSubject=i.CacSubject,this.dataConfirmedDate=i.DataConfirmedDate?new Date(i.DataConfirmedDate.toString()):void 0,this.firstName=i.FirstName,this.hasProvidedEmailPreference=i.HasProvidedEmailPreference,this.hasTwoFactor=i.HasTwoFactor,this.homeAddressId=i.HomeAddressId,this.homeFax=i.HomeFax,this.inactivityNotificationDate=i.InactivityNotificationDate?new Date(i.InactivityNotificationDate.toString()):void 0,this.isAccountUnlockRequested=i.IsAccountUnlockRequested,this.isActive=i.IsActive,this.isDeleted=i.IsDeleted,this.isLocked=i.IsLocked,this.isSubscribedToApprovalEmails=i.IsSubscribedToApprovalEmails,this.isSubscribedToJssCommunication=i.IsSubscribedToJssCommunication,this.lastModifiedBy=i.LastModifiedBy,this.lastModifiedOn=i.LastModifiedOn?new Date(i.LastModifiedOn.toString()):void 0,this.lastName=i.LastName,this.militaryComponentTypeId=i.MilitaryComponentTypeId,this.militaryInstallationTypeId=i.MilitaryInstallationTypeId,this.militaryRank2MilitaryComponentId=i.MilitaryRank2MilitaryComponentId,this.mobilePhone=i.MobilePhone,this.otherPhone=i.OtherPhone,this.passwordId=i.PasswordId,this.passwordTag=i.PasswordTag,this.phone=i.Phone,this.primaryEmail=i.PrimaryEmail,this.salutationTypeId=i.SalutationTypeId,this.secondaryEmail=i.SecondaryEmail,this.securityAnswer=i.SecurityAnswer,this.serviceMemberEmergencyContact=i.ServiceMemberEmergencyContact,this.serviceMemberFirstName=i.ServiceMemberFirstName,this.serviceMemberLastName=i.ServiceMemberLastName,this.serviceMemberMilitaryRank2MilitaryComponentId=i.ServiceMemberMilitaryRank2MilitaryComponentId,this.showEventCreateHelp=i.ShowEventCreateHelp,this.showOnSpn=i.ShowOnSpn,this.spnDescription=i.SpnDescription,this.statusTypeId=i.StatusTypeId,this.system=i.System,this.systemAdminComments=i.SystemAdminComments,this.tempPasswordId=i.TempPasswordId,this.unitFrgCommandId=i.UnitFrgCommandId,this.userName=i.UserName,this.workFax=i.WorkFax,this.workMobilePhone=i.WorkMobilePhone,this.workPhone=i.WorkPhone,this.workPhoneExt=i.WorkPhoneExt,this.workTollFreePhone=i.WorkTollFreePhone,Array.isArray(i.States)){this.states=[];for(let p of i.States)this.states.push(_.fromJS(p))}if(this.stateAffliate=i.StateAffliate?N.fromJS(i.StateAffliate):void 0,this.user2StateAffliate=i.User2StateAffliate?_.fromJS(i.User2StateAffliate):void 0,Array.isArray(i.StateTypeList)){this.stateTypeList=[];for(let p of i.StateTypeList)this.stateTypeList.push(N.fromJS(p))}}}
1static fromJS(i){i="object"==typeof i?i:{};let p=new D;return p.init(i),p}toJSON(i){if((i="object"==typeof i?i:{}).ActiveStatusChangeDate=this.activeStatusChangeDate?this.activeStatusChangeDate.toISOString():void 0,i.AgreeToAup=this.agreeToAup,i.BusinessAddressId=this.businessAddressId,i.CacDodId=this.cacDodId,i.CacEmail=this.cacEmail,i.CacExpiryDate=this.cacExpiryDate?this.cacExpiryDate.toISOString():void 0,i.CacSerialNumber=this.cacSerialNumber,i.CacSubject=this.cacSubject,i.DataConfirmedDate=this.dataConfirmedDate?this.dataConfirmedDate.toISOString():void 0,i.FirstName=this.firstName,i.HasProvidedEmailPreference=this.hasProvidedEmailPreference,i.HasTwoFactor=this.hasTwoFactor,i.HomeAddressId=this.homeAddressId,i.HomeFax=this.homeFax,i.InactivityNotificationDate=this.inactivityNotificationDate?this.inactivityNotificationDate.toISOString():void 0,i.IsAccountUnlockRequested=this.isAccountUnlockRequested,i.IsActive=this.isActive,i.IsDeleted=this.isDeleted,i.IsLocked=this.isLocked,i.IsSubscribedToApprovalEmails=this.isSubscribedToApprovalEmails,i.IsSubscribedToJssCommunication=this.isSubscribedToJssCommunication,i.LastModifiedBy=this.lastModifiedBy,i.LastModifiedOn=this.lastModifiedOn?this.lastModifiedOn.toISOString():void 0,i.LastName=this.lastName,i.MilitaryComponentTypeId=this.militaryComponentTypeId,i.MilitaryInstallationTypeId=this.militaryInstallationTypeId,i.MilitaryRank2MilitaryComponentId=this.militaryRank2MilitaryComponentId,i.MobilePhone=this.mobilePhone,i.OtherPhone=this.otherPhone,i.PasswordId=this.passwordId,i.PasswordTag=this.passwordTag,i.Phone=this.phone,i.PrimaryEmail=this.primaryEmail,i.SalutationTypeId=this.salutationTypeId,i.SecondaryEmail=this.secondaryEmail,i.SecurityAnswer=this.securityAnswer,i.ServiceMemberEmergencyContact=this.serviceMemberEmergencyContact,i.ServiceMemberFirstName=this.serviceMemberFirstName,i.ServiceMemberLastName=this.serviceMemberLastName,i.ServiceMemberMilitaryRank2MilitaryComponentId=this.serviceMemberMilitaryRank2MilitaryComponentId,i.ShowEventCreateHelp=this.showEventCreateHelp,i.ShowOnSpn=this.showOnSpn,i.SpnDescription=this.spnDescription,i.StatusTypeId=this.statusTypeId,i.System=this.system,i.SystemAdminComments=this.systemAdminComments,i.TempPasswordId=this.tempPasswordId,i.UnitFrgCommandId=this.unitFrgCommandId,i.UserName=this.userName,i.WorkFax=this.workFax,i.WorkMobilePhone=this.workMobilePhone,i.WorkPhone=this.workPhone,i.WorkPhoneExt=this.workPhoneExt,i.WorkTollFreePhone=this.workTollFreePhone,Array.isArray(this.states)){i.States=[];for(let p of this.states)i.States.push(p.toJSON())}if(i.StateAffliate=this.stateAffliate?this.stateAffliate.toJSON():void 0,i.User2StateAffliate=this.user2StateAffliate?this.user2StateAffliate.toJSON():void 0,Array.isArray(this.stateTypeList)){i.StateTypeList=[];for(let p of this.stateTypeList)i.StateTypeList.push(p.toJSON())}return super.toJSON(i),i}}class _ extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.isAffiliate=i.IsAffiliate,this.stateTypeId=i.StateTypeId,this.userId=i.UserId)}static fromJS(i){i="object"==typeof i?i:{};let p=new _;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).IsAffiliate=this.isAffiliate,i.StateTypeId=this.stateTypeId,i.UserId=this.userId,super.toJSON(i),i}}class N extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.countryTypeId=i.CountryTypeId,this.description=i.Description,this.lastUpdateDate=i.LastUpdateDate?new Date(i.LastUpdateDate.toString()):void 0,this.locationCoords=i.LocationCoords,this.locationMarker=i.LocationMarker,this.shortName=i.ShortName)}static fromJS(i){i="object"==typeof i?i:{};let p=new N;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).CountryTypeId=this.countryTypeId,i.Description=this.description,i.LastUpdateDate=this.lastUpdateDate?this.lastUpdateDate.toISOString():void 0,i.LocationCoords=this.locationCoords,i.LocationMarker=this.locationMarker,i.ShortName=this.shortName,super.toJSON(i),i}}class te extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.modifyByUserId=i.ModifyByUserId,this.modifyDate=i.ModifyDate?new Date(i.ModifyDate.toString()):void 0,this.roleTypeId=i.RoleTypeId,this.userId=i.UserId,this.userRoleStatusTypeId=i.UserRoleStatusTypeId)}
1static fromJS(i){i="object"==typeof i?i:{};let p=new te;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).ModifyByUserId=this.modifyByUserId,i.ModifyDate=this.modifyDate?this.modifyDate.toISOString():void 0,i.RoleTypeId=this.roleTypeId,i.UserId=this.userId,i.UserRoleStatusTypeId=this.userRoleStatusTypeId,super.toJSON(i),i}}class se extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.clientTypeId=i.ClientTypeId,this.roleTypeId=i.RoleTypeId)}static fromJS(i){i="object"==typeof i?i:{};let p=new se;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).ClientTypeId=this.clientTypeId,i.RoleTypeId=this.roleTypeId,super.toJSON(i),i}}class ke extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.certificationId=i.CertificationId,this.modifiedByUserId=i.ModifiedByUserId,this.modifyTime=i.ModifyTime?new Date(i.ModifyTime.toString()):void 0,this.userId=i.UserId)}static fromJS(i){i="object"==typeof i?i:{};let p=new ke;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).CertificationId=this.certificationId,i.ModifiedByUserId=this.modifiedByUserId,i.ModifyTime=this.modifyTime?this.modifyTime.toISOString():void 0,i.UserId=this.userId,super.toJSON(i),i}}class Ce extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.communityTypeId=i.CommunityTypeId,this.componentAccessTypeId=i.ComponentAccessTypeId,this.description=i.Description,this.forumGroupId=i.ForumGroupId,this.isAccessAllState=i.IsAccessAllState,this.isVisible=i.IsVisible,this.programTypeId=i.ProgramTypeId,this.toolTip=i.ToolTip)}static fromJS(i){i="object"==typeof i?i:{};let p=new Ce;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).CommunityTypeId=this.communityTypeId,i.ComponentAccessTypeId=this.componentAccessTypeId,i.Description=this.description,i.ForumGroupId=this.forumGroupId,i.IsAccessAllState=this.isAccessAllState,i.IsVisible=this.isVisible,i.ProgramTypeId=this.programTypeId,i.ToolTip=this.toolTip,super.toJSON(i),i}}class Me extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.countryTypeId=i.CountryTypeId,this.description=i.Description,this.isConus=i.IsConus,this.lastUpdateDate=i.LastUpdateDate?new Date(i.LastUpdateDate.toString()):void 0,this.locationCoords=i.LocationCoords,this.locationMarker=i.LocationMarker,this.regionCode=i.RegionCode,this.regionTypeId=i.RegionTypeId,this.shortName=i.ShortName)}static fromJS(i){i="object"==typeof i?i:{};let p=new Me;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).CountryTypeId=this.countryTypeId,i.Description=this.description,i.IsConus=this.isConus,i.LastUpdateDate=this.lastUpdateDate?this.lastUpdateDate.toISOString():void 0,i.LocationCoords=this.locationCoords,i.LocationMarker=this.locationMarker,i.RegionCode=this.regionCode,i.RegionTypeId=this.regionTypeId,i.ShortName=this.shortName,super.toJSON(i),i}}class Ue extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.description=i.Description,this.lastUpdateBy=i.LastUpdateBy,this.lastUpdateDate=i.LastUpdateDate?new Date(i.LastUpdateDate.toString()):void 0,this.shortName=i.ShortName)}static fromJS(i){i="object"==typeof i?i:{};let p=new Ue;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).Description=this.description,i.LastUpdateBy=this.lastUpdateBy,i.LastUpdateDate=this.lastUpdateDate?this.lastUpdateDate.toISOString():void 0,i.ShortName=this.shortName,super.toJSON(i),i}}class De extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.clientTypeId=i.ClientTypeId,this.cRUD=i.CRUD,this.featureTypeId=i.FeatureTypeId,this.isAlwaysEnabled=i.IsAlwaysEnabled,this.militaryComponentTypeId=i.MilitaryComponentTypeId,this.roleTypeId=i.RoleTypeId)}static fromJS(i){i="object"==typeof i?i:{};let p=new De;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).ClientTypeId=this.clientTypeId,i.CRUD=this.cRUD,i.FeatureTypeId=this.featureTypeId,i.IsAlwaysEnabled=this.isAlwaysEnabled,i.MilitaryComponentTypeId=this.militaryComponentTypeId,i.RoleTypeId=this.roleTypeId,super.toJSON(i),i}}class Te extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.cRUD=i.CRUD,this.featureId=i.FeatureId,this.isDefault=i.IsDefault,this.userId=i.UserId)}
1static fromJS(i){i="object"==typeof i?i:{};let p=new Te;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).CRUD=this.cRUD,i.FeatureId=this.featureId,i.IsDefault=this.isDefault,i.UserId=this.userId,super.toJSON(i),i}}class y extends u{constructor(i){super(i)}init(i){super.init(i),i&&(this.dateChanged=i.DateChanged?new Date(i.DateChanged.toString()):void 0,this.isTemp=i.IsTemp,this.password=i.Password,this.userId=i.UserId)}static fromJS(i){i="object"==typeof i?i:{};let p=new y;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).DateChanged=this.dateChanged?this.dateChanged.toISOString():void 0,i.IsTemp=this.isTemp,i.Password=this.password,i.UserId=this.userId,super.toJSON(i),i}}class Oe{constructor(i){if(i)for(var p in i)i.hasOwnProperty(p)&&(this[p]=i[p])}init(i){i&&(this.userId=i.UserId)}static fromJS(i){i="object"==typeof i?i:{};let p=new Oe;return p.init(i),p}toJSON(i){return(i="object"==typeof i?i:{}).UserId=this.userId,i}}class Ge extends Error{constructor(i,p,I,F,U){super(),this.isSwaggerException=!0,this.message=i,this.status=p,this.response=I,this.headers=F,this.result=U}static isSwaggerException(i){return!0===i.isSwaggerException}}function be(R,i,p,I,F){return(0,B._)(null!=F?F:new Ge(R,i,p,I,null))}function ne(R){return new Q.y(i=>{if(R){let p=new FileReader;p.onload=I=>{i.next(I.target.result),i.complete()},p.readAsText(R)}else i.next(""),i.complete()})}var Pe=d(5439),Fe=d(5412),je=d(918),Ie=d(5676),q=d(9549),ge=d(4144),ee=d(9602),le=d(3807),ze=d(8793);function We(R,i){1&R&&(g.\u0275\u0275elementStart(0,"mat-error"),g.\u0275\u0275text(1,"Last creation date is required."),g.\u0275\u0275elementEnd())}function Ve(R,i){1&R&&(g.\u0275\u0275elementStart(0,"mat-error"),g.\u0275\u0275text(1,"Earliest creation date must be less than or equal to last creation date."),g.\u0275\u0275elementEnd())}function Qe(R,i){1&R&&(g.\u0275\u0275elementStart(0,"mat-error",23),g.\u0275\u0275text(1,"A number is required."),g.\u0275\u0275elementEnd())}function we(R,i){1&R&&(g.\u0275\u0275elementStart(0,"mat-error"),g.\u0275\u0275text(1,"Please select a service component."),g.\u0275\u0275elementEnd())}let He=(()=>{class R{constructor(p,I,F,U,A,me,Ee,ut){this.fb=p,this.dialog=I,this.breadCrumbService=F,this.appFeatureService=U,this.militaryComponentService=A,this.eventCreationReportClient=me,this.renderer=Ee,this.document=ut,this.title="Event Creation Lead Time Report",this.serviceComponentLabel="Hosting Component*",this.helpUrl="",this.emptyGuid=S.Q1,this.confirmValidParentMatcher=new ue.q0,this.dateMask={guide:!0,showMask:!0,mask:k.X8},this.userRoles=[],this.endDate=new Date,this.startDate=function fe(R,i){(0,J.Z)(2,arguments);var p=(0,C.Z)(i);return(0,V.Z)(R,-p)}(this.endDate,3),this.timeGap=30}ngOnInit(){this.appFeature=this.appFeatureService.GetAppFeatures(),this.isServiceComponentEnabled=this.appFeature.ServiceComponent.Enabled,this.renderer.addClass(this.document.body,"event-creation-report-page"),this._initServiceComponents(),this._setupBreadCrumb(),this._setupForm(),this.eventCreationReportClient.getCurrentUser().pipe((0,m.q)(1)).subscribe(p=>{this.currentUser=p})}ngOnDestroy(){this.renderer.removeClass(this.document.body,"event-creation-report-page")}generateReport(){const p=this._getDateForServer(this.datesGroup.controls.beginDate?.value),I=this._getDateForServer(this.datesGroup.controls.endDate?.value),U=new r({startDate:p,endDate:I,serviceComponentIds:this.filterForm.controls.serviceComponentTypes?.value,timeGap:this.filterForm.controls.timeGap?.value});this.eventCreationReportClient.submitReportRequest(U).pipe((0,m.q)(1)).subscribe(A=>{A&&this.dialog.open(z.F,{panelClass:"mat-dialog-container-no-padding",data:{text:"Your request for a report has been submitted successfully! You should receive an email shortly with a link to download your report."}})},A=>{this.dialog.open(Y.I,{data:{title:"Error",message:JSON.stringify(A)},autoFocus:!1})})}_getDateForServer(p){const I=Pe(p).format("YYYY-MM-DD")+"T00:00Z";return new Date(I)}_setupForm(){this.datesGroup=this.fb.group({beginDate:[this.startDate,[x.Validators.required]],endDate:[this.endDate,[x.Validators.required]]},{validator:function(i){if(!i.get("beginDate")||!i.get("endDate"))return null;const p=i.get("beginDate").value,I=i.get("endDate").value;return p>I&&!(0,S.qJ)(p,I)?{rangeViolation:!0}:null}}),this.filterForm=this.fb.group({timeGap:[{value:this.timeGap,disabled:!1},[x.Validators.required]],serviceComponentTypes:[{value:this.serviceComponentIds,disabled:!1},[x.Validators.required]],dates:this.datesGroup})}_initServiceComponents(){this.serviceComponentTypes=this.isServiceComponentEnabled?this.militaryComponentService.filterComponents(!0,!1).map(p=>new ve.wv(p)):[],this.serviceComponentIds=this.serviceComponentTypes.map(p=>p.Id)}_setupBreadCrumb(){this.breadCrumbService.newBreadCrumb([{text:"Report Center",cssClass:"breadCrumbItem tools showArrow",alwaysShowArrow:!0},{text:this.title}])}}return R.\u0275fac=function(p){return new(p||R)(g.\u0275\u0275directiveInject(x.UntypedFormBuilder),g.\u0275\u0275directiveInject(Fe.uw),g.\u0275\u0275directiveInject(je._),g.\u0275\u0275directiveInject(Se.l),g.\u0275\u0275directiveInject(H.H),g.\u0275\u0275directiveInject(pe),g.\u0275\u0275directiveInject(g.Renderer2),g.\u0275\u0275directiveInject(E.K0))},R.\u0275cmp=g.\u0275\u0275defineComponent({type:R,selectors:[["app-event-creation-event-report"]],decls:40,vars:18,consts:[[3,"pageTitle"],[1,"mt-4","col-12",3,"formGroup"],[1,"row","main-selection","mb-3"],["formGroupName","dates"],[1,"col","col-date"],["appearance","outline",3,"textMask"],["matInput","","formControlName","beginDate",3,"matDatepicker"],["matSuffix","",3,"for"],["localDatepickerStart",""],[1,"col","col-date","col-date--last"],["matInput","","formControlName","endDate",3,"matDatepicker","errorStateMatcher"],["localDatepickerEnd",""],[4,"ngIf"],[1,"row","mb-3"],[1,"col","col-time-gap"],["appearance","outline",1,"time-gap-field"],["matInput","","formControlName","timeGap","type","number","min","0","maxlength","5"],["class","",4,"ngIf"],[1,"row"],[1,"col","col-selector"],["formControlName","serviceComponentTypes","filterBarPlaceholder","Start t
1yping service component type...","cssClass","militarycomponents-dropdown-select height-of-matinput",3,"dataSource","label","defaultToSelectAllOnDataSourceChange","required"],[1,"row","mr-4","ml-4","mt-4"],[1,"btn","btn-green","long-running-reports-container",3,"disabled","click"],[1,""]],template:function(p,I){if(1&p&&(g.\u0275\u0275elementStart(0,"app-post-login-page-layout",0),g.\u0275\u0275elementContainerStart(1),g.\u0275\u0275elementStart(2,"div",1)(3,"section",2),g.\u0275\u0275elementContainerStart(4,3),g.\u0275\u0275elementStart(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),g.\u0275\u0275text(8,"First Creation Date"),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(9,"input",6)(10,"mat-datepicker-toggle",7)(11,"mat-datepicker",null,8),g.\u0275\u0275elementStart(13,"mat-error"),g.\u0275\u0275text(14,"First creation date is required."),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(15,"div",9)(16,"mat-form-field",5)(17,"mat-label"),g.\u0275\u0275text(18,"Last Creation Date"),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(19,"input",10)(20,"mat-datepicker-toggle",7)(21,"mat-datepicker",null,11),g.\u0275\u0275template(23,We,2,0,"mat-error",12),g.\u0275\u0275template(24,Ve,2,0,"mat-error",12),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementContainerEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(25,"section",13)(26,"div",14)(27,"mat-form-field",15)(28,"mat-label"),g.\u0275\u0275text(29,"Days from creation to start date"),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(30,"input",16),g.\u0275\u0275template(31,Qe,2,0,"mat-error",17),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(32,"section",18)(33,"div",19),g.\u0275\u0275element(34,"app-multiselect-wrapper",20),g.\u0275\u0275template(35,we,2,0,"mat-error",12),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementContainerEnd(),g.\u0275\u0275elementStart(36,"div",21)(37,"button",22),g.\u0275\u0275listener("click",function(){return I.generateReport()}),g.\u0275\u0275elementStart(38,"span"),g.\u0275\u0275text(39,"Generate Report"),g.\u0275\u0275elementEnd()()()()),2&p){const F=g.\u0275\u0275reference(12),U=g.\u0275\u0275reference(22);g.\u0275\u0275property("pageTitle",I.title),g.\u0275\u0275advance(2),g.\u0275\u0275property("formGroup",I.filterForm),g.\u0275\u0275advance(4),g.\u0275\u0275property("textMask",I.dateMask),g.\u0275\u0275advance(3),g.\u0275\u0275property("matDatepicker",F),g.\u0275\u0275advance(1),g.\u0275\u0275property("for",F),g.\u0275\u0275advance(6),g.\u0275\u0275property("textMask",I.dateMask),g.\u0275\u0275advance(3),g.\u0275\u0275property("matDatepicker",U)("errorStateMatcher",I.confirmValidParentMatcher),g.\u0275\u0275advance(1),g.\u0275\u0275property("for",U),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngIf",I.datesGroup.controls.endDate.hasError("required")),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",I.filterForm.controls.dates.hasError("rangeViolation")),g.\u0275\u0275advance(7),g.\u0275\u0275property("ngIf",I.filterForm.get("timeGap").hasError("required")),g.\u0275\u0275advance(3),g.\u0275\u0275property("dataSource",I.serviceComponentTypes)("label",I.serviceComponentLabel)("defaultToSelectAllOnDataSourceChange",!1)("required",!0),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",I.filterForm.controls.serviceComponentTypes.hasError("required")),g.\u0275\u0275advance(2),g.\u0275\u0275property("disabled",!I.filterForm.valid)}},dependencies:[E.O5,x.DefaultValueAccessor,x.NumberValueAccessor,x.NgControlStatus,x.NgControlStatusGroup,x.RequiredValidator,x.MaxLengthValidator,x.MinValidator,x.FormGroupDirective,x.FormControlName,x.FormGroupName,Ie.j,q.TO,q.KE,q.hX,q.R9,ge.Nt,ee.Mq,ee.hl,ee.nW,le.hd,ze.L],styles:[".col-date[_ngcontent-%COMP%]{width:190px;flex-basis:190px;flex-shrink:0;max-width:190px}.col-time-gap[_ngcontent-%COMP%]{width:220px;flex-basis:220px;flex-shrink:0;max-width:220px}.col-selector[_ngcontent-%COMP%]{width:300px;max-width:300px;min-width:300px;margin-bottom:30px}.col-selector[_ngcontent-%COMP%], .col-date--last[_ngcontent-%COMP%]{margin-right:60px}.col[_ngcontent-%COMP%] app-multiselect-wrapper[_ngcontent-%COMP%]{margin-top:4px;display:block}mat-form-field.time-gap-field[_ngcontent-%COMP%]{margin-top:-4px}mat-form-field.time-gap-field[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{border:none;text-align:left}.time-gap-label[_ngcontent-%COMP%]{margin-top:18px;margin-left:1rem}"]}),R})();var Be=d(7680),Ne=d(4385),Ae=d(1948),$e=d(3626),Ke=d(8818),Ze=d(4034),Ye=d(5421),Xe=d(9199),ie=d(8234),et=d(4859),j=d(6709),K=d(3238),M=d(1150),O=d(3152);const he=[{path:"",component:He}];let ye=(()=>{class R{}return R.\u0275fac=function(p){return new(p||R)},R.\u0275mod=g.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=g.\u0275\u0275defineInjector({providers:[H.H,Ze.s,Ye.h,Xe.g,ie.D,pe,O.$],imports:[e.AV,ce.Ps,E.ez,x.ReactiveFormsModule,T.E,f.I,q.lN,ge.c,Ne.LD,Ae.Fk,ee.FA,$e.p0,le.QA,Be.y,Ke.o,et.ot,j.p9,M.S,K.XK,b.Bz.forChild(he)]}),R})()},8470:(st,ae,d)=>{d.r(ae),d.d(ae,{EventsModule:()=>Ui});var b=d(6895),E=d(3689),x=d(451),T=d(7221),ce=d(4425),e=d(4650),f=d(529);let z=(()=>{class s{constructor(t,o){this.http=t,this.handleError=o.createHandleError("EventsService")}getEventDeploymentPhases(t){return this.http.get("/api/Events/GetEventDeploymentPhases?eventId="+t).pipe((0,T.K)(this.handleError("getEventDeploymentPhases",null)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(ce.G))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Y=(()=>{class s{constructor(t){this.eventsService=t}resolve(t){const o=t.paramMap.get("id");return this.eventsService.getEventDeploymentPhases(o)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(z))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();var m=d(1709),k=d(5254),S=d(1737),C=d(1086),V=d(6498);const J=new e.InjectionToken("API_BASE_URL");let ue=(()=>{class s extends class fe{defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\((\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}constructor(){}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}getPreferenceByEventId(t){let o=this.baseUrl+"/api/MailingList/GetPreferenceByEventId?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processGetPreferenceByEventId(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGetPreferenceByEventId(a)}catch(l){return(0,S._)(l)}}))}processGetPreferenceByEventId(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?de(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?H.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?de(c).pipe((0,m.zg)(l=>X("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}downloadMailingList(t){let o=this.baseUrl+"/api/MailingList/DownloadMailingList";o=o.replace(/[?&]$/,"");let a={body:JSON.stringify(t),observe:"response",responseType:"blob",headers:new f.WM({"Content-Type":"application/json",Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("post",o,l))).pipe((0,m.zg)(l=>this.processDownloadMailingList(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processDownloadMailingList(l)}catch(h){return(0,S._)(h)}}))}processDownloadMailingList(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);
1if(200===o||206===o){const l=t.headers?t.headers.get("content-disposition"):void 0,h=l?/filename="?([^"]*?)"?(;|$)/g.exec(l):void 0;return(0,C.of)({fileName:h&&h.length>1?h[1]:void 0,data:c,status:o,headers:a})}return 200!==o&&204!==o?de(c).pipe((0,m.zg)(l=>X("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(J,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class H{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.hasRegistrantStatusIndicator=n.HasRegistrantStatusIndicator)}static fromJS(n){n="object"==typeof n?n:{};let t=new H;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).HasRegistrantStatusIndicator=this.hasRegistrantStatusIndicator,n}}class Se extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function X(s,n,t,o,c){return(0,S._)(null!=c?c:new Se(s,n,t,o,null))}function de(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}var re=d(3329),B=d(47),W=d(8039),Q=d(3298),g=d(5412);function oe(s,n){1&s&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"(Registrant Status Indicator)"),e.\u0275\u0275elementEnd())}let Re=(()=>{class s{constructor(t,o){this.dialogRef=t,this.data=o}ngOnInit(){this.data.btnSubmitText||(this.data.btnSubmitText="Submit"),this.data.btnCancelText||(this.data.btnCancelText="Cancel")}onCancelClick(){this.dialogRef.close()}onSubmitClick(){this.dialogRef.close(!0)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(g.so),e.\u0275\u0275directiveInject(g.WI))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-preview-dialog"]],decls:55,vars:4,consts:[[1,"modalPopup","p-0","html-dialog-modal"],[1,"modal-popup-inside","p-0"],[1,"modal-popup-close"],[1,"modal-popup-close-icon",3,"click"],[1,"modal-popup-content","my-0"],[1,"topsection-header","mx-0","my-0"],[1,"row","preview-dialog-container"],[1,"preview-mailinglist","col-md-12","col-lg-7","auto-height"],[1,"input-row"],[1,"float-left"],[4,"ngIf"],["id","printType",1,"CheckboxRadioList","col-md-12","col-lg-5","auto-height"],[1,"print_playout_block--mailing-label"],[1,"group","small_title"],[1,"print-layout-type","float-left"],[1,"tooltip-container"],[1,"info-tool-tip"],[1,"info-tip"],[1,"info-tool-tip-content","width200"],[1,"small_title"],[1,"item-panel","py-0","d-flex","flex-row-reverse"],["type","button",1,"btn","btn-green","btn-md",3,"click"],["type","button",1,"btn","btn-tertiary","color-link-dark",3,"click"],["href","/Assets/ThemesCommon/CSS/Modal.css","rel","stylesheet","type","text/css","media","all"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.\u0275\u0275listener("click",function(){return o.onCancelClick()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",4)(5,"h2",5),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div")(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9)(12,"div")(13,"span"),e.\u0275\u0275text(14,"Salutation "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"span"),e.\u0275\u0275text(16,"FirstName "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"span"),e.\u0275\u0275text(18,"LastName "),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(19,oe,2,0,"span",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"div")(21,"span"),e.\u0275\u0275text(22,"Address Line 1,"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(23,"div")(24,"span"),e.\u0275\u0275text(25,"Address Line 2,"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(26,"div")(27,"span"),e.\u0275\u0275text(28,"City, State, Zip Code"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(29,"div")(30,"span"),e.\u0275\u0275text(31,"Country"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(32,"div",11)(33,"h2",5),e.\u0275\u0275text(34," Print Layout "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"div",12)(36,"div",13)(37,"div",14)(38,"span"),e.\u0275\u0275text(39,"8.5 X 11 Label Sheet"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(40,"div",15)(41,"div",16)(42,"span",17)(43,"span",18)(44,"strong"),e.\u0275\u0275text(45,"Please note:"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(46,' Compatible with Avery Name Badges 5384, 3" x 4" or similar (30 labels per sheet). Test print recommended prior to purchase, to ensure compatibility with store bought labels. '),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(47,"div",19),e.\u0275\u0275text(48,"(30 labels per sheet)"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(49,"div",20)(50,"button",21),e.\u0275\u0275listener("click",function(){return o.onSubmitClick()}),e.\u0275\u0275text(51),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(52,"button",22),e.\u0275\u0275listener("click",function(){return o.onCancelClick()}),e.\u0275\u0275text(53),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275element(54,"link",23)),2&t&&(e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(o.data.title),e.\u0275\u0275advance(13),e.\u0275\u0275property("ngIf",!!o.data.hasRegistrantStatusIndicator),e.\u0275\u0275advance(32),e.\u0275\u0275textInterpolate1(" ",o.data.btnSubmitText," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.data.btnCancelText," "))},dependencies:[b.O5],styles:[".modalPopup[_ngcontent-%COMP%]{display:block}"]}),s})();var $=d(918),pe=d(5276),P=d(4006),L=d(1481),r=d(6709),u=d(9549),w=d(4385),D=d(3238);function _(s){return function(t){return t.value&&t.value.length>=s?null:{required:!0}}}function N(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"label")(1,"input",4),e.\u0275\u0275listener("change",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(a.checkChanged(c))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()}if(2&s){const t=e.\u0275\u0275nextContext().$implicit,o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("checked",o.isItemChecked(t)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.description," ")}}function te(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-checkbox",5),e.\u0275\u0275listener("change",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.checkChanged(c))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&s){const t=e.\u0275\u0275nextContext().$implicit,o=e.\u0275\u0275nextContext();e.\u0275\u0275property("checked",o.isItemChecked(t)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.description)}}function se(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"span",1),e.\u0275\u0275template(1,N,3,2,"label",2),e.\u0275\u0275template(2,te,2,2,"mat-checkbox",3),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",t.itemClass),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isNewTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isNewTheme)}}let ke=(()=>{class s{constructor(){this.itemList=[],this.minRequired=0,this.valueList=[],this.isNewTheme=!1,this.propagateChange=t=>{},this.propagateTouch=()=>{},this.validateFn=t=>{}}ngOnInit(){this.itemList.forEach(t=>{t.id||(t.id=t.Id),t.description||(t.description=t.Description),t.description||(t.description=t.text),t.description||(t.description=t.Text),t.description||(t.description=t.name),t.description||(t.description=t.Name)})}ngOnChanges(){this.validateFn=_(this.minRequired),this.propagateChange(this.valueList)}writeValue(t){this.valueList=t}registerOnChange(t){this.propagateChange=t}registerOnTouched(t){this.propagateTouch=t}checkChanged(t){const o=this.valueList.indexOf(t.id);-1===o?this.valueList.push(t.id):this.valueList.splice(o,1),this.validateFn=_(this.minRequired),this.propagateChange(this.valueList)}isItemChecked(t){return t&&this.valueList&&-1!==this.valueList.indexOf(t.id)}validate(t){return this.validateFn(t)}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-checkbox-list-control"]],inputs:{itemList:"itemList",minRequired:"minRequired",itemClass:"itemClass",valueList:"valueList",isNewTheme:"isNewTheme"},features:[e.\u0275\u0275ProvidersFeature([{provide:P.NG_VALUE_ACCESSOR,useExisting:(0,e.forwardRef)(()=>s),multi:!0},{provide:P.NG_VALIDATORS,useExisting:(0,e.forwardRef)(()=>s),multi:!0}]),e.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[4,"ngIf"],[3,"checked","change",4,"ngIf"],["type","checkbox",3,"checked","change"],[3,"checked","change"]],template:function(t,o){1&t&&e.\u0275\u0275template(0,se,3,3,"span",0),2&t&&e.\u0275\u0275property("ngForOf",o.itemList)},dependencies:[b.mk,b.sg,b.O5,r.oG],encapsulation:2}),s})();function Ce(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div",25),e.\u0275\u0275text(1,"Please select at least one attendee category."),e.\u0275\u0275elementEnd())}function Me(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div",23),e.\u0275\u0275template(1,Ce,2,0,"div",24),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.mailingListForm.controls.registrantCategoryTypeIdList.errors.required)}}function Ue(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"mat-option",20),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&s){const t=n.$implicit;e.\u0275\u0275property("value",t.Id),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.Name)}}let De=(()=>{class s{constructor(t,o,c,a,l,h,v,G,Pt,wt,At){this.generatedTypeService=t,this.route=o,this.breadCrumbService=c,this.dialog=a,this.renderer=l,this.mailingListService=v,this.fileService=G,this.fb=Pt,this.titleService=wt,this.appFeatureService=At,l.addClass(h.body,"mailingList"),this.Ap
1pFeature=this.appFeatureService.GetAppFeatures()}ngOnDestroy(){this.renderer.removeClass(document.body,"mailingList")}ngOnInit(){this.emptyGuid=re.Q,this.title="Mailing Label",this.helpLink=Q.UI.Description,this.titleService.setTitle(this.title+" | "+this.AppFeature.PagesMetaTags.HomepageTitle);let t="";this.route.snapshot.params.id&&(t=this.route.snapshot.params.id),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.phases=this.route.snapshot.data.phases||[];const o=this.generatedTypeService.Dbo.Types.EventRegistrationCategoryType.Constants;this.registrantCategoryTypes=[o.Attendee,o.SupportStaff,o.Vendor_Exhibitor,o.VIP],this.mailingListForm=this.fb.group({eventId:t,preference:this.fb.group(this.route.snapshot.data.filterPreference||{hasRegistrantStatusIndicator:!1}),toSaveSelections:!0,includeAdditional:!0,deploymentPhaseId:this.emptyGuid,registrantCategoryTypeIdList:this.fb.control([o.Attendee.Id])}),this.mailingListForm.controls.deploymentPhaseId.setValue(this.emptyGuid,{onlySelf:!0})}preview(){if(this.mailingListForm.valid){const t=Object.assign({},this.mailingListForm.value);t.deploymentPhaseIdList=this.mailingListForm.controls.deploymentPhaseId.value&&this.mailingListForm.controls.deploymentPhaseId.value!==this.emptyGuid?[this.mailingListForm.controls.deploymentPhaseId.value]:this.phases.map(c=>c.Id),this.dialog.open(Re,{data:{title:"Preview "+this.title,btnSubmitText:"Download and Print "+this.title,hasRegistrantStatusIndicator:t.preference.hasRegistrantStatusIndicator}}).afterClosed().subscribe(c=>{!0===c&&this.mailingListService.downloadMailingList(t).subscribe(a=>{a&&200===a.status&&a.data?this.fileService.downloadFile(a,"MailingList.docx"):a||this.dialog.open(B.I,{data:{title:"There are no approved registrants for this event. You can only generate a mailing list of approved registrants."},autoFocus:!1})})})}}getOptions(){return{isSingleColumn:!0,hasEventSideMenu:!1,newStyleDialog:!0}}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(re.F),e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(g.uw),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(b.K0),e.\u0275\u0275directiveInject(ue),e.\u0275\u0275directiveInject(pe.I),e.\u0275\u0275directiveInject(P.UntypedFormBuilder),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(W.l))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-mailing-list"]],features:[e.\u0275\u0275ProvidersFeature([re.F])],decls:46,vars:6,consts:[[1,"rem-12-t","mailingListForm",3,"formGroup"],[1,"checkBoxList"],[1,"row"],[1,"col-12"],["checked","true","disabled","",1,"col-12","col-lg-3","col-xl-2"],["formGroupName","preference",1,"col-12"],["formControlName","hasRegistrantStatusIndicator"],[1,"overflowHidden"],[1,"mt-5"],["formControlName","toSaveSelections"],[1,"topsection-header"],[1,"subsection-header"],["formControlName","registrantCategoryTypeIdList","itemClass","col-6 col-lg-3 col-xl-2","isNewTheme","true","minRequired","1",1,"row",3,"itemList"],["class","col-md-12 validation-msg",4,"ngIf"],[1,"row","mt-4"],[1,"col-6","col-lg-3","col-xl-2"],["formControlName","includeAdditional"],[1,"inputRow","mt-5"],["appearance","outline",1,"width350","inputValue"],["formControlName","deploymentPhaseId"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-green","btn-lg","float-right","btn-b","lock","mt-4","mb-4",3,"click"],[1,"col-md-12","validation-msg"],["class","errorBlock",4,"ngIf"],[1,"errorBlock"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"form",0)(1,"div",1)(2,"div",2)(3,"p",3),e.\u0275\u0275text(4,"Select the elements you require to appear on your mailing label(s) and preview your selection before printing."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"mat-checkbox",4),e.\u0275\u0275text(6,"Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"mat-checkbox",4),e.\u0275\u0275text(8,"Salutation/R
1ank"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"mat-checkbox",4),e.\u0275\u0275text(10,"Full Address"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",5)(12,"mat-checkbox",6),e.\u0275\u0275text(13," Registrant status indicator: (P) for Primary registrant; (A) for Additional Adult Guest(s) 18 or older "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(14,"div",7)(15,"div",8)(16,"mat-checkbox",9),e.\u0275\u0275text(17," Save selections "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(18,"div")(19,"h2",10),e.\u0275\u0275text(20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"div",2)(22,"div",3)(23,"h3",11),e.\u0275\u0275text(24,"Primary Registrant"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(25,"div",3),e.\u0275\u0275element(26,"app-checkbox-list-control",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(27,Me,2,1,"div",13),e.\u0275\u0275elementStart(28,"div",14)(29,"div",3)(30,"h3",11),e.\u0275\u0275text(31,"Additional Guest(s)"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(32,"div",15)(33,"mat-checkbox",16),e.\u0275\u0275text(34,"Adult Guest(s) 18 or older"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(35,"div",17)(36,"mat-form-field",18)(37,"mat-label"),e.\u0275\u0275text(38,"Deployment Phase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(39,"mat-select",19)(40,"mat-option",20),e.\u0275\u0275text(41,"All Deployment Phases"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(42,Ue,2,2,"mat-option",21),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(43,"div")(44,"button",22),e.\u0275\u0275listener("click",function(){return o.preview()}),e.\u0275\u0275text(45,"Preview Mailing Label"),e.\u0275\u0275elementEnd()()()()),2&t&&(e.\u0275\u0275property("formGroup",o.mailingListForm),e.\u0275\u0275advance(20),e.\u0275\u0275textInterpolate1("Print ",o.title," for:"),e.\u0275\u0275advance(6),e.\u0275\u0275property("itemList",o.registrantCategoryTypes),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.mailingListForm.controls.registrantCategoryTypeIdList.errors),e.\u0275\u0275advance(13),e.\u0275\u0275property("value",o.emptyGuid),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",o.phases))},dependencies:[b.sg,b.O5,P.\u0275NgNoValidate,P.NgControlStatus,P.NgControlStatusGroup,P.FormGroupDirective,P.FormControlName,P.FormGroupName,r.oG,u.KE,u.hX,w.gD,D.ey,ke],encapsulation:2}),s})(),Te=(()=>{class s{constructor(t){this.mailingListService=t}resolve(t){const o=t.paramMap.get("id");return this.mailingListService.getPreferenceByEventId(o)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(ue))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();var y=d(2986);const Oe=new e.InjectionToken("API_BASE_URL");let be=(()=>{class s extends class Ge{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}isFeatureAccessible(t){let o=this.baseUrl+"/api/WellBeingQuestionnaire/IsFeatureAccessible?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processIsFeatureAccessible(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processIsFeatureAccessible(a)}catch(l){return(0,S._)(l)}}))}processIsFeatureAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?q(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?q(c).pipe((0,m.zg)(l=>Ie("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getTotalApprovedRegistrants(t){let o=this.baseUrl+"/api/WellBeingQuestionnaire/GetTotalApprovedRegistrants?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>
1this.processGetTotalApprovedRegistrants(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGetTotalApprovedRegistrants(a)}catch(l){return(0,S._)(l)}}))}processGetTotalApprovedRegistrants(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?q(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?ne.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?q(c).pipe((0,m.zg)(l=>Ie("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}sendEmailToApprovedRegistrants(t){let o=this.baseUrl+"/api/WellBeingQuestionnaire/SendEmailToApprovedRegistrants?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processSendEmailToApprovedRegistrants(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processSendEmailToApprovedRegistrants(a)}catch(l){return(0,S._)(l)}}))}processSendEmailToApprovedRegistrants(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?q(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?q(c).pipe((0,m.zg)(l=>Ie("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}submitReportRequest(t){let o=this.baseUrl+"/api/WellBeingQuestionnaire/SubmitReportRequest?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("post",o,a))).pipe((0,m.zg)(a=>this.processSubmitReportRequest(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processSubmitReportRequest(a)}catch(l){return(0,S._)(l)}}))}processSubmitReportRequest(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?q(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?Pe.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?q(c).pipe((0,m.zg)(l=>Ie("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}reSendEmails(t){let o=this.baseUrl+"/api/WellBeingQuestionnaire/ReSendEmails?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processReSendEmails(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processReSendEmails(a)}catch(l){return(0,S._)(l)}}))}processReSendEmails(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?q(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?q(c).pipe((0,m.zg)(l=>Ie("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(Oe,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class ne{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.totalApprovedAttendees=n.TotalApprovedAttendees,this.previouslySentEmails=n.PreviouslySentEmails,this.notCompletedQuestionnaires=n.NotCompletedQuestionnaires,this.completedQuestionnaires=n.CompletedQuestionnaires,this.isSendEmailEnable=n.IsSendEmailEnable,this.resendWaitTimeLeftMins=n.ResendWaitTimeLeftMins,this.lastResendDateTime=n.LastResendDateTime,this.showResendButton=n.ShowResendButton,this.enableResendButton=n.EnableResendButton,this.resendButtonText=n.ResendButtonText)}static fromJS(n){n="object"==typeof n?n:{};let t=new ne;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).TotalApprovedAttendees=this.totalApprovedAttendees,n.PreviouslySentEmails=this.previouslySentEmails,n.NotCompletedQuestionnaires=this.notCompletedQuestionnaires,n.CompletedQuestionnaires=this.completedQuestionnaires,n.IsSendEmailEnable=this.isSendEmailEnable,n.ResendWaitTimeLeftMins=this.resendWaitTimeLeftMins,n.LastResendDateTime=this.lastResendDateTime,n.ShowResendButton=this.showResendButton,n.EnableResendButton=this.enableResendButton,n.ResendButtonText=this.resendButtonText,n}}class Pe{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.state=n.State,this.stateDescription=n.StateDescription,this.validationMessage=n.ValidationMessage,this.downloadUrl=n.DownloadUrl,this.canFinishWithinThresholdTime=n.CanFinishWithinThresholdTime,this.id=n.Id,this.serverPollingIntervalMs=n.ServerPollingIntervalMs,this.maxWaitingForAReportMs=n.MaxWaitingForAReportMs,this.userEmail=n.UserEmail)}static fromJS(n){n="object"==typeof n?n:{};let t=new Pe;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).State=this.state,n.StateDescription=this.stateDescription,n.ValidationMessage=this.validationMessage,n.DownloadUrl=this.downloadUrl,n.CanFinishWithinThresholdTime=this.canFinishWithinThresholdTime,n.Id=this.id,n.ServerPollingIntervalMs=this.serverPollingIntervalMs,n.MaxWaitingForAReportMs=this.maxWaitingForAReportMs,n.UserEmail=this.userEmail,n}}
1class je extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function Ie(s,n,t,o,c){return(0,S._)(null!=c?c:new je(s,n,t,o,null))}function q(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}var ge=d(9819),ee=d(266),le=d(7392);function ze(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",10),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.resendEmails())}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",!t.questionnairePageModel.enableResendButton),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.questionnairePageModel.resendButtonText," ")}}function We(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275text(1," Last sent: "),e.\u0275\u0275elementStart(2,"span"),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.questionnairePageModel.lastResendDateTime)}}const Ve=function(s){return{disabled:s}};let Qe=(()=>{class s{constructor(t,o,c,a,l,h,v){this.route=t,this.router=o,this.breadCrumbService=c,this.dialog=a,this.wellBeingQuestionnaireService=l,this.titleService=h,this.appFeatureService=v,this.pageTitle="Pre-Event Survey",this.sendAttendeesNumber=0,this.AppFeature=this.appFeatureService.GetAppFeatures()}ngOnInit(){this.titleService.setTitle(this.pageTitle+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.title=this.pageTitle,this.helpLink=Q.qi.Description,this.route.snapshot.params.id&&(this.eventId=this.route.snapshot.params.id),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.breadCrumbService.displayEventDetailUpdated(!0),this.questionnairePageModel=new ne,this._getTotalApprovedRegistrants(this.eventId)}previewQuestionnaire(){}openReport(){this.questionnairePageModel.completedQuestionnaires>0&&this.router.navigateByUrl(`/events/pre-event-survey-report/${this.eventId}`)}sendEmails(){this.questionnairePageModel.isSendEmailEnable=!1,this.wellBeingQuestionnaireService.sendEmailToApprovedRegistrants(this.eventId).subscribe(t=>{t?(this.sendAttendeesNumber=this.questionnairePageModel.totalApprovedAttendees,this.dialog.open(ge.V,this._getDialogConfig(this.sendAttendeesNumber)),this._getTotalApprovedRegistrants(this.eventId)):this.dialog.open(B.I,{data:{title:"Already sent all approved registrants."},autoFocus:!1})})}resendEmails(){this.wellBeingQuestionnaireService.reSendEmails(this.eventId).subscribe(t=>{t?(this.dialog.open(ge.V,this._getDialogConfig(this.questionnairePageModel.notCompletedQuestionnaires)),this._getTotalApprovedRegistrants(this.eventId)):this.dialog.open(B.I,{data:{title:"Error resending. Please try again."},autoFocus:!1})})}getOptions(){return{isSingleColumn:!0,hasEventSideMenu:!1,newStyleDialog:!0}}_getTotalApprovedRegistrants(t){this.wellBeingQuestionnaireService.getTotalApprovedRegistrants(t).pipe((0,y.q)(1)).subscribe(o=>{this.questionnairePageModel=o})}_getDialogConfig(t){return{height:"275px",width:"600px",maxWidth:"60%",position:{top:"20vh"},data:{text:`Questionnaire(s) successfully sent to ${t} attendee(s).`,icon:"fa-check-circle",iconColor:"success",textMaxWidth:290}}}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(E.F0),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(g.uw),e.\u0275\u0275directiveInject(be),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(W.l))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-well-being-questionnaire"]],decls:47,vars:11,consts:[[1,"checkBoxList"],[1,"row","pt-4"],[1,"col-12","col-md-10","col-xl-11"],[1,"row","pt-4","with-loading"],[1,"col-lg-3","mr-lg-5","pr-lg-5","border-right"],[1,"pb-4"],[1,"approvedAttendees","pb-3"],[1,"m-0"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of approved primary registrants and adult guests.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"mt-5"],[1,"btn","btn-green",3,"disabled","click"],[1,"col-lg-8","ml-lg-5"],[1,"col-lg-12"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of questionnaire sent.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"row","col-lg-12","border-top"],[1,"col-lg-6","small-count-container","mt-5"],[1,"counter"],[1,"text"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of questionnaires not submitted by approved attendees.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"row","col-12"],["class","btn btn-green",3,"disabled","click",4,"ngIf"],["class","resent-info",4,"ngIf"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of questionnaires submitted by approved attendees.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"text-link",3,"ngClass","click"],[1,"resent-info"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"p"),e.\u0275\u0275text(4," The Pre-Event Survey can be sent by event staff prior to a Yellow Ribbon event to gauge how event attendees are doing in different areas of their lives. Surveys are sent to all approved primary registrants and their adult guests, and all responses are anonymous. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"p"),e.\u0275\u0275text(6," Please note that surveys cannot be sent once the event has started. "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",3)(8,"div",4)(9,"h2",5)(10,"span",6),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"p",7),e.\u0275\u0275text(13," Recently Approved "),e.\u0275\u0275element(14,"mat-icon",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"p"),e.\u0275\u0275text(16,"Attendees"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"p",9)(18,"button",10),e.\u0275\u0275listener("click",function(){return o.sendEmail
1s()}),e.\u0275\u0275text(19),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(20,"div",11)(21,"div",12)(22,"h2",5)(23,"span",6),e.\u0275\u0275text(24),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(25,"p",7),e.\u0275\u0275text(26," Previously Sent by Email "),e.\u0275\u0275element(27,"mat-icon",13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(28,"div",14)(29,"div",15)(30,"div",16),e.\u0275\u0275text(31),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"div",17),e.\u0275\u0275text(33," Not Responded "),e.\u0275\u0275element(34,"mat-icon",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"div",19),e.\u0275\u0275template(36,ze,2,2,"button",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(37,We,4,1,"div",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"div",15)(39,"div",16),e.\u0275\u0275text(40),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(41,"div",17),e.\u0275\u0275text(42," Responded "),e.\u0275\u0275element(43,"mat-icon",22),e.\u0275\u0275elementStart(44,"p")(45,"a",23),e.\u0275\u0275listener("click",function(){return o.openReport()}),e.\u0275\u0275text(46,"View Report"),e.\u0275\u0275elementEnd()()()()()()()()),2&t&&(e.\u0275\u0275advance(11),e.\u0275\u0275textInterpolate(o.questionnairePageModel.totalApprovedAttendees),e.\u0275\u0275advance(7),e.\u0275\u0275property("disabled",!o.questionnairePageModel.isSendEmailEnable||0==o.questionnairePageModel.totalApprovedAttendees),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" SEND ",o.questionnairePageModel.totalApprovedAttendees," QUESTIONNAIRE(S) "),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(o.questionnairePageModel.previouslySentEmails),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1(" ",o.questionnairePageModel.notCompletedQuestionnaires," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",o.questionnairePageModel.showResendButton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.questionnairePageModel.lastResendDateTime),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.questionnairePageModel.completedQuestionnaires," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,Ve,0===o.questionnairePageModel.completedQuestionnaires)))},dependencies:[ee.gM,le.Hw,b.mk,b.O5],styles:[".checkBoxList[_ngcontent-%COMP%] .eventDetailsHeadline[_ngcontent-%COMP%], .checkBoxList[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.4rem}.checkBoxList[_ngcontent-%COMP%] .approvedAttendees[_ngcontent-%COMP%]{font-size:4.5rem;font-family:robotolight;box-shadow:inset 0 0 #fff,inset 0 -1px #a59dac;color:#532e73}.checkBoxList[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{color:#7c12d8;font:14px/18px Roboto}.checkBoxList[_ngcontent-%COMP%] .border-right[_ngcontent-%COMP%]{border-right-color:#a59dac!important}.checkBoxList[_ngcontent-%COMP%] .border-top[_ngcontent-%COMP%]{border-top-color:#a59dac!important;margin-top:30px}.checkBoxList[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px!important;cursor:pointer;color:#7c12d8;margin-left:4rem}.checkBoxList[_ngcontent-%COMP%] .with-loading[_ngcontent-%COMP%]{position:relative}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .counter[_ngcontent-%COMP%]{float:left;font:38px/46px robotolight;color:#532e73}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{float:left;margin-left:25px;margin-top:20px}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .resent-info[_ngcontent-%COMP%]{margin-top:20px}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .resent-info[_ngcontent-%COMP%] .not-yet[_ngcontent-%COMP%]{font-style:italic;color:#b0a9b6}"]}),s})();var we=d(8234);const qe=new e.InjectionToken("API_BASE_URL");let Be=(()=>{class s extends class He{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\((\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}getEventLevelReport(t){let o=this.baseUrl+"/api/TopicTreeReport/GetEventLevelReport";o=o.replace(/[?&]$/,"");let a={body:JSON.stringify(t),observe:"response",responseType:"blob",headers:new f.WM({"Content-Type":"application/json",Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("post",o,l))).pipe((0,m.zg)(l=>this.processGetEventLevelReport(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processGetEventLevelReport(l)}catch(h){return(0,S._)(h)}}))}processGetEventLevelReport(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);
1if(200===o||206===o){const l=t.headers?t.headers.get("content-disposition"):void 0,h=l?/filename="?([^"]*?)"?(;|$)/g.exec(l):void 0;return(0,C.of)({fileName:h&&h.length>1?h[1]:void 0,data:c,status:o,headers:a})}return 200!==o&&204!==o?function Ze(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}(c).pipe((0,m.zg)(l=>function Ke(s,n,t,o,c){return(0,S._)(null!=c?c:new $e(s,n,t,o,null))}("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(qe,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class Ne{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){if(n&&(this.eventId=n.EventId,n.DeploymentPhases&&n.DeploymentPhases.constructor===Array)){this.deploymentPhases=[];for(let t of n.DeploymentPhases)this.deploymentPhases.push(Ae.fromJS(t))}}static fromJS(n){n="object"==typeof n?n:{};let t=new Ne;return t.init(n),t}toJSON(n){if((n="object"==typeof n?n:{}).EventId=this.eventId,this.deploymentPhases&&this.deploymentPhases.constructor===Array){n.DeploymentPhases=[];for(let t of this.deploymentPhases)n.DeploymentPhases.push(t.toJSON())}return n}}class Ae{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.id=n.Id,this.name=n.Name,this.shortName=n.ShortName)}static fromJS(n){n="object"==typeof n?n:{};let t=new Ae;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).Id=this.id,n.Name=this.name,n.ShortName=this.shortName,n}}class $e extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}var Ye=d(1589),Xe=d(5421),ie=d(4850),et=d(5677),j=d(5984);function K(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275element(1,"i",25),e.\u0275\u0275text(2," Deployment Phase is required. "),e.\u0275\u0275elementEnd())}function M(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div",22),e.\u0275\u0275template(1,K,3,0,"div",23),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.topicTreeReportForm.controls.phaseIdList.errors.required)}}let O=(()=>{class s{constructor(t,o,c,a,l,h,v,G,Pt,wt,At){this.route=t,this.breadCrumbService=o,this.dialog=c,this.renderer=a,this.topicTreeReportService=l,this.fileService=h,this.titleService=v,this.fb=G,this.logger=Pt,this.detailsService=wt,this.appFeatureService=At,this.AppFeature=this.appFeatureService.GetAppFeatures()}ngOnDestroy(){}ngOnInit(){this.titleService.setTitle("Topics of Interest Report | "+this.AppFeature.PagesMetaTags.HomepageTitle);let t="";this.title="Topics of Interest Report",this.helpLink=Q.mt.Description,this.route.snapshot.params.id&&(t=this.route.snapshot.params.id),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.phases=this.route.snapshot.data.phases||[];const o=[];for(const c of this.phases)o.push(c.Id);this.topicTreeReportForm=this.fb.group({eventId:t,phaseIdList:this.fb.control(o)}),this.eventDetailsInfo$=this.detailsService.getEventDetailsEncrypted(t).pipe((0,ie.U)(c=>c&&c.event))}downloadExcelReport(){if(this.topicTreeReportForm.valid){const t=new Ne;t.eventId=this.topicTreeReportForm.value.eventId,t.deploymentPhases=[];for(const o of this.phases)if(this.topicTreeReportForm.value.phaseIdList.indexOf(o.Id)>-1){const c=new Ae;c.id=o.Id,c.name=o.Name,t.deploymentPhases.push(c)}this.topicTreeReportService.getEventLevelReport(t).subscribe(o=>{o&&200===o.status&&o.data?this.fileService.downloadFile(o,"Topics of Interest Report.xlsx"):this.showErrorDialog(o)},o=>{this.showErrorDialog(o)})}}getOptions(){return{isSingleColumn:!0,hasEventSideMenu:!1,newStyleDialog:!0}}showErrorDialog(t){this.logger.LogError("Error generating Topics of Interest Report.",t),this.dialog.open(B.I,{data:{title:"Error generating Topics of Interest Report."},autoFocus:!1})}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(g.uw),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(Be),e.\u0275\u0275directiveInject(pe.I),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(P.UntypedFormBuilder),e.\u0275\u0275directiveInject(Ye.e),e.\u0275\u0275directiveInject(Xe.h),e.\u0275\u0275directiveInject(W.l))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-topic-tree-report"]],features:[e.\u0275\u0275ProvidersFeature([])],decls:30,vars:12,consts:[[1,"main-form",3,"formGroup"],[1,"row","no-gutters","bordered-child"],["
1id","FilterColumn",1,"eventSideFilter","checkBoxList","col-12","event-listingfilter"],[1,"heading-outer","row"],[1,"text-uppercase","pb-0"],[1,"item-panel2"],["id","divFilters",1,"filter-theme","checkBoxList"],[1,"filter-heading-h4","filter-checklist-material--heading","col","event-listingfilter__component--heading","filter-subheading"],[1,"filter-container"],["formControlName","phaseIdList","itemClass","item-block pr-5","minRequired","1",3,"itemList","isNewTheme"],[1,"col-12","center-column-wrapper"],[2,"overflow","hidden"],[1,"p10"],[1,"row"],[1,"col-11"],[1,"page-Title"],[1,"col-1","text-right"],["tabindex","0","target","_blank",1,"helpInfo",3,"href"],[3,"eventDetailsInfo","showRedirectLink","showHeader","linklessMode"],["class","col-md-12 validation-msg text-right mr-5 pr-5",4,"ngIf"],[1,"col-12"],["type","button",1,"btn","btn-green","btn-lg",3,"click"],[1,"col-md-12","validation-msg","text-right","mr-5","pr-5"],["class","errorBlock errorBlockNew mr-5 pr-5 text-right",4,"ngIf"],[1,"errorBlock","errorBlockNew","mr-5","pr-5","text-right"],[1,"fal","fa-exclamation-triangle"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),e.\u0275\u0275text(5,"Filter your results"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"div",7),e.\u0275\u0275text(9," Deployment Phase "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",8),e.\u0275\u0275element(11,"app-checkbox-list-control",9),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(12,"div",10)(13,"div",11),e.\u0275\u0275element(14,"app-bread-crumb"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"div",12)(16,"div",13)(17,"div",14)(18,"h1",15),e.\u0275\u0275text(19),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(20,"div",16)(21,"a",17),e.\u0275\u0275element(22,"div"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(23,"app-event-details-summary-small",18),e.\u0275\u0275pipe(24,"async"),e.\u0275\u0275elementStart(25,"div",13),e.\u0275\u0275template(26,M,2,1,"div",19),e.\u0275\u0275elementStart(27,"div",20)(28,"button",21),e.\u0275\u0275listener("click",function(){return o.downloadExcelReport()}),e.\u0275\u0275text(29," Generate Excel Report "),e.\u0275\u0275elementEnd()()()()()()()),2&t&&(e.\u0275\u0275property("formGroup",o.topicTreeReportForm),e.\u0275\u0275advance(11),e.\u0275\u0275property("itemList",o.phases)("isNewTheme",!0),e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate1(" ",o.title," "),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("href","/onlinehelp/",o.helpLink,"",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275property("eventDetailsInfo",e.\u0275\u0275pipeBind1(24,10,o.eventDetailsInfo$))("showRedirectLink",!1)("showHeader",!0)("linklessMode",!1),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.topicTreeReportForm.controls.phaseIdList.errors))},dependencies:[b.O5,P.\u0275NgNoValidate,P.NgControlStatus,P.NgControlStatusGroup,P.FormGroupDirective,P.FormControlName,ke,et.N,j.O,b.Ov],styles:[".main-form[_ngcontent-%COMP%]{margin-left:-15px;height:100%;margin-right:-15px}[_nghost-%COMP%]{display:block;height:100%}.center-column-wrapper[_ngcontent-%COMP%]{padding-left:20px!important}@media (min-width: 992px){.event-listingfilter[_ngcontent-%COMP%]{max-width:20%;flex:0 0 20%}.center-column-wrapper[_ngcontent-%COMP%]{max-width:80%;flex:0 0 80%}}.p10[_ngcontent-%COMP%]{padding-top:0}"]}),s})();const he=new e.InjectionToken("API_BASE_URL");let R=(()=>{class s extends class ye{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}isFeatureAccessible(t){let o=this.baseUrl+"/api/NextGen/IsFeatureAccessible?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processIsFeatureAccessible(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processIsFeatureAccessible(a)}catch(l){return(0,S._)(l)}}))}processIsFeatureAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?A(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?A(c).pipe((0,m.zg)(l=>U("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getTotalApprovedRegistrants(t){let o=this.baseUrl+"/api/NextGen/GetTotalApprovedRegistrants?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>
1this.processGetTotalApprovedRegistrants(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGetTotalApprovedRegistrants(a)}catch(l){return(0,S._)(l)}}))}processGetTotalApprovedRegistrants(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?A(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?i.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?A(c).pipe((0,m.zg)(l=>U("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}sendEmailToEventAttendees(t){let o=this.baseUrl+"/api/NextGen/SendEmailToEventAttendees?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processSendEmailToEventAttendees(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processSendEmailToEventAttendees(a)}catch(l){return(0,S._)(l)}}))}processSendEmailToEventAttendees(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?A(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?A(c).pipe((0,m.zg)(l=>U("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}submitReportRequest(t){let o=this.baseUrl+"/api/NextGen/SubmitReportRequest?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("post",o,a))).pipe((0,m.zg)(a=>this.processSubmitReportRequest(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processSubmitReportRequest(a)}catch(l){return(0,S._)(l)}}))}processSubmitReportRequest(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?A(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?p.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?A(c).pipe((0,m.zg)(l=>U("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}reSendEmails(t){let o=this.baseUrl+"/api/NextGen/ReSendEmails?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processReSendEmails(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processReSendEmails(a)}catch(l){return(0,S._)(l)}}))}processReSendEmails(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?A(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?A(c).pipe((0,m.zg)(l=>U("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(he,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class i{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.totalApprovedAttendees=n.TotalApprovedAttendees,this.previouslySentEmails=n.PreviouslySentEmails,this.completedSurvey=n.CompletedSurvey,this.notCompletedSurvey=n.NotCompletedSurvey,this.isSendEmailEnable=n.IsSendEmailEnable,this.isOnlineEvent=n.IsOnlineEvent,this.showResendButton=n.ShowResendButton,this.enableResendButton=n.EnableResendButton,this.resendButtonText=n.ResendButtonText,this.lastResendDateTime=n.LastResendDateTime)}static fromJS(n){n="object"==typeof n?n:{};let t=new i;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).TotalApprovedAttendees=this.totalApprovedAttendees,n.PreviouslySentEmails=this.previouslySentEmails,n.CompletedSurvey=this.completedSurvey,n.NotCompletedSurvey=this.notCompletedSurvey,n.IsSendEmailEnable=this.isSendEmailEnable,n.IsOnlineEvent=this.isOnlineEvent,n.ShowResendButton=this.showResendButton,n.EnableResendButton=this.enableResendButton,n.ResendButtonText=this.resendButtonText,n.LastResendDateTime=this.lastResendDateTime,n}}class p{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.state=n.State,this.stateDescription=n.StateDescription,this.validationMessage=n.ValidationMessage,this.downloadUrl=n.DownloadUrl,this.canFinishWithinThresholdTime=n.CanFinishWithinThresholdTime,this.id=n.Id,this.serverPollingIntervalMs=n.ServerPollingIntervalMs,this.maxWaitingForAReportMs=n.MaxWaitingForAReportMs,this.userEmail=n.UserEmail)}static fromJS(n){n="object"==typeof n?n:{};let t=new p;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).State=this.state,n.StateDescription=this.stateDescription,n.ValidationMessage=this.validationMessage,n.DownloadUrl=this.downloadUrl,n.CanFinishWithinThresholdTime=this.canFinishWithinThresholdTime,n.Id=this.id,n.ServerPollingIntervalMs=this.serverPollingIntervalMs,n.MaxWaitingForAReportMs=this.maxWaitingForAReportMs,n.UserEmail=this.userEmail,n}}
1class F extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function U(s,n,t,o,c){return(0,S._)(null!=c?c:new F(s,n,t,o,null))}function A(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}function me(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"p"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.approvedAttendeesTextSecondLine," ")}}function Ee(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"p",22)(1,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.sendEmails())}),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",!t.nextGenPageModel.isSendEmailEnable||0==t.nextGenPageModel.totalApprovedAttendees),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" SEND ",t.nextGenPageModel.totalApprovedAttendees," EVALUATION(S) ")}}function ut(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div",24)(1,"h2",4)(2,"span",5),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"p",6),e.\u0275\u0275text(5," Previously Sent by Email "),e.\u0275\u0275element(6,"mat-icon",25),e.\u0275\u0275elementEnd()()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.nextGenPageModel.previouslySentEmails)}}function Ht(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.resendEmails())}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",!t.nextGenPageModel.enableResendButton),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.nextGenPageModel.resendButtonText," ")}}function $t(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div",26),e.\u0275\u0275text(1," Last sent: "),e.\u0275\u0275elementStart(2,"span"),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.nextGenPageModel.lastResendDateTime)}}const Kt=function(s){return{disabled:s}};let Zt=(()=>{class s{constructor(t,o,c,a,l,h,v){this.route=t,this.router=o,this.breadCrumbService=c,this.nextGenSurveyService=a,this.dialog=l,this.titleService=h,this.appFeatureService=v,this.pageTitle="Post-Event Participation Evaluation",this.sendAttendeesNumber=0,this._onServerError=()=>{this.dialog.open(B.I,{data:{message:"An unexpected error has occurred. Please try again later."},autoFocus:!1})},this.AppFeature=this.appFeatureService.GetAppFeatures(),this.nextGenPageModel=new i}ngOnInit(){this.titleService.setTitle(this.pageTitle+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.title=this.pageTitle,this.helpLink=Q.AZ.Description,this.route.snapshot.params.id&&(this.eventId=this.route.snapshot.params.id),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.displayEventDetailUpdated(!0),this._getTotalApprovedRegistrants(this.eventId),this.surveyDaysAvailable=this.AppFeature.NextGenSurvey.DaysAvailableAfterEventEnds}previewQuestionnaire(){}openReport(){this.nextGenPageModel.completedSurvey>0&&this.router.navigateByUrl(`/events/post-event-survey-report/${this.eventId}`)}sendEmails(){this.nextGenPageModel.isSendEmailEnable=!1,this.nextGenSurveyService.sendEmailToEventAttendees(this.eventId).pipe((0,y.q)(1)).subscribe(t=>{t?(this.sendAttendeesNumber=this.nextGenPageModel.totalApprovedAttendees,this.dialog.open(ge.V,this._getDialogConfig(this.sendAttendeesNumber)),this._getTotalApprovedRegistrants(this.eventId)):this.dialog.open(B.I,{data:{title:"Already sent all approved registrants."},autoFocus:!1})},this._onServerError)}
1resendEmails(){this.nextGenSurveyService.reSendEmails(this.eventId).subscribe(t=>{t?(this.dialog.open(ge.V,this._getDialogConfig(this.nextGenPageModel.notCompletedSurvey)),this._getTotalApprovedRegistrants(this.eventId)):this.dialog.open(B.I,{data:{title:"Error resending. Please try again."},autoFocus:!1})})}getOptions(){return{isSingleColumn:!0,hasEventSideMenu:!1,newStyleDialog:!0}}_getTotalApprovedRegistrants(t){this.nextGenSurveyService.getTotalApprovedRegistrants(t).pipe((0,y.q)(1)).subscribe(o=>{this.nextGenPageModel=o,o.isOnlineEvent?(this.approvedAttendeesText="Approved Registrants",this.approvedAttendeesTooltip="Number of approved registrants who have not yet accessed event."):(this.approvedAttendeesText="Event Attendees Recently",this.approvedAttendeesTextSecondLine="Marked as Attended",this.approvedAttendeesTooltip="Number of attendees eligible to receive evaluation.")},this._onServerError)}_getDialogConfig(t){return{height:"275px",width:"600px",maxWidth:"60%",position:{top:"20vh"},data:{text:`Evaluation(s) successfully sent to ${t} attendee(s).`,icon:"fa-check-circle",iconColor:"success",textMaxWidth:290}}}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(E.F0),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(R),e.\u0275\u0275directiveInject(g.uw),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(W.l))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-next-gen-survey"]],decls:37,vars:14,consts:[[1,"checkBoxList"],[1,"row","pt-4"],[1,"col-12","col-md-10","col-xl-11"],[1,"col-lg-3","mr-lg-5","pr-lg-5","border-right"],[1,"pb-4"],[1,"approvedAttendees","pb-3"],[1,"m-0"],["fontSet","fal","fontIcon","fa-info-circle","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor",3,"matTooltip"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"col-lg-8","ml-lg-5"],["class","col-lg-12",4,"ngIf"],[1,"row","col-lg-12","border-top"],[1,"col-lg-6","small-count-container","mt-5"],[1,"counter"],[1,"text"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of evaluations not completed by attendees.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"row","col-12"],["class","btn btn-green",3,"disabled","click",4,"ngIf"],["class","resent-info",4,"ngIf"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of evaluations completed by attendees.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"text-link",3,"ngClass","click"],[1,"mt-5"],[1,"btn","btn-green",3,"disabled","click"],[1,"col-lg-12"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of evaluations previously sent to attendees.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"resent-info"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"p"),e.\u0275\u0275text(4," The Post-Event Participation Evaluation can be sent to attendees after an event has started to collect feedback on their events experience. This includes which sessions they found most informative, how the information has influenced them and their overall experience. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"p"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",3)(8,"h2",4)(9,"span",5),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"p",6),e.\u0275\u0275text(12),e.\u0275\u0275element(13,"mat-icon",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,me,2,1,"p",8),e.\u0275\u0275template(15,Ee,3,2,"p",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",10),e.\u0275\u0275template(17,ut,7,1,"div",11),e.\u0275\u0275elementStart(18,"div",12)(19,"div",13)(20,"div",14),e.\u0275\u0275text(21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",15),e.\u0275\u0275text(23," Not Responded "),e.\u0275\u0275element(24,"mat-icon",16),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"div",17),e.\u0275\u0275template(26,Ht,2,2,"button",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(27,$t,4,1,"div",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(28,"div",13)(29,"div",14),e.\u0275\u0275text(30),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(31,"div",15),e.\u0275\u0275text(32," Responded "),e.\u0275\u0275element(33,"mat-icon",20),e.\u0275\u0275elementStart(34,"p")(35,"a",21),e.\u0275\u0275listener("click",function(){return o.openReport()}),e.\u0275\u0275text(36,"View Report"),e.\u0275\u0275elementEnd()()()()()()()()),2&t&&(e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" Please note that you will be unable to send or submit the Post-Event Participation Evaluation ",o.surveyDaysAvailable," days after the event end date. "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(o.nextGenPageModel.totalApprovedAttendees),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",o.approvedAttendeesText," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltip",o.approvedAttendeesTooltip),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.approvedAttendeesTextSecondLine),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o.nextGenPageModel.isOnlineEvent),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!o.nextGenPageModel.isOnlineEvent),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",o.nextGenPageModel.notCompletedSurvey," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",o.nextGenPageModel.showResendButton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.nextGenPageModel.lastResendDateTime),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.nextGenPageModel.completedSurvey," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(12,Kt,0===o.nextGenPageModel.completedSurvey)))},dependencies:[ee.gM,le.Hw,b.mk,b.O5],styles:[".checkBoxList[_ngcontent-%COMP%] .eventDetailsHeadline[_ngcontent-%COMP%], .checkBoxList[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.4rem}.checkBoxList[_ngcontent-%COMP%] .approvedAttendees[_ngcontent-%COMP%]{font-size:4.5rem;font-family:robotolight;box-shadow:inset 0 0 #fff,inset 0 -1px #a59dac;color:#532e73}.checkBoxList[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{color:#7c12d8;font:14px/18px Roboto}.checkBoxList[_ngcontent-%COMP%] .border-right[_ngcontent-%COMP%]{border-right-color:#a59dac!important}.checkBoxList[_ngcontent-%COMP%] .border-top[_ngcontent-%COMP%]{border-top-color:#a59dac!important;margin-top:30px}.checkBoxList[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px!important;cursor:pointer;color:#7c12d8;margin-left:4rem}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .counter[_ngcontent-%COMP%]{float:left;font:38px/46px robotolight;color:#532e73}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{float:left;margin-left:25px;margin-top:20px}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .resent-info[_ngcontent-%COMP%]{margin-top:20px}.checkBoxList[_ngcontent-%COMP%] .small-count-container[_ngcontent-%COMP%] .resent-info[_ngcontent-%COMP%] .not-yet[_ngcontent-%COMP%]{font-style:italic;color:#b0a9b6}"]}),s})();var dt=d(591);const Yt=new e.InjectionToken("API_BASE_URL");let tt=(()=>{class s extends class Xt{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}isFeatureAccessible(t){let o=this.baseUrl+"/api/FacilitatorEvaluation/IsFeatureAccessible?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processIsFeatureAccessible(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processIsFeatureAccessible(a)}catch(l){return(0,S._)(l)}}))}processIsFeatureAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getFacilitatorEvaluationPageModel(t){let o=this.baseUrl+"/api/FacilitatorEvaluation/GetFacilitatorEvaluationPageModel?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processGetFacilitatorEvaluationPageModel(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGetFacilitatorEvaluationPageModel(a)}catch(l){return(0,S._)(l)}}))}processGetFacilitatorEvaluationPageModel(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?lt.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}sendEmailToEventAttendees(t){let o=this.baseUrl+"/api/FacilitatorEvaluation/SendEmailToEventAttendees?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processSendEmailToEventAttendees(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processSendEmailToEventAttendees(a)}catch(l){return(0,S._)(l)}}))}processSendEmailToEventAttendees(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}isFacilitatorEvaluationSessionSelectAccessible(t,o){let c=this.baseUrl+"/api/FacilitatorEvaluation/IsFacilitatorEvaluationSessionSelectAccessible?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");if(c+="eventId="+encodeURIComponent(""+t)+"&",null==o)throw new Error("The parameter 'userId' must be defined and cannot be null.");c+="userId="+encodeURIComponent(""+o)+"&",c=c.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("get",c,l))).pipe((0,m.zg)(l=>this.processIsFacilitatorEvaluationSessionSelectAccessible(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processIsFacilitatorEvaluationSessionSelectAccessible(l)}catch(h){return(0,S._)(h)}}))}processIsFacilitatorEvaluationSessionSelectAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getFacilitatorEvaluationSessionSelectUserModel(t,o){let c=this.baseUrl+"/api/FacilitatorEvaluation/GetFacilitatorEvaluationSessionSelectUserModel?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");if(c+="eventId="+encodeURIComponent(""+t)+"&",null==o)throw new Error("The parameter 'userId' must be defined and cannot be null.");c+="userId="+encodeURIComponent(""+o)+"&",c=c.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("get",c,l))).pipe((0,m.zg)(l=>this.processGetFacilitatorEvaluationSessionSelectUserModel(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processGetFacilitatorEvaluationSessionSelectUserModel(l)}catch(h){return(0,S._)(h)}}))}processGetFacilitatorEvaluationSessionSelectUserModel(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?ht.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getFacilitatorEvaluationSessionSelectEventSessionModel(t,o){let c=this.baseUrl+"/api/FacilitatorEvaluation/GetFacilitatorEvaluationSessionSelectEventSessionModel?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");if(c+="eventId="+encodeURIComponent(""+t)+"&",null==o)throw new Error("The parameter 'userId' must be defined and cannot be null.");c+="userId="+encodeURIComponent(""+o)+"&",c=c.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("get",c,l))).pipe((0,m.zg)(l=>this.processGetFacilitatorEvaluationSessionSelectEventSessionModel(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processGetFacilitatorEvaluationSessionSelectEventSessionModel(l)}catch(h){return(0,S._)(h)}}))}processGetFacilitatorEvaluationSessionSelectEventSessionModel(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);if(Array.isArray(v)){h=[];for(let G of v)h.push(mt.fromJS(G))}return(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}createSurveyForSessionAndRedirect(t,o,c,a){let l=this.baseUrl+"/api/FacilitatorEvaluation/CreateSurveyForSessionAndRedirect?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");if(l+="eventId="+encodeURIComponent(""+t)+"&",null==o)throw new Error("The parameter 'sessionId' must be defined and cannot be null.");if(l+="sessionId="+encodeURIComponent(""+o)+"&",null==c)throw new Error("The parameter 'userId' must be defined and cannot be null.");if(l+="userId="+encodeURIComponent(""+c)+"&",void 0===a)throw new Error("The parameter 'sessionInfo' must be defined.");l+="sessionInfo="+encodeURIComponent(""+a)+"&",l=l.replace(/[?&]$/,"");let h={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(h)).pipe((0,m.zg)(v=>this.http.request("get",l,v))).pipe((0,m.zg)(v=>this.processCreateSurveyForSessionAndRedirect(v))).pipe((0,T.K)(v=>{if(!(v instanceof f.QO))return(0,S._)(v);try{return this.processCreateSurveyForSessionAndRedirect(v)}catch(G){return(0,S._)(G)}}))}pr
1ocessCreateSurveyForSessionAndRedirect(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getSurveyResponses(t){let o=this.baseUrl+"/api/FacilitatorEvaluation/GetSurveyResponses?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/octet-stream"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processGetSurveyResponses(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGetSurveyResponses(a)}catch(l){return(0,S._)(l)}}))}processGetSurveyResponses(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);if(200===o||206===o){const l=t.headers?t.headers.get("content-disposition"):void 0,h=l?/filename="?([^"]*?)"?(;|$)/g.exec(l):void 0;return(0,C.of)({fileName:h&&h.length>1?h[1]:void 0,data:c,status:o,headers:a})}return 200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}hasAnySurveyResponse(t){let o=this.baseUrl+"/api/FacilitatorEvaluation/HasAnySurveyResponse?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processHasAnySurveyResponse(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processHasAnySurveyResponse(a)}catch(l){return(0,S._)(l)}}))}processHasAnySurveyResponse(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Z(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Z(c).pipe((0,m.zg)(l=>xe("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(Yt,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class lt{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.newlyRegisteredAttendees=n.NewlyRegisteredAttendees,this.previouslySentEmails=n.PreviouslySentEmails,this.completedQuestionnaires=n.CompletedQuestionnaires,this.hasAnySurveyResponse=n.HasAnySurveyResponse)}static fromJS(n){n="object"==typeof n?n:{};let t=new lt;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).NewlyRegisteredAttendees=this.newlyRegisteredAttendees,n.PreviouslySentEmails=this.previouslySentEmails,n.CompletedQuestionnaires=this.completedQuestionnaires,n.HasAnySurveyResponse=this.hasAnySurveyResponse,n}}class ht{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.firstName=n.FirstName,this.lastName=n.LastName,this.email=n.Email)}static fromJS(n){n="object"==typeof n?n:{};let t=new ht;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).FirstName=this.firstName,n.LastName=this.lastName,n.Email=this.email,n}}class mt{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){if(n&&(this.eventStartDate=n.EventStartDate?new Date(n.EventStartDate.toString()):void 0,Array.isArray(n.SessionModel))){this.sessionModel=[];for(let t of n.SessionModel)this.sessionModel.push(ft.fromJS(t))}}static fromJS(n){n="object"==typeof n?n:{};let t=new mt;return t.init(n),t}toJSON(n){if((n="object"==typeof n?n:{}).EventStartDate=this.eventStartDate?this.eventStartDate.toISOString():void 0,Array.isArray(this.sessionModel)){n.SessionModel=[];for(let t of this.sessionModel)n.SessionModel.push(t.toJSON())}return n}}class ft{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.breakoutGroupingId=n.BreakoutGroupingId,this.sessionName=n.SessionName,this.instructorName=n.InstructorName,this.startDateTime=n.StartDateTime?new Date(n.StartDateTime.toString()):void 0,this.timeZone=n.TimeZone)}static fromJS(n){n="object"==typeof n?n:{};let t=new ft;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).BreakoutGroupingId=this.breakoutGroupingId,n.SessionName=this.sessionName,n.InstructorName=this.instructorName,n.StartDateTime=this.startDateTime?this.startDateTime.toISOString():void 0,n.TimeZone=this.timeZone,n}}
1class en extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function xe(s,n,t,o,c){return(0,S._)(null!=c?c:new en(s,n,t,o,null))}function Z(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}let at=(()=>{class s{constructor(t,o,c,a){this.route=t,this.dialog=o,this.facilitatorEvaluationClient=c,this.fileService=a,this._onServerError=()=>{this.dialog.open(B.I,{data:{message:"An unexpected error has occurred. Please try again later."},autoFocus:!1})},this._featureState=new dt.X({eventId:"",enableSendEmail:!1,pageInfo:new lt,hasAnySurveyResponse:!1}),this.featureState$=this._featureState.asObservable(),this.route.paramMap.subscribe(l=>{const h=l.get("id"),G={...this._featureState.value,eventId:h};this._featureState.next(G),this._fetchData()})}sendEmailToLeadership(){const o=this.facilitatorEvaluationClient.sendEmailToEventAttendees(this._featureState.value.eventId);return o.subscribe(c=>{c?this.dialog.open(ge.V,this._getDialogConfig()):this.dialog.open(B.I,{data:{title:"Already sent all approved registrants."},autoFocus:!1}),this._fetchData()}),o}hasAnySurveyResponse(t){return this.facilitatorEvaluationClient.hasAnySurveyResponse(t)}fetchReport(t){const o=new dt.X(!0);return this.facilitatorEvaluationClient.getSurveyResponses(t).subscribe(c=>{this.fileService.downloadFile(c,c.fileName)},c=>{this._onServerError(),o.next(!1),o.complete()},()=>{o.next(!1),o.complete()}),o.asObservable()}_fetchData(){const t=this._featureState.value.eventId;null!=t&&""!==t&&this.facilitatorEvaluationClient.getFacilitatorEvaluationPageModel(t).subscribe(c=>{const l={...this._featureState.value,pageInfo:c,enableSendEmail:c.newlyRegisteredAttendees>0,hasAnySurveyResponse:c.hasAnySurveyResponse};this._featureState.next(l)},this._onServerError)}get sendSuccessText(){const t=this._featureState.value.pageInfo.newlyRegisteredAttendees;return 1===t?"Evaluation successfully sent to 1 Leadership attendee":`Evaluations successfully sent to ${t} Leadership attendees.`}_getDialogConfig(){return{height:"275px",width:"600px",maxWidth:"60%",position:{top:"20vh"},data:{text:this.sendSuccessText,icon:"fa-check-circle",iconColor:"success",textMaxWidth:290}}}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(E.gz),e.\u0275\u0275inject(g.uw),e.\u0275\u0275inject(tt),e.\u0275\u0275inject(pe.I))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();var tn=d(7625),kt=d(8929);const nn=function(s){return{disabled:s}};let rn=(()=>{class s{constructor(t,o,c,a,l,h){this.breadCrumbService=t,this.router=o,this.dialog=c,this.titleService=a,this._facilitatorEvaluationService=l,this.appFeatureService=h,this.pageTitle="Facilitator Evaluation",this.enableSendEmail=!1,this.disableGenerateReport=!0,this.unSubscribe=new kt.xQ,this.AppFeature=this.appFeatureService.GetAppFeatures()}ngOnInit(){this.titleService.setTitle(this.pageTitle+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.helpLink=Q.LU.Description,this.breadCrumbService.helpLinkUpdated(this.helpLink),this._facilitatorEvaluationService.featureState$.pipe((0,ie.U)(t=>t.eventId),(0,y.q)(1)).subscribe(t=>{this.eventId=t,this.breadCrumbService.newBreadCrumb([{text:"Events",routerLink:"/event-listing"},{text:"Event Details",link:"/Events/EventDetails.aspx?ID="+this.eventId},{text:this.pageTitle}]),this.breadCrumbService.titleUpdated(this.pageTitle),this.breadCrumbService.displayEventDetailUpdated(!0)}),this._facilitatorEvaluationService.featureState$.pipe((0,tn.R)(this.unSubscribe)).subscribe(t=>{this.enableSendEmail=t.enableSendEmail,this.pageModel=t.pageInfo,this.disableGenerateReport=!t.hasAnySurveyResponse})}sendEmails(){this.enableSendEmail=!1,this._facilitatorEvaluationService.sendEmailToLeadership()}openReport(){this.disableGenerateReport||this.router.navigateByUrl(`/events/facilitator-evaluation-report/${this.eventId}`)}ngOnDestroy(){this.unSubscribe.next(),this.unSubscribe.complete()}getOptions(){return{isSingleColumn:!0,hasEventSideMenu:!1,newStyleDialog:!0}}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(E.F0),e.\u0275\u0275directiveInject(g.uw),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(at),e.\u0275\u0275directiveInject(W.l))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-facilitator-evaluation"]],features:[e.\u0275\u0275ProvidersFeature([at])],decls:34,vars:8,consts:[[1,"checkBoxList"],[1,"row","pt-4"],[1,"col-12","col-md-10","col-xl-11"],[1,"col-lg-4","mr-lg-5","pr-lg-5","border-right","qr-code-container"],[1,"pb-4"],[1,"count-display","pb-3"],[1,"m-0"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of Leadership marked as attended.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"btn","btn-green","btn-lg",3,"disabled","click"],[1,"col-lg-3","ml-lg-5"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of evaluation links sent.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of evaluations submitted. Please note that an evaluation link can be used multiple times to evaluate different sessions.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"text-link",3,"ngClass","click"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"p"),e.\u0275\u0275text(4," The Facilitator Evaluation can be sent to Leadership attendees during or after an event. This evaluation is used to collect feedback on a facilitator\u2019s presentation during a session. "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(5,"div",1)(6,"div",3)(7,"h2",4)(8,"span",5),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"p",6),e.\u0275\u0275text(11," Recently Attended Leadership "),e.\u0275\u0275element(12,"mat-icon",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"button",8),e.\u0275\u0275listener("click",function(){return o.sendEmail
1s()}),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",9)(16,"h2",4)(17,"span",5),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"p",6),e.\u0275\u0275text(20," Evaluations Previously "),e.\u0275\u0275element(21,"mat-icon",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"p"),e.\u0275\u0275text(23,"Sent by Email"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(24,"div",9)(25,"h2",4)(26,"span",5),e.\u0275\u0275text(27),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(28,"p",6),e.\u0275\u0275text(29," Evaluations Completed "),e.\u0275\u0275element(30,"mat-icon",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(31,"p")(32,"a",12),e.\u0275\u0275listener("click",function(){return o.openReport()}),e.\u0275\u0275text(33,"View Report"),e.\u0275\u0275elementEnd()()()()()),2&t&&(e.\u0275\u0275advance(9),e.\u0275\u0275textInterpolate(o.pageModel.newlyRegisteredAttendees),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",!o.enableSendEmail),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" SEND ",o.pageModel.newlyRegisteredAttendees," EVALUATIONS "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(o.pageModel.previouslySentEmails),e.\u0275\u0275advance(9),e.\u0275\u0275textInterpolate(o.pageModel.completedQuestionnaires),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,nn,o.disableGenerateReport)))},dependencies:[ee.gM,le.Hw,b.mk],styles:[".checkBoxList[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px}.checkBoxList[_ngcontent-%COMP%] .count-display[_ngcontent-%COMP%]{font-size:45px;font-family:robotolight;box-shadow:inset 0 0 #fff,inset 0 -1px #a59dac}.checkBoxList[_ngcontent-%COMP%] .border-right[_ngcontent-%COMP%]{border-right-color:#a59dac!important}.checkBoxList[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px!important;cursor:pointer;color:#7c12d8;margin-left:10px}.checkBoxList[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{color:#7c12d8;font:14px/18px Roboto}"]}),s})();var _e=d(3152);let vt=(()=>{class s{constructor(t,o){this.authenticationService=t,this.facilitatorEvaluationClient=o}canActivate(t,o){const c=t.paramMap.get("id");return this.facilitatorEvaluationClient.isFeatureAccessible(c).pipe((0,ie.U)(a=>!!a||(this.authenticationService.RedirectToLogout(),!1)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(_e.$),e.\u0275\u0275inject(tt))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();const on={userInfo:null,sessions:null,sessionsLoaded:!1};let Mt=(()=>{class s{constructor(t,o){this._facilitatorEvaluationClient=o,this._stateSubject$=new dt.X(on),this._window=t}get FavEvalSessionSelectState$(){return this._stateSubject$.asObservable()}loadUserInfo(t,o){this._facilitatorEvaluationClient.getFacilitatorEvaluationSessionSelectUserModel(t,o).pipe((0,y.q)(1)).subscribe(c=>this._stateSubject$.next({...this._stateSubject$.value,userInfo:c}))}loadSessions(t,o){this._facilitatorEvaluationClient.getFacilitatorEvaluationSessionSelectEventSessionModel(t,o).pipe((0,y.q)(1)).subscribe(c=>this._stateSubject$.next({...this._stateSubject$.value,sessions:c,sessionsLoaded:!0}))}redirectToSurvey(t,o,c,a){this._facilitatorEvaluationClient.createSurveyForSessionAndRedirect(t,o,c,a).pipe((0,y.q)(1)).subscribe(l=>this._window.location.href=l)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject("Window"),e.\u0275\u0275inject(tt))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();function sn(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div",9)(1,"div",10),e.\u0275\u0275text(2," Hello "),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",11),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&s){const t=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2("",t.userInfo.firstName," ",t.userInfo.lastName,","),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.userInfo.email)}}function ln(s,n){1&s&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",12),e.\u0275\u0275text(2," Thank y
1ou for your feedback. All sessions for this event have been evaluated. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd())}function an(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-option",19),e.\u0275\u0275listener("onSelectionChange",function(){const a=e.\u0275\u0275restoreView(t).$implicit,l=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(l.updateSelectedSessionInfoText(a))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&s){const t=n.$implicit,o=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("value",t.breakoutGroupingId)("matTooltip",o.getSessionInfoText(t,"HH:mm")),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.getSessionInfoText(t,"HH:mm")," ")}}function cn(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"mat-optgroup",17),e.\u0275\u0275pipe(1,"date"),e.\u0275\u0275template(2,an,2,3,"mat-option",18),e.\u0275\u0275elementEnd()),2&s){const t=n.$implicit;e.\u0275\u0275property("label",e.\u0275\u0275pipeBind2(1,2,t.eventStartDate,"MM/dd/yyyy")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.sessionModel)}}function pn(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",9),e.\u0275\u0275text(2," Please select the session you attended.* "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",13)(4,"mat-form-field",14)(5,"mat-label"),e.\u0275\u0275text(6,"Select Session"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"mat-select",15),e.\u0275\u0275listener("selectionChange",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(c.toggleNextButton())})("valueChange",function(c){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(a.selectedSessionId=c)}),e.\u0275\u0275template(8,cn,3,5,"mat-optgroup",16),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div"),e.\u0275\u0275text(10," Note: You will have the opportunity to evaluate additional sessions once you have completed this evaluation. "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&s){const t=e.\u0275\u0275nextContext().ngIf,o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(7),e.\u0275\u0275property("value",o.selectedSessionId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.sessions)}}const un=function(s){return{disabled:s}};function dn(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",20)(1,"button",21),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(c.goToSurvey())}),e.\u0275\u0275text(2," NEXT "),e.\u0275\u0275element(3,"i",22),e.\u0275\u0275elementEnd()()}if(2&s){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,un,t.disableNextButton))("disabled",t.disableNextButton)}}function hn(s,n){if(1&s&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275text(3,"Facilitator Evaluation"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3)(5,"div",4)(6,"div",5),e.\u0275\u0275template(7,sn,7,3,"div",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",7),e.\u0275\u0275template(9,ln,3,0,"ng-container",0),e.\u0275\u0275template(10,pn,11,2,"ng-container",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,dn,4,4,"div",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&s){const t=n.ngIf,o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",null!==t.userInfo),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.sessionsLoaded&&o.hasAllSessionsBeenEvaluated(t)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.sessionsLoaded&&!o.hasAllSessionsBeenEvaluated(t)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.sessionsLoaded&&!o.hasAllSessionsBeenEvaluated(t))}}let mn=(()=>{class s{constructor(t,o,c){this._activatedRoute=t,this._datePipe=o,this._falEvalSessionSelectService=c,this.disableNextButton=!0}ngOnInit(){this._eventId=this._activatedRoute.snapshot.params.id,this._userId=this._activatedRoute.snapshot.params.userId,this.state$=this._falEvalSessionSelectService.FavEvalSessionSelectState$,this._falEvalSessionSelectService.loadUserInfo(this._eventId,this._userId),this._falEvalSessionSelectService.loadSessions(this._eventId,this._userId)}hasAllSessionsBeenEvaluated(t){return!t.sessions||0===t.sessions.length}getSessionInfoText(t,o){const c=this._datePipe.transform(t.startDateTime,o);return`${t.sessionName}, ${c} ${t.timeZone}, ${t.instructorName}`}toggleNextButton(){this.disableNextButton=!1}updateSelectedSessionInfoText(t){this._selectedSessionInfoText=this.getSessionInfoText(t,"MM/dd
1/yyyy HH:mm")}goToSurvey(){this._falEvalSessionSelectService.redirectToSurvey(this._eventId,this.selectedSessionId,this._userId,this._selectedSessionInfoText)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(b.uU),e.\u0275\u0275directiveInject(Mt))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-facilitator-evaluation-session-select"]],features:[e.\u0275\u0275ProvidersFeature([b.uU])],decls:2,vars:3,consts:[[4,"ngIf"],[1,"facilitator-evaluation-session-select-wrapper"],[1,"page-title"],[1,"facilitator-evaluation-session-select-main"],[1,"card"],[1,"user-info-wrapper","row"],["class","col-md-4",4,"ngIf"],[1,"dropdown-wrapper","row"],["class","facilitator-evaluation-session-select-footer",4,"ngIf"],[1,"col-md-4"],[1,"name"],[1,"email"],[1,"col-md-12"],[1,"col-md-8"],["appearance","outline"],["panelClass","facilitator-evaluation-session-select-mat-panel",3,"value","selectionChange","valueChange"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value","matTooltip","onSelectionChange",4,"ngFor","ngForOf"],[3,"value","matTooltip","onSelectionChange"],[1,"facilitator-evaluation-session-select-footer"],[1,"btn","btn-green",3,"ngClass","disabled","click"],[1,"fal","fa-long-arrow-right"]],template:function(t,o){1&t&&(e.\u0275\u0275template(0,hn,12,4,"ng-container",0),e.\u0275\u0275pipe(1,"async")),2&t&&e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,1,o.state$))},dependencies:[ee.gM,b.mk,b.sg,b.O5,u.KE,u.hX,w.gD,D.ey,D.Nv,b.Ov,b.uU],styles:[".facilitator-evaluation-session-select-wrapper{height:calc(100vh - 130px)}.facilitator-evaluation-session-select-wrapper .page-title{padding:0 15px 25px;font-size:33px;font-weight:300;color:#532e73}.facilitator-evaluation-session-select-wrapper .page-description{padding:10px 15px}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main{height:100%;margin-top:47px;background-color:#fff}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card{margin:0 15px;position:relative;top:-47px;height:calc(100% - 230px);box-shadow:0 0 7px #eee,0 0 7px #eee,0 0 7px #eee}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card .user-info-wrapper{margin:0 20px;padding:40px 20px;min-height:120px}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card .user-info-wrapper .name{font-size:14px}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card .user-info-wrapper .name span{opacity:.6}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card .dropdown-wrapper{margin:0 20px;padding:40px 20px;border-top:2px dashed #cccccc}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .facilitator-evaluation-session-select-footer{display:flex;align-items:center;background-color:#f5f5f5;margin-top:auto;height:70px;box-shadow:0 0 4px #ccc;position:relative;top:-15px}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .facilitator-evaluation-session-select-footer button{margin-left:auto;margin-right:15px;display:flex;align-items:center}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .facilitator-evaluation-session-select-footer button i{padding-left:5px}.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .facilitator-evaluation-session-select-footer button:not(.disabled){cursor:pointer}.facilitator-evaluation-session-select-mat-panel.mat-select-panel{position:relative;top:85px;left:18px}.facilitator-evaluation-session-select-mat-panel.mat-select-panel mat-option.mat-option{height:auto;white-space:inherit;line-height:22px;margin-bottom:10px}.facilitator-evaluation-session-select-mat-panel.mat-select-panel mat-option.mat-option .mat-option-text{overflow:auto;text-overflow:initial}@media (max-width: 991px){.facilitator-evaluation-session-select-wrapper{height:auto}
1.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card{height:auto;margin:0}.facilitator-evaluation-session-select-mat-panel.mat-select-panel{position:static;position:initial}.facilitator-evaluation-session-select-footer{top:-50px!important}}@media (max-width: 767px){.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card .user-info-wrapper,.facilitator-evaluation-session-select-wrapper .facilitator-evaluation-session-select-main .card .dropdown-wrapper{padding:30px 0}.facilitator-evaluation-session-select-mat-panel.mat-select-panel{position:static;position:initial}}\n"],encapsulation:2,changeDetection:0}),s})();var fn=d(9126);let Dt=(()=>{class s{constructor(t,o){this._facilitatorEvaluationClient=t,this._redirectService=o}canActivate(t,o){const c=t.paramMap.get("id"),a=t.paramMap.get("userId");return this._facilitatorEvaluationClient.isFacilitatorEvaluationSessionSelectAccessible(c,a).pipe((0,ie.U)(l=>!!l||(this._redirectService.RedirectToNotFoud(),!1)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(tt),e.\u0275\u0275inject(fn.V))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();const vn=new e.InjectionToken("API_BASE_URL");let nt=(()=>{class s extends class gn{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}isFeatureAccessible(t){let o=this.baseUrl+"/api/MailerEvaluation/IsFeatureAccessible?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processIsFeatureAccessible(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processIsFeatureAccessible(a)}catch(l){return(0,S._)(l)}}))}processIsFeatureAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?rt(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?rt(c).pipe((0,m.zg)(l=>gt("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getMailerEvaluationPageModel(t){let o=this.baseUrl+"/api/MailerEvaluation/GetMailerEvaluationPageModel?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processGetMailerEvaluationPageModel(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGetMailerEvaluationPageModel(a)}catch(l){return(0,S._)(l)}}))}processGetMailerEvaluationPageModel(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?rt(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?it.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?rt(c).pipe((0,m.zg)(l=>gt("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}getMailerEvaluationResponses(t){let o=this.baseUrl+"/api/MailerEvaluation/GetMailerEvaluationResponses?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/octet-stream"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processGetMailerEvaluationResponses(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGetMailerEvaluationResponses(a)}catch(l){return(0,S._)(l)}}))}processGetMailerEvaluationResponses(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);
1if(200===o||206===o){const l=t.headers?t.headers.get("content-disposition"):void 0,h=l?/filename="?([^"]*?)"?(;|$)/g.exec(l):void 0;return(0,C.of)({fileName:h&&h.length>1?h[1]:void 0,data:c,status:o,headers:a})}return 200!==o&&204!==o?rt(c).pipe((0,m.zg)(l=>gt("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(vn,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class it{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.completedEvaluationsCount=n.CompletedEvaluationsCount,this.qRCodeUrlImage=n.QRCodeUrlImage,this.surveyUrl=n.SurveyUrl,this.eventStartDate=n.EventStartDate)}static fromJS(n){n="object"==typeof n?n:{};let t=new it;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).CompletedEvaluationsCount=this.completedEvaluationsCount,n.QRCodeUrlImage=this.qRCodeUrlImage,n.SurveyUrl=this.surveyUrl,n.EventStartDate=this.eventStartDate,n}}
1class yn extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function gt(s,n,t,o,c){return(0,S._)(null!=c?c:new yn(s,n,t,o,null))}function rt(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}function Sn(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"a",12),e.\u0275\u0275element(1,"img",13),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("href",t.mailerEvaluationPageModel.surveyUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("src","data:image/png;base64,"+t.mailerEvaluationPageModel.qRCodeUrlImage,e.\u0275\u0275sanitizeUrl)}}const Cn=function(s){return{disabled:s}};let bn=(()=>{class s{constructor(t,o,c,a,l,h){this.route=t,this.router=o,this.mailerEvaluationService=c,this.breadCrumbService=a,this.titleService=l,this.fileService=h,this.isLoading=new kt.xQ,this.isLoading.asObservable()}ngOnInit(){this.title="During Deployment Survey",this.helpLink=Q.Lb.Description,this.titleService.setTitle(this.title),this.mailerEvaluationPageModel=new it,this.route.snapshot.params.id&&(this.eventId=this.route.snapshot.params.id),this.breadCrumbService.newBreadCrumb([{text:"Evaluations",link:"/Events/QMT/Index.aspx?Id="+this.eventId},{text:this.title}]),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.breadCrumbService.displayEventDetailUpdated(!0),this.mailerEvaluationService.getMailerEvaluationPageModel(this.eventId).subscribe(t=>{this.mailerEvaluationPageModel=t})}downloadQRCodeUrlImage(){const t=this.fileService.base64ToBlob(this.mailerEvaluationPageModel.qRCodeUrlImage,"image/png");this.fileService.downloadBlob(t,"DuringDeploymentSurveyQRCode"+this.mailerEvaluationPageModel.eventStartDate+".png")}openReport(){this.mailerEvaluationPageModel.completedEvaluationsCount>0&&this.router.navigateByUrl(`/events/mailer-evaluation/${this.eventId}/report`)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(E.F0),e.\u0275\u0275directiveInject(nt),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(pe.I))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-mailer-evaluation"]],decls:21,vars:5,consts:[[1,"checkBoxList"],[1,"row","pt-4"],[1,"col-12","col-md-10","col-xl-11"],[1,"col-lg-4","mr-lg-5","pr-lg-5","border-right","qr-code-container"],[3,"href",4,"ngIf"],[1,"btn","btn-green","btn-lg",3,"click"],[1,"col-lg-3","ml-lg-5"],[1,"pb-4"],[1,"count-display","pb-3"],[1,"m-0"],["fontSet","fal","fontIcon","fa-info-circle","matTooltip","Number of evaluations completed by participants.","matTooltipPosition","below","matTooltipClass","event-info-popup",1,"tooltip-anchor"],[1,"text-link",3,"ngClass","click"],[3,"href"],["alt","QR Code",3,"src"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"p"),e.\u0275\u0275text(4," Download the QR Code below to be included in the magazine. This evaluation is for During Deployment events only. "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(5,"div",1)(6,"div",3),e.\u0275\u0275template(7,Sn,2,2,"a",4),e.\u0275\u0275elementStart(8,"button",5),e.\u0275\u0275listener("click",function(){return o.downloadQRCodeUrlImage()}),e.\u0275\u0275text(9," DOWNLOAD QR CODE "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",6)(11,"h2",7)(12,"span",8),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"p",9),e.\u0275\u0275text(15," Evaluations Completed "),e.\u0275\u0275element(16,"mat-icon",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"p"),e.\u0275\u0275text(18,"and Received"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"a",11),e.\u0275\u0275listener("click",function(){return o.openReport()}),e.\u0275\u0275text(20,"View Report"),e.\u0275\u0275elementEnd()()()()),2&t&&(e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",o.mailerEvaluationPageModel.surveyUrl),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(o.mailerEvaluationPageModel.completedEvaluationsCount),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(3,Cn,0===o.mailerEvaluationPageModel.completedEvaluationsCount)))},dependencies:[ee.gM,le.Hw,b.mk,b.O5],styles:[".checkBoxList[_ngcontent-%COMP%]{margin-left:0}.checkBoxList[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.4rem}.checkBoxList[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.2rem;color:#6f758b}.checkBoxList[_ngcontent-%COMP%] .count-display[_ngcontent-%COMP%]{font-size:4.5rem;font-family:robotolight;box-shadow:inset 0 0 #fff,inset 0 -1px #a59dac;color:#532e73}.checkBoxList[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{color:#7c12d8;font:14px/18px Roboto}.checkBoxList[_ngcontent-%COMP%] .border-right[_ngcontent-%COMP%]{border-right-color:#a59dac!important}.checkBoxList[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.6rem!important;cursor:pointer;color:#7c12d8;margin-left:1rem}.checkBoxList[_ngcontent-%COMP%] .qr-code-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:150px;min-height:150px;display:inherit;margin-bottom:2rem}.checkBoxList[_ngcontent-%COMP%] .qr-code-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-bottom:2rem;display:inherit}"]}),s})(),yt=(()=>{class s{constructor(t,o){this.authenticationService=t,this.mailerEvaluationClient=o}canActivate(t,o){const c=t.paramMap.get("id");return this.mailerEvaluationClient.isFeatureAccessible(c).pipe((0,ie.U)(a=>!!a||(this.authenticationService.RedirectToLogout(),!1)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(_e.$),e.\u0275\u0275inject(nt))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();var In=d(7666),Ot=d(9070);const En=new e.InjectionToken("API_BASE_URL");let Ft=(()=>{class s extends class xn{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}isFeatureAccessible(t,o){let c=this.baseUrl+"/api/Security/IsFeatureAccessible?";if(void 0===t)throw new Error("The parameter 'pageUrl' must be defined.");if(c+="pageUrl="+encodeURIComponent(""+t)+"&",null==o)throw new Error("The parameter 'eventId' must be defined and cannot be null.");c+="eventId="+encodeURIComponent(""+o)+"&",c=c.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("get",c,l))).pipe((0,m.zg)(l=>this.processIsFeatureAccessible(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processIsFeatureAccessible(l)}catch(h){return(0,S._)(h)}}))}processIsFeatureAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Nt(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Nt(c).pipe((0,m.zg)(l=>function Tn(s,n,t,o,c){return(0,S._)(null!=c?c:new Rn(s,n,t,o,null))}("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(En,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();
1class Rn extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function Nt(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}var ot=d(7084);const Pn=[[["","title",""]],[["","body",""]]],wn=["[title]","[body]"];let Lt=(()=>{class s{constructor(){}ngOnInit(){this.iconClass="fal title-icon float-left "+this.falIcon}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-default-card"]],inputs:{imgSrc:"imgSrc",falIcon:"falIcon"},ngContentSelectors:wn,decls:8,vars:3,consts:[["alt","Card image cap",1,"card-img-top",3,"src"],[1,"card-body"],[1,"card-title"],[1,"title-text"],[1,"card-text"]],template:function(t,o){1&t&&(e.\u0275\u0275projectionDef(Pn),e.\u0275\u0275element(0,"img",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275element(3,"i"),e.\u0275\u0275elementStart(4,"h5",3),e.\u0275\u0275projection(5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"p",4),e.\u0275\u0275projection(7,1),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275property("src",o.imgSrc,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275classMap(o.iconClass))},styles:[".card-deck[_ngcontent-%COMP%]{margin:10px 30px 20px 10px!important}.card-text[_ngcontent-%COMP%]{font-family:roboto;font-size:14px}.title-text[_ngcontent-%COMP%]{font-family:robotobold;font-size:24px!important;color:#532e73;margin-bottom:15px;margin-left:50px}.event-esgr[_nghost-%COMP%] .title-text[_ngcontent-%COMP%], .event-esgr [_nghost-%COMP%] .title-text[_ngcontent-%COMP%]{color:#014b99}.card-body[_ngcontent-%COMP%]{margin:10px 15px;min-height:auto!important}.title-icon[_ngcontent-%COMP%]{margin:4px 25px 0 0;color:#6f758b}"]}),s})(),An=(()=>{class s{constructor(t,o,c){this.window=t,this.route=o,this.securityClient=c,this.eventId=this.route.snapshot.params.id,this.InitEventEvaluationsPaperLink(),this.eventEvaluationOnlineLink="/Events/EventDetails.aspx?Mode=ReadOnly&Id="+this.eventId,this.preSurveyLink="/events/well-being-questionnaire/"+this.eventId,this.postSurveyLink="/events/next-gen-survey/"+this.eventId}InitEventEvaluationsPaperLink(){const t="/Events/QMT/EventEvaluations.aspx";this.eventEvaluationPaperLink=t+"?Id="+this.eventId,this.securityClient.isFeatureAccessible(t,this.eventId).subscribe(o=>this.eventEvaluationPaperLinkEnabled=o)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject("Window"),e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(Ft))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-planning-checklist-yrrp"]],inputs:{shortUrl:"shortUrl"},decls:175,vars:5,consts:[[1,"container"],[1,"checklist-content"],[1,"main"],[1,"section-title"],[1,"row"],[1,"col-12","col-md-6","col-lg-4","mb-5"],[1,"card","h-100","d-flex","flex-column"],["imgSrc","/dist/UI/assets/images/checklist/guests.jpg","falIcon","fa-user-friends"],["title",""],["body",""],["target","_blank",1,"link",3,"href"],[1,"card-footer","mt-auto"],["imgSrc","/dist/UI/assets/images/checklist/project-yes.jpg","falIcon","fa-users"],["href","/cms/children-and-youth-services/","target","_blank",1,"footer-link"],[1,"fal","fa-long-arrow-right","float-right","mr-2"],["imgSrc","/dist/UI/assets/images/checklist/request-funds.jpg","falIcon","fa-file-invoice-dollar"],["imgSrc","/dist/UI/assets/images/checklist/Approve-Guest-Registrations.jpg","falIcon","fa-user-check"],["imgSrc","/dist/UI/assets/images/checklist/pre-event-survey.jpg","falIcon","fa-tasks"],["imgSrc","/dist/UI/assets/images/checklist/Run-Live-Poll.jpg","falIcon","fa-comment-alt-check"],["imgSrc","/dist/UI/assets/images/checklist/Setup-SMS-Evaluations.jpg","falIcon","fa-comments-alt"],["imgSrc","/dist/UI/assets/images/checklist/Ready-to-Print-Event-Materials.jpg","falIcon","fa-print"],[1,"panel",3,"expanded"],[1,"panel"],["imgSrc","/dist/UI/assets/images/checklist/capture-attendance-v01.jpg","falIcon","fa-barcode-read"],["imgSrc","/dist/UI/assets/images/checklist/live-polling.jpg","falIcon","fa-comment-alt-lines"],["imgSrc","/dist/UI/assets/images/checklist/post-event-evaluation.jpg","falIcon","fa-tasks"],["imgSrc","/dist/UI/assets/images/checklist/funding.jpg","falIcon","fa-file-invoice-dollar"],["imgSrc","/dist/UI/assets/images/checklist/Complete-After-Action-Report-AAR.jpg","falIcon","fa-file-alt"],["imgSrc","/dist/UI/assets/images/checklist/post-event-evaluation-reminder.jpg","falIcon","fa-tasks"],["href","mailto: [email protected]",1,"link"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"p",2),e.\u0275\u0275text(3," This checklist is only intended to serve as a guide and best-practice to help enhance your event. Not all items in this checklist may apply to your service component and/or event. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"h5")(5,"div",3),e.\u0275\u0275text(6,"Before the Event"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",4)(8,"div",5)(9,"div",6)(10,"app-default-card",7),e.\u0275\u0275elementContainerStart(11,8),e.\u0275\u0275text(12,"Invite Guests"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(13,9),e.\u0275\u0275text(14,"Invite Service Members and their families to register for your event by sharing a "),e.\u0275\u0275elementStart(15,"a",10),e.\u0275\u0275text(16,"registration link"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(17,". "),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"div",5)(20,"div",6)(21,"app-default-card",12),e.\u0275\u0275elementContainerStart(22,8),e.\u0275\u0275text(23,"Invite Project Y.E.S.!"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(24,9),e.\u0275\u0275text(25,"Project Y.E.S! is a national internship program engaging college students in service to meet the needs of military families. Specifically, Project Y.E.S! expands the resources of the Yellow Ribbon Reintegration Program and other youth and teen-oriented programs."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"div",11)(27,"a",13),e.\u0275\u0275text(28,"Submit Request"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(29,"i",14),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(30,"div",5)(31,"div",6)(32,"app-default-card",15),e.\u0275\u0275elementContainerStart(33,8),e.\u0275\u0275text(34,"Request Funding"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(35,9),e.\u0275\u0275text(36,"If applicable, remember to request funding in support of this event. To initiate this process, use built-in tools within EventPLUS (available for certain service components), or externally, per your service component\u2019s guidance."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(37,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(38,"div",5)(39,"div",6)(40,"app-default-card",16),e.\u0275\u0275elementContainerStart(41,8),e.\u0275\u0275text(42,"Approve Guest Registrations"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(43,9),e.\u0275\u0275text(44,"As registrations trickle in, remember to regularly check registering guests and approve eligible Service Members and their guests to attend your event."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(45,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(46,"div",5)(47,"div",6)(48,"app-default-card",17),e.\u0275\u0275elementContainerStart(49,8),e.\u0275\u0275text(50,"Send Pre-Event Survey Requests"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(51,9),e.\u0275\u0275text(52," After the registrations are approved, send the pre-event survey to attendees prior to the event to gauge how they are doing in different areas of their lives. Surveys are sent to all approved primary registrants and their adult guests, and all responses are anonymous. Send the pre-event survey "),e.\u0275\u0275elementStart(53,"a",10),e.\u0275\u0275text(54,"here"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(55,". "),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(56,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(57,"div",5)(58,"div",6)(59,"app-default-card",18),e.\u0275\u0275elementContainerStart(60,8),e.\u0275\u0275text(61,"Setup Pre & Post Live Polls"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(62,9),e.\u0275\u0275text(63,"Gather real-time feedback from your attendees using the interactive Live Poll feature. Poll your attendees at the beginning (Pre) and end of your event (Post) to better understand learning gains on key topics."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(64,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(65,"div",5)(66,"div",6)(67,"app-default-card",19),e.\u0275\u0275elementContainerStart(68,8),e.\u0275\u0275text(69,"Automate SMS Breakout Evaluations"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(70,9),e.\u0275\u0275text(71,"Collect feedback from your attendees each time they attend a breakout session via automatically delivered SMS (text) messages. See a sample of what your attendees will receive here. "),e.\u0275\u0275element(72,"br")(73,"br"),e.\u0275\u0275text(74,"Set automatic delivery of SMS-based evaluation to your attendees now so you don\u2019t have to think about it later."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(75,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(76,"div",5)(77,"div",6)(78,"app-default-card",20),e.\u0275\u0275elementContainerStart(79,8),e.\u0275\u0275text(80,"Print Name Tags, Breakout Signs, etc."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(81,9),e.\u0275\u0275elementStart(82,"mat-accordion")(83,"mat-expansion-panel",21)(84,"mat-expansion-panel-header")(85,"mat-panel-title")(86,"strong"),e.\u0275\u0275text(87,"Name Tags"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(88,"p",2),e.\u0275\u0275text(89," Identify and track y
1our attendees\u2019 attendance using barcoded name tags. Paired with a barcode reader, you can maintain accountability and access attendance numbers in real time. You may print name tags for any additional registrants you approve in the future at any time. "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(90,"mat-expansion-panel",22)(91,"mat-expansion-panel-header")(92,"mat-panel-title")(93,"strong"),e.\u0275\u0275text(94,"Breakout Signs"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(95,"p",2),e.\u0275\u0275text(96," These signs allow you to use the barcode scanners to quickly and easily capture attendance for your event at the session level. "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(97,"mat-expansion-panel",22)(98,"mat-expansion-panel-header")(99,"mat-panel-title")(100,"strong"),e.\u0275\u0275text(101,"Agenda Booklets"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(102,"p",2),e.\u0275\u0275text(103," Keep your attendees informed and on schedule by handing out agenda booklets at your event. These fully customizable booklets are pre-populated with the most important details from your event including schedule of breakout sessions and activities, breakout session descriptions, speaker bios, etc. "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(104,"div",11),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(105,"h5")(106,"div",3),e.\u0275\u0275text(107,"At the Event"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(108,"div",4)(109,"div",5)(110,"div",6)(111,"app-default-card",23),e.\u0275\u0275elementContainerStart(112,8),e.\u0275\u0275text(113,"Capture Attendance"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(114,9),e.\u0275\u0275text(115,"Capturing attendance at your event is simple and easy. Either manually mark attendance one at a time directly in EventPLUS or use a barcode reader for larger events to barcode-scan and upload data scanned from attendee name tags."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(116,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(117,"div",5)(118,"div",6)(119,"app-default-card",24),e.\u0275\u0275elementContainerStart(120,8),e.\u0275\u0275text(121,"Run Pre & Post Live Polls"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(122,9),e.\u0275\u0275text(123,"Live Polling is a fun and easy way to interact with your attendees while also capturing learning gains. It is recommended to run both, a Pre, and a Post poll, at your event. Live Polls may be run in \u201cfacilitated\u201d MC-led experience, or in \u201cnon-facilitated\u201d system-initiated experience without the need of an MC or facilitator."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(124,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(125,"div",5)(126,"div",6)(127,"app-default-card",25),e.\u0275\u0275elementContainerStart(128,8),e.\u0275\u0275text(129,"Send Post-Event Participation Evaluation requests"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(130,9),e.\u0275\u0275text(131,"At the last group session of your event, send the post-event participation evaluation online requests and invite attendees to complete it either before they leave the event, or after the event, to collect feedback on their event experience. Send the evaluation "),e.\u0275\u0275elementStart(132,"a",10),e.\u0275\u0275text(133,"here"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(134,". "),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(135,"div",11),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(136,"h
15")(137,"div",3),e.\u0275\u0275text(138,"After the Event"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(139,"div",4)(140,"div",5)(141,"div",6)(142,"app-default-card",26),e.\u0275\u0275elementContainerStart(143,8),e.\u0275\u0275text(144,"Report Funding Actuals"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(145,9),e.\u0275\u0275text(146,"If applicable, remember to report actuals in support of this event. To initiate this process, use built-in tools within EventPLUS (available for certain service components), or externally, per your service component\u2019s guidance."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(147,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(148,"div",5)(149,"div",6)(150,"app-default-card",27),e.\u0275\u0275elementContainerStart(151,8),e.\u0275\u0275text(152,"Complete After Action Report (AAR)"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(153,9),e.\u0275\u0275text(154,"Close out your event in EventPLUS by submitting an After Action Report. This report captures all post-event feedback from the event planning team\u2019s point of view. "),e.\u0275\u0275element(155,"br")(156,"br"),e.\u0275\u0275text(157,"Remember: Funding actuals must be reported before filling out the After Action Report for Air National Guard and Army National Guard hosted events (only)."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(158,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(159,"div",5)(160,"div",6)(161,"app-default-card",28),e.\u0275\u0275elementContainerStart(162,8),e.\u0275\u0275text(163,"Send Post-Event Participation Evaluation Reminder"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(164,9),e.\u0275\u0275text(165,"After a suitable amount of time after your event, you can send event attendees who have not completed the post-event participation evaluation a reminder to do so, if you determine that the evaluation completion rate is low. Send the reminder "),e.\u0275\u0275elementStart(166,"a",10),e.\u0275\u0275text(167,"here"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(168,". "),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(169,"div",11),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(170,"p",2),e.\u0275\u0275text(171," Require EventPLUS technical support or training? We\u2019d love to help! Email us at "),e.\u0275\u0275elementStart(172,"a",29),e.\u0275\u0275text(173,"[email protected]"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(174," or call 877 577 6697 to speak with an EventPLUS subject matter expert, Monday to Friday from 0900 to 1700 eastern except holidays. "),e.\u0275\u0275elementEnd()()()),2&t&&(e.\u0275\u0275advance(15),e.\u0275\u0275property("href",o.shortUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(38),e.\u0275\u0275property("href",o.preSurveyLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(30),e.\u0275\u0275property("expanded",!0),e.\u0275\u0275advance(49),e.\u0275\u0275property("href",o.postSurveyLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(34),e.\u0275\u0275property("href",o.postSurveyLink,e.\u0275\u0275sanitizeUrl))},dependencies:[ot.pp,ot.ib,ot.yz,ot.yK,Lt],styles:['.card[_ngcontent-%COMP%]{box-shadow:2px 5px 5px #0000001a,-2px 5px 5px #0000001a!important;border:0px;max-height:100%!important}.row[_ngcontent-%COMP%]{margin-right:10px!important}.footer-link[_ngcontent-%COMP%]{text-decoration:underline!important;color:#7c12d8!important;margin-right:10px}.section-title[_ngcontent-%COMP%]{font-family:robotobold;font-size:13px;text-transform:uppercase;color:#362b40;letter-spacing:2px;margin-top:30px;margin-bottom:10px}h5[_ngcontent-%COMP%]:after{content:" ";display:block;border:1px solid #532e73;width:90px;margin-bottom:30px}.card-footer[_ngcontent-%COMP%]{color:#7c12d8;background-color:transparent;border-top:0;text-align:right;margin-bottom:15px;font-size:12px!important;display:inline-block}@media (min-width: 992px){.checklist-content[_ngcontent-%COMP%]{max-width:74vw;padding-left:10px}}.link[_ngcontent-%COMP%]{text-decoration:underline;color:#7c12d8}.main[_ngcontent-%COMP%]{font-family:roboto;font-size:14px;margin-top:10px}.panel[_ngcontent-%COMP%]{border-bottom:1px dashed #a2a0be;box-shadow:none!important}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}']}),s})(),kn=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-planning-checklist-esgr"]],inputs:{shortUrl:"shortUrl"},decls:63,vars:1,consts:[[1,"container"],[1,"checklist-content"],[1,"main"],[1,"section-title"],[1,"row"],[1,"col-12","col-md-6","col-lg-4","mb-5"],[1,"card","h-100","d-flex","flex-column"],["imgSrc","/dist/UI/assets/images/checklist/guests.jpg","falIcon","fa-user-fr
1iends"],["title",""],["body",""],["target","_blank",1,"link",3,"href"],[1,"card-footer","mt-auto"],["imgSrc","/dist/UI/assets/images/checklist/conduct-evaluation.jpg","falIcon","fa-user-check"],["imgSrc","/dist/UI/assets/images/checklist/agenda-brochures.jpg","falIcon","fa-print"],["imgSrc","/dist/UI/assets/images/checklist/attendance-esgr.jpg","falIcon","fa-barcode-read"],["imgSrc","/dist/UI/assets/images/checklist/aar-report-ESGR.jpg","falIcon","fa-file-alt"],[1,"col-12","mb-5"],[1,"main-bottom"],["href","mailto: [email protected]"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"p",2),e.\u0275\u0275text(3," This checklist is only intended to serve as a guide and best practice to help enhance your event. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"h5")(5,"div",3),e.\u0275\u0275text(6,"Before the Event"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",4)(8,"div",5)(9,"div",6)(10,"app-default-card",7),e.\u0275\u0275elementContainerStart(11,8),e.\u0275\u0275text(12,"Invite Guests"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(13,9),e.\u0275\u0275text(14,"Invite Service Members and their families to register for your event by sharing a "),e.\u0275\u0275elementStart(15,"a",10),e.\u0275\u0275text(16,"registration link"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(17,". "),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"div",5)(20,"div",6)(21,"app-default-card",12),e.\u0275\u0275elementContainerStart(22,8),e.\u0275\u0275text(23,"Approve Guest Registrations"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(24,9),e.\u0275\u0275text(25,"As registrations trickle in, remember to regularly check registering guests and approve eligible Service Members and their guests to attend your event."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(26,"div",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",5)(28,"div",6)(29,"app-default-card",13),e.\u0275\u0275elementContainerStart(30,8),e.\u0275\u0275text(31,"Ready-to-Print Event Materials"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(32,9),e.\u0275\u0275text(33," Keep your attendees informed and on schedule by handing out agenda booklets at your event. These fully customizable booklets are pre-populated with the most important details from your event including schedule of breakout sessions and activities, breakout session descriptions, speaker bios, etc. "),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(34,"div",11),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(35,"div",4)(36,"div",5)(37,"h5")(38,"div",3),e.\u0275\u0275text(39,"At the Event"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(40,"div",6)(41,"app-default-card",14),e.\u0275\u0275elementContainerStart(42,8),e.\u0275\u0275text(43,"Capture Attendance"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(44,9),e.\u0275\u0275text(45,"Capturing attendance at your event is simple and easy in EventPLUS."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(46,"div",5)(47,"h5")(48,"div",3),e.\u0275\u0275text(49,"After the Event"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(50,"div",6)(51,"app-default-card",15),e.\u0275\u0275elementContainerStart(52,8),e.\u0275\u0275text(53,"Complete After Action Report (AAR)"),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(54,9),e.\u0275\u0275text(55,"Close out your event in EventPLUS by submitting an After Action Report. This report captures actual costs, attendance and USERRA Inquiries."),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(56,"div",4)(57,"div",16)(58,"p",17),e.\u0275\u0275text(59," Require ESGR EventPLUS technical support? We\u2019d love to help! Email us at "),e.\u0275\u0275elementStart(60,"a",18),e.\u0275\u0275text(61,"[email protected]"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(62," or call 1-800-336-4590 (option 3). We are available Monday to Frid
1ay from 08:00 to 17:00 eastern time, except holidays. "),e.\u0275\u0275elementEnd()()()()()),2&t&&(e.\u0275\u0275advance(15),e.\u0275\u0275property("href",o.shortUrl,e.\u0275\u0275sanitizeUrl))},dependencies:[Lt],styles:['.card[_ngcontent-%COMP%]{box-shadow:2px 5px 5px #0000001a,-2px 5px 5px #0000001a!important;border:0px;max-height:100%!important}.row[_ngcontent-%COMP%]{margin-right:10px!important}.footer-link[_ngcontent-%COMP%]{text-decoration:underline!important;color:#1279e6!important;margin-right:10px}.section-title[_ngcontent-%COMP%]{font-family:robotobold;font-size:13px;text-transform:uppercase;color:#362b40;letter-spacing:2px;margin-top:30px;margin-bottom:10px}h5[_ngcontent-%COMP%]:after{content:" ";display:block;border:1px solid #23559e;width:90px;margin-bottom:30px}.card-footer[_ngcontent-%COMP%]{color:#1279e6;background-color:transparent;border-top:0;text-align:right;margin-bottom:15px;font-size:12px!important;display:inline-block}@media (min-width: 992px){.checklist-content[_ngcontent-%COMP%]{max-width:74vw;padding-left:10px}}.link[_ngcontent-%COMP%]{text-decoration:underline;color:#1279e6}.main[_ngcontent-%COMP%]{font-size:14px;margin-top:10px}.panel[_ngcontent-%COMP%]{border-bottom:1px dashed #a2a0be;box-shadow:none!important}.main-bottom[_ngcontent-%COMP%]{margin-top:100px;font-size:14px}']}),s})();function Mn(s,n){if(1&s&&e.\u0275\u0275element(0,"app-planning-checklist-yrrp",1),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("shortUrl",t.shortUrl)}}function Dn(s,n){if(1&s&&e.\u0275\u0275element(0,"app-planning-checklist-esgr",1),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("shortUrl",t.shortUrl)}}let On=(()=>{class s{constructor(t,o,c,a,l,h,v){this.breadCrumbService=t,this.route=o,this.titleService=c,this.eventService=a,this.appFeatureService=l,this.renderer=h,this.tenantType=Ot.a,this.AppFeature=this.appFeatureService.GetAppFeatures(),h.addClass(v.body,"postlogin")}ngOnInit(){this.title="Event Planning Checklist",this.helpLink=Q.$B.Description,this.titleService.setTitle(this.title+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.tenant=In.a.GetCurrentTenant(),this.eventService.getEventModel(this.route.snapshot.paramMap.get("id")).subscribe(t=>{this.shortUrl=this.tenant===Ot.a.Yrrp?t.kioskShortUrl:t.eventRegistrationShortUrl})}ngOnDestroy(){this.renderer.removeClass(document.body,"postlogin")}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(we.r2),e.\u0275\u0275directiveInject(W.l),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(b.K0))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-planning-checklist"]],decls:2,vars:2,consts:[[3,"shortUrl",4,"ngIf"],[3,"shortUrl"]],template:function(t,o){1&t&&(e.\u0275\u0275template(0,Mn,1,1,"app-planning-checklist-yrrp",0),e.\u0275\u0275template(1,Dn,1,1,"app-planning-checklist-esgr",0)),2&t&&(e.\u0275\u0275property("ngIf",o.tenant===o.tenantType.Yrrp),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.tenant===o.tenantType.Esgr))},dependencies:[b.O5,An,kn]}),s})();const Fn=new e.InjectionToken("API_BASE_URL");let St=(()=>{class s extends class Nn{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o||""}isFeatureAccessible(t){let o=this.baseUrl+"/api/EventPlanningChecklist/IsFeatureAccessible?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processIsFeatureAccessible(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processIsFeatureAccessible(a)}catch(l){return(0,S._)(l)}}))}processIsFeatureAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Ut(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Ut(c).pipe((0,m.zg)(l=>function Un(s,n,t,o,c){return(0,S._)(null!=c?c:new Ln(s,n,t,o,null))}("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(Fn,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();
1class Ln extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function Ut(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}let jt=(()=>{class s{constructor(t,o){this.authenticationService=t,this.checklistService=o}canActivate(t,o){const c=t.paramMap.get("id");return this.checklistService.isFeatureAccessible(c).pipe((0,ie.U)(a=>!!a||(this.authenticationService.RedirectToLogout(),!1)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(_e.$),e.\u0275\u0275inject(St))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})(),jn=(()=>{class s{constructor(t,o,c,a,l){this.breadCrumbService=t,this._activatedRoute=o,this._facilitatorEvaluationService=c,this.titleService=a,this.appFeatureService=l,this.pageTitle="Facilitator Evaluation Report",this.AppFeature=this.appFeatureService.GetAppFeatures()}ngOnInit(){this._eventId=this._activatedRoute.snapshot.params.id,this.titleService.setTitle(this.pageTitle+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.breadCrumbService.newBreadCrumb([{text:"Events",routerLink:"/event-listing"},{text:"Event Details",link:"/Events/EventDetails.aspx?ID="+this._eventId},{text:this.pageTitle}]),this.helpLink=Q.LU.Description,this.breadCrumbService.titleUpdated(this.pageTitle),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.breadCrumbService.displayEventDetailUpdated(!0),this.enableGenerateReport=this._facilitatorEvaluationService.hasAnySurveyResponse(this._eventId)}viewReport(){this.isGeneratingReport=this._facilitatorEvaluationService.fetchReport(this._eventId)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(at),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(W.l))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-facilitator-evaluation-report"]],features:[e.\u0275\u0275ProvidersFeature([at])],decls:5,vars:3,consts:[[1,"mb-5"],[1,"btn","btn-green",3,"disabled","click"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"p",0),e.\u0275\u0275text(1," The Facilitator Evaluation Report aggregates all of the feedback received from Leadership.\n"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"button",1),e.\u0275\u0275listener("click",function(){return o.viewReport()}),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275text(4," Generate Excel Report\n"),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(3,1,!o.enableGenerateReport)))},dependencies:[b.Ov]}),s})(),Bn=(()=>{class s{constructor(t,o,c,a,l){this.mailerEvaluationService=t,this.fileService=o,this.route=c,this.breadCrumbService=a,this.titleService=l,this.title="During Deployment Survey Report"}ngOnInit(){this.mailerEvaluationPageModel=new it,this.titleService.setTitle(this.title),this.route.snapshot.params.id&&(this.eventId=this.route.snapshot.params.id),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.displayEventDetailUpdated(!0),this.breadCrumbService.helpLinkUpdated(Q.zk.Description),this.mailerEvaluationService.getMailerEvaluationPageModel(this.eventId).subscribe(t=>{this.mailerEvaluationPageModel=t})}downloadExcelReport(){this.mailerEvaluationService.getMailerEvaluationResponses(this.eventId).subscribe(t=>{this.fileService.downloadFile(t,`USAR Mailer Evaluation Report ${this.mailerEvaluationPageModel.eventStartDate}.xlsx`)})}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(nt),e.\u0275\u0275directiveInject(pe.I),e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(L.Title))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-mailer-evaluation-report"]],decls:6,vars:0,consts:[[1,"row"],[1,"col-12"],[1,"mb-5"],["type","button",1,"btn","btn-green","btn-lg",3,"click"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275text(3," The During Deployment Survey Report aggregates all responses received from participants. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"button",3),e.\u0275\u0275listener("click",function(){return o.downloadExcelReport()}),e.\u0275\u0275text(5," Generate Excel Report "),e.\u0275\u0275elementEnd()()())}}),s})();d(1048);let _n=(()=>{class s{constructor(t,o,c,a,l,h,v){this.route=t,this.breadCrumbService=o,this.titleService=c,this.appFeatureService=a,this.wellBeingQuestionnaire
1Client=l,this.http=h,this.window=v,this.title="Pre-Event Survey Report",this.downloadExcelReport=()=>this.wellBeingQuestionnaireClient.submitReportRequest(this.eventId).pipe((0,ie.U)(G=>G.toJSON())).toPromise(),this.downloadReport=G=>{this.window.open(G,"_self")},this.showErrorMessage=function(G){this.dialog.open(B.I,{data:{title:G},autoFocus:!1})},this.AppFeature=this.appFeatureService.GetAppFeatures()}ngOnInit(){this.titleService.setTitle(this.title+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(Q.UE.Description),this.route.snapshot.params.id&&(this.eventId=this.route.snapshot.params.id),this.window.asi.createLrrButton(document.querySelector(".long-running-reports-container"),()=>!0,this.downloadExcelReport,this.downloadReport,this.showErrorMessage,this.http,{buttonLabel:"Generate Excel Report"})}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(W.l),e.\u0275\u0275directiveInject(be),e.\u0275\u0275directiveInject(f.eN),e.\u0275\u0275directiveInject("Window"))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-pre-event-survey-report"]],decls:1,vars:0,consts:[[1,"long-running-reports-container","d-inline-block"]],template:function(t,o){1&t&&e.\u0275\u0275element(0,"div",0)}}),s})(),Bt=(()=>{class s{constructor(t,o){this.authenticationService=t,this.wellBeingQuestionnaireClient=o}canActivate(t,o){const c=t.paramMap.get("id");return this.wellBeingQuestionnaireClient.isFeatureAccessible(c).pipe((0,ie.U)(a=>!!a||(this.authenticationService.RedirectToLogout(),!1)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(_e.$),e.\u0275\u0275inject(be))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})(),Jn=(()=>{class s{constructor(t,o,c,a,l,h,v){this.route=t,this.breadCrumbService=o,this.titleService=c,this.appFeatureService=a,this.nextGenClient=l,this.http=h,this.window=v,this.title="Post-Event Participation Evaluation Report",this.downloadExcelReport=()=>this.nextGenClient.submitReportRequest(this.eventId).pipe((0,ie.U)(G=>G.toJSON())).toPromise(),this.downloadReport=G=>{this.window.open(G,"_self")},this.showErrorMessage=function(G){this.dialog.open(B.I,{data:{title:G},autoFocus:!1})},this.AppFeature=this.appFeatureService.GetAppFeatures()}ngOnInit(){this.titleService.setTitle(this.title+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.breadCrumbService.newBreadCrumb([{text:this.title}]),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(Q._Q.Description),this.route.snapshot.params.id&&(this.eventId=this.route.snapshot.params.id),this.window.asi.createLrrButton(document.querySelector(".long-running-reports-container"),()=>!0,this.downloadExcelReport,this.downloadReport,this.showErrorMessage,this.http,{buttonLabel:"Generate Excel Report"})}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject($._),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject(W.l),e.\u0275\u0275directiveInject(R),e.\u0275\u0275directiveInject(f.eN),e.\u0275\u0275directiveInject("Window"))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-post-event-survey-report"]],decls:1,vars:0,consts:[[1,"long-running-reports-container","d-inline-block"]],template:function(t,o){1&t&&e.\u0275\u0275element(0,"div",0)}}),s})(),_t=(()=>{class s{constructor(t,o){this.authenticationService=t,this.nextGenClient=o}canActivate(t,o){const c=t.paramMap.get("id");return this.nextGenClient.isFeatureAccessible(c).pipe((0,ie.U)(a=>!!a||(this.authenticationService.RedirectToLogout(),!1)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(_e.$),e.\u0275\u0275inject(R))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();var Gn=d(2110),zn=d(5149);const Wn=new e.InjectionToken("API_BASE_URL");let Jt=(()=>{class s extends class Vn{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o??""}isCheckInAvailable(t){let o=this.baseUrl+"/api/CheckIn/IsCheckInAvailable?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processIsCheckInAvailable(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processIsCheckInAvailable(a)}catch(l){return(0,S._)(l)}}))}processIsCheckInAvailable(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Je(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Je(c).pipe((0,m.zg)(l=>Et("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}lookupRegistration(t){let o=this.baseUrl+"/api/CheckIn/LookupRegistration";o=o.replace(/[?&]$/,"");let a={body:JSON.stringify(t),observe:"response",responseType:"blob",headers:new f.WM({"Content-Type":"application/json",Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("post",o,l))).pipe((0,m.zg)(l=>this.processLookupRegistration(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processLookupRegistration(l)}catch(h){return(0,S._)(h)}}))}processLookupRegistration(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Je(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=v?Ct.fromJS(v):null,(0,C.of)(h)})):200!==o&&204!==o?Je(c).pipe((0,m.zg)(l=>Et("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}checkInRegistrants(t){let o=this.baseUrl+"/api/CheckIn/CheckInRegistrants";o=o.replace(/[?&]$/,"");let a={body:JSON.stringify(t),observe:"response",responseType:"blob",headers:new f.WM({"Content-Type":"application/json",Accept:"application/json"})};return(0,k.D)(this.transformOptions(a)).pipe((0,m.zg)(l=>this.http.request("post",o,l))).pipe((0,m.zg)(l=>this.processCheckInRegistrants(l))).pipe((0,T.K)(l=>{if(!(l instanceof f.QO))return(0,S._)(l);try{return this.processCheckInRegistrants(l)}catch(h){return(0,S._)(h)}}))}processCheckInRegistrants(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Je(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Je(c).pipe((0,m.zg)(l=>Et("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(Wn,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class Ct{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){if(n&&(this.eventId=n.EventId,this.status=n.Status,this.primaryRegistrant=n.PrimaryRegistrant?ct.fromJS(n.PrimaryRegistrant):void 0,Array.isArray(n.FamilyRegistrants))){this.familyRegistrants=[];for(let t of n.FamilyRegistrants)this.familyRegistrants.push(ct.fromJS(t))}}static fromJS(n){n="object"==typeof n?n:{};let t=new Ct;return t.init(n),t}toJSON(n){if((n="object"==typeof n?n:{}).EventId=this.eventId,n.Status=this.status,n.PrimaryRegistrant=this.primaryRegistrant?this.primaryRegistrant.toJSON():void 0,Array.isArray(this.familyRegistrants)){
1n.FamilyRegistrants=[];for(let t of this.familyRegistrants)n.FamilyRegistrants.push(t.toJSON())}return n}}class Le{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.id=n.Id,this.checkIn=n.CheckIn)}static fromJS(n){n="object"==typeof n?n:{};let t=new Le;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).Id=this.id,n.CheckIn=this.checkIn,n}}class ct extends Le{constructor(n){super(n)}init(n){super.init(n),n&&(this.firstName=n.FirstName,this.lastName=n.LastName,this.isApproved=n.IsApproved)}static fromJS(n){n="object"==typeof n?n:{};let t=new ct;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).FirstName=this.firstName,n.LastName=this.lastName,n.IsApproved=this.isApproved,super.toJSON(n),n}}class bt{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){n&&(this.eventId=n.EventId,this.lookupByReferenceNumber=n.LookupByReferenceNumber,this.referenceNumber=n.ReferenceNumber,this.firstName=n.FirstName,this.lastName=n.LastName,this.email=n.Email)}static fromJS(n){n="object"==typeof n?n:{};let t=new bt;return t.init(n),t}toJSON(n){return(n="object"==typeof n?n:{}).EventId=this.eventId,n.LookupByReferenceNumber=this.lookupByReferenceNumber,n.ReferenceNumber=this.referenceNumber,n.FirstName=this.firstName,n.LastName=this.lastName,n.Email=this.email,n}}class It{constructor(n){if(n)for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t])}init(n){if(n&&(this.eventId=n.EventId,this.primaryRegistrant=n.PrimaryRegistrant?Le.fromJS(n.PrimaryRegistrant):void 0,Array.isArray(n.FamilyRegistrants))){this.familyRegistrants=[];for(let t of n.FamilyRegistrants)this.familyRegistrants.push(Le.fromJS(t))}}static fromJS(n){n="object"==typeof n?n:{};let t=new It;return t.init(n),t}toJSON(n){if((n="object"==typeof n?n:{}).EventId=this.eventId,n.PrimaryRegistrant=this.primaryRegistrant?this.primaryRegistrant.toJSON():void 0,Array.isArray(this.familyRegistrants)){n.FamilyRegistrants=[];for(let t of this.familyRegistrants)n.FamilyRegistrants.push(t.toJSON())}return n}}class Qn extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function Et(s,n,t,o,c){return(0,S._)(null!=c?c:new Qn(s,n,t,o,null))}function Je(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}var xt=d(4144);function qn(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"mat-checkbox",0),e.\u0275\u0275listener("ngModelChange",function(c){const l=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(l.checkIn=c)}),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&s){const t=n.$implicit,o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",t.checkIn)("disabled",o.disabled),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",t.firstName," ",t.lastName," ")}}let Hn=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-event-checkin-lookup-result"]],inputs:{lookupResults:"lookupResults",disabled:"disabled"},decls:3,vars:5,consts:[[3,"ngModel","disabled","ngModelChange"],[4,"ngFor","ngForOf"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"mat-checkbox",0),e.\u0275\u0275listener("ngModelChange",function(a){return o.lookupResults.primaryRegistrant.checkIn=a}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(2,qn,3,4,"div",1)),2&t&&(e.\u0275\u0275property("ngModel",o.lookupResults.primaryRegistrant.checkIn)("disabled",o.disabled),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",o.lookupResults.primaryRegistrant.firstName," ",o.lookupResults.primaryRegistrant.lastName,"\n"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.lookupResults.familyRegistrants))},dependencies:[b.sg,P.NgControlStatus,P.NgModel,r.oG],encapsulation:2}),s})();function $n(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275text(1," Invalid check-in link. No event was found.\n"),e.\u0275\u0275elementEnd())}function Kn(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1," Check-in is not available for this event. The event is not in progress. "),e.\u0275\u0275elementEnd())}function Zn(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275text(1," Lo
1ok up my registration by: "),e.\u0275\u0275element(2,"br"),e.\u0275\u0275elementStart(3,"button",13),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(c.lookupByRegNumber())}),e.\u0275\u0275text(4,"Registrant Number"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"br"),e.\u0275\u0275elementStart(6,"button",13),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(c.lookupByNameEmail())}),e.\u0275\u0275text(7,"Name and Email"),e.\u0275\u0275elementEnd()()}}function Yn(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div")(1,"mat-form-field",17)(2,"mat-label"),e.\u0275\u0275text(3,"Registrant Number"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"input",18),e.\u0275\u0275elementEnd()())}function Xn(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div")(1,"div")(2,"mat-form-field",17)(3,"mat-label"),e.\u0275\u0275text(4,"First Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"input",19),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div")(7,"mat-form-field",17)(8,"mat-label"),e.\u0275\u0275text(9,"Last Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"input",20),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div")(12,"mat-form-field",17)(13,"mat-label"),e.\u0275\u0275text(14,"Email Address"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(15,"input",21),e.\u0275\u0275elementEnd()()())}function ei(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Yn,5,0,"div",9),e.\u0275\u0275template(2,Xn,16,0,"div",9),e.\u0275\u0275elementStart(3,"div",14)(4,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(c.doLookup())}),e.\u0275\u0275text(5," Look Up"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(c.resetLookupForm())}),e.\u0275\u0275text(7,"Cancel"),e.\u0275\u0275elementEnd()()()}if(2&s){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isLookupByRegNumber),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isLookupByNameEmail),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!t.isLookupValid())}}function ti(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div")(1,"div",10),e.\u0275\u0275template(2,Zn,8,0,"div",11),e.\u0275\u0275template(3,ei,8,3,"div",9),e.\u0275\u0275elementEnd()()),2&s){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",t.checkinForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isLookupByRegNumber&&!t.isLookupByNameEmail),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isLookupByRegNumber||t.isLookupByNameEmail)}}function ni(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1," One or more guests are already checked in. See event staff for assistance. "),e.\u0275\u0275elementEnd())}function ii(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1," One or more registrations is not approved. See event staff for assistance. "),e.\u0275\u0275elementEnd())}function ri(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1," Registration was not found. Verify your details and try again. See Event Staff for assistance. "),e.\u0275\u0275elementStart(2,"div")(3,"button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(c.cancelCheckIn())}),e.\u0275\u0275text(4,"OK"),e.\u0275\u0275elementEnd()()()}}function oi(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"p"),e.\u0275\u0275text(2,"Check each person present in your group."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"app-event-checkin-lookup-result",22),e.\u0275\u0275listener("lookupResultsChange",function(c){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(4);
1return e.\u0275\u0275resetView(a.lookupResults=c)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",23)(5,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(c.doCheckIn())}),e.\u0275\u0275text(6," Check-In"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const c=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(c.cancelCheckIn())}),e.\u0275\u0275text(8,"Cancel"),e.\u0275\u0275elementEnd()()()}if(2&s){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(3),e.\u0275\u0275property("lookupResults",t.lookupResults),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!t.isCheckInValid())}}function si(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ri,5,0,"div",9),e.\u0275\u0275template(2,oi,9,2,"div",9),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.lookupResults.primaryRegistrant),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.lookupResults.primaryRegistrant)}}function li(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1,"Registration not found"),e.\u0275\u0275elementEnd())}function ai(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ni,2,0,"div",9),e.\u0275\u0275template(2,ii,2,0,"div",9),e.\u0275\u0275template(3,si,3,2,"div",9),e.\u0275\u0275template(4,li,2,0,"div",9),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.lookupResults&&"AlreadyCheckedIn"===t.lookupResults.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.lookupResults&&"NotApproved"===t.lookupResults.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.lookupResults&&"Success"===t.lookupResults.status),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.lookupResults)}}function ci(s,n){if(1&s){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"p",24),e.\u0275\u0275text(2,"Check-In Successful! Show this screen to the event staff to receive your event badges."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"app-event-checkin-lookup-result",25),e.\u0275\u0275listener("lookupResultsChange",function(c){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(a.lookupResults=c)}),e.\u0275\u0275elementEnd()()}if(2&s){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("lookupResults",t.lookupResults)("disabled",!0)}}function pi(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1," Check-in not Completed. See event staff for assistance."),e.\u0275\u0275elementEnd())}function ui(s,n){if(1&s&&(e.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3),e.\u0275\u0275element(3,"img",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",5)(5,"h3",6),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"h2",7),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(9,"h1",8),e.\u0275\u0275text(10,"Event Check-In"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,Kn,2,0,"div",9),e.\u0275\u0275template(12,ti,4,3,"div",9),e.\u0275\u0275template(13,ai,5,4,"div",9),e.\u0275\u0275template(14,ci,4,2,"div",9),e.\u0275\u0275template(15,pi,2,0,"div",9),e.\u0275\u0275elementEnd()),2&s){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("src","/Events/LoadImage.ashx?ID="+t.eventModel.logoDocumentId,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.eventModel.component),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.getPhases()),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.showUnavailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showLookupForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showCheckInForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showCheckInSuccess),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showCheckInFailed)}}let di=(()=>{class s extends zn.P{constructor(t,o,c,a,l){super(t,o),this.route=c,this.eventDetailsClient=a,this.checkInClient=l,this.title="Event Checkin",this.eventDetails=null,this.eventModel=null,this.lookupResults=null,this.isLoading=!0,this.showUnavailable=!1,this.showLookupForm=!1,this.showCheckInForm=!1,this.showCheckInSuccess=!1,this.showCheckInFailed=!1,this.isLookupByNameEmail=!1,this.isLookupByRegNumber=!1,this.checkinForm=new P.UntypedFormGroup({regstrationNumber:new P.UntypedFormControl(""),firstName:new P.UntypedFormControl(""),lastName:new P.UntypedFormControl(""),email:new P.UntypedFormControl("")}),this.id=""}
1ngOnInit(){this.route.snapshot.params.id&&(this.id=this.route.snapshot.params.id),this.eventDetailsClient.getEventDetailsByCheckinToken(this.id).pipe((0,y.q)(1)).subscribe(t=>{t&&(this.eventDetails=t,this.eventModel=t.event,this.checkInClient.isCheckInAvailable(this.eventModel.id).pipe((0,y.q)(1)).subscribe(o=>{this.showUnavailable=!o,this.showLookupForm=o})),this.isLoading=!1})}doLookup(){if(!this.isLookupValid())return;const t=new bt({eventId:this.eventModel.id,lookupByReferenceNumber:this.isLookupByRegNumber,referenceNumber:this.checkinForm.controls.regstrationNumber.value,firstName:this.checkinForm.controls.firstName.value,lastName:this.checkinForm.controls.lastName.value,email:this.checkinForm.controls.email.value});this.isLoading=!0,this.checkInClient.lookupRegistration(t).pipe((0,y.q)(1)).subscribe(o=>{this.lookupResults=o,console.log(this.lookupResults),this.isLoading=!1,this.showLookupForm=!1,this.showCheckInForm=!0})}getPhases(){return this.eventModel.deploymentPhases.map(o=>o.name).join(" | ")}isLookupValid(){let t=!1;return t=this.isLookupByRegNumber?!!this.checkinForm.controls.regstrationNumber.value:!!this.checkinForm.controls.firstName.value&&!!this.checkinForm.controls.lastName.value&&!!this.checkinForm.controls.email.value,t}isCheckInValid(){return!!this.lookupResults.primaryRegistrant.checkIn||this.lookupResults.familyRegistrants.some(t=>t.checkIn)}doCheckIn(){if(!this.isCheckInValid())return;const t=new It;t.eventId=this.lookupResults.eventId,t.primaryRegistrant=new Le({id:this.lookupResults.primaryRegistrant.id,checkIn:this.lookupResults.primaryRegistrant.checkIn}),t.familyRegistrants=[],this.lookupResults.familyRegistrants.forEach(o=>{t.familyRegistrants.push(new Le({id:o.id,checkIn:o.checkIn}))}),this.checkInClient.checkInRegistrants(t).pipe((0,y.q)(1)).subscribe(o=>{this.showCheckInForm=!1,this.showCheckInFailed=!o,this.showCheckInSuccess=o})}cancelCheckIn(){this.lookupResults=null,this.showLookupForm=!0,this.showCheckInForm=!1,this.resetLookupForm()}resetLookupForm(){this.checkinForm.patchValue({regstrationNumber:"",firstName:"",lastName:"",email:""}),this.isLookupByNameEmail=!1,this.isLookupByRegNumber=!1}lookupByNameEmail(){this.isLookupByNameEmail=!0}lookupByRegNumber(){this.isLookupByRegNumber=!0}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(b.K0),e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(we.tq),e.\u0275\u0275directiveInject(Jt))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-event-checkin"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:2,consts:[["class","event-checkin pt-5 col-12 col-md-6",4,"ngIf"],[1,"event-checkin","pt-5","col-12","col-md-6"],[1,"row"],[1,"col-3"],[3,"src"],[1,"col-9","pt-3"],[1,"subsection-header"],[1,"topsection-header","m-0"],[1,"mt-2"],[4,"ngIf"],[3,"formGroup"],["class","text-center",4,"ngIf"],[1,"text-center"],[1,"btn","btn-green","mt-4",3,"click"],[1,""],["type","button",1,"btn","btn-green","float-right","ml-3",3,"disabled","click"],["type","button",1,"btn","float-right",3,"click"],["appearance","outline",1,"mat-search-field"],["matInput","","name","regstrationNumber","formControlName","regstrationNumber"],["matInput","","name","firstName","formControlName","firstName"],["matInput","","name","lastName","formControlName","lastName"],["matInput","","name","email","formControlName","email"],[3,"lookupResults","lookupResultsChange"],[1,"overflowHidden"],[1,"check-in-success"],[3,"lookupResults","disabled","lookupResultsChange"]],template:function(t,o){1&t&&(e.\u0275\u0275template(0,$n,2,0,"div",0),e.\u0275\u0275template(1,ui,16,8,"div",0)),2&t&&(e.\u0275\u0275property("ngIf",!o.eventModel&&!o.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.eventModel))},dependencies:[b.O5,P.DefaultValueAccessor,P.NgControlStatus,P.NgControlStatusGroup,P.FormGroupDirective,P.FormControlName,u.KE,u.hX,xt.Nt,Hn],styles:[".event-checkin[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;font-size:3rem}.event-checkin[_ngcontent-%COMP%] .check-in-success[_ngcontent-%COMP%]{font-size:2rem;color:#148550}"]}),s})(),hi=(()=>{class s{constructor(t,o,c,a,l,h){this.route=c,this.appFeatureService=a,this.titleService=l,this.breadCrumbService=h,this.title="Self Check-In",this.id="",this.AppFeature=this.appFeatureService.GetAppFeatures(),t.addClass(o.body,"postlogin")}
1ngOnInit(){this.helpLink=Q.ul.Description,this.route.snapshot.params.id&&(this.id=this.route.snapshot.params.id),this.titleService.setTitle(this.title),this.titleService.setTitle(this.title+" | "+this.AppFeature.PagesMetaTags.HomepageTitle),this.breadCrumbService.titleUpdated(this.title),this.breadCrumbService.helpLinkUpdated(this.helpLink),this.breadCrumbService.newBreadCrumb([{text:this.title}])}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(b.K0),e.\u0275\u0275directiveInject(E.gz),e.\u0275\u0275directiveInject(W.l),e.\u0275\u0275directiveInject(L.Title),e.\u0275\u0275directiveInject($._))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-event-checkin"]],decls:28,vars:1,consts:[[1,"event-checkin-poster"],[1,"topsection-header"],[1,"fal","fa-download"],[1,"btn","btn-green",3,"href"],[1,"fal","fa-print"],[1,"fal","fa-sign"],[1,"fal","fa-qrcode"],[1,"fal","fa-id-badge"]],template:function(t,o){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"h3"),e.\u0275\u0275text(2," Follow these steps to set up your event to allow attendees to self check-in. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div")(4,"h2",1),e.\u0275\u0275element(5,"i",2),e.\u0275\u0275text(6," Step 1: Download Self Check-In Poster "),e.\u0275\u0275element(7,"br"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"a",3),e.\u0275\u0275text(9,"Download"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"h2",1),e.\u0275\u0275element(11,"i",4),e.\u0275\u0275text(12," Step 2: Print Self Check-In Poster "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div")(14,"h2",1),e.\u0275\u0275element(15,"i",5),e.\u0275\u0275text(16," Step 3: Display "),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(17," Display the self check-in poster at the check-in area of the event. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div")(19,"h2",1),e.\u0275\u0275element(20,"i",6),e.\u0275\u0275text(21," Step 4: Registrant Self Check-In "),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(22," At the event, invite arriving guests to use their mobile devices to scan the self check-in QR code and follow the on-screen instructions. If guests experience issues, complete the check-in process using the normal process. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"div")(24,"h2",1),e.\u0275\u0275element(25,"i",7),e.\u0275\u0275text(26," Step 5: Badges "),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(27," Give badges and other event materials to successfully checked-in guests. "),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275advance(8),e.\u0275\u0275property("href","/api/CheckinPoster/Get?eventId="+o.id,e.\u0275\u0275sanitizeUrl))},styles:[".event-checkin-poster[_ngcontent-%COMP%]{max-width:650px}.event-checkin-poster[_ngcontent-%COMP%] i.fal[_ngcontent-%COMP%]{width:36px;height:36px;font-size:36px}.event-checkin-poster[_ngcontent-%COMP%] h2.topsection-header[_ngcontent-%COMP%]{margin-bottom:12px}"]}),s})();const mi=new e.InjectionToken("API_BASE_URL");let Gt=(()=>{class s extends class fi{constructor(){}defaultJsonReviver(n,t){let o;if("string"==typeof t&&(o=/\/Date\(([-]?\d+)\)\//gi.exec(t),o&&o[1])){const c=new Date(parseInt(o[1],10)),a=c.getTimezoneOffset();return new Date(c.valueOf()+60*a*1e3)}return t}transformOptions(n){return this.jsonParseReviver=this.defaultJsonReviver,Promise.resolve(n)}}{constructor(t,o){super(),this.jsonParseReviver=void 0,this.http=t,this.baseUrl=o??""}get(t){let o=this.baseUrl+"/api/CheckinPoster/Get?";if(null==t)throw new Error("The parameter 'eventId' must be defined and cannot be null.");o+="eventId="+encodeURIComponent(""+t)+"&",o=o.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/octet-stream"})};return(0,k.D)(this.transformOptions(c)).pipe((0,m.zg)(a=>this.http.request("get",o,a))).pipe((0,m.zg)(a=>this.processGet(a))).pipe((0,T.K)(a=>{if(!(a instanceof f.QO))return(0,S._)(a);try{return this.processGet(a)}catch(l){return(0,S._)(l)}}))}processGet(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);
1if(200===o||206===o){const l=t.headers?t.headers.get("content-disposition"):void 0,h=l?/filename="?([^"]*?)"?(;|$)/g.exec(l):void 0;return(0,C.of)({fileName:h&&h.length>1?h[1]:void 0,data:c,status:o,headers:a})}return 200!==o&&204!==o?Rt(c).pipe((0,m.zg)(l=>zt("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}isAccessible(){let t=this.baseUrl+"/api/CheckinPoster/IsAccessible";t=t.replace(/[?&]$/,"");let o={observe:"response",responseType:"blob",headers:new f.WM({Accept:"application/json"})};return(0,k.D)(this.transformOptions(o)).pipe((0,m.zg)(c=>this.http.request("get",t,c))).pipe((0,m.zg)(c=>this.processIsAccessible(c))).pipe((0,T.K)(c=>{if(!(c instanceof f.QO))return(0,S._)(c);try{return this.processIsAccessible(c)}catch(a){return(0,S._)(a)}}))}processIsAccessible(t){const o=t.status,c=t instanceof f.Zn?t.body:t.error instanceof Blob?t.error:void 0;let a={};if(t.headers)for(let l of t.headers.keys())a[l]=t.headers.get(l);return 200===o?Rt(c).pipe((0,m.zg)(l=>{let h=null,v=""===l?null:JSON.parse(l,this.jsonParseReviver);return h=void 0!==v?v:null,(0,C.of)(h)})):200!==o&&204!==o?Rt(c).pipe((0,m.zg)(l=>zt("An unexpected server error occurred.",o,l,a))):(0,C.of)(null)}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(f.eN),e.\u0275\u0275inject(mi,8))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class vi extends Error{constructor(n,t,o,c,a){super(),this.isSwaggerException=!0,this.message=n,this.status=t,this.response=o,this.headers=c,this.result=a}static isSwaggerException(n){return!0===n.isSwaggerException}}function zt(s,n,t,o,c){return(0,S._)(null!=c?c:new vi(s,n,t,o,null))}function Rt(s){return new V.y(n=>{if(s){let t=new FileReader;t.onload=o=>{n.next(o.target.result),n.complete()},t.readAsText(s)}else n.next(""),n.complete()})}let Wt=(()=>{class s{constructor(t,o){this.authenticationService=t,this.checkInPosterClient=o}canActivate(t,o){return this.checkInPosterClient.isAccessible().pipe((0,ie.U)(c=>!!c||(this.authenticationService.RedirectToLogout(),!1)))}}return s.\u0275fac=function(t){return new(t||s)(e.\u0275\u0275inject(_e.$),e.\u0275\u0275inject(Gt))},s.\u0275prov=e.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();const gi=[{path:"mailing-list/:id",component:x.U,children:[{path:"",component:De,resolve:{phases:Y,filterPreference:Te}}]},{path:"topics-of-interest-report/:id",component:x.U,data:{willShowTitleMyself:!0},children:[{path:"",component:O,resolve:{phases:Y}}]},{path:"well-being-questionnaire/:id",component:x.U,children:[{path:"",component:Qe}]},{path:"pre-event-survey-report/:id",component:x.U,children:[{path:"",component:_n,canActivate:[Bt]}]},{path:"next-gen-survey/:id",component:x.U,children:[{path:"",component:Zt}]},{path:"post-event-survey-report/:id",component:x.U,children:[{path:"",component:Jn,canActivate:[_t]}]},{path:"facilitator-evaluation/:id",component:x.U,children:[{path:"",component:rn,canActivate:[vt]}]},{path:"facilitator-evaluation/session-select/:id/:userId",component:x.U,children:[{path:"",component:mn,canActivate:[Dt]}]},{path:"facilitator-evaluation-report/:id",component:x.U,children:[{path:"",component:jn,canActivate:[vt]}]},{path:"planning-checklist/:id",component:x.U,children:[{path:"",canActivate:[jt],component:On}]},{path:"mailer-evaluation/:id",children:[{path:"",component:x.U,canActivate:[yt],children:[{path:"",component:bn}]},{path:"report",component:x.U,canActivate:[yt],children:[{path:"",component:Bn}]}]},{path:"repeating-events/:id",component:x.U,data:{isLeftSideDetailsMode:!0},children:[{path:"",loadChildren:()=>Promise.all([d.e(592),d.e(61)]).then(d.bind(d,8061)).then(s=>s.RecurringEventsModule)}]},{path:"comprehensive-event-report",loadChildren:()=>Promise.resolve().then(d.bind(d,1082)).then(s=>s.ComprehensiveEventReportModule)},{path:"checkin/:id",component:di},{path:"checkin-poster/:id",children:[{path:"",component:x.U,canActivate:[Wt],children:[{path:"",component:hi}]}]},{path:"event-creation-report",loadChildren:()=>Promise.resolve().then(d.bind(d,3285)).then(s=>s.EventCreationReportModule)}];let yi=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({providers:[ue,Y,Te,Be,be,we.tq,R,tt,vt,Dt,St,jt,nt,yt,Bt,_t,Gn.bG,Jt,Wt,Gt],imports:[E.Bz.forChild(gi),E.Bz]}),s})();var Si=d(1863),Vt=d(1150),Qt=d(1354),pt=d(7005),Ci=d(4859);let bi=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({imports:[b.ez,P.ReactiveFormsModule,r.p9,w.LD,
1Ci.ot,Qt.c,pt.E]}),s})();var qt=d(4845);let Ii=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({imports:[b.ez,P.ReactiveFormsModule,Qt.c,pt.E,Vt.S,qt.q]}),s})();var Ei=d(1572),Tt=d(59);let xi=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({imports:[ee.AV,le.Ps,b.ez,P.ReactiveFormsModule,pt.E,Ei.Cq,Tt.m]}),s})(),Ri=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({imports:[ee.AV,le.Ps,b.ez,P.ReactiveFormsModule,pt.E]}),s})();var Ti=d(3267),Pi=d(1103);let wi=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({providers:[Mt],imports:[ee.AV,le.Ps,b.ez,xt.c,w.LD,Tt.m]}),s})();var Ai=d(1853);let ki=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({providers:[St,we.r2,Ft],imports:[b.ez,ot.To,E.Bz]}),s})(),Mi=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({providers:[nt],imports:[ee.AV,le.Ps,Tt.m,b.ez]}),s})();var Di=d(4534),Oi=d(1082),Fi=d(1948);let Ni=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({imports:[b.ez,P.ReactiveFormsModule,P.FormsModule,u.lN,xt.c,Fi.Fk,r.p9]}),s})();var Li=d(3285);let Ui=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({providers:[{provide:D._A,useClass:Di.M8}],imports:[b.ez,E.Bz,yi,Vt.S,Si.X,D.XK,bi,Ii,xi,qt.q,Ri,Ti.SJ,Pi.B,Ai.Q,ki,wi,Mi,Oi.ComprehensiveEventReportModule,Ni,Li.EventCreationReportModule]}),s})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.