1"use strict";(self.webpackChunklorax=self.webpackChunklorax||[]).push([[3059],{3059:(Ve,D,c)=>{c.r(D),c.d(D,{IncentivesModule:()=>Oe});var l=c(6895),u=c(9132),f=c(9860),C=c(5226),v=c.n(C),e=c(4650),g=c(5680),h=c(600),_=c(4859),I=c(1299),Z=c(3162);function N(i,s){if(1&i&&(e.TgZ(0,"div",24),e._UZ(1,"app-breadcrumb",25),e.qZA()),2&i){const n=s.$implicit;e.xp6(1),e.Q6J("title",n.title)("items",n.items)("active_item",n.active)}}function x(i,s){1&i&&e._UZ(0,"mat-progress-bar",26)}function J(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",27)(1,"button",28),e.NdJ("click",function(){e.CHM(n);const r=e.oxw();return e.KtG(r.deleteIncentive())}),e._uU(2," Delete"),e.qZA()()}}function E(i,s){if(1&i&&(e.TgZ(0,"div",11)(1,"div",10)(2,"h2")(3,"strong"),e._uU(4,"Person Responsible for Payment Processing"),e.qZA()()(),e.TgZ(5,"div",12)(6,"strong"),e._UZ(7,"i",17),e._uU(8,"\xa0 Name:"),e.qZA(),e._uU(9),e.qZA(),e.TgZ(10,"div",12)(11,"strong"),e._UZ(12,"i",29),e._uU(13,"\xa0 Email:"),e.qZA(),e._uU(14),e.qZA()()),2&i){const n=e.oxw();e.xp6(9),e.hij(" ",n.nameReferencePersonForPayment," "),e.xp6(5),e.hij(" ",n.emailReferencePersonForPayment," ")}}let w=(()=>{class i{constructor(n,t,r,d){this.route=n,this.router=t,this.localService=r,this.backendService=d,this.breadscrums=[{title:"Details",items:["Incentive"],active:"Details"}],this.incentiveProgressbar=!1,this.financial_admin_id=-1,this.userAccountRole="",this.showActionButtons=!1,this.showProcessingInfo=!1,this.incentiveId=-1,this.incentiveStudyTitle="",this.incentiveStatusDb="",this.incentiveStatus=f.Z.capitalizeFirstLetter(this.incentiveStatusDb),this.incentiveParticipantName="",this.incentiveParticipantDsId="",this.incentiveFunds=0,this.incentiveEcts=0,this.incentiveDueDateString="",this.incentiveDueDate=new Date(this.incentiveDueDateString).toDateString(),this.incentiveMotivation="",this.nameReferencePersonForPayment="",this.emailReferencePersonForPayment="",this.route.params.subscribe(o=>this.incentiveId=o.id),this.userAccountRole=this.localService.getUserRole()}ngOnInit(){this.loadIncentiveDetails().then(n=>this.setActionButtonPermissions())}setActionButtonPermissions(){"pending"==this.incentiveStatusDb&&this.userAccountRole==this.backendService.fadmin&&(this.showActionButtons=!0),this.userAccountRole==this.backendService.fadmin&&"processed"==this.incentiveStatusDb&&(this.showProcessingInfo=!0)}studyDetailsCallback(){f.Z.goToStudyDetails(this.incentiveStudyDsId,this.router)}acceptRejectIncentive(n){}loadIncentiveDetails(){let n={member_ds_id:"",incentive_status:"",incentive_id:this.incentiveId,researcher_ds_id:""};return this.incentiveProgressbar=!0,new Promise((t,r)=>{this.backendService.getIncentivesDetails(n).subscribe(d=>{if(d.found>0){let o=d.data[0];this.incentiveStudyDsId=o.study_ds_id,this.incentiveStudyTitle=o.study_title,this.incentiveStatusDb=o.incentive_status,this.incentiveStatus=f.Z.capitalizeFirstLetter(this.incentiveStatusDb),this.incentiveParticipantName=o.member_name,this.incentiveParticipantDsId=o.member_ds_id,this.incentiveFunds=o.funds,this.incentiveEcts=o.credits,this.incentiveDueDateString=o.payment_due_date,this.incentiveDueDate=new Date(this.incentiveDueDateString).toDateString(),this.incentiveMotivation=o.motivation,o.processing_details&&(this.nameReferencePersonForPayment=o.processing_details.payment_responsible_name,this.emailReferencePersonForPayment=o.processing_details.payment_responsible_email),this.incentiveProgressbar=!1}t()},d=>{console.log(d),this.incentiveProgressbar=!1,t()})})}deleteIncentive(){this.backendService.deleteIncentive({incentive_id:this.incentiveId}).subscribe(t=>{let r=t.message;v().fire({icon:"success",title:"Success!",text:r,showConfirmButton:!1,timer:2500})},t=>{console.log(t)})}}return i.\u0275fac=function(n){return new(n||i)(e.Y36(u.gz),e.Y36(u.F0),e.Y36(g.C),e.Y36(h.v))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-view"]],decls:61,vars:11,consts:[[1,"content"],[1,"container-fluid"],["class","block-header",4,"ngFor","ngForOf"],[1,"row","clearfix"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12"],[1,"card"],[1,"body"],[1,"col-lg-12","col-md-12","col-sm-12"],["mode","indeterminate",4,"ngIf"],[1,"project_widget"],[1,"header"],[1,"row"],[1,"col-md-6","col-6","b-r"],[1,"fas","fa-book"],[1,"fas","fa-info"],[1,"fas","fa-calendar"],[1,"col-md-12","col-12","b-r"],[1,"fas","fa-user"],["mat-stroked-button","","color","primary",3,"click"],[1,"fas","fa-euro-sign"],[1,"fas","fa-graduation-cap"],[1,"text-muted"],["class","col-md-12 example-button-row align-right",4,"ngIf"],["class","row",4,"ngIf"],[1,"block-header"],[3,"title","items","active_item"],["mode","indeterminate"],[1,"col-md-12","example-button-row","align-right"],["mat-raised-button","","color","warn",3,"click"],[1,"fas","fa-envelope"]],template:function(n,t){1&n&&(e.TgZ(0,"section",0)(1,"div",1),e.YNc(2,N,2,3,"div",2),e.TgZ(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),e.YNc(8,x,1,0,"mat-progress-bar",8),e.TgZ(9,"div",9)(10,"div",10)(11,"h2")(12,"strong"),e._uU(13,"Incentive Details"),e.qZA()(),e._UZ(14,"hr"),e.qZA(),e.TgZ(15,"div",6)(16,"div",11)(17,"div",12)(18,"div",12)(19,"strong"),e._UZ(20,"i",13),e._uU(21,"\xa0 Project"),e.qZA(),e._uU(22),e.qZA(),e.TgZ(23,"div",12)(24,"strong"),e._UZ(25,"i",14),e._uU(26,"\xa0 Status:"),e.qZA(),e._uU(27),e.qZA(),e.TgZ(28,"div",12)(29,"strong"),e._UZ(30,"i",15),e._uU(31,"\xa0 Due Date:"),e.qZA(),e._uU(32),e.qZA(),e.TgZ(33,"div",16)(34,"strong"),e._UZ(35,"i",17),e._uU(36,"\xa0 Participant (DS ID): "),e.qZA(),e._uU(37),e.qZA()(),e.TgZ(38,"div",12)(39,"div",12)(40,"button",18),e.NdJ("click",function(){return t.studyDetailsCallback()}),e._uU(41," Project Details "),e.qZA()(),e.TgZ(42,"div",12)(43,"strong"),e._UZ(44,"i",19),e._uU(45,"\xa0 Funds:"),e.qZA(),e._uU(46),e.qZA(),e.TgZ(47,"div",12)(48,"strong"),e._UZ(49,"i",20),e._uU(50,"\xa0 ECTS:"),e.qZA(),e._uU(51),e.qZA()(),e._UZ(52,"hr"),e.TgZ(53,"div",16)(54,"strong"),e._uU(55,"Motivation"),e.qZA(),e._UZ(56,"br"),e.TgZ(57,"p",21),e._uU(58),e.qZA()(),e.YNc(59,J,3,0,"div",22),e.qZA(),e.YNc(60,E,15,2,"div",23),e.qZA()()()()()()()()()),2&n&&(e.xp6(2),e.Q6J("ngForOf",t.breadscrums),e.xp6(6),e.Q6J("ngIf",t.incentiveProgressbar),e.xp6(14),e.hij(" ",t.incentiveStudyTitle," "),e.xp6(5),e.hij(" ",t.incentiveStatus," "),e.xp6(5),e.hij(" ",t.incentiveDueDate," "),e.xp6(5),e.hij("",t.incentiveParticipantDsId," "),e.xp6(9),e.hij(" ",t.incentiveFunds," "),e.xp6(5),e.hij(" ",t.incentiveEcts," "),e.xp6(7),e.Oqu(t.incentiveMotivation),e.xp6(1),e.Q6J("ngIf","researcher"==t.userAccountRole&&"pending"==t.incentiveStatusDb),e.xp6(1),e.Q6J("ngIf",t.showProcessingInfo))},dependencies:[l.sg,l.O5,_.lW,I.L,Z.pW]}),i})();var a=c(4006),m=c(9549),S=c(4144),T=c(7392),A=c(6709),y=c(3238),p=c(9602),P=c(4385);function k(i,s){if(1&i&&(e.TgZ(0,"div",36),e._UZ(1,"app-breadcrumb",37),e.qZA()),2&i){const n=s.$implicit;e.xp6(1),e.Q6J("title",n.title)("items",n.items)("active_item",n.active)}}function Q(i,s){1&i&&e._UZ(0,"mat-progress-bar",38)}function Y(i,s){1&i&&e._UZ(0,"mat-progress-bar",38)}function R(i,s){if(1&i&&(e.TgZ(0,"mat-option",39),e._uU(1),e.qZA()),2&i){const n=s.$implicit;e.Q6J("disabled","pending"==n.studyStatus||"rejected"==n.studyStatus)("value",n.study_ds_id),e.xp6(1),e.hij(" ","#"+n.id+" - "+n.studyTitleParticipant," ")}}function j(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function M(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function O(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function V(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function B(i,s){1&i&&e._UZ(0,"mat-progress-bar",38)}function L(i,s){if(1&i&&(e.TgZ(0,"mat-option",39),e._uU(1),e.qZA()),2&i){const n=s.$implicit;e.Q6J("disabled","accepted"!=n.invitation_status)("value",n.member_ds_id),e.xp6(1),e.hij(" ",n.member_ds_id," ")}}function G(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function z(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function W(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}let X=(()=>{class i{constructor(n,t,r,d,o){this.route=n,this.fb=t,this.router=r,this.localService=d,this.backendService=o,this.breadscrums=[{title:"Edit",items:["Incentive"],active:"Edit"}],this.participantsProgressbar=!1,this.studiesProgressbar=!1,this.formSubmissionProgressbar=!1,this.studies=[],this.participants=[],this.studyTitle="",this.incentiveParticipantDsId="",this.incentiveIsPaid=!0,this.incentiveProgressbar=!1,this.financial_admin_id=-1,this.userAccountRole="",this.showActionButtons=!1,this.incentiveId=-1,this.incentiveStudyTitle="",this.incentiveStatus="",this.incentiveFunds=0,this.incentiveEcts=0,this.incentiveDueDate=new a.p4(new Date),this.incentiveMotivation="",this.hide=!0,this.researcherDsId="",this.researcherName="",this.disableEditIncentiveParticipant=!0,this.route.params.subscribe(b=>this.incentiveId=b.id),this.userAccountRole=this.localService.getUserRole(),this.researcherName=this.localService.getJsonValue("given_name")+" "+this.localService.getJsonValue("family_name"),this.researcherDsId=this.localService.getJsonValue("researcher_ds_id")}ngOnInit(){this.initForm(),this.studiesCompletedByResearcher().then(n=>this.loadIncentiveDetails().then(t=>this.getStudyParticipants(this.studyDsId).then(r=>this.initForm()))),this.setFormEditPermissions()}onNavigate(n){window.open(n,"_blank")}initForm(){this.editStudyincentiveForm=this.fb.group({studyDsId:[this.studyDsId,[a.kI.required]],incentiveStatus:[{value:this.incentiveStatus,disabled:!0},[a.kI.required]],incentiveDueDate:[this.incentiveDueDate,[a.kI.required]],incentiveFunds:[this.incentiveFunds,[a.kI.required]],incentiveEcts:[this.incentiveEcts,[a.kI.required]],incentiveIsPaid:[this.incentiveIsPaid,[a.kI.required]],incentiveParticipantDsId:[{value:this.incentiveParticipantDsId,disabled:this.disableEditIncentiveParticipant},[a.kI.required]],incentiveMotivation:[this.incentiveMotivation,[a.kI.required]]})}setFormEditPermissions(){this.userAccountRole==this.backendService.researcher&&(this.disableEditIncentiveParticipant=!1)}onSubmitEditStudyIncentiveForm(){if(this.formSubmissionProgressbar=!0,this.editStudyincentiveForm.valid&&null!=this.editStudyincentiveForm.value.incentiveDueDate.value){let t=this.editStudyincentiveForm.value;var n={incentive_id:this.incentiveId,is_paid:t.incentiveIsPaid,credits:t.incentiveEcts,funds:t.incentiveFunds,motivation:t.incentiveMotivation,payment_due_date:new Date(t.incentiveDueDate.value).toLocaleDateString("fr-CA"),study_ds_id:t.studyDsId,member_ds_id:t.incentiveParticipantDsId,created_by:this.researcherDsId};this.backendService.updateIncentiveRequest(n).subscribe(r=>{let d=r.message;v().fire({icon:"success",title:"Success!",text:d,showConfirmButton:!1,timer:2500}),this.formSubmissionProgressbar=!1,this.router.navigateByUrl("all-incentives")},r=>{console.log(r),this.formSubmissionProgressbar=!1})}else v().fire({icon:"error",title:"Attention",text:"Please fill all required fields."}),this.formSubmissionProgressbar=!1}studiesCompletedByResearcher(){return this.studiesProgressbar=!0,new Promise((n,t)=>{this.backendService.getResearcherStudieslist(this.researcherDsId).subscribe(r=>{this.studies=r.data,this.studiesProgressbar=!1,n()},r=>{console.log(r),this.studiesProgressbar=!1,n()})})}getStudyParticipants(n){return this.participantsProgressbar=!0,new Promise((t,r)=>{null!=this.studies.find(o=>o.study_ds_id==n)&&(this.studyDsId=n),this.backendService.getSingleStudyParticipants(n).subscribe(o=>{this.participants=o.data,this.participantsProgressbar=!1,t()},o=>{console.log(o),this.participantsProgressbar=!1,t()})})}loadIncentiveDetails(){let n={member_ds_id:0,incentive_status:"",incentive_id:this.incentiveId,researcher_ds_id:0};return this.incentiveProgressbar=!0,new Promise((t,r)=>{this.backendService.getIncentivesDetails(n).subscribe(d=>{if(d.found>0){let o=d.data[0];
1this.studyDsId=o.study_ds_id,this.getStudyParticipants(this.studyDsId),this.incentiveStudyTitle=o.study_title,this.incentiveStatus=o.incentive_status,this.incentiveFunds=o.funds,this.incentiveEcts=o.credits,this.incentiveIsPaid=o.is_paid,this.incentiveDueDate=new a.p4(new Date(o.payment_due_date)),this.incentiveMotivation=o.motivation,this.incentiveParticipantDsId=o.member_ds_id,this.incentiveProgressbar=!1}t()},d=>{console.log(d),this.incentiveProgressbar=!1,t()})})}}return i.\u0275fac=function(n){return new(n||i)(e.Y36(u.gz),e.Y36(a.QS),e.Y36(u.F0),e.Y36(g.C),e.Y36(h.v))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-edit"]],decls:96,vars:18,consts:[[1,"content"],[1,"container-fluid"],["class","block-header",4,"ngFor","ngForOf"],[1,"row","clearfix"],[1,"col-lg-12","col-md-12"],[1,"card"],["mode","indeterminate",4,"ngIf"],[1,"header"],[1,"body"],[1,"register-form","m-4",3,"formGroup","ngSubmit"],[1,"col-lg-6","col-md-6","col-sm-12"],[1,"col-lg-10","col-md-10","col-sm-12"],[1,"form-group"],["appearance","fill",1,"example-full-width"],["formControlName","studyDsId","required","",3,"selectionChange"],[3,"disabled","value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","number","min","0","formControlName","incentiveEcts","required",""],["matSuffix",""],["matInput","","type","number","min","0","formControlName","incentiveFunds","required",""],["formControlName","incentiveIsPaid",1,"example-margin",3,"checked"],["formControlName","incentiveStatus","required",""],["value","pending"],["value","processed"],["value","approved"],["value","rejected"],["formControlName","incentiveParticipantDsId","required",""],[1,"example-full-width"],["matInput","","required","",3,"matDatepicker","formControl"],["matSuffix","",3,"for"],["required",""],["incentiveDueDatePicker",""],[1,"col-lg-12","col-md-12","col-sm-12"],["matInput","","formControlName","incentiveMotivation","required",""],[1,"col-md-12"],["mat-raised-button","","color","primary"],[1,"block-header"],[3,"title","items","active_item"],["mode","indeterminate"],[3,"disabled","value"]],template:function(n,t){if(1&n&&(e.TgZ(0,"section",0)(1,"div",1),e.YNc(2,k,2,3,"div",2),e.TgZ(3,"div",3)(4,"div",4)(5,"div",5),e.YNc(6,Q,1,0,"mat-progress-bar",6),e.TgZ(7,"div",7)(8,"h2")(9,"strong"),e._uU(10,"Incentive"),e.qZA()(),e._UZ(11,"hr"),e.qZA(),e.TgZ(12,"div",8)(13,"form",9),e.NdJ("ngSubmit",function(){return t.onSubmitEditStudyIncentiveForm()}),e.TgZ(14,"div",3)(15,"div",10)(16,"div",11),e.YNc(17,Y,1,0,"mat-progress-bar",6),e.TgZ(18,"div",12)(19,"mat-form-field",13)(20,"mat-label"),e._uU(21,"Choose Project"),e.qZA(),e.TgZ(22,"mat-select",14),e.NdJ("selectionChange",function(d){return t.getStudyParticipants(d.value)}),e.YNc(23,R,2,3,"mat-option",15),e.qZA(),e.YNc(24,j,2,0,"mat-error",16),e.qZA()()(),e.TgZ(25,"div",11)(26,"div",12)(27,"mat-form-field",13)(28,"mat-label"),e._uU(29,"ECTS"),e.qZA(),e._UZ(30,"input",17),e.TgZ(31,"mat-icon",18),e._uU(32,"school"),e.qZA(),e.YNc(33,M,2,0,"mat-error",16),e.qZA()()(),e.TgZ(34,"div",11)(35,"div",12)(36,"mat-form-field",13)(37,"mat-label"),e._uU(38,"Funds"),e.qZA(),e._UZ(39,"input",19),e.TgZ(40,"mat-icon",18),e._uU(41,"euro_symbol"),e.qZA(),e.YNc(42,O,2,0,"mat-error",16),e.qZA()()(),e.TgZ(43,"div",11)(44,"div",12)(45,"mat-checkbox",20),e._uU(46,"is Paid Project "),e.qZA()()()(),e.TgZ(47,"div",10)(48,"div",11)(49,"div",12)(50,"mat-form-field",13)(51,"mat-label"),e._uU(52,"Status"),e.qZA(),e.TgZ(53,"mat-select",21)(54,"mat-option",22),e._uU(55,"Pending"),e.qZA(),e.TgZ(56,"mat-option",23),e._uU(57,"Processed"),e.qZA(),e.TgZ(58,"mat-option",24),e._uU(59,"Approved"),e.qZA(),e.TgZ(60,"mat-option",25),e._uU(61,"Rejected"),e.qZA()(),e.YNc(62,V,2,0,"mat-error",16),e.qZA()()(),e.TgZ(63,"div",11),e.YNc(64,B,1,0,"mat-progress-bar",6),e.TgZ(65,"div",12)(66,"mat-form-field",13)(67,"mat-label"),e._uU(68,"Select Participant"),e.qZA(),e.TgZ(69,"mat-select",26),e.YNc(70,L,2,3,"mat-option",15),e.qZA(),e.TgZ(71,"mat-icon",18),e._uU(72,"face"),e.qZA(),e.YNc(73,G,2,0,"mat-error",16),e.qZA()()(),e.TgZ(74,"div",11)(75,"div",12)(76,"mat-form-field",27)(77,"mat-label"),e._uU(78,"Due Date"),e.qZA(),e._UZ(79,"input",28)(80,"mat-datepicker-toggle",29)(81,"mat-datepicker",30,31),e.YNc(83,z,2,0,"mat-error",16),e.qZA()()()(),e.TgZ(84,"div"),e._UZ(85,"hr"),e.qZA(),e.TgZ(86,"div",32)(87,"div",12)(88,"mat-form-field",13)(89,"mat-label"),e._uU(90,"Additional Comments"),e.qZA(),e._UZ(91,"textarea",33),e.YNc(92,W,2,0,"mat-error",16),e.qZA()()(),e.TgZ(93,"div",34)(94,"button",35),e._uU(95,"Save Changes"),e.qZA()()()()()()()()()()),2&n){const r=e.MAs(82);e.xp6(2),e.Q6J("ngForOf",t.breadscrums),e.xp6(4),e.Q6J("ngIf",t.incentiveProgressbar),e.xp6(7),e.Q6J("formGroup",t.editStudyincentiveForm),e.xp6(4),e.Q6J("ngIf",t.studiesProgressbar),e.xp6(6),e.Q6J("ngForOf",t.studies),e.xp6(1),e.Q6J("ngIf",t.editStudyincentiveForm.get("studyDsId").hasError("required")),e.xp6(9),e.Q6J("ngIf",t.editStudyincentiveForm.get("incentiveEcts").hasError("required")),e.xp6(9),e.Q6J("ngIf",t.editStudyincentiveForm.get("incentiveFunds").hasError("required")),e.xp6(3),e.Q6J("checked",t.incentiveIsPaid),e.xp6(17),e.Q6J("ngIf",t.editStudyincentiveForm.get("incentiveStatus").hasError("required")),e.xp6(2),e.Q6J("ngIf",t.participantsProgressbar),e.xp6(6),e.Q6J("ngForOf",t.participants),e.xp6(3),e.Q6J("ngIf",t.editStudyincentiveForm.get("incentiveParticipantDsId").hasError("required")),e.xp6(6),e.Q6J("matDatepicker",r)("formControl",t.incentiveDueDate),e.xp6(1),e.Q6J("for",r),e.xp6(3),e.Q6J("ngIf",t.editStudyincentiveForm.get("incentiveDueDate").hasError("required")),e.xp6(9),e.Q6J("ngIf",t.editStudyincentiveForm.get("incentiveMotivation").hasError("required"))}},dependencies:[l.sg,l.O5,a._Y,a.Fj,a.wV,a.JJ,a.JL,a.Q7,a.qQ,a.oH,a.sg,a.u,m.TO,m.KE,m.hX,m.R9,S.Nt,T.Hw,_.lW,A.oG,I.L,y.ey,p.Mq,p.hl,p.nW,P.gD,Z.pW]}),i})();var q=c(7314);
1function $(i,s){if(1&i&&(e.TgZ(0,"div",39),e._UZ(1,"app-breadcrumb",40),e.qZA()),2&i){const n=s.$implicit;e.xp6(1),e.Q6J("title",n.title)("items",n.items)("active_item",n.active)}}function H(i,s){1&i&&e._UZ(0,"mat-progress-bar",41)}function K(i,s){if(1&i&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&i){const n=s.$implicit;e.s9C("value",n.study_ds_id),e.Q6J("disabled","pending"==n.studyStatus||"rejected"==n.studyStatus),e.xp6(1),e.hij(" ","#"+n.id+" - "+n.studyTitleParticipant," ")}}function ee(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function te(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function ie(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function ne(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function se(i,s){1&i&&e._UZ(0,"mat-progress-bar",41)}function re(i,s){if(1&i&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&i){const n=s.$implicit;e.s9C("value",n.member_ds_id),e.Q6J("disabled","accepted"!=n.invitation_status),e.xp6(1),e.hij(" ",n.member_ds_id," ")}}function ae(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function oe(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function ce(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function de(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function me(i,s){1&i&&e._UZ(0,"mat-progress-bar",41)}let ue=(()=>{class i{constructor(n,t,r,d){this.fb=n,this.localService=t,this.backendService=r,this.router=d,this.breadscrums=[{title:"Create",items:["Incentive"],active:"Create"}],this.participantsProgressbar=!1,this.studiesProgressbar=!1,this.formSubmissionProgressbar=!1,this.hide=!0,this.userRole="",this.researcherDsId="",this.researcherName="",this.incentiveFunds="",this.incentiveEcts=0,this.studies=[],this.participants=[],this.incentiveDueDate=new a.p4(new Date),this.userRole=this.localService.getUserRole(),this.researcherName=this.localService.getJsonValue("given_name")+" "+this.localService.getJsonValue("family_name"),this.researcherDsId=this.localService.getJsonValue("researcher_ds_id")}ngOnInit(){this.initForm(),this.studiesCompletedByResearcher().then(n=>this.initForm())}onNavigate(n){window.open(n,"_blank")}formatLabel(n){return n>=0?Math.round(n/1e3)+"k":`${n}`}initForm(){this.newStudyIncentiveForm=this.fb.group({studyDsId:[this.studyDsId,[a.kI.required]],incentiveStatus:[{value:"pending",disabled:!0},[a.kI.required]],incentiveDueDate:[this.incentiveDueDate,[a.kI.required]],incentiveFunds:[this.incentiveFunds,[a.kI.required]],incentiveEcts:[this.incentiveEcts,[a.kI.required]],incentiveIsPaid:["",[]],incentiveParticipantDsId:["",[a.kI.required]],incentiveMotivation:["",[a.kI.required]],feedbackText:["",[a.kI.required]],feedbackRating:["",[]]})}onSubmitNewStudyIncentiveForm(){if(this.formSubmissionProgressbar=!0,this.newStudyIncentiveForm.valid&&null!=this.newStudyIncentiveForm.value.incentiveDueDate.value){let t=this.newStudyIncentiveForm.value;var n={is_paid:t.incentiveIsPaid,credits:t.incentiveEcts,funds:t.incentiveFunds,motivation:t.incentiveMotivation,payment_due_date:new Date(t.incentiveDueDate.value).toLocaleDateString("fr-CA"),study_ds_id:t.studyDsId,member_ds_id:t.incentiveParticipantDsId,created_by:this.researcherDsId,participation_rating:t.feedbackRating,participation_feedback:t.feedbackText};this.backendService.createNewIncentiveRequest(n).subscribe(r=>{let d=r.message;v().fire({icon:"success",title:"Success!",text:d,showConfirmButton:!1,timer:2500}),this.formSubmissionProgressbar=!1,this.router.navigateByUrl("all-incentives")},r=>{console.log(r),this.formSubmissionProgressbar=!1})}else v().fire({icon:"error",title:"Attention",text:"Please fill all required fields."}),this.formSubmissionProgressbar=!1}studiesCompletedByResearcher(){return this.studiesProgressbar=!0,new Promise((n,t)=>{this.backendService.getResearcherStudieslist(this.researcherDsId).subscribe(r=>{this.studies=r.data,this.studiesProgressbar=!1,n()},r=>{console.log(r),this.studiesProgressbar=!1,n()})})}getStudyParticipants(n){this.participantsProgressbar=!0;let t=this.studies.find(r=>r.study_ds_id==n);return null!=t&&(this.studyDsId=t.study_ds_id,this.incentiveFunds=t.funds,this.incentiveEcts=t.credits,this.initForm()),new Promise((r,d)=>{this.backendService.getSingleStudyParticipants(this.studyDsId).subscribe(o=>{this.participants=o.data,this.participantsProgressbar=!1,r()},o=>{console.log(o),this.participantsProgressbar=!1,r()})})}}return i.\u0275fac=function(n){return new(n||i)(e.Y36(a.QS),e.Y36(g.C),e.Y36(h.v),e.Y36(u.F0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-new"]],decls:114,vars:18,consts:[[1,"content"],[1,"container-fluid"],["class","block-header",4,"ngFor","ngForOf"],[1,"row","clearfix"],[1,"col-lg-12","col-md-12"],[1,"card"],[1,"header"],[1,"body"],[1,"register-form","m-4",3,"formGroup","ngSubmit"],[1,"col-lg-6","col-md-6","col-sm-12"],[1,"col-lg-10","col-md-10","col-sm-12"],["mode","indeterminate",4,"ngIf"],[1,"form-group"],["appearance","fill",1,"example-full-width"],["formControlName","studyDsId","required","",3,"selectionChange"],[3,"disabled","value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","number","min","0","formControlName","incentiveEcts","required",""],["matSuffix",""],["matInput","","type","number","min","0","formControlName","incentiveFunds","required",""],["formControlName","incentiveIsPaid",1,"example-margin"],["formControlName","incentiveStatus","required",""],["value","pending"],["value","processed"],["value","approved"],["value","rejected"],["formControlName","incentiveParticipantDsId","required",""],[1,"example-full-width"],["matInput","","required","",3,"matDatepicker","formControl"],["matSuffix","",3,"for"],["required",""],["incentiveDueDatePicker",""],[1,"col-lg-12","col-md-12","col-sm-12"],["matInput","","formControlName","incentiveMotivation","required",""],[2,"color","grey"],["thumbL
1abel","","tickInterval","auto","min","1","max","5","formControlName","feedbackRating"],["matInput","","formControlName","feedbackText","required",""],[1,"col-lg-12","col-md-12","col-sm-12","col-xs-12"],["mat-raised-button","","color","primary"],[1,"block-header"],[3,"title","items","active_item"],["mode","indeterminate"],[3,"disabled","value"]],template:function(n,t){if(1&n&&(e.TgZ(0,"section",0)(1,"div",1),e.YNc(2,$,2,3,"div",2),e.TgZ(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h2")(8,"strong"),e._uU(9,"New Incentive"),e.qZA()(),e._UZ(10,"hr"),e.qZA(),e.TgZ(11,"div",7)(12,"form",8),e.NdJ("ngSubmit",function(){return t.onSubmitNewStudyIncentiveForm()}),e.TgZ(13,"div",3)(14,"div",9)(15,"div",10),e.YNc(16,H,1,0,"mat-progress-bar",11),e.TgZ(17,"div",12)(18,"mat-form-field",13)(19,"mat-label"),e._uU(20,"Select Project"),e.qZA(),e.TgZ(21,"mat-select",14),e.NdJ("selectionChange",function(d){return t.getStudyParticipants(d.value)}),e.YNc(22,K,2,3,"mat-option",15),e.qZA(),e.YNc(23,ee,2,0,"mat-error",16),e.qZA()()(),e.TgZ(24,"div",10)(25,"div",12)(26,"mat-form-field",13)(27,"mat-label"),e._uU(28,"ECTS"),e.qZA(),e._UZ(29,"input",17),e.TgZ(30,"mat-icon",18),e._uU(31,"school"),e.qZA(),e.YNc(32,te,2,0,"mat-error",16),e.qZA()()(),e.TgZ(33,"div",10)(34,"div",12)(35,"mat-form-field",13)(36,"mat-label"),e._uU(37,"Funds"),e.qZA(),e._UZ(38,"input",19),e.TgZ(39,"mat-icon",18),e._uU(40,"euro_symbol"),e.qZA(),e.YNc(41,ie,2,0,"mat-error",16),e.qZA()()(),e.TgZ(42,"div",10)(43,"div",12)(44,"mat-checkbox",20),e._uU(45,"is Paid Project "),e.qZA()()()(),e.TgZ(46,"div",9)(47,"div",10)(48,"div",12)(49,"mat-form-field",13)(50,"mat-label"),e._uU(51,"Status"),e.qZA(),e.TgZ(52,"mat-select",21)(53,"mat-option",22),e._uU(54,"Pending"),e.qZA(),e.TgZ(55,"mat-option",23),e._uU(56,"Processed"),e.qZA(),e.TgZ(57,"mat-option",24),e._uU(58,"Approved"),e.qZA(),e.TgZ(59,"mat-option",25),e._uU(60,"Rejected"),e.qZA()(),e.YNc(61,ne,2,0,"mat-error",16),e.qZA()()(),e.TgZ(62,"div",10),e.YNc(63,se,1,0,"mat-progress-bar",11),e.TgZ(64,"div",12)(65,"mat-form-field",13)(66,"mat-label"),e._uU(67,"Select Participant"),e.qZA(),e.TgZ(68,"mat-select",26),e.YNc(69,re,2,3,"mat-option",15),e.qZA(),e.TgZ(70,"mat-icon",18),e._uU(71,"face"),e.qZA(),e.YNc(72,ae,2,0,"mat-error",16),e.qZA()()(),e.TgZ(73,"div",10)(74,"div",12)(75,"mat-form-field",27)(76,"mat-label"),e._uU(77,"Due Date"),e.qZA(),e._UZ(78,"input",28)(79,"mat-datepicker-toggle",29)(80,"mat-datepicker",30,31),e.YNc(82,oe,2,0,"mat-error",16),e.qZA()()()(),e.TgZ(83,"div",32)(84,"div",12)(85,"mat-form-field",13)(86,"mat-label"),e._uU(87,"Additional Comments"),e.qZA(),e._UZ(88,"textarea",33),e.YNc(89,ce,2,0,"mat-error",16),e.qZA()()(),e.TgZ(90,"div",6),e._UZ(91,"hr"),e.TgZ(92,"h2")(93,"strong"),e._uU(94,"Feedback"),e.qZA()()(),e.TgZ(95,"div",32)(96,"div",12)(97,"mat-label"),e._uU(98,"Rate the Participant: "),e.TgZ(99,"i",34),e._uU(100,"(from 1-5, with 5 being highest) "),e.qZA()(),e._UZ(101,"span")(102,"mat-slider",35),e.qZA()(),e.TgZ(103,"div",32)(104,"div",12)(105,"mat-form-field",13)(106,"mat-label"),e._uU(107,"Participation Feedback"),e.qZA(),e._UZ(108,"textarea",36),e.YNc(109,de,2,0,"mat-error",16),e.qZA()()(),e.TgZ(110,"div",37),e.YNc(111,me,1,0,"mat-progress-bar",11),e.TgZ(112,"button",38),e._uU(113,"Request Incentive"),e.qZA()()()()()()()()()()),2&n){const r=e.MAs(81);e.xp6(2),e.Q6J("ngForOf",t.breadscrums),e.xp6(10),e.Q6J("formGroup",t.newStudyIncentiveForm),e.xp6(4),e.Q6J("ngIf",t.studiesProgressbar),e.xp6(6),e.Q6J("ngForOf",t.studies),e.xp6(1),e.Q6J("ngIf",t.newStudyIncentiveForm.get("studyDsId").hasError("required")),e.xp6(9),e.Q6J("ngIf",t.newStudyIncentiveForm.get("incentiveEcts").hasError("required")),e.xp6(9),e.Q6J("ngIf",t.newStudyIncentiveForm.get("incentiveFunds").hasError("required")),e.xp6(20),e.Q6J("ngIf",t.newStudyIncentiveForm.get("incentiveStatus").hasError("required")),e.xp6(2),e.Q6J("ngIf",t.participantsProgressbar),e.xp6(6),e.Q6J("ngForOf",t.participants),e.xp6(3),e.Q6J("ngIf",t.newStudyIncentiveForm.get("incentiveParticipantDsId").hasError("required")),e.xp6(6),e.Q6J("matDatepicker",r)("formControl",t.incentiveDueDate),e.xp6(1),e.Q6J("for",r),e.xp6(3),e.Q6J("ngIf",t.newStudyIncentiveForm.get("incentiveDueDate").hasError("required")),e.xp6(7),e.Q6J("ngIf",t.newStudyIncentiveForm.get("incentiveMotivation").hasError("required")),e.xp6(20
1),e.Q6J("ngIf",t.newStudyIncentiveForm.get("feedbackText").hasError("required")),e.xp6(2),e.Q6J("ngIf",t.formSubmissionProgressbar)}},dependencies:[l.sg,l.O5,a._Y,a.Fj,a.wV,a.JJ,a.JL,a.Q7,a.qQ,a.oH,a.sg,a.u,m.TO,m.KE,m.hX,m.R9,S.Nt,T.Hw,_.lW,A.oG,I.L,y.ey,p.Mq,p.hl,p.nW,P.gD,q.pH,Z.pW]}),i})();function le(i,s){if(1&i&&(e.TgZ(0,"div",32),e._UZ(1,"app-breadcrumb",33),e.qZA()),2&i){const n=s.$implicit;e.xp6(1),e.Q6J("title",n.title)("items",n.items)("active_item",n.active)}}function ve(i,s){1&i&&e._UZ(0,"mat-progress-bar",34)}function pe(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function fe(i,s){1&i&&(e.TgZ(0,"mat-error"),e._uU(1," This field is required "),e.qZA())}function ge(i,s){1&i&&e._UZ(0,"mat-progress-bar",34)}let he=(()=>{class i{constructor(n,t,r,d,o){this.route=n,this.router=t,this.fb=r,this.localService=d,this.backendService=o,this.breadscrums=[{title:"Process Incentive",items:["Incentive"],active:"Process"}],this.incentiveProgressbar=!1,this.formSubmissionProgressbar=!1,this.incentiveId=-1,this.researcherDsId="",this.incentiveParticipantDsId="",this.incentiveStudyTitle="no title",this.incentiveStatusDb="pending",this.incentiveStatus=f.Z.capitalizeFirstLetter(this.incentiveStatusDb),this.incentiveParticipantName="",this.incentiveFunds=0,this.incentiveEcts=0,this.incentiveDueDateString="10-20-2022",this.incentiveDueDate=new Date(this.incentiveDueDateString).toDateString(),this.incentiveMotivation="not specified.",this.userRole="",this.financialAdminDsId="",this.financialAdminName="",this.route.params.subscribe(b=>this.incentiveId=b.id),this.userRole=this.localService.getUserRole(),this.financialAdminName=this.localService.getJsonValue("given_name")+" "+this.localService.getJsonValue("family_name"),this.financialAdminDsId=this.localService.getJsonValue("financial_admin_ds_id")}ngOnInit(){this.initForm(),this.loadIncentiveDetails()}initForm(){this.processStudyincentiveForm=this.fb.group({paymentPersonFullName:["",[a.kI.required]],paymentPersonEmail:["",[a.kI.required]]})}studyDetailsCallback(){f.Z.goToStudyDetails(this.incentiveStudyDsId,this.router)}onSubmitProcessStudyIncentiveForm(){if(this.formSubmissionProgressbar=!0,this.processStudyincentiveForm.valid){let t=this.processStudyincentiveForm.value,r=t.paymentPersonFullName,d=t.paymentPersonEmail;var n={incentive_id:this.incentiveId,payment_processed_on:(new Date).toLocaleDateString("fr-CA"),payment_ontime:!0,study_ds_id:this.incentiveStudyDsId,member_ds_id:this.incentiveParticipantDsId,is_approved:!0,payment_responsible_name:r,payment_responsible_email:d,financial_admin_ds_id:this.financialAdminDsId,is_processed:!0};this.backendService.processIncentivePayment(n).subscribe(o=>{let b=o.message;v().fire({icon:"success",title:"Success!",text:b,showConfirmButton:!1,timer:2500}),this.formSubmissionProgressbar=!1,this.router.navigateByUrl("all-incentives")},o=>{console.log(o),this.formSubmissionProgressbar=!1})}else v().fire({icon:"error",title:"Attention",text:"Please fill all required fields."}),this.formSubmissionProgressbar=!1}loadIncentiveDetails(){let n={member_ds_id:0,incentive_status:"",incentive_id:this.incentiveId,researcher_ds_id:0};return this.incentiveProgressbar=!0,new Promise((t,r)=>{this.backendService.getIncentivesDetails(n).subscribe(d=>{if(d.found>0){let o=d.data[0];this.incentiveStudyDsId=o.study_ds_id,this.incentiveStudyTitle=o.study_title,this.incentiveStatusDb=o.incentive_status,this.incentiveStatus=f.Z.capitalizeFirstLetter(this.incentiveStatusDb),this.incentiveParticipantName=o.member_name,this.incentiveParticipantDsId=o.member_ds_id,this.incentiveFunds=o.funds,this.incentiveEcts=o.credits,this.incentiveDueDateString=o.payment_due_date,this.incentiveDueDate=new Date(this.incentiveDueDateString).toDateString(),this.incentiveMotivation=o.motivation,this.researcherDsId=o.created_by,this.incentiveProgressbar=!1}t()},d=>{console.log(d),this.incentiveProgressbar=!1,t()})})}}return i.\u0275fac=function(n){return new(n||i)(e.Y36(u.gz),e.Y36(u.F0),e.Y36(a.QS),e.Y36(g.C),e.Y36(h.v))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-process"]],decls:91,vars:14,consts:[[1,"content"],[1,"container-fluid"],["class","block-header",4,"ngFor","ngForOf"],[1,"row","clearfix"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12"],["mode","indeterminate",4,"ngIf"],[1,"card"],[1,"body"],[1,"col-lg-12","col-md-12","col-sm-12"],[1,"project_widget"],[1,"header"],[1,"row"],[1,"col-md-6","col-6","b-r"],[1,"fas","fa-book"],[1,"fas","fa-info"],[1,"fas","fa-calendar"],[1,"col-md-12","col-12","b-r"],[1,"fas","fa-user"],["mat-stroked-button","","color","primary",3,"click"],[1,"fas","fa-euro-sign"],[1,"fas","fa-graduation-cap"],[1,"text-muted"],[1,"register-form","m-4",3,"formGroup"],[1,"col-lg-4","col-md-4","col-sm-12"],[1,"form-group"],["appearance","fill",1,"example-full-width"],["matInput","","type","text","min","0","formControlName","paymentPersonFullName","required",""],["matSuffix",""],[4,"ngIf"],["matInput","","type","email","min","0","formControlName","paymentPersonEmail","required",""],[1,"col-lg-4","col-md-4","col-sm-12","example-button-row","p-t-10"],["mat-raised-button","","color","primary","type","submit",3,"click"],[1,"block-header"],[3,"title","items","active_item"],["mode","indeterminate"]],template:function(n,t){1&n&&(e.TgZ(0,"section",0)(1,"div",1),e.YNc(2,le,2,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e.YNc(5,ve,1,0,"mat-progress-bar",5),e.TgZ(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"h2")(12,"strong"),e._uU(13,"Process Incentive"),e.qZA()(),e._UZ(14,"hr"),e.qZA(),e.TgZ(15,"div",7)(16,"div",11)(17,"div",12)(18,"div",12)(19,"strong"),e._UZ(20,"i",13),e._uU(21,"\xa0 Project"),e.qZA(),e._uU(22),e.qZA(),e.TgZ(23,"div",12)(24,"strong"),e._UZ(25,"i",14),e._uU(26,"\xa0 Status"),e.qZA(),e._uU(27),e.qZA(),e.TgZ(28,"div",12)(29,"strong"),e._UZ(30,"i",15),e._uU(31,"\xa0 Due Date"),e.qZA(),e._uU(32),e.qZA(),e.TgZ(33,"div",16)(34,"strong"),e._UZ(35,"i",17),e._uU(36,"\xa0 Participant: "),e.qZA(),e._uU(37),e.TgZ(38,"i"),e._uU(39),e.qZA()()(),e.TgZ(40,"div",12)(41,"div",12)(42,"button",18),e.NdJ("click",function(){return t.studyDetailsCallback()}),e._uU(43," Project Details "),e.qZA()(),e.TgZ(44,"div",12)(45,"strong"),e._UZ(46,"i",19),e._uU(47,"\xa0 Funds"),e.qZA(),e._uU(48),e.qZA(),e.TgZ(49,"div",12)(50,"strong"),e._UZ(51,"i",20),e._uU(52,"\xa0 ECTS"),e.qZA(),e._uU(53),e.qZA()(),e.TgZ(54,"div",16)(55,"strong"),e._uU(56,"Additional Comments"),e.qZA(),e._UZ(57,"br"),e.TgZ(58,"p",21),e._uU(59),e.qZA(),e._UZ(60,"hr"),e.qZA(),e.TgZ(61,"div",10)(62,"h2")(63,"strong"),e._uU(64,"Person Responsible for Processing of Request"),e.qZA()()(),e.TgZ(65,"form",22)(66,"div",3)(67,"div",23)(68,"div",8)(69,"div",24)(70,"mat-form-field",25)(71,"mat-label"),e._uU(72,"Full Name"),e.qZA(),e._UZ(73,"input",26),e.TgZ(74,"mat-icon",27),e._uU(75,"person"),e.qZA(),e.YNc(76,pe,2,0,"mat-error",28),e.qZA()()()(),e.TgZ(77,"div",23)(78,"div",8)(79,"div",24)(80,"mat-form-field",25)(81,"mat-label"),e._uU(82,"Email"),e.qZA(),e._UZ(83,"input",29),e.TgZ(84,"mat-icon",27),e._uU(85,"envalop"),e.qZA(),e.YNc(86,fe,2,0,"mat-error",28),e.qZA()()()(),e.TgZ(87,"div",30)(88,"button",31),e.NdJ("click",function(){return t.onSubmitProcessStudyIncentiveForm()}),e._uU(89,"Process Payment"),e.qZA()(),e.YNc(90,ge,1,0,"mat-progress-bar",5),e.qZA()()()()()()()()()()()()),2&n&&(e.xp6(2),e.Q6J("ngForOf",t.breadscrums),e.xp6(3),e.Q6J("ngIf",t.incentiveProgressbar),e.xp6(17),e.hij(" ",t.incentiveStudyTitle," "),e.xp6(5),e.hij(" ",t.incentiveStatus," "),e.xp6(5),e.hij(" ",t.incentiveDueDate," "),e.xp6(5),e.hij(" ",t.incentiveParticipantName," "),e.xp6(2),e.hij("(",t.incentiveParticipantDsId,")"),e.xp6(9),e.hij(" ",t.incentiveFunds," "),e.xp6(5),e.hij(" ",t.incentiveEcts," "),e.xp6(6),e.Oqu(t.incentiveMotivation),e.xp6(6),e.Q6J("formGroup",t.processStudyincentiveForm),e.xp6(11),e.Q6J("ngIf",t.processStudyincentiveForm.get("paymentPersonFullName").hasError("required")),e.xp6(10),e.Q6J("ngIf",t.processStudyincentiveForm.get("paymentPersonEmail").hasError("required")),e.xp6(4),e.Q6J("ngIf",t.formSubmissionProgressbar))},dependencies:[l.sg,l.O5,a._Y,a.Fj,a.JJ,a.JL,a.Q7,a.sg,a.u,m.TO,m.KE,m.hX,m.R9,S.Nt,T.Hw,_.lW,I.L,Z.pW]}),i})(),_e=(()=>{class i{constructor(n,t,r){this.router=n,this.localService=t,this.backendService=r}canActivate(n,t){return this.localService.getUserRole()==this.backendService.fadmin||(this.router.navigate(["/authentication/page401"]),!1)}}return i.\u0275fac=function(n){return new(n||i)(e.LFG(u.F0),e.LFG(g.C),e.LFG(h.v))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var U=c(2574);const Ze=[{path:"edit/:id",canActivate:[U.m],component:X},{path:"view/:id",component:w},{path:"new",canActivate:[U.m],component:ue},{path:"processPayment/:id",canActivate:[_e],component:he}];let be=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[u.Bz.forChild(Ze),u.Bz]}),i})();var Ie=c(7084),Se=c(3848),Te=c(4180),Ae=c(9188),Pe=c(7957),De=c(811),ye=c(3546),qe=c(5938),Ue=c(782),Fe=c(6338),Ce=c(8255),Ne=c(1948),xe=c(3267),Je=c(455),Ee=c(6308),we=c(6257),ke=c(3683),Qe=c(266),Ye=c(7331),Re=c(1094),je=c(2851),F=c(1282),Me=c(5626);let Oe=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[l.ez,be,a.u5,a.UX,Ie.To,m.lN,S.c,T.Ps,_.ot,A.p9,Se.Nh,Me.K,Te.O,Ae.d,Pe.Bb,De.vV,ye.QW,p.FA,qe.Is,m.lN,Ue.N6,Fe.ie,Ce.Tx,Ne.Fk,P.LD,xe.SJ,Je.rP,q.KP,Ee.JX,we.T5,ke.g0,Qe.AV,F.Ll,F.x,Re.yI,je.e4,Ye.Hi,Z.Cv]}),i})()}}]);
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.